libgo: update to Go1.18rc1 release
[official-gcc.git] / configure
blob9c2d7df1bb22d802f2dc838d8c6d85fe414803e8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DSYMUTIL_FOR_TARGET
613 DLLTOOL_FOR_TARGET
614 AS_FOR_TARGET
615 AR_FOR_TARGET
616 GDC_FOR_TARGET
617 GOC_FOR_TARGET
618 GFORTRAN_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 GDCFLAGS
623 READELF
624 OTOOL
625 OBJDUMP
626 OBJCOPY
627 WINDMC
628 WINDRES
629 STRIP
630 RANLIB
632 LIPO
634 DSYMUTIL
635 DLLTOOL
638 RUNTEST
639 EXPECT
640 MAKEINFO
641 FLEX
644 BISON
645 YACC
646 WINDRES_FOR_BUILD
647 WINDMC_FOR_BUILD
648 RANLIB_FOR_BUILD
649 NM_FOR_BUILD
650 LD_FOR_BUILD
651 LDFLAGS_FOR_BUILD
652 GDC_FOR_BUILD
653 GOC_FOR_BUILD
654 GFORTRAN_FOR_BUILD
655 DSYMUTIL_FOR_BUILD
656 DLLTOOL_FOR_BUILD
657 CXX_FOR_BUILD
658 CXXFLAGS_FOR_BUILD
659 CPPFLAGS_FOR_BUILD
660 CPP_FOR_BUILD
661 CFLAGS_FOR_BUILD
662 CC_FOR_BUILD
663 AS_FOR_BUILD
664 AR_FOR_BUILD
665 target_configdirs
666 configdirs
667 build_configdirs
668 INSTALL_GDB_TK
669 GDB_TK
670 CONFIGURE_GDB_TK
671 build_tooldir
672 tooldir
673 GCC_SHLIB_SUBDIR
674 RPATH_ENVVAR
675 target_configargs
676 host_configargs
677 build_configargs
678 BUILD_CONFIG
679 LDFLAGS_FOR_TARGET
680 CXXFLAGS_FOR_TARGET
681 CFLAGS_FOR_TARGET
682 DEBUG_PREFIX_CFLAGS_FOR_TARGET
683 SYSROOT_CFLAGS_FOR_TARGET
684 get_gcc_base_ver
685 extra_host_zlib_configure_flags
686 extra_host_libiberty_configure_flags
687 stage1_languages
688 host_shared
689 extra_linker_plugin_flags
690 extra_linker_plugin_configure_flags
691 islinc
692 isllibs
693 poststage1_ldflags
694 poststage1_libs
695 stage1_ldflags
696 stage1_libs
697 extra_isl_gmp_configure_flags
698 extra_mpc_mpfr_configure_flags
699 extra_mpc_gmp_configure_flags
700 extra_mpfr_configure_flags
701 gmpinc
702 gmplibs
703 PGO_BUILD_LTO_CFLAGS
704 PGO_BUILD_USE_CFLAGS
705 PGO_BUILD_GEN_CFLAGS
706 HAVE_CXX11_FOR_BUILD
707 HAVE_CXX11
708 do_compare
710 GNATMAKE
711 GNATBIND
712 ac_ct_CXX
713 CXXFLAGS
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
722 extra_liboffloadmic_configure_flags
723 target_subdir
724 host_subdir
725 build_subdir
726 build_libsubdir
729 LN_S
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 target_os
735 target_vendor
736 target_cpu
737 target
738 host_os
739 host_vendor
740 host_cpu
741 host
742 target_noncanonical
743 host_noncanonical
744 build_noncanonical
745 build_os
746 build_vendor
747 build_cpu
748 build
749 TOPLEVEL_CONFIGURE_ARGUMENTS
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files='serialization_dependencies
789 host_makefile_frag
790 target_makefile_frag
791 alphaieee_frag
792 ospace_frag'
793 ac_user_opts='
794 enable_option_checking
795 with_build_libsubdir
796 with_system_zlib
797 enable_as_accelerator_for
798 enable_offload_targets
799 enable_offload_defaulted
800 enable_gold
801 enable_ld
802 enable_compressed_debug_sections
803 enable_libquadmath
804 enable_libquadmath_support
805 enable_libada
806 enable_libssp
807 enable_libstdcxx
808 enable_liboffloadmic
809 enable_bootstrap
810 enable_pgo_build
811 with_mpc
812 with_mpc_include
813 with_mpc_lib
814 with_mpfr_dir
815 with_mpfr
816 with_mpfr_include
817 with_mpfr_lib
818 with_gmp_dir
819 with_gmp
820 with_gmp_include
821 with_gmp_lib
822 with_stage1_libs
823 with_static_standard_libraries
824 with_stage1_ldflags
825 with_boot_libs
826 with_boot_ldflags
827 with_isl
828 with_isl_include
829 with_isl_lib
830 enable_isl_version_check
831 enable_lto
832 enable_linker_plugin_configure_flags
833 enable_linker_plugin_flags
834 enable_host_shared
835 enable_stage1_languages
836 enable_objc_gc
837 with_target_bdw_gc
838 with_target_bdw_gc_include
839 with_target_bdw_gc_lib
840 with_gcc_major_version_only
841 with_build_sysroot
842 with_debug_prefix_map
843 with_build_config
844 enable_vtable_verify
845 enable_serial_configure
846 with_build_time_tools
847 enable_maintainer_mode
848 enable_stage1_checking
849 enable_werror
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
860 CXXFLAGS
862 build_configargs
863 host_configargs
864 target_configargs
867 DLLTOOL
868 DSYMUTIL
870 LIPO
872 RANLIB
873 STRIP
874 WINDRES
875 WINDMC
876 OBJCOPY
877 OBJDUMP
878 OTOOL
879 READELF
880 CC_FOR_TARGET
881 CXX_FOR_TARGET
882 GCC_FOR_TARGET
883 GFORTRAN_FOR_TARGET
884 GOC_FOR_TARGET
885 GDC_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-libssp build libssp directory
1547 --disable-libstdcxx do not build libstdc++-v3 directory
1548 --enable-liboffloadmic=ARG
1549 build liboffloadmic [ARG={no,host,target}]
1550 --enable-bootstrap enable bootstrapping [yes if native build]
1551 --enable-pgo-build[=lto]
1552 enable the PGO build
1553 --disable-isl-version-check
1554 disable check for isl version
1555 --enable-lto enable link time optimization support
1556 --enable-linker-plugin-configure-flags=FLAGS
1557 additional flags for configuring linker plugins
1558 [none]
1559 --enable-linker-plugin-flags=FLAGS
1560 additional flags for configuring and building linker
1561 plugins [none]
1562 --enable-host-shared build host code as shared libraries
1563 --enable-stage1-languages[=all]
1564 choose additional languages to build during stage1.
1565 Mostly useful for compiler development
1566 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1567 Objective-C runtime
1568 --enable-vtable-verify Enable vtable verification feature
1569 --enable-serial-[{host,target,build}-]configure
1570 force sequential configuration of sub-packages for
1571 the host, target or build machine, or all
1572 sub-packages
1573 --enable-maintainer-mode
1574 enable make rules and dependencies not useful (and
1575 sometimes confusing) to the casual installer
1576 --enable-stage1-checking[=all]
1577 choose additional checking for stage1 of the
1578 compiler
1579 --enable-werror enable -Werror in bootstrap stage2 and later
1581 Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-build-libsubdir=DIR Directory where to find libraries for build system
1585 --with-system-zlib use installed libz
1586 --with-mpc=PATH specify prefix directory for installed MPC package.
1587 Equivalent to --with-mpc-include=PATH/include plus
1588 --with-mpc-lib=PATH/lib
1589 --with-mpc-include=PATH specify directory for installed MPC include files
1590 --with-mpc-lib=PATH specify directory for the installed MPC library
1591 --with-mpfr-dir=PATH this option has been REMOVED
1592 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1593 Equivalent to --with-mpfr-include=PATH/include plus
1594 --with-mpfr-lib=PATH/lib
1595 --with-mpfr-include=PATH
1596 specify directory for installed MPFR include files
1597 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1598 --with-gmp-dir=PATH this option has been REMOVED
1599 --with-gmp=PATH specify prefix directory for the installed GMP
1600 package. Equivalent to
1601 --with-gmp-include=PATH/include plus
1602 --with-gmp-lib=PATH/lib
1603 --with-gmp-include=PATH specify directory for installed GMP include files
1604 --with-gmp-lib=PATH specify directory for the installed GMP library
1605 --with-stage1-libs=LIBS libraries for stage1
1606 --with-static-standard-libraries
1607 use -static-libstdc++ and -static-libgcc
1608 (default=auto)
1609 --with-stage1-ldflags=FLAGS
1610 linker flags for stage1
1611 --with-boot-libs=LIBS libraries for stage2 and later
1612 --with-boot-ldflags=FLAGS
1613 linker flags for stage2 and later
1614 --with-isl=PATH Specify prefix directory for the installed isl
1615 package. Equivalent to
1616 --with-isl-include=PATH/include plus
1617 --with-isl-lib=PATH/lib
1618 --with-isl-include=PATH Specify directory for installed isl include files
1619 --with-isl-lib=PATH Specify the directory for the installed isl library
1620 --with-target-bdw-gc=PATHLIST
1621 specify prefix directory for installed bdw-gc
1622 package. Equivalent to
1623 --with-target-bdw-gc-include=PATH/include plus
1624 --with-target-bdw-gc-lib=PATH/lib
1625 --with-target-bdw-gc-include=PATHLIST
1626 specify directories for installed bdw-gc include
1627 files
1628 --with-target-bdw-gc-lib=PATHLIST
1629 specify directories for installed bdw-gc library
1630 --with-gcc-major-version-only
1631 use only GCC major number in filesystem paths
1632 --with-build-sysroot=SYSROOT
1633 use sysroot as the system root during the build
1634 --with-debug-prefix-map='A=B C=D ...'
1635 map A to B, C to D ... in debug information
1636 --with-build-config='NAME NAME2...'
1637 use config/NAME.mk build configuration
1638 --with-build-time-tools=PATH
1639 use given path to find target tools during the build
1641 Some influential environment variables:
1642 CC C compiler command
1643 CFLAGS C compiler flags
1644 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1645 nonstandard directory <lib dir>
1646 LIBS libraries to pass to the linker, e.g. -l<library>
1647 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1648 you have headers in a nonstandard directory <include dir>
1649 CXX C++ compiler command
1650 CXXFLAGS C++ compiler flags
1651 build_configargs
1652 additional configure arguments for build directories
1653 host_configargs
1654 additional configure arguments for host directories
1655 target_configargs
1656 additional configure arguments for target directories
1657 AR AR for the host
1658 AS AS for the host
1659 DLLTOOL DLLTOOL for the host
1660 DSYMUTIL DSYMUTIL for the host
1661 LD LD for the host
1662 LIPO LIPO for the host
1663 NM NM for the host
1664 RANLIB RANLIB for the host
1665 STRIP STRIP for the host
1666 WINDRES WINDRES for the host
1667 WINDMC WINDMC for the host
1668 OBJCOPY OBJCOPY for the host
1669 OBJDUMP OBJDUMP for the host
1670 OTOOL OTOOL for the host
1671 READELF READELF for the host
1672 CC_FOR_TARGET
1673 CC for the target
1674 CXX_FOR_TARGET
1675 CXX for the target
1676 GCC_FOR_TARGET
1677 GCC for the target
1678 GFORTRAN_FOR_TARGET
1679 GFORTRAN for the target
1680 GOC_FOR_TARGET
1681 GOC for the target
1682 GDC_FOR_TARGET
1683 GDC for the target
1684 AR_FOR_TARGET
1685 AR for the target
1686 AS_FOR_TARGET
1687 AS for the target
1688 DLLTOOL_FOR_TARGET
1689 DLLTOOL for the target
1690 DSYMUTIL_FOR_TARGET
1691 DSYMUTIL for the target
1692 LD_FOR_TARGET
1693 LD for the target
1694 LIPO_FOR_TARGET
1695 LIPO for the target
1696 NM_FOR_TARGET
1697 NM for the target
1698 OBJCOPY_FOR_TARGET
1699 OBJCOPY for the target
1700 OBJDUMP_FOR_TARGET
1701 OBJDUMP for the target
1702 OTOOL_FOR_TARGET
1703 OTOOL for the target
1704 RANLIB_FOR_TARGET
1705 RANLIB for the target
1706 READELF_FOR_TARGET
1707 READELF for the target
1708 STRIP_FOR_TARGET
1709 STRIP for the target
1710 WINDRES_FOR_TARGET
1711 WINDRES for the target
1712 WINDMC_FOR_TARGET
1713 WINDMC for the target
1715 Use these variables to override the choices made by `configure' or to help
1716 it to find libraries and programs with nonstandard names/locations.
1718 Report bugs to the package provider.
1719 _ACEOF
1720 ac_status=$?
1723 if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
1725 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726 test -d "$ac_dir" ||
1727 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728 continue
1729 ac_builddir=.
1731 case "$ac_dir" in
1732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735 # A ".." for each directory in $ac_dir_suffix.
1736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737 case $ac_top_builddir_sub in
1738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740 esac ;;
1741 esac
1742 ac_abs_top_builddir=$ac_pwd
1743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir=$ac_top_build_prefix
1747 case $srcdir in
1748 .) # We are building in place.
1749 ac_srcdir=.
1750 ac_top_srcdir=$ac_top_builddir_sub
1751 ac_abs_top_srcdir=$ac_pwd ;;
1752 [\\/]* | ?:[\\/]* ) # Absolute name.
1753 ac_srcdir=$srcdir$ac_dir_suffix;
1754 ac_top_srcdir=$srcdir
1755 ac_abs_top_srcdir=$srcdir ;;
1756 *) # Relative name.
1757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758 ac_top_srcdir=$ac_top_build_prefix$srcdir
1759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1760 esac
1761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1763 cd "$ac_dir" || { ac_status=$?; continue; }
1764 # Check for guested configure.
1765 if test -f "$ac_srcdir/configure.gnu"; then
1766 echo &&
1767 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768 elif test -f "$ac_srcdir/configure"; then
1769 echo &&
1770 $SHELL "$ac_srcdir/configure" --help=recursive
1771 else
1772 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1773 fi || ac_status=$?
1774 cd "$ac_pwd" || { ac_status=$?; break; }
1775 done
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1780 cat <<\_ACEOF
1781 configure
1782 generated by GNU Autoconf 2.69
1784 Copyright (C) 2012 Free Software Foundation, Inc.
1785 This configure script is free software; the Free Software Foundation
1786 gives unlimited permission to copy, distribute and modify it.
1787 _ACEOF
1788 exit
1791 ## ------------------------ ##
1792 ## Autoconf initialization. ##
1793 ## ------------------------ ##
1795 # ac_fn_c_try_compile LINENO
1796 # --------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=1
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1831 } # ac_fn_c_try_compile
1833 # ac_fn_cxx_try_compile LINENO
1834 # ----------------------------
1835 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_cxx_try_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext
1840 if { { ac_try="$ac_compile"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_compile") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest.$ac_objext; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1869 } # ac_fn_cxx_try_compile
1871 # ac_fn_cxx_try_link LINENO
1872 # -------------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_cxx_try_link ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_cxx_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 test -x conftest$ac_exeext
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } # ac_fn_cxx_try_link
1917 # ac_fn_c_try_link LINENO
1918 # -----------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_c_try_link ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_c_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 test -x conftest$ac_exeext
1945 }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=1
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1961 } # ac_fn_c_try_link
1962 cat >config.log <<_ACEOF
1963 This file contains any messages produced by compilers while
1964 running configure, to aid debugging if configure makes a mistake.
1966 It was created by $as_me, which was
1967 generated by GNU Autoconf 2.69. Invocation command line was
1969 $ $0 $@
1971 _ACEOF
1972 exec 5>>config.log
1974 cat <<_ASUNAME
1975 ## --------- ##
1976 ## Platform. ##
1977 ## --------- ##
1979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1991 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1996 _ASUNAME
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 $as_echo "PATH: $as_dir"
2004 done
2005 IFS=$as_save_IFS
2007 } >&5
2009 cat >&5 <<_ACEOF
2012 ## ----------- ##
2013 ## Core tests. ##
2014 ## ----------- ##
2016 _ACEOF
2019 # Keep a trace of the command line.
2020 # Strip out --no-create and --no-recursion so they do not pile up.
2021 # Strip out --silent because we don't want to record it for future runs.
2022 # Also quote any args containing shell meta-characters.
2023 # Make two passes to allow for proper duplicate-argument suppression.
2024 ac_configure_args=
2025 ac_configure_args0=
2026 ac_configure_args1=
2027 ac_must_keep_next=false
2028 for ac_pass in 1 2
2030 for ac_arg
2032 case $ac_arg in
2033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2035 | -silent | --silent | --silen | --sile | --sil)
2036 continue ;;
2037 *\'*)
2038 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2039 esac
2040 case $ac_pass in
2041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2043 as_fn_append ac_configure_args1 " '$ac_arg'"
2044 if test $ac_must_keep_next = true; then
2045 ac_must_keep_next=false # Got value, back to normal.
2046 else
2047 case $ac_arg in
2048 *=* | --config-cache | -C | -disable-* | --disable-* \
2049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2051 | -with-* | --with-* | -without-* | --without-* | --x)
2052 case "$ac_configure_args0 " in
2053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2054 esac
2056 -* ) ac_must_keep_next=true ;;
2057 esac
2059 as_fn_append ac_configure_args " '$ac_arg'"
2061 esac
2062 done
2063 done
2064 { ac_configure_args0=; unset ac_configure_args0;}
2065 { ac_configure_args1=; unset ac_configure_args1;}
2067 # When interrupted or exit'd, cleanup temporary files, and complete
2068 # config.log. We remove comments because anyway the quotes in there
2069 # would cause problems or look ugly.
2070 # WARNING: Use '\'' to represent an apostrophe within the trap.
2071 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2072 trap 'exit_status=$?
2073 # Save into config.log some information that might help in debugging.
2075 echo
2077 $as_echo "## ---------------- ##
2078 ## Cache variables. ##
2079 ## ---------------- ##"
2080 echo
2081 # The following way of writing the cache mishandles newlines in values,
2083 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2084 eval ac_val=\$$ac_var
2085 case $ac_val in #(
2086 *${as_nl}*)
2087 case $ac_var in #(
2088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2089 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2090 esac
2091 case $ac_var in #(
2092 _ | IFS | as_nl) ;; #(
2093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2094 *) { eval $ac_var=; unset $ac_var;} ;;
2095 esac ;;
2096 esac
2097 done
2098 (set) 2>&1 |
2099 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2100 *${as_nl}ac_space=\ *)
2101 sed -n \
2102 "s/'\''/'\''\\\\'\'''\''/g;
2103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2104 ;; #(
2106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2108 esac |
2109 sort
2111 echo
2113 $as_echo "## ----------------- ##
2114 ## Output variables. ##
2115 ## ----------------- ##"
2116 echo
2117 for ac_var in $ac_subst_vars
2119 eval ac_val=\$$ac_var
2120 case $ac_val in
2121 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2122 esac
2123 $as_echo "$ac_var='\''$ac_val'\''"
2124 done | sort
2125 echo
2127 if test -n "$ac_subst_files"; then
2128 $as_echo "## ------------------- ##
2129 ## File substitutions. ##
2130 ## ------------------- ##"
2131 echo
2132 for ac_var in $ac_subst_files
2134 eval ac_val=\$$ac_var
2135 case $ac_val in
2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2137 esac
2138 $as_echo "$ac_var='\''$ac_val'\''"
2139 done | sort
2140 echo
2143 if test -s confdefs.h; then
2144 $as_echo "## ----------- ##
2145 ## confdefs.h. ##
2146 ## ----------- ##"
2147 echo
2148 cat confdefs.h
2149 echo
2151 test "$ac_signal" != 0 &&
2152 $as_echo "$as_me: caught signal $ac_signal"
2153 $as_echo "$as_me: exit $exit_status"
2154 } >&5
2155 rm -f core *.core core.conftest.* &&
2156 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2157 exit $exit_status
2159 for ac_signal in 1 2 13 15; do
2160 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2161 done
2162 ac_signal=0
2164 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2165 rm -f -r conftest* confdefs.h
2167 $as_echo "/* confdefs.h */" > confdefs.h
2169 # Predefined preprocessor variables.
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_NAME "$PACKAGE_NAME"
2173 _ACEOF
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2177 _ACEOF
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2181 _ACEOF
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_STRING "$PACKAGE_STRING"
2185 _ACEOF
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2189 _ACEOF
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_URL "$PACKAGE_URL"
2193 _ACEOF
2196 # Let the site file select an alternate cache file if it wants to.
2197 # Prefer an explicitly selected file to automatically selected ones.
2198 ac_site_file1=NONE
2199 ac_site_file2=NONE
2200 if test -n "$CONFIG_SITE"; then
2201 # We do not want a PATH search for config.site.
2202 case $CONFIG_SITE in #((
2203 -*) ac_site_file1=./$CONFIG_SITE;;
2204 */*) ac_site_file1=$CONFIG_SITE;;
2205 *) ac_site_file1=./$CONFIG_SITE;;
2206 esac
2207 elif test "x$prefix" != xNONE; then
2208 ac_site_file1=$prefix/share/config.site
2209 ac_site_file2=$prefix/etc/config.site
2210 else
2211 ac_site_file1=$ac_default_prefix/share/config.site
2212 ac_site_file2=$ac_default_prefix/etc/config.site
2214 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2216 test "x$ac_site_file" = xNONE && continue
2217 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2219 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2220 sed 's/^/| /' "$ac_site_file" >&5
2221 . "$ac_site_file" \
2222 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2224 as_fn_error $? "failed to load site script $ac_site_file
2225 See \`config.log' for more details" "$LINENO" 5; }
2227 done
2229 if test -r "$cache_file"; then
2230 # Some versions of bash will fail to source /dev/null (special files
2231 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2232 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2234 $as_echo "$as_me: loading cache $cache_file" >&6;}
2235 case $cache_file in
2236 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2237 *) . "./$cache_file";;
2238 esac
2240 else
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2242 $as_echo "$as_me: creating cache $cache_file" >&6;}
2243 >$cache_file
2246 # Check that the precious variables saved in the cache have kept the same
2247 # value.
2248 ac_cache_corrupted=false
2249 for ac_var in $ac_precious_vars; do
2250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2251 eval ac_new_set=\$ac_env_${ac_var}_set
2252 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2253 eval ac_new_val=\$ac_env_${ac_var}_value
2254 case $ac_old_set,$ac_new_set in
2255 set,)
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2259 ,set)
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2262 ac_cache_corrupted=: ;;
2263 ,);;
2265 if test "x$ac_old_val" != "x$ac_new_val"; then
2266 # differences in whitespace do not lead to failure.
2267 ac_old_val_w=`echo x $ac_old_val`
2268 ac_new_val_w=`echo x $ac_new_val`
2269 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2271 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2272 ac_cache_corrupted=:
2273 else
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2275 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2276 eval $ac_var=\$ac_old_val
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2279 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2281 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2282 fi;;
2283 esac
2284 # Pass precious variables to config.status.
2285 if test "$ac_new_set" = set; then
2286 case $ac_new_val in
2287 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2288 *) ac_arg=$ac_var=$ac_new_val ;;
2289 esac
2290 case " $ac_configure_args " in
2291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2292 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2293 esac
2295 done
2296 if $ac_cache_corrupted; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2300 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2301 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2303 ## -------------------- ##
2304 ## Main body of script. ##
2305 ## -------------------- ##
2307 ac_ext=c
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320 progname=$0
2321 # if PWD already has a value, it is probably wrong.
2322 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2324 # Export original configure arguments for use by sub-configures.
2325 # Quote arguments with shell meta charatcers.
2326 TOPLEVEL_CONFIGURE_ARGUMENTS=
2327 set -- "$progname" "$@"
2328 for ac_arg
2330 case "$ac_arg" in
2331 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2332 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2333 # if the argument is of the form -foo=baz, quote the baz part only
2334 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2335 *) ;;
2336 esac
2337 # Add the quoted argument to the list.
2338 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2339 done
2340 if test "$silent" = yes; then
2341 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2343 # Remove the initial space we just introduced and, as these will be
2344 # expanded by make, quote '$'.
2345 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2348 # Find the build, host, and target systems.
2349 ac_aux_dir=
2350 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2351 if test -f "$ac_dir/install-sh"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/install-sh -c"
2354 break
2355 elif test -f "$ac_dir/install.sh"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/install.sh -c"
2358 break
2359 elif test -f "$ac_dir/shtool"; then
2360 ac_aux_dir=$ac_dir
2361 ac_install_sh="$ac_aux_dir/shtool install -c"
2362 break
2364 done
2365 if test -z "$ac_aux_dir"; then
2366 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2369 # These three variables are undocumented and unsupported,
2370 # and are intended to be withdrawn in a future Autoconf release.
2371 # They can cause serious problems if a builder's source tree is in a directory
2372 # whose full name contains unusual characters.
2373 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2374 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2375 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2378 # Make sure we can run config.sub.
2379 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2380 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2383 $as_echo_n "checking build system type... " >&6; }
2384 if ${ac_cv_build+:} false; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 ac_build_alias=$build_alias
2388 test "x$ac_build_alias" = x &&
2389 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2390 test "x$ac_build_alias" = x &&
2391 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2392 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2393 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2397 $as_echo "$ac_cv_build" >&6; }
2398 case $ac_cv_build in
2399 *-*-*) ;;
2400 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2401 esac
2402 build=$ac_cv_build
2403 ac_save_IFS=$IFS; IFS='-'
2404 set x $ac_cv_build
2405 shift
2406 build_cpu=$1
2407 build_vendor=$2
2408 shift; shift
2409 # Remember, the first character of IFS is used to create $*,
2410 # except with old shells:
2411 build_os=$*
2412 IFS=$ac_save_IFS
2413 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2416 case ${build_alias} in
2417 "") build_noncanonical=${build} ;;
2418 *) build_noncanonical=${build_alias} ;;
2419 esac
2423 case ${host_alias} in
2424 "") host_noncanonical=${build_noncanonical} ;;
2425 *) host_noncanonical=${host_alias} ;;
2426 esac
2430 case ${target_alias} in
2431 "") target_noncanonical=${host_noncanonical} ;;
2432 *) target_noncanonical=${target_alias} ;;
2433 esac
2438 test "$host_noncanonical" = "$target_noncanonical" &&
2439 test "$program_prefix$program_suffix$program_transform_name" = \
2440 NONENONEs,x,x, &&
2441 program_transform_name=s,y,y,
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2444 $as_echo_n "checking host system type... " >&6; }
2445 if ${ac_cv_host+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 if test "x$host_alias" = x; then
2449 ac_cv_host=$ac_cv_build
2450 else
2451 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2457 $as_echo "$ac_cv_host" >&6; }
2458 case $ac_cv_host in
2459 *-*-*) ;;
2460 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2461 esac
2462 host=$ac_cv_host
2463 ac_save_IFS=$IFS; IFS='-'
2464 set x $ac_cv_host
2465 shift
2466 host_cpu=$1
2467 host_vendor=$2
2468 shift; shift
2469 # Remember, the first character of IFS is used to create $*,
2470 # except with old shells:
2471 host_os=$*
2472 IFS=$ac_save_IFS
2473 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2477 $as_echo_n "checking target system type... " >&6; }
2478 if ${ac_cv_target+:} false; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 if test "x$target_alias" = x; then
2482 ac_cv_target=$ac_cv_host
2483 else
2484 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2485 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2490 $as_echo "$ac_cv_target" >&6; }
2491 case $ac_cv_target in
2492 *-*-*) ;;
2493 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2494 esac
2495 target=$ac_cv_target
2496 ac_save_IFS=$IFS; IFS='-'
2497 set x $ac_cv_target
2498 shift
2499 target_cpu=$1
2500 target_vendor=$2
2501 shift; shift
2502 # Remember, the first character of IFS is used to create $*,
2503 # except with old shells:
2504 target_os=$*
2505 IFS=$ac_save_IFS
2506 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2509 # The aliases save the names the user supplied, while $host etc.
2510 # will get canonicalized.
2511 test -n "$target_alias" &&
2512 test "$program_prefix$program_suffix$program_transform_name" = \
2513 NONENONEs,x,x, &&
2514 program_prefix=${target_alias}-
2516 test "$program_prefix" != NONE &&
2517 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2518 # Use a double $ so make ignores it.
2519 test "$program_suffix" != NONE &&
2520 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2521 # Double any \ or $.
2522 # By default was `s,x,x', remove it if useless.
2523 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2524 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2528 # Get 'install' or 'install-sh' and its variants.
2529 # Find a good install program. We prefer a C program (faster),
2530 # so one script is as good as another. But avoid the broken or
2531 # incompatible versions:
2532 # SysV /etc/install, /usr/sbin/install
2533 # SunOS /usr/etc/install
2534 # IRIX /sbin/install
2535 # AIX /bin/install
2536 # AmigaOS /C/install, which installs bootblocks on floppy discs
2537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2540 # OS/2's system install, which has a completely different semantic
2541 # ./install, which can be erroneously created by make from ./install.sh.
2542 # Reject install programs that cannot install multiple files.
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2544 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2545 if test -z "$INSTALL"; then
2546 if ${ac_cv_path_install+:} false; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 for as_dir in $PATH
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
2554 # Account for people who put trailing slashes in PATH elements.
2555 case $as_dir/ in #((
2556 ./ | .// | /[cC]/* | \
2557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2558 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2559 /usr/ucb/* ) ;;
2561 # OSF1 and SCO ODT 3.0 have their own names for install.
2562 # Don't use installbsd from OSF since it installs stuff as root
2563 # by default.
2564 for ac_prog in ginstall scoinst install; do
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2567 if test $ac_prog = install &&
2568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569 # AIX install. It has an incompatible calling convention.
2571 elif test $ac_prog = install &&
2572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2573 # program-specific install script used by HP pwplus--don't use.
2575 else
2576 rm -rf conftest.one conftest.two conftest.dir
2577 echo one > conftest.one
2578 echo two > conftest.two
2579 mkdir conftest.dir
2580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2581 test -s conftest.one && test -s conftest.two &&
2582 test -s conftest.dir/conftest.one &&
2583 test -s conftest.dir/conftest.two
2584 then
2585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2586 break 3
2590 done
2591 done
2593 esac
2595 done
2596 IFS=$as_save_IFS
2598 rm -rf conftest.one conftest.two conftest.dir
2601 if test "${ac_cv_path_install+set}" = set; then
2602 INSTALL=$ac_cv_path_install
2603 else
2604 # As a last resort, use the slow shell script. Don't cache a
2605 # value for INSTALL within a source directory, because that will
2606 # break other packages using the cache if that directory is
2607 # removed, or if the value is a relative name.
2608 INSTALL=$ac_install_sh
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2612 $as_echo "$INSTALL" >&6; }
2614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2615 # It thinks the first close brace ends the variable substitution.
2616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2623 $as_echo_n "checking whether ln works... " >&6; }
2624 if ${acx_cv_prog_LN+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 rm -f conftestdata_t
2628 echo >conftestdata_f
2629 if ln conftestdata_f conftestdata_t 2>/dev/null
2630 then
2631 acx_cv_prog_LN=ln
2632 else
2633 acx_cv_prog_LN=no
2635 rm -f conftestdata_f conftestdata_t
2638 if test $acx_cv_prog_LN = no; then
2639 LN="cp"
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2641 $as_echo "no, using $LN" >&6; }
2642 else
2643 LN="$acx_cv_prog_LN"
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2645 $as_echo "yes" >&6; }
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2649 $as_echo_n "checking whether ln -s works... " >&6; }
2650 LN_S=$as_ln_s
2651 if test "$LN_S" = "ln -s"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2653 $as_echo "yes" >&6; }
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2656 $as_echo "no, using $LN_S" >&6; }
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2660 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2661 if ${ac_cv_path_SED+:} false; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2665 for ac_i in 1 2 3 4 5 6 7; do
2666 ac_script="$ac_script$as_nl$ac_script"
2667 done
2668 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2669 { ac_script=; unset ac_script;}
2670 if test -z "$SED"; then
2671 ac_path_SED_found=false
2672 # Loop through the user's path and test for each of PROGNAME-LIST
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_prog in sed gsed; do
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2681 as_fn_executable_p "$ac_path_SED" || continue
2682 # Check for GNU ac_path_SED and select it if it is found.
2683 # Check for GNU $ac_path_SED
2684 case `"$ac_path_SED" --version 2>&1` in
2685 *GNU*)
2686 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2688 ac_count=0
2689 $as_echo_n 0123456789 >"conftest.in"
2690 while :
2692 cat "conftest.in" "conftest.in" >"conftest.tmp"
2693 mv "conftest.tmp" "conftest.in"
2694 cp "conftest.in" "conftest.nl"
2695 $as_echo '' >> "conftest.nl"
2696 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2698 as_fn_arith $ac_count + 1 && ac_count=$as_val
2699 if test $ac_count -gt ${ac_path_SED_max-0}; then
2700 # Best one so far, save it but keep looking for a better one
2701 ac_cv_path_SED="$ac_path_SED"
2702 ac_path_SED_max=$ac_count
2704 # 10*(2^10) chars as input seems more than enough
2705 test $ac_count -gt 10 && break
2706 done
2707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2708 esac
2710 $ac_path_SED_found && break 3
2711 done
2712 done
2713 done
2714 IFS=$as_save_IFS
2715 if test -z "$ac_cv_path_SED"; then
2716 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2718 else
2719 ac_cv_path_SED=$SED
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2724 $as_echo "$ac_cv_path_SED" >&6; }
2725 SED="$ac_cv_path_SED"
2726 rm -f conftest.sed
2728 for ac_prog in gawk mawk nawk awk
2730 # Extract the first word of "$ac_prog", so it can be a program name with args.
2731 set dummy $ac_prog; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_AWK+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 if test -n "$AWK"; then
2738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_AWK="$ac_prog"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2751 done
2752 done
2753 IFS=$as_save_IFS
2757 AWK=$ac_cv_prog_AWK
2758 if test -n "$AWK"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2760 $as_echo "$AWK" >&6; }
2761 else
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2767 test -n "$AWK" && break
2768 done
2771 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2773 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2774 # a relative path.
2775 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2776 INSTALL="${srcpwd}/install-sh -c"
2779 # Set srcdir to "." if that's what it is.
2780 # This is important for multilib support.
2781 pwd=`${PWDCMD-pwd}`
2782 if test "${pwd}" = "${srcpwd}" ; then
2783 srcdir=.
2786 topsrcdir=$srcpwd
2788 extra_host_args=
2790 ### To add a new directory to the tree, first choose whether it is a target
2791 ### or a host dependent tool. Then put it into the appropriate list
2792 ### (library or tools, host or target), doing a dependency sort.
2794 # Subdirs will be configured in the order listed in build_configdirs,
2795 # configdirs, or target_configdirs; see the serialization section below.
2797 # Dependency sorting is only needed when *configuration* must be done in
2798 # a particular order. In all cases a dependency should be specified in
2799 # the Makefile, whether or not it's implicitly specified here.
2801 # Double entries in build_configdirs, configdirs, or target_configdirs may
2802 # cause circular dependencies and break everything horribly.
2804 # these library is used by various programs built for the build
2805 # environment
2807 build_libs="build-libiberty build-libcpp"
2809 # these tools are built for the build environment
2810 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2812 # these libraries are used by various programs built for the host environment
2814 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2816 # these tools are built for the host environment
2817 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2818 # know that we are building the simulator.
2819 # binutils, gas and ld appear in that order because it makes sense to run
2820 # "make check" in that particular order.
2821 # If --enable-gold is used, "gold" may replace "ld".
2822 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2824 # these libraries are built for the target environment, and are built after
2825 # the host libraries and the host tools (which may be a cross compiler)
2826 # Note that libiberty is not a target library.
2827 target_libraries="target-libgcc \
2828 target-libbacktrace \
2829 target-libgloss \
2830 target-newlib \
2831 target-libgomp \
2832 target-liboffloadmic \
2833 target-libatomic \
2834 target-libitm \
2835 target-libstdc++-v3 \
2836 target-libsanitizer \
2837 target-libvtv \
2838 target-libssp \
2839 target-libquadmath \
2840 target-libgfortran \
2841 target-libffi \
2842 target-libobjc \
2843 target-libada \
2844 target-libgo \
2845 target-libphobos \
2846 target-zlib"
2848 # these tools are built using the target libraries, and are intended to
2849 # run only in the target environment
2851 # note: any program that *uses* libraries that are in the "target_libraries"
2852 # list belongs in this list.
2854 target_tools="target-rda"
2856 ################################################################################
2858 ## All tools belong in one of the four categories, and are assigned above
2859 ## We assign ${configdirs} this way to remove all embedded newlines. This
2860 ## is important because configure will choke if they ever get through.
2861 ## ${configdirs} is directories we build using the host tools.
2862 ## ${target_configdirs} is directories we build using the target tools.
2863 configdirs=`echo ${host_libs} ${host_tools}`
2864 target_configdirs=`echo ${target_libraries} ${target_tools}`
2865 build_configdirs=`echo ${build_libs} ${build_tools}`
2869 ################################################################################
2871 srcname="gnu development package"
2873 # This gets set non-empty for some net releases of packages.
2874 appdirs=""
2876 # Define is_cross_compiler to save on calls to 'test'.
2877 is_cross_compiler=
2878 if test x"${host}" = x"${target}" ; then
2879 is_cross_compiler=no
2880 else
2881 is_cross_compiler=yes
2884 # Find the build and target subdir names.
2886 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2887 # have matching libraries, they should use host libraries: Makefile.tpl
2888 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2889 # However, they still use the build modules, because the corresponding
2890 # host modules (e.g. bison) are only built for the host when bootstrap
2891 # finishes. So:
2892 # - build_subdir is where we find build modules, and never changes.
2893 # - build_libsubdir is where we find build libraries, and can be overridden.
2895 # Prefix 'build-' so this never conflicts with target_subdir.
2896 build_subdir="build-${build_noncanonical}"
2898 # Check whether --with-build-libsubdir was given.
2899 if test "${with_build_libsubdir+set}" = set; then :
2900 withval=$with_build_libsubdir; build_libsubdir="$withval"
2901 else
2902 build_libsubdir="$build_subdir"
2905 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2906 if ( test $srcdir = . && test -d gcc ) \
2907 || test -d $srcdir/../host-${host_noncanonical}; then
2908 host_subdir="host-${host_noncanonical}"
2909 else
2910 host_subdir=.
2912 # No prefix.
2913 target_subdir=${target_noncanonical}
2915 # Be sure to cover against remnants of an in-tree build.
2916 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2917 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2918 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2921 # Skipdirs are removed silently.
2922 skipdirs=
2923 # Noconfigdirs are removed loudly.
2924 noconfigdirs=""
2926 use_gnu_ld=
2927 # Make sure we don't let GNU ld be added if we didn't want it.
2928 if test x$with_gnu_ld = xno ; then
2929 use_gnu_ld=no
2930 noconfigdirs="$noconfigdirs ld gold"
2933 use_gnu_as=
2934 # Make sure we don't let GNU as be added if we didn't want it.
2935 if test x$with_gnu_as = xno ; then
2936 use_gnu_as=no
2937 noconfigdirs="$noconfigdirs gas"
2940 use_included_zlib=
2942 # Check whether --with-system-zlib was given.
2943 if test "${with_system_zlib+set}" = set; then :
2944 withval=$with_system_zlib;
2947 # Make sure we don't let ZLIB be added if we didn't want it.
2948 if test x$with_system_zlib = xyes ; then
2949 use_included_zlib=no
2950 noconfigdirs="$noconfigdirs zlib"
2953 # some tools are so dependent upon X11 that if we're not building with X,
2954 # it's not even worth trying to configure, much less build, that tool.
2956 case ${with_x} in
2957 yes | "") ;; # the default value for this tree is that X11 is available
2959 skipdirs="${skipdirs} tk itcl libgui"
2960 # We won't be able to build gdbtk without X.
2961 enable_gdbtk=no
2963 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2964 esac
2966 # Some are only suitable for cross toolchains.
2967 # Remove these if host=target.
2968 cross_only="target-libgloss target-newlib target-opcodes"
2970 case $is_cross_compiler in
2971 no) skipdirs="${skipdirs} ${cross_only}" ;;
2972 esac
2974 # If both --with-headers and --with-libs are specified, default to
2975 # --without-newlib.
2976 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2977 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2978 if test x"${with_newlib}" = x ; then
2979 with_newlib=no
2983 # Recognize --with-newlib/--without-newlib.
2984 case ${with_newlib} in
2985 no) skipdirs="${skipdirs} target-newlib" ;;
2986 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2987 esac
2989 # Check whether --enable-as-accelerator-for was given.
2990 if test "${enable_as_accelerator_for+set}" = set; then :
2991 enableval=$enable_as_accelerator_for;
2995 # Check whether --enable-offload-targets was given.
2996 if test "${enable_offload_targets+set}" = set; then :
2997 enableval=$enable_offload_targets;
2998 if test x"$enable_offload_targets" = x; then
2999 as_fn_error $? "no offload targets specified" "$LINENO" 5
3002 else
3003 enable_offload_targets=
3007 # Check whether --enable-offload-defaulted was given.
3008 if test "${enable_offload_defaulted+set}" = set; then :
3009 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3010 else
3011 enable_offload_defaulted=
3015 # Handle --enable-gold, --enable-ld.
3016 # --disable-gold [--enable-ld]
3017 # Build only ld. Default option.
3018 # --enable-gold [--enable-ld]
3019 # Build both gold and ld. Install gold as "ld.gold", install ld
3020 # as "ld.bfd" and "ld".
3021 # --enable-gold=default [--enable-ld]
3022 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3023 # install ld as "ld.bfd".
3024 # --enable-gold[=default] --disable-ld
3025 # Build only gold, which is then installed as both "ld.gold" and "ld".
3026 # --enable-gold --enable-ld=default
3027 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3028 # and ld.bfd).
3029 # In other words, ld is default
3030 # --enable-gold=default --enable-ld=default
3031 # Error.
3033 default_ld=
3034 # Check whether --enable-gold was given.
3035 if test "${enable_gold+set}" = set; then :
3036 enableval=$enable_gold; ENABLE_GOLD=$enableval
3037 else
3038 ENABLE_GOLD=no
3041 case "${ENABLE_GOLD}" in
3042 yes|default)
3043 # Check for ELF target.
3044 is_elf=no
3045 case "${target}" in
3046 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3047 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3048 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3049 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3050 case "${target}" in
3051 *-*-linux*aout* | *-*-linux*oldld*)
3054 is_elf=yes
3056 esac
3057 esac
3059 if test "$is_elf" = "yes"; then
3060 # Check for target supported by gold.
3061 case "${target}" in
3062 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3063 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3064 configdirs="$configdirs gold"
3065 if test x${ENABLE_GOLD} = xdefault; then
3066 default_ld=gold
3068 ENABLE_GOLD=yes
3070 esac
3076 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3078 esac
3080 # Check whether --enable-ld was given.
3081 if test "${enable_ld+set}" = set; then :
3082 enableval=$enable_ld; ENABLE_LD=$enableval
3083 else
3084 ENABLE_LD=yes
3088 case "${ENABLE_LD}" in
3089 default)
3090 if test x${default_ld} != x; then
3091 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3094 yes)
3097 if test x${ENABLE_GOLD} != xyes; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3099 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3101 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3104 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3106 esac
3108 # PR gas/19109
3109 # Decide the default method for compressing debug sections.
3110 # Provide a configure time option to override our default.
3111 # Check whether --enable-compressed_debug_sections was given.
3112 if test "${enable_compressed_debug_sections+set}" = set; then :
3113 enableval=$enable_compressed_debug_sections;
3114 if test x"$enable_compressed_debug_sections" = xyes; then
3115 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3118 else
3119 enable_compressed_debug_sections=
3123 # Configure extra directories which are host specific
3125 case "${host}" in
3126 *-cygwin*)
3127 configdirs="$configdirs libtermcap" ;;
3128 esac
3130 # A target can indicate whether a language isn't supported for some reason.
3131 # Only spaces may be used in this macro; not newlines or tabs.
3132 unsupported_languages=
3134 # Remove more programs from consideration, based on the host or
3135 # target this usually means that a port of the program doesn't
3136 # exist yet.
3138 case "${host}" in
3139 i[3456789]86-*-msdosdjgpp*)
3140 noconfigdirs="$noconfigdirs tcl tk itcl"
3142 esac
3145 # Check whether --enable-libquadmath was given.
3146 if test "${enable_libquadmath+set}" = set; then :
3147 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3148 else
3149 ENABLE_LIBQUADMATH=yes
3152 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3153 noconfigdirs="$noconfigdirs target-libquadmath"
3157 # Check whether --enable-libquadmath-support was given.
3158 if test "${enable_libquadmath_support+set}" = set; then :
3159 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3160 else
3161 ENABLE_LIBQUADMATH_SUPPORT=yes
3164 enable_libquadmath_support=
3165 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3166 enable_libquadmath_support=no
3170 # Check whether --enable-libada was given.
3171 if test "${enable_libada+set}" = set; then :
3172 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3173 else
3174 ENABLE_LIBADA=yes
3177 if test "${ENABLE_LIBADA}" != "yes" ; then
3178 noconfigdirs="$noconfigdirs gnattools"
3181 # Check whether --enable-libssp was given.
3182 if test "${enable_libssp+set}" = set; then :
3183 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3184 else
3185 ENABLE_LIBSSP=yes
3189 # Check whether --enable-libstdcxx was given.
3190 if test "${enable_libstdcxx+set}" = set; then :
3191 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3192 else
3193 ENABLE_LIBSTDCXX=default
3196 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3197 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3200 # If this is accelerator compiler and its target is intelmic we enable
3201 # target liboffloadmic by default. If this is compiler with offloading
3202 # for intelmic we enable host liboffloadmic by default. Otherwise
3203 # liboffloadmic is disabled by default.
3204 # Check whether --enable-liboffloadmic was given.
3205 if test "${enable_liboffloadmic+set}" = set; then :
3206 enableval=$enable_liboffloadmic; case "$enableval" in
3207 no | host | target)
3208 enable_liboffloadmic=$enableval ;;
3210 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3211 esac
3212 else
3213 if test x"$enable_as_accelerator_for" != x; then
3214 case "${target}" in
3215 *-intelmic-* | *-intelmicemul-*)
3216 enable_liboffloadmic=target
3217 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3220 enable_liboffloadmic=no
3222 esac
3223 else
3224 case "${enable_offload_targets}" in
3225 *-intelmic-* | *-intelmicemul-*)
3226 enable_liboffloadmic=host
3227 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3230 enable_liboffloadmic=no
3232 esac
3238 # Enable libgomp by default on hosted POSIX systems, and a few others.
3239 if test x$enable_libgomp = x ; then
3240 case "${target}" in
3241 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3243 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3245 *-*-solaris2* | *-*-hpux11*)
3247 *-*-darwin* | *-*-aix*)
3249 nvptx*-*-* | amdgcn*-*-*)
3252 noconfigdirs="$noconfigdirs target-libgomp"
3254 esac
3257 # Disable libatomic on unsupported systems.
3258 if test -d ${srcdir}/libatomic; then
3259 if test x$enable_libatomic = x; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3261 $as_echo_n "checking for libatomic support... " >&6; }
3262 if (srcdir=${srcdir}/libatomic; \
3263 . ${srcdir}/configure.tgt; \
3264 test -n "$UNSUPPORTED")
3265 then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 noconfigdirs="$noconfigdirs target-libatomic"
3269 else
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3271 $as_echo "yes" >&6; }
3276 # Disable liboffloadmic on unsupported systems.
3277 if test -d ${srcdir}/liboffloadmic; then
3278 if test x$enable_liboffloadmic != xno; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3280 $as_echo_n "checking for liboffloadmic support... " >&6; }
3281 if (srcdir=${srcdir}/liboffloadmic; \
3282 . ${srcdir}/configure.tgt; \
3283 test -n "$UNSUPPORTED")
3284 then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 noconfigdirs="$noconfigdirs target-liboffloadmic"
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290 $as_echo "yes" >&6; }
3295 # Disable libitm on unsupported systems.
3296 if test -d ${srcdir}/libitm; then
3297 if test x$enable_libitm = x; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3299 $as_echo_n "checking for libitm support... " >&6; }
3300 if (srcdir=${srcdir}/libitm; \
3301 . ${srcdir}/configure.tgt; \
3302 test -n "$UNSUPPORTED")
3303 then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 noconfigdirs="$noconfigdirs target-libitm"
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309 $as_echo "yes" >&6; }
3314 # Disable libsanitizer on unsupported systems.
3315 if test -d ${srcdir}/libsanitizer; then
3316 if test x$enable_libsanitizer = x; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3318 $as_echo_n "checking for libsanitizer support... " >&6; }
3319 if (srcdir=${srcdir}/libsanitizer; \
3320 . ${srcdir}/configure.tgt; \
3321 test -n "$UNSUPPORTED")
3322 then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 noconfigdirs="$noconfigdirs target-libsanitizer"
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3333 # Disable libvtv on unsupported systems.
3334 if test -d ${srcdir}/libvtv; then
3335 if test x$enable_libvtv = x; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3337 $as_echo_n "checking for libvtv support... " >&6; }
3338 if (srcdir=${srcdir}/libvtv; \
3339 . ${srcdir}/configure.tgt; \
3340 test "$VTV_SUPPORTED" != "yes")
3341 then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 noconfigdirs="$noconfigdirs target-libvtv"
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347 $as_echo "yes" >&6; }
3352 # Disable libquadmath for some systems.
3353 case "${target}" in
3354 avr-*-*)
3355 noconfigdirs="$noconfigdirs target-libquadmath"
3357 # libquadmath is unused on AIX and libquadmath build process use of
3358 # LD_LIBRARY_PATH can break AIX bootstrap.
3359 powerpc-*-aix* | rs6000-*-aix*)
3360 noconfigdirs="$noconfigdirs target-libquadmath"
3362 esac
3364 # Disable libssp for some systems.
3365 case "${target}" in
3366 avr-*-*)
3367 # No hosted I/O support.
3368 noconfigdirs="$noconfigdirs target-libssp"
3370 bpf-*-*)
3371 noconfigdirs="$noconfigdirs target-libssp"
3373 powerpc-*-aix* | rs6000-*-aix*)
3374 noconfigdirs="$noconfigdirs target-libssp"
3376 pru-*-*)
3377 # No hosted I/O support.
3378 noconfigdirs="$noconfigdirs target-libssp"
3380 rl78-*-*)
3381 # libssp uses a misaligned load to trigger a fault, but the RL78
3382 # doesn't fault for those - instead, it gives a build-time error
3383 # for explicit misaligned loads.
3384 noconfigdirs="$noconfigdirs target-libssp"
3386 visium-*-*)
3387 # No hosted I/O support.
3388 noconfigdirs="$noconfigdirs target-libssp"
3390 esac
3392 # Disable libstdc++-v3 for some systems.
3393 # Allow user to override this if they pass --enable-libstdc++-v3
3394 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3395 case "${target}" in
3396 *-*-vxworks*)
3397 # VxWorks uses the Dinkumware C++ library.
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3400 amdgcn*-*-*)
3401 # Not ported/fails to build when using newlib.
3402 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3404 arm*-wince-pe*)
3405 # the C++ libraries don't build on top of CE's C libraries
3406 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408 avr-*-*)
3409 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3411 bpf-*-*)
3412 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3414 ft32-*-*)
3415 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3417 esac
3420 # Disable C++ on systems where it is known to not work.
3421 # For testing, you can override this with --enable-languages=c++.
3422 case ,${enable_languages}, in
3423 *,c++,*)
3426 case "${target}" in
3427 bpf-*-*)
3428 unsupported_languages="$unsupported_languages c++"
3430 esac
3432 esac
3434 # Disable Objc on systems where it is known to not work.
3435 # For testing, you can override this with --enable-languages=objc.
3436 case ,${enable_languages}, in
3437 *,objc,*)
3440 case "${target}" in
3441 bpf-*-*)
3442 unsupported_languages="$unsupported_languages objc"
3444 esac
3446 esac
3448 # Disable D on systems where it is known to not work.
3449 # For testing, you can override this with --enable-languages=d.
3450 case ,${enable_languages}, in
3451 *,d,*)
3454 case "${target}" in
3455 bpf-*-*)
3456 unsupported_languages="$unsupported_languages d"
3458 esac
3460 esac
3462 # Disable libphobos on unsupported systems.
3463 # For testing, you can override this with --enable-libphobos.
3464 if test -d ${srcdir}/libphobos; then
3465 if test x$enable_libphobos = x; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3467 $as_echo_n "checking for libphobos support... " >&6; }
3468 if (srcdir=${srcdir}/libphobos; \
3469 . ${srcdir}/configure.tgt; \
3470 test "$LIBPHOBOS_SUPPORTED" != "yes")
3471 then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3474 noconfigdirs="$noconfigdirs target-libphobos"
3475 else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3477 $as_echo "yes" >&6; }
3482 # Disable Fortran for some systems.
3483 case "${target}" in
3484 mmix-*-*)
3485 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3486 unsupported_languages="$unsupported_languages fortran"
3488 bpf-*-*)
3489 unsupported_languages="$unsupported_languages fortran"
3491 esac
3493 # Disable libffi for some systems.
3494 case "${target}" in
3495 powerpc-*-darwin*)
3497 i[3456789]86-*-darwin*)
3499 x86_64-*-darwin[912]*)
3501 *-*-darwin*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3504 *-*-netware*)
3505 noconfigdirs="$noconfigdirs target-libffi"
3507 *-*-phoenix*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3510 *-*-rtems*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3513 *-*-tpf*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3516 *-*-uclinux*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3519 *-*-vxworks*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3522 aarch64*-*-freebsd*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3525 alpha*-*-*vms*)
3526 noconfigdirs="$noconfigdirs target-libffi"
3528 arm*-*-freebsd*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3531 arm-wince-pe)
3532 noconfigdirs="$noconfigdirs target-libffi"
3534 arm*-*-symbianelf*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3537 bpf-*-*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3540 cris-*-* | crisv32-*-*)
3541 case "${target}" in
3542 *-*-linux*)
3544 *) # See PR46792 regarding target-libffi.
3545 noconfigdirs="$noconfigdirs target-libffi";;
3546 esac
3548 hppa*64*-*-hpux*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3551 hppa*-hp-hpux11*)
3553 hppa*-*-hpux*)
3554 noconfigdirs="$noconfigdirs target-libffi"
3556 ia64*-*-*vms*)
3557 noconfigdirs="$noconfigdirs target-libffi"
3559 i[3456789]86-w64-mingw*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3562 i[3456789]86-*-mingw*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3565 x86_64-*-mingw*)
3566 noconfigdirs="$noconfigdirs target-libffi"
3568 mmix-*-*)
3569 noconfigdirs="$noconfigdirs target-libffi"
3571 powerpc-*-aix*)
3573 rs6000-*-aix*)
3575 ft32-*-*)
3576 noconfigdirs="$noconfigdirs target-libffi"
3578 *-*-lynxos*)
3579 noconfigdirs="$noconfigdirs target-libffi"
3581 esac
3583 # Disable the go frontend on systems where it is known to not work. Please keep
3584 # this in sync with contrib/config-list.mk.
3585 case "${target}" in
3586 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3587 unsupported_languages="$unsupported_languages go"
3589 esac
3591 # Only allow gdbserver on some systems.
3592 if test -d ${srcdir}/gdbserver; then
3593 if test x$enable_gdbserver = x; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3595 $as_echo_n "checking for gdbserver support... " >&6; }
3596 if (srcdir=${srcdir}/gdbserver; \
3597 . ${srcdir}/configure.srv; \
3598 test -n "$UNSUPPORTED")
3599 then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3602 noconfigdirs="$noconfigdirs gdbserver"
3603 else
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3605 $as_echo "yes" >&6; }
3610 # Disable libgo for some systems where it is known to not work.
3611 # For testing, you can easily override this with --enable-libgo.
3612 if test x$enable_libgo = x; then
3613 case "${target}" in
3614 *-*-darwin*)
3615 # PR 46986
3616 noconfigdirs="$noconfigdirs target-libgo"
3618 *-*-cygwin* | *-*-mingw*)
3619 noconfigdirs="$noconfigdirs target-libgo"
3621 bpf-*-*)
3622 noconfigdirs="$noconfigdirs target-libgo"
3624 esac
3627 # Default libgloss CPU subdirectory.
3628 libgloss_dir="$target_cpu"
3630 case "${target}" in
3631 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3632 libgloss_dir=wince
3634 aarch64*-*-* )
3635 libgloss_dir=aarch64
3637 arm*-*-*)
3638 libgloss_dir=arm
3640 cris-*-* | crisv32-*-*)
3641 libgloss_dir=cris
3643 hppa*-*-*)
3644 libgloss_dir=pa
3646 i[3456789]86-*-*)
3647 libgloss_dir=i386
3649 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3650 libgloss_dir=m68hc11
3652 m68*-*-* | fido-*-*)
3653 libgloss_dir=m68k
3655 mips*-*-*)
3656 libgloss_dir=mips
3658 powerpc*-*-*)
3659 libgloss_dir=rs6000
3661 pru-*-*)
3662 libgloss_dir=pru
3664 sparc*-*-*)
3665 libgloss_dir=sparc
3667 esac
3669 # Disable newlib and libgloss for various target OSes.
3670 case "${target}" in
3671 alpha*-dec-osf*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674 i[3456789]86-*-linux*)
3675 # This section makes it possible to build newlib natively on linux.
3676 # If we are using a cross compiler then don't configure newlib.
3677 if test x${is_cross_compiler} != xno ; then
3678 noconfigdirs="$noconfigdirs target-newlib"
3680 noconfigdirs="$noconfigdirs target-libgloss"
3681 # If we are not using a cross compiler, do configure newlib.
3682 # Note however, that newlib will only be configured in this situation
3683 # if the --with-newlib option has been given, because otherwise
3684 # 'target-newlib' will appear in skipdirs.
3686 i[3456789]86-*-rdos*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 sparc-*-sunos4*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 bpf-*-*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 *-*-aix*)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 *-*-beos*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 *-*-chorusos)
3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 *-*-dragonfly*)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 *-*-freebsd*)
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 *-*-lynxos*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 *-*-mingw*)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 *-*-netbsd*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 *-*-netware*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 *-*-tpf*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 *-*-uclinux*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 *-*-vxworks*)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 esac
3739 case "${target}" in
3740 *-*-chorusos)
3742 aarch64-*-darwin*)
3743 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744 noconfigdirs="$noconfigdirs sim target-rda"
3746 amdgcn*-*-*)
3748 arm-*-darwin*)
3749 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3750 noconfigdirs="$noconfigdirs sim target-rda"
3752 powerpc-*-darwin*)
3753 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3754 noconfigdirs="$noconfigdirs sim target-rda"
3756 i[3456789]86-*-darwin*)
3757 noconfigdirs="$noconfigdirs ld gprof"
3758 noconfigdirs="$noconfigdirs sim target-rda"
3760 x86_64-*-darwin[912]*)
3761 noconfigdirs="$noconfigdirs ld gas gprof"
3762 noconfigdirs="$noconfigdirs sim target-rda"
3764 *-*-darwin*)
3765 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3766 noconfigdirs="$noconfigdirs sim target-rda"
3768 *-*-dragonfly*)
3770 *-*-freebsd*)
3771 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3772 && ! test -d ${srcdir}/gmp \
3773 && test -f /usr/local/include/gmp.h; then
3774 with_gmp=/usr/local
3777 *-*-kaos*)
3778 # Remove unsupported stuff on all kaOS configurations.
3779 noconfigdirs="$noconfigdirs target-libgloss"
3781 *-*-netbsd*)
3783 *-*-netware*)
3785 *-*-phoenix*)
3786 noconfigdirs="$noconfigdirs target-libgloss"
3788 *-*-rtems*)
3789 noconfigdirs="$noconfigdirs target-libgloss"
3791 # The tpf target doesn't support gdb yet.
3792 *-*-tpf*)
3793 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3795 *-*-uclinux*)
3796 noconfigdirs="$noconfigdirs target-rda"
3798 *-*-vxworks*)
3800 alpha*-dec-osf*)
3801 # ld works, but does not support shared libraries.
3802 # gas doesn't generate exception information.
3803 noconfigdirs="$noconfigdirs gas ld"
3805 alpha*-*-*vms*)
3806 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3808 alpha*-*-*)
3809 # newlib is not 64 bit ready
3810 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3812 bpf-*-*)
3813 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3815 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3816 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3818 arc*-*-*)
3819 noconfigdirs="$noconfigdirs sim"
3821 arm-*-pe*)
3822 noconfigdirs="$noconfigdirs target-libgloss"
3824 arm-*-riscix*)
3825 noconfigdirs="$noconfigdirs ld target-libgloss"
3827 avr-*-*)
3828 if test x${with_avrlibc} != xno; then
3829 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3832 c4x-*-* | tic4x-*-*)
3833 noconfigdirs="$noconfigdirs target-libgloss"
3835 tic54x-*-*)
3836 noconfigdirs="$noconfigdirs target-libgloss gdb"
3838 d10v-*-*)
3839 noconfigdirs="$noconfigdirs target-libgloss"
3841 d30v-*-*)
3842 noconfigdirs="$noconfigdirs gdb"
3844 fr30-*-elf*)
3845 noconfigdirs="$noconfigdirs gdb"
3847 ft32-*-*)
3848 noconfigdirs="$noconfigdirs target-rda gprof"
3850 moxie-*-*)
3851 noconfigdirs="$noconfigdirs"
3853 h8300*-*-*)
3854 noconfigdirs="$noconfigdirs target-libgloss"
3856 h8500-*-*)
3857 noconfigdirs="$noconfigdirs target-libgloss"
3859 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3861 hppa*64*-*-hpux*)
3862 noconfigdirs="$noconfigdirs gdb"
3864 hppa*-*-hpux11*)
3865 noconfigdirs="$noconfigdirs gdb ld"
3867 hppa*64*-*-linux*)
3869 hppa*-*-linux*)
3871 hppa*-*-*elf* | \
3872 hppa*-*-lites* | \
3873 hppa*-*-openbsd* | \
3874 hppa*64*-*-*)
3876 hppa*-*-pro*)
3878 hppa*-*-*)
3879 noconfigdirs="$noconfigdirs ld"
3881 i960-*-*)
3882 noconfigdirs="$noconfigdirs gdb"
3884 ia64*-*-elf*)
3885 # No gdb support yet.
3886 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3888 ia64*-**-hpux*)
3889 # No ld support yet.
3890 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3892 ia64*-*-*vms*)
3893 # No ld support yet.
3894 noconfigdirs="$noconfigdirs libgui itcl ld"
3896 i[3456789]86-w64-mingw*)
3898 i[3456789]86-*-mingw*)
3899 target_configdirs="$target_configdirs target-winsup"
3901 *-*-cygwin*)
3902 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3903 noconfigdirs="$noconfigdirs target-libgloss"
3904 # always build newlib if winsup directory is present.
3905 if test -d "$srcdir/winsup/cygwin"; then
3906 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3907 elif test -d "$srcdir/newlib"; then
3908 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3911 i[3456789]86-*-pe)
3912 noconfigdirs="$noconfigdirs target-libgloss"
3914 i[3456789]86-*-sco3.2v5*)
3915 # The linker does not yet know about weak symbols in COFF,
3916 # and is not configured to handle mixed ELF and COFF.
3917 noconfigdirs="$noconfigdirs ld target-libgloss"
3919 i[3456789]86-*-sco*)
3920 noconfigdirs="$noconfigdirs gprof target-libgloss"
3922 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3923 noconfigdirs="$noconfigdirs target-libgloss"
3925 i[3456789]86-*-sysv4*)
3926 noconfigdirs="$noconfigdirs target-libgloss"
3928 i[3456789]86-*-beos*)
3929 noconfigdirs="$noconfigdirs gdb"
3931 i[3456789]86-*-rdos*)
3932 noconfigdirs="$noconfigdirs gdb"
3934 mmix-*-*)
3935 noconfigdirs="$noconfigdirs gdb"
3937 mt-*-*)
3938 noconfigdirs="$noconfigdirs sim"
3940 nfp-*-*)
3941 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3942 noconfigdirs="$noconfigdirs $target_libraries"
3944 pdp11-*-*)
3945 noconfigdirs="$noconfigdirs gdb gprof"
3947 powerpc-*-aix*)
3948 # copied from rs6000-*-* entry
3949 noconfigdirs="$noconfigdirs gprof"
3951 powerpc*-*-winnt* | powerpc*-*-pe*)
3952 target_configdirs="$target_configdirs target-winsup"
3953 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3954 # always build newlib.
3955 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3957 # This is temporary until we can link against shared libraries
3958 powerpcle-*-solaris*)
3959 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3961 powerpc-*-beos*)
3962 noconfigdirs="$noconfigdirs gdb"
3964 rs6000-*-lynxos*)
3965 noconfigdirs="$noconfigdirs gprof"
3967 rs6000-*-aix*)
3968 noconfigdirs="$noconfigdirs gprof"
3970 rs6000-*-*)
3971 noconfigdirs="$noconfigdirs gprof"
3973 m68k-apollo-*)
3974 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3976 microblaze*)
3977 noconfigdirs="$noconfigdirs gprof"
3979 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3980 if test x$with_newlib = xyes; then
3981 noconfigdirs="$noconfigdirs gprof"
3984 mips*-*-irix5*)
3985 noconfigdirs="$noconfigdirs gprof target-libgloss"
3987 mips*-*-irix6*)
3988 noconfigdirs="$noconfigdirs gprof target-libgloss"
3990 mips*-*-bsd*)
3991 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3993 mips*-*-linux*)
3995 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3996 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3997 noconfigdirs="$noconfigdirs ld gas gprof"
3999 mips*-*-*)
4000 noconfigdirs="$noconfigdirs gprof"
4002 nvptx*-*-*)
4003 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4005 sh-*-*)
4006 case "${target}" in
4007 sh*-*-elf)
4010 noconfigdirs="$noconfigdirs target-libgloss" ;;
4011 esac
4013 sparc-*-sunos4*)
4014 if test x${is_cross_compiler} = xno ; then
4015 use_gnu_ld=no
4018 tic6x-*-*)
4019 noconfigdirs="$noconfigdirs sim"
4021 tilepro*-*-* | tilegx*-*-*)
4022 noconfigdirs="$noconfigdirs sim"
4024 v810-*-*)
4025 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4027 vax-*-*)
4028 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4030 wasm32-*-*)
4031 noconfigdirs="$noconfigdirs ld"
4033 esac
4035 # If we aren't building newlib, then don't build libgloss, since libgloss
4036 # depends upon some newlib header files.
4037 case "${noconfigdirs}" in
4038 *target-libgloss*) ;;
4039 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4040 esac
4042 # Work in distributions that contain no compiler tools, like Autoconf.
4043 host_makefile_frag=/dev/null
4044 if test -d ${srcdir}/config ; then
4045 case "${host}" in
4046 i[3456789]86-*-msdosdjgpp*)
4047 host_makefile_frag="config/mh-djgpp"
4049 *-cygwin*)
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4052 $as_echo_n "checking to see if cat works as expected... " >&6; }
4053 echo a >cygwin-cat-check
4054 if test `cat cygwin-cat-check` = a ; then
4055 rm cygwin-cat-check
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4057 $as_echo "yes" >&6; }
4058 else
4059 rm cygwin-cat-check
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4062 as_fn_error $? "The cat command does not ignore carriage return characters.
4063 Please either mount the build directory in binary mode or run the following
4064 commands before running any configure script:
4065 set -o igncr
4066 export SHELLOPTS
4067 " "$LINENO" 5
4070 host_makefile_frag="config/mh-cygwin"
4072 *-mingw*)
4073 host_makefile_frag="config/mh-mingw"
4075 alpha*-linux*)
4076 host_makefile_frag="config/mh-alpha-linux"
4078 hppa*-hp-hpux10*)
4079 host_makefile_frag="config/mh-pa-hpux10"
4081 hppa*-hp-hpux*)
4082 host_makefile_frag="config/mh-pa"
4084 hppa*-*)
4085 host_makefile_frag="config/mh-pa"
4087 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4088 host_makefile_frag="config/mh-darwin"
4090 powerpc-*-aix*)
4091 host_makefile_frag="config/mh-ppc-aix"
4093 rs6000-*-aix*)
4094 host_makefile_frag="config/mh-ppc-aix"
4096 esac
4099 if test "${build}" != "${host}" ; then
4100 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4101 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4102 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4103 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4104 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4105 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4106 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4107 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4108 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4109 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4110 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4111 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4112 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4113 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4114 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4115 else
4116 AR_FOR_BUILD="\$(AR)"
4117 AS_FOR_BUILD="\$(AS)"
4118 CC_FOR_BUILD="\$(CC)"
4119 CXX_FOR_BUILD="\$(CXX)"
4120 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4121 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4122 GOC_FOR_BUILD="\$(GOC)"
4123 GDC_FOR_BUILD="\$(GDC)"
4124 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4125 LD_FOR_BUILD="\$(LD)"
4126 NM_FOR_BUILD="\$(NM)"
4127 RANLIB_FOR_BUILD="\$(RANLIB)"
4128 WINDRES_FOR_BUILD="\$(WINDRES)"
4129 WINDMC_FOR_BUILD="\$(WINDMC)"
4132 ac_ext=c
4133 ac_cpp='$CPP $CPPFLAGS'
4134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137 if test -n "$ac_tool_prefix"; then
4138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 $as_echo_n "checking for $ac_word... " >&6; }
4142 if ${ac_cv_prog_CC+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 if test -n "$CC"; then
4146 ac_cv_prog_CC="$CC" # Let the user override the test.
4147 else
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 break 2
4159 done
4160 done
4161 IFS=$as_save_IFS
4165 CC=$ac_cv_prog_CC
4166 if test -n "$CC"; then
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168 $as_echo "$CC" >&6; }
4169 else
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 $as_echo "no" >&6; }
4176 if test -z "$ac_cv_prog_CC"; then
4177 ac_ct_CC=$CC
4178 # Extract the first word of "gcc", so it can be a program name with args.
4179 set dummy gcc; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_ac_ct_CC="gcc"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4199 done
4200 done
4201 IFS=$as_save_IFS
4205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4206 if test -n "$ac_ct_CC"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4208 $as_echo "$ac_ct_CC" >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4214 if test "x$ac_ct_CC" = x; then
4215 CC=""
4216 else
4217 case $cross_compiling:$ac_tool_warned in
4218 yes:)
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221 ac_tool_warned=yes ;;
4222 esac
4223 CC=$ac_ct_CC
4225 else
4226 CC="$ac_cv_prog_CC"
4229 if test -z "$CC"; then
4230 if test -n "$ac_tool_prefix"; then
4231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4232 set dummy ${ac_tool_prefix}cc; ac_word=$2
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234 $as_echo_n "checking for $ac_word... " >&6; }
4235 if ${ac_cv_prog_CC+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 if test -n "$CC"; then
4239 ac_cv_prog_CC="$CC" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248 ac_cv_prog_CC="${ac_tool_prefix}cc"
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4252 done
4253 done
4254 IFS=$as_save_IFS
4258 CC=$ac_cv_prog_CC
4259 if test -n "$CC"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4261 $as_echo "$CC" >&6; }
4262 else
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 $as_echo "no" >&6; }
4270 if test -z "$CC"; then
4271 # Extract the first word of "cc", so it can be a program name with args.
4272 set dummy cc; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_CC+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC="$CC" # Let the user override the test.
4280 else
4281 ac_prog_rejected=no
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4290 ac_prog_rejected=yes
4291 continue
4293 ac_cv_prog_CC="cc"
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4297 done
4298 done
4299 IFS=$as_save_IFS
4301 if test $ac_prog_rejected = yes; then
4302 # We found a bogon in the path, so make sure we never use it.
4303 set dummy $ac_cv_prog_CC
4304 shift
4305 if test $# != 0; then
4306 # We chose a different compiler from the bogus one.
4307 # However, it has the same basename, so the bogon will be chosen
4308 # first if we set CC to just the basename; use the full file name.
4309 shift
4310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4315 CC=$ac_cv_prog_CC
4316 if test -n "$CC"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318 $as_echo "$CC" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4326 if test -z "$CC"; then
4327 if test -n "$ac_tool_prefix"; then
4328 for ac_prog in cl.exe
4330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_CC+:} false; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if test -n "$CC"; then
4338 ac_cv_prog_CC="$CC" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4351 done
4352 done
4353 IFS=$as_save_IFS
4357 CC=$ac_cv_prog_CC
4358 if test -n "$CC"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4360 $as_echo "$CC" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4367 test -n "$CC" && break
4368 done
4370 if test -z "$CC"; then
4371 ac_ct_CC=$CC
4372 for ac_prog in cl.exe
4374 # Extract the first word of "$ac_prog", so it can be a program name with args.
4375 set dummy $ac_prog; ac_word=$2
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377 $as_echo_n "checking for $ac_word... " >&6; }
4378 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if test -n "$ac_ct_CC"; then
4382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4383 else
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_ac_ct_CC="$ac_prog"
4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 break 2
4395 done
4396 done
4397 IFS=$as_save_IFS
4401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4402 if test -n "$ac_ct_CC"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4404 $as_echo "$ac_ct_CC" >&6; }
4405 else
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4411 test -n "$ac_ct_CC" && break
4412 done
4414 if test "x$ac_ct_CC" = x; then
4415 CC=""
4416 else
4417 case $cross_compiling:$ac_tool_warned in
4418 yes:)
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4421 ac_tool_warned=yes ;;
4422 esac
4423 CC=$ac_ct_CC
4430 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4432 as_fn_error $? "no acceptable C compiler found in \$PATH
4433 See \`config.log' for more details" "$LINENO" 5; }
4435 # Provide some information about the compiler.
4436 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4437 set X $ac_compile
4438 ac_compiler=$2
4439 for ac_option in --version -v -V -qversion; do
4440 { { ac_try="$ac_compiler $ac_option >&5"
4441 case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444 esac
4445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446 $as_echo "$ac_try_echo"; } >&5
4447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4448 ac_status=$?
4449 if test -s conftest.err; then
4450 sed '10a\
4451 ... rest of stderr output deleted ...
4452 10q' conftest.err >conftest.er1
4453 cat conftest.er1 >&5
4455 rm -f conftest.er1 conftest.err
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }
4458 done
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4464 main ()
4468 return 0;
4470 _ACEOF
4471 ac_clean_files_save=$ac_clean_files
4472 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4473 # Try to create an executable without -o first, disregard a.out.
4474 # It will help us diagnose broken compilers, and finding out an intuition
4475 # of exeext.
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4477 $as_echo_n "checking whether the C compiler works... " >&6; }
4478 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4480 # The possible output files:
4481 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4483 ac_rmfiles=
4484 for ac_file in $ac_files
4486 case $ac_file in
4487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4489 esac
4490 done
4491 rm -f $ac_rmfiles
4493 if { { ac_try="$ac_link_default"
4494 case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_link_default") 2>&5
4501 ac_status=$?
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }; then :
4504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4505 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4506 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4507 # so that the user can short-circuit this test for compilers unknown to
4508 # Autoconf.
4509 for ac_file in $ac_files ''
4511 test -f "$ac_file" || continue
4512 case $ac_file in
4513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4515 [ab].out )
4516 # We found the default executable, but exeext='' is most
4517 # certainly right.
4518 break;;
4519 *.* )
4520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4521 then :; else
4522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4524 # We set ac_cv_exeext here because the later test for it is not
4525 # safe: cross compilers may not add the suffix if given an `-o'
4526 # argument, so we may need to know it at that point already.
4527 # Even if this section looks crufty: it has the advantage of
4528 # actually working.
4529 break;;
4531 break;;
4532 esac
4533 done
4534 test "$ac_cv_exeext" = no && ac_cv_exeext=
4536 else
4537 ac_file=''
4539 if test -z "$ac_file"; then :
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541 $as_echo "no" >&6; }
4542 $as_echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4547 as_fn_error 77 "C compiler cannot create executables
4548 See \`config.log' for more details" "$LINENO" 5; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4551 $as_echo "yes" >&6; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4554 $as_echo_n "checking for C compiler default output file name... " >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4556 $as_echo "$ac_file" >&6; }
4557 ac_exeext=$ac_cv_exeext
4559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4560 ac_clean_files=$ac_clean_files_save
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4562 $as_echo_n "checking for suffix of executables... " >&6; }
4563 if { { ac_try="$ac_link"
4564 case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 $as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_link") 2>&5
4571 ac_status=$?
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; then :
4574 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4575 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4576 # work properly (i.e., refer to `conftest.exe'), while it won't with
4577 # `rm'.
4578 for ac_file in conftest.exe conftest conftest.*; do
4579 test -f "$ac_file" || continue
4580 case $ac_file in
4581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4583 break;;
4584 * ) break;;
4585 esac
4586 done
4587 else
4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4590 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4591 See \`config.log' for more details" "$LINENO" 5; }
4593 rm -f conftest conftest$ac_cv_exeext
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4595 $as_echo "$ac_cv_exeext" >&6; }
4597 rm -f conftest.$ac_ext
4598 EXEEXT=$ac_cv_exeext
4599 ac_exeext=$EXEEXT
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #include <stdio.h>
4604 main ()
4606 FILE *f = fopen ("conftest.out", "w");
4607 return ferror (f) || fclose (f) != 0;
4610 return 0;
4612 _ACEOF
4613 ac_clean_files="$ac_clean_files conftest.out"
4614 # Check that the compiler produces executables we can run. If not, either
4615 # the compiler is broken, or we cross compile.
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4617 $as_echo_n "checking whether we are cross compiling... " >&6; }
4618 if test "$cross_compiling" != yes; then
4619 { { ac_try="$ac_link"
4620 case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623 esac
4624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_link") 2>&5
4627 ac_status=$?
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }
4630 if { ac_try='./conftest$ac_cv_exeext'
4631 { { case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634 esac
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_try") 2>&5
4638 ac_status=$?
4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 test $ac_status = 0; }; }; then
4641 cross_compiling=no
4642 else
4643 if test "$cross_compiling" = maybe; then
4644 cross_compiling=yes
4645 else
4646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648 as_fn_error $? "cannot run C compiled programs.
4649 If you meant to cross compile, use \`--host'.
4650 See \`config.log' for more details" "$LINENO" 5; }
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4655 $as_echo "$cross_compiling" >&6; }
4657 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4658 ac_clean_files=$ac_clean_files_save
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4660 $as_echo_n "checking for suffix of object files... " >&6; }
4661 if ${ac_cv_objext+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4668 main ()
4672 return 0;
4674 _ACEOF
4675 rm -f conftest.o conftest.obj
4676 if { { ac_try="$ac_compile"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682 $as_echo "$ac_try_echo"; } >&5
4683 (eval "$ac_compile") 2>&5
4684 ac_status=$?
4685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686 test $ac_status = 0; }; then :
4687 for ac_file in conftest.o conftest.obj conftest.*; do
4688 test -f "$ac_file" || continue;
4689 case $ac_file in
4690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4692 break;;
4693 esac
4694 done
4695 else
4696 $as_echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4701 as_fn_error $? "cannot compute suffix of object files: cannot compile
4702 See \`config.log' for more details" "$LINENO" 5; }
4704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4707 $as_echo "$ac_cv_objext" >&6; }
4708 OBJEXT=$ac_cv_objext
4709 ac_objext=$OBJEXT
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4712 if ${ac_cv_c_compiler_gnu+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4719 main ()
4721 #ifndef __GNUC__
4722 choke me
4723 #endif
4726 return 0;
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_compiler_gnu=yes
4731 else
4732 ac_compiler_gnu=no
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4740 if test $ac_compiler_gnu = yes; then
4741 GCC=yes
4742 else
4743 GCC=
4745 ac_test_CFLAGS=${CFLAGS+set}
4746 ac_save_CFLAGS=$CFLAGS
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4749 if ${ac_cv_prog_cc_g+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 ac_save_c_werror_flag=$ac_c_werror_flag
4753 ac_c_werror_flag=yes
4754 ac_cv_prog_cc_g=no
4755 CFLAGS="-g"
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4760 main ()
4764 return 0;
4766 _ACEOF
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_prog_cc_g=yes
4769 else
4770 CFLAGS=""
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4775 main ()
4779 return 0;
4781 _ACEOF
4782 if ac_fn_c_try_compile "$LINENO"; then :
4784 else
4785 ac_c_werror_flag=$ac_save_c_werror_flag
4786 CFLAGS="-g"
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4791 main ()
4795 return 0;
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_cv_prog_cc_g=yes
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_c_werror_flag=$ac_save_c_werror_flag
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4809 $as_echo "$ac_cv_prog_cc_g" >&6; }
4810 if test "$ac_test_CFLAGS" = set; then
4811 CFLAGS=$ac_save_CFLAGS
4812 elif test $ac_cv_prog_cc_g = yes; then
4813 if test "$GCC" = yes; then
4814 CFLAGS="-g -O2"
4815 else
4816 CFLAGS="-g"
4818 else
4819 if test "$GCC" = yes; then
4820 CFLAGS="-O2"
4821 else
4822 CFLAGS=
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4827 if ${ac_cv_prog_cc_c89+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 ac_cv_prog_cc_c89=no
4831 ac_save_CC=$CC
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 #include <stdarg.h>
4835 #include <stdio.h>
4836 struct stat;
4837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4838 struct buf { int x; };
4839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4840 static char *e (p, i)
4841 char **p;
4842 int i;
4844 return p[i];
4846 static char *f (char * (*g) (char **, int), char **p, ...)
4848 char *s;
4849 va_list v;
4850 va_start (v,p);
4851 s = g (p, va_arg (v,int));
4852 va_end (v);
4853 return s;
4856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4857 function prototypes and stuff, but not '\xHH' hex character constants.
4858 These don't provoke an error unfortunately, instead are silently treated
4859 as 'x'. The following induces an error, until -std is added to get
4860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4861 array size at least. It's necessary to write '\x00'==0 to get something
4862 that's true only with -std. */
4863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4866 inside strings and character constants. */
4867 #define FOO(x) 'x'
4868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4870 int test (int i, double x);
4871 struct s1 {int (*f) (int a);};
4872 struct s2 {int (*f) (double a);};
4873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4874 int argc;
4875 char **argv;
4877 main ()
4879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4881 return 0;
4883 _ACEOF
4884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4887 CC="$ac_save_CC $ac_arg"
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 ac_cv_prog_cc_c89=$ac_arg
4891 rm -f core conftest.err conftest.$ac_objext
4892 test "x$ac_cv_prog_cc_c89" != "xno" && break
4893 done
4894 rm -f conftest.$ac_ext
4895 CC=$ac_save_CC
4898 # AC_CACHE_VAL
4899 case "x$ac_cv_prog_cc_c89" in
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4902 $as_echo "none needed" >&6; } ;;
4903 xno)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4905 $as_echo "unsupported" >&6; } ;;
4907 CC="$CC $ac_cv_prog_cc_c89"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4910 esac
4911 if test "x$ac_cv_prog_cc_c89" != xno; then :
4915 ac_ext=c
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4922 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4923 if ${ac_cv_prog_cc_c99+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 ac_cv_prog_cc_c99=no
4927 ac_save_CC=$CC
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 #include <stdarg.h>
4931 #include <stdbool.h>
4932 #include <stdlib.h>
4933 #include <wchar.h>
4934 #include <stdio.h>
4936 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4937 #define debug(...) fprintf (stderr, __VA_ARGS__)
4938 #define showlist(...) puts (#__VA_ARGS__)
4939 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4940 static void
4941 test_varargs_macros (void)
4943 int x = 1234;
4944 int y = 5678;
4945 debug ("Flag");
4946 debug ("X = %d\n", x);
4947 showlist (The first, second, and third items.);
4948 report (x>y, "x is %d but y is %d", x, y);
4951 // Check long long types.
4952 #define BIG64 18446744073709551615ull
4953 #define BIG32 4294967295ul
4954 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4955 #if !BIG_OK
4956 your preprocessor is broken;
4957 #endif
4958 #if BIG_OK
4959 #else
4960 your preprocessor is broken;
4961 #endif
4962 static long long int bignum = -9223372036854775807LL;
4963 static unsigned long long int ubignum = BIG64;
4965 struct incomplete_array
4967 int datasize;
4968 double data[];
4971 struct named_init {
4972 int number;
4973 const wchar_t *name;
4974 double average;
4977 typedef const char *ccp;
4979 static inline int
4980 test_restrict (ccp restrict text)
4982 // See if C++-style comments work.
4983 // Iterate through items via the restricted pointer.
4984 // Also check for declarations in for loops.
4985 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4986 continue;
4987 return 0;
4990 // Check varargs and va_copy.
4991 static void
4992 test_varargs (const char *format, ...)
4994 va_list args;
4995 va_start (args, format);
4996 va_list args_copy;
4997 va_copy (args_copy, args);
4999 const char *str;
5000 int number;
5001 float fnumber;
5003 while (*format)
5005 switch (*format++)
5007 case 's': // string
5008 str = va_arg (args_copy, const char *);
5009 break;
5010 case 'd': // int
5011 number = va_arg (args_copy, int);
5012 break;
5013 case 'f': // float
5014 fnumber = va_arg (args_copy, double);
5015 break;
5016 default:
5017 break;
5020 va_end (args_copy);
5021 va_end (args);
5025 main ()
5028 // Check bool.
5029 _Bool success = false;
5031 // Check restrict.
5032 if (test_restrict ("String literal") == 0)
5033 success = true;
5034 char *restrict newvar = "Another string";
5036 // Check varargs.
5037 test_varargs ("s, d' f .", "string", 65, 34.234);
5038 test_varargs_macros ();
5040 // Check flexible array members.
5041 struct incomplete_array *ia =
5042 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5043 ia->datasize = 10;
5044 for (int i = 0; i < ia->datasize; ++i)
5045 ia->data[i] = i * 1.234;
5047 // Check named initializers.
5048 struct named_init ni = {
5049 .number = 34,
5050 .name = L"Test wide string",
5051 .average = 543.34343,
5054 ni.number = 58;
5056 int dynamic_array[ni.number];
5057 dynamic_array[ni.number - 1] = 543;
5059 // work around unused variable warnings
5060 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5061 || dynamic_array[ni.number - 1] != 543);
5064 return 0;
5066 _ACEOF
5067 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5069 CC="$ac_save_CC $ac_arg"
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_prog_cc_c99=$ac_arg
5073 rm -f core conftest.err conftest.$ac_objext
5074 test "x$ac_cv_prog_cc_c99" != "xno" && break
5075 done
5076 rm -f conftest.$ac_ext
5077 CC=$ac_save_CC
5080 # AC_CACHE_VAL
5081 case "x$ac_cv_prog_cc_c99" in
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5084 $as_echo "none needed" >&6; } ;;
5085 xno)
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5087 $as_echo "unsupported" >&6; } ;;
5089 CC="$CC $ac_cv_prog_cc_c99"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5091 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5092 esac
5093 if test "x$ac_cv_prog_cc_c99" != xno; then :
5098 ac_ext=cpp
5099 ac_cpp='$CXXCPP $CPPFLAGS'
5100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5103 if test -z "$CXX"; then
5104 if test -n "$CCC"; then
5105 CXX=$CCC
5106 else
5107 if test -n "$ac_tool_prefix"; then
5108 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_prog_CXX+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$CXX"; then
5118 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5131 done
5132 done
5133 IFS=$as_save_IFS
5137 CXX=$ac_cv_prog_CXX
5138 if test -n "$CXX"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5140 $as_echo "$CXX" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5147 test -n "$CXX" && break
5148 done
5150 if test -z "$CXX"; then
5151 ac_ct_CXX=$CXX
5152 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5154 # Extract the first word of "$ac_prog", so it can be a program name with args.
5155 set dummy $ac_prog; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if test -n "$ac_ct_CXX"; then
5162 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_ac_ct_CXX="$ac_prog"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5175 done
5176 done
5177 IFS=$as_save_IFS
5181 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5182 if test -n "$ac_ct_CXX"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5184 $as_echo "$ac_ct_CXX" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5191 test -n "$ac_ct_CXX" && break
5192 done
5194 if test "x$ac_ct_CXX" = x; then
5195 CXX="g++"
5196 else
5197 case $cross_compiling:$ac_tool_warned in
5198 yes:)
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201 ac_tool_warned=yes ;;
5202 esac
5203 CXX=$ac_ct_CXX
5209 # Provide some information about the compiler.
5210 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5211 set X $ac_compile
5212 ac_compiler=$2
5213 for ac_option in --version -v -V -qversion; do
5214 { { ac_try="$ac_compiler $ac_option >&5"
5215 case "(($ac_try" in
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5218 esac
5219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5220 $as_echo "$ac_try_echo"; } >&5
5221 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5222 ac_status=$?
5223 if test -s conftest.err; then
5224 sed '10a\
5225 ... rest of stderr output deleted ...
5226 10q' conftest.err >conftest.er1
5227 cat conftest.er1 >&5
5229 rm -f conftest.er1 conftest.err
5230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5231 test $ac_status = 0; }
5232 done
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5235 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5236 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5243 main ()
5245 #ifndef __GNUC__
5246 choke me
5247 #endif
5250 return 0;
5252 _ACEOF
5253 if ac_fn_cxx_try_compile "$LINENO"; then :
5254 ac_compiler_gnu=yes
5255 else
5256 ac_compiler_gnu=no
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5259 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5263 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5264 if test $ac_compiler_gnu = yes; then
5265 GXX=yes
5266 else
5267 GXX=
5269 ac_test_CXXFLAGS=${CXXFLAGS+set}
5270 ac_save_CXXFLAGS=$CXXFLAGS
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5272 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5273 if ${ac_cv_prog_cxx_g+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5277 ac_cxx_werror_flag=yes
5278 ac_cv_prog_cxx_g=no
5279 CXXFLAGS="-g"
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281 /* end confdefs.h. */
5284 main ()
5288 return 0;
5290 _ACEOF
5291 if ac_fn_cxx_try_compile "$LINENO"; then :
5292 ac_cv_prog_cxx_g=yes
5293 else
5294 CXXFLAGS=""
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5299 main ()
5303 return 0;
5305 _ACEOF
5306 if ac_fn_cxx_try_compile "$LINENO"; then :
5308 else
5309 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5310 CXXFLAGS="-g"
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5315 main ()
5319 return 0;
5321 _ACEOF
5322 if ac_fn_cxx_try_compile "$LINENO"; then :
5323 ac_cv_prog_cxx_g=yes
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5333 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5334 if test "$ac_test_CXXFLAGS" = set; then
5335 CXXFLAGS=$ac_save_CXXFLAGS
5336 elif test $ac_cv_prog_cxx_g = yes; then
5337 if test "$GXX" = yes; then
5338 CXXFLAGS="-g -O2"
5339 else
5340 CXXFLAGS="-g"
5342 else
5343 if test "$GXX" = yes; then
5344 CXXFLAGS="-O2"
5345 else
5346 CXXFLAGS=
5349 ac_ext=c
5350 ac_cpp='$CPP $CPPFLAGS'
5351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356 # We must set the default linker to the linker used by gcc for the correct
5357 # operation of libtool. If LD is not defined and we are using gcc, try to
5358 # set the LD default to the ld used by gcc.
5359 if test -z "$LD"; then
5360 if test "$GCC" = yes; then
5361 case $build in
5362 *-*-mingw*)
5363 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5365 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5366 esac
5367 case $gcc_prog_ld in
5368 # Accept absolute paths.
5369 [\\/]* | [A-Za-z]:[\\/]*)
5370 LD="$gcc_prog_ld" ;;
5371 esac
5375 # Check whether -static-libstdc++ -static-libgcc is supported.
5376 have_static_libs=no
5377 if test "$GCC" = yes; then
5378 saved_LDFLAGS="$LDFLAGS"
5380 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5382 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5383 ac_ext=cpp
5384 ac_cpp='$CXXCPP $CPPFLAGS'
5385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5393 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5394 #error -static-libstdc++ not implemented
5395 #endif
5396 int main() {}
5397 _ACEOF
5398 if ac_fn_cxx_try_link "$LINENO"; then :
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400 $as_echo "yes" >&6; }; have_static_libs=yes
5401 else
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5405 rm -f core conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext
5407 ac_ext=c
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414 LDFLAGS="$saved_LDFLAGS"
5420 if test -n "$ac_tool_prefix"; then
5421 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5422 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_GNATBIND+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -n "$GNATBIND"; then
5429 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5442 done
5443 done
5444 IFS=$as_save_IFS
5448 GNATBIND=$ac_cv_prog_GNATBIND
5449 if test -n "$GNATBIND"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5451 $as_echo "$GNATBIND" >&6; }
5452 else
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5459 if test -z "$ac_cv_prog_GNATBIND"; then
5460 ac_ct_GNATBIND=$GNATBIND
5461 # Extract the first word of "gnatbind", so it can be a program name with args.
5462 set dummy gnatbind; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 if test -n "$ac_ct_GNATBIND"; then
5469 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5470 else
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5482 done
5483 done
5484 IFS=$as_save_IFS
5488 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5489 if test -n "$ac_ct_GNATBIND"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5491 $as_echo "$ac_ct_GNATBIND" >&6; }
5492 else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5497 if test "x$ac_ct_GNATBIND" = x; then
5498 GNATBIND="no"
5499 else
5500 case $cross_compiling:$ac_tool_warned in
5501 yes:)
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5504 ac_tool_warned=yes ;;
5505 esac
5506 GNATBIND=$ac_ct_GNATBIND
5508 else
5509 GNATBIND="$ac_cv_prog_GNATBIND"
5512 if test -n "$ac_tool_prefix"; then
5513 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5514 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_prog_GNATMAKE+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -n "$GNATMAKE"; then
5521 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5534 done
5535 done
5536 IFS=$as_save_IFS
5540 GNATMAKE=$ac_cv_prog_GNATMAKE
5541 if test -n "$GNATMAKE"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5543 $as_echo "$GNATMAKE" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5551 if test -z "$ac_cv_prog_GNATMAKE"; then
5552 ac_ct_GNATMAKE=$GNATMAKE
5553 # Extract the first word of "gnatmake", so it can be a program name with args.
5554 set dummy gnatmake; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if test -n "$ac_ct_GNATMAKE"; then
5561 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5570 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5574 done
5575 done
5576 IFS=$as_save_IFS
5580 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5581 if test -n "$ac_ct_GNATMAKE"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5583 $as_echo "$ac_ct_GNATMAKE" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5589 if test "x$ac_ct_GNATMAKE" = x; then
5590 GNATMAKE="no"
5591 else
5592 case $cross_compiling:$ac_tool_warned in
5593 yes:)
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596 ac_tool_warned=yes ;;
5597 esac
5598 GNATMAKE=$ac_ct_GNATMAKE
5600 else
5601 GNATMAKE="$ac_cv_prog_GNATMAKE"
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5605 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5606 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 cat >conftest.adb <<EOF
5610 procedure conftest is begin null; end conftest;
5612 acx_cv_cc_gcc_supports_ada=no
5613 # There is a bug in old released versions of GCC which causes the
5614 # driver to exit successfully when the appropriate language module
5615 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5616 # Therefore we must check for the error message as well as an
5617 # unsuccessful exit.
5618 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5619 # given a .adb file, but produce no object file. So we must check
5620 # if an object file was really produced to guard against this.
5621 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5622 if test x"$errors" = x && test -f conftest.$ac_objext; then
5623 acx_cv_cc_gcc_supports_ada=yes
5625 rm -f conftest.*
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5628 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5630 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5631 have_gnat=yes
5632 else
5633 have_gnat=no
5638 if test -n "$ac_tool_prefix"; then
5639 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5640 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_GDC+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 if test -n "$GDC"; then
5647 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5660 done
5661 done
5662 IFS=$as_save_IFS
5666 GDC=$ac_cv_prog_GDC
5667 if test -n "$GDC"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5669 $as_echo "$GDC" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5677 if test -z "$ac_cv_prog_GDC"; then
5678 ac_ct_GDC=$GDC
5679 # Extract the first word of "gdc", so it can be a program name with args.
5680 set dummy gdc; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 if test -n "$ac_ct_GDC"; then
5687 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_ac_ct_GDC="gdc"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5700 done
5701 done
5702 IFS=$as_save_IFS
5706 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5707 if test -n "$ac_ct_GDC"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5709 $as_echo "$ac_ct_GDC" >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5715 if test "x$ac_ct_GDC" = x; then
5716 GDC="no"
5717 else
5718 case $cross_compiling:$ac_tool_warned in
5719 yes:)
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5722 ac_tool_warned=yes ;;
5723 esac
5724 GDC=$ac_ct_GDC
5726 else
5727 GDC="$ac_cv_prog_GDC"
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5731 $as_echo_n "checking whether the D compiler works... " >&6; }
5732 if ${acx_cv_d_compiler_works+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 cat >conftest.d <<EOF
5736 module conftest; int main() { return 0; }
5738 acx_cv_d_compiler_works=no
5739 if test "x$GDC" != xno; then
5740 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5741 if test x"$errors" = x && test -f conftest.$ac_objext; then
5742 acx_cv_d_compiler_works=yes
5744 rm -f conftest.*
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5748 $as_echo "$acx_cv_d_compiler_works" >&6; }
5749 if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5750 have_gdc=yes
5751 else
5752 have_gdc=no
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5756 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5757 if ${gcc_cv_prog_cmp_skip+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 echo abfoo >t1
5761 echo cdfoo >t2
5762 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5763 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5764 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5766 else
5767 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5770 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5771 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5773 else
5774 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5777 rm t1 t2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5781 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5782 do_compare="$gcc_cv_prog_cmp_skip"
5786 # Check whether --enable-bootstrap was given.
5787 if test "${enable_bootstrap+set}" = set; then :
5788 enableval=$enable_bootstrap;
5789 else
5790 enable_bootstrap=default
5794 # Issue errors and warnings for invalid/strange bootstrap combinations.
5795 if test -r $srcdir/gcc/configure; then
5796 have_compiler=yes
5797 else
5798 have_compiler=no
5801 case "$have_compiler:$host:$target:$enable_bootstrap" in
5802 *:*:*:no) ;;
5804 # Default behavior. Enable bootstrap if we have a compiler
5805 # and we are in a native configuration.
5806 yes:$build:$build:default)
5807 enable_bootstrap=yes ;;
5809 *:*:*:default)
5810 enable_bootstrap=no ;;
5812 # We have a compiler and we are in a native configuration, bootstrap is ok
5813 yes:$build:$build:yes)
5816 # Other configurations, but we have a compiler. Assume the user knows
5817 # what he's doing.
5818 yes:*:*:yes)
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5820 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5823 # No compiler: if they passed --enable-bootstrap explicitly, fail
5824 no:*:*:yes)
5825 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5827 # Fail if wrong command line
5829 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5831 esac
5833 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5834 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5835 # require C++11 (or higher).
5836 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5837 CXX="$CXX -std=c++11"
5838 elif test "$have_compiler" = yes; then
5839 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5840 ac_ext=cpp
5841 ac_cpp='$CXXCPP $CPPFLAGS'
5842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5845 ac_success=no
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5848 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5849 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5856 // If the compiler admits that it is not ready for C++11, why torture it?
5857 // Hopefully, this will speed up the test.
5859 #ifndef __cplusplus
5861 #error "This is not a C++ compiler"
5863 #elif __cplusplus < 201103L
5865 #error "This is not a C++11 compiler"
5867 #else
5869 namespace cxx11
5872 namespace test_static_assert
5875 template <typename T>
5876 struct check
5878 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5883 namespace test_final_override
5886 struct Base
5888 virtual ~Base() {}
5889 virtual void f() {}
5892 struct Derived : public Base
5894 virtual ~Derived() override {}
5895 virtual void f() override {}
5900 namespace test_double_right_angle_brackets
5903 template < typename T >
5904 struct check {};
5906 typedef check<void> single_type;
5907 typedef check<check<void>> double_type;
5908 typedef check<check<check<void>>> triple_type;
5909 typedef check<check<check<check<void>>>> quadruple_type;
5913 namespace test_decltype
5919 int a = 1;
5920 decltype(a) b = 2;
5921 return a + b;
5926 namespace test_type_deduction
5929 template < typename T1, typename T2 >
5930 struct is_same
5932 static const bool value = false;
5935 template < typename T >
5936 struct is_same<T, T>
5938 static const bool value = true;
5941 template < typename T1, typename T2 >
5942 auto
5943 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5945 return a1 + a2;
5949 test(const int c, volatile int v)
5951 static_assert(is_same<int, decltype(0)>::value == true, "");
5952 static_assert(is_same<int, decltype(c)>::value == false, "");
5953 static_assert(is_same<int, decltype(v)>::value == false, "");
5954 auto ac = c;
5955 auto av = v;
5956 auto sumi = ac + av + 'x';
5957 auto sumf = ac + av + 1.0;
5958 static_assert(is_same<int, decltype(ac)>::value == true, "");
5959 static_assert(is_same<int, decltype(av)>::value == true, "");
5960 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5961 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5962 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5963 return (sumf > 0.0) ? sumi : add(c, v);
5968 namespace test_noexcept
5971 int f() { return 0; }
5972 int g() noexcept { return 0; }
5974 static_assert(noexcept(f()) == false, "");
5975 static_assert(noexcept(g()) == true, "");
5979 namespace test_constexpr
5982 template < typename CharT >
5983 unsigned long constexpr
5984 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5986 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5989 template < typename CharT >
5990 unsigned long constexpr
5991 strlen_c(const CharT *const s) noexcept
5993 return strlen_c_r(s, 0UL);
5996 static_assert(strlen_c("") == 0UL, "");
5997 static_assert(strlen_c("1") == 1UL, "");
5998 static_assert(strlen_c("example") == 7UL, "");
5999 static_assert(strlen_c("another\0example") == 7UL, "");
6003 namespace test_rvalue_references
6006 template < int N >
6007 struct answer
6009 static constexpr int value = N;
6012 answer<1> f(int&) { return answer<1>(); }
6013 answer<2> f(const int&) { return answer<2>(); }
6014 answer<3> f(int&&) { return answer<3>(); }
6016 void
6017 test()
6019 int i = 0;
6020 const int c = 0;
6021 static_assert(decltype(f(i))::value == 1, "");
6022 static_assert(decltype(f(c))::value == 2, "");
6023 static_assert(decltype(f(0))::value == 3, "");
6028 namespace test_uniform_initialization
6031 struct test
6033 static const int zero {};
6034 static const int one {1};
6037 static_assert(test::zero == 0, "");
6038 static_assert(test::one == 1, "");
6042 namespace test_lambdas
6045 void
6046 test1()
6048 auto lambda1 = [](){};
6049 auto lambda2 = lambda1;
6050 lambda1();
6051 lambda2();
6055 test2()
6057 auto a = [](int i, int j){ return i + j; }(1, 2);
6058 auto b = []() -> int { return '0'; }();
6059 auto c = [=](){ return a + b; }();
6060 auto d = [&](){ return c; }();
6061 auto e = [a, &b](int x) mutable {
6062 const auto identity = [](int y){ return y; };
6063 for (auto i = 0; i < a; ++i)
6064 a += b--;
6065 return x + identity(a + b);
6066 }(0);
6067 return a + b + c + d + e;
6071 test3()
6073 const auto nullary = [](){ return 0; };
6074 const auto unary = [](int x){ return x; };
6075 using nullary_t = decltype(nullary);
6076 using unary_t = decltype(unary);
6077 const auto higher1st = [](nullary_t f){ return f(); };
6078 const auto higher2nd = [unary](nullary_t f1){
6079 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6081 return higher1st(nullary) + higher2nd(nullary)(unary);
6086 namespace test_variadic_templates
6089 template <int...>
6090 struct sum;
6092 template <int N0, int... N1toN>
6093 struct sum<N0, N1toN...>
6095 static constexpr auto value = N0 + sum<N1toN...>::value;
6098 template <>
6099 struct sum<>
6101 static constexpr auto value = 0;
6104 static_assert(sum<>::value == 0, "");
6105 static_assert(sum<1>::value == 1, "");
6106 static_assert(sum<23>::value == 23, "");
6107 static_assert(sum<1, 2>::value == 3, "");
6108 static_assert(sum<5, 5, 11>::value == 21, "");
6109 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6113 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6114 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6115 // because of this.
6116 namespace test_template_alias_sfinae
6119 struct foo {};
6121 template<typename T>
6122 using member = typename T::member_type;
6124 template<typename T>
6125 void func(...) {}
6127 template<typename T>
6128 void func(member<T>*) {}
6130 void test();
6132 void test() { func<foo>(0); }
6136 } // namespace cxx11
6138 #endif // __cplusplus >= 201103L
6142 _ACEOF
6143 if ac_fn_cxx_try_compile "$LINENO"; then :
6144 ax_cv_cxx_compile_cxx11=yes
6145 else
6146 ax_cv_cxx_compile_cxx11=no
6148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6151 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6152 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6153 ac_success=yes
6156 if test x$ac_success = xno; then
6157 for alternative in ${ax_cxx_compile_alternatives}; do
6158 switch="-std=gnu++${alternative}"
6159 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6161 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6162 if eval \${$cachevar+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 ac_save_CXX="$CXX"
6166 CXX="$CXX $switch"
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6171 // If the compiler admits that it is not ready for C++11, why torture it?
6172 // Hopefully, this will speed up the test.
6174 #ifndef __cplusplus
6176 #error "This is not a C++ compiler"
6178 #elif __cplusplus < 201103L
6180 #error "This is not a C++11 compiler"
6182 #else
6184 namespace cxx11
6187 namespace test_static_assert
6190 template <typename T>
6191 struct check
6193 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6198 namespace test_final_override
6201 struct Base
6203 virtual ~Base() {}
6204 virtual void f() {}
6207 struct Derived : public Base
6209 virtual ~Derived() override {}
6210 virtual void f() override {}
6215 namespace test_double_right_angle_brackets
6218 template < typename T >
6219 struct check {};
6221 typedef check<void> single_type;
6222 typedef check<check<void>> double_type;
6223 typedef check<check<check<void>>> triple_type;
6224 typedef check<check<check<check<void>>>> quadruple_type;
6228 namespace test_decltype
6234 int a = 1;
6235 decltype(a) b = 2;
6236 return a + b;
6241 namespace test_type_deduction
6244 template < typename T1, typename T2 >
6245 struct is_same
6247 static const bool value = false;
6250 template < typename T >
6251 struct is_same<T, T>
6253 static const bool value = true;
6256 template < typename T1, typename T2 >
6257 auto
6258 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6260 return a1 + a2;
6264 test(const int c, volatile int v)
6266 static_assert(is_same<int, decltype(0)>::value == true, "");
6267 static_assert(is_same<int, decltype(c)>::value == false, "");
6268 static_assert(is_same<int, decltype(v)>::value == false, "");
6269 auto ac = c;
6270 auto av = v;
6271 auto sumi = ac + av + 'x';
6272 auto sumf = ac + av + 1.0;
6273 static_assert(is_same<int, decltype(ac)>::value == true, "");
6274 static_assert(is_same<int, decltype(av)>::value == true, "");
6275 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6276 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6277 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6278 return (sumf > 0.0) ? sumi : add(c, v);
6283 namespace test_noexcept
6286 int f() { return 0; }
6287 int g() noexcept { return 0; }
6289 static_assert(noexcept(f()) == false, "");
6290 static_assert(noexcept(g()) == true, "");
6294 namespace test_constexpr
6297 template < typename CharT >
6298 unsigned long constexpr
6299 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6301 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6304 template < typename CharT >
6305 unsigned long constexpr
6306 strlen_c(const CharT *const s) noexcept
6308 return strlen_c_r(s, 0UL);
6311 static_assert(strlen_c("") == 0UL, "");
6312 static_assert(strlen_c("1") == 1UL, "");
6313 static_assert(strlen_c("example") == 7UL, "");
6314 static_assert(strlen_c("another\0example") == 7UL, "");
6318 namespace test_rvalue_references
6321 template < int N >
6322 struct answer
6324 static constexpr int value = N;
6327 answer<1> f(int&) { return answer<1>(); }
6328 answer<2> f(const int&) { return answer<2>(); }
6329 answer<3> f(int&&) { return answer<3>(); }
6331 void
6332 test()
6334 int i = 0;
6335 const int c = 0;
6336 static_assert(decltype(f(i))::value == 1, "");
6337 static_assert(decltype(f(c))::value == 2, "");
6338 static_assert(decltype(f(0))::value == 3, "");
6343 namespace test_uniform_initialization
6346 struct test
6348 static const int zero {};
6349 static const int one {1};
6352 static_assert(test::zero == 0, "");
6353 static_assert(test::one == 1, "");
6357 namespace test_lambdas
6360 void
6361 test1()
6363 auto lambda1 = [](){};
6364 auto lambda2 = lambda1;
6365 lambda1();
6366 lambda2();
6370 test2()
6372 auto a = [](int i, int j){ return i + j; }(1, 2);
6373 auto b = []() -> int { return '0'; }();
6374 auto c = [=](){ return a + b; }();
6375 auto d = [&](){ return c; }();
6376 auto e = [a, &b](int x) mutable {
6377 const auto identity = [](int y){ return y; };
6378 for (auto i = 0; i < a; ++i)
6379 a += b--;
6380 return x + identity(a + b);
6381 }(0);
6382 return a + b + c + d + e;
6386 test3()
6388 const auto nullary = [](){ return 0; };
6389 const auto unary = [](int x){ return x; };
6390 using nullary_t = decltype(nullary);
6391 using unary_t = decltype(unary);
6392 const auto higher1st = [](nullary_t f){ return f(); };
6393 const auto higher2nd = [unary](nullary_t f1){
6394 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6396 return higher1st(nullary) + higher2nd(nullary)(unary);
6401 namespace test_variadic_templates
6404 template <int...>
6405 struct sum;
6407 template <int N0, int... N1toN>
6408 struct sum<N0, N1toN...>
6410 static constexpr auto value = N0 + sum<N1toN...>::value;
6413 template <>
6414 struct sum<>
6416 static constexpr auto value = 0;
6419 static_assert(sum<>::value == 0, "");
6420 static_assert(sum<1>::value == 1, "");
6421 static_assert(sum<23>::value == 23, "");
6422 static_assert(sum<1, 2>::value == 3, "");
6423 static_assert(sum<5, 5, 11>::value == 21, "");
6424 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6428 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6429 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6430 // because of this.
6431 namespace test_template_alias_sfinae
6434 struct foo {};
6436 template<typename T>
6437 using member = typename T::member_type;
6439 template<typename T>
6440 void func(...) {}
6442 template<typename T>
6443 void func(member<T>*) {}
6445 void test();
6447 void test() { func<foo>(0); }
6451 } // namespace cxx11
6453 #endif // __cplusplus >= 201103L
6457 _ACEOF
6458 if ac_fn_cxx_try_compile "$LINENO"; then :
6459 eval $cachevar=yes
6460 else
6461 eval $cachevar=no
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464 CXX="$ac_save_CXX"
6466 eval ac_res=\$$cachevar
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6468 $as_echo "$ac_res" >&6; }
6469 if eval test x\$$cachevar = xyes; then
6470 CXX="$CXX $switch"
6471 if test -n "$CXXCPP" ; then
6472 CXXCPP="$CXXCPP $switch"
6474 ac_success=yes
6475 break
6477 done
6480 if test x$ac_success = xno; then
6481 for alternative in ${ax_cxx_compile_alternatives}; do
6482 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6483 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6485 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6486 if eval \${$cachevar+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 ac_save_CXX="$CXX"
6490 CXX="$CXX $switch"
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6495 // If the compiler admits that it is not ready for C++11, why torture it?
6496 // Hopefully, this will speed up the test.
6498 #ifndef __cplusplus
6500 #error "This is not a C++ compiler"
6502 #elif __cplusplus < 201103L
6504 #error "This is not a C++11 compiler"
6506 #else
6508 namespace cxx11
6511 namespace test_static_assert
6514 template <typename T>
6515 struct check
6517 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6522 namespace test_final_override
6525 struct Base
6527 virtual ~Base() {}
6528 virtual void f() {}
6531 struct Derived : public Base
6533 virtual ~Derived() override {}
6534 virtual void f() override {}
6539 namespace test_double_right_angle_brackets
6542 template < typename T >
6543 struct check {};
6545 typedef check<void> single_type;
6546 typedef check<check<void>> double_type;
6547 typedef check<check<check<void>>> triple_type;
6548 typedef check<check<check<check<void>>>> quadruple_type;
6552 namespace test_decltype
6558 int a = 1;
6559 decltype(a) b = 2;
6560 return a + b;
6565 namespace test_type_deduction
6568 template < typename T1, typename T2 >
6569 struct is_same
6571 static const bool value = false;
6574 template < typename T >
6575 struct is_same<T, T>
6577 static const bool value = true;
6580 template < typename T1, typename T2 >
6581 auto
6582 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6584 return a1 + a2;
6588 test(const int c, volatile int v)
6590 static_assert(is_same<int, decltype(0)>::value == true, "");
6591 static_assert(is_same<int, decltype(c)>::value == false, "");
6592 static_assert(is_same<int, decltype(v)>::value == false, "");
6593 auto ac = c;
6594 auto av = v;
6595 auto sumi = ac + av + 'x';
6596 auto sumf = ac + av + 1.0;
6597 static_assert(is_same<int, decltype(ac)>::value == true, "");
6598 static_assert(is_same<int, decltype(av)>::value == true, "");
6599 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6600 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6601 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6602 return (sumf > 0.0) ? sumi : add(c, v);
6607 namespace test_noexcept
6610 int f() { return 0; }
6611 int g() noexcept { return 0; }
6613 static_assert(noexcept(f()) == false, "");
6614 static_assert(noexcept(g()) == true, "");
6618 namespace test_constexpr
6621 template < typename CharT >
6622 unsigned long constexpr
6623 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6625 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6628 template < typename CharT >
6629 unsigned long constexpr
6630 strlen_c(const CharT *const s) noexcept
6632 return strlen_c_r(s, 0UL);
6635 static_assert(strlen_c("") == 0UL, "");
6636 static_assert(strlen_c("1") == 1UL, "");
6637 static_assert(strlen_c("example") == 7UL, "");
6638 static_assert(strlen_c("another\0example") == 7UL, "");
6642 namespace test_rvalue_references
6645 template < int N >
6646 struct answer
6648 static constexpr int value = N;
6651 answer<1> f(int&) { return answer<1>(); }
6652 answer<2> f(const int&) { return answer<2>(); }
6653 answer<3> f(int&&) { return answer<3>(); }
6655 void
6656 test()
6658 int i = 0;
6659 const int c = 0;
6660 static_assert(decltype(f(i))::value == 1, "");
6661 static_assert(decltype(f(c))::value == 2, "");
6662 static_assert(decltype(f(0))::value == 3, "");
6667 namespace test_uniform_initialization
6670 struct test
6672 static const int zero {};
6673 static const int one {1};
6676 static_assert(test::zero == 0, "");
6677 static_assert(test::one == 1, "");
6681 namespace test_lambdas
6684 void
6685 test1()
6687 auto lambda1 = [](){};
6688 auto lambda2 = lambda1;
6689 lambda1();
6690 lambda2();
6694 test2()
6696 auto a = [](int i, int j){ return i + j; }(1, 2);
6697 auto b = []() -> int { return '0'; }();
6698 auto c = [=](){ return a + b; }();
6699 auto d = [&](){ return c; }();
6700 auto e = [a, &b](int x) mutable {
6701 const auto identity = [](int y){ return y; };
6702 for (auto i = 0; i < a; ++i)
6703 a += b--;
6704 return x + identity(a + b);
6705 }(0);
6706 return a + b + c + d + e;
6710 test3()
6712 const auto nullary = [](){ return 0; };
6713 const auto unary = [](int x){ return x; };
6714 using nullary_t = decltype(nullary);
6715 using unary_t = decltype(unary);
6716 const auto higher1st = [](nullary_t f){ return f(); };
6717 const auto higher2nd = [unary](nullary_t f1){
6718 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6720 return higher1st(nullary) + higher2nd(nullary)(unary);
6725 namespace test_variadic_templates
6728 template <int...>
6729 struct sum;
6731 template <int N0, int... N1toN>
6732 struct sum<N0, N1toN...>
6734 static constexpr auto value = N0 + sum<N1toN...>::value;
6737 template <>
6738 struct sum<>
6740 static constexpr auto value = 0;
6743 static_assert(sum<>::value == 0, "");
6744 static_assert(sum<1>::value == 1, "");
6745 static_assert(sum<23>::value == 23, "");
6746 static_assert(sum<1, 2>::value == 3, "");
6747 static_assert(sum<5, 5, 11>::value == 21, "");
6748 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6752 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6753 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6754 // because of this.
6755 namespace test_template_alias_sfinae
6758 struct foo {};
6760 template<typename T>
6761 using member = typename T::member_type;
6763 template<typename T>
6764 void func(...) {}
6766 template<typename T>
6767 void func(member<T>*) {}
6769 void test();
6771 void test() { func<foo>(0); }
6775 } // namespace cxx11
6777 #endif // __cplusplus >= 201103L
6781 _ACEOF
6782 if ac_fn_cxx_try_compile "$LINENO"; then :
6783 eval $cachevar=yes
6784 else
6785 eval $cachevar=no
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 CXX="$ac_save_CXX"
6790 eval ac_res=\$$cachevar
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6792 $as_echo "$ac_res" >&6; }
6793 if eval test x\$$cachevar = xyes; then
6794 CXX="$CXX $switch"
6795 if test -n "$CXXCPP" ; then
6796 CXXCPP="$CXXCPP $switch"
6798 ac_success=yes
6799 break
6801 done
6802 if test x$ac_success = xyes; then
6803 break
6805 done
6808 ac_ext=c
6809 ac_cpp='$CPP $CPPFLAGS'
6810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6814 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6815 if test x$ac_success = xno; then
6816 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6819 if test x$ac_success = xno; then
6820 HAVE_CXX11=0
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6822 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6823 else
6824 HAVE_CXX11=1
6826 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6832 if test "${build}" != "${host}"; then
6833 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6834 ac_ext=cpp
6835 ac_cpp='$CXXCPP $CPPFLAGS'
6836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6839 ac_success=no
6840 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6841 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6842 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6843 CXX="$CXX_FOR_BUILD"
6844 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6845 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6847 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6848 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6855 // If the compiler admits that it is not ready for C++11, why torture it?
6856 // Hopefully, this will speed up the test.
6858 #ifndef __cplusplus
6860 #error "This is not a C++ compiler"
6862 #elif __cplusplus < 201103L
6864 #error "This is not a C++11 compiler"
6866 #else
6868 namespace cxx11
6871 namespace test_static_assert
6874 template <typename T>
6875 struct check
6877 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6882 namespace test_final_override
6885 struct Base
6887 virtual ~Base() {}
6888 virtual void f() {}
6891 struct Derived : public Base
6893 virtual ~Derived() override {}
6894 virtual void f() override {}
6899 namespace test_double_right_angle_brackets
6902 template < typename T >
6903 struct check {};
6905 typedef check<void> single_type;
6906 typedef check<check<void>> double_type;
6907 typedef check<check<check<void>>> triple_type;
6908 typedef check<check<check<check<void>>>> quadruple_type;
6912 namespace test_decltype
6918 int a = 1;
6919 decltype(a) b = 2;
6920 return a + b;
6925 namespace test_type_deduction
6928 template < typename T1, typename T2 >
6929 struct is_same
6931 static const bool value = false;
6934 template < typename T >
6935 struct is_same<T, T>
6937 static const bool value = true;
6940 template < typename T1, typename T2 >
6941 auto
6942 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6944 return a1 + a2;
6948 test(const int c, volatile int v)
6950 static_assert(is_same<int, decltype(0)>::value == true, "");
6951 static_assert(is_same<int, decltype(c)>::value == false, "");
6952 static_assert(is_same<int, decltype(v)>::value == false, "");
6953 auto ac = c;
6954 auto av = v;
6955 auto sumi = ac + av + 'x';
6956 auto sumf = ac + av + 1.0;
6957 static_assert(is_same<int, decltype(ac)>::value == true, "");
6958 static_assert(is_same<int, decltype(av)>::value == true, "");
6959 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6960 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6961 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6962 return (sumf > 0.0) ? sumi : add(c, v);
6967 namespace test_noexcept
6970 int f() { return 0; }
6971 int g() noexcept { return 0; }
6973 static_assert(noexcept(f()) == false, "");
6974 static_assert(noexcept(g()) == true, "");
6978 namespace test_constexpr
6981 template < typename CharT >
6982 unsigned long constexpr
6983 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6985 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6988 template < typename CharT >
6989 unsigned long constexpr
6990 strlen_c(const CharT *const s) noexcept
6992 return strlen_c_r(s, 0UL);
6995 static_assert(strlen_c("") == 0UL, "");
6996 static_assert(strlen_c("1") == 1UL, "");
6997 static_assert(strlen_c("example") == 7UL, "");
6998 static_assert(strlen_c("another\0example") == 7UL, "");
7002 namespace test_rvalue_references
7005 template < int N >
7006 struct answer
7008 static constexpr int value = N;
7011 answer<1> f(int&) { return answer<1>(); }
7012 answer<2> f(const int&) { return answer<2>(); }
7013 answer<3> f(int&&) { return answer<3>(); }
7015 void
7016 test()
7018 int i = 0;
7019 const int c = 0;
7020 static_assert(decltype(f(i))::value == 1, "");
7021 static_assert(decltype(f(c))::value == 2, "");
7022 static_assert(decltype(f(0))::value == 3, "");
7027 namespace test_uniform_initialization
7030 struct test
7032 static const int zero {};
7033 static const int one {1};
7036 static_assert(test::zero == 0, "");
7037 static_assert(test::one == 1, "");
7041 namespace test_lambdas
7044 void
7045 test1()
7047 auto lambda1 = [](){};
7048 auto lambda2 = lambda1;
7049 lambda1();
7050 lambda2();
7054 test2()
7056 auto a = [](int i, int j){ return i + j; }(1, 2);
7057 auto b = []() -> int { return '0'; }();
7058 auto c = [=](){ return a + b; }();
7059 auto d = [&](){ return c; }();
7060 auto e = [a, &b](int x) mutable {
7061 const auto identity = [](int y){ return y; };
7062 for (auto i = 0; i < a; ++i)
7063 a += b--;
7064 return x + identity(a + b);
7065 }(0);
7066 return a + b + c + d + e;
7070 test3()
7072 const auto nullary = [](){ return 0; };
7073 const auto unary = [](int x){ return x; };
7074 using nullary_t = decltype(nullary);
7075 using unary_t = decltype(unary);
7076 const auto higher1st = [](nullary_t f){ return f(); };
7077 const auto higher2nd = [unary](nullary_t f1){
7078 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7080 return higher1st(nullary) + higher2nd(nullary)(unary);
7085 namespace test_variadic_templates
7088 template <int...>
7089 struct sum;
7091 template <int N0, int... N1toN>
7092 struct sum<N0, N1toN...>
7094 static constexpr auto value = N0 + sum<N1toN...>::value;
7097 template <>
7098 struct sum<>
7100 static constexpr auto value = 0;
7103 static_assert(sum<>::value == 0, "");
7104 static_assert(sum<1>::value == 1, "");
7105 static_assert(sum<23>::value == 23, "");
7106 static_assert(sum<1, 2>::value == 3, "");
7107 static_assert(sum<5, 5, 11>::value == 21, "");
7108 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7112 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7113 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7114 // because of this.
7115 namespace test_template_alias_sfinae
7118 struct foo {};
7120 template<typename T>
7121 using member = typename T::member_type;
7123 template<typename T>
7124 void func(...) {}
7126 template<typename T>
7127 void func(member<T>*) {}
7129 void test();
7131 void test() { func<foo>(0); }
7135 } // namespace cxx11
7137 #endif // __cplusplus >= 201103L
7141 _ACEOF
7142 if ac_fn_cxx_try_compile "$LINENO"; then :
7143 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7144 else
7145 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7150 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7151 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7152 ac_success=yes
7155 if test x$ac_success = xno; then
7156 for alternative in ${ax_cxx_compile_alternatives}; do
7157 switch="-std=gnu++${alternative}"
7158 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7160 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7161 if eval \${$cachevar+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 ac_save_CXX="$CXX"
7165 CXX="$CXX $switch"
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7170 // If the compiler admits that it is not ready for C++11, why torture it?
7171 // Hopefully, this will speed up the test.
7173 #ifndef __cplusplus
7175 #error "This is not a C++ compiler"
7177 #elif __cplusplus < 201103L
7179 #error "This is not a C++11 compiler"
7181 #else
7183 namespace cxx11
7186 namespace test_static_assert
7189 template <typename T>
7190 struct check
7192 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7197 namespace test_final_override
7200 struct Base
7202 virtual ~Base() {}
7203 virtual void f() {}
7206 struct Derived : public Base
7208 virtual ~Derived() override {}
7209 virtual void f() override {}
7214 namespace test_double_right_angle_brackets
7217 template < typename T >
7218 struct check {};
7220 typedef check<void> single_type;
7221 typedef check<check<void>> double_type;
7222 typedef check<check<check<void>>> triple_type;
7223 typedef check<check<check<check<void>>>> quadruple_type;
7227 namespace test_decltype
7233 int a = 1;
7234 decltype(a) b = 2;
7235 return a + b;
7240 namespace test_type_deduction
7243 template < typename T1, typename T2 >
7244 struct is_same
7246 static const bool value = false;
7249 template < typename T >
7250 struct is_same<T, T>
7252 static const bool value = true;
7255 template < typename T1, typename T2 >
7256 auto
7257 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7259 return a1 + a2;
7263 test(const int c, volatile int v)
7265 static_assert(is_same<int, decltype(0)>::value == true, "");
7266 static_assert(is_same<int, decltype(c)>::value == false, "");
7267 static_assert(is_same<int, decltype(v)>::value == false, "");
7268 auto ac = c;
7269 auto av = v;
7270 auto sumi = ac + av + 'x';
7271 auto sumf = ac + av + 1.0;
7272 static_assert(is_same<int, decltype(ac)>::value == true, "");
7273 static_assert(is_same<int, decltype(av)>::value == true, "");
7274 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7275 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7276 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7277 return (sumf > 0.0) ? sumi : add(c, v);
7282 namespace test_noexcept
7285 int f() { return 0; }
7286 int g() noexcept { return 0; }
7288 static_assert(noexcept(f()) == false, "");
7289 static_assert(noexcept(g()) == true, "");
7293 namespace test_constexpr
7296 template < typename CharT >
7297 unsigned long constexpr
7298 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7300 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7303 template < typename CharT >
7304 unsigned long constexpr
7305 strlen_c(const CharT *const s) noexcept
7307 return strlen_c_r(s, 0UL);
7310 static_assert(strlen_c("") == 0UL, "");
7311 static_assert(strlen_c("1") == 1UL, "");
7312 static_assert(strlen_c("example") == 7UL, "");
7313 static_assert(strlen_c("another\0example") == 7UL, "");
7317 namespace test_rvalue_references
7320 template < int N >
7321 struct answer
7323 static constexpr int value = N;
7326 answer<1> f(int&) { return answer<1>(); }
7327 answer<2> f(const int&) { return answer<2>(); }
7328 answer<3> f(int&&) { return answer<3>(); }
7330 void
7331 test()
7333 int i = 0;
7334 const int c = 0;
7335 static_assert(decltype(f(i))::value == 1, "");
7336 static_assert(decltype(f(c))::value == 2, "");
7337 static_assert(decltype(f(0))::value == 3, "");
7342 namespace test_uniform_initialization
7345 struct test
7347 static const int zero {};
7348 static const int one {1};
7351 static_assert(test::zero == 0, "");
7352 static_assert(test::one == 1, "");
7356 namespace test_lambdas
7359 void
7360 test1()
7362 auto lambda1 = [](){};
7363 auto lambda2 = lambda1;
7364 lambda1();
7365 lambda2();
7369 test2()
7371 auto a = [](int i, int j){ return i + j; }(1, 2);
7372 auto b = []() -> int { return '0'; }();
7373 auto c = [=](){ return a + b; }();
7374 auto d = [&](){ return c; }();
7375 auto e = [a, &b](int x) mutable {
7376 const auto identity = [](int y){ return y; };
7377 for (auto i = 0; i < a; ++i)
7378 a += b--;
7379 return x + identity(a + b);
7380 }(0);
7381 return a + b + c + d + e;
7385 test3()
7387 const auto nullary = [](){ return 0; };
7388 const auto unary = [](int x){ return x; };
7389 using nullary_t = decltype(nullary);
7390 using unary_t = decltype(unary);
7391 const auto higher1st = [](nullary_t f){ return f(); };
7392 const auto higher2nd = [unary](nullary_t f1){
7393 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7395 return higher1st(nullary) + higher2nd(nullary)(unary);
7400 namespace test_variadic_templates
7403 template <int...>
7404 struct sum;
7406 template <int N0, int... N1toN>
7407 struct sum<N0, N1toN...>
7409 static constexpr auto value = N0 + sum<N1toN...>::value;
7412 template <>
7413 struct sum<>
7415 static constexpr auto value = 0;
7418 static_assert(sum<>::value == 0, "");
7419 static_assert(sum<1>::value == 1, "");
7420 static_assert(sum<23>::value == 23, "");
7421 static_assert(sum<1, 2>::value == 3, "");
7422 static_assert(sum<5, 5, 11>::value == 21, "");
7423 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7427 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7428 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7429 // because of this.
7430 namespace test_template_alias_sfinae
7433 struct foo {};
7435 template<typename T>
7436 using member = typename T::member_type;
7438 template<typename T>
7439 void func(...) {}
7441 template<typename T>
7442 void func(member<T>*) {}
7444 void test();
7446 void test() { func<foo>(0); }
7450 } // namespace cxx11
7452 #endif // __cplusplus >= 201103L
7456 _ACEOF
7457 if ac_fn_cxx_try_compile "$LINENO"; then :
7458 eval $cachevar=yes
7459 else
7460 eval $cachevar=no
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 CXX="$ac_save_CXX"
7465 eval ac_res=\$$cachevar
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7467 $as_echo "$ac_res" >&6; }
7468 if eval test x\$$cachevar = xyes; then
7469 CXX="$CXX $switch"
7470 if test -n "$CXXCPP" ; then
7471 CXXCPP="$CXXCPP $switch"
7473 ac_success=yes
7474 break
7476 done
7479 if test x$ac_success = xno; then
7480 for alternative in ${ax_cxx_compile_alternatives}; do
7481 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7482 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7484 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7485 if eval \${$cachevar+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 ac_save_CXX="$CXX"
7489 CXX="$CXX $switch"
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7494 // If the compiler admits that it is not ready for C++11, why torture it?
7495 // Hopefully, this will speed up the test.
7497 #ifndef __cplusplus
7499 #error "This is not a C++ compiler"
7501 #elif __cplusplus < 201103L
7503 #error "This is not a C++11 compiler"
7505 #else
7507 namespace cxx11
7510 namespace test_static_assert
7513 template <typename T>
7514 struct check
7516 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7521 namespace test_final_override
7524 struct Base
7526 virtual ~Base() {}
7527 virtual void f() {}
7530 struct Derived : public Base
7532 virtual ~Derived() override {}
7533 virtual void f() override {}
7538 namespace test_double_right_angle_brackets
7541 template < typename T >
7542 struct check {};
7544 typedef check<void> single_type;
7545 typedef check<check<void>> double_type;
7546 typedef check<check<check<void>>> triple_type;
7547 typedef check<check<check<check<void>>>> quadruple_type;
7551 namespace test_decltype
7557 int a = 1;
7558 decltype(a) b = 2;
7559 return a + b;
7564 namespace test_type_deduction
7567 template < typename T1, typename T2 >
7568 struct is_same
7570 static const bool value = false;
7573 template < typename T >
7574 struct is_same<T, T>
7576 static const bool value = true;
7579 template < typename T1, typename T2 >
7580 auto
7581 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7583 return a1 + a2;
7587 test(const int c, volatile int v)
7589 static_assert(is_same<int, decltype(0)>::value == true, "");
7590 static_assert(is_same<int, decltype(c)>::value == false, "");
7591 static_assert(is_same<int, decltype(v)>::value == false, "");
7592 auto ac = c;
7593 auto av = v;
7594 auto sumi = ac + av + 'x';
7595 auto sumf = ac + av + 1.0;
7596 static_assert(is_same<int, decltype(ac)>::value == true, "");
7597 static_assert(is_same<int, decltype(av)>::value == true, "");
7598 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7599 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7600 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7601 return (sumf > 0.0) ? sumi : add(c, v);
7606 namespace test_noexcept
7609 int f() { return 0; }
7610 int g() noexcept { return 0; }
7612 static_assert(noexcept(f()) == false, "");
7613 static_assert(noexcept(g()) == true, "");
7617 namespace test_constexpr
7620 template < typename CharT >
7621 unsigned long constexpr
7622 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7624 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7627 template < typename CharT >
7628 unsigned long constexpr
7629 strlen_c(const CharT *const s) noexcept
7631 return strlen_c_r(s, 0UL);
7634 static_assert(strlen_c("") == 0UL, "");
7635 static_assert(strlen_c("1") == 1UL, "");
7636 static_assert(strlen_c("example") == 7UL, "");
7637 static_assert(strlen_c("another\0example") == 7UL, "");
7641 namespace test_rvalue_references
7644 template < int N >
7645 struct answer
7647 static constexpr int value = N;
7650 answer<1> f(int&) { return answer<1>(); }
7651 answer<2> f(const int&) { return answer<2>(); }
7652 answer<3> f(int&&) { return answer<3>(); }
7654 void
7655 test()
7657 int i = 0;
7658 const int c = 0;
7659 static_assert(decltype(f(i))::value == 1, "");
7660 static_assert(decltype(f(c))::value == 2, "");
7661 static_assert(decltype(f(0))::value == 3, "");
7666 namespace test_uniform_initialization
7669 struct test
7671 static const int zero {};
7672 static const int one {1};
7675 static_assert(test::zero == 0, "");
7676 static_assert(test::one == 1, "");
7680 namespace test_lambdas
7683 void
7684 test1()
7686 auto lambda1 = [](){};
7687 auto lambda2 = lambda1;
7688 lambda1();
7689 lambda2();
7693 test2()
7695 auto a = [](int i, int j){ return i + j; }(1, 2);
7696 auto b = []() -> int { return '0'; }();
7697 auto c = [=](){ return a + b; }();
7698 auto d = [&](){ return c; }();
7699 auto e = [a, &b](int x) mutable {
7700 const auto identity = [](int y){ return y; };
7701 for (auto i = 0; i < a; ++i)
7702 a += b--;
7703 return x + identity(a + b);
7704 }(0);
7705 return a + b + c + d + e;
7709 test3()
7711 const auto nullary = [](){ return 0; };
7712 const auto unary = [](int x){ return x; };
7713 using nullary_t = decltype(nullary);
7714 using unary_t = decltype(unary);
7715 const auto higher1st = [](nullary_t f){ return f(); };
7716 const auto higher2nd = [unary](nullary_t f1){
7717 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7719 return higher1st(nullary) + higher2nd(nullary)(unary);
7724 namespace test_variadic_templates
7727 template <int...>
7728 struct sum;
7730 template <int N0, int... N1toN>
7731 struct sum<N0, N1toN...>
7733 static constexpr auto value = N0 + sum<N1toN...>::value;
7736 template <>
7737 struct sum<>
7739 static constexpr auto value = 0;
7742 static_assert(sum<>::value == 0, "");
7743 static_assert(sum<1>::value == 1, "");
7744 static_assert(sum<23>::value == 23, "");
7745 static_assert(sum<1, 2>::value == 3, "");
7746 static_assert(sum<5, 5, 11>::value == 21, "");
7747 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7751 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7752 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7753 // because of this.
7754 namespace test_template_alias_sfinae
7757 struct foo {};
7759 template<typename T>
7760 using member = typename T::member_type;
7762 template<typename T>
7763 void func(...) {}
7765 template<typename T>
7766 void func(member<T>*) {}
7768 void test();
7770 void test() { func<foo>(0); }
7774 } // namespace cxx11
7776 #endif // __cplusplus >= 201103L
7780 _ACEOF
7781 if ac_fn_cxx_try_compile "$LINENO"; then :
7782 eval $cachevar=yes
7783 else
7784 eval $cachevar=no
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 CXX="$ac_save_CXX"
7789 eval ac_res=\$$cachevar
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7791 $as_echo "$ac_res" >&6; }
7792 if eval test x\$$cachevar = xyes; then
7793 CXX="$CXX $switch"
7794 if test -n "$CXXCPP" ; then
7795 CXXCPP="$CXXCPP $switch"
7797 ac_success=yes
7798 break
7800 done
7801 if test x$ac_success = xyes; then
7802 break
7804 done
7806 CXX_FOR_BUILD="$CXX"
7807 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7808 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7809 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7810 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7811 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7812 ac_ext=c
7813 ac_cpp='$CPP $CPPFLAGS'
7814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7818 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7819 if test x$ac_success = xno; then
7820 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7823 if test x$ac_success = xno; then
7824 HAVE_CXX11_FOR_BUILD=0
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7826 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7827 else
7828 HAVE_CXX11_FOR_BUILD=1
7830 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7838 # Check whether --enable-pgo-build was given.
7839 if test "${enable_pgo_build+set}" = set; then :
7840 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7841 else
7842 enable_pgo_build=no
7846 # Issue errors and warnings for invalid/strange PGO build combinations.
7847 case "$have_compiler:$host:$target:$enable_pgo_build" in
7848 *:*:*:no) ;;
7850 # Allow the PGO build only if we aren't building a compiler and
7851 # we are in a native configuration.
7852 no:$build:$build:yes | no:$build:$build:lto) ;;
7854 # Disallow the PGO bootstrap if we are building a compiler.
7855 yes:*:*:yes | yes:*:*:lto)
7856 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7859 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7861 esac
7863 if test "$enable_pgo_build" != "no"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7865 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7866 old_CFLAGS="$CFLAGS"
7867 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7868 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 int foo;
7873 _ACEOF
7874 if ac_fn_c_try_compile "$LINENO"; then :
7876 else
7877 PGO_BUILD_GEN_CFLAGS=
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880 CFLAGS="$old_CFLAGS"
7881 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7883 $as_echo "yes" >&6; }
7884 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7885 else
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887 $as_echo "no" >&6; }
7888 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7891 if test "$enable_pgo_build" = "lto"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7893 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7894 old_CFLAGS="$CFLAGS"
7895 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7896 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7899 int foo;
7900 _ACEOF
7901 if ac_fn_c_try_compile "$LINENO"; then :
7903 else
7904 PGO_BUILD_LTO_CFLAGS=
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 CFLAGS="$old_CFLAGS"
7908 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7910 $as_echo "yes" >&6; }
7911 else
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7915 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7923 # Used for setting $lt_cv_objdir
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7925 $as_echo_n "checking for objdir... " >&6; }
7926 if ${lt_cv_objdir+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 rm -f .libs 2>/dev/null
7930 mkdir .libs 2>/dev/null
7931 if test -d .libs; then
7932 lt_cv_objdir=.libs
7933 else
7934 # MS-DOS does not allow filenames that begin with a dot.
7935 lt_cv_objdir=_libs
7937 rmdir .libs 2>/dev/null
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7940 $as_echo "$lt_cv_objdir" >&6; }
7941 objdir=$lt_cv_objdir
7947 cat >>confdefs.h <<_ACEOF
7948 #define LT_OBJDIR "$lt_cv_objdir/"
7949 _ACEOF
7953 # Check for GMP, MPFR and MPC
7954 gmplibs="-lmpc -lmpfr -lgmp"
7955 gmpinc=
7956 have_gmp=no
7958 # Specify a location for mpc
7959 # check for this first so it ends up on the link line before mpfr.
7961 # Check whether --with-mpc was given.
7962 if test "${with_mpc+set}" = set; then :
7963 withval=$with_mpc;
7967 # Check whether --with-mpc-include was given.
7968 if test "${with_mpc_include+set}" = set; then :
7969 withval=$with_mpc_include;
7973 # Check whether --with-mpc-lib was given.
7974 if test "${with_mpc_lib+set}" = set; then :
7975 withval=$with_mpc_lib;
7979 if test "x$with_mpc" != x; then
7980 gmplibs="-L$with_mpc/lib $gmplibs"
7981 gmpinc="-I$with_mpc/include $gmpinc"
7983 if test "x$with_mpc_include" != x; then
7984 gmpinc="-I$with_mpc_include $gmpinc"
7986 if test "x$with_mpc_lib" != x; then
7987 gmplibs="-L$with_mpc_lib $gmplibs"
7989 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7990 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7991 gmpinc='-I$$s/mpc/src '"$gmpinc"
7992 # Do not test the mpc version. Assume that it is sufficient, since
7993 # it is in the source tree, and the library has not been built yet
7994 # but it would be included on the link line in the version check below
7995 # hence making the test fail.
7996 have_gmp=yes
7999 # Specify a location for mpfr
8000 # check for this first so it ends up on the link line before gmp.
8002 # Check whether --with-mpfr-dir was given.
8003 if test "${with_mpfr_dir+set}" = set; then :
8004 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
8005 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
8010 # Check whether --with-mpfr was given.
8011 if test "${with_mpfr+set}" = set; then :
8012 withval=$with_mpfr;
8016 # Check whether --with-mpfr-include was given.
8017 if test "${with_mpfr_include+set}" = set; then :
8018 withval=$with_mpfr_include;
8022 # Check whether --with-mpfr-lib was given.
8023 if test "${with_mpfr_lib+set}" = set; then :
8024 withval=$with_mpfr_lib;
8028 if test "x$with_mpfr" != x; then
8029 gmplibs="-L$with_mpfr/lib $gmplibs"
8030 gmpinc="-I$with_mpfr/include $gmpinc"
8032 if test "x$with_mpfr_include" != x; then
8033 gmpinc="-I$with_mpfr_include $gmpinc"
8035 if test "x$with_mpfr_lib" != x; then
8036 gmplibs="-L$with_mpfr_lib $gmplibs"
8038 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8039 # MPFR v3.1.0 moved the sources into a src sub-directory.
8040 if ! test -d ${srcdir}/mpfr/src; then
8041 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8043 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8044 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8045 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8046 # Do not test the mpfr version. Assume that it is sufficient, since
8047 # it is in the source tree, and the library has not been built yet
8048 # but it would be included on the link line in the version check below
8049 # hence making the test fail.
8050 have_gmp=yes
8053 # Specify a location for gmp
8055 # Check whether --with-gmp-dir was given.
8056 if test "${with_gmp_dir+set}" = set; then :
8057 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
8058 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
8063 # Check whether --with-gmp was given.
8064 if test "${with_gmp+set}" = set; then :
8065 withval=$with_gmp;
8069 # Check whether --with-gmp-include was given.
8070 if test "${with_gmp_include+set}" = set; then :
8071 withval=$with_gmp_include;
8075 # Check whether --with-gmp-lib was given.
8076 if test "${with_gmp_lib+set}" = set; then :
8077 withval=$with_gmp_lib;
8082 if test "x$with_gmp" != x; then
8083 gmplibs="-L$with_gmp/lib $gmplibs"
8084 gmpinc="-I$with_gmp/include $gmpinc"
8086 if test "x$with_gmp_include" != x; then
8087 gmpinc="-I$with_gmp_include $gmpinc"
8089 if test "x$with_gmp_lib" != x; then
8090 gmplibs="-L$with_gmp_lib $gmplibs"
8092 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
8093 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8094 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8095 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8096 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8097 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8098 # Do not test the gmp version. Assume that it is sufficient, since
8099 # it is in the source tree, and the library has not been built yet
8100 # but it would be included on the link line in the version check below
8101 # hence making the test fail.
8102 have_gmp=yes
8105 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
8106 have_gmp=yes
8107 saved_CFLAGS="$CFLAGS"
8108 CFLAGS="$CFLAGS $gmpinc"
8109 # Check for the recommended and required versions of GMP.
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8111 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 #include "gmp.h"
8116 main ()
8119 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8120 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8121 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8122 choke me
8123 #endif
8126 return 0;
8128 _ACEOF
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8132 #include <gmp.h>
8134 main ()
8137 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8138 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8139 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8140 choke me
8141 #endif
8144 return 0;
8146 _ACEOF
8147 if ac_fn_c_try_compile "$LINENO"; then :
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8149 $as_echo "yes" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8152 $as_echo "buggy but acceptable" >&6; }
8154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 else
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }; have_gmp=no
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 # If we have GMP, check the MPFR version.
8162 if test x"$have_gmp" = xyes; then
8163 # Check for the recommended and required versions of MPFR.
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8165 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 #include <gmp.h>
8169 #include <mpfr.h>
8171 main ()
8174 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8175 choke me
8176 #endif
8179 return 0;
8181 _ACEOF
8182 if ac_fn_c_try_compile "$LINENO"; then :
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 #include <gmp.h>
8186 #include <mpfr.h>
8188 main ()
8191 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8192 choke me
8193 #endif
8196 return 0;
8198 _ACEOF
8199 if ac_fn_c_try_compile "$LINENO"; then :
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8201 $as_echo "yes" >&6; }
8202 else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8204 $as_echo "buggy but acceptable" >&6; }
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 else
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }; have_gmp=no
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 # Check for the MPC header version.
8215 if test x"$have_gmp" = xyes ; then
8216 # Check for the recommended and required versions of MPC.
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8218 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 #include <mpc.h>
8223 main ()
8226 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8227 choke me
8228 #endif
8231 return 0;
8233 _ACEOF
8234 if ac_fn_c_try_compile "$LINENO"; then :
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 #include <mpc.h>
8239 main ()
8242 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8243 choke me
8244 #endif
8247 return 0;
8249 _ACEOF
8250 if ac_fn_c_try_compile "$LINENO"; then :
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8252 $as_echo "yes" >&6; }
8253 else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8255 $as_echo "buggy but acceptable" >&6; }
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }; have_gmp=no
8262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 # Now check the MPFR library.
8266 if test x"$have_gmp" = xyes; then
8267 saved_LIBS="$LIBS"
8268 LIBS="$LIBS $gmplibs"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8270 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273 #include <mpc.h>
8275 main ()
8278 mpfr_t n;
8279 mpfr_t x;
8280 mpc_t c;
8281 int t;
8282 mpfr_init (n);
8283 mpfr_init (x);
8284 mpfr_atan2 (n, n, x, MPFR_RNDN);
8285 mpfr_erfc (n, x, MPFR_RNDN);
8286 mpfr_subnormalize (x, t, MPFR_RNDN);
8287 mpfr_clear(n);
8288 mpfr_clear(x);
8289 mpc_init2 (c, 53);
8290 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8291 mpc_cosh (c, c, MPC_RNDNN);
8292 mpc_pow (c, c, c, MPC_RNDNN);
8293 mpc_acosh (c, c, MPC_RNDNN);
8294 mpc_clear (c);
8297 return 0;
8299 _ACEOF
8300 if ac_fn_c_try_link "$LINENO"; then :
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8302 $as_echo "yes" >&6; }
8303 else
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }; have_gmp=no
8307 rm -f core conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8309 LIBS="$saved_LIBS"
8312 CFLAGS="$saved_CFLAGS"
8314 # The library versions listed in the error message below should match
8315 # the HARD-minimums enforced above.
8316 if test x$have_gmp != xyes; then
8317 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8318 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8319 their locations. Source code for these libraries can be found at
8320 their respective hosting sites as well as at
8321 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8322 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8323 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8324 make sure that you have installed both the libraries and the header
8325 files. They may be located in separate packages." "$LINENO" 5
8329 # Flags needed for both GMP, MPFR and/or MPC.
8337 # Libraries to use for stage1 or when not bootstrapping.
8339 # Check whether --with-stage1-libs was given.
8340 if test "${with_stage1_libs+set}" = set; then :
8341 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8342 stage1_libs=
8343 else
8344 stage1_libs=$withval
8346 else
8347 stage1_libs=
8352 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8353 # default is yes if gcc is being built; no otherwise. The reason for
8354 # this default is that gdb is sometimes linked against GNU Source
8355 # Highlight, which is a shared library that uses C++ exceptions. In
8356 # this case, -static-libstdc++ will cause crashes.
8358 # Check whether --with-static-standard-libraries was given.
8359 if test "${with_static_standard_libraries+set}" = set; then :
8360 withval=$with_static_standard_libraries;
8361 else
8362 with_static_standard_libraries=auto
8365 if test "$with_static_standard_libraries" = auto; then
8366 with_static_standard_libraries=$have_compiler
8369 # Linker flags to use for stage1 or when not bootstrapping.
8371 # Check whether --with-stage1-ldflags was given.
8372 if test "${with_stage1_ldflags+set}" = set; then :
8373 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8374 stage1_ldflags=
8375 else
8376 stage1_ldflags=$withval
8378 else
8379 stage1_ldflags=
8380 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8381 # if supported. But if the user explicitly specified the libraries to use,
8382 # trust that they are doing what they want.
8383 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8384 -a "$have_static_libs" = yes; then
8385 stage1_ldflags="-static-libstdc++ -static-libgcc"
8391 # Libraries to use for stage2 and later builds.
8393 # Check whether --with-boot-libs was given.
8394 if test "${with_boot_libs+set}" = set; then :
8395 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8396 poststage1_libs=
8397 else
8398 poststage1_libs=$withval
8400 else
8401 poststage1_libs=
8406 # Linker flags to use for stage2 and later builds.
8408 # Check whether --with-boot-ldflags was given.
8409 if test "${with_boot_ldflags+set}" = set; then :
8410 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8411 poststage1_ldflags=
8412 else
8413 poststage1_ldflags=$withval
8415 else
8416 poststage1_ldflags=
8417 # In stages 2 and 3, default to linking libstdc++ and libgcc
8418 # statically. But if the user explicitly specified the libraries to
8419 # use, trust that they are doing what they want.
8420 if test "$poststage1_libs" = ""; then
8421 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8427 # GCC GRAPHITE dependency isl.
8428 # Basic setup is inlined here, actual checks are in config/isl.m4
8431 # Check whether --with-isl was given.
8432 if test "${with_isl+set}" = set; then :
8433 withval=$with_isl;
8437 # Treat --without-isl as a request to disable
8438 # GRAPHITE support and skip all following checks.
8439 if test "x$with_isl" != "xno"; then
8440 # Check for isl
8443 # Check whether --with-isl-include was given.
8444 if test "${with_isl_include+set}" = set; then :
8445 withval=$with_isl_include;
8449 # Check whether --with-isl-lib was given.
8450 if test "${with_isl_lib+set}" = set; then :
8451 withval=$with_isl_lib;
8455 # Check whether --enable-isl-version-check was given.
8456 if test "${enable_isl_version_check+set}" = set; then :
8457 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8458 else
8459 ENABLE_ISL_CHECK=yes
8463 # Initialize isllibs and islinc.
8464 case $with_isl in
8466 isllibs=
8467 islinc=
8469 "" | yes)
8472 isllibs="-L$with_isl/lib"
8473 islinc="-I$with_isl/include"
8475 esac
8476 if test "x${with_isl_include}" != x ; then
8477 islinc="-I$with_isl_include"
8479 if test "x${with_isl_lib}" != x; then
8480 isllibs="-L$with_isl_lib"
8482 if test "x${islinc}" = x && test "x${isllibs}" = x \
8483 && test -d ${srcdir}/isl; then
8484 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8485 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8486 ENABLE_ISL_CHECK=no
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8488 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8491 isllibs="${isllibs} -lisl"
8495 if test "${ENABLE_ISL_CHECK}" = yes ; then
8496 _isl_saved_CFLAGS=$CFLAGS
8497 _isl_saved_LDFLAGS=$LDFLAGS
8498 _isl_saved_LIBS=$LIBS
8500 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8501 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8502 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8505 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508 #include <isl/schedule.h>
8510 main ()
8512 isl_options_set_schedule_serialize_sccs (NULL, 0);
8514 return 0;
8516 _ACEOF
8517 if ac_fn_c_try_link "$LINENO"; then :
8518 gcc_cv_isl=yes
8519 else
8520 gcc_cv_isl=no
8522 rm -f core conftest.err conftest.$ac_objext \
8523 conftest$ac_exeext conftest.$ac_ext
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8525 $as_echo "$gcc_cv_isl" >&6; }
8527 if test "${gcc_cv_isl}" = no ; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8529 $as_echo "required isl version is 0.15 or later" >&6; }
8532 CFLAGS=$_isl_saved_CFLAGS
8533 LDFLAGS=$_isl_saved_LDFLAGS
8534 LIBS=$_isl_saved_LIBS
8542 if test "x${with_isl}" = xno; then
8543 graphite_requested=no
8544 elif test "x${with_isl}" != x \
8545 || test "x${with_isl_include}" != x \
8546 || test "x${with_isl_lib}" != x ; then
8547 graphite_requested=yes
8548 else
8549 graphite_requested=no
8554 if test "${gcc_cv_isl}" = no ; then
8555 isllibs=
8556 islinc=
8559 if test "${graphite_requested}" = yes \
8560 && test "x${isllibs}" = x \
8561 && test "x${islinc}" = x ; then
8563 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8569 # If the isl check failed, disable builds of in-tree variant of isl
8570 if test "x$with_isl" = xno ||
8571 test "x$gcc_cv_isl" = xno; then
8572 noconfigdirs="$noconfigdirs isl"
8573 islinc=
8579 # Check for LTO support.
8580 # Check whether --enable-lto was given.
8581 if test "${enable_lto+set}" = set; then :
8582 enableval=$enable_lto; enable_lto=$enableval
8583 else
8584 enable_lto=yes; default_enable_lto=yes
8591 target_elf=no
8592 case $target in
8593 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8594 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8595 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8596 nvptx-*-none)
8597 target_elf=no
8600 target_elf=yes
8602 esac
8604 if test $target_elf = yes; then :
8605 # ELF platforms build the lto-plugin always.
8606 build_lto_plugin=yes
8608 else
8609 if test x"$default_enable_lto" = x"yes" ; then
8610 case $target in
8611 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8612 # On other non-ELF platforms, LTO has yet to be validated.
8613 *) enable_lto=no ;;
8614 esac
8615 else
8616 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8617 # It would also be nice to check the binutils support, but we don't
8618 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8619 # warn during gcc/ subconfigure; unless you're bootstrapping with
8620 # -flto it won't be needed until after installation anyway.
8621 case $target in
8622 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8623 *) if test x"$enable_lto" = x"yes"; then
8624 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8627 esac
8629 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8630 # Build it unless LTO was explicitly disabled.
8631 case $target in
8632 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8633 *) ;;
8634 esac
8639 # Check whether --enable-linker-plugin-configure-flags was given.
8640 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8641 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8642 else
8643 extra_linker_plugin_configure_flags=
8647 # Check whether --enable-linker-plugin-flags was given.
8648 if test "${enable_linker_plugin_flags+set}" = set; then :
8649 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8650 else
8651 extra_linker_plugin_flags=
8656 # Enable --enable-host-shared.
8657 # Checked early to determine whether jit is an 'all' language
8658 # Check whether --enable-host-shared was given.
8659 if test "${enable_host_shared+set}" = set; then :
8660 enableval=$enable_host_shared; host_shared=$enableval
8661 case $target in
8662 x86_64-*-darwin* | aarch64-*-darwin*)
8663 if test x$host_shared != xyes ; then
8664 # PIC is the default, and actually cannot be switched off.
8665 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8666 host_shared=yes
8667 fi ;;
8668 *) ;;
8669 esac
8670 else
8671 case $target in
8672 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8673 *) host_shared=no ;;
8674 esac
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, liboffloadmic 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-liboffloadmic 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 extra_host_zlib_configure_flags=
9216 case " $configdirs " in
9217 *" lto-plugin "* | *" libcc1 "*)
9218 # When these are to be built as shared libraries, the same applies to
9219 # libiberty.
9220 extra_host_libiberty_configure_flags=--enable-shared
9222 *" bfd "*)
9223 # When bfd is to be built as a shared library, the same applies to
9224 # zlib.
9225 if test "$enable_shared" = "yes"; then
9226 extra_host_zlib_configure_flags=--enable-host-shared
9229 esac
9233 # Produce a warning message for the subdirs we can't configure.
9234 # This isn't especially interesting in the Cygnus tree, but in the individual
9235 # FSF releases, it's important to let people know when their machine isn't
9236 # supported by the one or two programs in a package.
9238 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9239 # If $appdirs is non-empty, at least one of those directories must still
9240 # be configured, or we error out. (E.g., if the gas release supports a
9241 # specified target in some subdirs but not the gas subdir, we shouldn't
9242 # pretend that all is well.)
9243 if test -n "$appdirs" ; then
9244 for dir in $appdirs ; do
9245 if test -r $dir/Makefile.in ; then
9246 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9247 appdirs=""
9248 break
9250 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9251 appdirs=""
9252 break
9255 done
9256 if test -n "$appdirs" ; then
9257 echo "*** This configuration is not supported by this package." 1>&2
9258 exit 1
9261 # Okay, some application will build, or we don't care to check. Still
9262 # notify of subdirs not getting built.
9263 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9264 echo " ${notsupp}" 1>&2
9265 echo " (Any other directories should still work fine.)" 1>&2
9268 case "$host" in
9269 *msdosdjgpp*)
9270 enable_gdbtk=no ;;
9271 esac
9273 # To find our prefix, in gcc_cv_tool_prefix.
9275 # The user is always right.
9276 if test "${PATH_SEPARATOR+set}" != set; then
9277 echo "#! /bin/sh" >conf$$.sh
9278 echo "exit 0" >>conf$$.sh
9279 chmod +x conf$$.sh
9280 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9281 PATH_SEPARATOR=';'
9282 else
9283 PATH_SEPARATOR=:
9285 rm -f conf$$.sh
9289 get_gcc_base_ver="cat"
9291 # Check whether --with-gcc-major-version-only was given.
9292 if test "${with_gcc_major_version_only+set}" = set; then :
9293 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9294 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9304 if test "x$exec_prefix" = xNONE; then
9305 if test "x$prefix" = xNONE; then
9306 gcc_cv_tool_prefix=$ac_default_prefix
9307 else
9308 gcc_cv_tool_prefix=$prefix
9310 else
9311 gcc_cv_tool_prefix=$exec_prefix
9314 # If there is no compiler in the tree, use the PATH only. In any
9315 # case, if there is no compiler in the tree nobody should use
9316 # AS_FOR_TARGET and LD_FOR_TARGET.
9317 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9318 if test x$with_gcc_major_version_only = xyes ; then
9319 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9320 else
9321 gcc_version=`cat $srcdir/gcc/BASE-VER`
9323 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9324 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9325 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9326 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9327 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9328 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9329 else
9330 gcc_cv_tool_dirs=
9333 if test x$build = x$target && test -n "$md_exec_prefix"; then
9334 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9339 copy_dirs=
9342 # Check whether --with-build-sysroot was given.
9343 if test "${with_build_sysroot+set}" = set; then :
9344 withval=$with_build_sysroot; if test x"$withval" != x ; then
9345 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9347 else
9348 SYSROOT_CFLAGS_FOR_TARGET=
9354 # Check whether --with-debug-prefix-map was given.
9355 if test "${with_debug_prefix_map+set}" = set; then :
9356 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9357 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9358 for debug_map in $withval; do
9359 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9360 done
9362 else
9363 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9368 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9369 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9370 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9371 # We want to ensure that TARGET libraries (which we know are built with
9372 # gcc) are built with "-O2 -g", so include those options when setting
9373 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9374 if test "x$CFLAGS_FOR_TARGET" = x; then
9375 if test "x${is_cross_compiler}" = xyes; then
9376 CFLAGS_FOR_TARGET="-g -O2"
9377 else
9378 CFLAGS_FOR_TARGET=$CFLAGS
9379 case " $CFLAGS " in
9380 *" -O2 "*) ;;
9381 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9382 esac
9383 case " $CFLAGS " in
9384 *" -g "* | *" -g3 "*) ;;
9385 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9386 esac
9391 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9392 if test "x${is_cross_compiler}" = xyes; then
9393 CXXFLAGS_FOR_TARGET="-g -O2"
9394 else
9395 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9396 case " $CXXFLAGS " in
9397 *" -O2 "*) ;;
9398 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9399 esac
9400 case " $CXXFLAGS " in
9401 *" -g "* | *" -g3 "*) ;;
9402 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9403 esac
9410 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9411 # the named directory are copied to $(tooldir)/sys-include.
9412 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9413 if test x${is_cross_compiler} = xno ; then
9414 echo 1>&2 '***' --with-headers is only supported when cross compiling
9415 exit 1
9417 if test x"${with_headers}" != xyes ; then
9418 x=${gcc_cv_tool_prefix}
9419 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9423 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9424 # the name directories are copied to $(tooldir)/lib. Multiple directories
9425 # are permitted.
9426 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9427 if test x${is_cross_compiler} = xno ; then
9428 echo 1>&2 '***' --with-libs is only supported when cross compiling
9429 exit 1
9431 if test x"${with_libs}" != xyes ; then
9432 # Copy the libraries in reverse order, so that files in the first named
9433 # library override files in subsequent libraries.
9434 x=${gcc_cv_tool_prefix}
9435 for l in ${with_libs}; do
9436 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9437 done
9441 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9443 # This is done by determining whether or not the appropriate directory
9444 # is available, and by checking whether or not specific configurations
9445 # have requested that this magic not happen.
9447 # The command line options always override the explicit settings in
9448 # configure.ac, and the settings in configure.ac override this magic.
9450 # If the default for a toolchain is to use GNU as and ld, and you don't
9451 # want to do that, then you should use the --without-gnu-as and
9452 # --without-gnu-ld options for the configure script. Similarly, if
9453 # the default is to use the included zlib and you don't want to do that,
9454 # you should use the --with-system-zlib option for the configure script.
9456 if test x${use_gnu_as} = x &&
9457 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9458 with_gnu_as=yes
9459 extra_host_args="$extra_host_args --with-gnu-as"
9462 if test x${use_gnu_ld} = x &&
9463 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9464 with_gnu_ld=yes
9465 extra_host_args="$extra_host_args --with-gnu-ld"
9468 if test x${use_included_zlib} = x &&
9469 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9471 else
9472 with_system_zlib=yes
9473 extra_host_args="$extra_host_args --with-system-zlib"
9476 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9477 # can detect this case.
9479 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9480 with_newlib=yes
9481 extra_host_args="$extra_host_args --with-newlib"
9484 # Handle ${copy_dirs}
9485 set fnord ${copy_dirs}
9486 shift
9487 while test $# != 0 ; do
9488 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9490 else
9491 echo Copying $1 to $2
9493 # Use the install script to create the directory and all required
9494 # parent directories.
9495 if test -d $2 ; then
9497 else
9498 echo >config.temp
9499 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9502 # Copy the directory, assuming we have tar.
9503 # FIXME: Should we use B in the second tar? Not all systems support it.
9504 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9506 # It is the responsibility of the user to correctly adjust all
9507 # symlinks. If somebody can figure out how to handle them correctly
9508 # here, feel free to add the code.
9510 echo $1 > $2/COPIED
9512 shift; shift
9513 done
9515 # Determine a target-dependent exec_prefix that the installed
9516 # gcc will search in. Keep this list sorted by triplet, with
9517 # the *-*-osname triplets last.
9518 md_exec_prefix=
9519 case "${target}" in
9520 i[34567]86-pc-msdosdjgpp*)
9521 md_exec_prefix=/dev/env/DJDIR/bin
9523 *-*-hpux* | \
9524 *-*-nto-qnx* | \
9525 *-*-solaris2*)
9526 md_exec_prefix=/usr/ccs/bin
9528 esac
9530 extra_arflags_for_target=
9531 extra_nmflags_for_target=
9532 extra_ranlibflags_for_target=
9533 target_makefile_frag=/dev/null
9534 case "${target}" in
9535 spu-*-*)
9536 target_makefile_frag="config/mt-spu"
9538 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9539 target_makefile_frag="config/mt-sde"
9541 mipsisa*-*-elfoabi*)
9542 target_makefile_frag="config/mt-mips-elfoabi"
9544 mips*-*-*linux* | mips*-*-gnu*)
9545 target_makefile_frag="config/mt-mips-gnu"
9547 nios2-*-elf*)
9548 target_makefile_frag="config/mt-nios2-elf"
9550 *-*-linux-android*)
9551 target_makefile_frag="config/mt-android"
9553 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9554 target_makefile_frag="config/mt-gnu"
9556 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9557 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9558 # commands to handle both 32-bit and 64-bit objects. These flags are
9559 # harmless if we're using GNU nm or ar.
9560 extra_arflags_for_target=" -X32_64"
9561 extra_nmflags_for_target=" -B -X32_64"
9563 esac
9565 alphaieee_frag=/dev/null
9566 case $target in
9567 alpha*-*-*)
9568 # This just makes sure to use the -mieee option to build target libs.
9569 # This should probably be set individually by each library.
9570 alphaieee_frag="config/mt-alphaieee"
9572 esac
9574 # If --enable-target-optspace always use -Os instead of -O2 to build
9575 # the target libraries, similarly if it is not specified, use -Os
9576 # on selected platforms.
9577 ospace_frag=/dev/null
9578 case "${enable_target_optspace}:${target}" in
9579 yes:*)
9580 ospace_frag="config/mt-ospace"
9582 :d30v-*)
9583 ospace_frag="config/mt-d30v"
9585 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9586 ospace_frag="config/mt-ospace"
9588 no:* | :*)
9591 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9593 esac
9595 # Some systems (e.g., one of the i386-aix systems the gas testers are
9596 # using) don't handle "\$" correctly, so don't use it here.
9597 tooldir='${exec_prefix}'/${target_noncanonical}
9598 build_tooldir=${tooldir}
9600 # Create a .gdbinit file which runs the one in srcdir
9601 # and tells GDB to look there for source files.
9603 if test -r ${srcdir}/.gdbinit ; then
9604 case ${srcdir} in
9605 .) ;;
9606 *) cat > ./.gdbinit <<EOF
9607 # ${NO_EDIT}
9608 dir ${srcdir}
9609 dir .
9610 source ${srcdir}/.gdbinit
9613 esac
9616 # Make sure that the compiler is able to generate an executable. If it
9617 # can't, we are probably in trouble. We don't care whether we can run the
9618 # executable--we might be using a cross compiler--we only care whether it
9619 # can be created. At this point the main configure script has set CC.
9620 we_are_ok=no
9621 echo "int main () { return 0; }" > conftest.c
9622 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9623 if test $? = 0 ; then
9624 if test -s conftest || test -s conftest.exe ; then
9625 we_are_ok=yes
9628 case $we_are_ok in
9630 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9631 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9632 rm -f conftest*
9633 exit 1
9635 esac
9636 rm -f conftest*
9638 # Decide which environment variable is used to find dynamic libraries.
9639 case "${host}" in
9640 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9641 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9642 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9643 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9644 esac
9646 # On systems where the dynamic library environment variable is PATH,
9647 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9648 # built executables to PATH.
9649 if test "$RPATH_ENVVAR" = PATH; then
9650 GCC_SHLIB_SUBDIR=/shlib
9651 else
9652 GCC_SHLIB_SUBDIR=
9655 # Adjust the toplevel makefile according to whether bootstrap was selected.
9656 case $enable_bootstrap in
9657 yes)
9658 bootstrap_suffix=bootstrap
9659 BUILD_CONFIG=bootstrap-debug
9662 bootstrap_suffix=no-bootstrap
9663 BUILD_CONFIG=
9665 esac
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9668 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9671 # Check whether --with-build-config was given.
9672 if test "${with_build_config+set}" = set; then :
9673 withval=$with_build_config; case $with_build_config in
9674 yes) with_build_config= ;;
9675 no) with_build_config= BUILD_CONFIG= ;;
9676 esac
9680 if test "x${with_build_config}" != x; then
9681 BUILD_CONFIG=$with_build_config
9682 else
9683 case $BUILD_CONFIG in
9684 bootstrap-debug)
9685 if echo "int f (void) { return 0; }" > conftest.c &&
9686 ${CC} -c conftest.c &&
9687 mv conftest.o conftest.o.g0 &&
9688 ${CC} -c -g conftest.c &&
9689 mv conftest.o conftest.o.g &&
9690 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9692 else
9693 BUILD_CONFIG=
9695 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9697 esac
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9700 $as_echo "$BUILD_CONFIG" >&6; }
9703 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9705 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9706 # Check whether --enable-vtable-verify was given.
9707 if test "${enable_vtable_verify+set}" = set; then :
9708 enableval=$enable_vtable_verify; case "$enableval" in
9709 yes) enable_vtable_verify=yes ;;
9710 no) enable_vtable_verify=no ;;
9711 *) enable_vtable_verify=no;;
9712 esac
9713 else
9714 enable_vtable_verify=no
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9718 $as_echo "$enable_vtable_verify" >&6; }
9720 # Record target_configdirs and the configure arguments for target and
9721 # build configuration in Makefile.
9722 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9723 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9724 bootstrap_fixincludes=no
9726 # If we are building libgomp, bootstrap it.
9727 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9728 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9731 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9732 # or bootstrap-ubsan, bootstrap it.
9733 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9734 case "$BUILD_CONFIG" in
9735 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9736 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9737 bootstrap_fixincludes=yes
9739 esac
9742 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9743 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9744 test "$enable_vtable_verify" != no; then
9745 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9748 # If we are building libatomic and the list of enabled languages includes the
9749 # D frontend, bootstrap it.
9750 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9751 case ,${enable_languages}, in
9752 *,d,*)
9753 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9755 esac
9758 # Determine whether gdb needs tk/tcl or not.
9759 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9760 # and in that case we want gdb to be built without tk. Ugh!
9761 # In fact I believe gdb is the *only* package directly dependent on tk,
9762 # so we should be able to put the 'maybe's in unconditionally and
9763 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9764 # 100% sure that that's safe though.
9766 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9767 case "$enable_gdbtk" in
9769 GDB_TK="" ;;
9770 yes)
9771 GDB_TK="${gdb_tk}" ;;
9773 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9774 # distro. Eventually someone will fix this and move Insight, nee
9775 # gdbtk to a separate directory.
9776 if test -d ${srcdir}/gdb/gdbtk ; then
9777 GDB_TK="${gdb_tk}"
9778 else
9779 GDB_TK=""
9782 esac
9783 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9784 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9786 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9787 # else does, only include them if one of these is built. The Makefile
9788 # provides the ordering, so it's enough here to add to the list.
9789 case " ${configdirs} " in
9790 *\ gdb\ *)
9791 configdirs="${configdirs} gnulib gdbsupport"
9793 *\ gdbserver\ *)
9794 configdirs="${configdirs} gnulib gdbsupport"
9796 *\ sim\ *)
9797 configdirs="${configdirs} gnulib"
9799 esac
9801 # Strip out unwanted targets.
9803 # While at that, we remove Makefiles if we were started for recursive
9804 # configuration, so that the top-level Makefile reconfigures them,
9805 # like we used to do when configure itself was recursive.
9807 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9808 # but now we're fixing up the Makefile ourselves with the additional
9809 # commands passed to AC_CONFIG_FILES. Use separate variables
9810 # extrasub-{build,host,target} not because there is any reason to split
9811 # the substitutions up that way, but only to remain below the limit of
9812 # 99 commands in a script, for HP-UX sed.
9814 # Do not nest @if/@endif or @unless/@endunless pairs, because
9815 # configure will not warn you at all.
9817 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9818 yes:yes:*\ gold\ *:*,c++,*) ;;
9819 yes:yes:*\ gold\ *:*)
9820 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9822 esac
9824 extrasub_build=
9825 for module in ${build_configdirs} ; do
9826 if test -z "${no_recursion}" \
9827 && test -f ${build_subdir}/${module}/Makefile; then
9828 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9829 rm -f ${build_subdir}/${module}/Makefile
9831 extrasub_build="$extrasub_build
9832 /^@if build-$module\$/d
9833 /^@endif build-$module\$/d
9834 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9835 /^@if build-$module-$bootstrap_suffix\$/d
9836 /^@endif build-$module-$bootstrap_suffix\$/d
9837 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9838 done
9839 extrasub_host=
9840 for module in ${configdirs} ; do
9841 if test -z "${no_recursion}"; then
9842 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9843 if test -f ${file}; then
9844 echo 1>&2 "*** removing ${file} to force reconfigure"
9845 rm -f ${file}
9847 done
9849 case ${module},${bootstrap_fixincludes} in
9850 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9851 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9852 esac
9853 extrasub_host="$extrasub_host
9854 /^@if $module\$/d
9855 /^@endif $module\$/d
9856 /^@unless $module\$/,/^@endunless $module\$/d
9857 /^@if $module-$host_bootstrap_suffix\$/d
9858 /^@endif $module-$host_bootstrap_suffix\$/d
9859 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9860 done
9861 extrasub_target=
9862 for module in ${target_configdirs} ; do
9863 if test -z "${no_recursion}" \
9864 && test -f ${target_subdir}/${module}/Makefile; then
9865 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9866 rm -f ${target_subdir}/${module}/Makefile
9869 # We only bootstrap target libraries listed in bootstrap_target_libs.
9870 case $bootstrap_target_libs in
9871 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9872 *) target_bootstrap_suffix=no-bootstrap ;;
9873 esac
9875 extrasub_target="$extrasub_target
9876 /^@if target-$module\$/d
9877 /^@endif target-$module\$/d
9878 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9879 /^@if target-$module-$target_bootstrap_suffix\$/d
9880 /^@endif target-$module-$target_bootstrap_suffix\$/d
9881 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9882 done
9884 # Do the final fixup along with target modules.
9885 extrasub_target="$extrasub_target
9886 /^@if /,/^@endif /d
9887 /^@unless /d
9888 /^@endunless /d"
9890 if test "$enable_pgo_build" != "no"; then
9891 extrasub_build="$extrasub_build
9892 /^@if pgo-build\$/d
9893 /^@endif pgo-build\$/d"
9896 # Create the serialization dependencies. This uses a temporary file.
9898 # Check whether --enable-serial-configure was given.
9899 if test "${enable_serial_configure+set}" = set; then :
9900 enableval=$enable_serial_configure;
9904 case ${enable_serial_configure} in
9905 yes)
9906 enable_serial_build_configure=yes
9907 enable_serial_host_configure=yes
9908 enable_serial_target_configure=yes
9910 esac
9912 # These force 'configure's to be done one at a time, to avoid problems
9913 # with contention over a shared config.cache.
9914 rm -f serdep.tmp
9915 echo '# serdep.tmp' > serdep.tmp
9916 olditem=
9917 test "x${enable_serial_build_configure}" = xyes &&
9918 for item in ${build_configdirs} ; do
9919 case ${olditem} in
9920 "") ;;
9921 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9922 esac
9923 olditem=${item}
9924 done
9925 olditem=
9926 test "x${enable_serial_host_configure}" = xyes &&
9927 for item in ${configdirs} ; do
9928 case ${olditem} in
9929 "") ;;
9930 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9931 esac
9932 olditem=${item}
9933 done
9934 olditem=
9935 test "x${enable_serial_target_configure}" = xyes &&
9936 for item in ${target_configdirs} ; do
9937 case ${olditem} in
9938 "") ;;
9939 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9940 esac
9941 olditem=${item}
9942 done
9943 serialization_dependencies=serdep.tmp
9946 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9947 # target, nonopt, and variable assignments. These are the ones we
9948 # might not want to pass down to subconfigures. The exception being
9949 # --cache-file=/dev/null, which is used to turn off the use of cache
9950 # files altogether, and which should be passed on to subconfigures.
9951 # Also strip program-prefix, program-suffix, and program-transform-name,
9952 # so that we can pass down a consistent program-transform-name.
9953 baseargs=
9954 tbaseargs=
9955 keep_next=no
9956 skip_next=no
9957 eval "set -- $ac_configure_args"
9958 for ac_arg
9960 if test X"$skip_next" = X"yes"; then
9961 skip_next=no
9962 continue
9964 if test X"$keep_next" = X"yes"; then
9965 case $ac_arg in
9966 *\'*)
9967 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9968 esac
9969 baseargs="$baseargs '$ac_arg'"
9970 tbaseargs="$tbaseargs '$ac_arg'"
9971 keep_next=no
9972 continue
9975 # Handle separated arguments. Based on the logic generated by
9976 # autoconf 2.59.
9977 case $ac_arg in
9978 *=* | --config-cache | -C | -disable-* | --disable-* \
9979 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9980 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9981 | -with-* | --with-* | -without-* | --without-* | --x)
9982 separate_arg=no
9985 separate_arg=yes
9988 separate_arg=no
9990 esac
9992 skip_targ=no
9993 case $ac_arg in
9995 --with-* | --without-*)
9996 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9998 case $libopt in
9999 *[-_]include)
10000 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10002 *[-_]lib)
10003 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10006 lib=$libopt
10008 esac
10011 case $lib in
10012 mpc | mpfr | gmp | isl)
10013 # If we're processing --with-$lib, --with-$lib-include or
10014 # --with-$lib-lib, for one of the libs above, and target is
10015 # different from host, don't pass the current argument to any
10016 # target library's configure.
10017 if test x$is_cross_compiler = xyes; then
10018 skip_targ=yes
10021 esac
10023 esac
10025 case "$ac_arg" in
10026 --cache-file=/dev/null | \
10027 -cache-file=/dev/null )
10028 # Handled here to avoid the test to skip args below.
10029 baseargs="$baseargs '$ac_arg'"
10030 tbaseargs="$tbaseargs '$ac_arg'"
10031 # Assert: $separate_arg should always be no.
10032 keep_next=$separate_arg
10034 --no*)
10035 continue
10037 --c* | \
10038 --sr* | \
10039 --ho* | \
10040 --bu* | \
10041 --t* | \
10042 --program-* | \
10043 -cache_file* | \
10044 -srcdir* | \
10045 -host* | \
10046 -build* | \
10047 -target* | \
10048 -program-prefix* | \
10049 -program-suffix* | \
10050 -program-transform-name* )
10051 skip_next=$separate_arg
10052 continue
10055 # An option. Add it.
10056 case $ac_arg in
10057 *\'*)
10058 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10059 esac
10060 baseargs="$baseargs '$ac_arg'"
10061 if test X"$skip_targ" = Xno; then
10062 tbaseargs="$tbaseargs '$ac_arg'"
10064 keep_next=$separate_arg
10067 # Either a variable assignment, or a nonopt (triplet). Don't
10068 # pass it down; let the Makefile handle this.
10069 continue
10071 esac
10072 done
10073 # Remove the initial space we just introduced and, as these will be
10074 # expanded by make, quote '$'.
10075 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10077 # Add in --program-transform-name, after --program-prefix and
10078 # --program-suffix have been applied to it. Autoconf has already
10079 # doubled dollar signs and backslashes in program_transform_name; we want
10080 # the backslashes un-doubled, and then the entire thing wrapped in single
10081 # quotes, because this will be expanded first by make and then by the shell.
10082 # Also, because we want to override the logic in subdir configure scripts to
10083 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10084 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10085 ${program_transform_name}
10086 EOF_SED
10087 gcc_transform_name=`cat conftestsed.out`
10088 rm -f conftestsed.out
10089 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
10090 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10091 if test "$silent" = yes; then
10092 baseargs="$baseargs --silent"
10093 tbaseargs="$tbaseargs --silent"
10095 baseargs="$baseargs --disable-option-checking"
10096 tbaseargs="$tbaseargs --disable-option-checking"
10098 # Record and document user additions to sub configure arguments.
10103 # For the build-side libraries, we just need to pretend we're native,
10104 # and not use the same cache file. Multilibs are neither needed nor
10105 # desired. We can't even use the same cache file for all build-side
10106 # libraries, as they're compiled differently; some with C, some with
10107 # C++ or with different feature-enabling options.
10108 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
10110 # For host modules, accept cache file option, or specification as blank.
10111 case "${cache_file}" in
10112 "") # empty
10113 cache_file_option="" ;;
10114 /* | [A-Za-z]:[\\/]* ) # absolute path
10115 cache_file_option="--cache-file=${cache_file}" ;;
10116 *) # relative path
10117 cache_file_option="--cache-file=../${cache_file}" ;;
10118 esac
10120 # Host dirs don't like to share a cache file either, horribly enough.
10121 # This seems to be due to autoconf 2.5x stupidity.
10122 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10124 target_configargs="$target_configargs ${tbaseargs}"
10126 # Passing a --with-cross-host argument lets the target libraries know
10127 # whether they are being built with a cross-compiler or being built
10128 # native. However, it would be better to use other mechanisms to make the
10129 # sorts of decisions they want to make on this basis. Please consider
10130 # this option to be deprecated. FIXME.
10131 if test x${is_cross_compiler} = xyes ; then
10132 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10135 # Special user-friendly check for native x86_64-linux build, if
10136 # multilib is not explicitly enabled.
10137 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10138 x86_64-*linux*:yes:$build:$build:)
10139 # Make sure we have a development environment that handles 32-bit
10140 dev64=no
10141 echo "int main () { return 0; }" > conftest.c
10142 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10143 if test $? = 0 ; then
10144 if test -s conftest || test -s conftest.exe ; then
10145 dev64=yes
10148 rm -f conftest*
10149 if test x${dev64} != xyes ; then
10150 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
10153 esac
10155 # Default to --enable-multilib.
10156 if test x${enable_multilib} = x ; then
10157 target_configargs="--enable-multilib ${target_configargs}"
10160 # Pass --with-newlib if appropriate. Note that target_configdirs has
10161 # changed from the earlier setting of with_newlib.
10162 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10163 target_configargs="--with-newlib ${target_configargs}"
10166 # Different target subdirs use different values of certain variables
10167 # (notably CXX). Worse, multilibs use *lots* of different values.
10168 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10169 # it doesn't automatically accept command-line overrides of them.
10170 # This means it's not safe for target subdirs to share a cache file,
10171 # which is disgusting, but there you have it. Hopefully this can be
10172 # fixed in future. It's still worthwhile to use a cache file for each
10173 # directory. I think.
10175 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10176 # We need to pass --target, as newer autoconf's requires consistency
10177 # for target_alias and gcc doesn't manage it consistently.
10178 target_configargs="--cache-file=./config.cache ${target_configargs}"
10180 FLAGS_FOR_TARGET=
10181 case " $target_configdirs " in
10182 *" newlib "*)
10183 case " $target_configargs " in
10184 *" --with-newlib "*)
10185 case "$target" in
10186 *-cygwin*)
10187 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10189 esac
10191 # If we're not building GCC, don't discard standard headers.
10192 if test -d ${srcdir}/gcc; then
10193 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10195 if test "${build}" != "${host}"; then
10196 # On Canadian crosses, CC_FOR_TARGET will have already been set
10197 # by `configure', so we won't have an opportunity to add -Bgcc/
10198 # to it. This is right: we don't want to search that directory
10199 # for binaries, but we want the header files in there, so add
10200 # them explicitly.
10201 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10203 # Someone might think of using the pre-installed headers on
10204 # Canadian crosses, in case the installed compiler is not fully
10205 # compatible with the compiler being built. In this case, it
10206 # would be better to flag an error than risking having
10207 # incompatible object files being constructed. We can't
10208 # guarantee that an error will be flagged, but let's hope the
10209 # compiler will do it, when presented with incompatible header
10210 # files.
10214 case "${target}-${is_cross_compiler}" in
10215 i[3456789]86-*-linux*-no)
10216 # Here host == target, so we don't need to build gcc,
10217 # so we don't want to discard standard headers.
10218 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10221 # If we're building newlib, use its generic headers last, but search
10222 # for any libc-related directories first (so make it the last -B
10223 # switch).
10224 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10226 # If we're building libgloss, find the startup file, simulator library
10227 # and linker script.
10228 case " $target_configdirs " in
10229 *" libgloss "*)
10230 # Look for startup file, simulator library and maybe linker script.
10231 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10232 # Look for libnosys.a in case the target needs it.
10233 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10234 # Most targets have the linker script in the source directory.
10235 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10237 esac
10239 esac
10241 esac
10243 esac
10245 case "$target" in
10246 x86_64-*mingw* | *-w64-mingw*)
10247 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10248 # however, use a symlink named 'mingw' in ${prefix} .
10249 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10251 *-mingw*)
10252 # MinGW can't be handled as Cygwin above since it does not use newlib.
10253 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'
10255 esac
10257 # Allow the user to override the flags for
10258 # our build compiler if desired.
10259 if test x"${build}" = x"${host}" ; then
10260 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10261 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10262 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10263 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10266 # On Canadian crosses, we'll be searching the right directories for
10267 # the previously-installed cross compiler, so don't bother to add
10268 # flags for directories within the install tree of the compiler
10269 # being built; programs in there won't even run.
10270 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10271 # Search for pre-installed headers if nothing else fits.
10272 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10275 if test "x${use_gnu_ld}" = x &&
10276 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10277 # Arrange for us to find uninstalled linker scripts.
10278 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10281 # Search for other target-specific linker scripts and such.
10282 case "${target}" in
10283 mep*)
10284 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10286 esac
10288 # Makefile fragments.
10289 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10291 eval fragval=\$$frag
10292 if test $fragval != /dev/null; then
10293 eval $frag=${srcdir}/$fragval
10295 done
10301 # Miscellanea: directories, flags, etc.
10310 # Build module lists & subconfigure args.
10314 # Host module lists & subconfigure args.
10319 # Target module lists & subconfigure args.
10323 # Build tools.
10344 # Generate default definitions for YACC, M4, LEX and other programs that run
10345 # on the build machine. These are used if the Makefile can't locate these
10346 # programs in objdir.
10347 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10349 for ac_prog in 'bison -y' byacc yacc
10351 # Extract the first word of "$ac_prog", so it can be a program name with args.
10352 set dummy $ac_prog; ac_word=$2
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354 $as_echo_n "checking for $ac_word... " >&6; }
10355 if ${ac_cv_prog_YACC+:} false; then :
10356 $as_echo_n "(cached) " >&6
10357 else
10358 if test -n "$YACC"; then
10359 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10360 else
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362 for as_dir in $PATH
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
10366 for ac_exec_ext in '' $ac_executable_extensions; do
10367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10368 ac_cv_prog_YACC="$ac_prog"
10369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 break 2
10372 done
10373 done
10374 IFS=$as_save_IFS
10378 YACC=$ac_cv_prog_YACC
10379 if test -n "$YACC"; then
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10381 $as_echo "$YACC" >&6; }
10382 else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10388 test -n "$YACC" && break
10389 done
10390 test -n "$YACC" || YACC="$MISSING bison -y"
10392 case " $build_configdirs " in
10393 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10394 esac
10396 for ac_prog in bison
10398 # Extract the first word of "$ac_prog", so it can be a program name with args.
10399 set dummy $ac_prog; ac_word=$2
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401 $as_echo_n "checking for $ac_word... " >&6; }
10402 if ${ac_cv_prog_BISON+:} false; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 if test -n "$BISON"; then
10406 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10407 else
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409 for as_dir in $PATH
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415 ac_cv_prog_BISON="$ac_prog"
10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 break 2
10419 done
10420 done
10421 IFS=$as_save_IFS
10425 BISON=$ac_cv_prog_BISON
10426 if test -n "$BISON"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10428 $as_echo "$BISON" >&6; }
10429 else
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; }
10435 test -n "$BISON" && break
10436 done
10437 test -n "$BISON" || BISON="$MISSING bison"
10439 case " $build_configdirs " in
10440 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10441 esac
10443 for ac_prog in gm4 gnum4 m4
10445 # Extract the first word of "$ac_prog", so it can be a program name with args.
10446 set dummy $ac_prog; ac_word=$2
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448 $as_echo_n "checking for $ac_word... " >&6; }
10449 if ${ac_cv_prog_M4+:} false; then :
10450 $as_echo_n "(cached) " >&6
10451 else
10452 if test -n "$M4"; then
10453 ac_cv_prog_M4="$M4" # Let the user override the test.
10454 else
10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in $PATH
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
10460 for ac_exec_ext in '' $ac_executable_extensions; do
10461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10462 ac_cv_prog_M4="$ac_prog"
10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10464 break 2
10466 done
10467 done
10468 IFS=$as_save_IFS
10472 M4=$ac_cv_prog_M4
10473 if test -n "$M4"; then
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10475 $as_echo "$M4" >&6; }
10476 else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; }
10482 test -n "$M4" && break
10483 done
10484 test -n "$M4" || M4="$MISSING m4"
10486 case " $build_configdirs " in
10487 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10488 esac
10490 for ac_prog in flex lex
10492 # Extract the first word of "$ac_prog", so it can be a program name with args.
10493 set dummy $ac_prog; ac_word=$2
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495 $as_echo_n "checking for $ac_word... " >&6; }
10496 if ${ac_cv_prog_LEX+:} false; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 if test -n "$LEX"; then
10500 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10501 else
10502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503 for as_dir in $PATH
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10509 ac_cv_prog_LEX="$ac_prog"
10510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 break 2
10513 done
10514 done
10515 IFS=$as_save_IFS
10519 LEX=$ac_cv_prog_LEX
10520 if test -n "$LEX"; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10522 $as_echo "$LEX" >&6; }
10523 else
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10529 test -n "$LEX" && break
10530 done
10531 test -n "$LEX" || LEX="$MISSING flex"
10533 case " $build_configdirs " in
10534 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10535 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10536 esac
10538 for ac_prog in flex
10540 # Extract the first word of "$ac_prog", so it can be a program name with args.
10541 set dummy $ac_prog; ac_word=$2
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543 $as_echo_n "checking for $ac_word... " >&6; }
10544 if ${ac_cv_prog_FLEX+:} false; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 if test -n "$FLEX"; then
10548 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10549 else
10550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551 for as_dir in $PATH
10553 IFS=$as_save_IFS
10554 test -z "$as_dir" && as_dir=.
10555 for ac_exec_ext in '' $ac_executable_extensions; do
10556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10557 ac_cv_prog_FLEX="$ac_prog"
10558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10559 break 2
10561 done
10562 done
10563 IFS=$as_save_IFS
10567 FLEX=$ac_cv_prog_FLEX
10568 if test -n "$FLEX"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10570 $as_echo "$FLEX" >&6; }
10571 else
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573 $as_echo "no" >&6; }
10577 test -n "$FLEX" && break
10578 done
10579 test -n "$FLEX" || FLEX="$MISSING flex"
10581 case " $build_configdirs " in
10582 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10583 esac
10585 for ac_prog in makeinfo
10587 # Extract the first word of "$ac_prog", so it can be a program name with args.
10588 set dummy $ac_prog; ac_word=$2
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10590 $as_echo_n "checking for $ac_word... " >&6; }
10591 if ${ac_cv_prog_MAKEINFO+:} false; then :
10592 $as_echo_n "(cached) " >&6
10593 else
10594 if test -n "$MAKEINFO"; then
10595 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10596 else
10597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10600 IFS=$as_save_IFS
10601 test -z "$as_dir" && as_dir=.
10602 for ac_exec_ext in '' $ac_executable_extensions; do
10603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10604 ac_cv_prog_MAKEINFO="$ac_prog"
10605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10606 break 2
10608 done
10609 done
10610 IFS=$as_save_IFS
10614 MAKEINFO=$ac_cv_prog_MAKEINFO
10615 if test -n "$MAKEINFO"; then
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10617 $as_echo "$MAKEINFO" >&6; }
10618 else
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 $as_echo "no" >&6; }
10624 test -n "$MAKEINFO" && break
10625 done
10626 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10628 case " $build_configdirs " in
10629 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10632 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10633 # higher, else we use the "missing" dummy.
10634 if ${MAKEINFO} --version \
10635 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10637 else
10638 MAKEINFO="$MISSING makeinfo"
10642 esac
10644 # FIXME: expect and dejagnu may become build tools?
10646 for ac_prog in expect
10648 # Extract the first word of "$ac_prog", so it can be a program name with args.
10649 set dummy $ac_prog; ac_word=$2
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651 $as_echo_n "checking for $ac_word... " >&6; }
10652 if ${ac_cv_prog_EXPECT+:} false; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 if test -n "$EXPECT"; then
10656 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10657 else
10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10665 ac_cv_prog_EXPECT="$ac_prog"
10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10667 break 2
10669 done
10670 done
10671 IFS=$as_save_IFS
10675 EXPECT=$ac_cv_prog_EXPECT
10676 if test -n "$EXPECT"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10678 $as_echo "$EXPECT" >&6; }
10679 else
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10685 test -n "$EXPECT" && break
10686 done
10687 test -n "$EXPECT" || EXPECT="expect"
10689 case " $configdirs " in
10690 *" expect "*)
10691 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10693 esac
10695 for ac_prog in runtest
10697 # Extract the first word of "$ac_prog", so it can be a program name with args.
10698 set dummy $ac_prog; ac_word=$2
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700 $as_echo_n "checking for $ac_word... " >&6; }
10701 if ${ac_cv_prog_RUNTEST+:} false; then :
10702 $as_echo_n "(cached) " >&6
10703 else
10704 if test -n "$RUNTEST"; then
10705 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10706 else
10707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708 for as_dir in $PATH
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10714 ac_cv_prog_RUNTEST="$ac_prog"
10715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10718 done
10719 done
10720 IFS=$as_save_IFS
10724 RUNTEST=$ac_cv_prog_RUNTEST
10725 if test -n "$RUNTEST"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10727 $as_echo "$RUNTEST" >&6; }
10728 else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730 $as_echo "no" >&6; }
10734 test -n "$RUNTEST" && break
10735 done
10736 test -n "$RUNTEST" || RUNTEST="runtest"
10738 case " $configdirs " in
10739 *" dejagnu "*)
10740 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10742 esac
10745 # Host tools.
10746 ncn_tool_prefix=
10747 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10748 ncn_target_tool_prefix=
10749 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10753 if test -n "$AR"; then
10754 ac_cv_prog_AR=$AR
10755 elif test -n "$ac_cv_prog_AR"; then
10756 AR=$ac_cv_prog_AR
10759 if test -n "$ac_cv_prog_AR"; then
10760 for ncn_progname in ar; do
10761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10762 set dummy ${ncn_progname}; ac_word=$2
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764 $as_echo_n "checking for $ac_word... " >&6; }
10765 if ${ac_cv_prog_AR+:} false; then :
10766 $as_echo_n "(cached) " >&6
10767 else
10768 if test -n "$AR"; then
10769 ac_cv_prog_AR="$AR" # Let the user override the test.
10770 else
10771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772 for as_dir in $PATH
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10778 ac_cv_prog_AR="${ncn_progname}"
10779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10782 done
10783 done
10784 IFS=$as_save_IFS
10788 AR=$ac_cv_prog_AR
10789 if test -n "$AR"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10791 $as_echo "$AR" >&6; }
10792 else
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794 $as_echo "no" >&6; }
10798 done
10801 for ncn_progname in ar; do
10802 if test -n "$ncn_tool_prefix"; then
10803 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10804 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806 $as_echo_n "checking for $ac_word... " >&6; }
10807 if ${ac_cv_prog_AR+:} false; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 if test -n "$AR"; then
10811 ac_cv_prog_AR="$AR" # Let the user override the test.
10812 else
10813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814 for as_dir in $PATH
10816 IFS=$as_save_IFS
10817 test -z "$as_dir" && as_dir=.
10818 for ac_exec_ext in '' $ac_executable_extensions; do
10819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10820 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 break 2
10824 done
10825 done
10826 IFS=$as_save_IFS
10830 AR=$ac_cv_prog_AR
10831 if test -n "$AR"; then
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10833 $as_echo "$AR" >&6; }
10834 else
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836 $as_echo "no" >&6; }
10841 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10843 set dummy ${ncn_progname}; ac_word=$2
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845 $as_echo_n "checking for $ac_word... " >&6; }
10846 if ${ac_cv_prog_AR+:} false; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 if test -n "$AR"; then
10850 ac_cv_prog_AR="$AR" # Let the user override the test.
10851 else
10852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10859 ac_cv_prog_AR="${ncn_progname}"
10860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 break 2
10863 done
10864 done
10865 IFS=$as_save_IFS
10869 AR=$ac_cv_prog_AR
10870 if test -n "$AR"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10872 $as_echo "$AR" >&6; }
10873 else
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10880 test -n "$ac_cv_prog_AR" && break
10881 done
10883 if test -z "$ac_cv_prog_AR" ; then
10884 set dummy ar
10885 if test $build = $host ; then
10886 AR="$2"
10887 else
10888 AR="${ncn_tool_prefix}$2"
10894 if test -n "$AS"; then
10895 ac_cv_prog_AS=$AS
10896 elif test -n "$ac_cv_prog_AS"; then
10897 AS=$ac_cv_prog_AS
10900 if test -n "$ac_cv_prog_AS"; then
10901 for ncn_progname in as; do
10902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10903 set dummy ${ncn_progname}; ac_word=$2
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10905 $as_echo_n "checking for $ac_word... " >&6; }
10906 if ${ac_cv_prog_AS+:} false; then :
10907 $as_echo_n "(cached) " >&6
10908 else
10909 if test -n "$AS"; then
10910 ac_cv_prog_AS="$AS" # Let the user override the test.
10911 else
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10919 ac_cv_prog_AS="${ncn_progname}"
10920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 break 2
10923 done
10924 done
10925 IFS=$as_save_IFS
10929 AS=$ac_cv_prog_AS
10930 if test -n "$AS"; then
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10932 $as_echo "$AS" >&6; }
10933 else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; }
10939 done
10942 for ncn_progname in as; do
10943 if test -n "$ncn_tool_prefix"; then
10944 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10945 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10947 $as_echo_n "checking for $ac_word... " >&6; }
10948 if ${ac_cv_prog_AS+:} false; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 if test -n "$AS"; then
10952 ac_cv_prog_AS="$AS" # Let the user override the test.
10953 else
10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955 for as_dir in $PATH
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10961 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10965 done
10966 done
10967 IFS=$as_save_IFS
10971 AS=$ac_cv_prog_AS
10972 if test -n "$AS"; then
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10974 $as_echo "$AS" >&6; }
10975 else
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10977 $as_echo "no" >&6; }
10982 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10984 set dummy ${ncn_progname}; ac_word=$2
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986 $as_echo_n "checking for $ac_word... " >&6; }
10987 if ${ac_cv_prog_AS+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 if test -n "$AS"; then
10991 ac_cv_prog_AS="$AS" # Let the user override the test.
10992 else
10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $PATH
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11000 ac_cv_prog_AS="${ncn_progname}"
11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11004 done
11005 done
11006 IFS=$as_save_IFS
11010 AS=$ac_cv_prog_AS
11011 if test -n "$AS"; then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11013 $as_echo "$AS" >&6; }
11014 else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 $as_echo "no" >&6; }
11021 test -n "$ac_cv_prog_AS" && break
11022 done
11024 if test -z "$ac_cv_prog_AS" ; then
11025 set dummy as
11026 if test $build = $host ; then
11027 AS="$2"
11028 else
11029 AS="${ncn_tool_prefix}$2"
11035 if test -n "$DLLTOOL"; then
11036 ac_cv_prog_DLLTOOL=$DLLTOOL
11037 elif test -n "$ac_cv_prog_DLLTOOL"; then
11038 DLLTOOL=$ac_cv_prog_DLLTOOL
11041 if test -n "$ac_cv_prog_DLLTOOL"; then
11042 for ncn_progname in dlltool; do
11043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11044 set dummy ${ncn_progname}; ac_word=$2
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046 $as_echo_n "checking for $ac_word... " >&6; }
11047 if ${ac_cv_prog_DLLTOOL+:} false; then :
11048 $as_echo_n "(cached) " >&6
11049 else
11050 if test -n "$DLLTOOL"; then
11051 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11052 else
11053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054 for as_dir in $PATH
11056 IFS=$as_save_IFS
11057 test -z "$as_dir" && as_dir=.
11058 for ac_exec_ext in '' $ac_executable_extensions; do
11059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11060 ac_cv_prog_DLLTOOL="${ncn_progname}"
11061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11062 break 2
11064 done
11065 done
11066 IFS=$as_save_IFS
11070 DLLTOOL=$ac_cv_prog_DLLTOOL
11071 if test -n "$DLLTOOL"; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11073 $as_echo "$DLLTOOL" >&6; }
11074 else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; }
11080 done
11083 for ncn_progname in dlltool; do
11084 if test -n "$ncn_tool_prefix"; then
11085 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11086 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088 $as_echo_n "checking for $ac_word... " >&6; }
11089 if ${ac_cv_prog_DLLTOOL+:} false; then :
11090 $as_echo_n "(cached) " >&6
11091 else
11092 if test -n "$DLLTOOL"; then
11093 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11094 else
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 break 2
11106 done
11107 done
11108 IFS=$as_save_IFS
11112 DLLTOOL=$ac_cv_prog_DLLTOOL
11113 if test -n "$DLLTOOL"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11115 $as_echo "$DLLTOOL" >&6; }
11116 else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 $as_echo "no" >&6; }
11123 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11125 set dummy ${ncn_progname}; ac_word=$2
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11127 $as_echo_n "checking for $ac_word... " >&6; }
11128 if ${ac_cv_prog_DLLTOOL+:} false; then :
11129 $as_echo_n "(cached) " >&6
11130 else
11131 if test -n "$DLLTOOL"; then
11132 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11133 else
11134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in $PATH
11137 IFS=$as_save_IFS
11138 test -z "$as_dir" && as_dir=.
11139 for ac_exec_ext in '' $ac_executable_extensions; do
11140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11141 ac_cv_prog_DLLTOOL="${ncn_progname}"
11142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11143 break 2
11145 done
11146 done
11147 IFS=$as_save_IFS
11151 DLLTOOL=$ac_cv_prog_DLLTOOL
11152 if test -n "$DLLTOOL"; then
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11154 $as_echo "$DLLTOOL" >&6; }
11155 else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11162 test -n "$ac_cv_prog_DLLTOOL" && break
11163 done
11165 if test -z "$ac_cv_prog_DLLTOOL" ; then
11166 set dummy dlltool
11167 if test $build = $host ; then
11168 DLLTOOL="$2"
11169 else
11170 DLLTOOL="${ncn_tool_prefix}$2"
11176 if test -n "$DSYMUTIL"; then
11177 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11178 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11179 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11182 if test -n "$ac_cv_prog_DSYMUTIL"; then
11183 for ncn_progname in dsymutil; do
11184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11185 set dummy ${ncn_progname}; ac_word=$2
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187 $as_echo_n "checking for $ac_word... " >&6; }
11188 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11191 if test -n "$DSYMUTIL"; then
11192 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11193 else
11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195 for as_dir in $PATH
11197 IFS=$as_save_IFS
11198 test -z "$as_dir" && as_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11201 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11203 break 2
11205 done
11206 done
11207 IFS=$as_save_IFS
11211 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11212 if test -n "$DSYMUTIL"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11214 $as_echo "$DSYMUTIL" >&6; }
11215 else
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217 $as_echo "no" >&6; }
11221 done
11224 for ncn_progname in dsymutil; do
11225 if test -n "$ncn_tool_prefix"; then
11226 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11227 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11229 $as_echo_n "checking for $ac_word... " >&6; }
11230 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 if test -n "$DSYMUTIL"; then
11234 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11235 else
11236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237 for as_dir in $PATH
11239 IFS=$as_save_IFS
11240 test -z "$as_dir" && as_dir=.
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11243 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 break 2
11247 done
11248 done
11249 IFS=$as_save_IFS
11253 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11254 if test -n "$DSYMUTIL"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11256 $as_echo "$DSYMUTIL" >&6; }
11257 else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259 $as_echo "no" >&6; }
11264 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11266 set dummy ${ncn_progname}; ac_word=$2
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11268 $as_echo_n "checking for $ac_word... " >&6; }
11269 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11270 $as_echo_n "(cached) " >&6
11271 else
11272 if test -n "$DSYMUTIL"; then
11273 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11274 else
11275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276 for as_dir in $PATH
11278 IFS=$as_save_IFS
11279 test -z "$as_dir" && as_dir=.
11280 for ac_exec_ext in '' $ac_executable_extensions; do
11281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11282 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11284 break 2
11286 done
11287 done
11288 IFS=$as_save_IFS
11292 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11293 if test -n "$DSYMUTIL"; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11295 $as_echo "$DSYMUTIL" >&6; }
11296 else
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11303 test -n "$ac_cv_prog_DSYMUTIL" && break
11304 done
11306 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11307 set dummy dsymutil
11308 if test $build = $host ; then
11309 DSYMUTIL="$2"
11310 else
11311 DSYMUTIL="${ncn_tool_prefix}$2"
11317 if test -n "$LD"; then
11318 ac_cv_prog_LD=$LD
11319 elif test -n "$ac_cv_prog_LD"; then
11320 LD=$ac_cv_prog_LD
11323 if test -n "$ac_cv_prog_LD"; then
11324 for ncn_progname in ld; do
11325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11326 set dummy ${ncn_progname}; ac_word=$2
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328 $as_echo_n "checking for $ac_word... " >&6; }
11329 if ${ac_cv_prog_LD+:} false; then :
11330 $as_echo_n "(cached) " >&6
11331 else
11332 if test -n "$LD"; then
11333 ac_cv_prog_LD="$LD" # Let the user override the test.
11334 else
11335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336 for as_dir in $PATH
11338 IFS=$as_save_IFS
11339 test -z "$as_dir" && as_dir=.
11340 for ac_exec_ext in '' $ac_executable_extensions; do
11341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11342 ac_cv_prog_LD="${ncn_progname}"
11343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11344 break 2
11346 done
11347 done
11348 IFS=$as_save_IFS
11352 LD=$ac_cv_prog_LD
11353 if test -n "$LD"; then
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11355 $as_echo "$LD" >&6; }
11356 else
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358 $as_echo "no" >&6; }
11362 done
11365 for ncn_progname in ld; do
11366 if test -n "$ncn_tool_prefix"; then
11367 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11368 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11370 $as_echo_n "checking for $ac_word... " >&6; }
11371 if ${ac_cv_prog_LD+:} false; then :
11372 $as_echo_n "(cached) " >&6
11373 else
11374 if test -n "$LD"; then
11375 ac_cv_prog_LD="$LD" # Let the user override the test.
11376 else
11377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378 for as_dir in $PATH
11380 IFS=$as_save_IFS
11381 test -z "$as_dir" && as_dir=.
11382 for ac_exec_ext in '' $ac_executable_extensions; do
11383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11384 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11386 break 2
11388 done
11389 done
11390 IFS=$as_save_IFS
11394 LD=$ac_cv_prog_LD
11395 if test -n "$LD"; then
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11397 $as_echo "$LD" >&6; }
11398 else
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400 $as_echo "no" >&6; }
11405 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11407 set dummy ${ncn_progname}; ac_word=$2
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11409 $as_echo_n "checking for $ac_word... " >&6; }
11410 if ${ac_cv_prog_LD+:} false; then :
11411 $as_echo_n "(cached) " >&6
11412 else
11413 if test -n "$LD"; then
11414 ac_cv_prog_LD="$LD" # Let the user override the test.
11415 else
11416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417 for as_dir in $PATH
11419 IFS=$as_save_IFS
11420 test -z "$as_dir" && as_dir=.
11421 for ac_exec_ext in '' $ac_executable_extensions; do
11422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11423 ac_cv_prog_LD="${ncn_progname}"
11424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11425 break 2
11427 done
11428 done
11429 IFS=$as_save_IFS
11433 LD=$ac_cv_prog_LD
11434 if test -n "$LD"; then
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11436 $as_echo "$LD" >&6; }
11437 else
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439 $as_echo "no" >&6; }
11444 test -n "$ac_cv_prog_LD" && break
11445 done
11447 if test -z "$ac_cv_prog_LD" ; then
11448 set dummy ld
11449 if test $build = $host ; then
11450 LD="$2"
11451 else
11452 LD="${ncn_tool_prefix}$2"
11458 if test -n "$LIPO"; then
11459 ac_cv_prog_LIPO=$LIPO
11460 elif test -n "$ac_cv_prog_LIPO"; then
11461 LIPO=$ac_cv_prog_LIPO
11464 if test -n "$ac_cv_prog_LIPO"; then
11465 for ncn_progname in lipo; do
11466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11467 set dummy ${ncn_progname}; ac_word=$2
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469 $as_echo_n "checking for $ac_word... " >&6; }
11470 if ${ac_cv_prog_LIPO+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 if test -n "$LIPO"; then
11474 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11475 else
11476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477 for as_dir in $PATH
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_prog_LIPO="${ncn_progname}"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11487 done
11488 done
11489 IFS=$as_save_IFS
11493 LIPO=$ac_cv_prog_LIPO
11494 if test -n "$LIPO"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11496 $as_echo "$LIPO" >&6; }
11497 else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499 $as_echo "no" >&6; }
11503 done
11506 for ncn_progname in lipo; do
11507 if test -n "$ncn_tool_prefix"; then
11508 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11509 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511 $as_echo_n "checking for $ac_word... " >&6; }
11512 if ${ac_cv_prog_LIPO+:} false; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 if test -n "$LIPO"; then
11516 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11517 else
11518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11519 for as_dir in $PATH
11521 IFS=$as_save_IFS
11522 test -z "$as_dir" && as_dir=.
11523 for ac_exec_ext in '' $ac_executable_extensions; do
11524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11525 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11527 break 2
11529 done
11530 done
11531 IFS=$as_save_IFS
11535 LIPO=$ac_cv_prog_LIPO
11536 if test -n "$LIPO"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11538 $as_echo "$LIPO" >&6; }
11539 else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11546 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11548 set dummy ${ncn_progname}; ac_word=$2
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11550 $as_echo_n "checking for $ac_word... " >&6; }
11551 if ${ac_cv_prog_LIPO+:} false; then :
11552 $as_echo_n "(cached) " >&6
11553 else
11554 if test -n "$LIPO"; then
11555 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11556 else
11557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in $PATH
11560 IFS=$as_save_IFS
11561 test -z "$as_dir" && as_dir=.
11562 for ac_exec_ext in '' $ac_executable_extensions; do
11563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11564 ac_cv_prog_LIPO="${ncn_progname}"
11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 break 2
11568 done
11569 done
11570 IFS=$as_save_IFS
11574 LIPO=$ac_cv_prog_LIPO
11575 if test -n "$LIPO"; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11577 $as_echo "$LIPO" >&6; }
11578 else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11585 test -n "$ac_cv_prog_LIPO" && break
11586 done
11588 if test -z "$ac_cv_prog_LIPO" ; then
11589 set dummy lipo
11590 if test $build = $host ; then
11591 LIPO="$2"
11592 else
11593 LIPO="${ncn_tool_prefix}$2"
11599 if test -n "$NM"; then
11600 ac_cv_prog_NM=$NM
11601 elif test -n "$ac_cv_prog_NM"; then
11602 NM=$ac_cv_prog_NM
11605 if test -n "$ac_cv_prog_NM"; then
11606 for ncn_progname in nm; do
11607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11608 set dummy ${ncn_progname}; ac_word=$2
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610 $as_echo_n "checking for $ac_word... " >&6; }
11611 if ${ac_cv_prog_NM+:} false; then :
11612 $as_echo_n "(cached) " >&6
11613 else
11614 if test -n "$NM"; then
11615 ac_cv_prog_NM="$NM" # Let the user override the test.
11616 else
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624 ac_cv_prog_NM="${ncn_progname}"
11625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11628 done
11629 done
11630 IFS=$as_save_IFS
11634 NM=$ac_cv_prog_NM
11635 if test -n "$NM"; then
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11637 $as_echo "$NM" >&6; }
11638 else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11644 done
11647 for ncn_progname in nm; do
11648 if test -n "$ncn_tool_prefix"; then
11649 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11650 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652 $as_echo_n "checking for $ac_word... " >&6; }
11653 if ${ac_cv_prog_NM+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 if test -n "$NM"; then
11657 ac_cv_prog_NM="$NM" # Let the user override the test.
11658 else
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11670 done
11671 done
11672 IFS=$as_save_IFS
11676 NM=$ac_cv_prog_NM
11677 if test -n "$NM"; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11679 $as_echo "$NM" >&6; }
11680 else
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 $as_echo "no" >&6; }
11687 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11688 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11689 set dummy ${ncn_progname}; ac_word=$2
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11691 $as_echo_n "checking for $ac_word... " >&6; }
11692 if ${ac_cv_prog_NM+:} false; then :
11693 $as_echo_n "(cached) " >&6
11694 else
11695 if test -n "$NM"; then
11696 ac_cv_prog_NM="$NM" # Let the user override the test.
11697 else
11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
11701 IFS=$as_save_IFS
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
11704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11705 ac_cv_prog_NM="${ncn_progname}"
11706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 break 2
11709 done
11710 done
11711 IFS=$as_save_IFS
11715 NM=$ac_cv_prog_NM
11716 if test -n "$NM"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11718 $as_echo "$NM" >&6; }
11719 else
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11726 test -n "$ac_cv_prog_NM" && break
11727 done
11729 if test -z "$ac_cv_prog_NM" ; then
11730 set dummy nm
11731 if test $build = $host ; then
11732 NM="$2"
11733 else
11734 NM="${ncn_tool_prefix}$2"
11740 if test -n "$RANLIB"; then
11741 ac_cv_prog_RANLIB=$RANLIB
11742 elif test -n "$ac_cv_prog_RANLIB"; then
11743 RANLIB=$ac_cv_prog_RANLIB
11746 if test -n "$ac_cv_prog_RANLIB"; then
11747 for ncn_progname in ranlib; do
11748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11749 set dummy ${ncn_progname}; ac_word=$2
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11751 $as_echo_n "checking for $ac_word... " >&6; }
11752 if ${ac_cv_prog_RANLIB+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 if test -n "$RANLIB"; then
11756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11757 else
11758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759 for as_dir in $PATH
11761 IFS=$as_save_IFS
11762 test -z "$as_dir" && as_dir=.
11763 for ac_exec_ext in '' $ac_executable_extensions; do
11764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11765 ac_cv_prog_RANLIB="${ncn_progname}"
11766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11767 break 2
11769 done
11770 done
11771 IFS=$as_save_IFS
11775 RANLIB=$ac_cv_prog_RANLIB
11776 if test -n "$RANLIB"; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11778 $as_echo "$RANLIB" >&6; }
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11785 done
11788 for ncn_progname in ranlib; do
11789 if test -n "$ncn_tool_prefix"; then
11790 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11791 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if ${ac_cv_prog_RANLIB+:} false; then :
11795 $as_echo_n "(cached) " >&6
11796 else
11797 if test -n "$RANLIB"; then
11798 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11799 else
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11811 done
11812 done
11813 IFS=$as_save_IFS
11817 RANLIB=$ac_cv_prog_RANLIB
11818 if test -n "$RANLIB"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11820 $as_echo "$RANLIB" >&6; }
11821 else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11828 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11830 set dummy ${ncn_progname}; ac_word=$2
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11832 $as_echo_n "checking for $ac_word... " >&6; }
11833 if ${ac_cv_prog_RANLIB+:} false; then :
11834 $as_echo_n "(cached) " >&6
11835 else
11836 if test -n "$RANLIB"; then
11837 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11838 else
11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840 for as_dir in $PATH
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
11844 for ac_exec_ext in '' $ac_executable_extensions; do
11845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11846 ac_cv_prog_RANLIB="${ncn_progname}"
11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11848 break 2
11850 done
11851 done
11852 IFS=$as_save_IFS
11856 RANLIB=$ac_cv_prog_RANLIB
11857 if test -n "$RANLIB"; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11859 $as_echo "$RANLIB" >&6; }
11860 else
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 $as_echo "no" >&6; }
11867 test -n "$ac_cv_prog_RANLIB" && break
11868 done
11870 if test -z "$ac_cv_prog_RANLIB" ; then
11871 RANLIB="true"
11876 if test -n "$STRIP"; then
11877 ac_cv_prog_STRIP=$STRIP
11878 elif test -n "$ac_cv_prog_STRIP"; then
11879 STRIP=$ac_cv_prog_STRIP
11882 if test -n "$ac_cv_prog_STRIP"; then
11883 for ncn_progname in strip; do
11884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11885 set dummy ${ncn_progname}; ac_word=$2
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887 $as_echo_n "checking for $ac_word... " >&6; }
11888 if ${ac_cv_prog_STRIP+:} false; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891 if test -n "$STRIP"; then
11892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11893 else
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $PATH
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11901 ac_cv_prog_STRIP="${ncn_progname}"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 break 2
11905 done
11906 done
11907 IFS=$as_save_IFS
11911 STRIP=$ac_cv_prog_STRIP
11912 if test -n "$STRIP"; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11914 $as_echo "$STRIP" >&6; }
11915 else
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917 $as_echo "no" >&6; }
11921 done
11924 for ncn_progname in strip; do
11925 if test -n "$ncn_tool_prefix"; then
11926 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11927 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929 $as_echo_n "checking for $ac_word... " >&6; }
11930 if ${ac_cv_prog_STRIP+:} false; then :
11931 $as_echo_n "(cached) " >&6
11932 else
11933 if test -n "$STRIP"; then
11934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11935 else
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945 break 2
11947 done
11948 done
11949 IFS=$as_save_IFS
11953 STRIP=$ac_cv_prog_STRIP
11954 if test -n "$STRIP"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11956 $as_echo "$STRIP" >&6; }
11957 else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11964 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11966 set dummy ${ncn_progname}; ac_word=$2
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11968 $as_echo_n "checking for $ac_word... " >&6; }
11969 if ${ac_cv_prog_STRIP+:} false; then :
11970 $as_echo_n "(cached) " >&6
11971 else
11972 if test -n "$STRIP"; then
11973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11974 else
11975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976 for as_dir in $PATH
11978 IFS=$as_save_IFS
11979 test -z "$as_dir" && as_dir=.
11980 for ac_exec_ext in '' $ac_executable_extensions; do
11981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11982 ac_cv_prog_STRIP="${ncn_progname}"
11983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11984 break 2
11986 done
11987 done
11988 IFS=$as_save_IFS
11992 STRIP=$ac_cv_prog_STRIP
11993 if test -n "$STRIP"; then
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11995 $as_echo "$STRIP" >&6; }
11996 else
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998 $as_echo "no" >&6; }
12003 test -n "$ac_cv_prog_STRIP" && break
12004 done
12006 if test -z "$ac_cv_prog_STRIP" ; then
12007 STRIP="true"
12012 if test -n "$WINDRES"; then
12013 ac_cv_prog_WINDRES=$WINDRES
12014 elif test -n "$ac_cv_prog_WINDRES"; then
12015 WINDRES=$ac_cv_prog_WINDRES
12018 if test -n "$ac_cv_prog_WINDRES"; then
12019 for ncn_progname in windres; do
12020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12021 set dummy ${ncn_progname}; ac_word=$2
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023 $as_echo_n "checking for $ac_word... " >&6; }
12024 if ${ac_cv_prog_WINDRES+:} false; then :
12025 $as_echo_n "(cached) " >&6
12026 else
12027 if test -n "$WINDRES"; then
12028 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12029 else
12030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031 for as_dir in $PATH
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
12035 for ac_exec_ext in '' $ac_executable_extensions; do
12036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12037 ac_cv_prog_WINDRES="${ncn_progname}"
12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12039 break 2
12041 done
12042 done
12043 IFS=$as_save_IFS
12047 WINDRES=$ac_cv_prog_WINDRES
12048 if test -n "$WINDRES"; then
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12050 $as_echo "$WINDRES" >&6; }
12051 else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12057 done
12060 for ncn_progname in windres; do
12061 if test -n "$ncn_tool_prefix"; then
12062 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12063 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065 $as_echo_n "checking for $ac_word... " >&6; }
12066 if ${ac_cv_prog_WINDRES+:} false; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 if test -n "$WINDRES"; then
12070 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12071 else
12072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073 for as_dir in $PATH
12075 IFS=$as_save_IFS
12076 test -z "$as_dir" && as_dir=.
12077 for ac_exec_ext in '' $ac_executable_extensions; do
12078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12079 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12081 break 2
12083 done
12084 done
12085 IFS=$as_save_IFS
12089 WINDRES=$ac_cv_prog_WINDRES
12090 if test -n "$WINDRES"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12092 $as_echo "$WINDRES" >&6; }
12093 else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12100 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12102 set dummy ${ncn_progname}; ac_word=$2
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12104 $as_echo_n "checking for $ac_word... " >&6; }
12105 if ${ac_cv_prog_WINDRES+:} false; then :
12106 $as_echo_n "(cached) " >&6
12107 else
12108 if test -n "$WINDRES"; then
12109 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12110 else
12111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12112 for as_dir in $PATH
12114 IFS=$as_save_IFS
12115 test -z "$as_dir" && as_dir=.
12116 for ac_exec_ext in '' $ac_executable_extensions; do
12117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12118 ac_cv_prog_WINDRES="${ncn_progname}"
12119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12120 break 2
12122 done
12123 done
12124 IFS=$as_save_IFS
12128 WINDRES=$ac_cv_prog_WINDRES
12129 if test -n "$WINDRES"; then
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12131 $as_echo "$WINDRES" >&6; }
12132 else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12139 test -n "$ac_cv_prog_WINDRES" && break
12140 done
12142 if test -z "$ac_cv_prog_WINDRES" ; then
12143 set dummy windres
12144 if test $build = $host ; then
12145 WINDRES="$2"
12146 else
12147 WINDRES="${ncn_tool_prefix}$2"
12153 if test -n "$WINDMC"; then
12154 ac_cv_prog_WINDMC=$WINDMC
12155 elif test -n "$ac_cv_prog_WINDMC"; then
12156 WINDMC=$ac_cv_prog_WINDMC
12159 if test -n "$ac_cv_prog_WINDMC"; then
12160 for ncn_progname in windmc; do
12161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12162 set dummy ${ncn_progname}; ac_word=$2
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12164 $as_echo_n "checking for $ac_word... " >&6; }
12165 if ${ac_cv_prog_WINDMC+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167 else
12168 if test -n "$WINDMC"; then
12169 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12170 else
12171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in $PATH
12174 IFS=$as_save_IFS
12175 test -z "$as_dir" && as_dir=.
12176 for ac_exec_ext in '' $ac_executable_extensions; do
12177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12178 ac_cv_prog_WINDMC="${ncn_progname}"
12179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12180 break 2
12182 done
12183 done
12184 IFS=$as_save_IFS
12188 WINDMC=$ac_cv_prog_WINDMC
12189 if test -n "$WINDMC"; then
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12191 $as_echo "$WINDMC" >&6; }
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194 $as_echo "no" >&6; }
12198 done
12201 for ncn_progname in windmc; do
12202 if test -n "$ncn_tool_prefix"; then
12203 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12204 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if ${ac_cv_prog_WINDMC+:} false; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 if test -n "$WINDMC"; then
12211 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12212 else
12213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214 for as_dir in $PATH
12216 IFS=$as_save_IFS
12217 test -z "$as_dir" && as_dir=.
12218 for ac_exec_ext in '' $ac_executable_extensions; do
12219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12220 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12222 break 2
12224 done
12225 done
12226 IFS=$as_save_IFS
12230 WINDMC=$ac_cv_prog_WINDMC
12231 if test -n "$WINDMC"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12233 $as_echo "$WINDMC" >&6; }
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12241 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12243 set dummy ${ncn_progname}; ac_word=$2
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245 $as_echo_n "checking for $ac_word... " >&6; }
12246 if ${ac_cv_prog_WINDMC+:} false; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 if test -n "$WINDMC"; then
12250 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12251 else
12252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253 for as_dir in $PATH
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12259 ac_cv_prog_WINDMC="${ncn_progname}"
12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 break 2
12263 done
12264 done
12265 IFS=$as_save_IFS
12269 WINDMC=$ac_cv_prog_WINDMC
12270 if test -n "$WINDMC"; then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12272 $as_echo "$WINDMC" >&6; }
12273 else
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 $as_echo "no" >&6; }
12280 test -n "$ac_cv_prog_WINDMC" && break
12281 done
12283 if test -z "$ac_cv_prog_WINDMC" ; then
12284 set dummy windmc
12285 if test $build = $host ; then
12286 WINDMC="$2"
12287 else
12288 WINDMC="${ncn_tool_prefix}$2"
12294 if test -n "$OBJCOPY"; then
12295 ac_cv_prog_OBJCOPY=$OBJCOPY
12296 elif test -n "$ac_cv_prog_OBJCOPY"; then
12297 OBJCOPY=$ac_cv_prog_OBJCOPY
12300 if test -n "$ac_cv_prog_OBJCOPY"; then
12301 for ncn_progname in objcopy; do
12302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12303 set dummy ${ncn_progname}; ac_word=$2
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305 $as_echo_n "checking for $ac_word... " >&6; }
12306 if ${ac_cv_prog_OBJCOPY+:} false; then :
12307 $as_echo_n "(cached) " >&6
12308 else
12309 if test -n "$OBJCOPY"; then
12310 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12311 else
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313 for as_dir in $PATH
12315 IFS=$as_save_IFS
12316 test -z "$as_dir" && as_dir=.
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12319 ac_cv_prog_OBJCOPY="${ncn_progname}"
12320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12321 break 2
12323 done
12324 done
12325 IFS=$as_save_IFS
12329 OBJCOPY=$ac_cv_prog_OBJCOPY
12330 if test -n "$OBJCOPY"; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12332 $as_echo "$OBJCOPY" >&6; }
12333 else
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12339 done
12342 for ncn_progname in objcopy; do
12343 if test -n "$ncn_tool_prefix"; then
12344 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12345 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347 $as_echo_n "checking for $ac_word... " >&6; }
12348 if ${ac_cv_prog_OBJCOPY+:} false; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351 if test -n "$OBJCOPY"; then
12352 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12353 else
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $PATH
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12361 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 break 2
12365 done
12366 done
12367 IFS=$as_save_IFS
12371 OBJCOPY=$ac_cv_prog_OBJCOPY
12372 if test -n "$OBJCOPY"; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12374 $as_echo "$OBJCOPY" >&6; }
12375 else
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12382 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12384 set dummy ${ncn_progname}; ac_word=$2
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386 $as_echo_n "checking for $ac_word... " >&6; }
12387 if ${ac_cv_prog_OBJCOPY+:} false; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 if test -n "$OBJCOPY"; then
12391 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12392 else
12393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12394 for as_dir in $PATH
12396 IFS=$as_save_IFS
12397 test -z "$as_dir" && as_dir=.
12398 for ac_exec_ext in '' $ac_executable_extensions; do
12399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12400 ac_cv_prog_OBJCOPY="${ncn_progname}"
12401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12402 break 2
12404 done
12405 done
12406 IFS=$as_save_IFS
12410 OBJCOPY=$ac_cv_prog_OBJCOPY
12411 if test -n "$OBJCOPY"; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12413 $as_echo "$OBJCOPY" >&6; }
12414 else
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 $as_echo "no" >&6; }
12421 test -n "$ac_cv_prog_OBJCOPY" && break
12422 done
12424 if test -z "$ac_cv_prog_OBJCOPY" ; then
12425 set dummy objcopy
12426 if test $build = $host ; then
12427 OBJCOPY="$2"
12428 else
12429 OBJCOPY="${ncn_tool_prefix}$2"
12435 if test -n "$OBJDUMP"; then
12436 ac_cv_prog_OBJDUMP=$OBJDUMP
12437 elif test -n "$ac_cv_prog_OBJDUMP"; then
12438 OBJDUMP=$ac_cv_prog_OBJDUMP
12441 if test -n "$ac_cv_prog_OBJDUMP"; then
12442 for ncn_progname in objdump; do
12443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12444 set dummy ${ncn_progname}; ac_word=$2
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446 $as_echo_n "checking for $ac_word... " >&6; }
12447 if ${ac_cv_prog_OBJDUMP+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 if test -n "$OBJDUMP"; then
12451 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12452 else
12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454 for as_dir in $PATH
12456 IFS=$as_save_IFS
12457 test -z "$as_dir" && as_dir=.
12458 for ac_exec_ext in '' $ac_executable_extensions; do
12459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12460 ac_cv_prog_OBJDUMP="${ncn_progname}"
12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12462 break 2
12464 done
12465 done
12466 IFS=$as_save_IFS
12470 OBJDUMP=$ac_cv_prog_OBJDUMP
12471 if test -n "$OBJDUMP"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12473 $as_echo "$OBJDUMP" >&6; }
12474 else
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476 $as_echo "no" >&6; }
12480 done
12483 for ncn_progname in objdump; do
12484 if test -n "$ncn_tool_prefix"; then
12485 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12486 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if ${ac_cv_prog_OBJDUMP+:} false; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 if test -n "$OBJDUMP"; then
12493 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12494 else
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12504 break 2
12506 done
12507 done
12508 IFS=$as_save_IFS
12512 OBJDUMP=$ac_cv_prog_OBJDUMP
12513 if test -n "$OBJDUMP"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12515 $as_echo "$OBJDUMP" >&6; }
12516 else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12523 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12525 set dummy ${ncn_progname}; ac_word=$2
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12527 $as_echo_n "checking for $ac_word... " >&6; }
12528 if ${ac_cv_prog_OBJDUMP+:} false; then :
12529 $as_echo_n "(cached) " >&6
12530 else
12531 if test -n "$OBJDUMP"; then
12532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12533 else
12534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535 for as_dir in $PATH
12537 IFS=$as_save_IFS
12538 test -z "$as_dir" && as_dir=.
12539 for ac_exec_ext in '' $ac_executable_extensions; do
12540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12541 ac_cv_prog_OBJDUMP="${ncn_progname}"
12542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12543 break 2
12545 done
12546 done
12547 IFS=$as_save_IFS
12551 OBJDUMP=$ac_cv_prog_OBJDUMP
12552 if test -n "$OBJDUMP"; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12554 $as_echo "$OBJDUMP" >&6; }
12555 else
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557 $as_echo "no" >&6; }
12562 test -n "$ac_cv_prog_OBJDUMP" && break
12563 done
12565 if test -z "$ac_cv_prog_OBJDUMP" ; then
12566 set dummy objdump
12567 if test $build = $host ; then
12568 OBJDUMP="$2"
12569 else
12570 OBJDUMP="${ncn_tool_prefix}$2"
12576 if test -n "$OTOOL"; then
12577 ac_cv_prog_OTOOL=$OTOOL
12578 elif test -n "$ac_cv_prog_OTOOL"; then
12579 OTOOL=$ac_cv_prog_OTOOL
12582 if test -n "$ac_cv_prog_OTOOL"; then
12583 for ncn_progname in otool; do
12584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12585 set dummy ${ncn_progname}; ac_word=$2
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587 $as_echo_n "checking for $ac_word... " >&6; }
12588 if ${ac_cv_prog_OTOOL+:} false; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12591 if test -n "$OTOOL"; then
12592 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12593 else
12594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595 for as_dir in $PATH
12597 IFS=$as_save_IFS
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12601 ac_cv_prog_OTOOL="${ncn_progname}"
12602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12603 break 2
12605 done
12606 done
12607 IFS=$as_save_IFS
12611 OTOOL=$ac_cv_prog_OTOOL
12612 if test -n "$OTOOL"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12614 $as_echo "$OTOOL" >&6; }
12615 else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617 $as_echo "no" >&6; }
12621 done
12624 for ncn_progname in otool; do
12625 if test -n "$ncn_tool_prefix"; then
12626 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12627 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629 $as_echo_n "checking for $ac_word... " >&6; }
12630 if ${ac_cv_prog_OTOOL+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 if test -n "$OTOOL"; then
12634 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12635 else
12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637 for as_dir in $PATH
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12643 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 break 2
12647 done
12648 done
12649 IFS=$as_save_IFS
12653 OTOOL=$ac_cv_prog_OTOOL
12654 if test -n "$OTOOL"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12656 $as_echo "$OTOOL" >&6; }
12657 else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12664 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12666 set dummy ${ncn_progname}; ac_word=$2
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12668 $as_echo_n "checking for $ac_word... " >&6; }
12669 if ${ac_cv_prog_OTOOL+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 if test -n "$OTOOL"; then
12673 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12674 else
12675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676 for as_dir in $PATH
12678 IFS=$as_save_IFS
12679 test -z "$as_dir" && as_dir=.
12680 for ac_exec_ext in '' $ac_executable_extensions; do
12681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12682 ac_cv_prog_OTOOL="${ncn_progname}"
12683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12684 break 2
12686 done
12687 done
12688 IFS=$as_save_IFS
12692 OTOOL=$ac_cv_prog_OTOOL
12693 if test -n "$OTOOL"; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12695 $as_echo "$OTOOL" >&6; }
12696 else
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12703 test -n "$ac_cv_prog_OTOOL" && break
12704 done
12706 if test -z "$ac_cv_prog_OTOOL" ; then
12707 set dummy otool
12708 if test $build = $host ; then
12709 OTOOL="$2"
12710 else
12711 OTOOL="${ncn_tool_prefix}$2"
12717 if test -n "$READELF"; then
12718 ac_cv_prog_READELF=$READELF
12719 elif test -n "$ac_cv_prog_READELF"; then
12720 READELF=$ac_cv_prog_READELF
12723 if test -n "$ac_cv_prog_READELF"; then
12724 for ncn_progname in readelf; do
12725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12726 set dummy ${ncn_progname}; ac_word=$2
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728 $as_echo_n "checking for $ac_word... " >&6; }
12729 if ${ac_cv_prog_READELF+:} false; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 if test -n "$READELF"; then
12733 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12734 else
12735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736 for as_dir in $PATH
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
12741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12742 ac_cv_prog_READELF="${ncn_progname}"
12743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12746 done
12747 done
12748 IFS=$as_save_IFS
12752 READELF=$ac_cv_prog_READELF
12753 if test -n "$READELF"; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12755 $as_echo "$READELF" >&6; }
12756 else
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 $as_echo "no" >&6; }
12762 done
12765 for ncn_progname in readelf; do
12766 if test -n "$ncn_tool_prefix"; then
12767 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12768 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770 $as_echo_n "checking for $ac_word... " >&6; }
12771 if ${ac_cv_prog_READELF+:} false; then :
12772 $as_echo_n "(cached) " >&6
12773 else
12774 if test -n "$READELF"; then
12775 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12776 else
12777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778 for as_dir in $PATH
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
12782 for ac_exec_ext in '' $ac_executable_extensions; do
12783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12784 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12786 break 2
12788 done
12789 done
12790 IFS=$as_save_IFS
12794 READELF=$ac_cv_prog_READELF
12795 if test -n "$READELF"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12797 $as_echo "$READELF" >&6; }
12798 else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12805 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12807 set dummy ${ncn_progname}; ac_word=$2
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809 $as_echo_n "checking for $ac_word... " >&6; }
12810 if ${ac_cv_prog_READELF+:} false; then :
12811 $as_echo_n "(cached) " >&6
12812 else
12813 if test -n "$READELF"; then
12814 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12815 else
12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817 for as_dir in $PATH
12819 IFS=$as_save_IFS
12820 test -z "$as_dir" && as_dir=.
12821 for ac_exec_ext in '' $ac_executable_extensions; do
12822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12823 ac_cv_prog_READELF="${ncn_progname}"
12824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12825 break 2
12827 done
12828 done
12829 IFS=$as_save_IFS
12833 READELF=$ac_cv_prog_READELF
12834 if test -n "$READELF"; then
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12836 $as_echo "$READELF" >&6; }
12837 else
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839 $as_echo "no" >&6; }
12844 test -n "$ac_cv_prog_READELF" && break
12845 done
12847 if test -z "$ac_cv_prog_READELF" ; then
12848 set dummy readelf
12849 if test $build = $host ; then
12850 READELF="$2"
12851 else
12852 READELF="${ncn_tool_prefix}$2"
12863 # Target tools.
12865 # Check whether --with-build-time-tools was given.
12866 if test "${with_build_time_tools+set}" = set; then :
12867 withval=$with_build_time_tools; case x"$withval" in
12868 x/*) ;;
12870 with_build_time_tools=
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12872 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12874 esac
12875 else
12876 with_build_time_tools=
12882 if test -n "$CC_FOR_TARGET"; then
12883 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12884 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12885 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12888 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12889 for ncn_progname in cc gcc; do
12890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12891 set dummy ${ncn_progname}; ac_word=$2
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893 $as_echo_n "checking for $ac_word... " >&6; }
12894 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12895 $as_echo_n "(cached) " >&6
12896 else
12897 if test -n "$CC_FOR_TARGET"; then
12898 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12899 else
12900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901 for as_dir in $PATH
12903 IFS=$as_save_IFS
12904 test -z "$as_dir" && as_dir=.
12905 for ac_exec_ext in '' $ac_executable_extensions; do
12906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12907 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12909 break 2
12911 done
12912 done
12913 IFS=$as_save_IFS
12917 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12918 if test -n "$CC_FOR_TARGET"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12920 $as_echo "$CC_FOR_TARGET" >&6; }
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12927 done
12930 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12931 for ncn_progname in cc gcc; do
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12933 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12934 if test -x $with_build_time_tools/${ncn_progname}; then
12935 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12937 $as_echo "yes" >&6; }
12938 break
12939 else
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941 $as_echo "no" >&6; }
12943 done
12946 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12947 for ncn_progname in cc gcc; do
12948 if test -n "$ncn_target_tool_prefix"; then
12949 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12950 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952 $as_echo_n "checking for $ac_word... " >&6; }
12953 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12954 $as_echo_n "(cached) " >&6
12955 else
12956 if test -n "$CC_FOR_TARGET"; then
12957 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12958 else
12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960 for as_dir in $PATH
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
12964 for ac_exec_ext in '' $ac_executable_extensions; do
12965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12966 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968 break 2
12970 done
12971 done
12972 IFS=$as_save_IFS
12976 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12977 if test -n "$CC_FOR_TARGET"; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12979 $as_echo "$CC_FOR_TARGET" >&6; }
12980 else
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982 $as_echo "no" >&6; }
12987 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12989 set dummy ${ncn_progname}; ac_word=$2
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12991 $as_echo_n "checking for $ac_word... " >&6; }
12992 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12993 $as_echo_n "(cached) " >&6
12994 else
12995 if test -n "$CC_FOR_TARGET"; then
12996 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12997 else
12998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12999 for as_dir in $PATH
13001 IFS=$as_save_IFS
13002 test -z "$as_dir" && as_dir=.
13003 for ac_exec_ext in '' $ac_executable_extensions; do
13004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13005 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 break 2
13009 done
13010 done
13011 IFS=$as_save_IFS
13015 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13016 if test -n "$CC_FOR_TARGET"; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13018 $as_echo "$CC_FOR_TARGET" >&6; }
13019 else
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021 $as_echo "no" >&6; }
13026 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13027 done
13030 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13031 set dummy cc gcc
13032 if test $build = $target ; then
13033 CC_FOR_TARGET="$2"
13034 else
13035 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13037 else
13038 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13043 if test -n "$CXX_FOR_TARGET"; then
13044 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13045 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13046 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13049 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13050 for ncn_progname in c++ g++ cxx gxx; do
13051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13052 set dummy ${ncn_progname}; ac_word=$2
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13054 $as_echo_n "checking for $ac_word... " >&6; }
13055 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 if test -n "$CXX_FOR_TARGET"; then
13059 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13060 else
13061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062 for as_dir in $PATH
13064 IFS=$as_save_IFS
13065 test -z "$as_dir" && as_dir=.
13066 for ac_exec_ext in '' $ac_executable_extensions; do
13067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13068 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13070 break 2
13072 done
13073 done
13074 IFS=$as_save_IFS
13078 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13079 if test -n "$CXX_FOR_TARGET"; then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13081 $as_echo "$CXX_FOR_TARGET" >&6; }
13082 else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084 $as_echo "no" >&6; }
13088 done
13091 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13092 for ncn_progname in c++ g++ cxx gxx; do
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13094 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13095 if test -x $with_build_time_tools/${ncn_progname}; then
13096 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13098 $as_echo "yes" >&6; }
13099 break
13100 else
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13102 $as_echo "no" >&6; }
13104 done
13107 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13108 for ncn_progname in c++ g++ cxx gxx; do
13109 if test -n "$ncn_target_tool_prefix"; then
13110 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13111 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13113 $as_echo_n "checking for $ac_word... " >&6; }
13114 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13115 $as_echo_n "(cached) " >&6
13116 else
13117 if test -n "$CXX_FOR_TARGET"; then
13118 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13119 else
13120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $PATH
13123 IFS=$as_save_IFS
13124 test -z "$as_dir" && as_dir=.
13125 for ac_exec_ext in '' $ac_executable_extensions; do
13126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13127 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13129 break 2
13131 done
13132 done
13133 IFS=$as_save_IFS
13137 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13138 if test -n "$CXX_FOR_TARGET"; then
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13140 $as_echo "$CXX_FOR_TARGET" >&6; }
13141 else
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143 $as_echo "no" >&6; }
13148 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13150 set dummy ${ncn_progname}; ac_word=$2
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152 $as_echo_n "checking for $ac_word... " >&6; }
13153 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13154 $as_echo_n "(cached) " >&6
13155 else
13156 if test -n "$CXX_FOR_TARGET"; then
13157 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13158 else
13159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160 for as_dir in $PATH
13162 IFS=$as_save_IFS
13163 test -z "$as_dir" && as_dir=.
13164 for ac_exec_ext in '' $ac_executable_extensions; do
13165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13166 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13168 break 2
13170 done
13171 done
13172 IFS=$as_save_IFS
13176 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13177 if test -n "$CXX_FOR_TARGET"; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13179 $as_echo "$CXX_FOR_TARGET" >&6; }
13180 else
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182 $as_echo "no" >&6; }
13187 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13188 done
13191 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13192 set dummy c++ g++ cxx gxx
13193 if test $build = $target ; then
13194 CXX_FOR_TARGET="$2"
13195 else
13196 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13198 else
13199 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13204 if test -n "$GCC_FOR_TARGET"; then
13205 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13206 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13207 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13210 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13211 for ncn_progname in gcc; do
13212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13213 set dummy ${ncn_progname}; ac_word=$2
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13215 $as_echo_n "checking for $ac_word... " >&6; }
13216 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 if test -n "$GCC_FOR_TARGET"; then
13220 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13221 else
13222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223 for as_dir in $PATH
13225 IFS=$as_save_IFS
13226 test -z "$as_dir" && as_dir=.
13227 for ac_exec_ext in '' $ac_executable_extensions; do
13228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13229 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13231 break 2
13233 done
13234 done
13235 IFS=$as_save_IFS
13239 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13240 if test -n "$GCC_FOR_TARGET"; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13242 $as_echo "$GCC_FOR_TARGET" >&6; }
13243 else
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13249 done
13252 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13253 for ncn_progname in gcc; do
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13255 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13256 if test -x $with_build_time_tools/${ncn_progname}; then
13257 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13259 $as_echo "yes" >&6; }
13260 break
13261 else
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263 $as_echo "no" >&6; }
13265 done
13268 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13269 for ncn_progname in gcc; do
13270 if test -n "$ncn_target_tool_prefix"; then
13271 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13272 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274 $as_echo_n "checking for $ac_word... " >&6; }
13275 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 if test -n "$GCC_FOR_TARGET"; then
13279 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13280 else
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $PATH
13284 IFS=$as_save_IFS
13285 test -z "$as_dir" && as_dir=.
13286 for ac_exec_ext in '' $ac_executable_extensions; do
13287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13288 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13290 break 2
13292 done
13293 done
13294 IFS=$as_save_IFS
13298 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13299 if test -n "$GCC_FOR_TARGET"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13301 $as_echo "$GCC_FOR_TARGET" >&6; }
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13309 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13311 set dummy ${ncn_progname}; ac_word=$2
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13313 $as_echo_n "checking for $ac_word... " >&6; }
13314 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13315 $as_echo_n "(cached) " >&6
13316 else
13317 if test -n "$GCC_FOR_TARGET"; then
13318 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13319 else
13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321 for as_dir in $PATH
13323 IFS=$as_save_IFS
13324 test -z "$as_dir" && as_dir=.
13325 for ac_exec_ext in '' $ac_executable_extensions; do
13326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13327 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13329 break 2
13331 done
13332 done
13333 IFS=$as_save_IFS
13337 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13338 if test -n "$GCC_FOR_TARGET"; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13340 $as_echo "$GCC_FOR_TARGET" >&6; }
13341 else
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13348 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13349 done
13352 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13353 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13354 else
13355 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13360 if test -n "$GFORTRAN_FOR_TARGET"; then
13361 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13362 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13363 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13366 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13367 for ncn_progname in gfortran; do
13368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13369 set dummy ${ncn_progname}; ac_word=$2
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371 $as_echo_n "checking for $ac_word... " >&6; }
13372 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 if test -n "$GFORTRAN_FOR_TARGET"; then
13376 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13377 else
13378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379 for as_dir in $PATH
13381 IFS=$as_save_IFS
13382 test -z "$as_dir" && as_dir=.
13383 for ac_exec_ext in '' $ac_executable_extensions; do
13384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13385 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 break 2
13389 done
13390 done
13391 IFS=$as_save_IFS
13395 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13396 if test -n "$GFORTRAN_FOR_TARGET"; then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13398 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13399 else
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13405 done
13408 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13409 for ncn_progname in gfortran; do
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13411 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13412 if test -x $with_build_time_tools/${ncn_progname}; then
13413 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13415 $as_echo "yes" >&6; }
13416 break
13417 else
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13421 done
13424 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13425 for ncn_progname in gfortran; do
13426 if test -n "$ncn_target_tool_prefix"; then
13427 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13428 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430 $as_echo_n "checking for $ac_word... " >&6; }
13431 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 if test -n "$GFORTRAN_FOR_TARGET"; then
13435 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13436 else
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13440 IFS=$as_save_IFS
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13444 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13446 break 2
13448 done
13449 done
13450 IFS=$as_save_IFS
13454 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13455 if test -n "$GFORTRAN_FOR_TARGET"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13457 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13458 else
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 $as_echo "no" >&6; }
13465 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13467 set dummy ${ncn_progname}; ac_word=$2
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13469 $as_echo_n "checking for $ac_word... " >&6; }
13470 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13471 $as_echo_n "(cached) " >&6
13472 else
13473 if test -n "$GFORTRAN_FOR_TARGET"; then
13474 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13475 else
13476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13477 for as_dir in $PATH
13479 IFS=$as_save_IFS
13480 test -z "$as_dir" && as_dir=.
13481 for ac_exec_ext in '' $ac_executable_extensions; do
13482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13483 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13485 break 2
13487 done
13488 done
13489 IFS=$as_save_IFS
13493 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13494 if test -n "$GFORTRAN_FOR_TARGET"; then
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13496 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13497 else
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499 $as_echo "no" >&6; }
13504 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13505 done
13508 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13509 set dummy gfortran
13510 if test $build = $target ; then
13511 GFORTRAN_FOR_TARGET="$2"
13512 else
13513 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13515 else
13516 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13521 if test -n "$GOC_FOR_TARGET"; then
13522 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13523 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13524 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13527 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13528 for ncn_progname in gccgo; do
13529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13530 set dummy ${ncn_progname}; ac_word=$2
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13532 $as_echo_n "checking for $ac_word... " >&6; }
13533 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 if test -n "$GOC_FOR_TARGET"; then
13537 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13538 else
13539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540 for as_dir in $PATH
13542 IFS=$as_save_IFS
13543 test -z "$as_dir" && as_dir=.
13544 for ac_exec_ext in '' $ac_executable_extensions; do
13545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13546 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13548 break 2
13550 done
13551 done
13552 IFS=$as_save_IFS
13556 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13557 if test -n "$GOC_FOR_TARGET"; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13559 $as_echo "$GOC_FOR_TARGET" >&6; }
13560 else
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562 $as_echo "no" >&6; }
13566 done
13569 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13570 for ncn_progname in gccgo; do
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13572 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13573 if test -x $with_build_time_tools/${ncn_progname}; then
13574 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13576 $as_echo "yes" >&6; }
13577 break
13578 else
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580 $as_echo "no" >&6; }
13582 done
13585 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13586 for ncn_progname in gccgo; do
13587 if test -n "$ncn_target_tool_prefix"; then
13588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13589 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13591 $as_echo_n "checking for $ac_word... " >&6; }
13592 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13593 $as_echo_n "(cached) " >&6
13594 else
13595 if test -n "$GOC_FOR_TARGET"; then
13596 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13597 else
13598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13599 for as_dir in $PATH
13601 IFS=$as_save_IFS
13602 test -z "$as_dir" && as_dir=.
13603 for ac_exec_ext in '' $ac_executable_extensions; do
13604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13605 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13607 break 2
13609 done
13610 done
13611 IFS=$as_save_IFS
13615 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13616 if test -n "$GOC_FOR_TARGET"; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13618 $as_echo "$GOC_FOR_TARGET" >&6; }
13619 else
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13626 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13628 set dummy ${ncn_progname}; ac_word=$2
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630 $as_echo_n "checking for $ac_word... " >&6; }
13631 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 if test -n "$GOC_FOR_TARGET"; then
13635 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13636 else
13637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638 for as_dir in $PATH
13640 IFS=$as_save_IFS
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
13643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13644 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 break 2
13648 done
13649 done
13650 IFS=$as_save_IFS
13654 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13655 if test -n "$GOC_FOR_TARGET"; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13657 $as_echo "$GOC_FOR_TARGET" >&6; }
13658 else
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660 $as_echo "no" >&6; }
13665 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13666 done
13669 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13670 set dummy gccgo
13671 if test $build = $target ; then
13672 GOC_FOR_TARGET="$2"
13673 else
13674 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13676 else
13677 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13682 if test -n "$GDC_FOR_TARGET"; then
13683 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13684 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13685 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13688 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13689 for ncn_progname in gdc; do
13690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13691 set dummy ${ncn_progname}; ac_word=$2
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13693 $as_echo_n "checking for $ac_word... " >&6; }
13694 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13695 $as_echo_n "(cached) " >&6
13696 else
13697 if test -n "$GDC_FOR_TARGET"; then
13698 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13699 else
13700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13701 for as_dir in $PATH
13703 IFS=$as_save_IFS
13704 test -z "$as_dir" && as_dir=.
13705 for ac_exec_ext in '' $ac_executable_extensions; do
13706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13707 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13709 break 2
13711 done
13712 done
13713 IFS=$as_save_IFS
13717 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13718 if test -n "$GDC_FOR_TARGET"; then
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13720 $as_echo "$GDC_FOR_TARGET" >&6; }
13721 else
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13723 $as_echo "no" >&6; }
13727 done
13730 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13731 for ncn_progname in gdc; do
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13733 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13734 if test -x $with_build_time_tools/${ncn_progname}; then
13735 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13737 $as_echo "yes" >&6; }
13738 break
13739 else
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13741 $as_echo "no" >&6; }
13743 done
13746 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13747 for ncn_progname in gdc; do
13748 if test -n "$ncn_target_tool_prefix"; then
13749 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13750 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13752 $as_echo_n "checking for $ac_word... " >&6; }
13753 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 if test -n "$GDC_FOR_TARGET"; then
13757 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13758 else
13759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760 for as_dir in $PATH
13762 IFS=$as_save_IFS
13763 test -z "$as_dir" && as_dir=.
13764 for ac_exec_ext in '' $ac_executable_extensions; do
13765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13766 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13768 break 2
13770 done
13771 done
13772 IFS=$as_save_IFS
13776 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13777 if test -n "$GDC_FOR_TARGET"; then
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13779 $as_echo "$GDC_FOR_TARGET" >&6; }
13780 else
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782 $as_echo "no" >&6; }
13787 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13789 set dummy ${ncn_progname}; ac_word=$2
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13791 $as_echo_n "checking for $ac_word... " >&6; }
13792 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13793 $as_echo_n "(cached) " >&6
13794 else
13795 if test -n "$GDC_FOR_TARGET"; then
13796 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13797 else
13798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13799 for as_dir in $PATH
13801 IFS=$as_save_IFS
13802 test -z "$as_dir" && as_dir=.
13803 for ac_exec_ext in '' $ac_executable_extensions; do
13804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13805 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13807 break 2
13809 done
13810 done
13811 IFS=$as_save_IFS
13815 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13816 if test -n "$GDC_FOR_TARGET"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13818 $as_echo "$GDC_FOR_TARGET" >&6; }
13819 else
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13826 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13827 done
13830 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13831 set dummy gdc
13832 if test $build = $target ; then
13833 GDC_FOR_TARGET="$2"
13834 else
13835 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13837 else
13838 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13843 cat > conftest.c << \EOF
13844 #ifdef __GNUC__
13845 gcc_yay;
13846 #endif
13848 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13849 have_gcc_for_target=yes
13850 else
13851 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13852 have_gcc_for_target=no
13854 rm conftest.c
13859 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13860 if test -n "$with_build_time_tools"; then
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13862 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13863 if test -x $with_build_time_tools/ar; then
13864 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13865 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13867 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13868 else
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870 $as_echo "no" >&6; }
13872 elif test $build != $host && test $have_gcc_for_target = yes; then
13873 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13874 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13875 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13878 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13879 # Extract the first word of "ar", so it can be a program name with args.
13880 set dummy ar; ac_word=$2
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882 $as_echo_n "checking for $ac_word... " >&6; }
13883 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 case $AR_FOR_TARGET in
13887 [\\/]* | ?:[\\/]*)
13888 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13892 for as_dir in $gcc_cv_tool_dirs
13894 IFS=$as_save_IFS
13895 test -z "$as_dir" && as_dir=.
13896 for ac_exec_ext in '' $ac_executable_extensions; do
13897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13898 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13900 break 2
13902 done
13903 done
13904 IFS=$as_save_IFS
13907 esac
13909 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13910 if test -n "$AR_FOR_TARGET"; then
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13912 $as_echo "$AR_FOR_TARGET" >&6; }
13913 else
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13915 $as_echo "no" >&6; }
13920 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13923 if test -n "$AR_FOR_TARGET"; then
13924 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13925 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13926 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13929 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13930 for ncn_progname in ar; do
13931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13932 set dummy ${ncn_progname}; ac_word=$2
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13934 $as_echo_n "checking for $ac_word... " >&6; }
13935 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13936 $as_echo_n "(cached) " >&6
13937 else
13938 if test -n "$AR_FOR_TARGET"; then
13939 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13940 else
13941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942 for as_dir in $PATH
13944 IFS=$as_save_IFS
13945 test -z "$as_dir" && as_dir=.
13946 for ac_exec_ext in '' $ac_executable_extensions; do
13947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13948 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13950 break 2
13952 done
13953 done
13954 IFS=$as_save_IFS
13958 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13959 if test -n "$AR_FOR_TARGET"; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13961 $as_echo "$AR_FOR_TARGET" >&6; }
13962 else
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13968 done
13971 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13972 for ncn_progname in ar; do
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13974 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13975 if test -x $with_build_time_tools/${ncn_progname}; then
13976 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13978 $as_echo "yes" >&6; }
13979 break
13980 else
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 $as_echo "no" >&6; }
13984 done
13987 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13988 for ncn_progname in ar; do
13989 if test -n "$ncn_target_tool_prefix"; then
13990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13991 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13993 $as_echo_n "checking for $ac_word... " >&6; }
13994 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13995 $as_echo_n "(cached) " >&6
13996 else
13997 if test -n "$AR_FOR_TARGET"; then
13998 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13999 else
14000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14003 IFS=$as_save_IFS
14004 test -z "$as_dir" && as_dir=.
14005 for ac_exec_ext in '' $ac_executable_extensions; do
14006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14007 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14009 break 2
14011 done
14012 done
14013 IFS=$as_save_IFS
14017 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14018 if test -n "$AR_FOR_TARGET"; then
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14020 $as_echo "$AR_FOR_TARGET" >&6; }
14021 else
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14023 $as_echo "no" >&6; }
14028 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14030 set dummy ${ncn_progname}; ac_word=$2
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14032 $as_echo_n "checking for $ac_word... " >&6; }
14033 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14034 $as_echo_n "(cached) " >&6
14035 else
14036 if test -n "$AR_FOR_TARGET"; then
14037 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14038 else
14039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14040 for as_dir in $PATH
14042 IFS=$as_save_IFS
14043 test -z "$as_dir" && as_dir=.
14044 for ac_exec_ext in '' $ac_executable_extensions; do
14045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14046 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14048 break 2
14050 done
14051 done
14052 IFS=$as_save_IFS
14056 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14057 if test -n "$AR_FOR_TARGET"; then
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14059 $as_echo "$AR_FOR_TARGET" >&6; }
14060 else
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062 $as_echo "no" >&6; }
14067 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14068 done
14071 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14072 set dummy ar
14073 if test $build = $target ; then
14074 AR_FOR_TARGET="$2"
14075 else
14076 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14078 else
14079 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14082 else
14083 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14089 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14090 if test -n "$with_build_time_tools"; then
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14092 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14093 if test -x $with_build_time_tools/as; then
14094 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14095 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14097 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14098 else
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100 $as_echo "no" >&6; }
14102 elif test $build != $host && test $have_gcc_for_target = yes; then
14103 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14104 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14105 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14108 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14109 # Extract the first word of "as", so it can be a program name with args.
14110 set dummy as; ac_word=$2
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14112 $as_echo_n "checking for $ac_word... " >&6; }
14113 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14114 $as_echo_n "(cached) " >&6
14115 else
14116 case $AS_FOR_TARGET in
14117 [\\/]* | ?:[\\/]*)
14118 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14122 for as_dir in $gcc_cv_tool_dirs
14124 IFS=$as_save_IFS
14125 test -z "$as_dir" && as_dir=.
14126 for ac_exec_ext in '' $ac_executable_extensions; do
14127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14128 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14130 break 2
14132 done
14133 done
14134 IFS=$as_save_IFS
14137 esac
14139 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14140 if test -n "$AS_FOR_TARGET"; then
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14142 $as_echo "$AS_FOR_TARGET" >&6; }
14143 else
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14145 $as_echo "no" >&6; }
14150 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14153 if test -n "$AS_FOR_TARGET"; then
14154 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14155 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14156 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14159 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14160 for ncn_progname in as; do
14161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14162 set dummy ${ncn_progname}; ac_word=$2
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14164 $as_echo_n "checking for $ac_word... " >&6; }
14165 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14166 $as_echo_n "(cached) " >&6
14167 else
14168 if test -n "$AS_FOR_TARGET"; then
14169 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14170 else
14171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14172 for as_dir in $PATH
14174 IFS=$as_save_IFS
14175 test -z "$as_dir" && as_dir=.
14176 for ac_exec_ext in '' $ac_executable_extensions; do
14177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14178 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14180 break 2
14182 done
14183 done
14184 IFS=$as_save_IFS
14188 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14189 if test -n "$AS_FOR_TARGET"; then
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14191 $as_echo "$AS_FOR_TARGET" >&6; }
14192 else
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14194 $as_echo "no" >&6; }
14198 done
14201 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14202 for ncn_progname in as; do
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14204 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14205 if test -x $with_build_time_tools/${ncn_progname}; then
14206 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14208 $as_echo "yes" >&6; }
14209 break
14210 else
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14212 $as_echo "no" >&6; }
14214 done
14217 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14218 for ncn_progname in as; do
14219 if test -n "$ncn_target_tool_prefix"; then
14220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14221 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223 $as_echo_n "checking for $ac_word... " >&6; }
14224 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14225 $as_echo_n "(cached) " >&6
14226 else
14227 if test -n "$AS_FOR_TARGET"; then
14228 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14229 else
14230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14231 for as_dir in $PATH
14233 IFS=$as_save_IFS
14234 test -z "$as_dir" && as_dir=.
14235 for ac_exec_ext in '' $ac_executable_extensions; do
14236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14237 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14239 break 2
14241 done
14242 done
14243 IFS=$as_save_IFS
14247 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14248 if test -n "$AS_FOR_TARGET"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14250 $as_echo "$AS_FOR_TARGET" >&6; }
14251 else
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14258 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14260 set dummy ${ncn_progname}; ac_word=$2
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14262 $as_echo_n "checking for $ac_word... " >&6; }
14263 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14264 $as_echo_n "(cached) " >&6
14265 else
14266 if test -n "$AS_FOR_TARGET"; then
14267 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14268 else
14269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14270 for as_dir in $PATH
14272 IFS=$as_save_IFS
14273 test -z "$as_dir" && as_dir=.
14274 for ac_exec_ext in '' $ac_executable_extensions; do
14275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14276 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14278 break 2
14280 done
14281 done
14282 IFS=$as_save_IFS
14286 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14287 if test -n "$AS_FOR_TARGET"; then
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14289 $as_echo "$AS_FOR_TARGET" >&6; }
14290 else
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14292 $as_echo "no" >&6; }
14297 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14298 done
14301 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14302 set dummy as
14303 if test $build = $target ; then
14304 AS_FOR_TARGET="$2"
14305 else
14306 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14308 else
14309 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14312 else
14313 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14319 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14320 if test -n "$with_build_time_tools"; then
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14322 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14323 if test -x $with_build_time_tools/dlltool; then
14324 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14325 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14327 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14328 else
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330 $as_echo "no" >&6; }
14332 elif test $build != $host && test $have_gcc_for_target = yes; then
14333 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14334 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14335 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14338 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14339 # Extract the first word of "dlltool", so it can be a program name with args.
14340 set dummy dlltool; ac_word=$2
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14342 $as_echo_n "checking for $ac_word... " >&6; }
14343 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14344 $as_echo_n "(cached) " >&6
14345 else
14346 case $DLLTOOL_FOR_TARGET in
14347 [\\/]* | ?:[\\/]*)
14348 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $gcc_cv_tool_dirs
14354 IFS=$as_save_IFS
14355 test -z "$as_dir" && as_dir=.
14356 for ac_exec_ext in '' $ac_executable_extensions; do
14357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14358 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14360 break 2
14362 done
14363 done
14364 IFS=$as_save_IFS
14367 esac
14369 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14370 if test -n "$DLLTOOL_FOR_TARGET"; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14372 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14373 else
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375 $as_echo "no" >&6; }
14380 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14383 if test -n "$DLLTOOL_FOR_TARGET"; then
14384 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14385 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14386 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14389 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14390 for ncn_progname in dlltool; do
14391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14392 set dummy ${ncn_progname}; ac_word=$2
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14394 $as_echo_n "checking for $ac_word... " >&6; }
14395 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14396 $as_echo_n "(cached) " >&6
14397 else
14398 if test -n "$DLLTOOL_FOR_TARGET"; then
14399 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14400 else
14401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402 for as_dir in $PATH
14404 IFS=$as_save_IFS
14405 test -z "$as_dir" && as_dir=.
14406 for ac_exec_ext in '' $ac_executable_extensions; do
14407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14408 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14410 break 2
14412 done
14413 done
14414 IFS=$as_save_IFS
14418 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14419 if test -n "$DLLTOOL_FOR_TARGET"; then
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14421 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14422 else
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424 $as_echo "no" >&6; }
14428 done
14431 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14432 for ncn_progname in dlltool; do
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14434 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14435 if test -x $with_build_time_tools/${ncn_progname}; then
14436 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14438 $as_echo "yes" >&6; }
14439 break
14440 else
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 $as_echo "no" >&6; }
14444 done
14447 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14448 for ncn_progname in dlltool; do
14449 if test -n "$ncn_target_tool_prefix"; then
14450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14451 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453 $as_echo_n "checking for $ac_word... " >&6; }
14454 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14455 $as_echo_n "(cached) " >&6
14456 else
14457 if test -n "$DLLTOOL_FOR_TARGET"; then
14458 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14459 else
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461 for as_dir in $PATH
14463 IFS=$as_save_IFS
14464 test -z "$as_dir" && as_dir=.
14465 for ac_exec_ext in '' $ac_executable_extensions; do
14466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14467 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14469 break 2
14471 done
14472 done
14473 IFS=$as_save_IFS
14477 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14478 if test -n "$DLLTOOL_FOR_TARGET"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14480 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14481 else
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14488 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14490 set dummy ${ncn_progname}; ac_word=$2
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14492 $as_echo_n "checking for $ac_word... " >&6; }
14493 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14494 $as_echo_n "(cached) " >&6
14495 else
14496 if test -n "$DLLTOOL_FOR_TARGET"; then
14497 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14498 else
14499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14500 for as_dir in $PATH
14502 IFS=$as_save_IFS
14503 test -z "$as_dir" && as_dir=.
14504 for ac_exec_ext in '' $ac_executable_extensions; do
14505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14506 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14508 break 2
14510 done
14511 done
14512 IFS=$as_save_IFS
14516 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14517 if test -n "$DLLTOOL_FOR_TARGET"; then
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14519 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14520 else
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14522 $as_echo "no" >&6; }
14527 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14528 done
14531 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14532 set dummy dlltool
14533 if test $build = $target ; then
14534 DLLTOOL_FOR_TARGET="$2"
14535 else
14536 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14538 else
14539 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14542 else
14543 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14549 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14550 if test -n "$with_build_time_tools"; then
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14552 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14553 if test -x $with_build_time_tools/dsymutil; then
14554 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14555 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14557 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14558 else
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14560 $as_echo "no" >&6; }
14562 elif test $build != $host && test $have_gcc_for_target = yes; then
14563 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14564 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14565 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14568 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14569 # Extract the first word of "dsymutil", so it can be a program name with args.
14570 set dummy dsymutil; ac_word=$2
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14572 $as_echo_n "checking for $ac_word... " >&6; }
14573 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14574 $as_echo_n "(cached) " >&6
14575 else
14576 case $DSYMUTIL_FOR_TARGET in
14577 [\\/]* | ?:[\\/]*)
14578 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14582 for as_dir in $gcc_cv_tool_dirs
14584 IFS=$as_save_IFS
14585 test -z "$as_dir" && as_dir=.
14586 for ac_exec_ext in '' $ac_executable_extensions; do
14587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14588 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14590 break 2
14592 done
14593 done
14594 IFS=$as_save_IFS
14597 esac
14599 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14600 if test -n "$DSYMUTIL_FOR_TARGET"; then
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14602 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14603 else
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14605 $as_echo "no" >&6; }
14610 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14613 if test -n "$DSYMUTIL_FOR_TARGET"; then
14614 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14615 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14616 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14619 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14620 for ncn_progname in dsymutil; do
14621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14622 set dummy ${ncn_progname}; ac_word=$2
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14624 $as_echo_n "checking for $ac_word... " >&6; }
14625 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14626 $as_echo_n "(cached) " >&6
14627 else
14628 if test -n "$DSYMUTIL_FOR_TARGET"; then
14629 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14630 else
14631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14632 for as_dir in $PATH
14634 IFS=$as_save_IFS
14635 test -z "$as_dir" && as_dir=.
14636 for ac_exec_ext in '' $ac_executable_extensions; do
14637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14638 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14640 break 2
14642 done
14643 done
14644 IFS=$as_save_IFS
14648 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14649 if test -n "$DSYMUTIL_FOR_TARGET"; then
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14651 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14652 else
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654 $as_echo "no" >&6; }
14658 done
14661 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14662 for ncn_progname in dsymutil; do
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14664 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14665 if test -x $with_build_time_tools/${ncn_progname}; then
14666 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14668 $as_echo "yes" >&6; }
14669 break
14670 else
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14672 $as_echo "no" >&6; }
14674 done
14677 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14678 for ncn_progname in dsymutil; do
14679 if test -n "$ncn_target_tool_prefix"; then
14680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14681 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14683 $as_echo_n "checking for $ac_word... " >&6; }
14684 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14685 $as_echo_n "(cached) " >&6
14686 else
14687 if test -n "$DSYMUTIL_FOR_TARGET"; then
14688 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14689 else
14690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691 for as_dir in $PATH
14693 IFS=$as_save_IFS
14694 test -z "$as_dir" && as_dir=.
14695 for ac_exec_ext in '' $ac_executable_extensions; do
14696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14697 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14699 break 2
14701 done
14702 done
14703 IFS=$as_save_IFS
14707 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14708 if test -n "$DSYMUTIL_FOR_TARGET"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14710 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14711 else
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14713 $as_echo "no" >&6; }
14718 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14720 set dummy ${ncn_progname}; ac_word=$2
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14722 $as_echo_n "checking for $ac_word... " >&6; }
14723 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14724 $as_echo_n "(cached) " >&6
14725 else
14726 if test -n "$DSYMUTIL_FOR_TARGET"; then
14727 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14728 else
14729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14730 for as_dir in $PATH
14732 IFS=$as_save_IFS
14733 test -z "$as_dir" && as_dir=.
14734 for ac_exec_ext in '' $ac_executable_extensions; do
14735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14736 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14738 break 2
14740 done
14741 done
14742 IFS=$as_save_IFS
14746 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14747 if test -n "$DSYMUTIL_FOR_TARGET"; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14749 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14750 else
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14757 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14758 done
14761 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14762 set dummy dsymutil
14763 if test $build = $target ; then
14764 DSYMUTIL_FOR_TARGET="$2"
14765 else
14766 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14768 else
14769 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14772 else
14773 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14779 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14780 if test -n "$with_build_time_tools"; then
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14782 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14783 if test -x $with_build_time_tools/ld; then
14784 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14785 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14787 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14788 else
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14790 $as_echo "no" >&6; }
14792 elif test $build != $host && test $have_gcc_for_target = yes; then
14793 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14794 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14795 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14798 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14799 # Extract the first word of "ld", so it can be a program name with args.
14800 set dummy ld; ac_word=$2
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14802 $as_echo_n "checking for $ac_word... " >&6; }
14803 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14804 $as_echo_n "(cached) " >&6
14805 else
14806 case $LD_FOR_TARGET in
14807 [\\/]* | ?:[\\/]*)
14808 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14812 for as_dir in $gcc_cv_tool_dirs
14814 IFS=$as_save_IFS
14815 test -z "$as_dir" && as_dir=.
14816 for ac_exec_ext in '' $ac_executable_extensions; do
14817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14818 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14820 break 2
14822 done
14823 done
14824 IFS=$as_save_IFS
14827 esac
14829 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14830 if test -n "$LD_FOR_TARGET"; then
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14832 $as_echo "$LD_FOR_TARGET" >&6; }
14833 else
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14835 $as_echo "no" >&6; }
14840 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14843 if test -n "$LD_FOR_TARGET"; then
14844 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14845 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14846 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14849 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14850 for ncn_progname in ld; do
14851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14852 set dummy ${ncn_progname}; ac_word=$2
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14854 $as_echo_n "checking for $ac_word... " >&6; }
14855 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14856 $as_echo_n "(cached) " >&6
14857 else
14858 if test -n "$LD_FOR_TARGET"; then
14859 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14860 else
14861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14862 for as_dir in $PATH
14864 IFS=$as_save_IFS
14865 test -z "$as_dir" && as_dir=.
14866 for ac_exec_ext in '' $ac_executable_extensions; do
14867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14868 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14870 break 2
14872 done
14873 done
14874 IFS=$as_save_IFS
14878 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14879 if test -n "$LD_FOR_TARGET"; then
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14881 $as_echo "$LD_FOR_TARGET" >&6; }
14882 else
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14884 $as_echo "no" >&6; }
14888 done
14891 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14892 for ncn_progname in ld; do
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14894 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14895 if test -x $with_build_time_tools/${ncn_progname}; then
14896 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14898 $as_echo "yes" >&6; }
14899 break
14900 else
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902 $as_echo "no" >&6; }
14904 done
14907 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14908 for ncn_progname in ld; do
14909 if test -n "$ncn_target_tool_prefix"; then
14910 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14911 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14913 $as_echo_n "checking for $ac_word... " >&6; }
14914 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14915 $as_echo_n "(cached) " >&6
14916 else
14917 if test -n "$LD_FOR_TARGET"; then
14918 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14919 else
14920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14921 for as_dir in $PATH
14923 IFS=$as_save_IFS
14924 test -z "$as_dir" && as_dir=.
14925 for ac_exec_ext in '' $ac_executable_extensions; do
14926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14927 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14929 break 2
14931 done
14932 done
14933 IFS=$as_save_IFS
14937 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14938 if test -n "$LD_FOR_TARGET"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14940 $as_echo "$LD_FOR_TARGET" >&6; }
14941 else
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14943 $as_echo "no" >&6; }
14948 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14950 set dummy ${ncn_progname}; ac_word=$2
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14952 $as_echo_n "checking for $ac_word... " >&6; }
14953 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14954 $as_echo_n "(cached) " >&6
14955 else
14956 if test -n "$LD_FOR_TARGET"; then
14957 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14958 else
14959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14960 for as_dir in $PATH
14962 IFS=$as_save_IFS
14963 test -z "$as_dir" && as_dir=.
14964 for ac_exec_ext in '' $ac_executable_extensions; do
14965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14966 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14968 break 2
14970 done
14971 done
14972 IFS=$as_save_IFS
14976 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14977 if test -n "$LD_FOR_TARGET"; then
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14979 $as_echo "$LD_FOR_TARGET" >&6; }
14980 else
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14982 $as_echo "no" >&6; }
14987 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14988 done
14991 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14992 set dummy ld
14993 if test $build = $target ; then
14994 LD_FOR_TARGET="$2"
14995 else
14996 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14998 else
14999 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15002 else
15003 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15009 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15010 if test -n "$with_build_time_tools"; then
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15012 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
15013 if test -x $with_build_time_tools/lipo; then
15014 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15015 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15017 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15018 else
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15020 $as_echo "no" >&6; }
15022 elif test $build != $host && test $have_gcc_for_target = yes; then
15023 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15024 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15025 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15028 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15029 # Extract the first word of "lipo", so it can be a program name with args.
15030 set dummy lipo; ac_word=$2
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15032 $as_echo_n "checking for $ac_word... " >&6; }
15033 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15034 $as_echo_n "(cached) " >&6
15035 else
15036 case $LIPO_FOR_TARGET in
15037 [\\/]* | ?:[\\/]*)
15038 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15042 for as_dir in $gcc_cv_tool_dirs
15044 IFS=$as_save_IFS
15045 test -z "$as_dir" && as_dir=.
15046 for ac_exec_ext in '' $ac_executable_extensions; do
15047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15048 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15050 break 2
15052 done
15053 done
15054 IFS=$as_save_IFS
15057 esac
15059 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15060 if test -n "$LIPO_FOR_TARGET"; then
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15062 $as_echo "$LIPO_FOR_TARGET" >&6; }
15063 else
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15065 $as_echo "no" >&6; }
15070 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15073 if test -n "$LIPO_FOR_TARGET"; then
15074 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15075 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15076 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15079 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15080 for ncn_progname in lipo; do
15081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15082 set dummy ${ncn_progname}; ac_word=$2
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15084 $as_echo_n "checking for $ac_word... " >&6; }
15085 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15086 $as_echo_n "(cached) " >&6
15087 else
15088 if test -n "$LIPO_FOR_TARGET"; then
15089 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15090 else
15091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15092 for as_dir in $PATH
15094 IFS=$as_save_IFS
15095 test -z "$as_dir" && as_dir=.
15096 for ac_exec_ext in '' $ac_executable_extensions; do
15097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15098 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15100 break 2
15102 done
15103 done
15104 IFS=$as_save_IFS
15108 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15109 if test -n "$LIPO_FOR_TARGET"; then
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15111 $as_echo "$LIPO_FOR_TARGET" >&6; }
15112 else
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15114 $as_echo "no" >&6; }
15118 done
15121 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15122 for ncn_progname in lipo; do
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15124 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15125 if test -x $with_build_time_tools/${ncn_progname}; then
15126 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15128 $as_echo "yes" >&6; }
15129 break
15130 else
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15132 $as_echo "no" >&6; }
15134 done
15137 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15138 for ncn_progname in lipo; do
15139 if test -n "$ncn_target_tool_prefix"; then
15140 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15141 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15143 $as_echo_n "checking for $ac_word... " >&6; }
15144 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15145 $as_echo_n "(cached) " >&6
15146 else
15147 if test -n "$LIPO_FOR_TARGET"; then
15148 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15149 else
15150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151 for as_dir in $PATH
15153 IFS=$as_save_IFS
15154 test -z "$as_dir" && as_dir=.
15155 for ac_exec_ext in '' $ac_executable_extensions; do
15156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15157 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15159 break 2
15161 done
15162 done
15163 IFS=$as_save_IFS
15167 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15168 if test -n "$LIPO_FOR_TARGET"; then
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15170 $as_echo "$LIPO_FOR_TARGET" >&6; }
15171 else
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15173 $as_echo "no" >&6; }
15178 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15180 set dummy ${ncn_progname}; ac_word=$2
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15182 $as_echo_n "checking for $ac_word... " >&6; }
15183 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15184 $as_echo_n "(cached) " >&6
15185 else
15186 if test -n "$LIPO_FOR_TARGET"; then
15187 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15188 else
15189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15190 for as_dir in $PATH
15192 IFS=$as_save_IFS
15193 test -z "$as_dir" && as_dir=.
15194 for ac_exec_ext in '' $ac_executable_extensions; do
15195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15196 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15198 break 2
15200 done
15201 done
15202 IFS=$as_save_IFS
15206 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15207 if test -n "$LIPO_FOR_TARGET"; then
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15209 $as_echo "$LIPO_FOR_TARGET" >&6; }
15210 else
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15212 $as_echo "no" >&6; }
15217 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15218 done
15221 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15222 set dummy lipo
15223 if test $build = $target ; then
15224 LIPO_FOR_TARGET="$2"
15225 else
15226 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15228 else
15229 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15232 else
15233 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15239 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15240 if test -n "$with_build_time_tools"; then
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15242 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15243 if test -x $with_build_time_tools/nm; then
15244 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15245 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15247 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15248 else
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15250 $as_echo "no" >&6; }
15252 elif test $build != $host && test $have_gcc_for_target = yes; then
15253 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15254 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15255 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15258 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15259 # Extract the first word of "nm", so it can be a program name with args.
15260 set dummy nm; ac_word=$2
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15262 $as_echo_n "checking for $ac_word... " >&6; }
15263 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15264 $as_echo_n "(cached) " >&6
15265 else
15266 case $NM_FOR_TARGET in
15267 [\\/]* | ?:[\\/]*)
15268 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15272 for as_dir in $gcc_cv_tool_dirs
15274 IFS=$as_save_IFS
15275 test -z "$as_dir" && as_dir=.
15276 for ac_exec_ext in '' $ac_executable_extensions; do
15277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15278 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15280 break 2
15282 done
15283 done
15284 IFS=$as_save_IFS
15287 esac
15289 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15290 if test -n "$NM_FOR_TARGET"; then
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15292 $as_echo "$NM_FOR_TARGET" >&6; }
15293 else
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15295 $as_echo "no" >&6; }
15300 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15303 if test -n "$NM_FOR_TARGET"; then
15304 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15305 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15306 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15309 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15310 for ncn_progname in nm; do
15311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15312 set dummy ${ncn_progname}; ac_word=$2
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15314 $as_echo_n "checking for $ac_word... " >&6; }
15315 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15316 $as_echo_n "(cached) " >&6
15317 else
15318 if test -n "$NM_FOR_TARGET"; then
15319 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15320 else
15321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15322 for as_dir in $PATH
15324 IFS=$as_save_IFS
15325 test -z "$as_dir" && as_dir=.
15326 for ac_exec_ext in '' $ac_executable_extensions; do
15327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15328 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15330 break 2
15332 done
15333 done
15334 IFS=$as_save_IFS
15338 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15339 if test -n "$NM_FOR_TARGET"; then
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15341 $as_echo "$NM_FOR_TARGET" >&6; }
15342 else
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15344 $as_echo "no" >&6; }
15348 done
15351 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15352 for ncn_progname in nm; do
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15354 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15355 if test -x $with_build_time_tools/${ncn_progname}; then
15356 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15358 $as_echo "yes" >&6; }
15359 break
15360 else
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15362 $as_echo "no" >&6; }
15364 done
15367 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15368 for ncn_progname in nm; do
15369 if test -n "$ncn_target_tool_prefix"; then
15370 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15371 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15373 $as_echo_n "checking for $ac_word... " >&6; }
15374 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15375 $as_echo_n "(cached) " >&6
15376 else
15377 if test -n "$NM_FOR_TARGET"; then
15378 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15379 else
15380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15381 for as_dir in $PATH
15383 IFS=$as_save_IFS
15384 test -z "$as_dir" && as_dir=.
15385 for ac_exec_ext in '' $ac_executable_extensions; do
15386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15387 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15389 break 2
15391 done
15392 done
15393 IFS=$as_save_IFS
15397 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15398 if test -n "$NM_FOR_TARGET"; then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15400 $as_echo "$NM_FOR_TARGET" >&6; }
15401 else
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15408 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15410 set dummy ${ncn_progname}; ac_word=$2
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15412 $as_echo_n "checking for $ac_word... " >&6; }
15413 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15414 $as_echo_n "(cached) " >&6
15415 else
15416 if test -n "$NM_FOR_TARGET"; then
15417 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15418 else
15419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15420 for as_dir in $PATH
15422 IFS=$as_save_IFS
15423 test -z "$as_dir" && as_dir=.
15424 for ac_exec_ext in '' $ac_executable_extensions; do
15425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15426 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15428 break 2
15430 done
15431 done
15432 IFS=$as_save_IFS
15436 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15437 if test -n "$NM_FOR_TARGET"; then
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15439 $as_echo "$NM_FOR_TARGET" >&6; }
15440 else
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15442 $as_echo "no" >&6; }
15447 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15448 done
15451 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15452 set dummy nm
15453 if test $build = $target ; then
15454 NM_FOR_TARGET="$2"
15455 else
15456 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15458 else
15459 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15462 else
15463 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15469 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15470 if test -n "$with_build_time_tools"; then
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15472 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15473 if test -x $with_build_time_tools/objcopy; then
15474 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15475 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15477 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15478 else
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15480 $as_echo "no" >&6; }
15482 elif test $build != $host && test $have_gcc_for_target = yes; then
15483 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15484 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15485 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15488 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15489 # Extract the first word of "objcopy", so it can be a program name with args.
15490 set dummy objcopy; ac_word=$2
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15492 $as_echo_n "checking for $ac_word... " >&6; }
15493 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15494 $as_echo_n "(cached) " >&6
15495 else
15496 case $OBJCOPY_FOR_TARGET in
15497 [\\/]* | ?:[\\/]*)
15498 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15502 for as_dir in $gcc_cv_tool_dirs
15504 IFS=$as_save_IFS
15505 test -z "$as_dir" && as_dir=.
15506 for ac_exec_ext in '' $ac_executable_extensions; do
15507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15508 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15510 break 2
15512 done
15513 done
15514 IFS=$as_save_IFS
15517 esac
15519 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15520 if test -n "$OBJCOPY_FOR_TARGET"; then
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15522 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15523 else
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15525 $as_echo "no" >&6; }
15530 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15533 if test -n "$OBJCOPY_FOR_TARGET"; then
15534 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15535 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15536 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15539 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15540 for ncn_progname in objcopy; do
15541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15542 set dummy ${ncn_progname}; ac_word=$2
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15544 $as_echo_n "checking for $ac_word... " >&6; }
15545 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15546 $as_echo_n "(cached) " >&6
15547 else
15548 if test -n "$OBJCOPY_FOR_TARGET"; then
15549 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15550 else
15551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15552 for as_dir in $PATH
15554 IFS=$as_save_IFS
15555 test -z "$as_dir" && as_dir=.
15556 for ac_exec_ext in '' $ac_executable_extensions; do
15557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15558 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15560 break 2
15562 done
15563 done
15564 IFS=$as_save_IFS
15568 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15569 if test -n "$OBJCOPY_FOR_TARGET"; then
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15571 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15572 else
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15574 $as_echo "no" >&6; }
15578 done
15581 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15582 for ncn_progname in objcopy; do
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15584 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15585 if test -x $with_build_time_tools/${ncn_progname}; then
15586 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15588 $as_echo "yes" >&6; }
15589 break
15590 else
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15592 $as_echo "no" >&6; }
15594 done
15597 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15598 for ncn_progname in objcopy; do
15599 if test -n "$ncn_target_tool_prefix"; then
15600 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15601 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15603 $as_echo_n "checking for $ac_word... " >&6; }
15604 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15605 $as_echo_n "(cached) " >&6
15606 else
15607 if test -n "$OBJCOPY_FOR_TARGET"; then
15608 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15609 else
15610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15611 for as_dir in $PATH
15613 IFS=$as_save_IFS
15614 test -z "$as_dir" && as_dir=.
15615 for ac_exec_ext in '' $ac_executable_extensions; do
15616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15617 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15619 break 2
15621 done
15622 done
15623 IFS=$as_save_IFS
15627 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15628 if test -n "$OBJCOPY_FOR_TARGET"; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15630 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15631 else
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633 $as_echo "no" >&6; }
15638 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15640 set dummy ${ncn_progname}; ac_word=$2
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15642 $as_echo_n "checking for $ac_word... " >&6; }
15643 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15644 $as_echo_n "(cached) " >&6
15645 else
15646 if test -n "$OBJCOPY_FOR_TARGET"; then
15647 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15648 else
15649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15650 for as_dir in $PATH
15652 IFS=$as_save_IFS
15653 test -z "$as_dir" && as_dir=.
15654 for ac_exec_ext in '' $ac_executable_extensions; do
15655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15656 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15658 break 2
15660 done
15661 done
15662 IFS=$as_save_IFS
15666 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15667 if test -n "$OBJCOPY_FOR_TARGET"; then
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15669 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15670 else
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15672 $as_echo "no" >&6; }
15677 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15678 done
15681 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15682 set dummy objcopy
15683 if test $build = $target ; then
15684 OBJCOPY_FOR_TARGET="$2"
15685 else
15686 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15688 else
15689 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15692 else
15693 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15699 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15700 if test -n "$with_build_time_tools"; then
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15702 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15703 if test -x $with_build_time_tools/objdump; then
15704 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15705 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15707 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15708 else
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15710 $as_echo "no" >&6; }
15712 elif test $build != $host && test $have_gcc_for_target = yes; then
15713 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15714 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15715 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15718 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15719 # Extract the first word of "objdump", so it can be a program name with args.
15720 set dummy objdump; ac_word=$2
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15722 $as_echo_n "checking for $ac_word... " >&6; }
15723 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15724 $as_echo_n "(cached) " >&6
15725 else
15726 case $OBJDUMP_FOR_TARGET in
15727 [\\/]* | ?:[\\/]*)
15728 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15732 for as_dir in $gcc_cv_tool_dirs
15734 IFS=$as_save_IFS
15735 test -z "$as_dir" && as_dir=.
15736 for ac_exec_ext in '' $ac_executable_extensions; do
15737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15738 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15740 break 2
15742 done
15743 done
15744 IFS=$as_save_IFS
15747 esac
15749 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15750 if test -n "$OBJDUMP_FOR_TARGET"; then
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15752 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15753 else
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15755 $as_echo "no" >&6; }
15760 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15763 if test -n "$OBJDUMP_FOR_TARGET"; then
15764 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15765 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15766 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15769 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15770 for ncn_progname in objdump; do
15771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15772 set dummy ${ncn_progname}; ac_word=$2
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15774 $as_echo_n "checking for $ac_word... " >&6; }
15775 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15776 $as_echo_n "(cached) " >&6
15777 else
15778 if test -n "$OBJDUMP_FOR_TARGET"; then
15779 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15780 else
15781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15782 for as_dir in $PATH
15784 IFS=$as_save_IFS
15785 test -z "$as_dir" && as_dir=.
15786 for ac_exec_ext in '' $ac_executable_extensions; do
15787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15788 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15790 break 2
15792 done
15793 done
15794 IFS=$as_save_IFS
15798 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15799 if test -n "$OBJDUMP_FOR_TARGET"; then
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15801 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15802 else
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15804 $as_echo "no" >&6; }
15808 done
15811 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15812 for ncn_progname in objdump; do
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15814 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15815 if test -x $with_build_time_tools/${ncn_progname}; then
15816 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15818 $as_echo "yes" >&6; }
15819 break
15820 else
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15822 $as_echo "no" >&6; }
15824 done
15827 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15828 for ncn_progname in objdump; do
15829 if test -n "$ncn_target_tool_prefix"; then
15830 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15831 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15833 $as_echo_n "checking for $ac_word... " >&6; }
15834 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15835 $as_echo_n "(cached) " >&6
15836 else
15837 if test -n "$OBJDUMP_FOR_TARGET"; then
15838 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15839 else
15840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15841 for as_dir in $PATH
15843 IFS=$as_save_IFS
15844 test -z "$as_dir" && as_dir=.
15845 for ac_exec_ext in '' $ac_executable_extensions; do
15846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15847 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15849 break 2
15851 done
15852 done
15853 IFS=$as_save_IFS
15857 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15858 if test -n "$OBJDUMP_FOR_TARGET"; then
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15860 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15861 else
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15863 $as_echo "no" >&6; }
15868 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15870 set dummy ${ncn_progname}; ac_word=$2
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15872 $as_echo_n "checking for $ac_word... " >&6; }
15873 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15874 $as_echo_n "(cached) " >&6
15875 else
15876 if test -n "$OBJDUMP_FOR_TARGET"; then
15877 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15878 else
15879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15880 for as_dir in $PATH
15882 IFS=$as_save_IFS
15883 test -z "$as_dir" && as_dir=.
15884 for ac_exec_ext in '' $ac_executable_extensions; do
15885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15886 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15888 break 2
15890 done
15891 done
15892 IFS=$as_save_IFS
15896 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15897 if test -n "$OBJDUMP_FOR_TARGET"; then
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15899 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15900 else
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15902 $as_echo "no" >&6; }
15907 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15908 done
15911 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15912 set dummy objdump
15913 if test $build = $target ; then
15914 OBJDUMP_FOR_TARGET="$2"
15915 else
15916 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15918 else
15919 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15922 else
15923 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15929 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15930 if test -n "$with_build_time_tools"; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15932 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15933 if test -x $with_build_time_tools/otool; then
15934 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15935 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15937 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15938 else
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15940 $as_echo "no" >&6; }
15942 elif test $build != $host && test $have_gcc_for_target = yes; then
15943 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15944 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15945 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15948 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15949 # Extract the first word of "otool", so it can be a program name with args.
15950 set dummy otool; ac_word=$2
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15952 $as_echo_n "checking for $ac_word... " >&6; }
15953 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15954 $as_echo_n "(cached) " >&6
15955 else
15956 case $OTOOL_FOR_TARGET in
15957 [\\/]* | ?:[\\/]*)
15958 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15962 for as_dir in $gcc_cv_tool_dirs
15964 IFS=$as_save_IFS
15965 test -z "$as_dir" && as_dir=.
15966 for ac_exec_ext in '' $ac_executable_extensions; do
15967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15968 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15970 break 2
15972 done
15973 done
15974 IFS=$as_save_IFS
15977 esac
15979 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15980 if test -n "$OTOOL_FOR_TARGET"; then
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15982 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15983 else
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15985 $as_echo "no" >&6; }
15990 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15993 if test -n "$OTOOL_FOR_TARGET"; then
15994 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15995 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15996 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15999 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16000 for ncn_progname in otool; do
16001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16002 set dummy ${ncn_progname}; ac_word=$2
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16004 $as_echo_n "checking for $ac_word... " >&6; }
16005 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16006 $as_echo_n "(cached) " >&6
16007 else
16008 if test -n "$OTOOL_FOR_TARGET"; then
16009 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16010 else
16011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16012 for as_dir in $PATH
16014 IFS=$as_save_IFS
16015 test -z "$as_dir" && as_dir=.
16016 for ac_exec_ext in '' $ac_executable_extensions; do
16017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16018 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16020 break 2
16022 done
16023 done
16024 IFS=$as_save_IFS
16028 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16029 if test -n "$OTOOL_FOR_TARGET"; then
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16031 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16032 else
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16034 $as_echo "no" >&6; }
16038 done
16041 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16042 for ncn_progname in otool; do
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16044 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16045 if test -x $with_build_time_tools/${ncn_progname}; then
16046 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16048 $as_echo "yes" >&6; }
16049 break
16050 else
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16052 $as_echo "no" >&6; }
16054 done
16057 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16058 for ncn_progname in otool; do
16059 if test -n "$ncn_target_tool_prefix"; then
16060 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16061 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16063 $as_echo_n "checking for $ac_word... " >&6; }
16064 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16065 $as_echo_n "(cached) " >&6
16066 else
16067 if test -n "$OTOOL_FOR_TARGET"; then
16068 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16069 else
16070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16071 for as_dir in $PATH
16073 IFS=$as_save_IFS
16074 test -z "$as_dir" && as_dir=.
16075 for ac_exec_ext in '' $ac_executable_extensions; do
16076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16077 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16079 break 2
16081 done
16082 done
16083 IFS=$as_save_IFS
16087 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16088 if test -n "$OTOOL_FOR_TARGET"; then
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16090 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16091 else
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16093 $as_echo "no" >&6; }
16098 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16100 set dummy ${ncn_progname}; ac_word=$2
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16102 $as_echo_n "checking for $ac_word... " >&6; }
16103 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16104 $as_echo_n "(cached) " >&6
16105 else
16106 if test -n "$OTOOL_FOR_TARGET"; then
16107 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16108 else
16109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16110 for as_dir in $PATH
16112 IFS=$as_save_IFS
16113 test -z "$as_dir" && as_dir=.
16114 for ac_exec_ext in '' $ac_executable_extensions; do
16115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16116 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16118 break 2
16120 done
16121 done
16122 IFS=$as_save_IFS
16126 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16127 if test -n "$OTOOL_FOR_TARGET"; then
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16129 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16130 else
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16132 $as_echo "no" >&6; }
16137 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16138 done
16141 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16142 set dummy otool
16143 if test $build = $target ; then
16144 OTOOL_FOR_TARGET="$2"
16145 else
16146 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16148 else
16149 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16152 else
16153 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16159 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16160 if test -n "$with_build_time_tools"; then
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16162 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16163 if test -x $with_build_time_tools/ranlib; then
16164 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16165 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16167 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16168 else
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16170 $as_echo "no" >&6; }
16172 elif test $build != $host && test $have_gcc_for_target = yes; then
16173 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16174 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16175 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16178 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16179 # Extract the first word of "ranlib", so it can be a program name with args.
16180 set dummy ranlib; ac_word=$2
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16182 $as_echo_n "checking for $ac_word... " >&6; }
16183 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16184 $as_echo_n "(cached) " >&6
16185 else
16186 case $RANLIB_FOR_TARGET in
16187 [\\/]* | ?:[\\/]*)
16188 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16192 for as_dir in $gcc_cv_tool_dirs
16194 IFS=$as_save_IFS
16195 test -z "$as_dir" && as_dir=.
16196 for ac_exec_ext in '' $ac_executable_extensions; do
16197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16198 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16200 break 2
16202 done
16203 done
16204 IFS=$as_save_IFS
16207 esac
16209 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16210 if test -n "$RANLIB_FOR_TARGET"; then
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16212 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16213 else
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16215 $as_echo "no" >&6; }
16220 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16223 if test -n "$RANLIB_FOR_TARGET"; then
16224 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16225 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16226 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16229 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16230 for ncn_progname in ranlib; do
16231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16232 set dummy ${ncn_progname}; ac_word=$2
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16234 $as_echo_n "checking for $ac_word... " >&6; }
16235 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16236 $as_echo_n "(cached) " >&6
16237 else
16238 if test -n "$RANLIB_FOR_TARGET"; then
16239 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16240 else
16241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16242 for as_dir in $PATH
16244 IFS=$as_save_IFS
16245 test -z "$as_dir" && as_dir=.
16246 for ac_exec_ext in '' $ac_executable_extensions; do
16247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16248 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16250 break 2
16252 done
16253 done
16254 IFS=$as_save_IFS
16258 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16259 if test -n "$RANLIB_FOR_TARGET"; then
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16261 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16262 else
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16264 $as_echo "no" >&6; }
16268 done
16271 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16272 for ncn_progname in ranlib; do
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16274 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16275 if test -x $with_build_time_tools/${ncn_progname}; then
16276 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16278 $as_echo "yes" >&6; }
16279 break
16280 else
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16282 $as_echo "no" >&6; }
16284 done
16287 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16288 for ncn_progname in ranlib; do
16289 if test -n "$ncn_target_tool_prefix"; then
16290 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16291 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16293 $as_echo_n "checking for $ac_word... " >&6; }
16294 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16295 $as_echo_n "(cached) " >&6
16296 else
16297 if test -n "$RANLIB_FOR_TARGET"; then
16298 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16299 else
16300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16301 for as_dir in $PATH
16303 IFS=$as_save_IFS
16304 test -z "$as_dir" && as_dir=.
16305 for ac_exec_ext in '' $ac_executable_extensions; do
16306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16307 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16309 break 2
16311 done
16312 done
16313 IFS=$as_save_IFS
16317 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16318 if test -n "$RANLIB_FOR_TARGET"; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16320 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16321 else
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16328 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16330 set dummy ${ncn_progname}; ac_word=$2
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16332 $as_echo_n "checking for $ac_word... " >&6; }
16333 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16334 $as_echo_n "(cached) " >&6
16335 else
16336 if test -n "$RANLIB_FOR_TARGET"; then
16337 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16338 else
16339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16340 for as_dir in $PATH
16342 IFS=$as_save_IFS
16343 test -z "$as_dir" && as_dir=.
16344 for ac_exec_ext in '' $ac_executable_extensions; do
16345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16346 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16348 break 2
16350 done
16351 done
16352 IFS=$as_save_IFS
16356 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16357 if test -n "$RANLIB_FOR_TARGET"; then
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16359 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16360 else
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16362 $as_echo "no" >&6; }
16367 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16368 done
16371 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16372 set dummy ranlib
16373 if test $build = $target ; then
16374 RANLIB_FOR_TARGET="$2"
16375 else
16376 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16378 else
16379 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16382 else
16383 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16389 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16390 if test -n "$with_build_time_tools"; then
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16392 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16393 if test -x $with_build_time_tools/readelf; then
16394 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16395 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16397 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16398 else
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16400 $as_echo "no" >&6; }
16402 elif test $build != $host && test $have_gcc_for_target = yes; then
16403 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16404 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16405 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16408 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16409 # Extract the first word of "readelf", so it can be a program name with args.
16410 set dummy readelf; ac_word=$2
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16412 $as_echo_n "checking for $ac_word... " >&6; }
16413 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16414 $as_echo_n "(cached) " >&6
16415 else
16416 case $READELF_FOR_TARGET in
16417 [\\/]* | ?:[\\/]*)
16418 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16422 for as_dir in $gcc_cv_tool_dirs
16424 IFS=$as_save_IFS
16425 test -z "$as_dir" && as_dir=.
16426 for ac_exec_ext in '' $ac_executable_extensions; do
16427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16428 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16430 break 2
16432 done
16433 done
16434 IFS=$as_save_IFS
16437 esac
16439 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16440 if test -n "$READELF_FOR_TARGET"; then
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16442 $as_echo "$READELF_FOR_TARGET" >&6; }
16443 else
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445 $as_echo "no" >&6; }
16450 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16453 if test -n "$READELF_FOR_TARGET"; then
16454 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16455 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16456 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16459 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16460 for ncn_progname in readelf; do
16461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16462 set dummy ${ncn_progname}; ac_word=$2
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16464 $as_echo_n "checking for $ac_word... " >&6; }
16465 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16466 $as_echo_n "(cached) " >&6
16467 else
16468 if test -n "$READELF_FOR_TARGET"; then
16469 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16470 else
16471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16472 for as_dir in $PATH
16474 IFS=$as_save_IFS
16475 test -z "$as_dir" && as_dir=.
16476 for ac_exec_ext in '' $ac_executable_extensions; do
16477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16478 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16480 break 2
16482 done
16483 done
16484 IFS=$as_save_IFS
16488 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16489 if test -n "$READELF_FOR_TARGET"; then
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16491 $as_echo "$READELF_FOR_TARGET" >&6; }
16492 else
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16494 $as_echo "no" >&6; }
16498 done
16501 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16502 for ncn_progname in readelf; do
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16504 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16505 if test -x $with_build_time_tools/${ncn_progname}; then
16506 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16508 $as_echo "yes" >&6; }
16509 break
16510 else
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16512 $as_echo "no" >&6; }
16514 done
16517 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16518 for ncn_progname in readelf; do
16519 if test -n "$ncn_target_tool_prefix"; then
16520 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16521 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16523 $as_echo_n "checking for $ac_word... " >&6; }
16524 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16525 $as_echo_n "(cached) " >&6
16526 else
16527 if test -n "$READELF_FOR_TARGET"; then
16528 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16529 else
16530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16531 for as_dir in $PATH
16533 IFS=$as_save_IFS
16534 test -z "$as_dir" && as_dir=.
16535 for ac_exec_ext in '' $ac_executable_extensions; do
16536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16537 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16539 break 2
16541 done
16542 done
16543 IFS=$as_save_IFS
16547 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16548 if test -n "$READELF_FOR_TARGET"; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16550 $as_echo "$READELF_FOR_TARGET" >&6; }
16551 else
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16553 $as_echo "no" >&6; }
16558 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16560 set dummy ${ncn_progname}; ac_word=$2
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16562 $as_echo_n "checking for $ac_word... " >&6; }
16563 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16564 $as_echo_n "(cached) " >&6
16565 else
16566 if test -n "$READELF_FOR_TARGET"; then
16567 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16568 else
16569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16570 for as_dir in $PATH
16572 IFS=$as_save_IFS
16573 test -z "$as_dir" && as_dir=.
16574 for ac_exec_ext in '' $ac_executable_extensions; do
16575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16576 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16578 break 2
16580 done
16581 done
16582 IFS=$as_save_IFS
16586 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16587 if test -n "$READELF_FOR_TARGET"; then
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16589 $as_echo "$READELF_FOR_TARGET" >&6; }
16590 else
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16592 $as_echo "no" >&6; }
16597 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16598 done
16601 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16602 set dummy readelf
16603 if test $build = $target ; then
16604 READELF_FOR_TARGET="$2"
16605 else
16606 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16608 else
16609 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16612 else
16613 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16619 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16620 if test -n "$with_build_time_tools"; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16622 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16623 if test -x $with_build_time_tools/strip; then
16624 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16625 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16627 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16628 else
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16630 $as_echo "no" >&6; }
16632 elif test $build != $host && test $have_gcc_for_target = yes; then
16633 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16634 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16635 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16638 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16639 # Extract the first word of "strip", so it can be a program name with args.
16640 set dummy strip; ac_word=$2
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16642 $as_echo_n "checking for $ac_word... " >&6; }
16643 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16644 $as_echo_n "(cached) " >&6
16645 else
16646 case $STRIP_FOR_TARGET in
16647 [\\/]* | ?:[\\/]*)
16648 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16652 for as_dir in $gcc_cv_tool_dirs
16654 IFS=$as_save_IFS
16655 test -z "$as_dir" && as_dir=.
16656 for ac_exec_ext in '' $ac_executable_extensions; do
16657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16658 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16660 break 2
16662 done
16663 done
16664 IFS=$as_save_IFS
16667 esac
16669 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16670 if test -n "$STRIP_FOR_TARGET"; then
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16672 $as_echo "$STRIP_FOR_TARGET" >&6; }
16673 else
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16675 $as_echo "no" >&6; }
16680 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16683 if test -n "$STRIP_FOR_TARGET"; then
16684 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16685 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16686 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16689 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16690 for ncn_progname in strip; do
16691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16692 set dummy ${ncn_progname}; ac_word=$2
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16694 $as_echo_n "checking for $ac_word... " >&6; }
16695 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16696 $as_echo_n "(cached) " >&6
16697 else
16698 if test -n "$STRIP_FOR_TARGET"; then
16699 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16700 else
16701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16702 for as_dir in $PATH
16704 IFS=$as_save_IFS
16705 test -z "$as_dir" && as_dir=.
16706 for ac_exec_ext in '' $ac_executable_extensions; do
16707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16708 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16710 break 2
16712 done
16713 done
16714 IFS=$as_save_IFS
16718 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16719 if test -n "$STRIP_FOR_TARGET"; then
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16721 $as_echo "$STRIP_FOR_TARGET" >&6; }
16722 else
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16724 $as_echo "no" >&6; }
16728 done
16731 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16732 for ncn_progname in strip; do
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16734 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16735 if test -x $with_build_time_tools/${ncn_progname}; then
16736 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16738 $as_echo "yes" >&6; }
16739 break
16740 else
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16742 $as_echo "no" >&6; }
16744 done
16747 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16748 for ncn_progname in strip; do
16749 if test -n "$ncn_target_tool_prefix"; then
16750 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16751 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16753 $as_echo_n "checking for $ac_word... " >&6; }
16754 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16755 $as_echo_n "(cached) " >&6
16756 else
16757 if test -n "$STRIP_FOR_TARGET"; then
16758 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16759 else
16760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16761 for as_dir in $PATH
16763 IFS=$as_save_IFS
16764 test -z "$as_dir" && as_dir=.
16765 for ac_exec_ext in '' $ac_executable_extensions; do
16766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16767 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16769 break 2
16771 done
16772 done
16773 IFS=$as_save_IFS
16777 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16778 if test -n "$STRIP_FOR_TARGET"; then
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16780 $as_echo "$STRIP_FOR_TARGET" >&6; }
16781 else
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16783 $as_echo "no" >&6; }
16788 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16790 set dummy ${ncn_progname}; ac_word=$2
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16792 $as_echo_n "checking for $ac_word... " >&6; }
16793 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16794 $as_echo_n "(cached) " >&6
16795 else
16796 if test -n "$STRIP_FOR_TARGET"; then
16797 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16798 else
16799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16800 for as_dir in $PATH
16802 IFS=$as_save_IFS
16803 test -z "$as_dir" && as_dir=.
16804 for ac_exec_ext in '' $ac_executable_extensions; do
16805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16806 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16808 break 2
16810 done
16811 done
16812 IFS=$as_save_IFS
16816 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16817 if test -n "$STRIP_FOR_TARGET"; then
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16819 $as_echo "$STRIP_FOR_TARGET" >&6; }
16820 else
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16822 $as_echo "no" >&6; }
16827 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16828 done
16831 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16832 set dummy strip
16833 if test $build = $target ; then
16834 STRIP_FOR_TARGET="$2"
16835 else
16836 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16838 else
16839 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16842 else
16843 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16849 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16850 if test -n "$with_build_time_tools"; then
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16852 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16853 if test -x $with_build_time_tools/windres; then
16854 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16855 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16857 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16858 else
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16860 $as_echo "no" >&6; }
16862 elif test $build != $host && test $have_gcc_for_target = yes; then
16863 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16864 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16865 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16868 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16869 # Extract the first word of "windres", so it can be a program name with args.
16870 set dummy windres; ac_word=$2
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16872 $as_echo_n "checking for $ac_word... " >&6; }
16873 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16874 $as_echo_n "(cached) " >&6
16875 else
16876 case $WINDRES_FOR_TARGET in
16877 [\\/]* | ?:[\\/]*)
16878 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16882 for as_dir in $gcc_cv_tool_dirs
16884 IFS=$as_save_IFS
16885 test -z "$as_dir" && as_dir=.
16886 for ac_exec_ext in '' $ac_executable_extensions; do
16887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16888 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16890 break 2
16892 done
16893 done
16894 IFS=$as_save_IFS
16897 esac
16899 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16900 if test -n "$WINDRES_FOR_TARGET"; then
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16902 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16903 else
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16905 $as_echo "no" >&6; }
16910 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16913 if test -n "$WINDRES_FOR_TARGET"; then
16914 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16915 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16916 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16919 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16920 for ncn_progname in windres; do
16921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16922 set dummy ${ncn_progname}; ac_word=$2
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16924 $as_echo_n "checking for $ac_word... " >&6; }
16925 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16926 $as_echo_n "(cached) " >&6
16927 else
16928 if test -n "$WINDRES_FOR_TARGET"; then
16929 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16930 else
16931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16932 for as_dir in $PATH
16934 IFS=$as_save_IFS
16935 test -z "$as_dir" && as_dir=.
16936 for ac_exec_ext in '' $ac_executable_extensions; do
16937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16938 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16940 break 2
16942 done
16943 done
16944 IFS=$as_save_IFS
16948 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16949 if test -n "$WINDRES_FOR_TARGET"; then
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16951 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16952 else
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16954 $as_echo "no" >&6; }
16958 done
16961 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16962 for ncn_progname in windres; do
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16964 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16965 if test -x $with_build_time_tools/${ncn_progname}; then
16966 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16968 $as_echo "yes" >&6; }
16969 break
16970 else
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16972 $as_echo "no" >&6; }
16974 done
16977 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16978 for ncn_progname in windres; do
16979 if test -n "$ncn_target_tool_prefix"; then
16980 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16981 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16983 $as_echo_n "checking for $ac_word... " >&6; }
16984 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16985 $as_echo_n "(cached) " >&6
16986 else
16987 if test -n "$WINDRES_FOR_TARGET"; then
16988 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16989 else
16990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16991 for as_dir in $PATH
16993 IFS=$as_save_IFS
16994 test -z "$as_dir" && as_dir=.
16995 for ac_exec_ext in '' $ac_executable_extensions; do
16996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16997 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16999 break 2
17001 done
17002 done
17003 IFS=$as_save_IFS
17007 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17008 if test -n "$WINDRES_FOR_TARGET"; then
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17010 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17011 else
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17013 $as_echo "no" >&6; }
17018 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17020 set dummy ${ncn_progname}; ac_word=$2
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17022 $as_echo_n "checking for $ac_word... " >&6; }
17023 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17024 $as_echo_n "(cached) " >&6
17025 else
17026 if test -n "$WINDRES_FOR_TARGET"; then
17027 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17028 else
17029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17030 for as_dir in $PATH
17032 IFS=$as_save_IFS
17033 test -z "$as_dir" && as_dir=.
17034 for ac_exec_ext in '' $ac_executable_extensions; do
17035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17036 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17038 break 2
17040 done
17041 done
17042 IFS=$as_save_IFS
17046 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17047 if test -n "$WINDRES_FOR_TARGET"; then
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17049 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17050 else
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17052 $as_echo "no" >&6; }
17057 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17058 done
17061 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17062 set dummy windres
17063 if test $build = $target ; then
17064 WINDRES_FOR_TARGET="$2"
17065 else
17066 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17068 else
17069 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17072 else
17073 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17079 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17080 if test -n "$with_build_time_tools"; then
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17082 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17083 if test -x $with_build_time_tools/windmc; then
17084 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17085 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17087 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17088 else
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17090 $as_echo "no" >&6; }
17092 elif test $build != $host && test $have_gcc_for_target = yes; then
17093 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17094 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17095 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17098 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17099 # Extract the first word of "windmc", so it can be a program name with args.
17100 set dummy windmc; ac_word=$2
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17102 $as_echo_n "checking for $ac_word... " >&6; }
17103 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17104 $as_echo_n "(cached) " >&6
17105 else
17106 case $WINDMC_FOR_TARGET in
17107 [\\/]* | ?:[\\/]*)
17108 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17112 for as_dir in $gcc_cv_tool_dirs
17114 IFS=$as_save_IFS
17115 test -z "$as_dir" && as_dir=.
17116 for ac_exec_ext in '' $ac_executable_extensions; do
17117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17118 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17120 break 2
17122 done
17123 done
17124 IFS=$as_save_IFS
17127 esac
17129 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17130 if test -n "$WINDMC_FOR_TARGET"; then
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17132 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17133 else
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17135 $as_echo "no" >&6; }
17140 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17143 if test -n "$WINDMC_FOR_TARGET"; then
17144 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17145 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17146 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17149 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17150 for ncn_progname in windmc; do
17151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17152 set dummy ${ncn_progname}; ac_word=$2
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17154 $as_echo_n "checking for $ac_word... " >&6; }
17155 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17156 $as_echo_n "(cached) " >&6
17157 else
17158 if test -n "$WINDMC_FOR_TARGET"; then
17159 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17160 else
17161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17162 for as_dir in $PATH
17164 IFS=$as_save_IFS
17165 test -z "$as_dir" && as_dir=.
17166 for ac_exec_ext in '' $ac_executable_extensions; do
17167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17168 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17170 break 2
17172 done
17173 done
17174 IFS=$as_save_IFS
17178 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17179 if test -n "$WINDMC_FOR_TARGET"; then
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17181 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17182 else
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17184 $as_echo "no" >&6; }
17188 done
17191 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17192 for ncn_progname in windmc; do
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17194 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17195 if test -x $with_build_time_tools/${ncn_progname}; then
17196 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17198 $as_echo "yes" >&6; }
17199 break
17200 else
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17202 $as_echo "no" >&6; }
17204 done
17207 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17208 for ncn_progname in windmc; do
17209 if test -n "$ncn_target_tool_prefix"; then
17210 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17211 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17213 $as_echo_n "checking for $ac_word... " >&6; }
17214 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17215 $as_echo_n "(cached) " >&6
17216 else
17217 if test -n "$WINDMC_FOR_TARGET"; then
17218 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17219 else
17220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17221 for as_dir in $PATH
17223 IFS=$as_save_IFS
17224 test -z "$as_dir" && as_dir=.
17225 for ac_exec_ext in '' $ac_executable_extensions; do
17226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17227 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17229 break 2
17231 done
17232 done
17233 IFS=$as_save_IFS
17237 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17238 if test -n "$WINDMC_FOR_TARGET"; then
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17240 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17241 else
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17243 $as_echo "no" >&6; }
17248 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17250 set dummy ${ncn_progname}; ac_word=$2
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17252 $as_echo_n "checking for $ac_word... " >&6; }
17253 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17254 $as_echo_n "(cached) " >&6
17255 else
17256 if test -n "$WINDMC_FOR_TARGET"; then
17257 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17258 else
17259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17260 for as_dir in $PATH
17262 IFS=$as_save_IFS
17263 test -z "$as_dir" && as_dir=.
17264 for ac_exec_ext in '' $ac_executable_extensions; do
17265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17266 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17268 break 2
17270 done
17271 done
17272 IFS=$as_save_IFS
17276 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17277 if test -n "$WINDMC_FOR_TARGET"; then
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17279 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17280 else
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17282 $as_echo "no" >&6; }
17287 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17288 done
17291 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17292 set dummy windmc
17293 if test $build = $target ; then
17294 WINDMC_FOR_TARGET="$2"
17295 else
17296 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17298 else
17299 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17302 else
17303 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17307 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17310 $as_echo_n "checking where to find the target ar... " >&6; }
17311 if test "x${build}" != "x${host}" ; then
17312 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17313 # We already found the complete path
17314 ac_dir=`dirname $AR_FOR_TARGET`
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17316 $as_echo "pre-installed in $ac_dir" >&6; }
17317 else
17318 # Canadian cross, just use what we found
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17320 $as_echo "pre-installed" >&6; }
17322 else
17323 ok=yes
17324 case " ${configdirs} " in
17325 *" binutils "*) ;;
17326 *) ok=no ;;
17327 esac
17329 if test $ok = yes; then
17330 # An in-tree tool is available and we can use it
17331 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17333 $as_echo "just compiled" >&6; }
17334 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17335 # We already found the complete path
17336 ac_dir=`dirname $AR_FOR_TARGET`
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17338 $as_echo "pre-installed in $ac_dir" >&6; }
17339 elif test "x$target" = "x$host"; then
17340 # We can use an host tool
17341 AR_FOR_TARGET='$(AR)'
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17343 $as_echo "host tool" >&6; }
17344 else
17345 # We need a cross tool
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17347 $as_echo "pre-installed" >&6; }
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17352 $as_echo_n "checking where to find the target as... " >&6; }
17353 if test "x${build}" != "x${host}" ; then
17354 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17355 # We already found the complete path
17356 ac_dir=`dirname $AS_FOR_TARGET`
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17358 $as_echo "pre-installed in $ac_dir" >&6; }
17359 else
17360 # Canadian cross, just use what we found
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17362 $as_echo "pre-installed" >&6; }
17364 else
17365 ok=yes
17366 case " ${configdirs} " in
17367 *" gas "*) ;;
17368 *) ok=no ;;
17369 esac
17371 if test $ok = yes; then
17372 # An in-tree tool is available and we can use it
17373 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17375 $as_echo "just compiled" >&6; }
17376 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17377 # We already found the complete path
17378 ac_dir=`dirname $AS_FOR_TARGET`
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17380 $as_echo "pre-installed in $ac_dir" >&6; }
17381 elif test "x$target" = "x$host"; then
17382 # We can use an host tool
17383 AS_FOR_TARGET='$(AS)'
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17385 $as_echo "host tool" >&6; }
17386 else
17387 # We need a cross tool
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17389 $as_echo "pre-installed" >&6; }
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17394 $as_echo_n "checking where to find the target cc... " >&6; }
17395 if test "x${build}" != "x${host}" ; then
17396 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17397 # We already found the complete path
17398 ac_dir=`dirname $CC_FOR_TARGET`
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17400 $as_echo "pre-installed in $ac_dir" >&6; }
17401 else
17402 # Canadian cross, just use what we found
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17404 $as_echo "pre-installed" >&6; }
17406 else
17407 ok=yes
17408 case " ${configdirs} " in
17409 *" gcc "*) ;;
17410 *) ok=no ;;
17411 esac
17413 if test $ok = yes; then
17414 # An in-tree tool is available and we can use it
17415 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17417 $as_echo "just compiled" >&6; }
17418 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17419 # We already found the complete path
17420 ac_dir=`dirname $CC_FOR_TARGET`
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17422 $as_echo "pre-installed in $ac_dir" >&6; }
17423 elif test "x$target" = "x$host"; then
17424 # We can use an host tool
17425 CC_FOR_TARGET='$(CC)'
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17427 $as_echo "host tool" >&6; }
17428 else
17429 # We need a cross tool
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17431 $as_echo "pre-installed" >&6; }
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17436 $as_echo_n "checking where to find the target c++... " >&6; }
17437 if test "x${build}" != "x${host}" ; then
17438 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17439 # We already found the complete path
17440 ac_dir=`dirname $CXX_FOR_TARGET`
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17442 $as_echo "pre-installed in $ac_dir" >&6; }
17443 else
17444 # Canadian cross, just use what we found
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17446 $as_echo "pre-installed" >&6; }
17448 else
17449 ok=yes
17450 case " ${configdirs} " in
17451 *" gcc "*) ;;
17452 *) ok=no ;;
17453 esac
17454 case ,${enable_languages}, in
17455 *,c++,*) ;;
17456 *) ok=no ;;
17457 esac
17458 if test $ok = yes; then
17459 # An in-tree tool is available and we can use it
17460 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'
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17462 $as_echo "just compiled" >&6; }
17463 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17464 # We already found the complete path
17465 ac_dir=`dirname $CXX_FOR_TARGET`
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17467 $as_echo "pre-installed in $ac_dir" >&6; }
17468 elif test "x$target" = "x$host"; then
17469 # We can use an host tool
17470 CXX_FOR_TARGET='$(CXX)'
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17472 $as_echo "host tool" >&6; }
17473 else
17474 # We need a cross tool
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17476 $as_echo "pre-installed" >&6; }
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17481 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17482 if test "x${build}" != "x${host}" ; then
17483 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17484 # We already found the complete path
17485 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17487 $as_echo "pre-installed in $ac_dir" >&6; }
17488 else
17489 # Canadian cross, just use what we found
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17491 $as_echo "pre-installed" >&6; }
17493 else
17494 ok=yes
17495 case " ${configdirs} " in
17496 *" gcc "*) ;;
17497 *) ok=no ;;
17498 esac
17499 case ,${enable_languages}, in
17500 *,c++,*) ;;
17501 *) ok=no ;;
17502 esac
17503 if test $ok = yes; then
17504 # An in-tree tool is available and we can use it
17505 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'
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17507 $as_echo "just compiled" >&6; }
17508 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17509 # We already found the complete path
17510 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17512 $as_echo "pre-installed in $ac_dir" >&6; }
17513 elif test "x$target" = "x$host"; then
17514 # We can use an host tool
17515 RAW_CXX_FOR_TARGET='$(CXX)'
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17517 $as_echo "host tool" >&6; }
17518 else
17519 # We need a cross tool
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17521 $as_echo "pre-installed" >&6; }
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17526 $as_echo_n "checking where to find the target dlltool... " >&6; }
17527 if test "x${build}" != "x${host}" ; then
17528 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17529 # We already found the complete path
17530 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17532 $as_echo "pre-installed in $ac_dir" >&6; }
17533 else
17534 # Canadian cross, just use what we found
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17536 $as_echo "pre-installed" >&6; }
17538 else
17539 ok=yes
17540 case " ${configdirs} " in
17541 *" binutils "*) ;;
17542 *) ok=no ;;
17543 esac
17545 if test $ok = yes; then
17546 # An in-tree tool is available and we can use it
17547 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17549 $as_echo "just compiled" >&6; }
17550 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17551 # We already found the complete path
17552 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17554 $as_echo "pre-installed in $ac_dir" >&6; }
17555 elif test "x$target" = "x$host"; then
17556 # We can use an host tool
17557 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17559 $as_echo "host tool" >&6; }
17560 else
17561 # We need a cross tool
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17563 $as_echo "pre-installed" >&6; }
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17568 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17569 if test "x${build}" != "x${host}" ; then
17570 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17571 # We already found the complete path
17572 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17574 $as_echo "pre-installed in $ac_dir" >&6; }
17575 else
17576 # Canadian cross, just use what we found
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17578 $as_echo "pre-installed" >&6; }
17580 else
17581 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17582 # We already found the complete path
17583 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17585 $as_echo "pre-installed in $ac_dir" >&6; }
17586 elif test "x$target" = "x$host"; then
17587 # We can use an host tool
17588 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17590 $as_echo "host tool" >&6; }
17591 else
17592 # We need a cross tool
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17594 $as_echo "pre-installed" >&6; }
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17599 $as_echo_n "checking where to find the target gcc... " >&6; }
17600 if test "x${build}" != "x${host}" ; then
17601 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17602 # We already found the complete path
17603 ac_dir=`dirname $GCC_FOR_TARGET`
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17605 $as_echo "pre-installed in $ac_dir" >&6; }
17606 else
17607 # Canadian cross, just use what we found
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17609 $as_echo "pre-installed" >&6; }
17611 else
17612 ok=yes
17613 case " ${configdirs} " in
17614 *" gcc "*) ;;
17615 *) ok=no ;;
17616 esac
17618 if test $ok = yes; then
17619 # An in-tree tool is available and we can use it
17620 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17622 $as_echo "just compiled" >&6; }
17623 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17624 # We already found the complete path
17625 ac_dir=`dirname $GCC_FOR_TARGET`
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17627 $as_echo "pre-installed in $ac_dir" >&6; }
17628 elif test "x$target" = "x$host"; then
17629 # We can use an host tool
17630 GCC_FOR_TARGET='$()'
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17632 $as_echo "host tool" >&6; }
17633 else
17634 # We need a cross tool
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17636 $as_echo "pre-installed" >&6; }
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17641 $as_echo_n "checking where to find the target gfortran... " >&6; }
17642 if test "x${build}" != "x${host}" ; then
17643 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17644 # We already found the complete path
17645 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17647 $as_echo "pre-installed in $ac_dir" >&6; }
17648 else
17649 # Canadian cross, just use what we found
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17651 $as_echo "pre-installed" >&6; }
17653 else
17654 ok=yes
17655 case " ${configdirs} " in
17656 *" gcc "*) ;;
17657 *) ok=no ;;
17658 esac
17659 case ,${enable_languages}, in
17660 *,fortran,*) ;;
17661 *) ok=no ;;
17662 esac
17663 if test $ok = yes; then
17664 # An in-tree tool is available and we can use it
17665 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17667 $as_echo "just compiled" >&6; }
17668 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17669 # We already found the complete path
17670 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17672 $as_echo "pre-installed in $ac_dir" >&6; }
17673 elif test "x$target" = "x$host"; then
17674 # We can use an host tool
17675 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17677 $as_echo "host tool" >&6; }
17678 else
17679 # We need a cross tool
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17681 $as_echo "pre-installed" >&6; }
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17686 $as_echo_n "checking where to find the target gccgo... " >&6; }
17687 if test "x${build}" != "x${host}" ; then
17688 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17689 # We already found the complete path
17690 ac_dir=`dirname $GOC_FOR_TARGET`
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17692 $as_echo "pre-installed in $ac_dir" >&6; }
17693 else
17694 # Canadian cross, just use what we found
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17696 $as_echo "pre-installed" >&6; }
17698 else
17699 ok=yes
17700 case " ${configdirs} " in
17701 *" gcc "*) ;;
17702 *) ok=no ;;
17703 esac
17704 case ,${enable_languages}, in
17705 *,go,*) ;;
17706 *) ok=no ;;
17707 esac
17708 if test $ok = yes; then
17709 # An in-tree tool is available and we can use it
17710 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17712 $as_echo "just compiled" >&6; }
17713 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17714 # We already found the complete path
17715 ac_dir=`dirname $GOC_FOR_TARGET`
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17717 $as_echo "pre-installed in $ac_dir" >&6; }
17718 elif test "x$target" = "x$host"; then
17719 # We can use an host tool
17720 GOC_FOR_TARGET='$(GOC)'
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17722 $as_echo "host tool" >&6; }
17723 else
17724 # We need a cross tool
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17726 $as_echo "pre-installed" >&6; }
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17731 $as_echo_n "checking where to find the target gdc... " >&6; }
17732 if test "x${build}" != "x${host}" ; then
17733 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17734 # We already found the complete path
17735 ac_dir=`dirname $GDC_FOR_TARGET`
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17737 $as_echo "pre-installed in $ac_dir" >&6; }
17738 else
17739 # Canadian cross, just use what we found
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17741 $as_echo "pre-installed" >&6; }
17743 else
17744 ok=yes
17745 case " ${configdirs} " in
17746 *" gcc "*) ;;
17747 *) ok=no ;;
17748 esac
17749 case ,${enable_languages}, in
17750 *,d,*) ;;
17751 *) ok=no ;;
17752 esac
17753 if test $ok = yes; then
17754 # An in-tree tool is available and we can use it
17755 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17757 $as_echo "just compiled" >&6; }
17758 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17759 # We already found the complete path
17760 ac_dir=`dirname $GDC_FOR_TARGET`
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17762 $as_echo "pre-installed in $ac_dir" >&6; }
17763 elif test "x$target" = "x$host"; then
17764 # We can use an host tool
17765 GDC_FOR_TARGET='$(GDC)'
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17767 $as_echo "host tool" >&6; }
17768 else
17769 # We need a cross tool
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17771 $as_echo "pre-installed" >&6; }
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17776 $as_echo_n "checking where to find the target ld... " >&6; }
17777 if test "x${build}" != "x${host}" ; then
17778 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17779 # We already found the complete path
17780 ac_dir=`dirname $LD_FOR_TARGET`
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17782 $as_echo "pre-installed in $ac_dir" >&6; }
17783 else
17784 # Canadian cross, just use what we found
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17786 $as_echo "pre-installed" >&6; }
17788 else
17789 ok=yes
17790 case " ${configdirs} " in
17791 *" ld "*) ;;
17792 *) ok=no ;;
17793 esac
17795 if test $ok = yes; then
17796 # An in-tree tool is available and we can use it
17797 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17799 $as_echo "just compiled" >&6; }
17800 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17801 # We already found the complete path
17802 ac_dir=`dirname $LD_FOR_TARGET`
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17804 $as_echo "pre-installed in $ac_dir" >&6; }
17805 elif test "x$target" = "x$host"; then
17806 # We can use an host tool
17807 LD_FOR_TARGET='$(LD)'
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17809 $as_echo "host tool" >&6; }
17810 else
17811 # We need a cross tool
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17813 $as_echo "pre-installed" >&6; }
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17818 $as_echo_n "checking where to find the target lipo... " >&6; }
17819 if test "x${build}" != "x${host}" ; then
17820 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17821 # We already found the complete path
17822 ac_dir=`dirname $LIPO_FOR_TARGET`
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17824 $as_echo "pre-installed in $ac_dir" >&6; }
17825 else
17826 # Canadian cross, just use what we found
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17828 $as_echo "pre-installed" >&6; }
17830 else
17831 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17832 # We already found the complete path
17833 ac_dir=`dirname $LIPO_FOR_TARGET`
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17835 $as_echo "pre-installed in $ac_dir" >&6; }
17836 elif test "x$target" = "x$host"; then
17837 # We can use an host tool
17838 LIPO_FOR_TARGET='$(LIPO)'
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17840 $as_echo "host tool" >&6; }
17841 else
17842 # We need a cross tool
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17844 $as_echo "pre-installed" >&6; }
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17849 $as_echo_n "checking where to find the target nm... " >&6; }
17850 if test "x${build}" != "x${host}" ; then
17851 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17852 # We already found the complete path
17853 ac_dir=`dirname $NM_FOR_TARGET`
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17855 $as_echo "pre-installed in $ac_dir" >&6; }
17856 else
17857 # Canadian cross, just use what we found
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17859 $as_echo "pre-installed" >&6; }
17861 else
17862 ok=yes
17863 case " ${configdirs} " in
17864 *" binutils "*) ;;
17865 *) ok=no ;;
17866 esac
17868 if test $ok = yes; then
17869 # An in-tree tool is available and we can use it
17870 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17872 $as_echo "just compiled" >&6; }
17873 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17874 # We already found the complete path
17875 ac_dir=`dirname $NM_FOR_TARGET`
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17877 $as_echo "pre-installed in $ac_dir" >&6; }
17878 elif test "x$target" = "x$host"; then
17879 # We can use an host tool
17880 NM_FOR_TARGET='$(NM)'
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17882 $as_echo "host tool" >&6; }
17883 else
17884 # We need a cross tool
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17886 $as_echo "pre-installed" >&6; }
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17891 $as_echo_n "checking where to find the target objcopy... " >&6; }
17892 if test "x${build}" != "x${host}" ; then
17893 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17894 # We already found the complete path
17895 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17897 $as_echo "pre-installed in $ac_dir" >&6; }
17898 else
17899 # Canadian cross, just use what we found
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17901 $as_echo "pre-installed" >&6; }
17903 else
17904 ok=yes
17905 case " ${configdirs} " in
17906 *" binutils "*) ;;
17907 *) ok=no ;;
17908 esac
17910 if test $ok = yes; then
17911 # An in-tree tool is available and we can use it
17912 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17914 $as_echo "just compiled" >&6; }
17915 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17916 # We already found the complete path
17917 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17919 $as_echo "pre-installed in $ac_dir" >&6; }
17920 elif test "x$target" = "x$host"; then
17921 # We can use an host tool
17922 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17924 $as_echo "host tool" >&6; }
17925 else
17926 # We need a cross tool
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17928 $as_echo "pre-installed" >&6; }
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17933 $as_echo_n "checking where to find the target objdump... " >&6; }
17934 if test "x${build}" != "x${host}" ; then
17935 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17936 # We already found the complete path
17937 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17939 $as_echo "pre-installed in $ac_dir" >&6; }
17940 else
17941 # Canadian cross, just use what we found
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17943 $as_echo "pre-installed" >&6; }
17945 else
17946 ok=yes
17947 case " ${configdirs} " in
17948 *" binutils "*) ;;
17949 *) ok=no ;;
17950 esac
17952 if test $ok = yes; then
17953 # An in-tree tool is available and we can use it
17954 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17956 $as_echo "just compiled" >&6; }
17957 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17958 # We already found the complete path
17959 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17961 $as_echo "pre-installed in $ac_dir" >&6; }
17962 elif test "x$target" = "x$host"; then
17963 # We can use an host tool
17964 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17966 $as_echo "host tool" >&6; }
17967 else
17968 # We need a cross tool
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17970 $as_echo "pre-installed" >&6; }
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17975 $as_echo_n "checking where to find the target otool... " >&6; }
17976 if test "x${build}" != "x${host}" ; then
17977 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17978 # We already found the complete path
17979 ac_dir=`dirname $OTOOL_FOR_TARGET`
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17981 $as_echo "pre-installed in $ac_dir" >&6; }
17982 else
17983 # Canadian cross, just use what we found
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17985 $as_echo "pre-installed" >&6; }
17987 else
17988 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17989 # We already found the complete path
17990 ac_dir=`dirname $OTOOL_FOR_TARGET`
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17992 $as_echo "pre-installed in $ac_dir" >&6; }
17993 elif test "x$target" = "x$host"; then
17994 # We can use an host tool
17995 OTOOL_FOR_TARGET='$(OTOOL)'
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17997 $as_echo "host tool" >&6; }
17998 else
17999 # We need a cross tool
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18001 $as_echo "pre-installed" >&6; }
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18006 $as_echo_n "checking where to find the target ranlib... " >&6; }
18007 if test "x${build}" != "x${host}" ; then
18008 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18009 # We already found the complete path
18010 ac_dir=`dirname $RANLIB_FOR_TARGET`
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18012 $as_echo "pre-installed in $ac_dir" >&6; }
18013 else
18014 # Canadian cross, just use what we found
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18016 $as_echo "pre-installed" >&6; }
18018 else
18019 ok=yes
18020 case " ${configdirs} " in
18021 *" binutils "*) ;;
18022 *) ok=no ;;
18023 esac
18025 if test $ok = yes; then
18026 # An in-tree tool is available and we can use it
18027 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18029 $as_echo "just compiled" >&6; }
18030 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18031 # We already found the complete path
18032 ac_dir=`dirname $RANLIB_FOR_TARGET`
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18034 $as_echo "pre-installed in $ac_dir" >&6; }
18035 elif test "x$target" = "x$host"; then
18036 # We can use an host tool
18037 RANLIB_FOR_TARGET='$(RANLIB)'
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18039 $as_echo "host tool" >&6; }
18040 else
18041 # We need a cross tool
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18043 $as_echo "pre-installed" >&6; }
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18048 $as_echo_n "checking where to find the target readelf... " >&6; }
18049 if test "x${build}" != "x${host}" ; then
18050 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18051 # We already found the complete path
18052 ac_dir=`dirname $READELF_FOR_TARGET`
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18054 $as_echo "pre-installed in $ac_dir" >&6; }
18055 else
18056 # Canadian cross, just use what we found
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18058 $as_echo "pre-installed" >&6; }
18060 else
18061 ok=yes
18062 case " ${configdirs} " in
18063 *" binutils "*) ;;
18064 *) ok=no ;;
18065 esac
18067 if test $ok = yes; then
18068 # An in-tree tool is available and we can use it
18069 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18071 $as_echo "just compiled" >&6; }
18072 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18073 # We already found the complete path
18074 ac_dir=`dirname $READELF_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 elif test "x$target" = "x$host"; then
18078 # We can use an host tool
18079 READELF_FOR_TARGET='$(READELF)'
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18081 $as_echo "host tool" >&6; }
18082 else
18083 # We need a cross tool
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18085 $as_echo "pre-installed" >&6; }
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18090 $as_echo_n "checking where to find the target strip... " >&6; }
18091 if test "x${build}" != "x${host}" ; then
18092 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18093 # We already found the complete path
18094 ac_dir=`dirname $STRIP_FOR_TARGET`
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18096 $as_echo "pre-installed in $ac_dir" >&6; }
18097 else
18098 # Canadian cross, just use what we found
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18100 $as_echo "pre-installed" >&6; }
18102 else
18103 ok=yes
18104 case " ${configdirs} " in
18105 *" binutils "*) ;;
18106 *) ok=no ;;
18107 esac
18109 if test $ok = yes; then
18110 # An in-tree tool is available and we can use it
18111 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18113 $as_echo "just compiled" >&6; }
18114 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18115 # We already found the complete path
18116 ac_dir=`dirname $STRIP_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 elif test "x$target" = "x$host"; then
18120 # We can use an host tool
18121 STRIP_FOR_TARGET='$(STRIP)'
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18123 $as_echo "host tool" >&6; }
18124 else
18125 # We need a cross tool
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18127 $as_echo "pre-installed" >&6; }
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18132 $as_echo_n "checking where to find the target windres... " >&6; }
18133 if test "x${build}" != "x${host}" ; then
18134 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18135 # We already found the complete path
18136 ac_dir=`dirname $WINDRES_FOR_TARGET`
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18138 $as_echo "pre-installed in $ac_dir" >&6; }
18139 else
18140 # Canadian cross, just use what we found
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18142 $as_echo "pre-installed" >&6; }
18144 else
18145 ok=yes
18146 case " ${configdirs} " in
18147 *" binutils "*) ;;
18148 *) ok=no ;;
18149 esac
18151 if test $ok = yes; then
18152 # An in-tree tool is available and we can use it
18153 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18155 $as_echo "just compiled" >&6; }
18156 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18157 # We already found the complete path
18158 ac_dir=`dirname $WINDRES_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 elif test "x$target" = "x$host"; then
18162 # We can use an host tool
18163 WINDRES_FOR_TARGET='$(WINDRES)'
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18165 $as_echo "host tool" >&6; }
18166 else
18167 # We need a cross tool
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18169 $as_echo "pre-installed" >&6; }
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18174 $as_echo_n "checking where to find the target windmc... " >&6; }
18175 if test "x${build}" != "x${host}" ; then
18176 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18177 # We already found the complete path
18178 ac_dir=`dirname $WINDMC_FOR_TARGET`
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18180 $as_echo "pre-installed in $ac_dir" >&6; }
18181 else
18182 # Canadian cross, just use what we found
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18184 $as_echo "pre-installed" >&6; }
18186 else
18187 ok=yes
18188 case " ${configdirs} " in
18189 *" binutils "*) ;;
18190 *) ok=no ;;
18191 esac
18193 if test $ok = yes; then
18194 # An in-tree tool is available and we can use it
18195 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18197 $as_echo "just compiled" >&6; }
18198 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18199 # We already found the complete path
18200 ac_dir=`dirname $WINDMC_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 elif test "x$target" = "x$host"; then
18204 # We can use an host tool
18205 WINDMC_FOR_TARGET='$(WINDMC)'
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18207 $as_echo "host tool" >&6; }
18208 else
18209 # We need a cross tool
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18211 $as_echo "pre-installed" >&6; }
18219 # Certain tools may need extra flags.
18220 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18221 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18222 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18224 # When building target libraries, except in a Canadian cross, we use
18225 # the same toolchain as the compiler we just built.
18226 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18227 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18228 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18229 if test $host = $build; then
18230 case " $configdirs " in
18231 *" gcc "*)
18232 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18233 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18234 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18236 esac
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18244 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18245 # Check whether --enable-maintainer-mode was given.
18246 if test "${enable_maintainer_mode+set}" = set; then :
18247 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18248 else
18249 USE_MAINTAINER_MODE=no
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18253 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18256 if test "$USE_MAINTAINER_MODE" = yes; then
18257 MAINTAINER_MODE_TRUE=
18258 MAINTAINER_MODE_FALSE='#'
18259 else
18260 MAINTAINER_MODE_TRUE='#'
18261 MAINTAINER_MODE_FALSE=
18263 MAINT=$MAINTAINER_MODE_TRUE
18265 # ---------------------
18266 # GCC bootstrap support
18267 # ---------------------
18269 # Stage specific cflags for build.
18270 stage1_cflags="-g"
18271 case $build in
18272 vax-*-*)
18273 case ${GCC} in
18274 yes) stage1_cflags="-g -Wa,-J" ;;
18275 *) stage1_cflags="-g -J" ;;
18276 esac ;;
18277 esac
18281 # Enable --enable-checking in stage1 of the compiler.
18282 # Check whether --enable-stage1-checking was given.
18283 if test "${enable_stage1_checking+set}" = set; then :
18284 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18285 else
18286 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18287 # For --disable-checking or implicit --enable-checking=release, avoid
18288 # setting --enable-checking=gc in the default stage1 checking for LTO
18289 # bootstraps. See PR62077.
18290 case $BUILD_CONFIG in
18291 *lto*)
18292 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18294 stage1_checking=--enable-checking=yes,types;;
18295 esac
18296 if test "x$enable_checking" = x && \
18297 test -d ${srcdir}/gcc && \
18298 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18299 stage1_checking=--enable-checking=yes,types,extra
18301 else
18302 stage1_checking=--enable-checking=$enable_checking,types
18308 # Enable -Werror in bootstrap stage2 and later.
18309 # Check whether --enable-werror was given.
18310 if test "${enable_werror+set}" = set; then :
18311 enableval=$enable_werror;
18312 case ${enable_werror} in
18313 yes) stage2_werror_flag="--enable-werror-always" ;;
18314 *) stage2_werror_flag="" ;;
18315 esac
18317 else
18319 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18320 case $BUILD_CONFIG in
18321 bootstrap-debug)
18322 stage2_werror_flag="--enable-werror-always" ;;
18324 stage2_werror_flag="--enable-werror-always" ;;
18325 esac
18333 # Specify what files to not compare during bootstrap.
18335 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18336 case "$target" in
18337 hppa*64*-*-hpux*) ;;
18338 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18339 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18340 esac
18343 ac_config_files="$ac_config_files Makefile"
18345 cat >confcache <<\_ACEOF
18346 # This file is a shell script that caches the results of configure
18347 # tests run on this system so they can be shared between configure
18348 # scripts and configure runs, see configure's option --config-cache.
18349 # It is not useful on other systems. If it contains results you don't
18350 # want to keep, you may remove or edit it.
18352 # config.status only pays attention to the cache file if you give it
18353 # the --recheck option to rerun configure.
18355 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18357 # following values.
18359 _ACEOF
18361 # The following way of writing the cache mishandles newlines in values,
18362 # but we know of no workaround that is simple, portable, and efficient.
18363 # So, we kill variables containing newlines.
18364 # Ultrix sh set writes to stderr and can't be redirected directly,
18365 # and sets the high bit in the cache file unless we assign to the vars.
18367 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18368 eval ac_val=\$$ac_var
18369 case $ac_val in #(
18370 *${as_nl}*)
18371 case $ac_var in #(
18372 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18373 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18374 esac
18375 case $ac_var in #(
18376 _ | IFS | as_nl) ;; #(
18377 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18378 *) { eval $ac_var=; unset $ac_var;} ;;
18379 esac ;;
18380 esac
18381 done
18383 (set) 2>&1 |
18384 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18385 *${as_nl}ac_space=\ *)
18386 # `set' does not quote correctly, so add quotes: double-quote
18387 # substitution turns \\\\ into \\, and sed turns \\ into \.
18388 sed -n \
18389 "s/'/'\\\\''/g;
18390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18391 ;; #(
18393 # `set' quotes correctly as required by POSIX, so do not add quotes.
18394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18396 esac |
18397 sort
18399 sed '
18400 /^ac_cv_env_/b end
18401 t clear
18402 :clear
18403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18404 t end
18405 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18406 :end' >>confcache
18407 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18408 if test -w "$cache_file"; then
18409 if test "x$cache_file" != "x/dev/null"; then
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18411 $as_echo "$as_me: updating cache $cache_file" >&6;}
18412 if test ! -f "$cache_file" || test -h "$cache_file"; then
18413 cat confcache >"$cache_file"
18414 else
18415 case $cache_file in #(
18416 */* | ?:*)
18417 mv -f confcache "$cache_file"$$ &&
18418 mv -f "$cache_file"$$ "$cache_file" ;; #(
18420 mv -f confcache "$cache_file" ;;
18421 esac
18424 else
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18426 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18429 rm -f confcache
18431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18432 # Let make expand exec_prefix.
18433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18435 # Transform confdefs.h into DEFS.
18436 # Protect against shell expansion while executing Makefile rules.
18437 # Protect against Makefile macro expansion.
18439 # If the first sed substitution is executed (which looks for macros that
18440 # take arguments), then branch to the quote section. Otherwise,
18441 # look for a macro that doesn't take arguments.
18442 ac_script='
18443 :mline
18444 /\\$/{
18446 s,\\\n,,
18447 b mline
18449 t clear
18450 :clear
18451 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18452 t quote
18453 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18454 t quote
18455 b any
18456 :quote
18457 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18458 s/\[/\\&/g
18459 s/\]/\\&/g
18460 s/\$/$$/g
18462 :any
18465 s/^\n//
18466 s/\n/ /g
18470 DEFS=`sed -n "$ac_script" confdefs.h`
18473 ac_libobjs=
18474 ac_ltlibobjs=
18476 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18477 # 1. Remove the extension, and $U if already installed.
18478 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18479 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18480 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18481 # will be set to the directory where LIBOBJS objects are built.
18482 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18483 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18484 done
18485 LIBOBJS=$ac_libobjs
18487 LTLIBOBJS=$ac_ltlibobjs
18491 : "${CONFIG_STATUS=./config.status}"
18492 ac_write_fail=0
18493 ac_clean_files_save=$ac_clean_files
18494 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18496 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18497 as_write_fail=0
18498 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18499 #! $SHELL
18500 # Generated by $as_me.
18501 # Run this file to recreate the current configuration.
18502 # Compiler output produced by configure, useful for debugging
18503 # configure, is in config.log if it exists.
18505 debug=false
18506 ac_cs_recheck=false
18507 ac_cs_silent=false
18509 SHELL=\${CONFIG_SHELL-$SHELL}
18510 export SHELL
18511 _ASEOF
18512 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18513 ## -------------------- ##
18514 ## M4sh Initialization. ##
18515 ## -------------------- ##
18517 # Be more Bourne compatible
18518 DUALCASE=1; export DUALCASE # for MKS sh
18519 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18520 emulate sh
18521 NULLCMD=:
18522 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18523 # is contrary to our usage. Disable this feature.
18524 alias -g '${1+"$@"}'='"$@"'
18525 setopt NO_GLOB_SUBST
18526 else
18527 case `(set -o) 2>/dev/null` in #(
18528 *posix*) :
18529 set -o posix ;; #(
18530 *) :
18532 esac
18536 as_nl='
18538 export as_nl
18539 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18540 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18541 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18542 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18543 # Prefer a ksh shell builtin over an external printf program on Solaris,
18544 # but without wasting forks for bash or zsh.
18545 if test -z "$BASH_VERSION$ZSH_VERSION" \
18546 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18547 as_echo='print -r --'
18548 as_echo_n='print -rn --'
18549 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18550 as_echo='printf %s\n'
18551 as_echo_n='printf %s'
18552 else
18553 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18554 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18555 as_echo_n='/usr/ucb/echo -n'
18556 else
18557 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18558 as_echo_n_body='eval
18559 arg=$1;
18560 case $arg in #(
18561 *"$as_nl"*)
18562 expr "X$arg" : "X\\(.*\\)$as_nl";
18563 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18564 esac;
18565 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18567 export as_echo_n_body
18568 as_echo_n='sh -c $as_echo_n_body as_echo'
18570 export as_echo_body
18571 as_echo='sh -c $as_echo_body as_echo'
18574 # The user is always right.
18575 if test "${PATH_SEPARATOR+set}" != set; then
18576 PATH_SEPARATOR=:
18577 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18578 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18579 PATH_SEPARATOR=';'
18584 # IFS
18585 # We need space, tab and new line, in precisely that order. Quoting is
18586 # there to prevent editors from complaining about space-tab.
18587 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18588 # splitting by setting IFS to empty value.)
18589 IFS=" "" $as_nl"
18591 # Find who we are. Look in the path if we contain no directory separator.
18592 as_myself=
18593 case $0 in #((
18594 *[\\/]* ) as_myself=$0 ;;
18595 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18596 for as_dir in $PATH
18598 IFS=$as_save_IFS
18599 test -z "$as_dir" && as_dir=.
18600 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18601 done
18602 IFS=$as_save_IFS
18605 esac
18606 # We did not find ourselves, most probably we were run as `sh COMMAND'
18607 # in which case we are not to be found in the path.
18608 if test "x$as_myself" = x; then
18609 as_myself=$0
18611 if test ! -f "$as_myself"; then
18612 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18613 exit 1
18616 # Unset variables that we do not need and which cause bugs (e.g. in
18617 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18618 # suppresses any "Segmentation fault" message there. '((' could
18619 # trigger a bug in pdksh 5.2.14.
18620 for as_var in BASH_ENV ENV MAIL MAILPATH
18621 do eval test x\${$as_var+set} = xset \
18622 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18623 done
18624 PS1='$ '
18625 PS2='> '
18626 PS4='+ '
18628 # NLS nuisances.
18629 LC_ALL=C
18630 export LC_ALL
18631 LANGUAGE=C
18632 export LANGUAGE
18634 # CDPATH.
18635 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18638 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18639 # ----------------------------------------
18640 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18641 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18642 # script with STATUS, using 1 if that was 0.
18643 as_fn_error ()
18645 as_status=$1; test $as_status -eq 0 && as_status=1
18646 if test "$4"; then
18647 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18648 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18650 $as_echo "$as_me: error: $2" >&2
18651 as_fn_exit $as_status
18652 } # as_fn_error
18655 # as_fn_set_status STATUS
18656 # -----------------------
18657 # Set $? to STATUS, without forking.
18658 as_fn_set_status ()
18660 return $1
18661 } # as_fn_set_status
18663 # as_fn_exit STATUS
18664 # -----------------
18665 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18666 as_fn_exit ()
18668 set +e
18669 as_fn_set_status $1
18670 exit $1
18671 } # as_fn_exit
18673 # as_fn_unset VAR
18674 # ---------------
18675 # Portably unset VAR.
18676 as_fn_unset ()
18678 { eval $1=; unset $1;}
18680 as_unset=as_fn_unset
18681 # as_fn_append VAR VALUE
18682 # ----------------------
18683 # Append the text in VALUE to the end of the definition contained in VAR. Take
18684 # advantage of any shell optimizations that allow amortized linear growth over
18685 # repeated appends, instead of the typical quadratic growth present in naive
18686 # implementations.
18687 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18688 eval 'as_fn_append ()
18690 eval $1+=\$2
18692 else
18693 as_fn_append ()
18695 eval $1=\$$1\$2
18697 fi # as_fn_append
18699 # as_fn_arith ARG...
18700 # ------------------
18701 # Perform arithmetic evaluation on the ARGs, and store the result in the
18702 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18703 # must be portable across $(()) and expr.
18704 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18705 eval 'as_fn_arith ()
18707 as_val=$(( $* ))
18709 else
18710 as_fn_arith ()
18712 as_val=`expr "$@" || test $? -eq 1`
18714 fi # as_fn_arith
18717 if expr a : '\(a\)' >/dev/null 2>&1 &&
18718 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18719 as_expr=expr
18720 else
18721 as_expr=false
18724 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18725 as_basename=basename
18726 else
18727 as_basename=false
18730 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18731 as_dirname=dirname
18732 else
18733 as_dirname=false
18736 as_me=`$as_basename -- "$0" ||
18737 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18738 X"$0" : 'X\(//\)$' \| \
18739 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18740 $as_echo X/"$0" |
18741 sed '/^.*\/\([^/][^/]*\)\/*$/{
18742 s//\1/
18745 /^X\/\(\/\/\)$/{
18746 s//\1/
18749 /^X\/\(\/\).*/{
18750 s//\1/
18753 s/.*/./; q'`
18755 # Avoid depending upon Character Ranges.
18756 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18757 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18758 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18759 as_cr_digits='0123456789'
18760 as_cr_alnum=$as_cr_Letters$as_cr_digits
18762 ECHO_C= ECHO_N= ECHO_T=
18763 case `echo -n x` in #(((((
18764 -n*)
18765 case `echo 'xy\c'` in
18766 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18767 xy) ECHO_C='\c';;
18768 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18769 ECHO_T=' ';;
18770 esac;;
18772 ECHO_N='-n';;
18773 esac
18775 rm -f conf$$ conf$$.exe conf$$.file
18776 if test -d conf$$.dir; then
18777 rm -f conf$$.dir/conf$$.file
18778 else
18779 rm -f conf$$.dir
18780 mkdir conf$$.dir 2>/dev/null
18782 if (echo >conf$$.file) 2>/dev/null; then
18783 if ln -s conf$$.file conf$$ 2>/dev/null; then
18784 as_ln_s='ln -s'
18785 # ... but there are two gotchas:
18786 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18787 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18788 # In both cases, we have to default to `cp -pR'.
18789 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18790 as_ln_s='cp -pR'
18791 elif ln conf$$.file conf$$ 2>/dev/null; then
18792 as_ln_s=ln
18793 else
18794 as_ln_s='cp -pR'
18796 else
18797 as_ln_s='cp -pR'
18799 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18800 rmdir conf$$.dir 2>/dev/null
18803 # as_fn_mkdir_p
18804 # -------------
18805 # Create "$as_dir" as a directory, including parents if necessary.
18806 as_fn_mkdir_p ()
18809 case $as_dir in #(
18810 -*) as_dir=./$as_dir;;
18811 esac
18812 test -d "$as_dir" || eval $as_mkdir_p || {
18813 as_dirs=
18814 while :; do
18815 case $as_dir in #(
18816 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18817 *) as_qdir=$as_dir;;
18818 esac
18819 as_dirs="'$as_qdir' $as_dirs"
18820 as_dir=`$as_dirname -- "$as_dir" ||
18821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18822 X"$as_dir" : 'X\(//\)[^/]' \| \
18823 X"$as_dir" : 'X\(//\)$' \| \
18824 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18825 $as_echo X"$as_dir" |
18826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18827 s//\1/
18830 /^X\(\/\/\)[^/].*/{
18831 s//\1/
18834 /^X\(\/\/\)$/{
18835 s//\1/
18838 /^X\(\/\).*/{
18839 s//\1/
18842 s/.*/./; q'`
18843 test -d "$as_dir" && break
18844 done
18845 test -z "$as_dirs" || eval "mkdir $as_dirs"
18846 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18849 } # as_fn_mkdir_p
18850 if mkdir -p . 2>/dev/null; then
18851 as_mkdir_p='mkdir -p "$as_dir"'
18852 else
18853 test -d ./-p && rmdir ./-p
18854 as_mkdir_p=false
18858 # as_fn_executable_p FILE
18859 # -----------------------
18860 # Test if FILE is an executable regular file.
18861 as_fn_executable_p ()
18863 test -f "$1" && test -x "$1"
18864 } # as_fn_executable_p
18865 as_test_x='test -x'
18866 as_executable_p=as_fn_executable_p
18868 # Sed expression to map a string onto a valid CPP name.
18869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18871 # Sed expression to map a string onto a valid variable name.
18872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18875 exec 6>&1
18876 ## ----------------------------------- ##
18877 ## Main body of $CONFIG_STATUS script. ##
18878 ## ----------------------------------- ##
18879 _ASEOF
18880 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18883 # Save the log message, to keep $0 and so on meaningful, and to
18884 # report actual input values of CONFIG_FILES etc. instead of their
18885 # values after options handling.
18886 ac_log="
18887 This file was extended by $as_me, which was
18888 generated by GNU Autoconf 2.69. Invocation command line was
18890 CONFIG_FILES = $CONFIG_FILES
18891 CONFIG_HEADERS = $CONFIG_HEADERS
18892 CONFIG_LINKS = $CONFIG_LINKS
18893 CONFIG_COMMANDS = $CONFIG_COMMANDS
18894 $ $0 $@
18896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18899 _ACEOF
18901 case $ac_config_files in *"
18902 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18903 esac
18907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18908 # Files that config.status was made for.
18909 config_files="$ac_config_files"
18911 _ACEOF
18913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18914 ac_cs_usage="\
18915 \`$as_me' instantiates files and other configuration actions
18916 from templates according to the current configuration. Unless the files
18917 and actions are specified as TAGs, all are instantiated by default.
18919 Usage: $0 [OPTION]... [TAG]...
18921 -h, --help print this help, then exit
18922 -V, --version print version number and configuration settings, then exit
18923 --config print configuration, then exit
18924 -q, --quiet, --silent
18925 do not print progress messages
18926 -d, --debug don't remove temporary files
18927 --recheck update $as_me by reconfiguring in the same conditions
18928 --file=FILE[:TEMPLATE]
18929 instantiate the configuration file FILE
18931 Configuration files:
18932 $config_files
18934 Report bugs to the package provider."
18936 _ACEOF
18937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18938 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18939 ac_cs_version="\\
18940 config.status
18941 configured by $0, generated by GNU Autoconf 2.69,
18942 with options \\"\$ac_cs_config\\"
18944 Copyright (C) 2012 Free Software Foundation, Inc.
18945 This config.status script is free software; the Free Software Foundation
18946 gives unlimited permission to copy, distribute and modify it."
18948 ac_pwd='$ac_pwd'
18949 srcdir='$srcdir'
18950 INSTALL='$INSTALL'
18951 AWK='$AWK'
18952 test -n "\$AWK" || AWK=awk
18953 _ACEOF
18955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18956 # The default lists apply if the user does not specify any file.
18957 ac_need_defaults=:
18958 while test $# != 0
18960 case $1 in
18961 --*=?*)
18962 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18963 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18964 ac_shift=:
18966 --*=)
18967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18968 ac_optarg=
18969 ac_shift=:
18972 ac_option=$1
18973 ac_optarg=$2
18974 ac_shift=shift
18976 esac
18978 case $ac_option in
18979 # Handling of the options.
18980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18981 ac_cs_recheck=: ;;
18982 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18983 $as_echo "$ac_cs_version"; exit ;;
18984 --config | --confi | --conf | --con | --co | --c )
18985 $as_echo "$ac_cs_config"; exit ;;
18986 --debug | --debu | --deb | --de | --d | -d )
18987 debug=: ;;
18988 --file | --fil | --fi | --f )
18989 $ac_shift
18990 case $ac_optarg in
18991 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18992 '') as_fn_error $? "missing file argument" ;;
18993 esac
18994 as_fn_append CONFIG_FILES " '$ac_optarg'"
18995 ac_need_defaults=false;;
18996 --he | --h | --help | --hel | -h )
18997 $as_echo "$ac_cs_usage"; exit ;;
18998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18999 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19000 ac_cs_silent=: ;;
19002 # This is an error.
19003 -*) as_fn_error $? "unrecognized option: \`$1'
19004 Try \`$0 --help' for more information." ;;
19006 *) as_fn_append ac_config_targets " $1"
19007 ac_need_defaults=false ;;
19009 esac
19010 shift
19011 done
19013 ac_configure_extra_args=
19015 if $ac_cs_silent; then
19016 exec 6>/dev/null
19017 ac_configure_extra_args="$ac_configure_extra_args --silent"
19020 _ACEOF
19021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19022 if \$ac_cs_recheck; then
19023 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19024 shift
19025 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19026 CONFIG_SHELL='$SHELL'
19027 export CONFIG_SHELL
19028 exec "\$@"
19031 _ACEOF
19032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19033 exec 5>>config.log
19035 echo
19036 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19037 ## Running $as_me. ##
19038 _ASBOX
19039 $as_echo "$ac_log"
19040 } >&5
19042 _ACEOF
19043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19045 # INIT-COMMANDS
19047 extrasub_build="$extrasub_build"
19048 extrasub_host="$extrasub_host"
19049 extrasub_target="$extrasub_target"
19051 _ACEOF
19053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19055 # Handling of arguments.
19056 for ac_config_target in $ac_config_targets
19058 case $ac_config_target in
19059 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19061 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19062 esac
19063 done
19066 # If the user did not use the arguments to specify the items to instantiate,
19067 # then the envvar interface is used. Set only those that are not.
19068 # We use the long form for the default assignment because of an extremely
19069 # bizarre bug on SunOS 4.1.3.
19070 if $ac_need_defaults; then
19071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19074 # Have a temporary directory for convenience. Make it in the build tree
19075 # simply because there is no reason against having it here, and in addition,
19076 # creating and moving files from /tmp can sometimes cause problems.
19077 # Hook for its removal unless debugging.
19078 # Note that there is a small window in which the directory will not be cleaned:
19079 # after its creation but before its name has been assigned to `$tmp'.
19080 $debug ||
19082 tmp= ac_tmp=
19083 trap 'exit_status=$?
19084 : "${ac_tmp:=$tmp}"
19085 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19087 trap 'as_fn_exit 1' 1 2 13 15
19089 # Create a (secure) tmp directory for tmp files.
19092 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19093 test -d "$tmp"
19094 } ||
19096 tmp=./conf$$-$RANDOM
19097 (umask 077 && mkdir "$tmp")
19098 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19099 ac_tmp=$tmp
19101 # Set up the scripts for CONFIG_FILES section.
19102 # No need to generate them if there are no CONFIG_FILES.
19103 # This happens for instance with `./config.status config.h'.
19104 if test -n "$CONFIG_FILES"; then
19106 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19107 ac_cs_awk_getline=:
19108 ac_cs_awk_pipe_init=
19109 ac_cs_awk_read_file='
19110 while ((getline aline < (F[key])) > 0)
19111 print(aline)
19112 close(F[key])'
19113 ac_cs_awk_pipe_fini=
19114 else
19115 ac_cs_awk_getline=false
19116 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19117 ac_cs_awk_read_file='
19118 print "|#_!!_#|"
19119 print "cat " F[key] " &&"
19120 '$ac_cs_awk_pipe_init
19121 # The final `:' finishes the AND list.
19122 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19124 ac_cr=`echo X | tr X '\015'`
19125 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19126 # But we know of no other shell where ac_cr would be empty at this
19127 # point, so we can use a bashism as a fallback.
19128 if test "x$ac_cr" = x; then
19129 eval ac_cr=\$\'\\r\'
19131 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19132 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19133 ac_cs_awk_cr='\\r'
19134 else
19135 ac_cs_awk_cr=$ac_cr
19138 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19139 _ACEOF
19141 # Create commands to substitute file output variables.
19143 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19144 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19145 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19146 echo "_ACAWK" &&
19147 echo "_ACEOF"
19148 } >conf$$files.sh &&
19149 . ./conf$$files.sh ||
19150 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19151 rm -f conf$$files.sh
19154 echo "cat >conf$$subs.awk <<_ACEOF" &&
19155 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19156 echo "_ACEOF"
19157 } >conf$$subs.sh ||
19158 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19159 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19160 ac_delim='%!_!# '
19161 for ac_last_try in false false false false false :; do
19162 . ./conf$$subs.sh ||
19163 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19165 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19166 if test $ac_delim_n = $ac_delim_num; then
19167 break
19168 elif $ac_last_try; then
19169 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19170 else
19171 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19173 done
19174 rm -f conf$$subs.sh
19176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19177 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19178 _ACEOF
19179 sed -n '
19181 s/^/S["/; s/!.*/"]=/
19184 s/^[^!]*!//
19185 :repl
19186 t repl
19187 s/'"$ac_delim"'$//
19188 t delim
19191 s/\(.\{148\}\)..*/\1/
19192 t more1
19193 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19196 b repl
19197 :more1
19198 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19201 s/.\{148\}//
19202 t nl
19203 :delim
19205 s/\(.\{148\}\)..*/\1/
19206 t more2
19207 s/["\\]/\\&/g; s/^/"/; s/$/"/
19210 :more2
19211 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19214 s/.\{148\}//
19215 t delim
19216 ' <conf$$subs.awk | sed '
19217 /^[^""]/{
19219 s/\n//
19221 ' >>$CONFIG_STATUS || ac_write_fail=1
19222 rm -f conf$$subs.awk
19223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19224 _ACAWK
19225 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19226 for (key in S) S_is_set[key] = 1
19227 FS = "\a"
19228 \$ac_cs_awk_pipe_init
19231 line = $ 0
19232 nfields = split(line, field, "@")
19233 substed = 0
19234 len = length(field[1])
19235 for (i = 2; i < nfields; i++) {
19236 key = field[i]
19237 keylen = length(key)
19238 if (S_is_set[key]) {
19239 value = S[key]
19240 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19241 len += length(value) + length(field[++i])
19242 substed = 1
19243 } else
19244 len += 1 + keylen
19246 if (nfields == 3 && !substed) {
19247 key = field[2]
19248 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19249 \$ac_cs_awk_read_file
19250 next
19253 print line
19255 \$ac_cs_awk_pipe_fini
19256 _ACAWK
19257 _ACEOF
19258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19259 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19260 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19261 else
19263 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19264 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19265 _ACEOF
19267 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19268 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19269 # trailing colons and then remove the whole line if VPATH becomes empty
19270 # (actually we leave an empty line to preserve line numbers).
19271 if test "x$srcdir" = x.; then
19272 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19274 s///
19275 s/^/:/
19276 s/[ ]*$/:/
19277 s/:\$(srcdir):/:/g
19278 s/:\${srcdir}:/:/g
19279 s/:@srcdir@:/:/g
19280 s/^:*//
19281 s/:*$//
19283 s/\(=[ ]*\).*/\1/
19285 s/\n//
19286 s/^[^=]*=[ ]*$//
19290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19291 fi # test -n "$CONFIG_FILES"
19294 eval set X " :F $CONFIG_FILES "
19295 shift
19296 for ac_tag
19298 case $ac_tag in
19299 :[FHLC]) ac_mode=$ac_tag; continue;;
19300 esac
19301 case $ac_mode$ac_tag in
19302 :[FHL]*:*);;
19303 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19304 :[FH]-) ac_tag=-:-;;
19305 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19306 esac
19307 ac_save_IFS=$IFS
19308 IFS=:
19309 set x $ac_tag
19310 IFS=$ac_save_IFS
19311 shift
19312 ac_file=$1
19313 shift
19315 case $ac_mode in
19316 :L) ac_source=$1;;
19317 :[FH])
19318 ac_file_inputs=
19319 for ac_f
19321 case $ac_f in
19322 -) ac_f="$ac_tmp/stdin";;
19323 *) # Look for the file first in the build tree, then in the source tree
19324 # (if the path is not absolute). The absolute path cannot be DOS-style,
19325 # because $ac_f cannot contain `:'.
19326 test -f "$ac_f" ||
19327 case $ac_f in
19328 [\\/$]*) false;;
19329 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19330 esac ||
19331 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19332 esac
19333 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19334 as_fn_append ac_file_inputs " '$ac_f'"
19335 done
19337 # Let's still pretend it is `configure' which instantiates (i.e., don't
19338 # use $as_me), people would be surprised to read:
19339 # /* config.h. Generated by config.status. */
19340 configure_input='Generated from '`
19341 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19342 `' by configure.'
19343 if test x"$ac_file" != x-; then
19344 configure_input="$ac_file. $configure_input"
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19346 $as_echo "$as_me: creating $ac_file" >&6;}
19348 # Neutralize special characters interpreted by sed in replacement strings.
19349 case $configure_input in #(
19350 *\&* | *\|* | *\\* )
19351 ac_sed_conf_input=`$as_echo "$configure_input" |
19352 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19353 *) ac_sed_conf_input=$configure_input;;
19354 esac
19356 case $ac_tag in
19357 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19359 esac
19361 esac
19363 ac_dir=`$as_dirname -- "$ac_file" ||
19364 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19365 X"$ac_file" : 'X\(//\)[^/]' \| \
19366 X"$ac_file" : 'X\(//\)$' \| \
19367 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19368 $as_echo X"$ac_file" |
19369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19370 s//\1/
19373 /^X\(\/\/\)[^/].*/{
19374 s//\1/
19377 /^X\(\/\/\)$/{
19378 s//\1/
19381 /^X\(\/\).*/{
19382 s//\1/
19385 s/.*/./; q'`
19386 as_dir="$ac_dir"; as_fn_mkdir_p
19387 ac_builddir=.
19389 case "$ac_dir" in
19390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19392 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19393 # A ".." for each directory in $ac_dir_suffix.
19394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19395 case $ac_top_builddir_sub in
19396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19398 esac ;;
19399 esac
19400 ac_abs_top_builddir=$ac_pwd
19401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19402 # for backward compatibility:
19403 ac_top_builddir=$ac_top_build_prefix
19405 case $srcdir in
19406 .) # We are building in place.
19407 ac_srcdir=.
19408 ac_top_srcdir=$ac_top_builddir_sub
19409 ac_abs_top_srcdir=$ac_pwd ;;
19410 [\\/]* | ?:[\\/]* ) # Absolute name.
19411 ac_srcdir=$srcdir$ac_dir_suffix;
19412 ac_top_srcdir=$srcdir
19413 ac_abs_top_srcdir=$srcdir ;;
19414 *) # Relative name.
19415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19416 ac_top_srcdir=$ac_top_build_prefix$srcdir
19417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19418 esac
19419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19422 case $ac_mode in
19425 # CONFIG_FILE
19428 case $INSTALL in
19429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19430 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19431 esac
19432 _ACEOF
19434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19435 # If the template does not know about datarootdir, expand it.
19436 # FIXME: This hack should be removed a few years after 2.60.
19437 ac_datarootdir_hack=; ac_datarootdir_seen=
19438 ac_sed_dataroot='
19439 /datarootdir/ {
19443 /@datadir@/p
19444 /@docdir@/p
19445 /@infodir@/p
19446 /@localedir@/p
19447 /@mandir@/p'
19448 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19449 *datarootdir*) ac_datarootdir_seen=yes;;
19450 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19452 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19453 _ACEOF
19454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19455 ac_datarootdir_hack='
19456 s&@datadir@&$datadir&g
19457 s&@docdir@&$docdir&g
19458 s&@infodir@&$infodir&g
19459 s&@localedir@&$localedir&g
19460 s&@mandir@&$mandir&g
19461 s&\\\${datarootdir}&$datarootdir&g' ;;
19462 esac
19463 _ACEOF
19465 # Neutralize VPATH when `$srcdir' = `.'.
19466 # Shell code in configure.ac might set extrasub.
19467 # FIXME: do we really want to maintain this feature?
19468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19469 ac_sed_extra="$ac_vpsub
19470 $extrasub
19471 _ACEOF
19472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19474 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19475 s|@configure_input@|$ac_sed_conf_input|;t t
19476 s&@top_builddir@&$ac_top_builddir_sub&;t t
19477 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19478 s&@srcdir@&$ac_srcdir&;t t
19479 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19480 s&@top_srcdir@&$ac_top_srcdir&;t t
19481 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19482 s&@builddir@&$ac_builddir&;t t
19483 s&@abs_builddir@&$ac_abs_builddir&;t t
19484 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19485 s&@INSTALL@&$ac_INSTALL&;t t
19486 $ac_datarootdir_hack
19488 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19489 if $ac_cs_awk_getline; then
19490 $AWK -f "$ac_tmp/subs.awk"
19491 else
19492 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19493 fi \
19494 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19496 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19497 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19498 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19499 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19501 which seems to be undefined. Please make sure it is defined" >&5
19502 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19503 which seems to be undefined. Please make sure it is defined" >&2;}
19505 rm -f "$ac_tmp/stdin"
19506 case $ac_file in
19507 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19508 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19509 esac \
19510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19515 esac
19518 case $ac_file$ac_mode in
19519 "Makefile":F) sed "$extrasub_build" Makefile |
19520 sed "$extrasub_host" |
19521 sed "$extrasub_target" > mf$$
19522 mv -f mf$$ Makefile ;;
19524 esac
19525 done # for ac_tag
19528 as_fn_exit 0
19529 _ACEOF
19530 ac_clean_files=$ac_clean_files_save
19532 test $ac_write_fail = 0 ||
19533 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19536 # configure is writing to config.log, and then calls config.status.
19537 # config.status does its own redirection, appending to config.log.
19538 # Unfortunately, on DOS this fails, as config.log is still kept open
19539 # by configure, so config.status won't be able to write to it; its
19540 # output is simply discarded. So we exec the FD to /dev/null,
19541 # effectively closing config.log, so it can be properly (re)opened and
19542 # appended to by config.status. When coming back to configure, we
19543 # need to make the FD available again.
19544 if test "$no_create" != yes; then
19545 ac_cs_success=:
19546 ac_config_status_args=
19547 test "$silent" = yes &&
19548 ac_config_status_args="$ac_config_status_args --quiet"
19549 exec 5>/dev/null
19550 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19551 exec 5>>config.log
19552 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19553 # would make configure fail if this is the last instruction.
19554 $ac_cs_success || as_fn_exit 1
19556 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19558 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}