Daily bump.
[official-gcc.git] / configure
bloba0c5aca9e8d5cae2782c8fe4625a501853dc226a
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 DLLTOOL_FOR_TARGET
613 AS_FOR_TARGET
614 AR_FOR_TARGET
615 GDC_FOR_TARGET
616 GOC_FOR_TARGET
617 GFORTRAN_FOR_TARGET
618 GCC_FOR_TARGET
619 CXX_FOR_TARGET
620 CC_FOR_TARGET
621 READELF
622 OTOOL
623 OBJDUMP
624 OBJCOPY
625 WINDMC
626 WINDRES
627 STRIP
628 RANLIB
630 LIPO
632 DLLTOOL
635 RUNTEST
636 EXPECT
637 MAKEINFO
638 FLEX
641 BISON
642 YACC
643 WINDRES_FOR_BUILD
644 WINDMC_FOR_BUILD
645 RANLIB_FOR_BUILD
646 NM_FOR_BUILD
647 LD_FOR_BUILD
648 LDFLAGS_FOR_BUILD
649 GDC_FOR_BUILD
650 GOC_FOR_BUILD
651 GFORTRAN_FOR_BUILD
652 DLLTOOL_FOR_BUILD
653 CXX_FOR_BUILD
654 CXXFLAGS_FOR_BUILD
655 CFLAGS_FOR_BUILD
656 CC_FOR_BUILD
657 AS_FOR_BUILD
658 AR_FOR_BUILD
659 target_configdirs
660 configdirs
661 build_configdirs
662 INSTALL_GDB_TK
663 GDB_TK
664 CONFIGURE_GDB_TK
665 build_tooldir
666 tooldir
667 GCC_SHLIB_SUBDIR
668 RPATH_ENVVAR
669 target_configargs
670 host_configargs
671 build_configargs
672 BUILD_CONFIG
673 LDFLAGS_FOR_TARGET
674 CXXFLAGS_FOR_TARGET
675 CFLAGS_FOR_TARGET
676 DEBUG_PREFIX_CFLAGS_FOR_TARGET
677 SYSROOT_CFLAGS_FOR_TARGET
678 get_gcc_base_ver
679 extra_host_zlib_configure_flags
680 extra_host_libiberty_configure_flags
681 stage1_languages
682 host_shared
683 extra_linker_plugin_flags
684 extra_linker_plugin_configure_flags
685 islinc
686 isllibs
687 poststage1_ldflags
688 poststage1_libs
689 stage1_ldflags
690 stage1_libs
691 extra_isl_gmp_configure_flags
692 extra_mpc_mpfr_configure_flags
693 extra_mpc_gmp_configure_flags
694 extra_mpfr_configure_flags
695 gmpinc
696 gmplibs
697 HAVE_CXX11
698 do_compare
699 GNATMAKE
700 GNATBIND
701 ac_ct_CXX
702 CXXFLAGS
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
711 extra_liboffloadmic_configure_flags
712 target_subdir
713 host_subdir
714 build_subdir
715 build_libsubdir
718 LN_S
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_os
724 target_vendor
725 target_cpu
726 target
727 host_os
728 host_vendor
729 host_cpu
730 host
731 target_noncanonical
732 host_noncanonical
733 build_noncanonical
734 build_os
735 build_vendor
736 build_cpu
737 build
738 TOPLEVEL_CONFIGURE_ARGUMENTS
739 target_alias
740 host_alias
741 build_alias
742 LIBS
743 ECHO_T
744 ECHO_N
745 ECHO_C
746 DEFS
747 mandir
748 localedir
749 libdir
750 psdir
751 pdfdir
752 dvidir
753 htmldir
754 infodir
755 docdir
756 oldincludedir
757 includedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files='serialization_dependencies
778 host_makefile_frag
779 target_makefile_frag
780 alphaieee_frag
781 ospace_frag'
782 ac_user_opts='
783 enable_option_checking
784 with_build_libsubdir
785 with_system_zlib
786 enable_as_accelerator_for
787 enable_offload_targets
788 enable_gold
789 enable_ld
790 enable_compressed_debug_sections
791 enable_libquadmath
792 enable_libquadmath_support
793 enable_libada
794 enable_libssp
795 enable_libstdcxx
796 enable_liboffloadmic
797 enable_bootstrap
798 with_mpc
799 with_mpc_include
800 with_mpc_lib
801 with_mpfr_dir
802 with_mpfr
803 with_mpfr_include
804 with_mpfr_lib
805 with_gmp_dir
806 with_gmp
807 with_gmp_include
808 with_gmp_lib
809 with_stage1_libs
810 with_static_standard_libraries
811 with_stage1_ldflags
812 with_boot_libs
813 with_boot_ldflags
814 with_isl
815 with_isl_include
816 with_isl_lib
817 enable_isl_version_check
818 enable_lto
819 enable_linker_plugin_configure_flags
820 enable_linker_plugin_flags
821 enable_host_shared
822 enable_stage1_languages
823 enable_objc_gc
824 with_target_bdw_gc
825 with_target_bdw_gc_include
826 with_target_bdw_gc_lib
827 with_gcc_major_version_only
828 with_build_sysroot
829 with_debug_prefix_map
830 with_build_config
831 enable_vtable_verify
832 enable_serial_configure
833 with_build_time_tools
834 enable_maintainer_mode
835 enable_stage1_checking
836 enable_werror
838 ac_precious_vars='build_alias
839 host_alias
840 target_alias
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
847 CXXFLAGS
849 build_configargs
850 host_configargs
851 target_configargs
854 DLLTOOL
856 LIPO
858 RANLIB
859 STRIP
860 WINDRES
861 WINDMC
862 OBJCOPY
863 OBJDUMP
864 OTOOL
865 READELF
866 CC_FOR_TARGET
867 CXX_FOR_TARGET
868 GCC_FOR_TARGET
869 GFORTRAN_FOR_TARGET
870 GOC_FOR_TARGET
871 GDC_FOR_TARGET
872 AR_FOR_TARGET
873 AS_FOR_TARGET
874 DLLTOOL_FOR_TARGET
875 LD_FOR_TARGET
876 LIPO_FOR_TARGET
877 NM_FOR_TARGET
878 OBJCOPY_FOR_TARGET
879 OBJDUMP_FOR_TARGET
880 OTOOL_FOR_TARGET
881 RANLIB_FOR_TARGET
882 READELF_FOR_TARGET
883 STRIP_FOR_TARGET
884 WINDRES_FOR_TARGET
885 WINDMC_FOR_TARGET'
888 # Initialize some variables set by options.
889 ac_init_help=
890 ac_init_version=false
891 ac_unrecognized_opts=
892 ac_unrecognized_sep=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
895 cache_file=/dev/null
896 exec_prefix=NONE
897 no_create=
898 no_recursion=
899 prefix=NONE
900 program_prefix=NONE
901 program_suffix=NONE
902 program_transform_name=s,x,x,
903 silent=
904 site=
905 srcdir=
906 verbose=
907 x_includes=NONE
908 x_libraries=NONE
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir='${exec_prefix}/bin'
917 sbindir='${exec_prefix}/sbin'
918 libexecdir='${exec_prefix}/libexec'
919 datarootdir='${prefix}/share'
920 datadir='${datarootdir}'
921 sysconfdir='${prefix}/etc'
922 sharedstatedir='${prefix}/com'
923 localstatedir='${prefix}/var'
924 includedir='${prefix}/include'
925 oldincludedir='/usr/include'
926 docdir='${datarootdir}/doc/${PACKAGE}'
927 infodir='${datarootdir}/info'
928 htmldir='${docdir}'
929 dvidir='${docdir}'
930 pdfdir='${docdir}'
931 psdir='${docdir}'
932 libdir='${exec_prefix}/lib'
933 localedir='${datarootdir}/locale'
934 mandir='${datarootdir}/man'
936 ac_prev=
937 ac_dashdash=
938 for ac_option
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\$ac_option
943 ac_prev=
944 continue
947 case $ac_option in
948 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *=) ac_optarg= ;;
950 *) ac_optarg=yes ;;
951 esac
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
957 ac_dashdash=yes ;;
959 -bindir | --bindir | --bindi | --bind | --bin | --bi)
960 ac_prev=bindir ;;
961 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962 bindir=$ac_optarg ;;
964 -build | --build | --buil | --bui | --bu)
965 ac_prev=build_alias ;;
966 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967 build_alias=$ac_optarg ;;
969 -cache-file | --cache-file | --cache-fil | --cache-fi \
970 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971 ac_prev=cache_file ;;
972 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974 cache_file=$ac_optarg ;;
976 --config-cache | -C)
977 cache_file=config.cache ;;
979 -datadir | --datadir | --datadi | --datad)
980 ac_prev=datadir ;;
981 -datadir=* | --datadir=* | --datadi=* | --datad=*)
982 datadir=$ac_optarg ;;
984 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985 | --dataroo | --dataro | --datar)
986 ac_prev=datarootdir ;;
987 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989 datarootdir=$ac_optarg ;;
991 -disable-* | --disable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=no ;;
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1017 -enable-* | --enable-*)
1018 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021 as_fn_error $? "invalid feature name: $ac_useropt"
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_$ac_useropt"
1027 "*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=\$ac_optarg ;;
1033 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035 | --exec | --exe | --ex)
1036 ac_prev=exec_prefix ;;
1037 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039 | --exec=* | --exe=* | --ex=*)
1040 exec_prefix=$ac_optarg ;;
1042 -gas | --gas | --ga | --g)
1043 # Obsolete; use --with-gas.
1044 with_gas=yes ;;
1046 -help | --help | --hel | --he | -h)
1047 ac_init_help=long ;;
1048 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049 ac_init_help=recursive ;;
1050 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051 ac_init_help=short ;;
1053 -host | --host | --hos | --ho)
1054 ac_prev=host_alias ;;
1055 -host=* | --host=* | --hos=* | --ho=*)
1056 host_alias=$ac_optarg ;;
1058 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059 ac_prev=htmldir ;;
1060 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061 | --ht=*)
1062 htmldir=$ac_optarg ;;
1064 -includedir | --includedir | --includedi | --included | --include \
1065 | --includ | --inclu | --incl | --inc)
1066 ac_prev=includedir ;;
1067 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068 | --includ=* | --inclu=* | --incl=* | --inc=*)
1069 includedir=$ac_optarg ;;
1071 -infodir | --infodir | --infodi | --infod | --info | --inf)
1072 ac_prev=infodir ;;
1073 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074 infodir=$ac_optarg ;;
1076 -libdir | --libdir | --libdi | --libd)
1077 ac_prev=libdir ;;
1078 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079 libdir=$ac_optarg ;;
1081 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082 | --libexe | --libex | --libe)
1083 ac_prev=libexecdir ;;
1084 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085 | --libexe=* | --libex=* | --libe=*)
1086 libexecdir=$ac_optarg ;;
1088 -localedir | --localedir | --localedi | --localed | --locale)
1089 ac_prev=localedir ;;
1090 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091 localedir=$ac_optarg ;;
1093 -localstatedir | --localstatedir | --localstatedi | --localstated \
1094 | --localstate | --localstat | --localsta | --localst | --locals)
1095 ac_prev=localstatedir ;;
1096 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098 localstatedir=$ac_optarg ;;
1100 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101 ac_prev=mandir ;;
1102 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103 mandir=$ac_optarg ;;
1105 -nfp | --nfp | --nf)
1106 # Obsolete; use --without-fp.
1107 with_fp=no ;;
1109 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110 | --no-cr | --no-c | -n)
1111 no_create=yes ;;
1113 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 no_recursion=yes ;;
1117 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119 | --oldin | --oldi | --old | --ol | --o)
1120 ac_prev=oldincludedir ;;
1121 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124 oldincludedir=$ac_optarg ;;
1126 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127 ac_prev=prefix ;;
1128 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129 prefix=$ac_optarg ;;
1131 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132 | --program-pre | --program-pr | --program-p)
1133 ac_prev=program_prefix ;;
1134 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136 program_prefix=$ac_optarg ;;
1138 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139 | --program-suf | --program-su | --program-s)
1140 ac_prev=program_suffix ;;
1141 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143 program_suffix=$ac_optarg ;;
1145 -program-transform-name | --program-transform-name \
1146 | --program-transform-nam | --program-transform-na \
1147 | --program-transform-n | --program-transform- \
1148 | --program-transform | --program-transfor \
1149 | --program-transfo | --program-transf \
1150 | --program-trans | --program-tran \
1151 | --progr-tra | --program-tr | --program-t)
1152 ac_prev=program_transform_name ;;
1153 -program-transform-name=* | --program-transform-name=* \
1154 | --program-transform-nam=* | --program-transform-na=* \
1155 | --program-transform-n=* | --program-transform-=* \
1156 | --program-transform=* | --program-transfor=* \
1157 | --program-transfo=* | --program-transf=* \
1158 | --program-trans=* | --program-tran=* \
1159 | --progr-tra=* | --program-tr=* | --program-t=*)
1160 program_transform_name=$ac_optarg ;;
1162 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163 ac_prev=pdfdir ;;
1164 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165 pdfdir=$ac_optarg ;;
1167 -psdir | --psdir | --psdi | --psd | --ps)
1168 ac_prev=psdir ;;
1169 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 psdir=$ac_optarg ;;
1172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173 | -silent | --silent | --silen | --sile | --sil)
1174 silent=yes ;;
1176 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177 ac_prev=sbindir ;;
1178 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179 | --sbi=* | --sb=*)
1180 sbindir=$ac_optarg ;;
1182 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184 | --sharedst | --shareds | --shared | --share | --shar \
1185 | --sha | --sh)
1186 ac_prev=sharedstatedir ;;
1187 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190 | --sha=* | --sh=*)
1191 sharedstatedir=$ac_optarg ;;
1193 -site | --site | --sit)
1194 ac_prev=site ;;
1195 -site=* | --site=* | --sit=*)
1196 site=$ac_optarg ;;
1198 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199 ac_prev=srcdir ;;
1200 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201 srcdir=$ac_optarg ;;
1203 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204 | --syscon | --sysco | --sysc | --sys | --sy)
1205 ac_prev=sysconfdir ;;
1206 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208 sysconfdir=$ac_optarg ;;
1210 -target | --target | --targe | --targ | --tar | --ta | --t)
1211 ac_prev=target_alias ;;
1212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213 target_alias=$ac_optarg ;;
1215 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 verbose=yes ;;
1218 -version | --version | --versio | --versi | --vers | -V)
1219 ac_init_version=: ;;
1221 -with-* | --with-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error $? "invalid package name: $ac_useropt"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1230 "with_$ac_useropt"
1231 "*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=\$ac_optarg ;;
1237 -without-* | --without-*)
1238 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241 as_fn_error $? "invalid package name: $ac_useropt"
1242 ac_useropt_orig=$ac_useropt
1243 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1246 "with_$ac_useropt"
1247 "*) ;;
1248 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249 ac_unrecognized_sep=', ';;
1250 esac
1251 eval with_$ac_useropt=no ;;
1253 --x)
1254 # Obsolete; use --with-x.
1255 with_x=yes ;;
1257 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258 | --x-incl | --x-inc | --x-in | --x-i)
1259 ac_prev=x_includes ;;
1260 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262 x_includes=$ac_optarg ;;
1264 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266 ac_prev=x_libraries ;;
1267 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269 x_libraries=$ac_optarg ;;
1271 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1272 Try \`$0 --help' for more information"
1275 *=*)
1276 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277 # Reject names that are not valid shell variable names.
1278 case $ac_envvar in #(
1279 '' | [0-9]* | *[!_$as_cr_alnum]* )
1280 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1281 esac
1282 eval $ac_envvar=\$ac_optarg
1283 export $ac_envvar ;;
1286 # FIXME: should be removed in autoconf 3.0.
1287 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1293 esac
1294 done
1296 if test -n "$ac_prev"; then
1297 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298 as_fn_error $? "missing argument to $ac_option"
1301 if test -n "$ac_unrecognized_opts"; then
1302 case $enable_option_checking in
1303 no) ;;
1304 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1305 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306 esac
1309 # Check all directory arguments for consistency.
1310 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311 datadir sysconfdir sharedstatedir localstatedir includedir \
1312 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313 libdir localedir mandir
1315 eval ac_val=\$$ac_var
1316 # Remove trailing slashes.
1317 case $ac_val in
1318 */ )
1319 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320 eval $ac_var=\$ac_val;;
1321 esac
1322 # Be sure to have absolute directory names.
1323 case $ac_val in
1324 [\\/$]* | ?:[\\/]* ) continue;;
1325 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1326 esac
1327 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1328 done
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1333 build=$build_alias
1334 host=$host_alias
1335 target=$target_alias
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x; then
1339 if test "x$build_alias" = x; then
1340 cross_compiling=maybe
1341 elif test "x$build_alias" != "x$host_alias"; then
1342 cross_compiling=yes
1346 ac_tool_prefix=
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349 test "$silent" = yes && exec 6>/dev/null
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355 as_fn_error $? "working directory cannot be determined"
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 as_fn_error $? "pwd does not report name of working directory"
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir=`$as_dirname -- "$as_myself" ||
1365 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369 $as_echo X"$as_myself" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 s//\1/
1374 /^X\(\/\/\)[^/].*/{
1375 s//\1/
1378 /^X\(\/\/\)$/{
1379 s//\1/
1382 /^X\(\/\).*/{
1383 s//\1/
1386 s/.*/./; q'`
1387 srcdir=$ac_confdir
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 srcdir=..
1391 else
1392 ac_srcdir_defaulted=no
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1398 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399 ac_abs_confdir=`(
1400 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1401 pwd)`
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404 srcdir=.
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1409 case $srcdir in
1410 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411 esac
1412 case $srcdir in
1413 *" "*)
1414 as_fn_error $? "path to source, $srcdir, contains spaces"
1416 esac
1417 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1419 for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424 done
1427 # Report the --help message.
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1432 cat <<_ACEOF
1433 \`configure' configures this package to adapt to many kinds of systems.
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1440 Defaults for the options are specified in brackets.
1442 Configuration:
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking ...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1457 [PREFIX]
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1464 For better control, use the options below.
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1486 _ACEOF
1488 cat <<\_ACEOF
1490 Program names:
1491 --program-prefix=PREFIX prepend PREFIX to installed program names
1492 --program-suffix=SUFFIX append SUFFIX to installed program names
1493 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495 System types:
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1498 --target=TARGET configure for building compilers for TARGET [HOST]
1499 _ACEOF
1502 if test -n "$ac_init_help"; then
1504 cat <<\_ACEOF
1506 Optional Features:
1507 --disable-option-checking ignore unrecognized --enable/--with options
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-as-accelerator-for=ARG
1511 build as offload target compiler. Specify offload
1512 host triple by ARG
1513 --enable-offload-targets=LIST
1514 enable offloading to devices from comma-separated
1515 LIST of TARGET[=DIR]. Use optional path to find
1516 offload target compiler during the build
1517 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1518 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1519 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1520 Enable compressed debug sections for gas, gold or ld
1521 by default
1522 --disable-libquadmath do not build libquadmath directory
1523 --disable-libquadmath-support
1524 disable libquadmath support for Fortran
1525 --enable-libada build libada directory
1526 --enable-libssp build libssp directory
1527 --disable-libstdcxx do not build libstdc++-v3 directory
1528 --enable-liboffloadmic=ARG
1529 build liboffloadmic [ARG={no,host,target}]
1530 --enable-bootstrap enable bootstrapping [yes if native build]
1531 --disable-isl-version-check
1532 disable check for isl version
1533 --enable-lto enable link time optimization support
1534 --enable-linker-plugin-configure-flags=FLAGS
1535 additional flags for configuring linker plugins
1536 [none]
1537 --enable-linker-plugin-flags=FLAGS
1538 additional flags for configuring and building linker
1539 plugins [none]
1540 --enable-host-shared build host code as shared libraries
1541 --enable-stage1-languages[=all]
1542 choose additional languages to build during stage1.
1543 Mostly useful for compiler development
1544 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1545 Objective-C runtime
1546 --enable-vtable-verify Enable vtable verification feature
1547 --enable-serial-[{host,target,build}-]configure
1548 force sequential configuration of sub-packages for
1549 the host, target or build machine, or all
1550 sub-packages
1551 --enable-maintainer-mode
1552 enable make rules and dependencies not useful (and
1553 sometimes confusing) to the casual installer
1554 --enable-stage1-checking[=all]
1555 choose additional checking for stage1 of the
1556 compiler
1557 --enable-werror enable -Werror in bootstrap stage2 and later
1559 Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-build-libsubdir=DIR Directory where to find libraries for build system
1563 --with-system-zlib use installed libz
1564 --with-mpc=PATH specify prefix directory for installed MPC package.
1565 Equivalent to --with-mpc-include=PATH/include plus
1566 --with-mpc-lib=PATH/lib
1567 --with-mpc-include=PATH specify directory for installed MPC include files
1568 --with-mpc-lib=PATH specify directory for the installed MPC library
1569 --with-mpfr-dir=PATH this option has been REMOVED
1570 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1571 Equivalent to --with-mpfr-include=PATH/include plus
1572 --with-mpfr-lib=PATH/lib
1573 --with-mpfr-include=PATH
1574 specify directory for installed MPFR include files
1575 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1576 --with-gmp-dir=PATH this option has been REMOVED
1577 --with-gmp=PATH specify prefix directory for the installed GMP
1578 package. Equivalent to
1579 --with-gmp-include=PATH/include plus
1580 --with-gmp-lib=PATH/lib
1581 --with-gmp-include=PATH specify directory for installed GMP include files
1582 --with-gmp-lib=PATH specify directory for the installed GMP library
1583 --with-stage1-libs=LIBS libraries for stage1
1584 --with-static-standard-libraries
1585 use -static-libstdc++ and -static-libgcc
1586 (default=auto)
1587 --with-stage1-ldflags=FLAGS
1588 linker flags for stage1
1589 --with-boot-libs=LIBS libraries for stage2 and later
1590 --with-boot-ldflags=FLAGS
1591 linker flags for stage2 and later
1592 --with-isl=PATH Specify prefix directory for the installed isl
1593 package. Equivalent to
1594 --with-isl-include=PATH/include plus
1595 --with-isl-lib=PATH/lib
1596 --with-isl-include=PATH Specify directory for installed isl include files
1597 --with-isl-lib=PATH Specify the directory for the installed isl library
1598 --with-target-bdw-gc=PATHLIST
1599 specify prefix directory for installed bdw-gc
1600 package. Equivalent to
1601 --with-target-bdw-gc-include=PATH/include plus
1602 --with-target-bdw-gc-lib=PATH/lib
1603 --with-target-bdw-gc-include=PATHLIST
1604 specify directories for installed bdw-gc include
1605 files
1606 --with-target-bdw-gc-lib=PATHLIST
1607 specify directories for installed bdw-gc library
1608 --with-gcc-major-version-only
1609 use only GCC major number in filesystem paths
1610 --with-build-sysroot=SYSROOT
1611 use sysroot as the system root during the build
1612 --with-debug-prefix-map='A=B C=D ...'
1613 map A to B, C to D ... in debug information
1614 --with-build-config='NAME NAME2...'
1615 use config/NAME.mk build configuration
1616 --with-build-time-tools=PATH
1617 use given path to find target tools during the build
1619 Some influential environment variables:
1620 CC C compiler command
1621 CFLAGS C compiler flags
1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1623 nonstandard directory <lib dir>
1624 LIBS libraries to pass to the linker, e.g. -l<library>
1625 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1626 you have headers in a nonstandard directory <include dir>
1627 CXX C++ compiler command
1628 CXXFLAGS C++ compiler flags
1629 build_configargs
1630 additional configure arguments for build directories
1631 host_configargs
1632 additional configure arguments for host directories
1633 target_configargs
1634 additional configure arguments for target directories
1635 AR AR for the host
1636 AS AS for the host
1637 DLLTOOL DLLTOOL for the host
1638 LD LD for the host
1639 LIPO LIPO for the host
1640 NM NM for the host
1641 RANLIB RANLIB for the host
1642 STRIP STRIP for the host
1643 WINDRES WINDRES for the host
1644 WINDMC WINDMC for the host
1645 OBJCOPY OBJCOPY for the host
1646 OBJDUMP OBJDUMP for the host
1647 OTOOL OTOOL for the host
1648 READELF READELF for the host
1649 CC_FOR_TARGET
1650 CC for the target
1651 CXX_FOR_TARGET
1652 CXX for the target
1653 GCC_FOR_TARGET
1654 GCC for the target
1655 GFORTRAN_FOR_TARGET
1656 GFORTRAN for the target
1657 GOC_FOR_TARGET
1658 GOC for the target
1659 GDC_FOR_TARGET
1660 GDC for the target
1661 AR_FOR_TARGET
1662 AR for the target
1663 AS_FOR_TARGET
1664 AS for the target
1665 DLLTOOL_FOR_TARGET
1666 DLLTOOL for the target
1667 LD_FOR_TARGET
1668 LD for the target
1669 LIPO_FOR_TARGET
1670 LIPO for the target
1671 NM_FOR_TARGET
1672 NM for the target
1673 OBJCOPY_FOR_TARGET
1674 OBJCOPY for the target
1675 OBJDUMP_FOR_TARGET
1676 OBJDUMP for the target
1677 OTOOL_FOR_TARGET
1678 OTOOL for the target
1679 RANLIB_FOR_TARGET
1680 RANLIB for the target
1681 READELF_FOR_TARGET
1682 READELF for the target
1683 STRIP_FOR_TARGET
1684 STRIP for the target
1685 WINDRES_FOR_TARGET
1686 WINDRES for the target
1687 WINDMC_FOR_TARGET
1688 WINDMC for the target
1690 Use these variables to override the choices made by `configure' or to help
1691 it to find libraries and programs with nonstandard names/locations.
1693 Report bugs to the package provider.
1694 _ACEOF
1695 ac_status=$?
1698 if test "$ac_init_help" = "recursive"; then
1699 # If there are subdirs, report their specific --help.
1700 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1701 test -d "$ac_dir" ||
1702 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1703 continue
1704 ac_builddir=.
1706 case "$ac_dir" in
1707 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1710 # A ".." for each directory in $ac_dir_suffix.
1711 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1712 case $ac_top_builddir_sub in
1713 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1715 esac ;;
1716 esac
1717 ac_abs_top_builddir=$ac_pwd
1718 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1719 # for backward compatibility:
1720 ac_top_builddir=$ac_top_build_prefix
1722 case $srcdir in
1723 .) # We are building in place.
1724 ac_srcdir=.
1725 ac_top_srcdir=$ac_top_builddir_sub
1726 ac_abs_top_srcdir=$ac_pwd ;;
1727 [\\/]* | ?:[\\/]* ) # Absolute name.
1728 ac_srcdir=$srcdir$ac_dir_suffix;
1729 ac_top_srcdir=$srcdir
1730 ac_abs_top_srcdir=$srcdir ;;
1731 *) # Relative name.
1732 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1733 ac_top_srcdir=$ac_top_build_prefix$srcdir
1734 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1735 esac
1736 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1738 cd "$ac_dir" || { ac_status=$?; continue; }
1739 # Check for guested configure.
1740 if test -f "$ac_srcdir/configure.gnu"; then
1741 echo &&
1742 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1743 elif test -f "$ac_srcdir/configure"; then
1744 echo &&
1745 $SHELL "$ac_srcdir/configure" --help=recursive
1746 else
1747 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1748 fi || ac_status=$?
1749 cd "$ac_pwd" || { ac_status=$?; break; }
1750 done
1753 test -n "$ac_init_help" && exit $ac_status
1754 if $ac_init_version; then
1755 cat <<\_ACEOF
1756 configure
1757 generated by GNU Autoconf 2.69
1759 Copyright (C) 2012 Free Software Foundation, Inc.
1760 This configure script is free software; the Free Software Foundation
1761 gives unlimited permission to copy, distribute and modify it.
1762 _ACEOF
1763 exit
1766 ## ------------------------ ##
1767 ## Autoconf initialization. ##
1768 ## ------------------------ ##
1770 # ac_fn_c_try_compile LINENO
1771 # --------------------------
1772 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1773 ac_fn_c_try_compile ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext
1777 if { { ac_try="$ac_compile"
1778 case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_compile") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest.$ac_objext; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=1
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1806 } # ac_fn_c_try_compile
1808 # ac_fn_cxx_try_compile LINENO
1809 # ----------------------------
1810 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_cxx_try_compile ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext
1815 if { { ac_try="$ac_compile"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_compile") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_cxx_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest.$ac_objext; then :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1839 ac_retval=1
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1844 } # ac_fn_cxx_try_compile
1846 # ac_fn_cxx_try_link LINENO
1847 # -------------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_cxx_try_link ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_cxx_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 test -x conftest$ac_exeext
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=1
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1890 } # ac_fn_cxx_try_link
1892 # ac_fn_c_try_link LINENO
1893 # -----------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_c_try_link ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 test -x conftest$ac_exeext
1920 }; then :
1921 ac_retval=0
1922 else
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1926 ac_retval=1
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1936 } # ac_fn_c_try_link
1937 cat >config.log <<_ACEOF
1938 This file contains any messages produced by compilers while
1939 running configure, to aid debugging if configure makes a mistake.
1941 It was created by $as_me, which was
1942 generated by GNU Autoconf 2.69. Invocation command line was
1944 $ $0 $@
1946 _ACEOF
1947 exec 5>>config.log
1949 cat <<_ASUNAME
1950 ## --------- ##
1951 ## Platform. ##
1952 ## --------- ##
1954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1961 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1963 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1964 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1966 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1967 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1968 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1969 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1971 _ASUNAME
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 $as_echo "PATH: $as_dir"
1979 done
1980 IFS=$as_save_IFS
1982 } >&5
1984 cat >&5 <<_ACEOF
1987 ## ----------- ##
1988 ## Core tests. ##
1989 ## ----------- ##
1991 _ACEOF
1994 # Keep a trace of the command line.
1995 # Strip out --no-create and --no-recursion so they do not pile up.
1996 # Strip out --silent because we don't want to record it for future runs.
1997 # Also quote any args containing shell meta-characters.
1998 # Make two passes to allow for proper duplicate-argument suppression.
1999 ac_configure_args=
2000 ac_configure_args0=
2001 ac_configure_args1=
2002 ac_must_keep_next=false
2003 for ac_pass in 1 2
2005 for ac_arg
2007 case $ac_arg in
2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010 | -silent | --silent | --silen | --sile | --sil)
2011 continue ;;
2012 *\'*)
2013 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 esac
2015 case $ac_pass in
2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2018 as_fn_append ac_configure_args1 " '$ac_arg'"
2019 if test $ac_must_keep_next = true; then
2020 ac_must_keep_next=false # Got value, back to normal.
2021 else
2022 case $ac_arg in
2023 *=* | --config-cache | -C | -disable-* | --disable-* \
2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026 | -with-* | --with-* | -without-* | --without-* | --x)
2027 case "$ac_configure_args0 " in
2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029 esac
2031 -* ) ac_must_keep_next=true ;;
2032 esac
2034 as_fn_append ac_configure_args " '$ac_arg'"
2036 esac
2037 done
2038 done
2039 { ac_configure_args0=; unset ac_configure_args0;}
2040 { ac_configure_args1=; unset ac_configure_args1;}
2042 # When interrupted or exit'd, cleanup temporary files, and complete
2043 # config.log. We remove comments because anyway the quotes in there
2044 # would cause problems or look ugly.
2045 # WARNING: Use '\'' to represent an apostrophe within the trap.
2046 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2047 trap 'exit_status=$?
2048 # Save into config.log some information that might help in debugging.
2050 echo
2052 $as_echo "## ---------------- ##
2053 ## Cache variables. ##
2054 ## ---------------- ##"
2055 echo
2056 # The following way of writing the cache mishandles newlines in values,
2058 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2059 eval ac_val=\$$ac_var
2060 case $ac_val in #(
2061 *${as_nl}*)
2062 case $ac_var in #(
2063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2064 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065 esac
2066 case $ac_var in #(
2067 _ | IFS | as_nl) ;; #(
2068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2069 *) { eval $ac_var=; unset $ac_var;} ;;
2070 esac ;;
2071 esac
2072 done
2073 (set) 2>&1 |
2074 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2075 *${as_nl}ac_space=\ *)
2076 sed -n \
2077 "s/'\''/'\''\\\\'\'''\''/g;
2078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079 ;; #(
2081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2083 esac |
2084 sort
2086 echo
2088 $as_echo "## ----------------- ##
2089 ## Output variables. ##
2090 ## ----------------- ##"
2091 echo
2092 for ac_var in $ac_subst_vars
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
2099 done | sort
2100 echo
2102 if test -n "$ac_subst_files"; then
2103 $as_echo "## ------------------- ##
2104 ## File substitutions. ##
2105 ## ------------------- ##"
2106 echo
2107 for ac_var in $ac_subst_files
2109 eval ac_val=\$$ac_var
2110 case $ac_val in
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 esac
2113 $as_echo "$ac_var='\''$ac_val'\''"
2114 done | sort
2115 echo
2118 if test -s confdefs.h; then
2119 $as_echo "## ----------- ##
2120 ## confdefs.h. ##
2121 ## ----------- ##"
2122 echo
2123 cat confdefs.h
2124 echo
2126 test "$ac_signal" != 0 &&
2127 $as_echo "$as_me: caught signal $ac_signal"
2128 $as_echo "$as_me: exit $exit_status"
2129 } >&5
2130 rm -f core *.core core.conftest.* &&
2131 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2132 exit $exit_status
2134 for ac_signal in 1 2 13 15; do
2135 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2136 done
2137 ac_signal=0
2139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2140 rm -f -r conftest* confdefs.h
2142 $as_echo "/* confdefs.h */" > confdefs.h
2144 # Predefined preprocessor variables.
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_NAME "$PACKAGE_NAME"
2148 _ACEOF
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2152 _ACEOF
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2156 _ACEOF
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_STRING "$PACKAGE_STRING"
2160 _ACEOF
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164 _ACEOF
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_URL "$PACKAGE_URL"
2168 _ACEOF
2171 # Let the site file select an alternate cache file if it wants to.
2172 # Prefer an explicitly selected file to automatically selected ones.
2173 ac_site_file1=NONE
2174 ac_site_file2=NONE
2175 if test -n "$CONFIG_SITE"; then
2176 # We do not want a PATH search for config.site.
2177 case $CONFIG_SITE in #((
2178 -*) ac_site_file1=./$CONFIG_SITE;;
2179 */*) ac_site_file1=$CONFIG_SITE;;
2180 *) ac_site_file1=./$CONFIG_SITE;;
2181 esac
2182 elif test "x$prefix" != xNONE; then
2183 ac_site_file1=$prefix/share/config.site
2184 ac_site_file2=$prefix/etc/config.site
2185 else
2186 ac_site_file1=$ac_default_prefix/share/config.site
2187 ac_site_file2=$ac_default_prefix/etc/config.site
2189 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2191 test "x$ac_site_file" = xNONE && continue
2192 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2195 sed 's/^/| /' "$ac_site_file" >&5
2196 . "$ac_site_file" \
2197 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199 as_fn_error $? "failed to load site script $ac_site_file
2200 See \`config.log' for more details" "$LINENO" 5; }
2202 done
2204 if test -r "$cache_file"; then
2205 # Some versions of bash will fail to source /dev/null (special files
2206 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2207 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2209 $as_echo "$as_me: loading cache $cache_file" >&6;}
2210 case $cache_file in
2211 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2212 *) . "./$cache_file";;
2213 esac
2215 else
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2217 $as_echo "$as_me: creating cache $cache_file" >&6;}
2218 >$cache_file
2221 # Check that the precious variables saved in the cache have kept the same
2222 # value.
2223 ac_cache_corrupted=false
2224 for ac_var in $ac_precious_vars; do
2225 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2226 eval ac_new_set=\$ac_env_${ac_var}_set
2227 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2228 eval ac_new_val=\$ac_env_${ac_var}_value
2229 case $ac_old_set,$ac_new_set in
2230 set,)
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2232 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2233 ac_cache_corrupted=: ;;
2234 ,set)
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2237 ac_cache_corrupted=: ;;
2238 ,);;
2240 if test "x$ac_old_val" != "x$ac_new_val"; then
2241 # differences in whitespace do not lead to failure.
2242 ac_old_val_w=`echo x $ac_old_val`
2243 ac_new_val_w=`echo x $ac_new_val`
2244 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2246 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2247 ac_cache_corrupted=:
2248 else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2250 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2251 eval $ac_var=\$ac_old_val
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2254 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2256 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2257 fi;;
2258 esac
2259 # Pass precious variables to config.status.
2260 if test "$ac_new_set" = set; then
2261 case $ac_new_val in
2262 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2263 *) ac_arg=$ac_var=$ac_new_val ;;
2264 esac
2265 case " $ac_configure_args " in
2266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2267 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2268 esac
2270 done
2271 if $ac_cache_corrupted; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2275 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2276 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278 ## -------------------- ##
2279 ## Main body of script. ##
2280 ## -------------------- ##
2282 ac_ext=c
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2295 progname=$0
2296 # if PWD already has a value, it is probably wrong.
2297 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2299 # Export original configure arguments for use by sub-configures.
2300 # Quote arguments with shell meta charatcers.
2301 TOPLEVEL_CONFIGURE_ARGUMENTS=
2302 set -- "$progname" "$@"
2303 for ac_arg
2305 case "$ac_arg" in
2306 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2307 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2308 # if the argument is of the form -foo=baz, quote the baz part only
2309 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2310 *) ;;
2311 esac
2312 # Add the quoted argument to the list.
2313 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2314 done
2315 if test "$silent" = yes; then
2316 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2318 # Remove the initial space we just introduced and, as these will be
2319 # expanded by make, quote '$'.
2320 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2323 # Find the build, host, and target systems.
2324 ac_aux_dir=
2325 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2326 if test -f "$ac_dir/install-sh"; then
2327 ac_aux_dir=$ac_dir
2328 ac_install_sh="$ac_aux_dir/install-sh -c"
2329 break
2330 elif test -f "$ac_dir/install.sh"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install.sh -c"
2333 break
2334 elif test -f "$ac_dir/shtool"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/shtool install -c"
2337 break
2339 done
2340 if test -z "$ac_aux_dir"; then
2341 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2344 # These three variables are undocumented and unsupported,
2345 # and are intended to be withdrawn in a future Autoconf release.
2346 # They can cause serious problems if a builder's source tree is in a directory
2347 # whose full name contains unusual characters.
2348 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2349 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2350 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2353 # Make sure we can run config.sub.
2354 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2355 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2358 $as_echo_n "checking build system type... " >&6; }
2359 if ${ac_cv_build+:} false; then :
2360 $as_echo_n "(cached) " >&6
2361 else
2362 ac_build_alias=$build_alias
2363 test "x$ac_build_alias" = x &&
2364 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2365 test "x$ac_build_alias" = x &&
2366 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2367 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2368 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2372 $as_echo "$ac_cv_build" >&6; }
2373 case $ac_cv_build in
2374 *-*-*) ;;
2375 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2376 esac
2377 build=$ac_cv_build
2378 ac_save_IFS=$IFS; IFS='-'
2379 set x $ac_cv_build
2380 shift
2381 build_cpu=$1
2382 build_vendor=$2
2383 shift; shift
2384 # Remember, the first character of IFS is used to create $*,
2385 # except with old shells:
2386 build_os=$*
2387 IFS=$ac_save_IFS
2388 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2391 case ${build_alias} in
2392 "") build_noncanonical=${build} ;;
2393 *) build_noncanonical=${build_alias} ;;
2394 esac
2398 case ${host_alias} in
2399 "") host_noncanonical=${build_noncanonical} ;;
2400 *) host_noncanonical=${host_alias} ;;
2401 esac
2405 case ${target_alias} in
2406 "") target_noncanonical=${host_noncanonical} ;;
2407 *) target_noncanonical=${target_alias} ;;
2408 esac
2413 test "$host_noncanonical" = "$target_noncanonical" &&
2414 test "$program_prefix$program_suffix$program_transform_name" = \
2415 NONENONEs,x,x, &&
2416 program_transform_name=s,y,y,
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2419 $as_echo_n "checking host system type... " >&6; }
2420 if ${ac_cv_host+:} false; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 if test "x$host_alias" = x; then
2424 ac_cv_host=$ac_cv_build
2425 else
2426 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2427 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2432 $as_echo "$ac_cv_host" >&6; }
2433 case $ac_cv_host in
2434 *-*-*) ;;
2435 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2436 esac
2437 host=$ac_cv_host
2438 ac_save_IFS=$IFS; IFS='-'
2439 set x $ac_cv_host
2440 shift
2441 host_cpu=$1
2442 host_vendor=$2
2443 shift; shift
2444 # Remember, the first character of IFS is used to create $*,
2445 # except with old shells:
2446 host_os=$*
2447 IFS=$ac_save_IFS
2448 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2452 $as_echo_n "checking target system type... " >&6; }
2453 if ${ac_cv_target+:} false; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 if test "x$target_alias" = x; then
2457 ac_cv_target=$ac_cv_host
2458 else
2459 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2460 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2465 $as_echo "$ac_cv_target" >&6; }
2466 case $ac_cv_target in
2467 *-*-*) ;;
2468 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2469 esac
2470 target=$ac_cv_target
2471 ac_save_IFS=$IFS; IFS='-'
2472 set x $ac_cv_target
2473 shift
2474 target_cpu=$1
2475 target_vendor=$2
2476 shift; shift
2477 # Remember, the first character of IFS is used to create $*,
2478 # except with old shells:
2479 target_os=$*
2480 IFS=$ac_save_IFS
2481 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2484 # The aliases save the names the user supplied, while $host etc.
2485 # will get canonicalized.
2486 test -n "$target_alias" &&
2487 test "$program_prefix$program_suffix$program_transform_name" = \
2488 NONENONEs,x,x, &&
2489 program_prefix=${target_alias}-
2491 test "$program_prefix" != NONE &&
2492 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2493 # Use a double $ so make ignores it.
2494 test "$program_suffix" != NONE &&
2495 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2496 # Double any \ or $.
2497 # By default was `s,x,x', remove it if useless.
2498 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2499 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2503 # Get 'install' or 'install-sh' and its variants.
2504 # Find a good install program. We prefer a C program (faster),
2505 # so one script is as good as another. But avoid the broken or
2506 # incompatible versions:
2507 # SysV /etc/install, /usr/sbin/install
2508 # SunOS /usr/etc/install
2509 # IRIX /sbin/install
2510 # AIX /bin/install
2511 # AmigaOS /C/install, which installs bootblocks on floppy discs
2512 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2513 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2514 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2515 # OS/2's system install, which has a completely different semantic
2516 # ./install, which can be erroneously created by make from ./install.sh.
2517 # Reject install programs that cannot install multiple files.
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2519 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2520 if test -z "$INSTALL"; then
2521 if ${ac_cv_path_install+:} false; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 # Account for people who put trailing slashes in PATH elements.
2530 case $as_dir/ in #((
2531 ./ | .// | /[cC]/* | \
2532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2533 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2534 /usr/ucb/* ) ;;
2536 # OSF1 and SCO ODT 3.0 have their own names for install.
2537 # Don't use installbsd from OSF since it installs stuff as root
2538 # by default.
2539 for ac_prog in ginstall scoinst install; do
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2542 if test $ac_prog = install &&
2543 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2544 # AIX install. It has an incompatible calling convention.
2546 elif test $ac_prog = install &&
2547 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548 # program-specific install script used by HP pwplus--don't use.
2550 else
2551 rm -rf conftest.one conftest.two conftest.dir
2552 echo one > conftest.one
2553 echo two > conftest.two
2554 mkdir conftest.dir
2555 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2556 test -s conftest.one && test -s conftest.two &&
2557 test -s conftest.dir/conftest.one &&
2558 test -s conftest.dir/conftest.two
2559 then
2560 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2561 break 3
2565 done
2566 done
2568 esac
2570 done
2571 IFS=$as_save_IFS
2573 rm -rf conftest.one conftest.two conftest.dir
2576 if test "${ac_cv_path_install+set}" = set; then
2577 INSTALL=$ac_cv_path_install
2578 else
2579 # As a last resort, use the slow shell script. Don't cache a
2580 # value for INSTALL within a source directory, because that will
2581 # break other packages using the cache if that directory is
2582 # removed, or if the value is a relative name.
2583 INSTALL=$ac_install_sh
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2587 $as_echo "$INSTALL" >&6; }
2589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2590 # It thinks the first close brace ends the variable substitution.
2591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2598 $as_echo_n "checking whether ln works... " >&6; }
2599 if ${acx_cv_prog_LN+:} false; then :
2600 $as_echo_n "(cached) " >&6
2601 else
2602 rm -f conftestdata_t
2603 echo >conftestdata_f
2604 if ln conftestdata_f conftestdata_t 2>/dev/null
2605 then
2606 acx_cv_prog_LN=ln
2607 else
2608 acx_cv_prog_LN=no
2610 rm -f conftestdata_f conftestdata_t
2613 if test $acx_cv_prog_LN = no; then
2614 LN="cp"
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2616 $as_echo "no, using $LN" >&6; }
2617 else
2618 LN="$acx_cv_prog_LN"
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2620 $as_echo "yes" >&6; }
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2624 $as_echo_n "checking whether ln -s works... " >&6; }
2625 LN_S=$as_ln_s
2626 if test "$LN_S" = "ln -s"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2628 $as_echo "yes" >&6; }
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2631 $as_echo "no, using $LN_S" >&6; }
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2635 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2636 if ${ac_cv_path_SED+:} false; then :
2637 $as_echo_n "(cached) " >&6
2638 else
2639 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2640 for ac_i in 1 2 3 4 5 6 7; do
2641 ac_script="$ac_script$as_nl$ac_script"
2642 done
2643 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2644 { ac_script=; unset ac_script;}
2645 if test -z "$SED"; then
2646 ac_path_SED_found=false
2647 # Loop through the user's path and test for each of PROGNAME-LIST
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_prog in sed gsed; do
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2656 as_fn_executable_p "$ac_path_SED" || continue
2657 # Check for GNU ac_path_SED and select it if it is found.
2658 # Check for GNU $ac_path_SED
2659 case `"$ac_path_SED" --version 2>&1` in
2660 *GNU*)
2661 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2663 ac_count=0
2664 $as_echo_n 0123456789 >"conftest.in"
2665 while :
2667 cat "conftest.in" "conftest.in" >"conftest.tmp"
2668 mv "conftest.tmp" "conftest.in"
2669 cp "conftest.in" "conftest.nl"
2670 $as_echo '' >> "conftest.nl"
2671 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2673 as_fn_arith $ac_count + 1 && ac_count=$as_val
2674 if test $ac_count -gt ${ac_path_SED_max-0}; then
2675 # Best one so far, save it but keep looking for a better one
2676 ac_cv_path_SED="$ac_path_SED"
2677 ac_path_SED_max=$ac_count
2679 # 10*(2^10) chars as input seems more than enough
2680 test $ac_count -gt 10 && break
2681 done
2682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2683 esac
2685 $ac_path_SED_found && break 3
2686 done
2687 done
2688 done
2689 IFS=$as_save_IFS
2690 if test -z "$ac_cv_path_SED"; then
2691 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2693 else
2694 ac_cv_path_SED=$SED
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2699 $as_echo "$ac_cv_path_SED" >&6; }
2700 SED="$ac_cv_path_SED"
2701 rm -f conftest.sed
2703 for ac_prog in gawk mawk nawk awk
2705 # Extract the first word of "$ac_prog", so it can be a program name with args.
2706 set dummy $ac_prog; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_AWK+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test -n "$AWK"; then
2713 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722 ac_cv_prog_AWK="$ac_prog"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2726 done
2727 done
2728 IFS=$as_save_IFS
2732 AWK=$ac_cv_prog_AWK
2733 if test -n "$AWK"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2735 $as_echo "$AWK" >&6; }
2736 else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2742 test -n "$AWK" && break
2743 done
2746 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2748 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2749 # a relative path.
2750 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2751 INSTALL="${srcpwd}/install-sh -c"
2754 # Set srcdir to "." if that's what it is.
2755 # This is important for multilib support.
2756 pwd=`${PWDCMD-pwd}`
2757 if test "${pwd}" = "${srcpwd}" ; then
2758 srcdir=.
2761 topsrcdir=$srcpwd
2763 extra_host_args=
2765 ### To add a new directory to the tree, first choose whether it is a target
2766 ### or a host dependent tool. Then put it into the appropriate list
2767 ### (library or tools, host or target), doing a dependency sort.
2769 # Subdirs will be configured in the order listed in build_configdirs,
2770 # configdirs, or target_configdirs; see the serialization section below.
2772 # Dependency sorting is only needed when *configuration* must be done in
2773 # a particular order. In all cases a dependency should be specified in
2774 # the Makefile, whether or not it's implicitly specified here.
2776 # Double entries in build_configdirs, configdirs, or target_configdirs may
2777 # cause circular dependencies and break everything horribly.
2779 # these library is used by various programs built for the build
2780 # environment
2782 build_libs="build-libiberty build-libcpp"
2784 # these tools are built for the build environment
2785 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2787 # these libraries are used by various programs built for the host environment
2789 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2791 # these tools are built for the host environment
2792 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2793 # know that we are building the simulator.
2794 # binutils, gas and ld appear in that order because it makes sense to run
2795 # "make check" in that particular order.
2796 # If --enable-gold is used, "gold" may replace "ld".
2797 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"
2799 # these libraries are built for the target environment, and are built after
2800 # the host libraries and the host tools (which may be a cross compiler)
2801 # Note that libiberty is not a target library.
2802 target_libraries="target-libgcc \
2803 target-libbacktrace \
2804 target-libgloss \
2805 target-newlib \
2806 target-libgomp \
2807 target-liboffloadmic \
2808 target-libhsail-rt \
2809 target-libatomic \
2810 target-libitm \
2811 target-libstdc++-v3 \
2812 target-libsanitizer \
2813 target-libvtv \
2814 target-libssp \
2815 target-libquadmath \
2816 target-libgfortran \
2817 target-libffi \
2818 target-libobjc \
2819 target-libada \
2820 target-libgo \
2821 target-libphobos \
2822 target-zlib"
2824 # these tools are built using the target libraries, and are intended to
2825 # run only in the target environment
2827 # note: any program that *uses* libraries that are in the "target_libraries"
2828 # list belongs in this list.
2830 target_tools="target-rda"
2832 ################################################################################
2834 ## All tools belong in one of the four categories, and are assigned above
2835 ## We assign ${configdirs} this way to remove all embedded newlines. This
2836 ## is important because configure will choke if they ever get through.
2837 ## ${configdirs} is directories we build using the host tools.
2838 ## ${target_configdirs} is directories we build using the target tools.
2839 configdirs=`echo ${host_libs} ${host_tools}`
2840 target_configdirs=`echo ${target_libraries} ${target_tools}`
2841 build_configdirs=`echo ${build_libs} ${build_tools}`
2845 ################################################################################
2847 srcname="gnu development package"
2849 # This gets set non-empty for some net releases of packages.
2850 appdirs=""
2852 # Define is_cross_compiler to save on calls to 'test'.
2853 is_cross_compiler=
2854 if test x"${host}" = x"${target}" ; then
2855 is_cross_compiler=no
2856 else
2857 is_cross_compiler=yes
2860 # Find the build and target subdir names.
2862 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2863 # have matching libraries, they should use host libraries: Makefile.tpl
2864 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2865 # However, they still use the build modules, because the corresponding
2866 # host modules (e.g. bison) are only built for the host when bootstrap
2867 # finishes. So:
2868 # - build_subdir is where we find build modules, and never changes.
2869 # - build_libsubdir is where we find build libraries, and can be overridden.
2871 # Prefix 'build-' so this never conflicts with target_subdir.
2872 build_subdir="build-${build_noncanonical}"
2874 # Check whether --with-build-libsubdir was given.
2875 if test "${with_build_libsubdir+set}" = set; then :
2876 withval=$with_build_libsubdir; build_libsubdir="$withval"
2877 else
2878 build_libsubdir="$build_subdir"
2881 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2882 if ( test $srcdir = . && test -d gcc ) \
2883 || test -d $srcdir/../host-${host_noncanonical}; then
2884 host_subdir="host-${host_noncanonical}"
2885 else
2886 host_subdir=.
2888 # No prefix.
2889 target_subdir=${target_noncanonical}
2891 # Be sure to cover against remnants of an in-tree build.
2892 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2893 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2894 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2897 # Skipdirs are removed silently.
2898 skipdirs=
2899 # Noconfigdirs are removed loudly.
2900 noconfigdirs=""
2902 use_gnu_ld=
2903 # Make sure we don't let GNU ld be added if we didn't want it.
2904 if test x$with_gnu_ld = xno ; then
2905 use_gnu_ld=no
2906 noconfigdirs="$noconfigdirs ld gold"
2909 use_gnu_as=
2910 # Make sure we don't let GNU as be added if we didn't want it.
2911 if test x$with_gnu_as = xno ; then
2912 use_gnu_as=no
2913 noconfigdirs="$noconfigdirs gas"
2916 use_included_zlib=
2918 # Check whether --with-system-zlib was given.
2919 if test "${with_system_zlib+set}" = set; then :
2920 withval=$with_system_zlib;
2923 # Make sure we don't let ZLIB be added if we didn't want it.
2924 if test x$with_system_zlib = xyes ; then
2925 use_included_zlib=no
2926 noconfigdirs="$noconfigdirs zlib"
2929 # some tools are so dependent upon X11 that if we're not building with X,
2930 # it's not even worth trying to configure, much less build, that tool.
2932 case ${with_x} in
2933 yes | "") ;; # the default value for this tree is that X11 is available
2935 skipdirs="${skipdirs} tk itcl libgui"
2936 # We won't be able to build gdbtk without X.
2937 enable_gdbtk=no
2939 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2940 esac
2942 # Some are only suitable for cross toolchains.
2943 # Remove these if host=target.
2944 cross_only="target-libgloss target-newlib target-opcodes"
2946 case $is_cross_compiler in
2947 no) skipdirs="${skipdirs} ${cross_only}" ;;
2948 esac
2950 # If both --with-headers and --with-libs are specified, default to
2951 # --without-newlib.
2952 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2953 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2954 if test x"${with_newlib}" = x ; then
2955 with_newlib=no
2959 # Recognize --with-newlib/--without-newlib.
2960 case ${with_newlib} in
2961 no) skipdirs="${skipdirs} target-newlib" ;;
2962 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2963 esac
2965 # Check whether --enable-as-accelerator-for was given.
2966 if test "${enable_as_accelerator_for+set}" = set; then :
2967 enableval=$enable_as_accelerator_for;
2971 # Check whether --enable-offload-targets was given.
2972 if test "${enable_offload_targets+set}" = set; then :
2973 enableval=$enable_offload_targets;
2974 if test x"$enable_offload_targets" = x; then
2975 as_fn_error $? "no offload targets specified" "$LINENO" 5
2978 else
2979 enable_offload_targets=
2983 # Handle --enable-gold, --enable-ld.
2984 # --disable-gold [--enable-ld]
2985 # Build only ld. Default option.
2986 # --enable-gold [--enable-ld]
2987 # Build both gold and ld. Install gold as "ld.gold", install ld
2988 # as "ld.bfd" and "ld".
2989 # --enable-gold=default [--enable-ld]
2990 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2991 # install ld as "ld.bfd".
2992 # --enable-gold[=default] --disable-ld
2993 # Build only gold, which is then installed as both "ld.gold" and "ld".
2994 # --enable-gold --enable-ld=default
2995 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2996 # and ld.bfd).
2997 # In other words, ld is default
2998 # --enable-gold=default --enable-ld=default
2999 # Error.
3001 default_ld=
3002 # Check whether --enable-gold was given.
3003 if test "${enable_gold+set}" = set; then :
3004 enableval=$enable_gold; ENABLE_GOLD=$enableval
3005 else
3006 ENABLE_GOLD=no
3009 case "${ENABLE_GOLD}" in
3010 yes|default)
3011 # Check for ELF target.
3012 is_elf=no
3013 case "${target}" in
3014 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3015 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3016 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3017 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3018 case "${target}" in
3019 *-*-linux*aout* | *-*-linux*oldld*)
3022 is_elf=yes
3024 esac
3025 esac
3027 if test "$is_elf" = "yes"; then
3028 # Check for target supported by gold.
3029 case "${target}" in
3030 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3031 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3032 configdirs="$configdirs gold"
3033 if test x${ENABLE_GOLD} = xdefault; then
3034 default_ld=gold
3036 ENABLE_GOLD=yes
3038 esac
3044 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3046 esac
3048 # Check whether --enable-ld was given.
3049 if test "${enable_ld+set}" = set; then :
3050 enableval=$enable_ld; ENABLE_LD=$enableval
3051 else
3052 ENABLE_LD=yes
3056 case "${ENABLE_LD}" in
3057 default)
3058 if test x${default_ld} != x; then
3059 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3062 yes)
3065 if test x${ENABLE_GOLD} != xyes; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3067 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3069 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3072 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3074 esac
3076 # PR gas/19109
3077 # Decide the default method for compressing debug sections.
3078 # Provide a configure time option to override our default.
3079 # Check whether --enable-compressed_debug_sections was given.
3080 if test "${enable_compressed_debug_sections+set}" = set; then :
3081 enableval=$enable_compressed_debug_sections;
3082 if test x"$enable_compressed_debug_sections" = xyes; then
3083 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3086 else
3087 enable_compressed_debug_sections=
3091 # Configure extra directories which are host specific
3093 case "${host}" in
3094 *-cygwin*)
3095 configdirs="$configdirs libtermcap" ;;
3096 esac
3098 # A target can indicate whether a language isn't supported for some reason.
3099 # Only spaces may be used in this macro; not newlines or tabs.
3100 unsupported_languages=
3102 # Remove more programs from consideration, based on the host or
3103 # target this usually means that a port of the program doesn't
3104 # exist yet.
3106 case "${host}" in
3107 i[3456789]86-*-msdosdjgpp*)
3108 noconfigdirs="$noconfigdirs tcl tk itcl"
3110 esac
3113 # Check whether --enable-libquadmath was given.
3114 if test "${enable_libquadmath+set}" = set; then :
3115 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3116 else
3117 ENABLE_LIBQUADMATH=yes
3120 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3121 noconfigdirs="$noconfigdirs target-libquadmath"
3125 # Check whether --enable-libquadmath-support was given.
3126 if test "${enable_libquadmath_support+set}" = set; then :
3127 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3128 else
3129 ENABLE_LIBQUADMATH_SUPPORT=yes
3132 enable_libquadmath_support=
3133 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3134 enable_libquadmath_support=no
3138 # Check whether --enable-libada was given.
3139 if test "${enable_libada+set}" = set; then :
3140 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3141 else
3142 ENABLE_LIBADA=yes
3145 if test "${ENABLE_LIBADA}" != "yes" ; then
3146 noconfigdirs="$noconfigdirs gnattools"
3149 # Check whether --enable-libssp was given.
3150 if test "${enable_libssp+set}" = set; then :
3151 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3152 else
3153 ENABLE_LIBSSP=yes
3157 # Check whether --enable-libstdcxx was given.
3158 if test "${enable_libstdcxx+set}" = set; then :
3159 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3160 else
3161 ENABLE_LIBSTDCXX=default
3164 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3165 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3168 # If this is accelerator compiler and its target is intelmic we enable
3169 # target liboffloadmic by default. If this is compiler with offloading
3170 # for intelmic we enable host liboffloadmic by default. Otherwise
3171 # liboffloadmic is disabled by default.
3172 # Check whether --enable-liboffloadmic was given.
3173 if test "${enable_liboffloadmic+set}" = set; then :
3174 enableval=$enable_liboffloadmic; case "$enableval" in
3175 no | host | target)
3176 enable_liboffloadmic=$enableval ;;
3178 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3179 esac
3180 else
3181 if test x"$enable_as_accelerator_for" != x; then
3182 case "${target}" in
3183 *-intelmic-* | *-intelmicemul-*)
3184 enable_liboffloadmic=target
3185 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3188 enable_liboffloadmic=no
3190 esac
3191 else
3192 case "${enable_offload_targets}" in
3193 *-intelmic-* | *-intelmicemul-*)
3194 enable_liboffloadmic=host
3195 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3198 enable_liboffloadmic=no
3200 esac
3206 # Enable libgomp by default on hosted POSIX systems, and a few others.
3207 if test x$enable_libgomp = x ; then
3208 case "${target}" in
3209 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3211 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3213 *-*-solaris2* | *-*-hpux11*)
3215 *-*-darwin* | *-*-aix*)
3217 nvptx*-*-* | amdgcn*-*-*)
3220 noconfigdirs="$noconfigdirs target-libgomp"
3222 esac
3225 # Disable libatomic on unsupported systems.
3226 if test -d ${srcdir}/libatomic; then
3227 if test x$enable_libatomic = x; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3229 $as_echo_n "checking for libatomic support... " >&6; }
3230 if (srcdir=${srcdir}/libatomic; \
3231 . ${srcdir}/configure.tgt; \
3232 test -n "$UNSUPPORTED")
3233 then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 noconfigdirs="$noconfigdirs target-libatomic"
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3244 # Disable liboffloadmic on unsupported systems.
3245 if test -d ${srcdir}/liboffloadmic; then
3246 if test x$enable_liboffloadmic != xno; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3248 $as_echo_n "checking for liboffloadmic support... " >&6; }
3249 if (srcdir=${srcdir}/liboffloadmic; \
3250 . ${srcdir}/configure.tgt; \
3251 test -n "$UNSUPPORTED")
3252 then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 noconfigdirs="$noconfigdirs target-liboffloadmic"
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 $as_echo "yes" >&6; }
3263 # Disable libitm on unsupported systems.
3264 if test -d ${srcdir}/libitm; then
3265 if test x$enable_libitm = x; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3267 $as_echo_n "checking for libitm support... " >&6; }
3268 if (srcdir=${srcdir}/libitm; \
3269 . ${srcdir}/configure.tgt; \
3270 test -n "$UNSUPPORTED")
3271 then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 noconfigdirs="$noconfigdirs target-libitm"
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277 $as_echo "yes" >&6; }
3282 # Disable libsanitizer on unsupported systems.
3283 if test -d ${srcdir}/libsanitizer; then
3284 if test x$enable_libsanitizer = x; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3286 $as_echo_n "checking for libsanitizer support... " >&6; }
3287 if (srcdir=${srcdir}/libsanitizer; \
3288 . ${srcdir}/configure.tgt; \
3289 test -n "$UNSUPPORTED")
3290 then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 noconfigdirs="$noconfigdirs target-libsanitizer"
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296 $as_echo "yes" >&6; }
3301 # Disable libvtv on unsupported systems.
3302 if test -d ${srcdir}/libvtv; then
3303 if test x$enable_libvtv = x; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3305 $as_echo_n "checking for libvtv support... " >&6; }
3306 if (srcdir=${srcdir}/libvtv; \
3307 . ${srcdir}/configure.tgt; \
3308 test "$VTV_SUPPORTED" != "yes")
3309 then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 noconfigdirs="$noconfigdirs target-libvtv"
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315 $as_echo "yes" >&6; }
3321 # Disable libhsail-rt on unsupported systems.
3322 if test -d ${srcdir}/libhsail-rt; then
3323 if test x$enable_libhsail_rt = x; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3325 $as_echo_n "checking for libhsail-rt support... " >&6; }
3326 if (srcdir=${srcdir}/libhsail-rt; \
3327 . ${srcdir}/configure.tgt; \
3328 test -n "$UNSUPPORTED")
3329 then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 unsupported_languages="$unsupported_languages brig"
3333 # This implicitly disables also target-libhsail-rt as it won't
3334 # get added to the build without BRIG FE.
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 $as_echo "yes" >&6; }
3343 # Disable libquadmath for some systems.
3344 case "${target}" in
3345 avr-*-*)
3346 noconfigdirs="$noconfigdirs target-libquadmath"
3348 # libquadmath is unused on AIX and libquadmath build process use of
3349 # LD_LIBRARY_PATH can break AIX bootstrap.
3350 powerpc-*-aix* | rs6000-*-aix*)
3351 noconfigdirs="$noconfigdirs target-libquadmath"
3353 esac
3355 # Disable libssp for some systems.
3356 case "${target}" in
3357 avr-*-*)
3358 # No hosted I/O support.
3359 noconfigdirs="$noconfigdirs target-libssp"
3361 bpf-*-*)
3362 noconfigdirs="$noconfigdirs target-libssp"
3364 powerpc-*-aix* | rs6000-*-aix*)
3365 noconfigdirs="$noconfigdirs target-libssp"
3367 pru-*-*)
3368 # No hosted I/O support.
3369 noconfigdirs="$noconfigdirs target-libssp"
3371 rl78-*-*)
3372 # libssp uses a misaligned load to trigger a fault, but the RL78
3373 # doesn't fault for those - instead, it gives a build-time error
3374 # for explicit misaligned loads.
3375 noconfigdirs="$noconfigdirs target-libssp"
3377 visium-*-*)
3378 # No hosted I/O support.
3379 noconfigdirs="$noconfigdirs target-libssp"
3381 esac
3383 # Disable libstdc++-v3 for some systems.
3384 # Allow user to override this if they pass --enable-libstdc++-v3
3385 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3386 case "${target}" in
3387 *-*-vxworks*)
3388 # VxWorks uses the Dinkumware C++ library.
3389 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3391 amdgcn*-*-*)
3392 # Not ported/fails to build when using newlib.
3393 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395 arm*-wince-pe*)
3396 # the C++ libraries don't build on top of CE's C libraries
3397 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399 avr-*-*)
3400 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3402 bpf-*-*)
3403 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405 ft32-*-*)
3406 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408 esac
3411 # Disable C++ on systems where it is known to not work.
3412 # For testing, you can override this with --enable-languages=c++.
3413 case ,${enable_languages}, in
3414 *,c++,*)
3417 case "${target}" in
3418 bpf-*-*)
3419 unsupported_languages="$unsupported_languages c++"
3421 esac
3423 esac
3425 # Disable Objc on systems where it is known to not work.
3426 # For testing, you can override this with --enable-languages=objc.
3427 case ,${enable_languages}, in
3428 *,objc,*)
3431 case "${target}" in
3432 bpf-*-*)
3433 unsupported_languages="$unsupported_languages objc"
3435 esac
3437 esac
3439 # Disable D on systems where it is known to not work.
3440 # For testing, you can override this with --enable-languages=d.
3441 case ,${enable_languages}, in
3442 *,d,*)
3445 case "${target}" in
3446 *-*-darwin*)
3447 unsupported_languages="$unsupported_languages d"
3449 bpf-*-*)
3450 unsupported_languages="$unsupported_languages d"
3452 esac
3454 esac
3456 # Disable libphobos on unsupported systems.
3457 # For testing, you can override this with --enable-libphobos.
3458 if test -d ${srcdir}/libphobos; then
3459 if test x$enable_libphobos = x; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3461 $as_echo_n "checking for libphobos support... " >&6; }
3462 if (srcdir=${srcdir}/libphobos; \
3463 . ${srcdir}/configure.tgt; \
3464 test "$LIBPHOBOS_SUPPORTED" != "yes")
3465 then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3468 noconfigdirs="$noconfigdirs target-libphobos"
3469 else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3471 $as_echo "yes" >&6; }
3476 # Disable Fortran for some systems.
3477 case "${target}" in
3478 mmix-*-*)
3479 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3480 unsupported_languages="$unsupported_languages fortran"
3482 bpf-*-*)
3483 unsupported_languages="$unsupported_languages fortran"
3485 esac
3487 # Disable libffi for some systems.
3488 case "${target}" in
3489 powerpc-*-darwin*)
3491 i[3456789]86-*-darwin*)
3493 x86_64-*-darwin[912]*)
3495 *-*-darwin*)
3496 noconfigdirs="$noconfigdirs target-libffi"
3498 *-*-netware*)
3499 noconfigdirs="$noconfigdirs target-libffi"
3501 *-*-phoenix*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3504 *-*-rtems*)
3505 noconfigdirs="$noconfigdirs target-libffi"
3507 *-*-tpf*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3510 *-*-uclinux*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3513 *-*-vxworks*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3516 aarch64*-*-freebsd*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3519 alpha*-*-*vms*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3522 arm*-*-freebsd*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3525 arm-wince-pe)
3526 noconfigdirs="$noconfigdirs target-libffi"
3528 arm*-*-symbianelf*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3531 bpf-*-*)
3532 noconfigdirs="$noconfigdirs target-libffi"
3534 cris-*-* | crisv32-*-*)
3535 case "${target}" in
3536 *-*-linux*)
3538 *) # See PR46792 regarding target-libffi.
3539 noconfigdirs="$noconfigdirs target-libffi";;
3540 esac
3542 hppa*64*-*-hpux*)
3543 noconfigdirs="$noconfigdirs target-libffi"
3545 hppa*-hp-hpux11*)
3547 hppa*-*-hpux*)
3548 noconfigdirs="$noconfigdirs target-libffi"
3550 ia64*-*-*vms*)
3551 noconfigdirs="$noconfigdirs target-libffi"
3553 i[3456789]86-w64-mingw*)
3554 noconfigdirs="$noconfigdirs target-libffi"
3556 i[3456789]86-*-mingw*)
3557 noconfigdirs="$noconfigdirs target-libffi"
3559 x86_64-*-mingw*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3562 mmix-*-*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3565 powerpc-*-aix*)
3567 rs6000-*-aix*)
3569 ft32-*-*)
3570 noconfigdirs="$noconfigdirs target-libffi"
3572 *-*-lynxos*)
3573 noconfigdirs="$noconfigdirs target-libffi"
3575 esac
3577 # Disable the go frontend on systems where it is known to not work. Please keep
3578 # this in sync with contrib/config-list.mk.
3579 case "${target}" in
3580 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3581 unsupported_languages="$unsupported_languages go"
3583 esac
3585 # Only allow gdbserver on some systems.
3586 if test -d ${srcdir}/gdbserver; then
3587 if test x$enable_gdbserver = x; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3589 $as_echo_n "checking for gdbserver support... " >&6; }
3590 if (srcdir=${srcdir}/gdbserver; \
3591 . ${srcdir}/configure.srv; \
3592 test -n "$UNSUPPORTED")
3593 then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 noconfigdirs="$noconfigdirs gdbserver"
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3599 $as_echo "yes" >&6; }
3604 # Disable libgo for some systems where it is known to not work.
3605 # For testing, you can easily override this with --enable-libgo.
3606 if test x$enable_libgo = x; then
3607 case "${target}" in
3608 *-*-darwin*)
3609 # PR 46986
3610 noconfigdirs="$noconfigdirs target-libgo"
3612 *-*-cygwin* | *-*-mingw*)
3613 noconfigdirs="$noconfigdirs target-libgo"
3615 bpf-*-*)
3616 noconfigdirs="$noconfigdirs target-libgo"
3618 esac
3621 # Default libgloss CPU subdirectory.
3622 libgloss_dir="$target_cpu"
3624 case "${target}" in
3625 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3626 libgloss_dir=wince
3628 aarch64*-*-* )
3629 libgloss_dir=aarch64
3631 arm*-*-*)
3632 libgloss_dir=arm
3634 cris-*-* | crisv32-*-*)
3635 libgloss_dir=cris
3637 hppa*-*-*)
3638 libgloss_dir=pa
3640 i[3456789]86-*-*)
3641 libgloss_dir=i386
3643 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3644 libgloss_dir=m68hc11
3646 m68*-*-* | fido-*-*)
3647 libgloss_dir=m68k
3649 mips*-*-*)
3650 libgloss_dir=mips
3652 powerpc*-*-*)
3653 libgloss_dir=rs6000
3655 pru-*-*)
3656 libgloss_dir=pru
3658 sparc*-*-*)
3659 libgloss_dir=sparc
3661 esac
3663 # Disable newlib and libgloss for various target OSes.
3664 case "${target}" in
3665 alpha*-dec-osf*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 i[3456789]86-*-linux*)
3669 # This section makes it possible to build newlib natively on linux.
3670 # If we are using a cross compiler then don't configure newlib.
3671 if test x${is_cross_compiler} != xno ; then
3672 noconfigdirs="$noconfigdirs target-newlib"
3674 noconfigdirs="$noconfigdirs target-libgloss"
3675 # If we are not using a cross compiler, do configure newlib.
3676 # Note however, that newlib will only be configured in this situation
3677 # if the --with-newlib option has been given, because otherwise
3678 # 'target-newlib' will appear in skipdirs.
3680 i[3456789]86-*-rdos*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3684 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 sparc-*-sunos4*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 bpf-*-*)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 *-*-aix*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 *-*-beos*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 *-*-chorusos)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 *-*-dragonfly*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 *-*-freebsd*)
3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 *-*-lynxos*)
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 *-*-mingw*)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 *-*-netbsd*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 *-*-netware*)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 *-*-tpf*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 *-*-uclinux*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 *-*-vxworks*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 esac
3733 case "${target}" in
3734 *-*-chorusos)
3736 aarch64-*-darwin*)
3737 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3738 noconfigdirs="$noconfigdirs sim target-rda"
3740 amdgcn*-*-*)
3742 arm-*-darwin*)
3743 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744 noconfigdirs="$noconfigdirs sim target-rda"
3746 powerpc-*-darwin*)
3747 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3748 noconfigdirs="$noconfigdirs sim target-rda"
3750 i[3456789]86-*-darwin*)
3751 noconfigdirs="$noconfigdirs ld gprof"
3752 noconfigdirs="$noconfigdirs sim target-rda"
3754 x86_64-*-darwin[912]*)
3755 noconfigdirs="$noconfigdirs ld gas gprof"
3756 noconfigdirs="$noconfigdirs sim target-rda"
3758 *-*-darwin*)
3759 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3760 noconfigdirs="$noconfigdirs sim target-rda"
3762 *-*-dragonfly*)
3764 *-*-freebsd*)
3765 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3766 && test -f /usr/local/include/gmp.h; then
3767 with_gmp=/usr/local
3770 *-*-kaos*)
3771 # Remove unsupported stuff on all kaOS configurations.
3772 noconfigdirs="$noconfigdirs target-libgloss"
3774 *-*-netbsd*)
3776 *-*-netware*)
3778 *-*-phoenix*)
3779 noconfigdirs="$noconfigdirs target-libgloss"
3781 *-*-rtems*)
3782 noconfigdirs="$noconfigdirs target-libgloss"
3784 # The tpf target doesn't support gdb yet.
3785 *-*-tpf*)
3786 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3788 *-*-uclinux*)
3789 noconfigdirs="$noconfigdirs target-rda"
3791 *-*-vxworks*)
3793 alpha*-dec-osf*)
3794 # ld works, but does not support shared libraries.
3795 # gas doesn't generate exception information.
3796 noconfigdirs="$noconfigdirs gas ld"
3798 alpha*-*-*vms*)
3799 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3801 alpha*-*-*)
3802 # newlib is not 64 bit ready
3803 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3805 bpf-*-*)
3806 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3808 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3809 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3811 arc*-*-*)
3812 noconfigdirs="$noconfigdirs sim"
3814 arm-*-pe*)
3815 noconfigdirs="$noconfigdirs target-libgloss"
3817 arm-*-riscix*)
3818 noconfigdirs="$noconfigdirs ld target-libgloss"
3820 avr-*-*)
3821 if test x${with_avrlibc} != xno; then
3822 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3825 c4x-*-* | tic4x-*-*)
3826 noconfigdirs="$noconfigdirs target-libgloss"
3828 tic54x-*-*)
3829 noconfigdirs="$noconfigdirs target-libgloss gdb"
3831 d10v-*-*)
3832 noconfigdirs="$noconfigdirs target-libgloss"
3834 d30v-*-*)
3835 noconfigdirs="$noconfigdirs gdb"
3837 fr30-*-elf*)
3838 noconfigdirs="$noconfigdirs gdb"
3840 ft32-*-*)
3841 noconfigdirs="$noconfigdirs target-rda gprof"
3843 moxie-*-*)
3844 noconfigdirs="$noconfigdirs"
3846 h8300*-*-*)
3847 noconfigdirs="$noconfigdirs target-libgloss"
3849 h8500-*-*)
3850 noconfigdirs="$noconfigdirs target-libgloss"
3852 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3854 hppa*64*-*-hpux*)
3855 noconfigdirs="$noconfigdirs gdb"
3857 hppa*-*-hpux11*)
3858 noconfigdirs="$noconfigdirs gdb ld"
3860 hppa*64*-*-linux*)
3862 hppa*-*-linux*)
3864 hppa*-*-*elf* | \
3865 hppa*-*-lites* | \
3866 hppa*-*-openbsd* | \
3867 hppa*64*-*-*)
3869 hppa*-*-pro*)
3871 hppa*-*-*)
3872 noconfigdirs="$noconfigdirs ld"
3874 i960-*-*)
3875 noconfigdirs="$noconfigdirs gdb"
3877 ia64*-*-elf*)
3878 # No gdb support yet.
3879 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3881 ia64*-**-hpux*)
3882 # No ld support yet.
3883 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3885 ia64*-*-*vms*)
3886 # No ld support yet.
3887 noconfigdirs="$noconfigdirs libgui itcl ld"
3889 i[3456789]86-w64-mingw*)
3891 i[3456789]86-*-mingw*)
3892 target_configdirs="$target_configdirs target-winsup"
3894 *-*-cygwin*)
3895 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3896 noconfigdirs="$noconfigdirs target-libgloss"
3897 # always build newlib if winsup directory is present.
3898 if test -d "$srcdir/winsup/cygwin"; then
3899 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3900 elif test -d "$srcdir/newlib"; then
3901 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3904 i[3456789]86-*-pe)
3905 noconfigdirs="$noconfigdirs target-libgloss"
3907 i[3456789]86-*-sco3.2v5*)
3908 # The linker does not yet know about weak symbols in COFF,
3909 # and is not configured to handle mixed ELF and COFF.
3910 noconfigdirs="$noconfigdirs ld target-libgloss"
3912 i[3456789]86-*-sco*)
3913 noconfigdirs="$noconfigdirs gprof target-libgloss"
3915 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3916 noconfigdirs="$noconfigdirs target-libgloss"
3918 i[3456789]86-*-sysv4*)
3919 noconfigdirs="$noconfigdirs target-libgloss"
3921 i[3456789]86-*-beos*)
3922 noconfigdirs="$noconfigdirs gdb"
3924 i[3456789]86-*-rdos*)
3925 noconfigdirs="$noconfigdirs gdb"
3927 mmix-*-*)
3928 noconfigdirs="$noconfigdirs gdb"
3930 mt-*-*)
3931 noconfigdirs="$noconfigdirs sim"
3933 nfp-*-*)
3934 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3935 noconfigdirs="$noconfigdirs $target_libraries"
3937 pdp11-*-*)
3938 noconfigdirs="$noconfigdirs gdb gprof"
3940 powerpc-*-aix*)
3941 # copied from rs6000-*-* entry
3942 noconfigdirs="$noconfigdirs gprof"
3944 powerpc*-*-winnt* | powerpc*-*-pe*)
3945 target_configdirs="$target_configdirs target-winsup"
3946 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3947 # always build newlib.
3948 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3950 # This is temporary until we can link against shared libraries
3951 powerpcle-*-solaris*)
3952 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3954 powerpc-*-beos*)
3955 noconfigdirs="$noconfigdirs gdb"
3957 rs6000-*-lynxos*)
3958 noconfigdirs="$noconfigdirs gprof"
3960 rs6000-*-aix*)
3961 noconfigdirs="$noconfigdirs gprof"
3963 rs6000-*-*)
3964 noconfigdirs="$noconfigdirs gprof"
3966 m68k-apollo-*)
3967 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3969 microblaze*)
3970 noconfigdirs="$noconfigdirs gprof"
3972 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3973 if test x$with_newlib = xyes; then
3974 noconfigdirs="$noconfigdirs gprof"
3977 mips*-*-irix5*)
3978 noconfigdirs="$noconfigdirs gprof target-libgloss"
3980 mips*-*-irix6*)
3981 noconfigdirs="$noconfigdirs gprof target-libgloss"
3983 mips*-*-bsd*)
3984 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3986 mips*-*-linux*)
3988 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3989 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3990 noconfigdirs="$noconfigdirs ld gas gprof"
3992 mips*-*-*)
3993 noconfigdirs="$noconfigdirs gprof"
3995 nvptx*-*-*)
3996 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3998 sh-*-*)
3999 case "${target}" in
4000 sh*-*-elf)
4003 noconfigdirs="$noconfigdirs target-libgloss" ;;
4004 esac
4006 sparc-*-sunos4*)
4007 if test x${is_cross_compiler} = xno ; then
4008 use_gnu_ld=no
4011 tic6x-*-*)
4012 noconfigdirs="$noconfigdirs sim"
4014 tilepro*-*-* | tilegx*-*-*)
4015 noconfigdirs="$noconfigdirs sim"
4017 v810-*-*)
4018 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4020 vax-*-*)
4021 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4023 wasm32-*-*)
4024 noconfigdirs="$noconfigdirs ld"
4026 esac
4028 # If we aren't building newlib, then don't build libgloss, since libgloss
4029 # depends upon some newlib header files.
4030 case "${noconfigdirs}" in
4031 *target-libgloss*) ;;
4032 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4033 esac
4035 # Work in distributions that contain no compiler tools, like Autoconf.
4036 host_makefile_frag=/dev/null
4037 if test -d ${srcdir}/config ; then
4038 case "${host}" in
4039 i[3456789]86-*-msdosdjgpp*)
4040 host_makefile_frag="config/mh-djgpp"
4042 *-cygwin*)
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4045 $as_echo_n "checking to see if cat works as expected... " >&6; }
4046 echo a >cygwin-cat-check
4047 if test `cat cygwin-cat-check` = a ; then
4048 rm cygwin-cat-check
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4050 $as_echo "yes" >&6; }
4051 else
4052 rm cygwin-cat-check
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4055 as_fn_error $? "The cat command does not ignore carriage return characters.
4056 Please either mount the build directory in binary mode or run the following
4057 commands before running any configure script:
4058 set -o igncr
4059 export SHELLOPTS
4060 " "$LINENO" 5
4063 host_makefile_frag="config/mh-cygwin"
4065 *-mingw*)
4066 host_makefile_frag="config/mh-mingw"
4068 alpha*-linux*)
4069 host_makefile_frag="config/mh-alpha-linux"
4071 hppa*-hp-hpux10*)
4072 host_makefile_frag="config/mh-pa-hpux10"
4074 hppa*-hp-hpux*)
4075 host_makefile_frag="config/mh-pa"
4077 hppa*-*)
4078 host_makefile_frag="config/mh-pa"
4080 *-*-darwin*)
4081 host_makefile_frag="config/mh-darwin"
4083 powerpc-*-aix*)
4084 host_makefile_frag="config/mh-ppc-aix"
4086 rs6000-*-aix*)
4087 host_makefile_frag="config/mh-ppc-aix"
4089 esac
4092 if test "${build}" != "${host}" ; then
4093 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4094 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4095 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4096 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4097 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4098 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4099 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4100 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4101 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4102 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4103 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4104 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4105 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4106 else
4107 AR_FOR_BUILD="\$(AR)"
4108 AS_FOR_BUILD="\$(AS)"
4109 CC_FOR_BUILD="\$(CC)"
4110 CXX_FOR_BUILD="\$(CXX)"
4111 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4112 GOC_FOR_BUILD="\$(GOC)"
4113 GDC_FOR_BUILD="\$(GDC)"
4114 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4115 LD_FOR_BUILD="\$(LD)"
4116 NM_FOR_BUILD="\$(NM)"
4117 RANLIB_FOR_BUILD="\$(RANLIB)"
4118 WINDRES_FOR_BUILD="\$(WINDRES)"
4119 WINDMC_FOR_BUILD="\$(WINDMC)"
4122 ac_ext=c
4123 ac_cpp='$CPP $CPPFLAGS'
4124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 if test -n "$ac_tool_prefix"; then
4128 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4129 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_CC+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 break 2
4149 done
4150 done
4151 IFS=$as_save_IFS
4155 CC=$ac_cv_prog_CC
4156 if test -n "$CC"; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4158 $as_echo "$CC" >&6; }
4159 else
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4166 if test -z "$ac_cv_prog_CC"; then
4167 ac_ct_CC=$CC
4168 # Extract the first word of "gcc", so it can be a program name with args.
4169 set dummy gcc; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 if test -n "$ac_ct_CC"; then
4176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185 ac_cv_prog_ac_ct_CC="gcc"
4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 break 2
4189 done
4190 done
4191 IFS=$as_save_IFS
4195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4196 if test -n "$ac_ct_CC"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4198 $as_echo "$ac_ct_CC" >&6; }
4199 else
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4204 if test "x$ac_ct_CC" = x; then
4205 CC=""
4206 else
4207 case $cross_compiling:$ac_tool_warned in
4208 yes:)
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4211 ac_tool_warned=yes ;;
4212 esac
4213 CC=$ac_ct_CC
4215 else
4216 CC="$ac_cv_prog_CC"
4219 if test -z "$CC"; then
4220 if test -n "$ac_tool_prefix"; then
4221 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4222 set dummy ${ac_tool_prefix}cc; ac_word=$2
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 $as_echo_n "checking for $ac_word... " >&6; }
4225 if ${ac_cv_prog_CC+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 if test -n "$CC"; then
4229 ac_cv_prog_CC="$CC" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4238 ac_cv_prog_CC="${ac_tool_prefix}cc"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4242 done
4243 done
4244 IFS=$as_save_IFS
4248 CC=$ac_cv_prog_CC
4249 if test -n "$CC"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251 $as_echo "$CC" >&6; }
4252 else
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4260 if test -z "$CC"; then
4261 # Extract the first word of "cc", so it can be a program name with args.
4262 set dummy cc; ac_word=$2
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264 $as_echo_n "checking for $ac_word... " >&6; }
4265 if ${ac_cv_prog_CC+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 if test -n "$CC"; then
4269 ac_cv_prog_CC="$CC" # Let the user override the test.
4270 else
4271 ac_prog_rejected=no
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4280 ac_prog_rejected=yes
4281 continue
4283 ac_cv_prog_CC="cc"
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4287 done
4288 done
4289 IFS=$as_save_IFS
4291 if test $ac_prog_rejected = yes; then
4292 # We found a bogon in the path, so make sure we never use it.
4293 set dummy $ac_cv_prog_CC
4294 shift
4295 if test $# != 0; then
4296 # We chose a different compiler from the bogus one.
4297 # However, it has the same basename, so the bogon will be chosen
4298 # first if we set CC to just the basename; use the full file name.
4299 shift
4300 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4305 CC=$ac_cv_prog_CC
4306 if test -n "$CC"; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4308 $as_echo "$CC" >&6; }
4309 else
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4316 if test -z "$CC"; then
4317 if test -n "$ac_tool_prefix"; then
4318 for ac_prog in cl.exe
4320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 $as_echo_n "checking for $ac_word... " >&6; }
4324 if ${ac_cv_prog_CC+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 if test -n "$CC"; then
4328 ac_cv_prog_CC="$CC" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2
4341 done
4342 done
4343 IFS=$as_save_IFS
4347 CC=$ac_cv_prog_CC
4348 if test -n "$CC"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4350 $as_echo "$CC" >&6; }
4351 else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4357 test -n "$CC" && break
4358 done
4360 if test -z "$CC"; then
4361 ac_ct_CC=$CC
4362 for ac_prog in cl.exe
4364 # Extract the first word of "$ac_prog", so it can be a program name with args.
4365 set dummy $ac_prog; ac_word=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 if test -n "$ac_ct_CC"; then
4372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4373 else
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 ac_cv_prog_ac_ct_CC="$ac_prog"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4385 done
4386 done
4387 IFS=$as_save_IFS
4391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4392 if test -n "$ac_ct_CC"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4394 $as_echo "$ac_ct_CC" >&6; }
4395 else
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4401 test -n "$ac_ct_CC" && break
4402 done
4404 if test "x$ac_ct_CC" = x; then
4405 CC=""
4406 else
4407 case $cross_compiling:$ac_tool_warned in
4408 yes:)
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4411 ac_tool_warned=yes ;;
4412 esac
4413 CC=$ac_ct_CC
4420 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4422 as_fn_error $? "no acceptable C compiler found in \$PATH
4423 See \`config.log' for more details" "$LINENO" 5; }
4425 # Provide some information about the compiler.
4426 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4427 set X $ac_compile
4428 ac_compiler=$2
4429 for ac_option in --version -v -V -qversion; do
4430 { { ac_try="$ac_compiler $ac_option >&5"
4431 case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4434 esac
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 $as_echo "$ac_try_echo"; } >&5
4437 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4438 ac_status=$?
4439 if test -s conftest.err; then
4440 sed '10a\
4441 ... rest of stderr output deleted ...
4442 10q' conftest.err >conftest.er1
4443 cat conftest.er1 >&5
4445 rm -f conftest.er1 conftest.err
4446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4447 test $ac_status = 0; }
4448 done
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4454 main ()
4458 return 0;
4460 _ACEOF
4461 ac_clean_files_save=$ac_clean_files
4462 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4463 # Try to create an executable without -o first, disregard a.out.
4464 # It will help us diagnose broken compilers, and finding out an intuition
4465 # of exeext.
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4467 $as_echo_n "checking whether the C compiler works... " >&6; }
4468 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4470 # The possible output files:
4471 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4473 ac_rmfiles=
4474 for ac_file in $ac_files
4476 case $ac_file in
4477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4478 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4479 esac
4480 done
4481 rm -f $ac_rmfiles
4483 if { { ac_try="$ac_link_default"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link_default") 2>&5
4491 ac_status=$?
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }; then :
4494 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4496 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4497 # so that the user can short-circuit this test for compilers unknown to
4498 # Autoconf.
4499 for ac_file in $ac_files ''
4501 test -f "$ac_file" || continue
4502 case $ac_file in
4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4505 [ab].out )
4506 # We found the default executable, but exeext='' is most
4507 # certainly right.
4508 break;;
4509 *.* )
4510 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4511 then :; else
4512 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4514 # We set ac_cv_exeext here because the later test for it is not
4515 # safe: cross compilers may not add the suffix if given an `-o'
4516 # argument, so we may need to know it at that point already.
4517 # Even if this section looks crufty: it has the advantage of
4518 # actually working.
4519 break;;
4521 break;;
4522 esac
4523 done
4524 test "$ac_cv_exeext" = no && ac_cv_exeext=
4526 else
4527 ac_file=''
4529 if test -z "$ac_file"; then :
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4532 $as_echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4537 as_fn_error 77 "C compiler cannot create executables
4538 See \`config.log' for more details" "$LINENO" 5; }
4539 else
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4541 $as_echo "yes" >&6; }
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4544 $as_echo_n "checking for C compiler default output file name... " >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4546 $as_echo "$ac_file" >&6; }
4547 ac_exeext=$ac_cv_exeext
4549 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4550 ac_clean_files=$ac_clean_files_save
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4552 $as_echo_n "checking for suffix of executables... " >&6; }
4553 if { { ac_try="$ac_link"
4554 case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557 esac
4558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4559 $as_echo "$ac_try_echo"; } >&5
4560 (eval "$ac_link") 2>&5
4561 ac_status=$?
4562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4563 test $ac_status = 0; }; then :
4564 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4565 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4566 # work properly (i.e., refer to `conftest.exe'), while it won't with
4567 # `rm'.
4568 for ac_file in conftest.exe conftest conftest.*; do
4569 test -f "$ac_file" || continue
4570 case $ac_file in
4571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4573 break;;
4574 * ) break;;
4575 esac
4576 done
4577 else
4578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4581 See \`config.log' for more details" "$LINENO" 5; }
4583 rm -f conftest conftest$ac_cv_exeext
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4585 $as_echo "$ac_cv_exeext" >&6; }
4587 rm -f conftest.$ac_ext
4588 EXEEXT=$ac_cv_exeext
4589 ac_exeext=$EXEEXT
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592 #include <stdio.h>
4594 main ()
4596 FILE *f = fopen ("conftest.out", "w");
4597 return ferror (f) || fclose (f) != 0;
4600 return 0;
4602 _ACEOF
4603 ac_clean_files="$ac_clean_files conftest.out"
4604 # Check that the compiler produces executables we can run. If not, either
4605 # the compiler is broken, or we cross compile.
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4607 $as_echo_n "checking whether we are cross compiling... " >&6; }
4608 if test "$cross_compiling" != yes; then
4609 { { ac_try="$ac_link"
4610 case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613 esac
4614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615 $as_echo "$ac_try_echo"; } >&5
4616 (eval "$ac_link") 2>&5
4617 ac_status=$?
4618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619 test $ac_status = 0; }
4620 if { ac_try='./conftest$ac_cv_exeext'
4621 { { case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624 esac
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_try") 2>&5
4628 ac_status=$?
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }; }; then
4631 cross_compiling=no
4632 else
4633 if test "$cross_compiling" = maybe; then
4634 cross_compiling=yes
4635 else
4636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4638 as_fn_error $? "cannot run C compiled programs.
4639 If you meant to cross compile, use \`--host'.
4640 See \`config.log' for more details" "$LINENO" 5; }
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4645 $as_echo "$cross_compiling" >&6; }
4647 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4648 ac_clean_files=$ac_clean_files_save
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4650 $as_echo_n "checking for suffix of object files... " >&6; }
4651 if ${ac_cv_objext+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4658 main ()
4662 return 0;
4664 _ACEOF
4665 rm -f conftest.o conftest.obj
4666 if { { ac_try="$ac_compile"
4667 case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670 esac
4671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4672 $as_echo "$ac_try_echo"; } >&5
4673 (eval "$ac_compile") 2>&5
4674 ac_status=$?
4675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4676 test $ac_status = 0; }; then :
4677 for ac_file in conftest.o conftest.obj conftest.*; do
4678 test -f "$ac_file" || continue;
4679 case $ac_file in
4680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4682 break;;
4683 esac
4684 done
4685 else
4686 $as_echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4691 as_fn_error $? "cannot compute suffix of object files: cannot compile
4692 See \`config.log' for more details" "$LINENO" 5; }
4694 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4697 $as_echo "$ac_cv_objext" >&6; }
4698 OBJEXT=$ac_cv_objext
4699 ac_objext=$OBJEXT
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4701 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4702 if ${ac_cv_c_compiler_gnu+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4709 main ()
4711 #ifndef __GNUC__
4712 choke me
4713 #endif
4716 return 0;
4718 _ACEOF
4719 if ac_fn_c_try_compile "$LINENO"; then :
4720 ac_compiler_gnu=yes
4721 else
4722 ac_compiler_gnu=no
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4729 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4730 if test $ac_compiler_gnu = yes; then
4731 GCC=yes
4732 else
4733 GCC=
4735 ac_test_CFLAGS=${CFLAGS+set}
4736 ac_save_CFLAGS=$CFLAGS
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4738 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4739 if ${ac_cv_prog_cc_g+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 ac_save_c_werror_flag=$ac_c_werror_flag
4743 ac_c_werror_flag=yes
4744 ac_cv_prog_cc_g=no
4745 CFLAGS="-g"
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4750 main ()
4754 return 0;
4756 _ACEOF
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 ac_cv_prog_cc_g=yes
4759 else
4760 CFLAGS=""
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4765 main ()
4769 return 0;
4771 _ACEOF
4772 if ac_fn_c_try_compile "$LINENO"; then :
4774 else
4775 ac_c_werror_flag=$ac_save_c_werror_flag
4776 CFLAGS="-g"
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4781 main ()
4785 return 0;
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 ac_cv_prog_cc_g=yes
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 ac_c_werror_flag=$ac_save_c_werror_flag
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4799 $as_echo "$ac_cv_prog_cc_g" >&6; }
4800 if test "$ac_test_CFLAGS" = set; then
4801 CFLAGS=$ac_save_CFLAGS
4802 elif test $ac_cv_prog_cc_g = yes; then
4803 if test "$GCC" = yes; then
4804 CFLAGS="-g -O2"
4805 else
4806 CFLAGS="-g"
4808 else
4809 if test "$GCC" = yes; then
4810 CFLAGS="-O2"
4811 else
4812 CFLAGS=
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4817 if ${ac_cv_prog_cc_c89+:} false; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 ac_cv_prog_cc_c89=no
4821 ac_save_CC=$CC
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4824 #include <stdarg.h>
4825 #include <stdio.h>
4826 struct stat;
4827 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4828 struct buf { int x; };
4829 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4830 static char *e (p, i)
4831 char **p;
4832 int i;
4834 return p[i];
4836 static char *f (char * (*g) (char **, int), char **p, ...)
4838 char *s;
4839 va_list v;
4840 va_start (v,p);
4841 s = g (p, va_arg (v,int));
4842 va_end (v);
4843 return s;
4846 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4847 function prototypes and stuff, but not '\xHH' hex character constants.
4848 These don't provoke an error unfortunately, instead are silently treated
4849 as 'x'. The following induces an error, until -std is added to get
4850 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4851 array size at least. It's necessary to write '\x00'==0 to get something
4852 that's true only with -std. */
4853 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4855 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4856 inside strings and character constants. */
4857 #define FOO(x) 'x'
4858 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4860 int test (int i, double x);
4861 struct s1 {int (*f) (int a);};
4862 struct s2 {int (*f) (double a);};
4863 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4864 int argc;
4865 char **argv;
4867 main ()
4869 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4871 return 0;
4873 _ACEOF
4874 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4875 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4877 CC="$ac_save_CC $ac_arg"
4878 if ac_fn_c_try_compile "$LINENO"; then :
4879 ac_cv_prog_cc_c89=$ac_arg
4881 rm -f core conftest.err conftest.$ac_objext
4882 test "x$ac_cv_prog_cc_c89" != "xno" && break
4883 done
4884 rm -f conftest.$ac_ext
4885 CC=$ac_save_CC
4888 # AC_CACHE_VAL
4889 case "x$ac_cv_prog_cc_c89" in
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4892 $as_echo "none needed" >&6; } ;;
4893 xno)
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4895 $as_echo "unsupported" >&6; } ;;
4897 CC="$CC $ac_cv_prog_cc_c89"
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4899 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4900 esac
4901 if test "x$ac_cv_prog_cc_c89" != xno; then :
4905 ac_ext=c
4906 ac_cpp='$CPP $CPPFLAGS'
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911 ac_ext=cpp
4912 ac_cpp='$CXXCPP $CPPFLAGS'
4913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4916 if test -z "$CXX"; then
4917 if test -n "$CCC"; then
4918 CXX=$CCC
4919 else
4920 if test -n "$ac_tool_prefix"; then
4921 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if ${ac_cv_prog_CXX+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -n "$CXX"; then
4931 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4944 done
4945 done
4946 IFS=$as_save_IFS
4950 CXX=$ac_cv_prog_CXX
4951 if test -n "$CXX"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4953 $as_echo "$CXX" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4960 test -n "$CXX" && break
4961 done
4963 if test -z "$CXX"; then
4964 ac_ct_CXX=$CXX
4965 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4967 # Extract the first word of "$ac_prog", so it can be a program name with args.
4968 set dummy $ac_prog; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -n "$ac_ct_CXX"; then
4975 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_ac_ct_CXX="$ac_prog"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4988 done
4989 done
4990 IFS=$as_save_IFS
4994 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4995 if test -n "$ac_ct_CXX"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4997 $as_echo "$ac_ct_CXX" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5004 test -n "$ac_ct_CXX" && break
5005 done
5007 if test "x$ac_ct_CXX" = x; then
5008 CXX="g++"
5009 else
5010 case $cross_compiling:$ac_tool_warned in
5011 yes:)
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014 ac_tool_warned=yes ;;
5015 esac
5016 CXX=$ac_ct_CXX
5022 # Provide some information about the compiler.
5023 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5024 set X $ac_compile
5025 ac_compiler=$2
5026 for ac_option in --version -v -V -qversion; do
5027 { { ac_try="$ac_compiler $ac_option >&5"
5028 case "(($ac_try" in
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5031 esac
5032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5033 $as_echo "$ac_try_echo"; } >&5
5034 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5035 ac_status=$?
5036 if test -s conftest.err; then
5037 sed '10a\
5038 ... rest of stderr output deleted ...
5039 10q' conftest.err >conftest.er1
5040 cat conftest.er1 >&5
5042 rm -f conftest.er1 conftest.err
5043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; }
5045 done
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5048 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5049 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5056 main ()
5058 #ifndef __GNUC__
5059 choke me
5060 #endif
5063 return 0;
5065 _ACEOF
5066 if ac_fn_cxx_try_compile "$LINENO"; then :
5067 ac_compiler_gnu=yes
5068 else
5069 ac_compiler_gnu=no
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5076 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5077 if test $ac_compiler_gnu = yes; then
5078 GXX=yes
5079 else
5080 GXX=
5082 ac_test_CXXFLAGS=${CXXFLAGS+set}
5083 ac_save_CXXFLAGS=$CXXFLAGS
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5085 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5086 if ${ac_cv_prog_cxx_g+:} false; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5090 ac_cxx_werror_flag=yes
5091 ac_cv_prog_cxx_g=no
5092 CXXFLAGS="-g"
5093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094 /* end confdefs.h. */
5097 main ()
5101 return 0;
5103 _ACEOF
5104 if ac_fn_cxx_try_compile "$LINENO"; then :
5105 ac_cv_prog_cxx_g=yes
5106 else
5107 CXXFLAGS=""
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5112 main ()
5116 return 0;
5118 _ACEOF
5119 if ac_fn_cxx_try_compile "$LINENO"; then :
5121 else
5122 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5123 CXXFLAGS="-g"
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5128 main ()
5132 return 0;
5134 _ACEOF
5135 if ac_fn_cxx_try_compile "$LINENO"; then :
5136 ac_cv_prog_cxx_g=yes
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5146 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5147 if test "$ac_test_CXXFLAGS" = set; then
5148 CXXFLAGS=$ac_save_CXXFLAGS
5149 elif test $ac_cv_prog_cxx_g = yes; then
5150 if test "$GXX" = yes; then
5151 CXXFLAGS="-g -O2"
5152 else
5153 CXXFLAGS="-g"
5155 else
5156 if test "$GXX" = yes; then
5157 CXXFLAGS="-O2"
5158 else
5159 CXXFLAGS=
5162 ac_ext=c
5163 ac_cpp='$CPP $CPPFLAGS'
5164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169 # We must set the default linker to the linker used by gcc for the correct
5170 # operation of libtool. If LD is not defined and we are using gcc, try to
5171 # set the LD default to the ld used by gcc.
5172 if test -z "$LD"; then
5173 if test "$GCC" = yes; then
5174 case $build in
5175 *-*-mingw*)
5176 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5178 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5179 esac
5180 case $gcc_prog_ld in
5181 # Accept absolute paths.
5182 [\\/]* | [A-Za-z]:[\\/]*)
5183 LD="$gcc_prog_ld" ;;
5184 esac
5188 # Check whether -static-libstdc++ -static-libgcc is supported.
5189 have_static_libs=no
5190 if test "$GCC" = yes; then
5191 saved_LDFLAGS="$LDFLAGS"
5193 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5195 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5196 ac_ext=cpp
5197 ac_cpp='$CXXCPP $CPPFLAGS'
5198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5206 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5207 #error -static-libstdc++ not implemented
5208 #endif
5209 int main() {}
5210 _ACEOF
5211 if ac_fn_cxx_try_link "$LINENO"; then :
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5213 $as_echo "yes" >&6; }; have_static_libs=yes
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5218 rm -f core conftest.err conftest.$ac_objext \
5219 conftest$ac_exeext conftest.$ac_ext
5220 ac_ext=c
5221 ac_cpp='$CPP $CPPFLAGS'
5222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227 LDFLAGS="$saved_LDFLAGS"
5233 if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5235 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_prog_GNATBIND+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -n "$GNATBIND"; then
5242 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5243 else
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5255 done
5256 done
5257 IFS=$as_save_IFS
5261 GNATBIND=$ac_cv_prog_GNATBIND
5262 if test -n "$GNATBIND"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5264 $as_echo "$GNATBIND" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5272 if test -z "$ac_cv_prog_GNATBIND"; then
5273 ac_ct_GNATBIND=$GNATBIND
5274 # Extract the first word of "gnatbind", so it can be a program name with args.
5275 set dummy gnatbind; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 if test -n "$ac_ct_GNATBIND"; then
5282 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5295 done
5296 done
5297 IFS=$as_save_IFS
5301 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5302 if test -n "$ac_ct_GNATBIND"; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5304 $as_echo "$ac_ct_GNATBIND" >&6; }
5305 else
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }
5310 if test "x$ac_ct_GNATBIND" = x; then
5311 GNATBIND="no"
5312 else
5313 case $cross_compiling:$ac_tool_warned in
5314 yes:)
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5317 ac_tool_warned=yes ;;
5318 esac
5319 GNATBIND=$ac_ct_GNATBIND
5321 else
5322 GNATBIND="$ac_cv_prog_GNATBIND"
5325 if test -n "$ac_tool_prefix"; then
5326 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5327 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329 $as_echo_n "checking for $ac_word... " >&6; }
5330 if ${ac_cv_prog_GNATMAKE+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 if test -n "$GNATMAKE"; then
5334 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5335 else
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5347 done
5348 done
5349 IFS=$as_save_IFS
5353 GNATMAKE=$ac_cv_prog_GNATMAKE
5354 if test -n "$GNATMAKE"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5356 $as_echo "$GNATMAKE" >&6; }
5357 else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5364 if test -z "$ac_cv_prog_GNATMAKE"; then
5365 ac_ct_GNATMAKE=$GNATMAKE
5366 # Extract the first word of "gnatmake", so it can be a program name with args.
5367 set dummy gnatmake; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if test -n "$ac_ct_GNATMAKE"; then
5374 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 break 2
5387 done
5388 done
5389 IFS=$as_save_IFS
5393 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5394 if test -n "$ac_ct_GNATMAKE"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5396 $as_echo "$ac_ct_GNATMAKE" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5402 if test "x$ac_ct_GNATMAKE" = x; then
5403 GNATMAKE="no"
5404 else
5405 case $cross_compiling:$ac_tool_warned in
5406 yes:)
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5409 ac_tool_warned=yes ;;
5410 esac
5411 GNATMAKE=$ac_ct_GNATMAKE
5413 else
5414 GNATMAKE="$ac_cv_prog_GNATMAKE"
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5418 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5419 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 cat >conftest.adb <<EOF
5423 procedure conftest is begin null; end conftest;
5425 acx_cv_cc_gcc_supports_ada=no
5426 # There is a bug in old released versions of GCC which causes the
5427 # driver to exit successfully when the appropriate language module
5428 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5429 # Therefore we must check for the error message as well as an
5430 # unsuccessful exit.
5431 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5432 # given a .adb file, but produce no object file. So we must check
5433 # if an object file was really produced to guard against this.
5434 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5435 if test x"$errors" = x && test -f conftest.$ac_objext; then
5436 acx_cv_cc_gcc_supports_ada=yes
5438 rm -f conftest.*
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5441 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5443 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5444 have_gnat=yes
5445 else
5446 have_gnat=no
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5450 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5451 if ${gcc_cv_prog_cmp_skip+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 echo abfoo >t1
5455 echo cdfoo >t2
5456 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5457 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5458 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5460 else
5461 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5464 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5465 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5467 else
5468 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5471 rm t1 t2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5475 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5476 do_compare="$gcc_cv_prog_cmp_skip"
5480 # Check whether --enable-bootstrap was given.
5481 if test "${enable_bootstrap+set}" = set; then :
5482 enableval=$enable_bootstrap;
5483 else
5484 enable_bootstrap=default
5488 # Issue errors and warnings for invalid/strange bootstrap combinations.
5489 if test -r $srcdir/gcc/configure; then
5490 have_compiler=yes
5491 else
5492 have_compiler=no
5495 case "$have_compiler:$host:$target:$enable_bootstrap" in
5496 *:*:*:no) ;;
5498 # Default behavior. Enable bootstrap if we have a compiler
5499 # and we are in a native configuration.
5500 yes:$build:$build:default)
5501 enable_bootstrap=yes ;;
5503 *:*:*:default)
5504 enable_bootstrap=no ;;
5506 # We have a compiler and we are in a native configuration, bootstrap is ok
5507 yes:$build:$build:yes)
5510 # Other configurations, but we have a compiler. Assume the user knows
5511 # what he's doing.
5512 yes:*:*:yes)
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5514 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5517 # No compiler: if they passed --enable-bootstrap explicitly, fail
5518 no:*:*:yes)
5519 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5521 # Fail if wrong command line
5523 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5525 esac
5527 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5528 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5529 # require C++11 (or higher).
5530 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5531 CXX="$CXX -std=c++11"
5532 elif test "$have_compiler" = yes; then
5533 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5534 ac_ext=cpp
5535 ac_cpp='$CXXCPP $CPPFLAGS'
5536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5539 ac_success=no
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5542 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5543 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5550 // If the compiler admits that it is not ready for C++11, why torture it?
5551 // Hopefully, this will speed up the test.
5553 #ifndef __cplusplus
5555 #error "This is not a C++ compiler"
5557 #elif __cplusplus < 201103L
5559 #error "This is not a C++11 compiler"
5561 #else
5563 namespace cxx11
5566 namespace test_static_assert
5569 template <typename T>
5570 struct check
5572 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5577 namespace test_final_override
5580 struct Base
5582 virtual ~Base() {}
5583 virtual void f() {}
5586 struct Derived : public Base
5588 virtual ~Derived() override {}
5589 virtual void f() override {}
5594 namespace test_double_right_angle_brackets
5597 template < typename T >
5598 struct check {};
5600 typedef check<void> single_type;
5601 typedef check<check<void>> double_type;
5602 typedef check<check<check<void>>> triple_type;
5603 typedef check<check<check<check<void>>>> quadruple_type;
5607 namespace test_decltype
5613 int a = 1;
5614 decltype(a) b = 2;
5615 return a + b;
5620 namespace test_type_deduction
5623 template < typename T1, typename T2 >
5624 struct is_same
5626 static const bool value = false;
5629 template < typename T >
5630 struct is_same<T, T>
5632 static const bool value = true;
5635 template < typename T1, typename T2 >
5636 auto
5637 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5639 return a1 + a2;
5643 test(const int c, volatile int v)
5645 static_assert(is_same<int, decltype(0)>::value == true, "");
5646 static_assert(is_same<int, decltype(c)>::value == false, "");
5647 static_assert(is_same<int, decltype(v)>::value == false, "");
5648 auto ac = c;
5649 auto av = v;
5650 auto sumi = ac + av + 'x';
5651 auto sumf = ac + av + 1.0;
5652 static_assert(is_same<int, decltype(ac)>::value == true, "");
5653 static_assert(is_same<int, decltype(av)>::value == true, "");
5654 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5655 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5656 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5657 return (sumf > 0.0) ? sumi : add(c, v);
5662 namespace test_noexcept
5665 int f() { return 0; }
5666 int g() noexcept { return 0; }
5668 static_assert(noexcept(f()) == false, "");
5669 static_assert(noexcept(g()) == true, "");
5673 namespace test_constexpr
5676 template < typename CharT >
5677 unsigned long constexpr
5678 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5680 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5683 template < typename CharT >
5684 unsigned long constexpr
5685 strlen_c(const CharT *const s) noexcept
5687 return strlen_c_r(s, 0UL);
5690 static_assert(strlen_c("") == 0UL, "");
5691 static_assert(strlen_c("1") == 1UL, "");
5692 static_assert(strlen_c("example") == 7UL, "");
5693 static_assert(strlen_c("another\0example") == 7UL, "");
5697 namespace test_rvalue_references
5700 template < int N >
5701 struct answer
5703 static constexpr int value = N;
5706 answer<1> f(int&) { return answer<1>(); }
5707 answer<2> f(const int&) { return answer<2>(); }
5708 answer<3> f(int&&) { return answer<3>(); }
5710 void
5711 test()
5713 int i = 0;
5714 const int c = 0;
5715 static_assert(decltype(f(i))::value == 1, "");
5716 static_assert(decltype(f(c))::value == 2, "");
5717 static_assert(decltype(f(0))::value == 3, "");
5722 namespace test_uniform_initialization
5725 struct test
5727 static const int zero {};
5728 static const int one {1};
5731 static_assert(test::zero == 0, "");
5732 static_assert(test::one == 1, "");
5736 namespace test_lambdas
5739 void
5740 test1()
5742 auto lambda1 = [](){};
5743 auto lambda2 = lambda1;
5744 lambda1();
5745 lambda2();
5749 test2()
5751 auto a = [](int i, int j){ return i + j; }(1, 2);
5752 auto b = []() -> int { return '0'; }();
5753 auto c = [=](){ return a + b; }();
5754 auto d = [&](){ return c; }();
5755 auto e = [a, &b](int x) mutable {
5756 const auto identity = [](int y){ return y; };
5757 for (auto i = 0; i < a; ++i)
5758 a += b--;
5759 return x + identity(a + b);
5760 }(0);
5761 return a + b + c + d + e;
5765 test3()
5767 const auto nullary = [](){ return 0; };
5768 const auto unary = [](int x){ return x; };
5769 using nullary_t = decltype(nullary);
5770 using unary_t = decltype(unary);
5771 const auto higher1st = [](nullary_t f){ return f(); };
5772 const auto higher2nd = [unary](nullary_t f1){
5773 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5775 return higher1st(nullary) + higher2nd(nullary)(unary);
5780 namespace test_variadic_templates
5783 template <int...>
5784 struct sum;
5786 template <int N0, int... N1toN>
5787 struct sum<N0, N1toN...>
5789 static constexpr auto value = N0 + sum<N1toN...>::value;
5792 template <>
5793 struct sum<>
5795 static constexpr auto value = 0;
5798 static_assert(sum<>::value == 0, "");
5799 static_assert(sum<1>::value == 1, "");
5800 static_assert(sum<23>::value == 23, "");
5801 static_assert(sum<1, 2>::value == 3, "");
5802 static_assert(sum<5, 5, 11>::value == 21, "");
5803 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5807 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5808 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5809 // because of this.
5810 namespace test_template_alias_sfinae
5813 struct foo {};
5815 template<typename T>
5816 using member = typename T::member_type;
5818 template<typename T>
5819 void func(...) {}
5821 template<typename T>
5822 void func(member<T>*) {}
5824 void test();
5826 void test() { func<foo>(0); }
5830 } // namespace cxx11
5832 #endif // __cplusplus >= 201103L
5836 _ACEOF
5837 if ac_fn_cxx_try_compile "$LINENO"; then :
5838 ax_cv_cxx_compile_cxx11=yes
5839 else
5840 ax_cv_cxx_compile_cxx11=no
5842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5845 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5846 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5847 ac_success=yes
5850 if test x$ac_success = xno; then
5851 for alternative in ${ax_cxx_compile_alternatives}; do
5852 switch="-std=gnu++${alternative}"
5853 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5855 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5856 if eval \${$cachevar+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 ac_save_CXX="$CXX"
5860 CXX="$CXX $switch"
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5865 // If the compiler admits that it is not ready for C++11, why torture it?
5866 // Hopefully, this will speed up the test.
5868 #ifndef __cplusplus
5870 #error "This is not a C++ compiler"
5872 #elif __cplusplus < 201103L
5874 #error "This is not a C++11 compiler"
5876 #else
5878 namespace cxx11
5881 namespace test_static_assert
5884 template <typename T>
5885 struct check
5887 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5892 namespace test_final_override
5895 struct Base
5897 virtual ~Base() {}
5898 virtual void f() {}
5901 struct Derived : public Base
5903 virtual ~Derived() override {}
5904 virtual void f() override {}
5909 namespace test_double_right_angle_brackets
5912 template < typename T >
5913 struct check {};
5915 typedef check<void> single_type;
5916 typedef check<check<void>> double_type;
5917 typedef check<check<check<void>>> triple_type;
5918 typedef check<check<check<check<void>>>> quadruple_type;
5922 namespace test_decltype
5928 int a = 1;
5929 decltype(a) b = 2;
5930 return a + b;
5935 namespace test_type_deduction
5938 template < typename T1, typename T2 >
5939 struct is_same
5941 static const bool value = false;
5944 template < typename T >
5945 struct is_same<T, T>
5947 static const bool value = true;
5950 template < typename T1, typename T2 >
5951 auto
5952 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5954 return a1 + a2;
5958 test(const int c, volatile int v)
5960 static_assert(is_same<int, decltype(0)>::value == true, "");
5961 static_assert(is_same<int, decltype(c)>::value == false, "");
5962 static_assert(is_same<int, decltype(v)>::value == false, "");
5963 auto ac = c;
5964 auto av = v;
5965 auto sumi = ac + av + 'x';
5966 auto sumf = ac + av + 1.0;
5967 static_assert(is_same<int, decltype(ac)>::value == true, "");
5968 static_assert(is_same<int, decltype(av)>::value == true, "");
5969 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5970 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5971 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5972 return (sumf > 0.0) ? sumi : add(c, v);
5977 namespace test_noexcept
5980 int f() { return 0; }
5981 int g() noexcept { return 0; }
5983 static_assert(noexcept(f()) == false, "");
5984 static_assert(noexcept(g()) == true, "");
5988 namespace test_constexpr
5991 template < typename CharT >
5992 unsigned long constexpr
5993 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5995 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5998 template < typename CharT >
5999 unsigned long constexpr
6000 strlen_c(const CharT *const s) noexcept
6002 return strlen_c_r(s, 0UL);
6005 static_assert(strlen_c("") == 0UL, "");
6006 static_assert(strlen_c("1") == 1UL, "");
6007 static_assert(strlen_c("example") == 7UL, "");
6008 static_assert(strlen_c("another\0example") == 7UL, "");
6012 namespace test_rvalue_references
6015 template < int N >
6016 struct answer
6018 static constexpr int value = N;
6021 answer<1> f(int&) { return answer<1>(); }
6022 answer<2> f(const int&) { return answer<2>(); }
6023 answer<3> f(int&&) { return answer<3>(); }
6025 void
6026 test()
6028 int i = 0;
6029 const int c = 0;
6030 static_assert(decltype(f(i))::value == 1, "");
6031 static_assert(decltype(f(c))::value == 2, "");
6032 static_assert(decltype(f(0))::value == 3, "");
6037 namespace test_uniform_initialization
6040 struct test
6042 static const int zero {};
6043 static const int one {1};
6046 static_assert(test::zero == 0, "");
6047 static_assert(test::one == 1, "");
6051 namespace test_lambdas
6054 void
6055 test1()
6057 auto lambda1 = [](){};
6058 auto lambda2 = lambda1;
6059 lambda1();
6060 lambda2();
6064 test2()
6066 auto a = [](int i, int j){ return i + j; }(1, 2);
6067 auto b = []() -> int { return '0'; }();
6068 auto c = [=](){ return a + b; }();
6069 auto d = [&](){ return c; }();
6070 auto e = [a, &b](int x) mutable {
6071 const auto identity = [](int y){ return y; };
6072 for (auto i = 0; i < a; ++i)
6073 a += b--;
6074 return x + identity(a + b);
6075 }(0);
6076 return a + b + c + d + e;
6080 test3()
6082 const auto nullary = [](){ return 0; };
6083 const auto unary = [](int x){ return x; };
6084 using nullary_t = decltype(nullary);
6085 using unary_t = decltype(unary);
6086 const auto higher1st = [](nullary_t f){ return f(); };
6087 const auto higher2nd = [unary](nullary_t f1){
6088 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6090 return higher1st(nullary) + higher2nd(nullary)(unary);
6095 namespace test_variadic_templates
6098 template <int...>
6099 struct sum;
6101 template <int N0, int... N1toN>
6102 struct sum<N0, N1toN...>
6104 static constexpr auto value = N0 + sum<N1toN...>::value;
6107 template <>
6108 struct sum<>
6110 static constexpr auto value = 0;
6113 static_assert(sum<>::value == 0, "");
6114 static_assert(sum<1>::value == 1, "");
6115 static_assert(sum<23>::value == 23, "");
6116 static_assert(sum<1, 2>::value == 3, "");
6117 static_assert(sum<5, 5, 11>::value == 21, "");
6118 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6122 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6123 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6124 // because of this.
6125 namespace test_template_alias_sfinae
6128 struct foo {};
6130 template<typename T>
6131 using member = typename T::member_type;
6133 template<typename T>
6134 void func(...) {}
6136 template<typename T>
6137 void func(member<T>*) {}
6139 void test();
6141 void test() { func<foo>(0); }
6145 } // namespace cxx11
6147 #endif // __cplusplus >= 201103L
6151 _ACEOF
6152 if ac_fn_cxx_try_compile "$LINENO"; then :
6153 eval $cachevar=yes
6154 else
6155 eval $cachevar=no
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 CXX="$ac_save_CXX"
6160 eval ac_res=\$$cachevar
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6162 $as_echo "$ac_res" >&6; }
6163 if eval test x\$$cachevar = xyes; then
6164 CXX="$CXX $switch"
6165 if test -n "$CXXCPP" ; then
6166 CXXCPP="$CXXCPP $switch"
6168 ac_success=yes
6169 break
6171 done
6174 if test x$ac_success = xno; then
6175 for alternative in ${ax_cxx_compile_alternatives}; do
6176 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6177 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6179 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6180 if eval \${$cachevar+:} false; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 ac_save_CXX="$CXX"
6184 CXX="$CXX $switch"
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6189 // If the compiler admits that it is not ready for C++11, why torture it?
6190 // Hopefully, this will speed up the test.
6192 #ifndef __cplusplus
6194 #error "This is not a C++ compiler"
6196 #elif __cplusplus < 201103L
6198 #error "This is not a C++11 compiler"
6200 #else
6202 namespace cxx11
6205 namespace test_static_assert
6208 template <typename T>
6209 struct check
6211 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6216 namespace test_final_override
6219 struct Base
6221 virtual ~Base() {}
6222 virtual void f() {}
6225 struct Derived : public Base
6227 virtual ~Derived() override {}
6228 virtual void f() override {}
6233 namespace test_double_right_angle_brackets
6236 template < typename T >
6237 struct check {};
6239 typedef check<void> single_type;
6240 typedef check<check<void>> double_type;
6241 typedef check<check<check<void>>> triple_type;
6242 typedef check<check<check<check<void>>>> quadruple_type;
6246 namespace test_decltype
6252 int a = 1;
6253 decltype(a) b = 2;
6254 return a + b;
6259 namespace test_type_deduction
6262 template < typename T1, typename T2 >
6263 struct is_same
6265 static const bool value = false;
6268 template < typename T >
6269 struct is_same<T, T>
6271 static const bool value = true;
6274 template < typename T1, typename T2 >
6275 auto
6276 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6278 return a1 + a2;
6282 test(const int c, volatile int v)
6284 static_assert(is_same<int, decltype(0)>::value == true, "");
6285 static_assert(is_same<int, decltype(c)>::value == false, "");
6286 static_assert(is_same<int, decltype(v)>::value == false, "");
6287 auto ac = c;
6288 auto av = v;
6289 auto sumi = ac + av + 'x';
6290 auto sumf = ac + av + 1.0;
6291 static_assert(is_same<int, decltype(ac)>::value == true, "");
6292 static_assert(is_same<int, decltype(av)>::value == true, "");
6293 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6294 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6295 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6296 return (sumf > 0.0) ? sumi : add(c, v);
6301 namespace test_noexcept
6304 int f() { return 0; }
6305 int g() noexcept { return 0; }
6307 static_assert(noexcept(f()) == false, "");
6308 static_assert(noexcept(g()) == true, "");
6312 namespace test_constexpr
6315 template < typename CharT >
6316 unsigned long constexpr
6317 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6319 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6322 template < typename CharT >
6323 unsigned long constexpr
6324 strlen_c(const CharT *const s) noexcept
6326 return strlen_c_r(s, 0UL);
6329 static_assert(strlen_c("") == 0UL, "");
6330 static_assert(strlen_c("1") == 1UL, "");
6331 static_assert(strlen_c("example") == 7UL, "");
6332 static_assert(strlen_c("another\0example") == 7UL, "");
6336 namespace test_rvalue_references
6339 template < int N >
6340 struct answer
6342 static constexpr int value = N;
6345 answer<1> f(int&) { return answer<1>(); }
6346 answer<2> f(const int&) { return answer<2>(); }
6347 answer<3> f(int&&) { return answer<3>(); }
6349 void
6350 test()
6352 int i = 0;
6353 const int c = 0;
6354 static_assert(decltype(f(i))::value == 1, "");
6355 static_assert(decltype(f(c))::value == 2, "");
6356 static_assert(decltype(f(0))::value == 3, "");
6361 namespace test_uniform_initialization
6364 struct test
6366 static const int zero {};
6367 static const int one {1};
6370 static_assert(test::zero == 0, "");
6371 static_assert(test::one == 1, "");
6375 namespace test_lambdas
6378 void
6379 test1()
6381 auto lambda1 = [](){};
6382 auto lambda2 = lambda1;
6383 lambda1();
6384 lambda2();
6388 test2()
6390 auto a = [](int i, int j){ return i + j; }(1, 2);
6391 auto b = []() -> int { return '0'; }();
6392 auto c = [=](){ return a + b; }();
6393 auto d = [&](){ return c; }();
6394 auto e = [a, &b](int x) mutable {
6395 const auto identity = [](int y){ return y; };
6396 for (auto i = 0; i < a; ++i)
6397 a += b--;
6398 return x + identity(a + b);
6399 }(0);
6400 return a + b + c + d + e;
6404 test3()
6406 const auto nullary = [](){ return 0; };
6407 const auto unary = [](int x){ return x; };
6408 using nullary_t = decltype(nullary);
6409 using unary_t = decltype(unary);
6410 const auto higher1st = [](nullary_t f){ return f(); };
6411 const auto higher2nd = [unary](nullary_t f1){
6412 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6414 return higher1st(nullary) + higher2nd(nullary)(unary);
6419 namespace test_variadic_templates
6422 template <int...>
6423 struct sum;
6425 template <int N0, int... N1toN>
6426 struct sum<N0, N1toN...>
6428 static constexpr auto value = N0 + sum<N1toN...>::value;
6431 template <>
6432 struct sum<>
6434 static constexpr auto value = 0;
6437 static_assert(sum<>::value == 0, "");
6438 static_assert(sum<1>::value == 1, "");
6439 static_assert(sum<23>::value == 23, "");
6440 static_assert(sum<1, 2>::value == 3, "");
6441 static_assert(sum<5, 5, 11>::value == 21, "");
6442 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6446 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6447 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6448 // because of this.
6449 namespace test_template_alias_sfinae
6452 struct foo {};
6454 template<typename T>
6455 using member = typename T::member_type;
6457 template<typename T>
6458 void func(...) {}
6460 template<typename T>
6461 void func(member<T>*) {}
6463 void test();
6465 void test() { func<foo>(0); }
6469 } // namespace cxx11
6471 #endif // __cplusplus >= 201103L
6475 _ACEOF
6476 if ac_fn_cxx_try_compile "$LINENO"; then :
6477 eval $cachevar=yes
6478 else
6479 eval $cachevar=no
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 CXX="$ac_save_CXX"
6484 eval ac_res=\$$cachevar
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6486 $as_echo "$ac_res" >&6; }
6487 if eval test x\$$cachevar = xyes; then
6488 CXX="$CXX $switch"
6489 if test -n "$CXXCPP" ; then
6490 CXXCPP="$CXXCPP $switch"
6492 ac_success=yes
6493 break
6495 done
6496 if test x$ac_success = xyes; then
6497 break
6499 done
6501 ac_ext=c
6502 ac_cpp='$CPP $CPPFLAGS'
6503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6507 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6508 if test x$ac_success = xno; then
6509 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6512 if test x$ac_success = xno; then
6513 HAVE_CXX11=0
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6515 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6516 else
6517 HAVE_CXX11=1
6519 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6526 # Used for setting $lt_cv_objdir
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6528 $as_echo_n "checking for objdir... " >&6; }
6529 if ${lt_cv_objdir+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 rm -f .libs 2>/dev/null
6533 mkdir .libs 2>/dev/null
6534 if test -d .libs; then
6535 lt_cv_objdir=.libs
6536 else
6537 # MS-DOS does not allow filenames that begin with a dot.
6538 lt_cv_objdir=_libs
6540 rmdir .libs 2>/dev/null
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6543 $as_echo "$lt_cv_objdir" >&6; }
6544 objdir=$lt_cv_objdir
6550 cat >>confdefs.h <<_ACEOF
6551 #define LT_OBJDIR "$lt_cv_objdir/"
6552 _ACEOF
6556 # Check for GMP, MPFR and MPC
6557 gmplibs="-lmpc -lmpfr -lgmp"
6558 gmpinc=
6559 have_gmp=no
6561 # Specify a location for mpc
6562 # check for this first so it ends up on the link line before mpfr.
6564 # Check whether --with-mpc was given.
6565 if test "${with_mpc+set}" = set; then :
6566 withval=$with_mpc;
6570 # Check whether --with-mpc-include was given.
6571 if test "${with_mpc_include+set}" = set; then :
6572 withval=$with_mpc_include;
6576 # Check whether --with-mpc-lib was given.
6577 if test "${with_mpc_lib+set}" = set; then :
6578 withval=$with_mpc_lib;
6582 if test "x$with_mpc" != x; then
6583 gmplibs="-L$with_mpc/lib $gmplibs"
6584 gmpinc="-I$with_mpc/include $gmpinc"
6586 if test "x$with_mpc_include" != x; then
6587 gmpinc="-I$with_mpc_include $gmpinc"
6589 if test "x$with_mpc_lib" != x; then
6590 gmplibs="-L$with_mpc_lib $gmplibs"
6592 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
6593 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
6594 gmpinc='-I$$s/mpc/src '"$gmpinc"
6595 # Do not test the mpc version. Assume that it is sufficient, since
6596 # it is in the source tree, and the library has not been built yet
6597 # but it would be included on the link line in the version check below
6598 # hence making the test fail.
6599 have_gmp=yes
6602 # Specify a location for mpfr
6603 # check for this first so it ends up on the link line before gmp.
6605 # Check whether --with-mpfr-dir was given.
6606 if test "${with_mpfr_dir+set}" = set; then :
6607 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
6608 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
6613 # Check whether --with-mpfr was given.
6614 if test "${with_mpfr+set}" = set; then :
6615 withval=$with_mpfr;
6619 # Check whether --with-mpfr-include was given.
6620 if test "${with_mpfr_include+set}" = set; then :
6621 withval=$with_mpfr_include;
6625 # Check whether --with-mpfr-lib was given.
6626 if test "${with_mpfr_lib+set}" = set; then :
6627 withval=$with_mpfr_lib;
6631 if test "x$with_mpfr" != x; then
6632 gmplibs="-L$with_mpfr/lib $gmplibs"
6633 gmpinc="-I$with_mpfr/include $gmpinc"
6635 if test "x$with_mpfr_include" != x; then
6636 gmpinc="-I$with_mpfr_include $gmpinc"
6638 if test "x$with_mpfr_lib" != x; then
6639 gmplibs="-L$with_mpfr_lib $gmplibs"
6641 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
6642 # MPFR v3.1.0 moved the sources into a src sub-directory.
6643 if ! test -d ${srcdir}/mpfr/src; then
6644 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
6646 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
6647 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
6648 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
6649 # Do not test the mpfr version. Assume that it is sufficient, since
6650 # it is in the source tree, and the library has not been built yet
6651 # but it would be included on the link line in the version check below
6652 # hence making the test fail.
6653 have_gmp=yes
6656 # Specify a location for gmp
6658 # Check whether --with-gmp-dir was given.
6659 if test "${with_gmp_dir+set}" = set; then :
6660 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
6661 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
6666 # Check whether --with-gmp was given.
6667 if test "${with_gmp+set}" = set; then :
6668 withval=$with_gmp;
6672 # Check whether --with-gmp-include was given.
6673 if test "${with_gmp_include+set}" = set; then :
6674 withval=$with_gmp_include;
6678 # Check whether --with-gmp-lib was given.
6679 if test "${with_gmp_lib+set}" = set; then :
6680 withval=$with_gmp_lib;
6685 if test "x$with_gmp" != x; then
6686 gmplibs="-L$with_gmp/lib $gmplibs"
6687 gmpinc="-I$with_gmp/include $gmpinc"
6689 if test "x$with_gmp_include" != x; then
6690 gmpinc="-I$with_gmp_include $gmpinc"
6692 if test "x$with_gmp_lib" != x; then
6693 gmplibs="-L$with_gmp_lib $gmplibs"
6695 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
6696 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
6697 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
6698 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
6699 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
6700 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
6701 # Do not test the gmp version. Assume that it is sufficient, since
6702 # it is in the source tree, and the library has not been built yet
6703 # but it would be included on the link line in the version check below
6704 # hence making the test fail.
6705 have_gmp=yes
6708 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
6709 have_gmp=yes
6710 saved_CFLAGS="$CFLAGS"
6711 CFLAGS="$CFLAGS $gmpinc"
6712 # Check for the recommended and required versions of GMP.
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
6714 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 #include "gmp.h"
6720 main ()
6723 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
6724 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
6725 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
6726 choke me
6727 #endif
6730 return 0;
6732 _ACEOF
6733 if ac_fn_c_try_compile "$LINENO"; then :
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 #include <gmp.h>
6738 main ()
6741 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
6742 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
6743 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
6744 choke me
6745 #endif
6748 return 0;
6750 _ACEOF
6751 if ac_fn_c_try_compile "$LINENO"; then :
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6753 $as_echo "yes" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6756 $as_echo "buggy but acceptable" >&6; }
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }; have_gmp=no
6763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 # If we have GMP, check the MPFR version.
6766 if test x"$have_gmp" = xyes; then
6767 # Check for the recommended and required versions of MPFR.
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
6769 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h. */
6772 #include <gmp.h>
6773 #include <mpfr.h>
6775 main ()
6778 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
6779 choke me
6780 #endif
6783 return 0;
6785 _ACEOF
6786 if ac_fn_c_try_compile "$LINENO"; then :
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 #include <gmp.h>
6790 #include <mpfr.h>
6792 main ()
6795 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
6796 choke me
6797 #endif
6800 return 0;
6802 _ACEOF
6803 if ac_fn_c_try_compile "$LINENO"; then :
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6805 $as_echo "yes" >&6; }
6806 else
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6808 $as_echo "buggy but acceptable" >&6; }
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }; have_gmp=no
6815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818 # Check for the MPC header version.
6819 if test x"$have_gmp" = xyes ; then
6820 # Check for the recommended and required versions of MPC.
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
6822 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <mpc.h>
6827 main ()
6830 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
6831 choke me
6832 #endif
6835 return 0;
6837 _ACEOF
6838 if ac_fn_c_try_compile "$LINENO"; then :
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6841 #include <mpc.h>
6843 main ()
6846 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
6847 choke me
6848 #endif
6851 return 0;
6853 _ACEOF
6854 if ac_fn_c_try_compile "$LINENO"; then :
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6856 $as_echo "yes" >&6; }
6857 else
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6859 $as_echo "buggy but acceptable" >&6; }
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }; have_gmp=no
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 # Now check the MPFR library.
6870 if test x"$have_gmp" = xyes; then
6871 saved_LIBS="$LIBS"
6872 LIBS="$LIBS $gmplibs"
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6874 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877 #include <mpc.h>
6879 main ()
6882 mpfr_t n;
6883 mpfr_t x;
6884 mpc_t c;
6885 int t;
6886 mpfr_init (n);
6887 mpfr_init (x);
6888 mpfr_atan2 (n, n, x, MPFR_RNDN);
6889 mpfr_erfc (n, x, MPFR_RNDN);
6890 mpfr_subnormalize (x, t, MPFR_RNDN);
6891 mpfr_clear(n);
6892 mpfr_clear(x);
6893 mpc_init2 (c, 53);
6894 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6895 mpc_cosh (c, c, MPC_RNDNN);
6896 mpc_pow (c, c, c, MPC_RNDNN);
6897 mpc_acosh (c, c, MPC_RNDNN);
6898 mpc_clear (c);
6901 return 0;
6903 _ACEOF
6904 if ac_fn_c_try_link "$LINENO"; then :
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6906 $as_echo "yes" >&6; }
6907 else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }; have_gmp=no
6911 rm -f core conftest.err conftest.$ac_objext \
6912 conftest$ac_exeext conftest.$ac_ext
6913 LIBS="$saved_LIBS"
6916 CFLAGS="$saved_CFLAGS"
6918 # The library versions listed in the error message below should match
6919 # the HARD-minimums enforced above.
6920 if test x$have_gmp != xyes; then
6921 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
6922 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6923 their locations. Source code for these libraries can be found at
6924 their respective hosting sites as well as at
6925 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
6926 http://gcc.gnu.org/install/prerequisites.html for additional info. If
6927 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6928 make sure that you have installed both the libraries and the header
6929 files. They may be located in separate packages." "$LINENO" 5
6933 # Flags needed for both GMP, MPFR and/or MPC.
6941 # Libraries to use for stage1 or when not bootstrapping.
6943 # Check whether --with-stage1-libs was given.
6944 if test "${with_stage1_libs+set}" = set; then :
6945 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6946 stage1_libs=
6947 else
6948 stage1_libs=$withval
6950 else
6951 stage1_libs=
6956 # Whether or not to use -static-libstdc++ and -static-libgcc. The
6957 # default is yes if gcc is being built; no otherwise. The reason for
6958 # this default is that gdb is sometimes linked against GNU Source
6959 # Highlight, which is a shared library that uses C++ exceptions. In
6960 # this case, -static-libstdc++ will cause crashes.
6962 # Check whether --with-static-standard-libraries was given.
6963 if test "${with_static_standard_libraries+set}" = set; then :
6964 withval=$with_static_standard_libraries;
6965 else
6966 with_static_standard_libraries=auto
6969 if test "$with_static_standard_libraries" = auto; then
6970 with_static_standard_libraries=$have_compiler
6973 # Linker flags to use for stage1 or when not bootstrapping.
6975 # Check whether --with-stage1-ldflags was given.
6976 if test "${with_stage1_ldflags+set}" = set; then :
6977 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6978 stage1_ldflags=
6979 else
6980 stage1_ldflags=$withval
6982 else
6983 stage1_ldflags=
6984 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6985 # if supported. But if the user explicitly specified the libraries to use,
6986 # trust that they are doing what they want.
6987 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6988 -a "$have_static_libs" = yes; then
6989 stage1_ldflags="-static-libstdc++ -static-libgcc"
6995 # Libraries to use for stage2 and later builds.
6997 # Check whether --with-boot-libs was given.
6998 if test "${with_boot_libs+set}" = set; then :
6999 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
7000 poststage1_libs=
7001 else
7002 poststage1_libs=$withval
7004 else
7005 poststage1_libs=
7010 # Linker flags to use for stage2 and later builds.
7012 # Check whether --with-boot-ldflags was given.
7013 if test "${with_boot_ldflags+set}" = set; then :
7014 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7015 poststage1_ldflags=
7016 else
7017 poststage1_ldflags=$withval
7019 else
7020 poststage1_ldflags=
7021 # In stages 2 and 3, default to linking libstdc++ and libgcc
7022 # statically. But if the user explicitly specified the libraries to
7023 # use, trust that they are doing what they want.
7024 if test "$poststage1_libs" = ""; then
7025 poststage1_ldflags="-static-libstdc++ -static-libgcc"
7031 # GCC GRAPHITE dependency isl.
7032 # Basic setup is inlined here, actual checks are in config/isl.m4
7035 # Check whether --with-isl was given.
7036 if test "${with_isl+set}" = set; then :
7037 withval=$with_isl;
7041 # Treat --without-isl as a request to disable
7042 # GRAPHITE support and skip all following checks.
7043 if test "x$with_isl" != "xno"; then
7044 # Check for isl
7047 # Check whether --with-isl-include was given.
7048 if test "${with_isl_include+set}" = set; then :
7049 withval=$with_isl_include;
7053 # Check whether --with-isl-lib was given.
7054 if test "${with_isl_lib+set}" = set; then :
7055 withval=$with_isl_lib;
7059 # Check whether --enable-isl-version-check was given.
7060 if test "${enable_isl_version_check+set}" = set; then :
7061 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
7062 else
7063 ENABLE_ISL_CHECK=yes
7067 # Initialize isllibs and islinc.
7068 case $with_isl in
7070 isllibs=
7071 islinc=
7073 "" | yes)
7076 isllibs="-L$with_isl/lib"
7077 islinc="-I$with_isl/include"
7079 esac
7080 if test "x${with_isl_include}" != x ; then
7081 islinc="-I$with_isl_include"
7083 if test "x${with_isl_lib}" != x; then
7084 isllibs="-L$with_isl_lib"
7086 if test "x${islinc}" = x && test "x${isllibs}" = x \
7087 && test -d ${srcdir}/isl; then
7088 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
7089 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
7090 ENABLE_ISL_CHECK=no
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
7092 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7095 isllibs="${isllibs} -lisl"
7099 if test "${ENABLE_ISL_CHECK}" = yes ; then
7100 _isl_saved_CFLAGS=$CFLAGS
7101 _isl_saved_LDFLAGS=$LDFLAGS
7102 _isl_saved_LIBS=$LIBS
7104 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
7105 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
7106 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
7109 $as_echo_n "checking for isl 0.15 or later... " >&6; }
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112 #include <isl/schedule.h>
7114 main ()
7116 isl_options_set_schedule_serialize_sccs (NULL, 0);
7118 return 0;
7120 _ACEOF
7121 if ac_fn_c_try_link "$LINENO"; then :
7122 gcc_cv_isl=yes
7123 else
7124 gcc_cv_isl=no
7126 rm -f core conftest.err conftest.$ac_objext \
7127 conftest$ac_exeext conftest.$ac_ext
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
7129 $as_echo "$gcc_cv_isl" >&6; }
7131 if test "${gcc_cv_isl}" = no ; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
7133 $as_echo "required isl version is 0.15 or later" >&6; }
7136 CFLAGS=$_isl_saved_CFLAGS
7137 LDFLAGS=$_isl_saved_LDFLAGS
7138 LIBS=$_isl_saved_LIBS
7146 if test "x${with_isl}" = xno; then
7147 graphite_requested=no
7148 elif test "x${with_isl}" != x \
7149 || test "x${with_isl_include}" != x \
7150 || test "x${with_isl_lib}" != x ; then
7151 graphite_requested=yes
7152 else
7153 graphite_requested=no
7158 if test "${gcc_cv_isl}" = no ; then
7159 isllibs=
7160 islinc=
7163 if test "${graphite_requested}" = yes \
7164 && test "x${isllibs}" = x \
7165 && test "x${islinc}" = x ; then
7167 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7173 # If the isl check failed, disable builds of in-tree variant of isl
7174 if test "x$with_isl" = xno ||
7175 test "x$gcc_cv_isl" = xno; then
7176 noconfigdirs="$noconfigdirs isl"
7177 islinc=
7183 # Check for LTO support.
7184 # Check whether --enable-lto was given.
7185 if test "${enable_lto+set}" = set; then :
7186 enableval=$enable_lto; enable_lto=$enableval
7187 else
7188 enable_lto=yes; default_enable_lto=yes
7195 target_elf=no
7196 case $target in
7197 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
7198 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
7199 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
7200 nvptx-*-none)
7201 target_elf=no
7204 target_elf=yes
7206 esac
7208 if test $target_elf = yes; then :
7209 # ELF platforms build the lto-plugin always.
7210 build_lto_plugin=yes
7212 else
7213 if test x"$default_enable_lto" = x"yes" ; then
7214 case $target in
7215 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
7216 # On other non-ELF platforms, LTO has yet to be validated.
7217 *) enable_lto=no ;;
7218 esac
7219 else
7220 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
7221 # It would also be nice to check the binutils support, but we don't
7222 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
7223 # warn during gcc/ subconfigure; unless you're bootstrapping with
7224 # -flto it won't be needed until after installation anyway.
7225 case $target in
7226 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
7227 *) if test x"$enable_lto" = x"yes"; then
7228 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
7231 esac
7233 # Among non-ELF, only Windows platforms support the lto-plugin so far.
7234 # Build it unless LTO was explicitly disabled.
7235 case $target in
7236 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
7237 *) ;;
7238 esac
7243 # Check whether --enable-linker-plugin-configure-flags was given.
7244 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
7245 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
7246 else
7247 extra_linker_plugin_configure_flags=
7251 # Check whether --enable-linker-plugin-flags was given.
7252 if test "${enable_linker_plugin_flags+set}" = set; then :
7253 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
7254 else
7255 extra_linker_plugin_flags=
7260 # Enable --enable-host-shared.
7261 # Checked early to determine whether jit is an 'all' language
7262 # Check whether --enable-host-shared was given.
7263 if test "${enable_host_shared+set}" = set; then :
7264 enableval=$enable_host_shared; host_shared=$enableval
7265 else
7266 host_shared=no
7271 # By default, C and C++ are the only stage 1 languages.
7272 stage1_languages=,c,
7274 # Target libraries that we bootstrap.
7275 bootstrap_target_libs=,target-libgcc,
7277 # Figure out what language subdirectories are present.
7278 # Look if the user specified --enable-languages="..."; if not, use
7279 # the environment variable $LANGUAGES if defined. $LANGUAGES might
7280 # go away some day.
7281 # NB: embedded tabs in this IF block -- do not untabify
7282 if test -d ${srcdir}/gcc; then
7283 if test x"${enable_languages+set}" != xset; then
7284 if test x"${LANGUAGES+set}" = xset; then
7285 enable_languages="${LANGUAGES}"
7286 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
7287 else
7288 enable_languages=default
7290 else
7291 if test x"${enable_languages}" = x ||
7292 test x"${enable_languages}" = xyes;
7293 then
7294 echo configure.ac: --enable-languages needs at least one language argument 1>&2
7295 exit 1
7298 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
7300 # 'f95' is the old name for the 'fortran' language. We issue a warning
7301 # and make the substitution.
7302 case ,${enable_languages}, in
7303 *,f95,*)
7304 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7305 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
7307 esac
7309 # If bootstrapping, C++ must be enabled.
7310 case ",$enable_languages,:$enable_bootstrap" in
7311 *,c++,*:*) ;;
7312 *:yes)
7313 if test -f ${srcdir}/gcc/cp/config-lang.in; then
7314 enable_languages="${enable_languages},c++"
7315 else
7316 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
7319 esac
7321 # First scan to see if an enabled language requires some other language.
7322 # We assume that a given config-lang.in will list all the language
7323 # front ends it requires, even if some are required indirectly.
7324 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
7325 case ${lang_frag} in
7326 ..) ;;
7327 # The odd quoting in the next line works around
7328 # an apparent bug in bash 1.12 on linux.
7329 ${srcdir}/gcc/[*]/config-lang.in) ;;
7331 # From the config-lang.in, get $language, $lang_requires, and
7332 # $lang_requires_boot_languages.
7333 language=
7334 lang_requires=
7335 lang_requires_boot_languages=
7336 # set srcdir during sourcing lang_frag to the gcc dir.
7337 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
7338 # polutes this shell
7339 saved_srcdir=${srcdir}
7340 srcdir=${srcdir}/gcc . ${lang_frag}
7341 srcdir=${saved_srcdir}
7342 for other in ${lang_requires} ${lang_requires_boot_languages}; do
7343 case ,${enable_languages}, in
7344 *,$other,*) ;;
7345 *,default,*) ;;
7346 *,all,*) ;;
7347 *,$language,*)
7348 echo " \`$other' language required by \`$language'; enabling" 1>&2
7349 enable_languages="${enable_languages},${other}"
7351 esac
7352 done
7353 for other in ${lang_requires_boot_languages} ; do
7354 if test "$other" != "c"; then
7355 case ,${enable_stage1_languages}, in
7356 *,$other,*) ;;
7357 *,default,*) ;;
7358 *,all,*) ;;
7360 case ,${enable_languages}, in
7361 *,$language,*)
7362 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
7363 enable_stage1_languages="$enable_stage1_languages,${other}"
7365 esac
7367 esac
7369 done
7371 esac
7372 done
7374 new_enable_languages=,c,
7376 # If LTO is enabled, add the LTO front end.
7377 if test "$enable_lto" = "yes" ; then
7378 case ,${enable_languages}, in
7379 *,lto,*) ;;
7380 *) enable_languages="${enable_languages},lto" ;;
7381 esac
7382 if test "${build_lto_plugin}" = "yes" ; then
7383 configdirs="$configdirs lto-plugin"
7387 # If we're building an offloading compiler, add the LTO front end.
7388 if test x"$enable_as_accelerator_for" != x ; then
7389 case ,${enable_languages}, in
7390 *,lto,*) ;;
7391 *) enable_languages="${enable_languages},lto" ;;
7392 esac
7395 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
7396 potential_languages=,c,
7398 enabled_target_libs=
7399 disabled_target_libs=
7401 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
7402 case ${lang_frag} in
7403 ..) ;;
7404 # The odd quoting in the next line works around
7405 # an apparent bug in bash 1.12 on linux.
7406 ${srcdir}/gcc/[*]/config-lang.in) ;;
7408 # From the config-lang.in, get $language, $target_libs,
7409 # $lang_dirs, $boot_language, and $build_by_default
7410 language=
7411 target_libs=
7412 lang_dirs=
7413 subdir_requires=
7414 boot_language=no
7415 build_by_default=yes
7416 # set srcdir during sourcing. See above about save & restore
7417 saved_srcdir=${srcdir}
7418 srcdir=${srcdir}/gcc . ${lang_frag}
7419 srcdir=${saved_srcdir}
7420 if test x${language} = x; then
7421 echo "${lang_frag} doesn't set \$language." 1>&2
7422 exit 1
7425 if test "$language" = "c++"; then
7426 boot_language=yes
7429 add_this_lang=no
7430 # C is always enabled, so no need to add it again
7431 if test "$language" != "c"; then
7432 case ,${enable_languages}, in
7433 *,${language},*)
7434 # Language was explicitly selected; include it
7435 add_this_lang=yes
7437 *,all,*)
7438 # All languages are enabled
7439 add_this_lang=all
7441 *,default,*)
7442 # 'default' was selected, select it if it is a default language
7443 add_this_lang=${build_by_default}
7445 esac
7448 # Disable languages that need other directories if these aren't available.
7449 for i in $subdir_requires; do
7450 test -f "$srcdir/gcc/$i/config-lang.in" && continue
7451 case ${add_this_lang} in
7452 yes)
7453 # Specifically requested language; tell them.
7454 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
7456 all)
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
7458 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
7459 add_this_lang=unsupported
7462 # Silently disable.
7463 add_this_lang=unsupported
7465 esac
7466 done
7468 # Disable Ada if no preexisting GNAT is available.
7469 case ${add_this_lang}:${language}:${have_gnat} in
7470 yes:ada:no)
7471 # Specifically requested language; tell them.
7472 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
7474 all:ada:no)
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
7476 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
7477 add_this_lang=unsupported
7479 *:ada:no)
7480 # Silently disable.
7481 add_this_lang=unsupported
7483 esac
7485 # Disable jit if -enable-host-shared not specified
7486 # but not if building for Mingw. All code in Windows
7487 # is position independent code (PIC).
7488 case $target in
7489 *mingw*) ;;
7491 case ${add_this_lang}:${language}:${host_shared} in
7492 yes:jit:no)
7493 # PR jit/64780: explicitly specify --enable-host-shared
7494 as_fn_error $? "
7495 Enabling language \"jit\" requires --enable-host-shared.
7497 --enable-host-shared typically slows the rest of the compiler down by
7498 a few %, so you must explicitly enable it.
7500 If you want to build both the jit and the regular compiler, it is often
7501 best to do this via two separate configure/builds, in separate
7502 directories, to avoid imposing the performance cost of
7503 --enable-host-shared on the regular compiler." "$LINENO" 5
7505 all:jit:no)
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
7507 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
7508 add_this_lang=unsupported
7510 *:jit:no)
7511 # Silently disable.
7512 add_this_lang=unsupported
7514 esac
7516 esac
7518 # Disable a language that is unsupported by the target.
7519 case "${add_this_lang}: $unsupported_languages " in
7520 no:*) ;;
7521 unsupported:*) ;;
7522 *:*" $language "*)
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
7524 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
7525 add_this_lang=unsupported
7527 esac
7529 case $add_this_lang in
7530 unsupported)
7531 # Remove language-dependent dirs.
7532 disabled_target_libs="$disabled_target_libs $target_libs"
7533 noconfigdirs="$noconfigdirs $lang_dirs"
7536 # Remove language-dependent dirs; still show language as supported.
7537 disabled_target_libs="$disabled_target_libs $target_libs"
7538 noconfigdirs="$noconfigdirs $lang_dirs"
7539 potential_languages="${potential_languages}${language},"
7541 all|yes)
7542 new_enable_languages="${new_enable_languages}${language},"
7543 potential_languages="${potential_languages}${language},"
7544 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
7545 enabled_target_libs="$enabled_target_libs $target_libs"
7546 case "${boot_language}:,$enable_stage1_languages," in
7547 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
7548 # Add to (comma-separated) list of stage 1 languages.
7549 case ",$stage1_languages," in
7550 *,$language,* | ,yes, | ,all,) ;;
7551 *) stage1_languages="${stage1_languages}${language}," ;;
7552 esac
7553 # We need to bootstrap any supporting libraries.
7554 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
7556 esac
7558 esac
7560 esac
7561 done
7563 # Add target libraries which are only needed for disabled languages
7564 # to noconfigdirs.
7565 if test -n "$disabled_target_libs"; then
7566 for dir in $disabled_target_libs; do
7567 case " $enabled_target_libs " in
7568 *" ${dir} "*) ;;
7569 *) noconfigdirs="$noconfigdirs $dir" ;;
7570 esac
7571 done
7574 # Check whether --enable-stage1-languages was given.
7575 if test "${enable_stage1_languages+set}" = set; then :
7576 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
7577 ,no,|,,)
7578 # Set it to something that will have no effect in the loop below
7579 enable_stage1_languages=c ;;
7580 ,yes,)
7581 enable_stage1_languages=`echo $new_enable_languages | \
7582 sed -e "s/^,//" -e "s/,$//" ` ;;
7583 *,all,*)
7584 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
7585 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
7586 esac
7588 # Add "good" languages from enable_stage1_languages to stage1_languages,
7589 # while "bad" languages go in missing_languages. Leave no duplicates.
7590 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
7591 case $potential_languages in
7592 *,$i,*)
7593 case $stage1_languages in
7594 *,$i,*) ;;
7595 *) stage1_languages="$stage1_languages$i," ;;
7596 esac ;;
7598 case $missing_languages in
7599 *,$i,*) ;;
7600 *) missing_languages="$missing_languages$i," ;;
7601 esac ;;
7602 esac
7603 done
7607 # Remove leading/trailing commas that were added for simplicity
7608 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
7609 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
7610 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
7611 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
7613 if test "x$missing_languages" != x; then
7614 as_fn_error $? "
7615 The following requested languages could not be built: ${missing_languages}
7616 Supported languages are: ${potential_languages}" "$LINENO" 5
7618 if test "x$new_enable_languages" != "x$enable_languages"; then
7619 echo The following languages will be built: ${new_enable_languages}
7620 enable_languages="$new_enable_languages"
7624 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
7627 # Handle --disable-<component> generically.
7628 for dir in $configdirs $build_configdirs $target_configdirs ; do
7629 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
7630 varname=`echo $dirname | sed -e s/+/_/g`
7631 if eval test x\${enable_${varname}} "=" xno ; then
7632 noconfigdirs="$noconfigdirs $dir"
7634 done
7636 # Check for Boehm's garbage collector
7637 # Check whether --enable-objc-gc was given.
7638 if test "${enable_objc_gc+set}" = set; then :
7639 enableval=$enable_objc_gc;
7643 # Check whether --with-target-bdw-gc was given.
7644 if test "${with_target_bdw_gc+set}" = set; then :
7645 withval=$with_target_bdw_gc;
7649 # Check whether --with-target-bdw-gc-include was given.
7650 if test "${with_target_bdw_gc_include+set}" = set; then :
7651 withval=$with_target_bdw_gc_include;
7655 # Check whether --with-target-bdw-gc-lib was given.
7656 if test "${with_target_bdw_gc_lib+set}" = set; then :
7657 withval=$with_target_bdw_gc_lib;
7661 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
7663 $as_echo_n "checking for bdw garbage collector... " >&6; }
7664 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
7666 $as_echo "using bdw-gc in default locations" >&6; }
7667 else
7668 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
7669 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
7670 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
7671 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
7672 else
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
7674 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
7677 esac
7679 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7680 case ,${enable_languages}, in
7681 *,c++,*)
7682 # Disable libitm, libsanitizer if we're not building libstdc++
7683 case "${noconfigdirs}" in
7684 *target-libstdc++-v3*)
7685 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
7687 *) ;;
7688 esac
7691 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7693 esac
7695 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
7696 # $build_configdirs and $target_configdirs.
7697 # If we have the source for $noconfigdirs entries, add them to $notsupp.
7699 notsupp=""
7700 for dir in . $skipdirs $noconfigdirs ; do
7701 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
7702 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7703 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
7704 if test -r $srcdir/$dirname/configure ; then
7705 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7706 true
7707 else
7708 notsupp="$notsupp $dir"
7712 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7713 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
7714 if test -r $srcdir/$dirname/configure ; then
7715 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7716 true
7717 else
7718 notsupp="$notsupp $dir"
7722 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7723 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
7724 if test -r $srcdir/$dirname/configure ; then
7725 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7726 true
7727 else
7728 notsupp="$notsupp $dir"
7732 done
7734 # Quietly strip out all directories which aren't configurable in this tree.
7735 # This relies on all configurable subdirectories being autoconfiscated, which
7736 # is now the case.
7737 build_configdirs_all="$build_configdirs"
7738 build_configdirs=
7739 for i in ${build_configdirs_all} ; do
7740 j=`echo $i | sed -e s/build-//g`
7741 if test -f ${srcdir}/$j/configure ; then
7742 build_configdirs="${build_configdirs} $i"
7744 done
7746 configdirs_all="$configdirs"
7747 configdirs=
7748 for i in ${configdirs_all} ; do
7749 if test -f ${srcdir}/$i/configure ; then
7750 configdirs="${configdirs} $i"
7752 done
7754 target_configdirs_all="$target_configdirs"
7755 target_configdirs=
7756 for i in ${target_configdirs_all} ; do
7757 j=`echo $i | sed -e s/target-//g`
7758 if test -f ${srcdir}/$j/configure ; then
7759 target_configdirs="${target_configdirs} $i"
7761 done
7763 # libiberty-linker-plugin is special: it doesn't have its own source directory,
7764 # so we have to add it after the preceding checks.
7765 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
7766 then
7767 case " $configdirs " in
7768 *" libiberty "*)
7769 # If we can build libiberty, we can also build libiberty-linker-plugin.
7770 configdirs="$configdirs libiberty-linker-plugin"
7771 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
7772 --with-libiberty=../libiberty-linker-plugin";;
7774 as_fn_error $? "libiberty missing" "$LINENO" 5;;
7775 esac
7778 # Sometimes we have special requirements for the host libiberty.
7779 extra_host_libiberty_configure_flags=
7780 extra_host_zlib_configure_flags=
7781 case " $configdirs " in
7782 *" lto-plugin "* | *" libcc1 "*)
7783 # When these are to be built as shared libraries, the same applies to
7784 # libiberty.
7785 extra_host_libiberty_configure_flags=--enable-shared
7787 *" bfd "*)
7788 # When bfd is to be built as a shared library, the same applies to
7789 # zlib.
7790 if test "$enable_shared" = "yes"; then
7791 extra_host_zlib_configure_flags=--enable-host-shared
7794 esac
7798 # Produce a warning message for the subdirs we can't configure.
7799 # This isn't especially interesting in the Cygnus tree, but in the individual
7800 # FSF releases, it's important to let people know when their machine isn't
7801 # supported by the one or two programs in a package.
7803 if test -n "${notsupp}" && test -z "${norecursion}" ; then
7804 # If $appdirs is non-empty, at least one of those directories must still
7805 # be configured, or we error out. (E.g., if the gas release supports a
7806 # specified target in some subdirs but not the gas subdir, we shouldn't
7807 # pretend that all is well.)
7808 if test -n "$appdirs" ; then
7809 for dir in $appdirs ; do
7810 if test -r $dir/Makefile.in ; then
7811 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7812 appdirs=""
7813 break
7815 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
7816 appdirs=""
7817 break
7820 done
7821 if test -n "$appdirs" ; then
7822 echo "*** This configuration is not supported by this package." 1>&2
7823 exit 1
7826 # Okay, some application will build, or we don't care to check. Still
7827 # notify of subdirs not getting built.
7828 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7829 echo " ${notsupp}" 1>&2
7830 echo " (Any other directories should still work fine.)" 1>&2
7833 case "$host" in
7834 *msdosdjgpp*)
7835 enable_gdbtk=no ;;
7836 esac
7838 # To find our prefix, in gcc_cv_tool_prefix.
7840 # The user is always right.
7841 if test "${PATH_SEPARATOR+set}" != set; then
7842 echo "#! /bin/sh" >conf$$.sh
7843 echo "exit 0" >>conf$$.sh
7844 chmod +x conf$$.sh
7845 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7846 PATH_SEPARATOR=';'
7847 else
7848 PATH_SEPARATOR=:
7850 rm -f conf$$.sh
7854 get_gcc_base_ver="cat"
7856 # Check whether --with-gcc-major-version-only was given.
7857 if test "${with_gcc_major_version_only+set}" = set; then :
7858 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
7859 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
7869 if test "x$exec_prefix" = xNONE; then
7870 if test "x$prefix" = xNONE; then
7871 gcc_cv_tool_prefix=$ac_default_prefix
7872 else
7873 gcc_cv_tool_prefix=$prefix
7875 else
7876 gcc_cv_tool_prefix=$exec_prefix
7879 # If there is no compiler in the tree, use the PATH only. In any
7880 # case, if there is no compiler in the tree nobody should use
7881 # AS_FOR_TARGET and LD_FOR_TARGET.
7882 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7883 if test x$with_gcc_major_version_only = xyes ; then
7884 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7885 else
7886 gcc_version=`cat $srcdir/gcc/BASE-VER`
7888 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7889 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7890 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7891 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7892 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7893 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7894 else
7895 gcc_cv_tool_dirs=
7898 if test x$build = x$target && test -n "$md_exec_prefix"; then
7899 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7904 copy_dirs=
7907 # Check whether --with-build-sysroot was given.
7908 if test "${with_build_sysroot+set}" = set; then :
7909 withval=$with_build_sysroot; if test x"$withval" != x ; then
7910 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7912 else
7913 SYSROOT_CFLAGS_FOR_TARGET=
7919 # Check whether --with-debug-prefix-map was given.
7920 if test "${with_debug_prefix_map+set}" = set; then :
7921 withval=$with_debug_prefix_map; if test x"$withval" != x; then
7922 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7923 for debug_map in $withval; do
7924 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7925 done
7927 else
7928 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7933 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7934 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7935 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7936 # We want to ensure that TARGET libraries (which we know are built with
7937 # gcc) are built with "-O2 -g", so include those options when setting
7938 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7939 if test "x$CFLAGS_FOR_TARGET" = x; then
7940 if test "x${is_cross_compiler}" = xyes; then
7941 CFLAGS_FOR_TARGET="-g -O2"
7942 else
7943 CFLAGS_FOR_TARGET=$CFLAGS
7944 case " $CFLAGS " in
7945 *" -O2 "*) ;;
7946 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7947 esac
7948 case " $CFLAGS " in
7949 *" -g "* | *" -g3 "*) ;;
7950 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7951 esac
7956 if test "x$CXXFLAGS_FOR_TARGET" = x; then
7957 if test "x${is_cross_compiler}" = xyes; then
7958 CXXFLAGS_FOR_TARGET="-g -O2"
7959 else
7960 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7961 case " $CXXFLAGS " in
7962 *" -O2 "*) ;;
7963 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7964 esac
7965 case " $CXXFLAGS " in
7966 *" -g "* | *" -g3 "*) ;;
7967 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7968 esac
7975 # Handle --with-headers=XXX. If the value is not "yes", the contents of
7976 # the named directory are copied to $(tooldir)/sys-include.
7977 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7978 if test x${is_cross_compiler} = xno ; then
7979 echo 1>&2 '***' --with-headers is only supported when cross compiling
7980 exit 1
7982 if test x"${with_headers}" != xyes ; then
7983 x=${gcc_cv_tool_prefix}
7984 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7988 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7989 # the name directories are copied to $(tooldir)/lib. Multiple directories
7990 # are permitted.
7991 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7992 if test x${is_cross_compiler} = xno ; then
7993 echo 1>&2 '***' --with-libs is only supported when cross compiling
7994 exit 1
7996 if test x"${with_libs}" != xyes ; then
7997 # Copy the libraries in reverse order, so that files in the first named
7998 # library override files in subsequent libraries.
7999 x=${gcc_cv_tool_prefix}
8000 for l in ${with_libs}; do
8001 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
8002 done
8006 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
8008 # This is done by determining whether or not the appropriate directory
8009 # is available, and by checking whether or not specific configurations
8010 # have requested that this magic not happen.
8012 # The command line options always override the explicit settings in
8013 # configure.ac, and the settings in configure.ac override this magic.
8015 # If the default for a toolchain is to use GNU as and ld, and you don't
8016 # want to do that, then you should use the --without-gnu-as and
8017 # --without-gnu-ld options for the configure script. Similarly, if
8018 # the default is to use the included zlib and you don't want to do that,
8019 # you should use the --with-system-zlib option for the configure script.
8021 if test x${use_gnu_as} = x &&
8022 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
8023 with_gnu_as=yes
8024 extra_host_args="$extra_host_args --with-gnu-as"
8027 if test x${use_gnu_ld} = x &&
8028 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
8029 with_gnu_ld=yes
8030 extra_host_args="$extra_host_args --with-gnu-ld"
8033 if test x${use_included_zlib} = x &&
8034 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
8036 else
8037 with_system_zlib=yes
8038 extra_host_args="$extra_host_args --with-system-zlib"
8041 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
8042 # can detect this case.
8044 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
8045 with_newlib=yes
8046 extra_host_args="$extra_host_args --with-newlib"
8049 # Handle ${copy_dirs}
8050 set fnord ${copy_dirs}
8051 shift
8052 while test $# != 0 ; do
8053 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
8055 else
8056 echo Copying $1 to $2
8058 # Use the install script to create the directory and all required
8059 # parent directories.
8060 if test -d $2 ; then
8062 else
8063 echo >config.temp
8064 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
8067 # Copy the directory, assuming we have tar.
8068 # FIXME: Should we use B in the second tar? Not all systems support it.
8069 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
8071 # It is the responsibility of the user to correctly adjust all
8072 # symlinks. If somebody can figure out how to handle them correctly
8073 # here, feel free to add the code.
8075 echo $1 > $2/COPIED
8077 shift; shift
8078 done
8080 # Determine a target-dependent exec_prefix that the installed
8081 # gcc will search in. Keep this list sorted by triplet, with
8082 # the *-*-osname triplets last.
8083 md_exec_prefix=
8084 case "${target}" in
8085 i[34567]86-pc-msdosdjgpp*)
8086 md_exec_prefix=/dev/env/DJDIR/bin
8088 *-*-hpux* | \
8089 *-*-nto-qnx* | \
8090 *-*-solaris2*)
8091 md_exec_prefix=/usr/ccs/bin
8093 esac
8095 extra_arflags_for_target=
8096 extra_nmflags_for_target=
8097 extra_ranlibflags_for_target=
8098 target_makefile_frag=/dev/null
8099 case "${target}" in
8100 spu-*-*)
8101 target_makefile_frag="config/mt-spu"
8103 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
8104 target_makefile_frag="config/mt-sde"
8106 mipsisa*-*-elfoabi*)
8107 target_makefile_frag="config/mt-mips-elfoabi"
8109 mips*-*-*linux* | mips*-*-gnu*)
8110 target_makefile_frag="config/mt-mips-gnu"
8112 nios2-*-elf*)
8113 target_makefile_frag="config/mt-nios2-elf"
8115 *-*-linux-android*)
8116 target_makefile_frag="config/mt-android"
8118 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
8119 target_makefile_frag="config/mt-gnu"
8121 *-*-aix4.[3456789]* | *-*-aix[56789].*)
8122 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
8123 # commands to handle both 32-bit and 64-bit objects. These flags are
8124 # harmless if we're using GNU nm or ar.
8125 extra_arflags_for_target=" -X32_64"
8126 extra_nmflags_for_target=" -B -X32_64"
8128 esac
8130 alphaieee_frag=/dev/null
8131 case $target in
8132 alpha*-*-*)
8133 # This just makes sure to use the -mieee option to build target libs.
8134 # This should probably be set individually by each library.
8135 alphaieee_frag="config/mt-alphaieee"
8137 esac
8139 # If --enable-target-optspace always use -Os instead of -O2 to build
8140 # the target libraries, similarly if it is not specified, use -Os
8141 # on selected platforms.
8142 ospace_frag=/dev/null
8143 case "${enable_target_optspace}:${target}" in
8144 yes:*)
8145 ospace_frag="config/mt-ospace"
8147 :d30v-*)
8148 ospace_frag="config/mt-d30v"
8150 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
8151 ospace_frag="config/mt-ospace"
8153 no:* | :*)
8156 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
8158 esac
8160 # Some systems (e.g., one of the i386-aix systems the gas testers are
8161 # using) don't handle "\$" correctly, so don't use it here.
8162 tooldir='${exec_prefix}'/${target_noncanonical}
8163 build_tooldir=${tooldir}
8165 # Create a .gdbinit file which runs the one in srcdir
8166 # and tells GDB to look there for source files.
8168 if test -r ${srcdir}/.gdbinit ; then
8169 case ${srcdir} in
8170 .) ;;
8171 *) cat > ./.gdbinit <<EOF
8172 # ${NO_EDIT}
8173 dir ${srcdir}
8174 dir .
8175 source ${srcdir}/.gdbinit
8178 esac
8181 # Make sure that the compiler is able to generate an executable. If it
8182 # can't, we are probably in trouble. We don't care whether we can run the
8183 # executable--we might be using a cross compiler--we only care whether it
8184 # can be created. At this point the main configure script has set CC.
8185 we_are_ok=no
8186 echo "int main () { return 0; }" > conftest.c
8187 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
8188 if test $? = 0 ; then
8189 if test -s conftest || test -s conftest.exe ; then
8190 we_are_ok=yes
8193 case $we_are_ok in
8195 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
8196 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
8197 rm -f conftest*
8198 exit 1
8200 esac
8201 rm -f conftest*
8203 # Decide which environment variable is used to find dynamic libraries.
8204 case "${host}" in
8205 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
8206 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
8207 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
8208 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
8209 esac
8211 # On systems where the dynamic library environment variable is PATH,
8212 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
8213 # built executables to PATH.
8214 if test "$RPATH_ENVVAR" = PATH; then
8215 GCC_SHLIB_SUBDIR=/shlib
8216 else
8217 GCC_SHLIB_SUBDIR=
8220 # Adjust the toplevel makefile according to whether bootstrap was selected.
8221 case $enable_bootstrap in
8222 yes)
8223 bootstrap_suffix=bootstrap
8224 BUILD_CONFIG=bootstrap-debug
8227 bootstrap_suffix=no-bootstrap
8228 BUILD_CONFIG=
8230 esac
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
8233 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
8236 # Check whether --with-build-config was given.
8237 if test "${with_build_config+set}" = set; then :
8238 withval=$with_build_config; case $with_build_config in
8239 yes) with_build_config= ;;
8240 no) with_build_config= BUILD_CONFIG= ;;
8241 esac
8245 if test "x${with_build_config}" != x; then
8246 BUILD_CONFIG=$with_build_config
8247 else
8248 case $BUILD_CONFIG in
8249 bootstrap-debug)
8250 if echo "int f (void) { return 0; }" > conftest.c &&
8251 ${CC} -c conftest.c &&
8252 mv conftest.o conftest.o.g0 &&
8253 ${CC} -c -g conftest.c &&
8254 mv conftest.o conftest.o.g &&
8255 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
8257 else
8258 BUILD_CONFIG=
8260 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
8262 esac
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
8265 $as_echo "$BUILD_CONFIG" >&6; }
8268 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
8270 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
8271 # Check whether --enable-vtable-verify was given.
8272 if test "${enable_vtable_verify+set}" = set; then :
8273 enableval=$enable_vtable_verify; case "$enableval" in
8274 yes) enable_vtable_verify=yes ;;
8275 no) enable_vtable_verify=no ;;
8276 *) enable_vtable_verify=no;;
8277 esac
8278 else
8279 enable_vtable_verify=no
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
8283 $as_echo "$enable_vtable_verify" >&6; }
8285 # Record target_configdirs and the configure arguments for target and
8286 # build configuration in Makefile.
8287 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
8288 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
8289 bootstrap_fixincludes=no
8291 # If we are building libgomp, bootstrap it.
8292 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
8293 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
8296 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
8297 # or bootstrap-ubsan, bootstrap it.
8298 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
8299 case "$BUILD_CONFIG" in
8300 *bootstrap-asan* | *bootstrap-ubsan* )
8301 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
8302 bootstrap_fixincludes=yes
8304 esac
8307 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
8308 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
8309 test "$enable_vtable_verify" != no; then
8310 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
8313 # Determine whether gdb needs tk/tcl or not.
8314 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
8315 # and in that case we want gdb to be built without tk. Ugh!
8316 # In fact I believe gdb is the *only* package directly dependent on tk,
8317 # so we should be able to put the 'maybe's in unconditionally and
8318 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
8319 # 100% sure that that's safe though.
8321 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
8322 case "$enable_gdbtk" in
8324 GDB_TK="" ;;
8325 yes)
8326 GDB_TK="${gdb_tk}" ;;
8328 # Only add the dependency on gdbtk when GDBtk is part of the gdb
8329 # distro. Eventually someone will fix this and move Insight, nee
8330 # gdbtk to a separate directory.
8331 if test -d ${srcdir}/gdb/gdbtk ; then
8332 GDB_TK="${gdb_tk}"
8333 else
8334 GDB_TK=""
8337 esac
8338 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
8339 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
8341 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
8342 # else does, only include them if one of these is built. The Makefile
8343 # provides the ordering, so it's enough here to add to the list.
8344 case " ${configdirs} " in
8345 *\ gdb\ *)
8346 configdirs="${configdirs} gnulib gdbsupport"
8348 *\ gdbserver\ *)
8349 configdirs="${configdirs} gnulib gdbsupport"
8351 esac
8353 # Strip out unwanted targets.
8355 # While at that, we remove Makefiles if we were started for recursive
8356 # configuration, so that the top-level Makefile reconfigures them,
8357 # like we used to do when configure itself was recursive.
8359 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
8360 # but now we're fixing up the Makefile ourselves with the additional
8361 # commands passed to AC_CONFIG_FILES. Use separate variables
8362 # extrasub-{build,host,target} not because there is any reason to split
8363 # the substitutions up that way, but only to remain below the limit of
8364 # 99 commands in a script, for HP-UX sed.
8366 # Do not nest @if/@endif or @unless/@endunless pairs, because
8367 # configure will not warn you at all.
8369 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
8370 yes:yes:*\ gold\ *:*,c++,*) ;;
8371 yes:yes:*\ gold\ *:*)
8372 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
8374 esac
8376 extrasub_build=
8377 for module in ${build_configdirs} ; do
8378 if test -z "${no_recursion}" \
8379 && test -f ${build_subdir}/${module}/Makefile; then
8380 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
8381 rm -f ${build_subdir}/${module}/Makefile
8383 extrasub_build="$extrasub_build
8384 /^@if build-$module\$/d
8385 /^@endif build-$module\$/d
8386 /^@unless build-$module\$/,/^@endunless build-$module\$/d
8387 /^@if build-$module-$bootstrap_suffix\$/d
8388 /^@endif build-$module-$bootstrap_suffix\$/d
8389 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
8390 done
8391 extrasub_host=
8392 for module in ${configdirs} ; do
8393 if test -z "${no_recursion}"; then
8394 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
8395 if test -f ${file}; then
8396 echo 1>&2 "*** removing ${file} to force reconfigure"
8397 rm -f ${file}
8399 done
8401 case ${module},${bootstrap_fixincludes} in
8402 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
8403 *) host_bootstrap_suffix=$bootstrap_suffix ;;
8404 esac
8405 extrasub_host="$extrasub_host
8406 /^@if $module\$/d
8407 /^@endif $module\$/d
8408 /^@unless $module\$/,/^@endunless $module\$/d
8409 /^@if $module-$host_bootstrap_suffix\$/d
8410 /^@endif $module-$host_bootstrap_suffix\$/d
8411 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
8412 done
8413 extrasub_target=
8414 for module in ${target_configdirs} ; do
8415 if test -z "${no_recursion}" \
8416 && test -f ${target_subdir}/${module}/Makefile; then
8417 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
8418 rm -f ${target_subdir}/${module}/Makefile
8421 # We only bootstrap target libraries listed in bootstrap_target_libs.
8422 case $bootstrap_target_libs in
8423 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
8424 *) target_bootstrap_suffix=no-bootstrap ;;
8425 esac
8427 extrasub_target="$extrasub_target
8428 /^@if target-$module\$/d
8429 /^@endif target-$module\$/d
8430 /^@unless target-$module\$/,/^@endunless target-$module\$/d
8431 /^@if target-$module-$target_bootstrap_suffix\$/d
8432 /^@endif target-$module-$target_bootstrap_suffix\$/d
8433 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
8434 done
8436 # Do the final fixup along with target modules.
8437 extrasub_target="$extrasub_target
8438 /^@if /,/^@endif /d
8439 /^@unless /d
8440 /^@endunless /d"
8442 # Create the serialization dependencies. This uses a temporary file.
8444 # Check whether --enable-serial-configure was given.
8445 if test "${enable_serial_configure+set}" = set; then :
8446 enableval=$enable_serial_configure;
8450 case ${enable_serial_configure} in
8451 yes)
8452 enable_serial_build_configure=yes
8453 enable_serial_host_configure=yes
8454 enable_serial_target_configure=yes
8456 esac
8458 # These force 'configure's to be done one at a time, to avoid problems
8459 # with contention over a shared config.cache.
8460 rm -f serdep.tmp
8461 echo '# serdep.tmp' > serdep.tmp
8462 olditem=
8463 test "x${enable_serial_build_configure}" = xyes &&
8464 for item in ${build_configdirs} ; do
8465 case ${olditem} in
8466 "") ;;
8467 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
8468 esac
8469 olditem=${item}
8470 done
8471 olditem=
8472 test "x${enable_serial_host_configure}" = xyes &&
8473 for item in ${configdirs} ; do
8474 case ${olditem} in
8475 "") ;;
8476 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
8477 esac
8478 olditem=${item}
8479 done
8480 olditem=
8481 test "x${enable_serial_target_configure}" = xyes &&
8482 for item in ${target_configdirs} ; do
8483 case ${olditem} in
8484 "") ;;
8485 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
8486 esac
8487 olditem=${item}
8488 done
8489 serialization_dependencies=serdep.tmp
8492 # Base args. Strip norecursion, cache-file, srcdir, host, build,
8493 # target, nonopt, and variable assignments. These are the ones we
8494 # might not want to pass down to subconfigures. The exception being
8495 # --cache-file=/dev/null, which is used to turn off the use of cache
8496 # files altogether, and which should be passed on to subconfigures.
8497 # Also strip program-prefix, program-suffix, and program-transform-name,
8498 # so that we can pass down a consistent program-transform-name.
8499 baseargs=
8500 tbaseargs=
8501 keep_next=no
8502 skip_next=no
8503 eval "set -- $ac_configure_args"
8504 for ac_arg
8506 if test X"$skip_next" = X"yes"; then
8507 skip_next=no
8508 continue
8510 if test X"$keep_next" = X"yes"; then
8511 case $ac_arg in
8512 *\'*)
8513 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8514 esac
8515 baseargs="$baseargs '$ac_arg'"
8516 tbaseargs="$tbaseargs '$ac_arg'"
8517 keep_next=no
8518 continue
8521 # Handle separated arguments. Based on the logic generated by
8522 # autoconf 2.59.
8523 case $ac_arg in
8524 *=* | --config-cache | -C | -disable-* | --disable-* \
8525 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
8526 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
8527 | -with-* | --with-* | -without-* | --without-* | --x)
8528 separate_arg=no
8531 separate_arg=yes
8534 separate_arg=no
8536 esac
8538 skip_targ=no
8539 case $ac_arg in
8541 --with-* | --without-*)
8542 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
8544 case $libopt in
8545 *[-_]include)
8546 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
8548 *[-_]lib)
8549 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
8552 lib=$libopt
8554 esac
8557 case $lib in
8558 mpc | mpfr | gmp | isl)
8559 # If we're processing --with-$lib, --with-$lib-include or
8560 # --with-$lib-lib, for one of the libs above, and target is
8561 # different from host, don't pass the current argument to any
8562 # target library's configure.
8563 if test x$is_cross_compiler = xyes; then
8564 skip_targ=yes
8567 esac
8569 esac
8571 case "$ac_arg" in
8572 --cache-file=/dev/null | \
8573 -cache-file=/dev/null )
8574 # Handled here to avoid the test to skip args below.
8575 baseargs="$baseargs '$ac_arg'"
8576 tbaseargs="$tbaseargs '$ac_arg'"
8577 # Assert: $separate_arg should always be no.
8578 keep_next=$separate_arg
8580 --no*)
8581 continue
8583 --c* | \
8584 --sr* | \
8585 --ho* | \
8586 --bu* | \
8587 --t* | \
8588 --program-* | \
8589 -cache_file* | \
8590 -srcdir* | \
8591 -host* | \
8592 -build* | \
8593 -target* | \
8594 -program-prefix* | \
8595 -program-suffix* | \
8596 -program-transform-name* )
8597 skip_next=$separate_arg
8598 continue
8601 # An option. Add it.
8602 case $ac_arg in
8603 *\'*)
8604 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8605 esac
8606 baseargs="$baseargs '$ac_arg'"
8607 if test X"$skip_targ" = Xno; then
8608 tbaseargs="$tbaseargs '$ac_arg'"
8610 keep_next=$separate_arg
8613 # Either a variable assignment, or a nonopt (triplet). Don't
8614 # pass it down; let the Makefile handle this.
8615 continue
8617 esac
8618 done
8619 # Remove the initial space we just introduced and, as these will be
8620 # expanded by make, quote '$'.
8621 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
8623 # Add in --program-transform-name, after --program-prefix and
8624 # --program-suffix have been applied to it. Autoconf has already
8625 # doubled dollar signs and backslashes in program_transform_name; we want
8626 # the backslashes un-doubled, and then the entire thing wrapped in single
8627 # quotes, because this will be expanded first by make and then by the shell.
8628 # Also, because we want to override the logic in subdir configure scripts to
8629 # choose program_transform_name, replace any s,x,x, with s,y,y,.
8630 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
8631 ${program_transform_name}
8632 EOF_SED
8633 gcc_transform_name=`cat conftestsed.out`
8634 rm -f conftestsed.out
8635 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
8636 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
8637 if test "$silent" = yes; then
8638 baseargs="$baseargs --silent"
8639 tbaseargs="$tbaseargs --silent"
8641 baseargs="$baseargs --disable-option-checking"
8642 tbaseargs="$tbaseargs --disable-option-checking"
8644 # Record and document user additions to sub configure arguments.
8649 # For the build-side libraries, we just need to pretend we're native,
8650 # and not use the same cache file. Multilibs are neither needed nor
8651 # desired. We can't even use the same cache file for all build-side
8652 # libraries, as they're compiled differently; some with C, some with
8653 # C++ or with different feature-enabling options.
8654 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
8656 # For host modules, accept cache file option, or specification as blank.
8657 case "${cache_file}" in
8658 "") # empty
8659 cache_file_option="" ;;
8660 /* | [A-Za-z]:[\\/]* ) # absolute path
8661 cache_file_option="--cache-file=${cache_file}" ;;
8662 *) # relative path
8663 cache_file_option="--cache-file=../${cache_file}" ;;
8664 esac
8666 # Host dirs don't like to share a cache file either, horribly enough.
8667 # This seems to be due to autoconf 2.5x stupidity.
8668 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
8670 target_configargs="$target_configargs ${tbaseargs}"
8672 # Passing a --with-cross-host argument lets the target libraries know
8673 # whether they are being built with a cross-compiler or being built
8674 # native. However, it would be better to use other mechanisms to make the
8675 # sorts of decisions they want to make on this basis. Please consider
8676 # this option to be deprecated. FIXME.
8677 if test x${is_cross_compiler} = xyes ; then
8678 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
8681 # Special user-friendly check for native x86_64-linux build, if
8682 # multilib is not explicitly enabled.
8683 case "$target:$have_compiler:$host:$target:$enable_multilib" in
8684 x86_64-*linux*:yes:$build:$build:)
8685 # Make sure we have a development environment that handles 32-bit
8686 dev64=no
8687 echo "int main () { return 0; }" > conftest.c
8688 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
8689 if test $? = 0 ; then
8690 if test -s conftest || test -s conftest.exe ; then
8691 dev64=yes
8694 rm -f conftest*
8695 if test x${dev64} != xyes ; then
8696 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
8699 esac
8701 # Default to --enable-multilib.
8702 if test x${enable_multilib} = x ; then
8703 target_configargs="--enable-multilib ${target_configargs}"
8706 # Pass --with-newlib if appropriate. Note that target_configdirs has
8707 # changed from the earlier setting of with_newlib.
8708 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
8709 target_configargs="--with-newlib ${target_configargs}"
8712 # Different target subdirs use different values of certain variables
8713 # (notably CXX). Worse, multilibs use *lots* of different values.
8714 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
8715 # it doesn't automatically accept command-line overrides of them.
8716 # This means it's not safe for target subdirs to share a cache file,
8717 # which is disgusting, but there you have it. Hopefully this can be
8718 # fixed in future. It's still worthwhile to use a cache file for each
8719 # directory. I think.
8721 # Pass the appropriate --build, --host, --target and --cache-file arguments.
8722 # We need to pass --target, as newer autoconf's requires consistency
8723 # for target_alias and gcc doesn't manage it consistently.
8724 target_configargs="--cache-file=./config.cache ${target_configargs}"
8726 FLAGS_FOR_TARGET=
8727 case " $target_configdirs " in
8728 *" newlib "*)
8729 case " $target_configargs " in
8730 *" --with-newlib "*)
8731 case "$target" in
8732 *-cygwin*)
8733 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
8735 esac
8737 # If we're not building GCC, don't discard standard headers.
8738 if test -d ${srcdir}/gcc; then
8739 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
8741 if test "${build}" != "${host}"; then
8742 # On Canadian crosses, CC_FOR_TARGET will have already been set
8743 # by `configure', so we won't have an opportunity to add -Bgcc/
8744 # to it. This is right: we don't want to search that directory
8745 # for binaries, but we want the header files in there, so add
8746 # them explicitly.
8747 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
8749 # Someone might think of using the pre-installed headers on
8750 # Canadian crosses, in case the installed compiler is not fully
8751 # compatible with the compiler being built. In this case, it
8752 # would be better to flag an error than risking having
8753 # incompatible object files being constructed. We can't
8754 # guarantee that an error will be flagged, but let's hope the
8755 # compiler will do it, when presented with incompatible header
8756 # files.
8760 case "${target}-${is_cross_compiler}" in
8761 i[3456789]86-*-linux*-no)
8762 # Here host == target, so we don't need to build gcc,
8763 # so we don't want to discard standard headers.
8764 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
8767 # If we're building newlib, use its generic headers last, but search
8768 # for any libc-related directories first (so make it the last -B
8769 # switch).
8770 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
8772 # If we're building libgloss, find the startup file, simulator library
8773 # and linker script.
8774 case " $target_configdirs " in
8775 *" libgloss "*)
8776 # Look for startup file, simulator library and maybe linker script.
8777 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
8778 # Look for libnosys.a in case the target needs it.
8779 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
8780 # Most targets have the linker script in the source directory.
8781 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
8783 esac
8785 esac
8787 esac
8789 esac
8791 case "$target" in
8792 x86_64-*mingw* | *-w64-mingw*)
8793 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8794 # however, use a symlink named 'mingw' in ${prefix} .
8795 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8797 *-mingw*)
8798 # MinGW can't be handled as Cygwin above since it does not use newlib.
8799 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'
8801 esac
8803 # Allow the user to override the flags for
8804 # our build compiler if desired.
8805 if test x"${build}" = x"${host}" ; then
8806 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8807 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8808 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8811 # On Canadian crosses, we'll be searching the right directories for
8812 # the previously-installed cross compiler, so don't bother to add
8813 # flags for directories within the install tree of the compiler
8814 # being built; programs in there won't even run.
8815 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8816 # Search for pre-installed headers if nothing else fits.
8817 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
8820 if test "x${use_gnu_ld}" = x &&
8821 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8822 # Arrange for us to find uninstalled linker scripts.
8823 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
8826 # Search for other target-specific linker scripts and such.
8827 case "${target}" in
8828 mep*)
8829 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8831 esac
8833 # Makefile fragments.
8834 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8836 eval fragval=\$$frag
8837 if test $fragval != /dev/null; then
8838 eval $frag=${srcdir}/$fragval
8840 done
8846 # Miscellanea: directories, flags, etc.
8855 # Build module lists & subconfigure args.
8859 # Host module lists & subconfigure args.
8864 # Target module lists & subconfigure args.
8868 # Build tools.
8886 # Generate default definitions for YACC, M4, LEX and other programs that run
8887 # on the build machine. These are used if the Makefile can't locate these
8888 # programs in objdir.
8889 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8891 for ac_prog in 'bison -y' byacc yacc
8893 # Extract the first word of "$ac_prog", so it can be a program name with args.
8894 set dummy $ac_prog; ac_word=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if ${ac_cv_prog_YACC+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 if test -n "$YACC"; then
8901 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8902 else
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in $PATH
8906 IFS=$as_save_IFS
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_YACC="$ac_prog"
8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 break 2
8914 done
8915 done
8916 IFS=$as_save_IFS
8920 YACC=$ac_cv_prog_YACC
8921 if test -n "$YACC"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8923 $as_echo "$YACC" >&6; }
8924 else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8930 test -n "$YACC" && break
8931 done
8932 test -n "$YACC" || YACC="$MISSING bison -y"
8934 case " $build_configdirs " in
8935 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8936 esac
8938 for ac_prog in bison
8940 # Extract the first word of "$ac_prog", so it can be a program name with args.
8941 set dummy $ac_prog; ac_word=$2
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943 $as_echo_n "checking for $ac_word... " >&6; }
8944 if ${ac_cv_prog_BISON+:} false; then :
8945 $as_echo_n "(cached) " >&6
8946 else
8947 if test -n "$BISON"; then
8948 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8949 else
8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951 for as_dir in $PATH
8953 IFS=$as_save_IFS
8954 test -z "$as_dir" && as_dir=.
8955 for ac_exec_ext in '' $ac_executable_extensions; do
8956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8957 ac_cv_prog_BISON="$ac_prog"
8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959 break 2
8961 done
8962 done
8963 IFS=$as_save_IFS
8967 BISON=$ac_cv_prog_BISON
8968 if test -n "$BISON"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8970 $as_echo "$BISON" >&6; }
8971 else
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8977 test -n "$BISON" && break
8978 done
8979 test -n "$BISON" || BISON="$MISSING bison"
8981 case " $build_configdirs " in
8982 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8983 esac
8985 for ac_prog in gm4 gnum4 m4
8987 # Extract the first word of "$ac_prog", so it can be a program name with args.
8988 set dummy $ac_prog; ac_word=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if ${ac_cv_prog_M4+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 if test -n "$M4"; then
8995 ac_cv_prog_M4="$M4" # Let the user override the test.
8996 else
8997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8998 for as_dir in $PATH
9000 IFS=$as_save_IFS
9001 test -z "$as_dir" && as_dir=.
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_M4="$ac_prog"
9005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9006 break 2
9008 done
9009 done
9010 IFS=$as_save_IFS
9014 M4=$ac_cv_prog_M4
9015 if test -n "$M4"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
9017 $as_echo "$M4" >&6; }
9018 else
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9024 test -n "$M4" && break
9025 done
9026 test -n "$M4" || M4="$MISSING m4"
9028 case " $build_configdirs " in
9029 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
9030 esac
9032 for ac_prog in flex lex
9034 # Extract the first word of "$ac_prog", so it can be a program name with args.
9035 set dummy $ac_prog; ac_word=$2
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037 $as_echo_n "checking for $ac_word... " >&6; }
9038 if ${ac_cv_prog_LEX+:} false; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 if test -n "$LEX"; then
9042 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9043 else
9044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045 for as_dir in $PATH
9047 IFS=$as_save_IFS
9048 test -z "$as_dir" && as_dir=.
9049 for ac_exec_ext in '' $ac_executable_extensions; do
9050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9051 ac_cv_prog_LEX="$ac_prog"
9052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9053 break 2
9055 done
9056 done
9057 IFS=$as_save_IFS
9061 LEX=$ac_cv_prog_LEX
9062 if test -n "$LEX"; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
9064 $as_echo "$LEX" >&6; }
9065 else
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 $as_echo "no" >&6; }
9071 test -n "$LEX" && break
9072 done
9073 test -n "$LEX" || LEX="$MISSING flex"
9075 case " $build_configdirs " in
9076 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
9077 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
9078 esac
9080 for ac_prog in flex
9082 # Extract the first word of "$ac_prog", so it can be a program name with args.
9083 set dummy $ac_prog; ac_word=$2
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085 $as_echo_n "checking for $ac_word... " >&6; }
9086 if ${ac_cv_prog_FLEX+:} false; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 if test -n "$FLEX"; then
9090 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
9091 else
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 for as_dir in $PATH
9095 IFS=$as_save_IFS
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_FLEX="$ac_prog"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9101 break 2
9103 done
9104 done
9105 IFS=$as_save_IFS
9109 FLEX=$ac_cv_prog_FLEX
9110 if test -n "$FLEX"; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
9112 $as_echo "$FLEX" >&6; }
9113 else
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115 $as_echo "no" >&6; }
9119 test -n "$FLEX" && break
9120 done
9121 test -n "$FLEX" || FLEX="$MISSING flex"
9123 case " $build_configdirs " in
9124 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
9125 esac
9127 for ac_prog in makeinfo
9129 # Extract the first word of "$ac_prog", so it can be a program name with args.
9130 set dummy $ac_prog; ac_word=$2
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9132 $as_echo_n "checking for $ac_word... " >&6; }
9133 if ${ac_cv_prog_MAKEINFO+:} false; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 if test -n "$MAKEINFO"; then
9137 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
9138 else
9139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140 for as_dir in $PATH
9142 IFS=$as_save_IFS
9143 test -z "$as_dir" && as_dir=.
9144 for ac_exec_ext in '' $ac_executable_extensions; do
9145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9146 ac_cv_prog_MAKEINFO="$ac_prog"
9147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9148 break 2
9150 done
9151 done
9152 IFS=$as_save_IFS
9156 MAKEINFO=$ac_cv_prog_MAKEINFO
9157 if test -n "$MAKEINFO"; then
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
9159 $as_echo "$MAKEINFO" >&6; }
9160 else
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162 $as_echo "no" >&6; }
9166 test -n "$MAKEINFO" && break
9167 done
9168 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
9170 case " $build_configdirs " in
9171 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
9174 # For an installed makeinfo, we require it to be from texinfo 4.7 or
9175 # higher, else we use the "missing" dummy.
9176 if ${MAKEINFO} --version \
9177 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
9179 else
9180 MAKEINFO="$MISSING makeinfo"
9184 esac
9186 # FIXME: expect and dejagnu may become build tools?
9188 for ac_prog in expect
9190 # Extract the first word of "$ac_prog", so it can be a program name with args.
9191 set dummy $ac_prog; ac_word=$2
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9193 $as_echo_n "checking for $ac_word... " >&6; }
9194 if ${ac_cv_prog_EXPECT+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 if test -n "$EXPECT"; then
9198 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
9199 else
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 for as_dir in $PATH
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9207 ac_cv_prog_EXPECT="$ac_prog"
9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9211 done
9212 done
9213 IFS=$as_save_IFS
9217 EXPECT=$ac_cv_prog_EXPECT
9218 if test -n "$EXPECT"; then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
9220 $as_echo "$EXPECT" >&6; }
9221 else
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 $as_echo "no" >&6; }
9227 test -n "$EXPECT" && break
9228 done
9229 test -n "$EXPECT" || EXPECT="expect"
9231 case " $configdirs " in
9232 *" expect "*)
9233 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
9235 esac
9237 for ac_prog in runtest
9239 # Extract the first word of "$ac_prog", so it can be a program name with args.
9240 set dummy $ac_prog; ac_word=$2
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242 $as_echo_n "checking for $ac_word... " >&6; }
9243 if ${ac_cv_prog_RUNTEST+:} false; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 if test -n "$RUNTEST"; then
9247 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
9248 else
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250 for as_dir in $PATH
9252 IFS=$as_save_IFS
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9256 ac_cv_prog_RUNTEST="$ac_prog"
9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9258 break 2
9260 done
9261 done
9262 IFS=$as_save_IFS
9266 RUNTEST=$ac_cv_prog_RUNTEST
9267 if test -n "$RUNTEST"; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
9269 $as_echo "$RUNTEST" >&6; }
9270 else
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 $as_echo "no" >&6; }
9276 test -n "$RUNTEST" && break
9277 done
9278 test -n "$RUNTEST" || RUNTEST="runtest"
9280 case " $configdirs " in
9281 *" dejagnu "*)
9282 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
9284 esac
9287 # Host tools.
9288 ncn_tool_prefix=
9289 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
9290 ncn_target_tool_prefix=
9291 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
9295 if test -n "$AR"; then
9296 ac_cv_prog_AR=$AR
9297 elif test -n "$ac_cv_prog_AR"; then
9298 AR=$ac_cv_prog_AR
9301 if test -n "$ac_cv_prog_AR"; then
9302 for ncn_progname in ar; do
9303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9304 set dummy ${ncn_progname}; ac_word=$2
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9306 $as_echo_n "checking for $ac_word... " >&6; }
9307 if ${ac_cv_prog_AR+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 if test -n "$AR"; then
9311 ac_cv_prog_AR="$AR" # Let the user override the test.
9312 else
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 for as_dir in $PATH
9316 IFS=$as_save_IFS
9317 test -z "$as_dir" && as_dir=.
9318 for ac_exec_ext in '' $ac_executable_extensions; do
9319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9320 ac_cv_prog_AR="${ncn_progname}"
9321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9322 break 2
9324 done
9325 done
9326 IFS=$as_save_IFS
9330 AR=$ac_cv_prog_AR
9331 if test -n "$AR"; then
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9333 $as_echo "$AR" >&6; }
9334 else
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9340 done
9343 for ncn_progname in ar; do
9344 if test -n "$ncn_tool_prefix"; then
9345 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9346 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9348 $as_echo_n "checking for $ac_word... " >&6; }
9349 if ${ac_cv_prog_AR+:} false; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 if test -n "$AR"; then
9353 ac_cv_prog_AR="$AR" # Let the user override the test.
9354 else
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356 for as_dir in $PATH
9358 IFS=$as_save_IFS
9359 test -z "$as_dir" && as_dir=.
9360 for ac_exec_ext in '' $ac_executable_extensions; do
9361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9362 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
9363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9364 break 2
9366 done
9367 done
9368 IFS=$as_save_IFS
9372 AR=$ac_cv_prog_AR
9373 if test -n "$AR"; then
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9375 $as_echo "$AR" >&6; }
9376 else
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9378 $as_echo "no" >&6; }
9383 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
9384 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9385 set dummy ${ncn_progname}; ac_word=$2
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9387 $as_echo_n "checking for $ac_word... " >&6; }
9388 if ${ac_cv_prog_AR+:} false; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9391 if test -n "$AR"; then
9392 ac_cv_prog_AR="$AR" # Let the user override the test.
9393 else
9394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9395 for as_dir in $PATH
9397 IFS=$as_save_IFS
9398 test -z "$as_dir" && as_dir=.
9399 for ac_exec_ext in '' $ac_executable_extensions; do
9400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9401 ac_cv_prog_AR="${ncn_progname}"
9402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9403 break 2
9405 done
9406 done
9407 IFS=$as_save_IFS
9411 AR=$ac_cv_prog_AR
9412 if test -n "$AR"; then
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9414 $as_echo "$AR" >&6; }
9415 else
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417 $as_echo "no" >&6; }
9422 test -n "$ac_cv_prog_AR" && break
9423 done
9425 if test -z "$ac_cv_prog_AR" ; then
9426 set dummy ar
9427 if test $build = $host ; then
9428 AR="$2"
9429 else
9430 AR="${ncn_tool_prefix}$2"
9436 if test -n "$AS"; then
9437 ac_cv_prog_AS=$AS
9438 elif test -n "$ac_cv_prog_AS"; then
9439 AS=$ac_cv_prog_AS
9442 if test -n "$ac_cv_prog_AS"; then
9443 for ncn_progname in as; do
9444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9445 set dummy ${ncn_progname}; ac_word=$2
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9447 $as_echo_n "checking for $ac_word... " >&6; }
9448 if ${ac_cv_prog_AS+:} false; then :
9449 $as_echo_n "(cached) " >&6
9450 else
9451 if test -n "$AS"; then
9452 ac_cv_prog_AS="$AS" # Let the user override the test.
9453 else
9454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9455 for as_dir in $PATH
9457 IFS=$as_save_IFS
9458 test -z "$as_dir" && as_dir=.
9459 for ac_exec_ext in '' $ac_executable_extensions; do
9460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9461 ac_cv_prog_AS="${ncn_progname}"
9462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9463 break 2
9465 done
9466 done
9467 IFS=$as_save_IFS
9471 AS=$ac_cv_prog_AS
9472 if test -n "$AS"; then
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9474 $as_echo "$AS" >&6; }
9475 else
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9477 $as_echo "no" >&6; }
9481 done
9484 for ncn_progname in as; do
9485 if test -n "$ncn_tool_prefix"; then
9486 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9487 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9489 $as_echo_n "checking for $ac_word... " >&6; }
9490 if ${ac_cv_prog_AS+:} false; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 if test -n "$AS"; then
9494 ac_cv_prog_AS="$AS" # Let the user override the test.
9495 else
9496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9497 for as_dir in $PATH
9499 IFS=$as_save_IFS
9500 test -z "$as_dir" && as_dir=.
9501 for ac_exec_ext in '' $ac_executable_extensions; do
9502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9503 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
9504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9505 break 2
9507 done
9508 done
9509 IFS=$as_save_IFS
9513 AS=$ac_cv_prog_AS
9514 if test -n "$AS"; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9516 $as_echo "$AS" >&6; }
9517 else
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 $as_echo "no" >&6; }
9524 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
9525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9526 set dummy ${ncn_progname}; ac_word=$2
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 $as_echo_n "checking for $ac_word... " >&6; }
9529 if ${ac_cv_prog_AS+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 if test -n "$AS"; then
9533 ac_cv_prog_AS="$AS" # Let the user override the test.
9534 else
9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536 for as_dir in $PATH
9538 IFS=$as_save_IFS
9539 test -z "$as_dir" && as_dir=.
9540 for ac_exec_ext in '' $ac_executable_extensions; do
9541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9542 ac_cv_prog_AS="${ncn_progname}"
9543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 break 2
9546 done
9547 done
9548 IFS=$as_save_IFS
9552 AS=$ac_cv_prog_AS
9553 if test -n "$AS"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9555 $as_echo "$AS" >&6; }
9556 else
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 $as_echo "no" >&6; }
9563 test -n "$ac_cv_prog_AS" && break
9564 done
9566 if test -z "$ac_cv_prog_AS" ; then
9567 set dummy as
9568 if test $build = $host ; then
9569 AS="$2"
9570 else
9571 AS="${ncn_tool_prefix}$2"
9577 if test -n "$DLLTOOL"; then
9578 ac_cv_prog_DLLTOOL=$DLLTOOL
9579 elif test -n "$ac_cv_prog_DLLTOOL"; then
9580 DLLTOOL=$ac_cv_prog_DLLTOOL
9583 if test -n "$ac_cv_prog_DLLTOOL"; then
9584 for ncn_progname in dlltool; do
9585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9586 set dummy ${ncn_progname}; ac_word=$2
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9588 $as_echo_n "checking for $ac_word... " >&6; }
9589 if ${ac_cv_prog_DLLTOOL+:} false; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 if test -n "$DLLTOOL"; then
9593 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9594 else
9595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 for as_dir in $PATH
9598 IFS=$as_save_IFS
9599 test -z "$as_dir" && as_dir=.
9600 for ac_exec_ext in '' $ac_executable_extensions; do
9601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9602 ac_cv_prog_DLLTOOL="${ncn_progname}"
9603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604 break 2
9606 done
9607 done
9608 IFS=$as_save_IFS
9612 DLLTOOL=$ac_cv_prog_DLLTOOL
9613 if test -n "$DLLTOOL"; then
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9615 $as_echo "$DLLTOOL" >&6; }
9616 else
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9618 $as_echo "no" >&6; }
9622 done
9625 for ncn_progname in dlltool; do
9626 if test -n "$ncn_tool_prefix"; then
9627 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9628 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9630 $as_echo_n "checking for $ac_word... " >&6; }
9631 if ${ac_cv_prog_DLLTOOL+:} false; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 if test -n "$DLLTOOL"; then
9635 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9636 else
9637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638 for as_dir in $PATH
9640 IFS=$as_save_IFS
9641 test -z "$as_dir" && as_dir=.
9642 for ac_exec_ext in '' $ac_executable_extensions; do
9643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9644 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
9645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9646 break 2
9648 done
9649 done
9650 IFS=$as_save_IFS
9654 DLLTOOL=$ac_cv_prog_DLLTOOL
9655 if test -n "$DLLTOOL"; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9657 $as_echo "$DLLTOOL" >&6; }
9658 else
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9665 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
9666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9667 set dummy ${ncn_progname}; ac_word=$2
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9669 $as_echo_n "checking for $ac_word... " >&6; }
9670 if ${ac_cv_prog_DLLTOOL+:} false; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 if test -n "$DLLTOOL"; then
9674 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9675 else
9676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9677 for as_dir in $PATH
9679 IFS=$as_save_IFS
9680 test -z "$as_dir" && as_dir=.
9681 for ac_exec_ext in '' $ac_executable_extensions; do
9682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9683 ac_cv_prog_DLLTOOL="${ncn_progname}"
9684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9685 break 2
9687 done
9688 done
9689 IFS=$as_save_IFS
9693 DLLTOOL=$ac_cv_prog_DLLTOOL
9694 if test -n "$DLLTOOL"; then
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9696 $as_echo "$DLLTOOL" >&6; }
9697 else
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9699 $as_echo "no" >&6; }
9704 test -n "$ac_cv_prog_DLLTOOL" && break
9705 done
9707 if test -z "$ac_cv_prog_DLLTOOL" ; then
9708 set dummy dlltool
9709 if test $build = $host ; then
9710 DLLTOOL="$2"
9711 else
9712 DLLTOOL="${ncn_tool_prefix}$2"
9718 if test -n "$LD"; then
9719 ac_cv_prog_LD=$LD
9720 elif test -n "$ac_cv_prog_LD"; then
9721 LD=$ac_cv_prog_LD
9724 if test -n "$ac_cv_prog_LD"; then
9725 for ncn_progname in ld; do
9726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9727 set dummy ${ncn_progname}; ac_word=$2
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9729 $as_echo_n "checking for $ac_word... " >&6; }
9730 if ${ac_cv_prog_LD+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 if test -n "$LD"; then
9734 ac_cv_prog_LD="$LD" # Let the user override the test.
9735 else
9736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737 for as_dir in $PATH
9739 IFS=$as_save_IFS
9740 test -z "$as_dir" && as_dir=.
9741 for ac_exec_ext in '' $ac_executable_extensions; do
9742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9743 ac_cv_prog_LD="${ncn_progname}"
9744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745 break 2
9747 done
9748 done
9749 IFS=$as_save_IFS
9753 LD=$ac_cv_prog_LD
9754 if test -n "$LD"; then
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9756 $as_echo "$LD" >&6; }
9757 else
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9759 $as_echo "no" >&6; }
9763 done
9766 for ncn_progname in ld; do
9767 if test -n "$ncn_tool_prefix"; then
9768 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9769 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771 $as_echo_n "checking for $ac_word... " >&6; }
9772 if ${ac_cv_prog_LD+:} false; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 if test -n "$LD"; then
9776 ac_cv_prog_LD="$LD" # Let the user override the test.
9777 else
9778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779 for as_dir in $PATH
9781 IFS=$as_save_IFS
9782 test -z "$as_dir" && as_dir=.
9783 for ac_exec_ext in '' $ac_executable_extensions; do
9784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9785 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
9786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9787 break 2
9789 done
9790 done
9791 IFS=$as_save_IFS
9795 LD=$ac_cv_prog_LD
9796 if test -n "$LD"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9798 $as_echo "$LD" >&6; }
9799 else
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801 $as_echo "no" >&6; }
9806 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9808 set dummy ${ncn_progname}; ac_word=$2
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810 $as_echo_n "checking for $ac_word... " >&6; }
9811 if ${ac_cv_prog_LD+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 if test -n "$LD"; then
9815 ac_cv_prog_LD="$LD" # Let the user override the test.
9816 else
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818 for as_dir in $PATH
9820 IFS=$as_save_IFS
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824 ac_cv_prog_LD="${ncn_progname}"
9825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9826 break 2
9828 done
9829 done
9830 IFS=$as_save_IFS
9834 LD=$ac_cv_prog_LD
9835 if test -n "$LD"; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9837 $as_echo "$LD" >&6; }
9838 else
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9845 test -n "$ac_cv_prog_LD" && break
9846 done
9848 if test -z "$ac_cv_prog_LD" ; then
9849 set dummy ld
9850 if test $build = $host ; then
9851 LD="$2"
9852 else
9853 LD="${ncn_tool_prefix}$2"
9859 if test -n "$LIPO"; then
9860 ac_cv_prog_LIPO=$LIPO
9861 elif test -n "$ac_cv_prog_LIPO"; then
9862 LIPO=$ac_cv_prog_LIPO
9865 if test -n "$ac_cv_prog_LIPO"; then
9866 for ncn_progname in lipo; do
9867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9868 set dummy ${ncn_progname}; ac_word=$2
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9870 $as_echo_n "checking for $ac_word... " >&6; }
9871 if ${ac_cv_prog_LIPO+:} false; then :
9872 $as_echo_n "(cached) " >&6
9873 else
9874 if test -n "$LIPO"; then
9875 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9876 else
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 for as_dir in $PATH
9880 IFS=$as_save_IFS
9881 test -z "$as_dir" && as_dir=.
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9884 ac_cv_prog_LIPO="${ncn_progname}"
9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9886 break 2
9888 done
9889 done
9890 IFS=$as_save_IFS
9894 LIPO=$ac_cv_prog_LIPO
9895 if test -n "$LIPO"; then
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9897 $as_echo "$LIPO" >&6; }
9898 else
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9904 done
9907 for ncn_progname in lipo; do
9908 if test -n "$ncn_tool_prefix"; then
9909 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9910 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912 $as_echo_n "checking for $ac_word... " >&6; }
9913 if ${ac_cv_prog_LIPO+:} false; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 if test -n "$LIPO"; then
9917 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9918 else
9919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920 for as_dir in $PATH
9922 IFS=$as_save_IFS
9923 test -z "$as_dir" && as_dir=.
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9926 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 break 2
9930 done
9931 done
9932 IFS=$as_save_IFS
9936 LIPO=$ac_cv_prog_LIPO
9937 if test -n "$LIPO"; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9939 $as_echo "$LIPO" >&6; }
9940 else
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942 $as_echo "no" >&6; }
9947 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9949 set dummy ${ncn_progname}; ac_word=$2
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951 $as_echo_n "checking for $ac_word... " >&6; }
9952 if ${ac_cv_prog_LIPO+:} false; then :
9953 $as_echo_n "(cached) " >&6
9954 else
9955 if test -n "$LIPO"; then
9956 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9957 else
9958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959 for as_dir in $PATH
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9965 ac_cv_prog_LIPO="${ncn_progname}"
9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 break 2
9969 done
9970 done
9971 IFS=$as_save_IFS
9975 LIPO=$ac_cv_prog_LIPO
9976 if test -n "$LIPO"; then
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9978 $as_echo "$LIPO" >&6; }
9979 else
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981 $as_echo "no" >&6; }
9986 test -n "$ac_cv_prog_LIPO" && break
9987 done
9989 if test -z "$ac_cv_prog_LIPO" ; then
9990 set dummy lipo
9991 if test $build = $host ; then
9992 LIPO="$2"
9993 else
9994 LIPO="${ncn_tool_prefix}$2"
10000 if test -n "$NM"; then
10001 ac_cv_prog_NM=$NM
10002 elif test -n "$ac_cv_prog_NM"; then
10003 NM=$ac_cv_prog_NM
10006 if test -n "$ac_cv_prog_NM"; then
10007 for ncn_progname in nm; do
10008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10009 set dummy ${ncn_progname}; ac_word=$2
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011 $as_echo_n "checking for $ac_word... " >&6; }
10012 if ${ac_cv_prog_NM+:} false; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 if test -n "$NM"; then
10016 ac_cv_prog_NM="$NM" # Let the user override the test.
10017 else
10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025 ac_cv_prog_NM="${ncn_progname}"
10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10029 done
10030 done
10031 IFS=$as_save_IFS
10035 NM=$ac_cv_prog_NM
10036 if test -n "$NM"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
10038 $as_echo "$NM" >&6; }
10039 else
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10045 done
10048 for ncn_progname in nm; do
10049 if test -n "$ncn_tool_prefix"; then
10050 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10051 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if ${ac_cv_prog_NM+:} false; then :
10055 $as_echo_n "(cached) " >&6
10056 else
10057 if test -n "$NM"; then
10058 ac_cv_prog_NM="$NM" # Let the user override the test.
10059 else
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10067 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 break 2
10071 done
10072 done
10073 IFS=$as_save_IFS
10077 NM=$ac_cv_prog_NM
10078 if test -n "$NM"; then
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
10080 $as_echo "$NM" >&6; }
10081 else
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083 $as_echo "no" >&6; }
10088 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
10089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10090 set dummy ${ncn_progname}; ac_word=$2
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10092 $as_echo_n "checking for $ac_word... " >&6; }
10093 if ${ac_cv_prog_NM+:} false; then :
10094 $as_echo_n "(cached) " >&6
10095 else
10096 if test -n "$NM"; then
10097 ac_cv_prog_NM="$NM" # Let the user override the test.
10098 else
10099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100 for as_dir in $PATH
10102 IFS=$as_save_IFS
10103 test -z "$as_dir" && as_dir=.
10104 for ac_exec_ext in '' $ac_executable_extensions; do
10105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10106 ac_cv_prog_NM="${ncn_progname}"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10108 break 2
10110 done
10111 done
10112 IFS=$as_save_IFS
10116 NM=$ac_cv_prog_NM
10117 if test -n "$NM"; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
10119 $as_echo "$NM" >&6; }
10120 else
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122 $as_echo "no" >&6; }
10127 test -n "$ac_cv_prog_NM" && break
10128 done
10130 if test -z "$ac_cv_prog_NM" ; then
10131 set dummy nm
10132 if test $build = $host ; then
10133 NM="$2"
10134 else
10135 NM="${ncn_tool_prefix}$2"
10141 if test -n "$RANLIB"; then
10142 ac_cv_prog_RANLIB=$RANLIB
10143 elif test -n "$ac_cv_prog_RANLIB"; then
10144 RANLIB=$ac_cv_prog_RANLIB
10147 if test -n "$ac_cv_prog_RANLIB"; then
10148 for ncn_progname in ranlib; do
10149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10150 set dummy ${ncn_progname}; ac_word=$2
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152 $as_echo_n "checking for $ac_word... " >&6; }
10153 if ${ac_cv_prog_RANLIB+:} false; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10156 if test -n "$RANLIB"; then
10157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10158 else
10159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160 for as_dir in $PATH
10162 IFS=$as_save_IFS
10163 test -z "$as_dir" && as_dir=.
10164 for ac_exec_ext in '' $ac_executable_extensions; do
10165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10166 ac_cv_prog_RANLIB="${ncn_progname}"
10167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10168 break 2
10170 done
10171 done
10172 IFS=$as_save_IFS
10176 RANLIB=$ac_cv_prog_RANLIB
10177 if test -n "$RANLIB"; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10179 $as_echo "$RANLIB" >&6; }
10180 else
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10182 $as_echo "no" >&6; }
10186 done
10189 for ncn_progname in ranlib; do
10190 if test -n "$ncn_tool_prefix"; then
10191 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10192 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10194 $as_echo_n "checking for $ac_word... " >&6; }
10195 if ${ac_cv_prog_RANLIB+:} false; then :
10196 $as_echo_n "(cached) " >&6
10197 else
10198 if test -n "$RANLIB"; then
10199 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10200 else
10201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202 for as_dir in $PATH
10204 IFS=$as_save_IFS
10205 test -z "$as_dir" && as_dir=.
10206 for ac_exec_ext in '' $ac_executable_extensions; do
10207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10208 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
10209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10210 break 2
10212 done
10213 done
10214 IFS=$as_save_IFS
10218 RANLIB=$ac_cv_prog_RANLIB
10219 if test -n "$RANLIB"; then
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10221 $as_echo "$RANLIB" >&6; }
10222 else
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224 $as_echo "no" >&6; }
10229 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
10230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10231 set dummy ${ncn_progname}; ac_word=$2
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233 $as_echo_n "checking for $ac_word... " >&6; }
10234 if ${ac_cv_prog_RANLIB+:} false; then :
10235 $as_echo_n "(cached) " >&6
10236 else
10237 if test -n "$RANLIB"; then
10238 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10239 else
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241 for as_dir in $PATH
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10247 ac_cv_prog_RANLIB="${ncn_progname}"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249 break 2
10251 done
10252 done
10253 IFS=$as_save_IFS
10257 RANLIB=$ac_cv_prog_RANLIB
10258 if test -n "$RANLIB"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10260 $as_echo "$RANLIB" >&6; }
10261 else
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263 $as_echo "no" >&6; }
10268 test -n "$ac_cv_prog_RANLIB" && break
10269 done
10271 if test -z "$ac_cv_prog_RANLIB" ; then
10272 RANLIB="true"
10277 if test -n "$STRIP"; then
10278 ac_cv_prog_STRIP=$STRIP
10279 elif test -n "$ac_cv_prog_STRIP"; then
10280 STRIP=$ac_cv_prog_STRIP
10283 if test -n "$ac_cv_prog_STRIP"; then
10284 for ncn_progname in strip; do
10285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10286 set dummy ${ncn_progname}; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_prog_STRIP+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 if test -n "$STRIP"; then
10293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10294 else
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302 ac_cv_prog_STRIP="${ncn_progname}"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10304 break 2
10306 done
10307 done
10308 IFS=$as_save_IFS
10312 STRIP=$ac_cv_prog_STRIP
10313 if test -n "$STRIP"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10315 $as_echo "$STRIP" >&6; }
10316 else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10322 done
10325 for ncn_progname in strip; do
10326 if test -n "$ncn_tool_prefix"; then
10327 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10328 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330 $as_echo_n "checking for $ac_word... " >&6; }
10331 if ${ac_cv_prog_STRIP+:} false; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 if test -n "$STRIP"; then
10335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10336 else
10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338 for as_dir in $PATH
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10344 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 break 2
10348 done
10349 done
10350 IFS=$as_save_IFS
10354 STRIP=$ac_cv_prog_STRIP
10355 if test -n "$STRIP"; then
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10357 $as_echo "$STRIP" >&6; }
10358 else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10365 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
10366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10367 set dummy ${ncn_progname}; ac_word=$2
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369 $as_echo_n "checking for $ac_word... " >&6; }
10370 if ${ac_cv_prog_STRIP+:} false; then :
10371 $as_echo_n "(cached) " >&6
10372 else
10373 if test -n "$STRIP"; then
10374 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10375 else
10376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377 for as_dir in $PATH
10379 IFS=$as_save_IFS
10380 test -z "$as_dir" && as_dir=.
10381 for ac_exec_ext in '' $ac_executable_extensions; do
10382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10383 ac_cv_prog_STRIP="${ncn_progname}"
10384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 break 2
10387 done
10388 done
10389 IFS=$as_save_IFS
10393 STRIP=$ac_cv_prog_STRIP
10394 if test -n "$STRIP"; then
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10396 $as_echo "$STRIP" >&6; }
10397 else
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399 $as_echo "no" >&6; }
10404 test -n "$ac_cv_prog_STRIP" && break
10405 done
10407 if test -z "$ac_cv_prog_STRIP" ; then
10408 STRIP="true"
10413 if test -n "$WINDRES"; then
10414 ac_cv_prog_WINDRES=$WINDRES
10415 elif test -n "$ac_cv_prog_WINDRES"; then
10416 WINDRES=$ac_cv_prog_WINDRES
10419 if test -n "$ac_cv_prog_WINDRES"; then
10420 for ncn_progname in windres; do
10421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10422 set dummy ${ncn_progname}; ac_word=$2
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10424 $as_echo_n "checking for $ac_word... " >&6; }
10425 if ${ac_cv_prog_WINDRES+:} false; then :
10426 $as_echo_n "(cached) " >&6
10427 else
10428 if test -n "$WINDRES"; then
10429 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10430 else
10431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10432 for as_dir in $PATH
10434 IFS=$as_save_IFS
10435 test -z "$as_dir" && as_dir=.
10436 for ac_exec_ext in '' $ac_executable_extensions; do
10437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10438 ac_cv_prog_WINDRES="${ncn_progname}"
10439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10440 break 2
10442 done
10443 done
10444 IFS=$as_save_IFS
10448 WINDRES=$ac_cv_prog_WINDRES
10449 if test -n "$WINDRES"; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10451 $as_echo "$WINDRES" >&6; }
10452 else
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454 $as_echo "no" >&6; }
10458 done
10461 for ncn_progname in windres; do
10462 if test -n "$ncn_tool_prefix"; then
10463 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10464 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466 $as_echo_n "checking for $ac_word... " >&6; }
10467 if ${ac_cv_prog_WINDRES+:} false; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 if test -n "$WINDRES"; then
10471 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10472 else
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10480 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10484 done
10485 done
10486 IFS=$as_save_IFS
10490 WINDRES=$ac_cv_prog_WINDRES
10491 if test -n "$WINDRES"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10493 $as_echo "$WINDRES" >&6; }
10494 else
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10501 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
10502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10503 set dummy ${ncn_progname}; ac_word=$2
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505 $as_echo_n "checking for $ac_word... " >&6; }
10506 if ${ac_cv_prog_WINDRES+:} false; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 if test -n "$WINDRES"; then
10510 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10511 else
10512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513 for as_dir in $PATH
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10519 ac_cv_prog_WINDRES="${ncn_progname}"
10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10521 break 2
10523 done
10524 done
10525 IFS=$as_save_IFS
10529 WINDRES=$ac_cv_prog_WINDRES
10530 if test -n "$WINDRES"; then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10532 $as_echo "$WINDRES" >&6; }
10533 else
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10540 test -n "$ac_cv_prog_WINDRES" && break
10541 done
10543 if test -z "$ac_cv_prog_WINDRES" ; then
10544 set dummy windres
10545 if test $build = $host ; then
10546 WINDRES="$2"
10547 else
10548 WINDRES="${ncn_tool_prefix}$2"
10554 if test -n "$WINDMC"; then
10555 ac_cv_prog_WINDMC=$WINDMC
10556 elif test -n "$ac_cv_prog_WINDMC"; then
10557 WINDMC=$ac_cv_prog_WINDMC
10560 if test -n "$ac_cv_prog_WINDMC"; then
10561 for ncn_progname in windmc; do
10562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10563 set dummy ${ncn_progname}; ac_word=$2
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10565 $as_echo_n "checking for $ac_word... " >&6; }
10566 if ${ac_cv_prog_WINDMC+:} false; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 if test -n "$WINDMC"; then
10570 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
10571 else
10572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573 for as_dir in $PATH
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for ac_exec_ext in '' $ac_executable_extensions; do
10578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10579 ac_cv_prog_WINDMC="${ncn_progname}"
10580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 break 2
10583 done
10584 done
10585 IFS=$as_save_IFS
10589 WINDMC=$ac_cv_prog_WINDMC
10590 if test -n "$WINDMC"; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
10592 $as_echo "$WINDMC" >&6; }
10593 else
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595 $as_echo "no" >&6; }
10599 done
10602 for ncn_progname in windmc; do
10603 if test -n "$ncn_tool_prefix"; then
10604 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10605 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607 $as_echo_n "checking for $ac_word... " >&6; }
10608 if ${ac_cv_prog_WINDMC+:} false; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 if test -n "$WINDMC"; then
10612 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
10613 else
10614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615 for as_dir in $PATH
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10621 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10623 break 2
10625 done
10626 done
10627 IFS=$as_save_IFS
10631 WINDMC=$ac_cv_prog_WINDMC
10632 if test -n "$WINDMC"; then
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
10634 $as_echo "$WINDMC" >&6; }
10635 else
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637 $as_echo "no" >&6; }
10642 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
10643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10644 set dummy ${ncn_progname}; ac_word=$2
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10646 $as_echo_n "checking for $ac_word... " >&6; }
10647 if ${ac_cv_prog_WINDMC+:} false; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 if test -n "$WINDMC"; then
10651 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
10652 else
10653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654 for as_dir in $PATH
10656 IFS=$as_save_IFS
10657 test -z "$as_dir" && as_dir=.
10658 for ac_exec_ext in '' $ac_executable_extensions; do
10659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10660 ac_cv_prog_WINDMC="${ncn_progname}"
10661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10662 break 2
10664 done
10665 done
10666 IFS=$as_save_IFS
10670 WINDMC=$ac_cv_prog_WINDMC
10671 if test -n "$WINDMC"; then
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
10673 $as_echo "$WINDMC" >&6; }
10674 else
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10676 $as_echo "no" >&6; }
10681 test -n "$ac_cv_prog_WINDMC" && break
10682 done
10684 if test -z "$ac_cv_prog_WINDMC" ; then
10685 set dummy windmc
10686 if test $build = $host ; then
10687 WINDMC="$2"
10688 else
10689 WINDMC="${ncn_tool_prefix}$2"
10695 if test -n "$OBJCOPY"; then
10696 ac_cv_prog_OBJCOPY=$OBJCOPY
10697 elif test -n "$ac_cv_prog_OBJCOPY"; then
10698 OBJCOPY=$ac_cv_prog_OBJCOPY
10701 if test -n "$ac_cv_prog_OBJCOPY"; then
10702 for ncn_progname in objcopy; do
10703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10704 set dummy ${ncn_progname}; ac_word=$2
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706 $as_echo_n "checking for $ac_word... " >&6; }
10707 if ${ac_cv_prog_OBJCOPY+:} false; then :
10708 $as_echo_n "(cached) " >&6
10709 else
10710 if test -n "$OBJCOPY"; then
10711 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10712 else
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $PATH
10716 IFS=$as_save_IFS
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10720 ac_cv_prog_OBJCOPY="${ncn_progname}"
10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10722 break 2
10724 done
10725 done
10726 IFS=$as_save_IFS
10730 OBJCOPY=$ac_cv_prog_OBJCOPY
10731 if test -n "$OBJCOPY"; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10733 $as_echo "$OBJCOPY" >&6; }
10734 else
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10736 $as_echo "no" >&6; }
10740 done
10743 for ncn_progname in objcopy; do
10744 if test -n "$ncn_tool_prefix"; then
10745 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10746 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10748 $as_echo_n "checking for $ac_word... " >&6; }
10749 if ${ac_cv_prog_OBJCOPY+:} false; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 if test -n "$OBJCOPY"; then
10753 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10754 else
10755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756 for as_dir in $PATH
10758 IFS=$as_save_IFS
10759 test -z "$as_dir" && as_dir=.
10760 for ac_exec_ext in '' $ac_executable_extensions; do
10761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10762 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
10763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10764 break 2
10766 done
10767 done
10768 IFS=$as_save_IFS
10772 OBJCOPY=$ac_cv_prog_OBJCOPY
10773 if test -n "$OBJCOPY"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10775 $as_echo "$OBJCOPY" >&6; }
10776 else
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; }
10783 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
10784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10785 set dummy ${ncn_progname}; ac_word=$2
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787 $as_echo_n "checking for $ac_word... " >&6; }
10788 if ${ac_cv_prog_OBJCOPY+:} false; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 if test -n "$OBJCOPY"; then
10792 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10793 else
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10801 ac_cv_prog_OBJCOPY="${ncn_progname}"
10802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10805 done
10806 done
10807 IFS=$as_save_IFS
10811 OBJCOPY=$ac_cv_prog_OBJCOPY
10812 if test -n "$OBJCOPY"; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10814 $as_echo "$OBJCOPY" >&6; }
10815 else
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817 $as_echo "no" >&6; }
10822 test -n "$ac_cv_prog_OBJCOPY" && break
10823 done
10825 if test -z "$ac_cv_prog_OBJCOPY" ; then
10826 set dummy objcopy
10827 if test $build = $host ; then
10828 OBJCOPY="$2"
10829 else
10830 OBJCOPY="${ncn_tool_prefix}$2"
10836 if test -n "$OBJDUMP"; then
10837 ac_cv_prog_OBJDUMP=$OBJDUMP
10838 elif test -n "$ac_cv_prog_OBJDUMP"; then
10839 OBJDUMP=$ac_cv_prog_OBJDUMP
10842 if test -n "$ac_cv_prog_OBJDUMP"; then
10843 for ncn_progname in objdump; do
10844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10845 set dummy ${ncn_progname}; ac_word=$2
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10847 $as_echo_n "checking for $ac_word... " >&6; }
10848 if ${ac_cv_prog_OBJDUMP+:} false; then :
10849 $as_echo_n "(cached) " >&6
10850 else
10851 if test -n "$OBJDUMP"; then
10852 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10853 else
10854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855 for as_dir in $PATH
10857 IFS=$as_save_IFS
10858 test -z "$as_dir" && as_dir=.
10859 for ac_exec_ext in '' $ac_executable_extensions; do
10860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10861 ac_cv_prog_OBJDUMP="${ncn_progname}"
10862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10863 break 2
10865 done
10866 done
10867 IFS=$as_save_IFS
10871 OBJDUMP=$ac_cv_prog_OBJDUMP
10872 if test -n "$OBJDUMP"; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10874 $as_echo "$OBJDUMP" >&6; }
10875 else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 $as_echo "no" >&6; }
10881 done
10884 for ncn_progname in objdump; do
10885 if test -n "$ncn_tool_prefix"; then
10886 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10887 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889 $as_echo_n "checking for $ac_word... " >&6; }
10890 if ${ac_cv_prog_OBJDUMP+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 if test -n "$OBJDUMP"; then
10894 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10895 else
10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 for as_dir in $PATH
10899 IFS=$as_save_IFS
10900 test -z "$as_dir" && as_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10903 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10905 break 2
10907 done
10908 done
10909 IFS=$as_save_IFS
10913 OBJDUMP=$ac_cv_prog_OBJDUMP
10914 if test -n "$OBJDUMP"; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10916 $as_echo "$OBJDUMP" >&6; }
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10924 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10926 set dummy ${ncn_progname}; ac_word=$2
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10928 $as_echo_n "checking for $ac_word... " >&6; }
10929 if ${ac_cv_prog_OBJDUMP+:} false; then :
10930 $as_echo_n "(cached) " >&6
10931 else
10932 if test -n "$OBJDUMP"; then
10933 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10934 else
10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936 for as_dir in $PATH
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10942 ac_cv_prog_OBJDUMP="${ncn_progname}"
10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10944 break 2
10946 done
10947 done
10948 IFS=$as_save_IFS
10952 OBJDUMP=$ac_cv_prog_OBJDUMP
10953 if test -n "$OBJDUMP"; then
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10955 $as_echo "$OBJDUMP" >&6; }
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 $as_echo "no" >&6; }
10963 test -n "$ac_cv_prog_OBJDUMP" && break
10964 done
10966 if test -z "$ac_cv_prog_OBJDUMP" ; then
10967 set dummy objdump
10968 if test $build = $host ; then
10969 OBJDUMP="$2"
10970 else
10971 OBJDUMP="${ncn_tool_prefix}$2"
10977 if test -n "$OTOOL"; then
10978 ac_cv_prog_OTOOL=$OTOOL
10979 elif test -n "$ac_cv_prog_OTOOL"; then
10980 OTOOL=$ac_cv_prog_OTOOL
10983 if test -n "$ac_cv_prog_OTOOL"; then
10984 for ncn_progname in otool; do
10985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10986 set dummy ${ncn_progname}; ac_word=$2
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988 $as_echo_n "checking for $ac_word... " >&6; }
10989 if ${ac_cv_prog_OTOOL+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 if test -n "$OTOOL"; then
10993 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10994 else
10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10996 for as_dir in $PATH
10998 IFS=$as_save_IFS
10999 test -z "$as_dir" && as_dir=.
11000 for ac_exec_ext in '' $ac_executable_extensions; do
11001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11002 ac_cv_prog_OTOOL="${ncn_progname}"
11003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11004 break 2
11006 done
11007 done
11008 IFS=$as_save_IFS
11012 OTOOL=$ac_cv_prog_OTOOL
11013 if test -n "$OTOOL"; then
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11015 $as_echo "$OTOOL" >&6; }
11016 else
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018 $as_echo "no" >&6; }
11022 done
11025 for ncn_progname in otool; do
11026 if test -n "$ncn_tool_prefix"; then
11027 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11028 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11030 $as_echo_n "checking for $ac_word... " >&6; }
11031 if ${ac_cv_prog_OTOOL+:} false; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11034 if test -n "$OTOOL"; then
11035 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11036 else
11037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038 for as_dir in $PATH
11040 IFS=$as_save_IFS
11041 test -z "$as_dir" && as_dir=.
11042 for ac_exec_ext in '' $ac_executable_extensions; do
11043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11044 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
11045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11046 break 2
11048 done
11049 done
11050 IFS=$as_save_IFS
11054 OTOOL=$ac_cv_prog_OTOOL
11055 if test -n "$OTOOL"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11057 $as_echo "$OTOOL" >&6; }
11058 else
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060 $as_echo "no" >&6; }
11065 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
11066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11067 set dummy ${ncn_progname}; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if ${ac_cv_prog_OTOOL+:} false; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 if test -n "$OTOOL"; then
11074 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11075 else
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11083 ac_cv_prog_OTOOL="${ncn_progname}"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11087 done
11088 done
11089 IFS=$as_save_IFS
11093 OTOOL=$ac_cv_prog_OTOOL
11094 if test -n "$OTOOL"; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11096 $as_echo "$OTOOL" >&6; }
11097 else
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11104 test -n "$ac_cv_prog_OTOOL" && break
11105 done
11107 if test -z "$ac_cv_prog_OTOOL" ; then
11108 set dummy otool
11109 if test $build = $host ; then
11110 OTOOL="$2"
11111 else
11112 OTOOL="${ncn_tool_prefix}$2"
11118 if test -n "$READELF"; then
11119 ac_cv_prog_READELF=$READELF
11120 elif test -n "$ac_cv_prog_READELF"; then
11121 READELF=$ac_cv_prog_READELF
11124 if test -n "$ac_cv_prog_READELF"; then
11125 for ncn_progname in readelf; do
11126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11127 set dummy ${ncn_progname}; ac_word=$2
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129 $as_echo_n "checking for $ac_word... " >&6; }
11130 if ${ac_cv_prog_READELF+:} false; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 if test -n "$READELF"; then
11134 ac_cv_prog_READELF="$READELF" # Let the user override the test.
11135 else
11136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137 for as_dir in $PATH
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11143 ac_cv_prog_READELF="${ncn_progname}"
11144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11145 break 2
11147 done
11148 done
11149 IFS=$as_save_IFS
11153 READELF=$ac_cv_prog_READELF
11154 if test -n "$READELF"; then
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
11156 $as_echo "$READELF" >&6; }
11157 else
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11163 done
11166 for ncn_progname in readelf; do
11167 if test -n "$ncn_tool_prefix"; then
11168 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11169 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11171 $as_echo_n "checking for $ac_word... " >&6; }
11172 if ${ac_cv_prog_READELF+:} false; then :
11173 $as_echo_n "(cached) " >&6
11174 else
11175 if test -n "$READELF"; then
11176 ac_cv_prog_READELF="$READELF" # Let the user override the test.
11177 else
11178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179 for as_dir in $PATH
11181 IFS=$as_save_IFS
11182 test -z "$as_dir" && as_dir=.
11183 for ac_exec_ext in '' $ac_executable_extensions; do
11184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11185 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
11186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11187 break 2
11189 done
11190 done
11191 IFS=$as_save_IFS
11195 READELF=$ac_cv_prog_READELF
11196 if test -n "$READELF"; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
11198 $as_echo "$READELF" >&6; }
11199 else
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11206 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
11207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11208 set dummy ${ncn_progname}; ac_word=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if ${ac_cv_prog_READELF+:} false; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 if test -n "$READELF"; then
11215 ac_cv_prog_READELF="$READELF" # Let the user override the test.
11216 else
11217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
11222 for ac_exec_ext in '' $ac_executable_extensions; do
11223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11224 ac_cv_prog_READELF="${ncn_progname}"
11225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226 break 2
11228 done
11229 done
11230 IFS=$as_save_IFS
11234 READELF=$ac_cv_prog_READELF
11235 if test -n "$READELF"; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
11237 $as_echo "$READELF" >&6; }
11238 else
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240 $as_echo "no" >&6; }
11245 test -n "$ac_cv_prog_READELF" && break
11246 done
11248 if test -z "$ac_cv_prog_READELF" ; then
11249 set dummy readelf
11250 if test $build = $host ; then
11251 READELF="$2"
11252 else
11253 READELF="${ncn_tool_prefix}$2"
11262 # Target tools.
11264 # Check whether --with-build-time-tools was given.
11265 if test "${with_build_time_tools+set}" = set; then :
11266 withval=$with_build_time_tools; case x"$withval" in
11267 x/*) ;;
11269 with_build_time_tools=
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
11271 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
11273 esac
11274 else
11275 with_build_time_tools=
11281 if test -n "$CC_FOR_TARGET"; then
11282 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
11283 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
11284 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
11287 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
11288 for ncn_progname in cc gcc; do
11289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11290 set dummy ${ncn_progname}; ac_word=$2
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292 $as_echo_n "checking for $ac_word... " >&6; }
11293 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 if test -n "$CC_FOR_TARGET"; then
11297 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
11298 else
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
11304 for ac_exec_ext in '' $ac_executable_extensions; do
11305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11306 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11308 break 2
11310 done
11311 done
11312 IFS=$as_save_IFS
11316 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
11317 if test -n "$CC_FOR_TARGET"; then
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
11319 $as_echo "$CC_FOR_TARGET" >&6; }
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11326 done
11329 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11330 for ncn_progname in cc gcc; do
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11332 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11333 if test -x $with_build_time_tools/${ncn_progname}; then
11334 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11336 $as_echo "yes" >&6; }
11337 break
11338 else
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340 $as_echo "no" >&6; }
11342 done
11345 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
11346 for ncn_progname in cc gcc; do
11347 if test -n "$ncn_target_tool_prefix"; then
11348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11349 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11351 $as_echo_n "checking for $ac_word... " >&6; }
11352 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
11353 $as_echo_n "(cached) " >&6
11354 else
11355 if test -n "$CC_FOR_TARGET"; then
11356 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
11357 else
11358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359 for as_dir in $PATH
11361 IFS=$as_save_IFS
11362 test -z "$as_dir" && as_dir=.
11363 for ac_exec_ext in '' $ac_executable_extensions; do
11364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11365 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11367 break 2
11369 done
11370 done
11371 IFS=$as_save_IFS
11375 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
11376 if test -n "$CC_FOR_TARGET"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
11378 $as_echo "$CC_FOR_TARGET" >&6; }
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11386 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
11387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11388 set dummy ${ncn_progname}; ac_word=$2
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11390 $as_echo_n "checking for $ac_word... " >&6; }
11391 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 if test -n "$CC_FOR_TARGET"; then
11395 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
11396 else
11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11400 IFS=$as_save_IFS
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
11403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
11405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 break 2
11408 done
11409 done
11410 IFS=$as_save_IFS
11414 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
11415 if test -n "$CC_FOR_TARGET"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
11417 $as_echo "$CC_FOR_TARGET" >&6; }
11418 else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11425 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
11426 done
11429 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
11430 set dummy cc gcc
11431 if test $build = $target ; then
11432 CC_FOR_TARGET="$2"
11433 else
11434 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11436 else
11437 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
11442 if test -n "$CXX_FOR_TARGET"; then
11443 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
11444 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
11445 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
11448 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
11449 for ncn_progname in c++ g++ cxx gxx; do
11450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11451 set dummy ${ncn_progname}; ac_word=$2
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11453 $as_echo_n "checking for $ac_word... " >&6; }
11454 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 if test -n "$CXX_FOR_TARGET"; then
11458 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
11459 else
11460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461 for as_dir in $PATH
11463 IFS=$as_save_IFS
11464 test -z "$as_dir" && as_dir=.
11465 for ac_exec_ext in '' $ac_executable_extensions; do
11466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11467 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
11468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11469 break 2
11471 done
11472 done
11473 IFS=$as_save_IFS
11477 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
11478 if test -n "$CXX_FOR_TARGET"; then
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
11480 $as_echo "$CXX_FOR_TARGET" >&6; }
11481 else
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483 $as_echo "no" >&6; }
11487 done
11490 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
11491 for ncn_progname in c++ g++ cxx gxx; do
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11493 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11494 if test -x $with_build_time_tools/${ncn_progname}; then
11495 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11497 $as_echo "yes" >&6; }
11498 break
11499 else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 $as_echo "no" >&6; }
11503 done
11506 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
11507 for ncn_progname in c++ g++ cxx gxx; do
11508 if test -n "$ncn_target_tool_prefix"; then
11509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11510 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512 $as_echo_n "checking for $ac_word... " >&6; }
11513 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 if test -n "$CXX_FOR_TARGET"; then
11517 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
11518 else
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $PATH
11522 IFS=$as_save_IFS
11523 test -z "$as_dir" && as_dir=.
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11526 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11528 break 2
11530 done
11531 done
11532 IFS=$as_save_IFS
11536 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
11537 if test -n "$CXX_FOR_TARGET"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
11539 $as_echo "$CXX_FOR_TARGET" >&6; }
11540 else
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11547 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
11548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11549 set dummy ${ncn_progname}; ac_word=$2
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11551 $as_echo_n "checking for $ac_word... " >&6; }
11552 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
11553 $as_echo_n "(cached) " >&6
11554 else
11555 if test -n "$CXX_FOR_TARGET"; then
11556 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
11557 else
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11569 done
11570 done
11571 IFS=$as_save_IFS
11575 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
11576 if test -n "$CXX_FOR_TARGET"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
11578 $as_echo "$CXX_FOR_TARGET" >&6; }
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11586 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
11587 done
11590 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
11591 set dummy c++ g++ cxx gxx
11592 if test $build = $target ; then
11593 CXX_FOR_TARGET="$2"
11594 else
11595 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
11597 else
11598 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
11603 if test -n "$GCC_FOR_TARGET"; then
11604 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
11605 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
11606 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
11609 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
11610 for ncn_progname in gcc; do
11611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11612 set dummy ${ncn_progname}; ac_word=$2
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614 $as_echo_n "checking for $ac_word... " >&6; }
11615 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
11616 $as_echo_n "(cached) " >&6
11617 else
11618 if test -n "$GCC_FOR_TARGET"; then
11619 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
11620 else
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11628 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 break 2
11632 done
11633 done
11634 IFS=$as_save_IFS
11638 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
11639 if test -n "$GCC_FOR_TARGET"; then
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
11641 $as_echo "$GCC_FOR_TARGET" >&6; }
11642 else
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11648 done
11651 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11652 for ncn_progname in gcc; do
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11654 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11655 if test -x $with_build_time_tools/${ncn_progname}; then
11656 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658 $as_echo "yes" >&6; }
11659 break
11660 else
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11664 done
11667 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
11668 for ncn_progname in gcc; do
11669 if test -n "$ncn_target_tool_prefix"; then
11670 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11671 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673 $as_echo_n "checking for $ac_word... " >&6; }
11674 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
11675 $as_echo_n "(cached) " >&6
11676 else
11677 if test -n "$GCC_FOR_TARGET"; then
11678 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
11679 else
11680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681 for as_dir in $PATH
11683 IFS=$as_save_IFS
11684 test -z "$as_dir" && as_dir=.
11685 for ac_exec_ext in '' $ac_executable_extensions; do
11686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11687 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11689 break 2
11691 done
11692 done
11693 IFS=$as_save_IFS
11697 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
11698 if test -n "$GCC_FOR_TARGET"; then
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
11700 $as_echo "$GCC_FOR_TARGET" >&6; }
11701 else
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703 $as_echo "no" >&6; }
11708 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
11709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11710 set dummy ${ncn_progname}; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
11714 $as_echo_n "(cached) " >&6
11715 else
11716 if test -n "$GCC_FOR_TARGET"; then
11717 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
11718 else
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 break 2
11730 done
11731 done
11732 IFS=$as_save_IFS
11736 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
11737 if test -n "$GCC_FOR_TARGET"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
11739 $as_echo "$GCC_FOR_TARGET" >&6; }
11740 else
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11747 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
11748 done
11751 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
11752 GCC_FOR_TARGET="${CC_FOR_TARGET}"
11753 else
11754 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
11759 if test -n "$GFORTRAN_FOR_TARGET"; then
11760 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
11761 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11762 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11765 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11766 for ncn_progname in gfortran; do
11767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11768 set dummy ${ncn_progname}; ac_word=$2
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770 $as_echo_n "checking for $ac_word... " >&6; }
11771 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 if test -n "$GFORTRAN_FOR_TARGET"; then
11775 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11776 else
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11784 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 break 2
11788 done
11789 done
11790 IFS=$as_save_IFS
11794 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11795 if test -n "$GFORTRAN_FOR_TARGET"; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11797 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11798 else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11804 done
11807 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
11808 for ncn_progname in gfortran; do
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11810 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11811 if test -x $with_build_time_tools/${ncn_progname}; then
11812 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11814 $as_echo "yes" >&6; }
11815 break
11816 else
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818 $as_echo "no" >&6; }
11820 done
11823 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11824 for ncn_progname in gfortran; do
11825 if test -n "$ncn_target_tool_prefix"; then
11826 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11827 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11829 $as_echo_n "checking for $ac_word... " >&6; }
11830 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 if test -n "$GFORTRAN_FOR_TARGET"; then
11834 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11835 else
11836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837 for as_dir in $PATH
11839 IFS=$as_save_IFS
11840 test -z "$as_dir" && as_dir=.
11841 for ac_exec_ext in '' $ac_executable_extensions; do
11842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11843 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845 break 2
11847 done
11848 done
11849 IFS=$as_save_IFS
11853 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11854 if test -n "$GFORTRAN_FOR_TARGET"; then
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11856 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11857 else
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859 $as_echo "no" >&6; }
11864 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11866 set dummy ${ncn_progname}; ac_word=$2
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11868 $as_echo_n "checking for $ac_word... " >&6; }
11869 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 if test -n "$GFORTRAN_FOR_TARGET"; then
11873 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11874 else
11875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876 for as_dir in $PATH
11878 IFS=$as_save_IFS
11879 test -z "$as_dir" && as_dir=.
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11882 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 break 2
11886 done
11887 done
11888 IFS=$as_save_IFS
11892 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11893 if test -n "$GFORTRAN_FOR_TARGET"; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11895 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11896 else
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11903 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11904 done
11907 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11908 set dummy gfortran
11909 if test $build = $target ; then
11910 GFORTRAN_FOR_TARGET="$2"
11911 else
11912 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11914 else
11915 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11920 if test -n "$GOC_FOR_TARGET"; then
11921 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11922 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11923 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11926 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11927 for ncn_progname in gccgo; do
11928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11929 set dummy ${ncn_progname}; ac_word=$2
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11931 $as_echo_n "checking for $ac_word... " >&6; }
11932 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11935 if test -n "$GOC_FOR_TARGET"; then
11936 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11937 else
11938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11939 for as_dir in $PATH
11941 IFS=$as_save_IFS
11942 test -z "$as_dir" && as_dir=.
11943 for ac_exec_ext in '' $ac_executable_extensions; do
11944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11945 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11947 break 2
11949 done
11950 done
11951 IFS=$as_save_IFS
11955 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11956 if test -n "$GOC_FOR_TARGET"; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11958 $as_echo "$GOC_FOR_TARGET" >&6; }
11959 else
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961 $as_echo "no" >&6; }
11965 done
11968 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11969 for ncn_progname in gccgo; do
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11971 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11972 if test -x $with_build_time_tools/${ncn_progname}; then
11973 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11975 $as_echo "yes" >&6; }
11976 break
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11981 done
11984 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11985 for ncn_progname in gccgo; do
11986 if test -n "$ncn_target_tool_prefix"; then
11987 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11988 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990 $as_echo_n "checking for $ac_word... " >&6; }
11991 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 if test -n "$GOC_FOR_TARGET"; then
11995 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11996 else
11997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in $PATH
12000 IFS=$as_save_IFS
12001 test -z "$as_dir" && as_dir=.
12002 for ac_exec_ext in '' $ac_executable_extensions; do
12003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12004 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12006 break 2
12008 done
12009 done
12010 IFS=$as_save_IFS
12014 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
12015 if test -n "$GOC_FOR_TARGET"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
12017 $as_echo "$GOC_FOR_TARGET" >&6; }
12018 else
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12025 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
12026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12027 set dummy ${ncn_progname}; ac_word=$2
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029 $as_echo_n "checking for $ac_word... " >&6; }
12030 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033 if test -n "$GOC_FOR_TARGET"; then
12034 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
12035 else
12036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037 for as_dir in $PATH
12039 IFS=$as_save_IFS
12040 test -z "$as_dir" && as_dir=.
12041 for ac_exec_ext in '' $ac_executable_extensions; do
12042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12043 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
12044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12045 break 2
12047 done
12048 done
12049 IFS=$as_save_IFS
12053 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
12054 if test -n "$GOC_FOR_TARGET"; then
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
12056 $as_echo "$GOC_FOR_TARGET" >&6; }
12057 else
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12064 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
12065 done
12068 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
12069 set dummy gccgo
12070 if test $build = $target ; then
12071 GOC_FOR_TARGET="$2"
12072 else
12073 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12075 else
12076 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
12081 if test -n "$GDC_FOR_TARGET"; then
12082 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
12083 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
12084 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
12087 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
12088 for ncn_progname in gdc; do
12089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12090 set dummy ${ncn_progname}; ac_word=$2
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12092 $as_echo_n "checking for $ac_word... " >&6; }
12093 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096 if test -n "$GDC_FOR_TARGET"; then
12097 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
12098 else
12099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $PATH
12102 IFS=$as_save_IFS
12103 test -z "$as_dir" && as_dir=.
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
12107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12108 break 2
12110 done
12111 done
12112 IFS=$as_save_IFS
12116 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
12117 if test -n "$GDC_FOR_TARGET"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
12119 $as_echo "$GDC_FOR_TARGET" >&6; }
12120 else
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12126 done
12129 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12130 for ncn_progname in gdc; do
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12132 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12133 if test -x $with_build_time_tools/${ncn_progname}; then
12134 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12136 $as_echo "yes" >&6; }
12137 break
12138 else
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 $as_echo "no" >&6; }
12142 done
12145 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
12146 for ncn_progname in gdc; do
12147 if test -n "$ncn_target_tool_prefix"; then
12148 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12149 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12151 $as_echo_n "checking for $ac_word... " >&6; }
12152 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 if test -n "$GDC_FOR_TARGET"; then
12156 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
12157 else
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12161 IFS=$as_save_IFS
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12165 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 break 2
12169 done
12170 done
12171 IFS=$as_save_IFS
12175 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
12176 if test -n "$GDC_FOR_TARGET"; then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
12178 $as_echo "$GDC_FOR_TARGET" >&6; }
12179 else
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12186 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
12187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12188 set dummy ${ncn_progname}; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 if test -n "$GDC_FOR_TARGET"; then
12195 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
12196 else
12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198 for as_dir in $PATH
12200 IFS=$as_save_IFS
12201 test -z "$as_dir" && as_dir=.
12202 for ac_exec_ext in '' $ac_executable_extensions; do
12203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12204 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12206 break 2
12208 done
12209 done
12210 IFS=$as_save_IFS
12214 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
12215 if test -n "$GDC_FOR_TARGET"; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
12217 $as_echo "$GDC_FOR_TARGET" >&6; }
12218 else
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12225 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
12226 done
12229 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
12230 set dummy gdc
12231 if test $build = $target ; then
12232 GDC_FOR_TARGET="$2"
12233 else
12234 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12236 else
12237 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
12242 cat > conftest.c << \EOF
12243 #ifdef __GNUC__
12244 gcc_yay;
12245 #endif
12247 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
12248 have_gcc_for_target=yes
12249 else
12250 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
12251 have_gcc_for_target=no
12253 rm conftest.c
12258 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
12259 if test -n "$with_build_time_tools"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
12261 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
12262 if test -x $with_build_time_tools/ar; then
12263 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
12264 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
12266 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
12267 else
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12271 elif test $build != $host && test $have_gcc_for_target = yes; then
12272 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
12273 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
12274 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
12277 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12278 # Extract the first word of "ar", so it can be a program name with args.
12279 set dummy ar; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 case $AR_FOR_TARGET in
12286 [\\/]* | ?:[\\/]*)
12287 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in $gcc_cv_tool_dirs
12293 IFS=$as_save_IFS
12294 test -z "$as_dir" && as_dir=.
12295 for ac_exec_ext in '' $ac_executable_extensions; do
12296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12297 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299 break 2
12301 done
12302 done
12303 IFS=$as_save_IFS
12306 esac
12308 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
12309 if test -n "$AR_FOR_TARGET"; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
12311 $as_echo "$AR_FOR_TARGET" >&6; }
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12319 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
12322 if test -n "$AR_FOR_TARGET"; then
12323 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
12324 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
12325 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
12328 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
12329 for ncn_progname in ar; do
12330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12331 set dummy ${ncn_progname}; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 $as_echo_n "checking for $ac_word... " >&6; }
12334 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 if test -n "$AR_FOR_TARGET"; then
12338 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
12339 else
12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12343 IFS=$as_save_IFS
12344 test -z "$as_dir" && as_dir=.
12345 for ac_exec_ext in '' $ac_executable_extensions; do
12346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12347 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12349 break 2
12351 done
12352 done
12353 IFS=$as_save_IFS
12357 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
12358 if test -n "$AR_FOR_TARGET"; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
12360 $as_echo "$AR_FOR_TARGET" >&6; }
12361 else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12367 done
12370 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
12371 for ncn_progname in ar; do
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12373 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12374 if test -x $with_build_time_tools/${ncn_progname}; then
12375 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12377 $as_echo "yes" >&6; }
12378 break
12379 else
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12383 done
12386 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
12387 for ncn_progname in ar; do
12388 if test -n "$ncn_target_tool_prefix"; then
12389 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12390 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 if test -n "$AR_FOR_TARGET"; then
12397 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
12398 else
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12402 IFS=$as_save_IFS
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
12405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12406 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408 break 2
12410 done
12411 done
12412 IFS=$as_save_IFS
12416 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
12417 if test -n "$AR_FOR_TARGET"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
12419 $as_echo "$AR_FOR_TARGET" >&6; }
12420 else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12427 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
12428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12429 set dummy ${ncn_progname}; ac_word=$2
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431 $as_echo_n "checking for $ac_word... " >&6; }
12432 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 if test -n "$AR_FOR_TARGET"; then
12436 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
12437 else
12438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439 for as_dir in $PATH
12441 IFS=$as_save_IFS
12442 test -z "$as_dir" && as_dir=.
12443 for ac_exec_ext in '' $ac_executable_extensions; do
12444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12445 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
12446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447 break 2
12449 done
12450 done
12451 IFS=$as_save_IFS
12455 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
12456 if test -n "$AR_FOR_TARGET"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
12458 $as_echo "$AR_FOR_TARGET" >&6; }
12459 else
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461 $as_echo "no" >&6; }
12466 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
12467 done
12470 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
12471 set dummy ar
12472 if test $build = $target ; then
12473 AR_FOR_TARGET="$2"
12474 else
12475 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
12477 else
12478 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
12481 else
12482 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
12488 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
12489 if test -n "$with_build_time_tools"; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
12491 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
12492 if test -x $with_build_time_tools/as; then
12493 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
12494 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
12496 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
12497 else
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12501 elif test $build != $host && test $have_gcc_for_target = yes; then
12502 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
12503 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
12504 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
12507 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12508 # Extract the first word of "as", so it can be a program name with args.
12509 set dummy as; ac_word=$2
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12511 $as_echo_n "checking for $ac_word... " >&6; }
12512 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 case $AS_FOR_TARGET in
12516 [\\/]* | ?:[\\/]*)
12517 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
12520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12521 for as_dir in $gcc_cv_tool_dirs
12523 IFS=$as_save_IFS
12524 test -z "$as_dir" && as_dir=.
12525 for ac_exec_ext in '' $ac_executable_extensions; do
12526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12527 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12529 break 2
12531 done
12532 done
12533 IFS=$as_save_IFS
12536 esac
12538 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
12539 if test -n "$AS_FOR_TARGET"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
12541 $as_echo "$AS_FOR_TARGET" >&6; }
12542 else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12549 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
12552 if test -n "$AS_FOR_TARGET"; then
12553 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
12554 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
12555 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
12558 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
12559 for ncn_progname in as; do
12560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12561 set dummy ${ncn_progname}; ac_word=$2
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563 $as_echo_n "checking for $ac_word... " >&6; }
12564 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567 if test -n "$AS_FOR_TARGET"; then
12568 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
12569 else
12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $PATH
12573 IFS=$as_save_IFS
12574 test -z "$as_dir" && as_dir=.
12575 for ac_exec_ext in '' $ac_executable_extensions; do
12576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12577 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
12578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 break 2
12581 done
12582 done
12583 IFS=$as_save_IFS
12587 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
12588 if test -n "$AS_FOR_TARGET"; then
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
12590 $as_echo "$AS_FOR_TARGET" >&6; }
12591 else
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 $as_echo "no" >&6; }
12597 done
12600 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
12601 for ncn_progname in as; do
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12603 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12604 if test -x $with_build_time_tools/${ncn_progname}; then
12605 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12607 $as_echo "yes" >&6; }
12608 break
12609 else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12613 done
12616 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
12617 for ncn_progname in as; do
12618 if test -n "$ncn_target_tool_prefix"; then
12619 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12620 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 if test -n "$AS_FOR_TARGET"; then
12627 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
12628 else
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12632 IFS=$as_save_IFS
12633 test -z "$as_dir" && as_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
12635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638 break 2
12640 done
12641 done
12642 IFS=$as_save_IFS
12646 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
12647 if test -n "$AS_FOR_TARGET"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
12649 $as_echo "$AS_FOR_TARGET" >&6; }
12650 else
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12657 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
12658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12659 set dummy ${ncn_progname}; ac_word=$2
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12661 $as_echo_n "checking for $ac_word... " >&6; }
12662 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 if test -n "$AS_FOR_TARGET"; then
12666 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
12667 else
12668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669 for as_dir in $PATH
12671 IFS=$as_save_IFS
12672 test -z "$as_dir" && as_dir=.
12673 for ac_exec_ext in '' $ac_executable_extensions; do
12674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12675 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
12676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12677 break 2
12679 done
12680 done
12681 IFS=$as_save_IFS
12685 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
12686 if test -n "$AS_FOR_TARGET"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
12688 $as_echo "$AS_FOR_TARGET" >&6; }
12689 else
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12696 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
12697 done
12700 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
12701 set dummy as
12702 if test $build = $target ; then
12703 AS_FOR_TARGET="$2"
12704 else
12705 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
12707 else
12708 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
12711 else
12712 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
12718 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
12719 if test -n "$with_build_time_tools"; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
12721 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
12722 if test -x $with_build_time_tools/dlltool; then
12723 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
12724 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
12726 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
12727 else
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12731 elif test $build != $host && test $have_gcc_for_target = yes; then
12732 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
12733 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
12734 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
12737 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12738 # Extract the first word of "dlltool", so it can be a program name with args.
12739 set dummy dlltool; ac_word=$2
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741 $as_echo_n "checking for $ac_word... " >&6; }
12742 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 case $DLLTOOL_FOR_TARGET in
12746 [\\/]* | ?:[\\/]*)
12747 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
12750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12751 for as_dir in $gcc_cv_tool_dirs
12753 IFS=$as_save_IFS
12754 test -z "$as_dir" && as_dir=.
12755 for ac_exec_ext in '' $ac_executable_extensions; do
12756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12757 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12759 break 2
12761 done
12762 done
12763 IFS=$as_save_IFS
12766 esac
12768 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
12769 if test -n "$DLLTOOL_FOR_TARGET"; then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
12771 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
12772 else
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774 $as_echo "no" >&6; }
12779 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
12782 if test -n "$DLLTOOL_FOR_TARGET"; then
12783 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
12784 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
12785 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
12788 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
12789 for ncn_progname in dlltool; do
12790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12791 set dummy ${ncn_progname}; ac_word=$2
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793 $as_echo_n "checking for $ac_word... " >&6; }
12794 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797 if test -n "$DLLTOOL_FOR_TARGET"; then
12798 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
12799 else
12800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801 for as_dir in $PATH
12803 IFS=$as_save_IFS
12804 test -z "$as_dir" && as_dir=.
12805 for ac_exec_ext in '' $ac_executable_extensions; do
12806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12807 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
12808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12809 break 2
12811 done
12812 done
12813 IFS=$as_save_IFS
12817 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
12818 if test -n "$DLLTOOL_FOR_TARGET"; then
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
12820 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
12821 else
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12827 done
12830 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
12831 for ncn_progname in dlltool; do
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12833 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12834 if test -x $with_build_time_tools/${ncn_progname}; then
12835 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12837 $as_echo "yes" >&6; }
12838 break
12839 else
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841 $as_echo "no" >&6; }
12843 done
12846 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
12847 for ncn_progname in dlltool; do
12848 if test -n "$ncn_target_tool_prefix"; then
12849 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12850 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12852 $as_echo_n "checking for $ac_word... " >&6; }
12853 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
12854 $as_echo_n "(cached) " >&6
12855 else
12856 if test -n "$DLLTOOL_FOR_TARGET"; then
12857 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
12858 else
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12862 IFS=$as_save_IFS
12863 test -z "$as_dir" && as_dir=.
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12866 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 break 2
12870 done
12871 done
12872 IFS=$as_save_IFS
12876 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
12877 if test -n "$DLLTOOL_FOR_TARGET"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
12879 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12887 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
12888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12889 set dummy ${ncn_progname}; ac_word=$2
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12891 $as_echo_n "checking for $ac_word... " >&6; }
12892 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
12893 $as_echo_n "(cached) " >&6
12894 else
12895 if test -n "$DLLTOOL_FOR_TARGET"; then
12896 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
12897 else
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12901 IFS=$as_save_IFS
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
12904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12905 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
12906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12907 break 2
12909 done
12910 done
12911 IFS=$as_save_IFS
12915 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
12916 if test -n "$DLLTOOL_FOR_TARGET"; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
12918 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
12919 else
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12926 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
12927 done
12930 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
12931 set dummy dlltool
12932 if test $build = $target ; then
12933 DLLTOOL_FOR_TARGET="$2"
12934 else
12935 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
12937 else
12938 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
12941 else
12942 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
12948 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12949 if test -n "$with_build_time_tools"; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
12951 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
12952 if test -x $with_build_time_tools/ld; then
12953 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
12954 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
12956 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
12957 else
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 $as_echo "no" >&6; }
12961 elif test $build != $host && test $have_gcc_for_target = yes; then
12962 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
12963 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
12964 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12967 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12968 # Extract the first word of "ld", so it can be a program name with args.
12969 set dummy ld; ac_word=$2
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971 $as_echo_n "checking for $ac_word... " >&6; }
12972 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 case $LD_FOR_TARGET in
12976 [\\/]* | ?:[\\/]*)
12977 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981 for as_dir in $gcc_cv_tool_dirs
12983 IFS=$as_save_IFS
12984 test -z "$as_dir" && as_dir=.
12985 for ac_exec_ext in '' $ac_executable_extensions; do
12986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12987 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12989 break 2
12991 done
12992 done
12993 IFS=$as_save_IFS
12996 esac
12998 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12999 if test -n "$LD_FOR_TARGET"; then
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
13001 $as_echo "$LD_FOR_TARGET" >&6; }
13002 else
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13004 $as_echo "no" >&6; }
13009 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
13012 if test -n "$LD_FOR_TARGET"; then
13013 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
13014 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
13015 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
13018 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
13019 for ncn_progname in ld; do
13020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13021 set dummy ${ncn_progname}; ac_word=$2
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 if test -n "$LD_FOR_TARGET"; then
13028 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
13029 else
13030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031 for as_dir in $PATH
13033 IFS=$as_save_IFS
13034 test -z "$as_dir" && as_dir=.
13035 for ac_exec_ext in '' $ac_executable_extensions; do
13036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13037 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
13038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13039 break 2
13041 done
13042 done
13043 IFS=$as_save_IFS
13047 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
13048 if test -n "$LD_FOR_TARGET"; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
13050 $as_echo "$LD_FOR_TARGET" >&6; }
13051 else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13057 done
13060 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
13061 for ncn_progname in ld; do
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13063 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13064 if test -x $with_build_time_tools/${ncn_progname}; then
13065 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13067 $as_echo "yes" >&6; }
13068 break
13069 else
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13073 done
13076 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
13077 for ncn_progname in ld; do
13078 if test -n "$ncn_target_tool_prefix"; then
13079 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13080 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13082 $as_echo_n "checking for $ac_word... " >&6; }
13083 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 if test -n "$LD_FOR_TARGET"; then
13087 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
13088 else
13089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090 for as_dir in $PATH
13092 IFS=$as_save_IFS
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
13095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13096 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098 break 2
13100 done
13101 done
13102 IFS=$as_save_IFS
13106 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
13107 if test -n "$LD_FOR_TARGET"; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
13109 $as_echo "$LD_FOR_TARGET" >&6; }
13110 else
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112 $as_echo "no" >&6; }
13117 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
13118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13119 set dummy ${ncn_progname}; ac_word=$2
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13121 $as_echo_n "checking for $ac_word... " >&6; }
13122 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 if test -n "$LD_FOR_TARGET"; then
13126 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
13127 else
13128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129 for as_dir in $PATH
13131 IFS=$as_save_IFS
13132 test -z "$as_dir" && as_dir=.
13133 for ac_exec_ext in '' $ac_executable_extensions; do
13134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13135 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
13136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13137 break 2
13139 done
13140 done
13141 IFS=$as_save_IFS
13145 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
13146 if test -n "$LD_FOR_TARGET"; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
13148 $as_echo "$LD_FOR_TARGET" >&6; }
13149 else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $as_echo "no" >&6; }
13156 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
13157 done
13160 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
13161 set dummy ld
13162 if test $build = $target ; then
13163 LD_FOR_TARGET="$2"
13164 else
13165 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
13167 else
13168 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
13171 else
13172 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
13178 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
13179 if test -n "$with_build_time_tools"; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
13181 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
13182 if test -x $with_build_time_tools/lipo; then
13183 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
13184 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
13186 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
13187 else
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13191 elif test $build != $host && test $have_gcc_for_target = yes; then
13192 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
13193 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
13194 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
13197 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13198 # Extract the first word of "lipo", so it can be a program name with args.
13199 set dummy lipo; ac_word=$2
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201 $as_echo_n "checking for $ac_word... " >&6; }
13202 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 case $LIPO_FOR_TARGET in
13206 [\\/]* | ?:[\\/]*)
13207 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $gcc_cv_tool_dirs
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13217 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13221 done
13222 done
13223 IFS=$as_save_IFS
13226 esac
13228 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
13229 if test -n "$LIPO_FOR_TARGET"; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
13231 $as_echo "$LIPO_FOR_TARGET" >&6; }
13232 else
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234 $as_echo "no" >&6; }
13239 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
13242 if test -n "$LIPO_FOR_TARGET"; then
13243 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
13244 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
13245 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
13248 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
13249 for ncn_progname in lipo; do
13250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13251 set dummy ${ncn_progname}; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 $as_echo_n "checking for $ac_word... " >&6; }
13254 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 if test -n "$LIPO_FOR_TARGET"; then
13258 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
13259 else
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13263 IFS=$as_save_IFS
13264 test -z "$as_dir" && as_dir=.
13265 for ac_exec_ext in '' $ac_executable_extensions; do
13266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13267 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
13268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269 break 2
13271 done
13272 done
13273 IFS=$as_save_IFS
13277 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
13278 if test -n "$LIPO_FOR_TARGET"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
13280 $as_echo "$LIPO_FOR_TARGET" >&6; }
13281 else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13287 done
13290 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
13291 for ncn_progname in lipo; do
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13293 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13294 if test -x $with_build_time_tools/${ncn_progname}; then
13295 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13297 $as_echo "yes" >&6; }
13298 break
13299 else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13303 done
13306 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
13307 for ncn_progname in lipo; do
13308 if test -n "$ncn_target_tool_prefix"; then
13309 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13310 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13312 $as_echo_n "checking for $ac_word... " >&6; }
13313 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
13314 $as_echo_n "(cached) " >&6
13315 else
13316 if test -n "$LIPO_FOR_TARGET"; then
13317 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
13318 else
13319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320 for as_dir in $PATH
13322 IFS=$as_save_IFS
13323 test -z "$as_dir" && as_dir=.
13324 for ac_exec_ext in '' $ac_executable_extensions; do
13325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13326 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13328 break 2
13330 done
13331 done
13332 IFS=$as_save_IFS
13336 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
13337 if test -n "$LIPO_FOR_TARGET"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
13339 $as_echo "$LIPO_FOR_TARGET" >&6; }
13340 else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 $as_echo "no" >&6; }
13347 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
13348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13349 set dummy ${ncn_progname}; ac_word=$2
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351 $as_echo_n "checking for $ac_word... " >&6; }
13352 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 if test -n "$LIPO_FOR_TARGET"; then
13356 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
13357 else
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13361 IFS=$as_save_IFS
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13365 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367 break 2
13369 done
13370 done
13371 IFS=$as_save_IFS
13375 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
13376 if test -n "$LIPO_FOR_TARGET"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
13378 $as_echo "$LIPO_FOR_TARGET" >&6; }
13379 else
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13386 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
13387 done
13390 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
13391 set dummy lipo
13392 if test $build = $target ; then
13393 LIPO_FOR_TARGET="$2"
13394 else
13395 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
13397 else
13398 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
13401 else
13402 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
13408 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
13409 if test -n "$with_build_time_tools"; then
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
13411 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
13412 if test -x $with_build_time_tools/nm; then
13413 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
13414 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
13416 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
13417 else
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13421 elif test $build != $host && test $have_gcc_for_target = yes; then
13422 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
13423 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
13424 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
13427 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13428 # Extract the first word of "nm", so it can be a program name with args.
13429 set dummy nm; ac_word=$2
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13431 $as_echo_n "checking for $ac_word... " >&6; }
13432 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
13433 $as_echo_n "(cached) " >&6
13434 else
13435 case $NM_FOR_TARGET in
13436 [\\/]* | ?:[\\/]*)
13437 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
13440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13441 for as_dir in $gcc_cv_tool_dirs
13443 IFS=$as_save_IFS
13444 test -z "$as_dir" && as_dir=.
13445 for ac_exec_ext in '' $ac_executable_extensions; do
13446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13447 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13449 break 2
13451 done
13452 done
13453 IFS=$as_save_IFS
13456 esac
13458 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
13459 if test -n "$NM_FOR_TARGET"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
13461 $as_echo "$NM_FOR_TARGET" >&6; }
13462 else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13469 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
13472 if test -n "$NM_FOR_TARGET"; then
13473 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
13474 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
13475 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
13478 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
13479 for ncn_progname in nm; do
13480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13481 set dummy ${ncn_progname}; ac_word=$2
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13483 $as_echo_n "checking for $ac_word... " >&6; }
13484 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
13485 $as_echo_n "(cached) " >&6
13486 else
13487 if test -n "$NM_FOR_TARGET"; then
13488 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
13489 else
13490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491 for as_dir in $PATH
13493 IFS=$as_save_IFS
13494 test -z "$as_dir" && as_dir=.
13495 for ac_exec_ext in '' $ac_executable_extensions; do
13496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13497 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
13498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499 break 2
13501 done
13502 done
13503 IFS=$as_save_IFS
13507 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
13508 if test -n "$NM_FOR_TARGET"; then
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
13510 $as_echo "$NM_FOR_TARGET" >&6; }
13511 else
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13517 done
13520 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
13521 for ncn_progname in nm; do
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13523 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13524 if test -x $with_build_time_tools/${ncn_progname}; then
13525 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13527 $as_echo "yes" >&6; }
13528 break
13529 else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531 $as_echo "no" >&6; }
13533 done
13536 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
13537 for ncn_progname in nm; do
13538 if test -n "$ncn_target_tool_prefix"; then
13539 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13540 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13542 $as_echo_n "checking for $ac_word... " >&6; }
13543 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13546 if test -n "$NM_FOR_TARGET"; then
13547 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
13548 else
13549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13550 for as_dir in $PATH
13552 IFS=$as_save_IFS
13553 test -z "$as_dir" && as_dir=.
13554 for ac_exec_ext in '' $ac_executable_extensions; do
13555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13556 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13558 break 2
13560 done
13561 done
13562 IFS=$as_save_IFS
13566 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
13567 if test -n "$NM_FOR_TARGET"; then
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
13569 $as_echo "$NM_FOR_TARGET" >&6; }
13570 else
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572 $as_echo "no" >&6; }
13577 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
13578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13579 set dummy ${ncn_progname}; ac_word=$2
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581 $as_echo_n "checking for $ac_word... " >&6; }
13582 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 if test -n "$NM_FOR_TARGET"; then
13586 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
13587 else
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589 for as_dir in $PATH
13591 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do
13594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13595 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
13596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2
13599 done
13600 done
13601 IFS=$as_save_IFS
13605 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
13606 if test -n "$NM_FOR_TARGET"; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
13608 $as_echo "$NM_FOR_TARGET" >&6; }
13609 else
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611 $as_echo "no" >&6; }
13616 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
13617 done
13620 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
13621 set dummy nm
13622 if test $build = $target ; then
13623 NM_FOR_TARGET="$2"
13624 else
13625 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
13627 else
13628 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
13631 else
13632 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
13638 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
13639 if test -n "$with_build_time_tools"; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
13641 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
13642 if test -x $with_build_time_tools/objcopy; then
13643 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
13644 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
13646 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
13647 else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649 $as_echo "no" >&6; }
13651 elif test $build != $host && test $have_gcc_for_target = yes; then
13652 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
13653 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
13654 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
13657 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13658 # Extract the first word of "objcopy", so it can be a program name with args.
13659 set dummy objcopy; ac_word=$2
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661 $as_echo_n "checking for $ac_word... " >&6; }
13662 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
13663 $as_echo_n "(cached) " >&6
13664 else
13665 case $OBJCOPY_FOR_TARGET in
13666 [\\/]* | ?:[\\/]*)
13667 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
13670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13671 for as_dir in $gcc_cv_tool_dirs
13673 IFS=$as_save_IFS
13674 test -z "$as_dir" && as_dir=.
13675 for ac_exec_ext in '' $ac_executable_extensions; do
13676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13677 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13679 break 2
13681 done
13682 done
13683 IFS=$as_save_IFS
13686 esac
13688 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
13689 if test -n "$OBJCOPY_FOR_TARGET"; then
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13691 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13692 else
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694 $as_echo "no" >&6; }
13699 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
13702 if test -n "$OBJCOPY_FOR_TARGET"; then
13703 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
13704 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
13705 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13708 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
13709 for ncn_progname in objcopy; do
13710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13711 set dummy ${ncn_progname}; ac_word=$2
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13713 $as_echo_n "checking for $ac_word... " >&6; }
13714 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
13715 $as_echo_n "(cached) " >&6
13716 else
13717 if test -n "$OBJCOPY_FOR_TARGET"; then
13718 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
13719 else
13720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13721 for as_dir in $PATH
13723 IFS=$as_save_IFS
13724 test -z "$as_dir" && as_dir=.
13725 for ac_exec_ext in '' $ac_executable_extensions; do
13726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13727 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
13728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13729 break 2
13731 done
13732 done
13733 IFS=$as_save_IFS
13737 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13738 if test -n "$OBJCOPY_FOR_TARGET"; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13740 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13741 else
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13743 $as_echo "no" >&6; }
13747 done
13750 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
13751 for ncn_progname in objcopy; do
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13753 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13754 if test -x $with_build_time_tools/${ncn_progname}; then
13755 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13757 $as_echo "yes" >&6; }
13758 break
13759 else
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13761 $as_echo "no" >&6; }
13763 done
13766 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
13767 for ncn_progname in objcopy; do
13768 if test -n "$ncn_target_tool_prefix"; then
13769 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13770 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13772 $as_echo_n "checking for $ac_word... " >&6; }
13773 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
13774 $as_echo_n "(cached) " >&6
13775 else
13776 if test -n "$OBJCOPY_FOR_TARGET"; then
13777 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
13778 else
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $PATH
13782 IFS=$as_save_IFS
13783 test -z "$as_dir" && as_dir=.
13784 for ac_exec_ext in '' $ac_executable_extensions; do
13785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13786 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13788 break 2
13790 done
13791 done
13792 IFS=$as_save_IFS
13796 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13797 if test -n "$OBJCOPY_FOR_TARGET"; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13799 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13800 else
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 $as_echo "no" >&6; }
13807 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
13808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13809 set dummy ${ncn_progname}; ac_word=$2
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13811 $as_echo_n "checking for $ac_word... " >&6; }
13812 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
13813 $as_echo_n "(cached) " >&6
13814 else
13815 if test -n "$OBJCOPY_FOR_TARGET"; then
13816 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
13817 else
13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $PATH
13821 IFS=$as_save_IFS
13822 test -z "$as_dir" && as_dir=.
13823 for ac_exec_ext in '' $ac_executable_extensions; do
13824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13825 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
13826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13827 break 2
13829 done
13830 done
13831 IFS=$as_save_IFS
13835 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13836 if test -n "$OBJCOPY_FOR_TARGET"; then
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13838 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13839 else
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13841 $as_echo "no" >&6; }
13846 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
13847 done
13850 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
13851 set dummy objcopy
13852 if test $build = $target ; then
13853 OBJCOPY_FOR_TARGET="$2"
13854 else
13855 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
13857 else
13858 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
13861 else
13862 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
13868 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
13869 if test -n "$with_build_time_tools"; then
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
13871 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
13872 if test -x $with_build_time_tools/objdump; then
13873 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
13874 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
13876 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
13877 else
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13879 $as_echo "no" >&6; }
13881 elif test $build != $host && test $have_gcc_for_target = yes; then
13882 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
13883 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
13884 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
13887 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13888 # Extract the first word of "objdump", so it can be a program name with args.
13889 set dummy objdump; ac_word=$2
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13891 $as_echo_n "checking for $ac_word... " >&6; }
13892 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
13893 $as_echo_n "(cached) " >&6
13894 else
13895 case $OBJDUMP_FOR_TARGET in
13896 [\\/]* | ?:[\\/]*)
13897 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
13900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13901 for as_dir in $gcc_cv_tool_dirs
13903 IFS=$as_save_IFS
13904 test -z "$as_dir" && as_dir=.
13905 for ac_exec_ext in '' $ac_executable_extensions; do
13906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13907 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13909 break 2
13911 done
13912 done
13913 IFS=$as_save_IFS
13916 esac
13918 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13919 if test -n "$OBJDUMP_FOR_TARGET"; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13921 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13922 else
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13924 $as_echo "no" >&6; }
13929 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
13932 if test -n "$OBJDUMP_FOR_TARGET"; then
13933 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
13934 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13935 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13938 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13939 for ncn_progname in objdump; do
13940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13941 set dummy ${ncn_progname}; ac_word=$2
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13943 $as_echo_n "checking for $ac_word... " >&6; }
13944 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13945 $as_echo_n "(cached) " >&6
13946 else
13947 if test -n "$OBJDUMP_FOR_TARGET"; then
13948 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13949 else
13950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951 for as_dir in $PATH
13953 IFS=$as_save_IFS
13954 test -z "$as_dir" && as_dir=.
13955 for ac_exec_ext in '' $ac_executable_extensions; do
13956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13957 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13959 break 2
13961 done
13962 done
13963 IFS=$as_save_IFS
13967 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13968 if test -n "$OBJDUMP_FOR_TARGET"; then
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13970 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13971 else
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973 $as_echo "no" >&6; }
13977 done
13980 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13981 for ncn_progname in objdump; do
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13983 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13984 if test -x $with_build_time_tools/${ncn_progname}; then
13985 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13987 $as_echo "yes" >&6; }
13988 break
13989 else
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13991 $as_echo "no" >&6; }
13993 done
13996 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13997 for ncn_progname in objdump; do
13998 if test -n "$ncn_target_tool_prefix"; then
13999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14000 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14002 $as_echo_n "checking for $ac_word... " >&6; }
14003 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14006 if test -n "$OBJDUMP_FOR_TARGET"; then
14007 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
14008 else
14009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010 for as_dir in $PATH
14012 IFS=$as_save_IFS
14013 test -z "$as_dir" && as_dir=.
14014 for ac_exec_ext in '' $ac_executable_extensions; do
14015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14016 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14018 break 2
14020 done
14021 done
14022 IFS=$as_save_IFS
14026 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
14027 if test -n "$OBJDUMP_FOR_TARGET"; then
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
14029 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
14030 else
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14032 $as_echo "no" >&6; }
14037 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
14038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14039 set dummy ${ncn_progname}; ac_word=$2
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14041 $as_echo_n "checking for $ac_word... " >&6; }
14042 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
14043 $as_echo_n "(cached) " >&6
14044 else
14045 if test -n "$OBJDUMP_FOR_TARGET"; then
14046 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
14047 else
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14051 IFS=$as_save_IFS
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14055 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14057 break 2
14059 done
14060 done
14061 IFS=$as_save_IFS
14065 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
14066 if test -n "$OBJDUMP_FOR_TARGET"; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
14068 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
14069 else
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 $as_echo "no" >&6; }
14076 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
14077 done
14080 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
14081 set dummy objdump
14082 if test $build = $target ; then
14083 OBJDUMP_FOR_TARGET="$2"
14084 else
14085 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
14087 else
14088 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
14091 else
14092 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
14098 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
14099 if test -n "$with_build_time_tools"; then
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
14101 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
14102 if test -x $with_build_time_tools/otool; then
14103 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
14104 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
14106 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
14107 else
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 $as_echo "no" >&6; }
14111 elif test $build != $host && test $have_gcc_for_target = yes; then
14112 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
14113 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
14114 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
14117 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14118 # Extract the first word of "otool", so it can be a program name with args.
14119 set dummy otool; ac_word=$2
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14121 $as_echo_n "checking for $ac_word... " >&6; }
14122 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
14123 $as_echo_n "(cached) " >&6
14124 else
14125 case $OTOOL_FOR_TARGET in
14126 [\\/]* | ?:[\\/]*)
14127 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
14130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14131 for as_dir in $gcc_cv_tool_dirs
14133 IFS=$as_save_IFS
14134 test -z "$as_dir" && as_dir=.
14135 for ac_exec_ext in '' $ac_executable_extensions; do
14136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14137 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14139 break 2
14141 done
14142 done
14143 IFS=$as_save_IFS
14146 esac
14148 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
14149 if test -n "$OTOOL_FOR_TARGET"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
14151 $as_echo "$OTOOL_FOR_TARGET" >&6; }
14152 else
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154 $as_echo "no" >&6; }
14159 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
14162 if test -n "$OTOOL_FOR_TARGET"; then
14163 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
14164 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
14165 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
14168 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
14169 for ncn_progname in otool; do
14170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14171 set dummy ${ncn_progname}; ac_word=$2
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14173 $as_echo_n "checking for $ac_word... " >&6; }
14174 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 if test -n "$OTOOL_FOR_TARGET"; then
14178 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
14179 else
14180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181 for as_dir in $PATH
14183 IFS=$as_save_IFS
14184 test -z "$as_dir" && as_dir=.
14185 for ac_exec_ext in '' $ac_executable_extensions; do
14186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14187 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
14188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14189 break 2
14191 done
14192 done
14193 IFS=$as_save_IFS
14197 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
14198 if test -n "$OTOOL_FOR_TARGET"; then
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
14200 $as_echo "$OTOOL_FOR_TARGET" >&6; }
14201 else
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203 $as_echo "no" >&6; }
14207 done
14210 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14211 for ncn_progname in otool; do
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14213 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14214 if test -x $with_build_time_tools/${ncn_progname}; then
14215 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14217 $as_echo "yes" >&6; }
14218 break
14219 else
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 $as_echo "no" >&6; }
14223 done
14226 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
14227 for ncn_progname in otool; do
14228 if test -n "$ncn_target_tool_prefix"; then
14229 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14230 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14232 $as_echo_n "checking for $ac_word... " >&6; }
14233 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
14234 $as_echo_n "(cached) " >&6
14235 else
14236 if test -n "$OTOOL_FOR_TARGET"; then
14237 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
14238 else
14239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14240 for as_dir in $PATH
14242 IFS=$as_save_IFS
14243 test -z "$as_dir" && as_dir=.
14244 for ac_exec_ext in '' $ac_executable_extensions; do
14245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14246 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14248 break 2
14250 done
14251 done
14252 IFS=$as_save_IFS
14256 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
14257 if test -n "$OTOOL_FOR_TARGET"; then
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
14259 $as_echo "$OTOOL_FOR_TARGET" >&6; }
14260 else
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14262 $as_echo "no" >&6; }
14267 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
14268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14269 set dummy ${ncn_progname}; ac_word=$2
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14271 $as_echo_n "checking for $ac_word... " >&6; }
14272 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
14273 $as_echo_n "(cached) " >&6
14274 else
14275 if test -n "$OTOOL_FOR_TARGET"; then
14276 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
14277 else
14278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279 for as_dir in $PATH
14281 IFS=$as_save_IFS
14282 test -z "$as_dir" && as_dir=.
14283 for ac_exec_ext in '' $ac_executable_extensions; do
14284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14285 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
14286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14287 break 2
14289 done
14290 done
14291 IFS=$as_save_IFS
14295 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
14296 if test -n "$OTOOL_FOR_TARGET"; then
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
14298 $as_echo "$OTOOL_FOR_TARGET" >&6; }
14299 else
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14301 $as_echo "no" >&6; }
14306 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
14307 done
14310 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
14311 set dummy otool
14312 if test $build = $target ; then
14313 OTOOL_FOR_TARGET="$2"
14314 else
14315 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14317 else
14318 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
14321 else
14322 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
14328 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
14329 if test -n "$with_build_time_tools"; then
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
14331 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
14332 if test -x $with_build_time_tools/ranlib; then
14333 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
14334 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
14336 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
14337 else
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14339 $as_echo "no" >&6; }
14341 elif test $build != $host && test $have_gcc_for_target = yes; then
14342 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
14343 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
14344 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
14347 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14348 # Extract the first word of "ranlib", so it can be a program name with args.
14349 set dummy ranlib; ac_word=$2
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14351 $as_echo_n "checking for $ac_word... " >&6; }
14352 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
14353 $as_echo_n "(cached) " >&6
14354 else
14355 case $RANLIB_FOR_TARGET in
14356 [\\/]* | ?:[\\/]*)
14357 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
14360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14361 for as_dir in $gcc_cv_tool_dirs
14363 IFS=$as_save_IFS
14364 test -z "$as_dir" && as_dir=.
14365 for ac_exec_ext in '' $ac_executable_extensions; do
14366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14367 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14369 break 2
14371 done
14372 done
14373 IFS=$as_save_IFS
14376 esac
14378 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
14379 if test -n "$RANLIB_FOR_TARGET"; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
14381 $as_echo "$RANLIB_FOR_TARGET" >&6; }
14382 else
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14384 $as_echo "no" >&6; }
14389 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
14392 if test -n "$RANLIB_FOR_TARGET"; then
14393 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
14394 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
14395 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
14398 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
14399 for ncn_progname in ranlib; do
14400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14401 set dummy ${ncn_progname}; ac_word=$2
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14403 $as_echo_n "checking for $ac_word... " >&6; }
14404 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
14405 $as_echo_n "(cached) " >&6
14406 else
14407 if test -n "$RANLIB_FOR_TARGET"; then
14408 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
14409 else
14410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14411 for as_dir in $PATH
14413 IFS=$as_save_IFS
14414 test -z "$as_dir" && as_dir=.
14415 for ac_exec_ext in '' $ac_executable_extensions; do
14416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14417 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
14418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14419 break 2
14421 done
14422 done
14423 IFS=$as_save_IFS
14427 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
14428 if test -n "$RANLIB_FOR_TARGET"; then
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
14430 $as_echo "$RANLIB_FOR_TARGET" >&6; }
14431 else
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14433 $as_echo "no" >&6; }
14437 done
14440 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
14441 for ncn_progname in ranlib; do
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14443 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14444 if test -x $with_build_time_tools/${ncn_progname}; then
14445 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14447 $as_echo "yes" >&6; }
14448 break
14449 else
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14451 $as_echo "no" >&6; }
14453 done
14456 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
14457 for ncn_progname in ranlib; do
14458 if test -n "$ncn_target_tool_prefix"; then
14459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14460 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14462 $as_echo_n "checking for $ac_word... " >&6; }
14463 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
14464 $as_echo_n "(cached) " >&6
14465 else
14466 if test -n "$RANLIB_FOR_TARGET"; then
14467 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
14468 else
14469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14470 for as_dir in $PATH
14472 IFS=$as_save_IFS
14473 test -z "$as_dir" && as_dir=.
14474 for ac_exec_ext in '' $ac_executable_extensions; do
14475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14476 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14478 break 2
14480 done
14481 done
14482 IFS=$as_save_IFS
14486 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
14487 if test -n "$RANLIB_FOR_TARGET"; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
14489 $as_echo "$RANLIB_FOR_TARGET" >&6; }
14490 else
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14492 $as_echo "no" >&6; }
14497 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
14498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14499 set dummy ${ncn_progname}; ac_word=$2
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14501 $as_echo_n "checking for $ac_word... " >&6; }
14502 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
14503 $as_echo_n "(cached) " >&6
14504 else
14505 if test -n "$RANLIB_FOR_TARGET"; then
14506 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
14507 else
14508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14509 for as_dir in $PATH
14511 IFS=$as_save_IFS
14512 test -z "$as_dir" && as_dir=.
14513 for ac_exec_ext in '' $ac_executable_extensions; do
14514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14515 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
14516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14517 break 2
14519 done
14520 done
14521 IFS=$as_save_IFS
14525 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
14526 if test -n "$RANLIB_FOR_TARGET"; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
14528 $as_echo "$RANLIB_FOR_TARGET" >&6; }
14529 else
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14531 $as_echo "no" >&6; }
14536 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
14537 done
14540 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
14541 set dummy ranlib
14542 if test $build = $target ; then
14543 RANLIB_FOR_TARGET="$2"
14544 else
14545 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
14547 else
14548 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
14551 else
14552 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
14558 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
14559 if test -n "$with_build_time_tools"; then
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
14561 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
14562 if test -x $with_build_time_tools/readelf; then
14563 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
14564 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
14566 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
14567 else
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14569 $as_echo "no" >&6; }
14571 elif test $build != $host && test $have_gcc_for_target = yes; then
14572 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
14573 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
14574 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
14577 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14578 # Extract the first word of "readelf", so it can be a program name with args.
14579 set dummy readelf; ac_word=$2
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14581 $as_echo_n "checking for $ac_word... " >&6; }
14582 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
14583 $as_echo_n "(cached) " >&6
14584 else
14585 case $READELF_FOR_TARGET in
14586 [\\/]* | ?:[\\/]*)
14587 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
14590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14591 for as_dir in $gcc_cv_tool_dirs
14593 IFS=$as_save_IFS
14594 test -z "$as_dir" && as_dir=.
14595 for ac_exec_ext in '' $ac_executable_extensions; do
14596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14597 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14599 break 2
14601 done
14602 done
14603 IFS=$as_save_IFS
14606 esac
14608 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
14609 if test -n "$READELF_FOR_TARGET"; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
14611 $as_echo "$READELF_FOR_TARGET" >&6; }
14612 else
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14614 $as_echo "no" >&6; }
14619 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
14622 if test -n "$READELF_FOR_TARGET"; then
14623 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
14624 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
14625 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14628 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
14629 for ncn_progname in readelf; do
14630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14631 set dummy ${ncn_progname}; ac_word=$2
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14633 $as_echo_n "checking for $ac_word... " >&6; }
14634 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
14635 $as_echo_n "(cached) " >&6
14636 else
14637 if test -n "$READELF_FOR_TARGET"; then
14638 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
14639 else
14640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641 for as_dir in $PATH
14643 IFS=$as_save_IFS
14644 test -z "$as_dir" && as_dir=.
14645 for ac_exec_ext in '' $ac_executable_extensions; do
14646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14647 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
14648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14649 break 2
14651 done
14652 done
14653 IFS=$as_save_IFS
14657 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14658 if test -n "$READELF_FOR_TARGET"; then
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
14660 $as_echo "$READELF_FOR_TARGET" >&6; }
14661 else
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14663 $as_echo "no" >&6; }
14667 done
14670 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
14671 for ncn_progname in readelf; do
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14673 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14674 if test -x $with_build_time_tools/${ncn_progname}; then
14675 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14677 $as_echo "yes" >&6; }
14678 break
14679 else
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681 $as_echo "no" >&6; }
14683 done
14686 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
14687 for ncn_progname in readelf; do
14688 if test -n "$ncn_target_tool_prefix"; then
14689 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14690 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14692 $as_echo_n "checking for $ac_word... " >&6; }
14693 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 if test -n "$READELF_FOR_TARGET"; then
14697 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
14698 else
14699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14700 for as_dir in $PATH
14702 IFS=$as_save_IFS
14703 test -z "$as_dir" && as_dir=.
14704 for ac_exec_ext in '' $ac_executable_extensions; do
14705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14706 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14708 break 2
14710 done
14711 done
14712 IFS=$as_save_IFS
14716 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14717 if test -n "$READELF_FOR_TARGET"; then
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
14719 $as_echo "$READELF_FOR_TARGET" >&6; }
14720 else
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722 $as_echo "no" >&6; }
14727 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
14728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14729 set dummy ${ncn_progname}; ac_word=$2
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14731 $as_echo_n "checking for $ac_word... " >&6; }
14732 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
14733 $as_echo_n "(cached) " >&6
14734 else
14735 if test -n "$READELF_FOR_TARGET"; then
14736 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
14737 else
14738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14739 for as_dir in $PATH
14741 IFS=$as_save_IFS
14742 test -z "$as_dir" && as_dir=.
14743 for ac_exec_ext in '' $ac_executable_extensions; do
14744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14745 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
14746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14747 break 2
14749 done
14750 done
14751 IFS=$as_save_IFS
14755 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14756 if test -n "$READELF_FOR_TARGET"; then
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
14758 $as_echo "$READELF_FOR_TARGET" >&6; }
14759 else
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14761 $as_echo "no" >&6; }
14766 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
14767 done
14770 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
14771 set dummy readelf
14772 if test $build = $target ; then
14773 READELF_FOR_TARGET="$2"
14774 else
14775 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
14777 else
14778 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
14781 else
14782 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
14788 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
14789 if test -n "$with_build_time_tools"; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
14791 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
14792 if test -x $with_build_time_tools/strip; then
14793 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
14794 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
14796 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
14797 else
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14799 $as_echo "no" >&6; }
14801 elif test $build != $host && test $have_gcc_for_target = yes; then
14802 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
14803 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
14804 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
14807 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14808 # Extract the first word of "strip", so it can be a program name with args.
14809 set dummy strip; ac_word=$2
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14811 $as_echo_n "checking for $ac_word... " >&6; }
14812 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
14813 $as_echo_n "(cached) " >&6
14814 else
14815 case $STRIP_FOR_TARGET in
14816 [\\/]* | ?:[\\/]*)
14817 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
14820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14821 for as_dir in $gcc_cv_tool_dirs
14823 IFS=$as_save_IFS
14824 test -z "$as_dir" && as_dir=.
14825 for ac_exec_ext in '' $ac_executable_extensions; do
14826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14827 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14829 break 2
14831 done
14832 done
14833 IFS=$as_save_IFS
14836 esac
14838 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
14839 if test -n "$STRIP_FOR_TARGET"; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14841 $as_echo "$STRIP_FOR_TARGET" >&6; }
14842 else
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14844 $as_echo "no" >&6; }
14849 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
14852 if test -n "$STRIP_FOR_TARGET"; then
14853 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
14854 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
14855 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14858 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
14859 for ncn_progname in strip; do
14860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14861 set dummy ${ncn_progname}; ac_word=$2
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14863 $as_echo_n "checking for $ac_word... " >&6; }
14864 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
14865 $as_echo_n "(cached) " >&6
14866 else
14867 if test -n "$STRIP_FOR_TARGET"; then
14868 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
14869 else
14870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14871 for as_dir in $PATH
14873 IFS=$as_save_IFS
14874 test -z "$as_dir" && as_dir=.
14875 for ac_exec_ext in '' $ac_executable_extensions; do
14876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14877 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
14878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14879 break 2
14881 done
14882 done
14883 IFS=$as_save_IFS
14887 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14888 if test -n "$STRIP_FOR_TARGET"; then
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14890 $as_echo "$STRIP_FOR_TARGET" >&6; }
14891 else
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14893 $as_echo "no" >&6; }
14897 done
14900 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
14901 for ncn_progname in strip; do
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14903 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14904 if test -x $with_build_time_tools/${ncn_progname}; then
14905 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14907 $as_echo "yes" >&6; }
14908 break
14909 else
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14911 $as_echo "no" >&6; }
14913 done
14916 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
14917 for ncn_progname in strip; do
14918 if test -n "$ncn_target_tool_prefix"; then
14919 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14920 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14922 $as_echo_n "checking for $ac_word... " >&6; }
14923 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
14924 $as_echo_n "(cached) " >&6
14925 else
14926 if test -n "$STRIP_FOR_TARGET"; then
14927 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
14928 else
14929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14930 for as_dir in $PATH
14932 IFS=$as_save_IFS
14933 test -z "$as_dir" && as_dir=.
14934 for ac_exec_ext in '' $ac_executable_extensions; do
14935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14936 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14938 break 2
14940 done
14941 done
14942 IFS=$as_save_IFS
14946 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14947 if test -n "$STRIP_FOR_TARGET"; then
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14949 $as_echo "$STRIP_FOR_TARGET" >&6; }
14950 else
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14952 $as_echo "no" >&6; }
14957 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
14958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14959 set dummy ${ncn_progname}; ac_word=$2
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14961 $as_echo_n "checking for $ac_word... " >&6; }
14962 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
14963 $as_echo_n "(cached) " >&6
14964 else
14965 if test -n "$STRIP_FOR_TARGET"; then
14966 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
14967 else
14968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14969 for as_dir in $PATH
14971 IFS=$as_save_IFS
14972 test -z "$as_dir" && as_dir=.
14973 for ac_exec_ext in '' $ac_executable_extensions; do
14974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14975 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
14976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14977 break 2
14979 done
14980 done
14981 IFS=$as_save_IFS
14985 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14986 if test -n "$STRIP_FOR_TARGET"; then
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14988 $as_echo "$STRIP_FOR_TARGET" >&6; }
14989 else
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14991 $as_echo "no" >&6; }
14996 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
14997 done
15000 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
15001 set dummy strip
15002 if test $build = $target ; then
15003 STRIP_FOR_TARGET="$2"
15004 else
15005 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15007 else
15008 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
15011 else
15012 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
15018 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
15019 if test -n "$with_build_time_tools"; then
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
15021 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
15022 if test -x $with_build_time_tools/windres; then
15023 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
15024 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
15026 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
15027 else
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 $as_echo "no" >&6; }
15031 elif test $build != $host && test $have_gcc_for_target = yes; then
15032 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
15033 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
15034 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
15037 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15038 # Extract the first word of "windres", so it can be a program name with args.
15039 set dummy windres; ac_word=$2
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15041 $as_echo_n "checking for $ac_word... " >&6; }
15042 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
15043 $as_echo_n "(cached) " >&6
15044 else
15045 case $WINDRES_FOR_TARGET in
15046 [\\/]* | ?:[\\/]*)
15047 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
15050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15051 for as_dir in $gcc_cv_tool_dirs
15053 IFS=$as_save_IFS
15054 test -z "$as_dir" && as_dir=.
15055 for ac_exec_ext in '' $ac_executable_extensions; do
15056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15057 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15059 break 2
15061 done
15062 done
15063 IFS=$as_save_IFS
15066 esac
15068 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
15069 if test -n "$WINDRES_FOR_TARGET"; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
15071 $as_echo "$WINDRES_FOR_TARGET" >&6; }
15072 else
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15074 $as_echo "no" >&6; }
15079 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
15082 if test -n "$WINDRES_FOR_TARGET"; then
15083 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
15084 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
15085 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
15088 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
15089 for ncn_progname in windres; do
15090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15091 set dummy ${ncn_progname}; ac_word=$2
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15093 $as_echo_n "checking for $ac_word... " >&6; }
15094 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
15095 $as_echo_n "(cached) " >&6
15096 else
15097 if test -n "$WINDRES_FOR_TARGET"; then
15098 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
15099 else
15100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15101 for as_dir in $PATH
15103 IFS=$as_save_IFS
15104 test -z "$as_dir" && as_dir=.
15105 for ac_exec_ext in '' $ac_executable_extensions; do
15106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15107 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
15108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15109 break 2
15111 done
15112 done
15113 IFS=$as_save_IFS
15117 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
15118 if test -n "$WINDRES_FOR_TARGET"; then
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
15120 $as_echo "$WINDRES_FOR_TARGET" >&6; }
15121 else
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15123 $as_echo "no" >&6; }
15127 done
15130 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
15131 for ncn_progname in windres; do
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15133 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15134 if test -x $with_build_time_tools/${ncn_progname}; then
15135 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15137 $as_echo "yes" >&6; }
15138 break
15139 else
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15141 $as_echo "no" >&6; }
15143 done
15146 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
15147 for ncn_progname in windres; do
15148 if test -n "$ncn_target_tool_prefix"; then
15149 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15150 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15152 $as_echo_n "checking for $ac_word... " >&6; }
15153 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
15154 $as_echo_n "(cached) " >&6
15155 else
15156 if test -n "$WINDRES_FOR_TARGET"; then
15157 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
15158 else
15159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15160 for as_dir in $PATH
15162 IFS=$as_save_IFS
15163 test -z "$as_dir" && as_dir=.
15164 for ac_exec_ext in '' $ac_executable_extensions; do
15165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15166 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15168 break 2
15170 done
15171 done
15172 IFS=$as_save_IFS
15176 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
15177 if test -n "$WINDRES_FOR_TARGET"; then
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
15179 $as_echo "$WINDRES_FOR_TARGET" >&6; }
15180 else
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15182 $as_echo "no" >&6; }
15187 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
15188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15189 set dummy ${ncn_progname}; ac_word=$2
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15191 $as_echo_n "checking for $ac_word... " >&6; }
15192 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
15193 $as_echo_n "(cached) " >&6
15194 else
15195 if test -n "$WINDRES_FOR_TARGET"; then
15196 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
15197 else
15198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15199 for as_dir in $PATH
15201 IFS=$as_save_IFS
15202 test -z "$as_dir" && as_dir=.
15203 for ac_exec_ext in '' $ac_executable_extensions; do
15204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15205 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
15206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15207 break 2
15209 done
15210 done
15211 IFS=$as_save_IFS
15215 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
15216 if test -n "$WINDRES_FOR_TARGET"; then
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
15218 $as_echo "$WINDRES_FOR_TARGET" >&6; }
15219 else
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15221 $as_echo "no" >&6; }
15226 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
15227 done
15230 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
15231 set dummy windres
15232 if test $build = $target ; then
15233 WINDRES_FOR_TARGET="$2"
15234 else
15235 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
15237 else
15238 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
15241 else
15242 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
15248 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
15249 if test -n "$with_build_time_tools"; then
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
15251 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
15252 if test -x $with_build_time_tools/windmc; then
15253 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
15254 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
15256 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
15257 else
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15259 $as_echo "no" >&6; }
15261 elif test $build != $host && test $have_gcc_for_target = yes; then
15262 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
15263 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
15264 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
15267 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15268 # Extract the first word of "windmc", so it can be a program name with args.
15269 set dummy windmc; ac_word=$2
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15271 $as_echo_n "checking for $ac_word... " >&6; }
15272 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
15273 $as_echo_n "(cached) " >&6
15274 else
15275 case $WINDMC_FOR_TARGET in
15276 [\\/]* | ?:[\\/]*)
15277 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
15280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15281 for as_dir in $gcc_cv_tool_dirs
15283 IFS=$as_save_IFS
15284 test -z "$as_dir" && as_dir=.
15285 for ac_exec_ext in '' $ac_executable_extensions; do
15286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15287 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15289 break 2
15291 done
15292 done
15293 IFS=$as_save_IFS
15296 esac
15298 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
15299 if test -n "$WINDMC_FOR_TARGET"; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
15301 $as_echo "$WINDMC_FOR_TARGET" >&6; }
15302 else
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15304 $as_echo "no" >&6; }
15309 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
15312 if test -n "$WINDMC_FOR_TARGET"; then
15313 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
15314 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
15315 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
15318 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
15319 for ncn_progname in windmc; do
15320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15321 set dummy ${ncn_progname}; ac_word=$2
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15323 $as_echo_n "checking for $ac_word... " >&6; }
15324 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 if test -n "$WINDMC_FOR_TARGET"; then
15328 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
15329 else
15330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331 for as_dir in $PATH
15333 IFS=$as_save_IFS
15334 test -z "$as_dir" && as_dir=.
15335 for ac_exec_ext in '' $ac_executable_extensions; do
15336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15337 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
15338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15339 break 2
15341 done
15342 done
15343 IFS=$as_save_IFS
15347 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
15348 if test -n "$WINDMC_FOR_TARGET"; then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
15350 $as_echo "$WINDMC_FOR_TARGET" >&6; }
15351 else
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15353 $as_echo "no" >&6; }
15357 done
15360 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15361 for ncn_progname in windmc; do
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15363 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15364 if test -x $with_build_time_tools/${ncn_progname}; then
15365 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15367 $as_echo "yes" >&6; }
15368 break
15369 else
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15371 $as_echo "no" >&6; }
15373 done
15376 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
15377 for ncn_progname in windmc; do
15378 if test -n "$ncn_target_tool_prefix"; then
15379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15380 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15382 $as_echo_n "checking for $ac_word... " >&6; }
15383 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
15384 $as_echo_n "(cached) " >&6
15385 else
15386 if test -n "$WINDMC_FOR_TARGET"; then
15387 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
15388 else
15389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15390 for as_dir in $PATH
15392 IFS=$as_save_IFS
15393 test -z "$as_dir" && as_dir=.
15394 for ac_exec_ext in '' $ac_executable_extensions; do
15395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15396 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15398 break 2
15400 done
15401 done
15402 IFS=$as_save_IFS
15406 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
15407 if test -n "$WINDMC_FOR_TARGET"; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
15409 $as_echo "$WINDMC_FOR_TARGET" >&6; }
15410 else
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15412 $as_echo "no" >&6; }
15417 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
15418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15419 set dummy ${ncn_progname}; ac_word=$2
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15421 $as_echo_n "checking for $ac_word... " >&6; }
15422 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
15423 $as_echo_n "(cached) " >&6
15424 else
15425 if test -n "$WINDMC_FOR_TARGET"; then
15426 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
15427 else
15428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15429 for as_dir in $PATH
15431 IFS=$as_save_IFS
15432 test -z "$as_dir" && as_dir=.
15433 for ac_exec_ext in '' $ac_executable_extensions; do
15434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15435 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
15436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15437 break 2
15439 done
15440 done
15441 IFS=$as_save_IFS
15445 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
15446 if test -n "$WINDMC_FOR_TARGET"; then
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
15448 $as_echo "$WINDMC_FOR_TARGET" >&6; }
15449 else
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15451 $as_echo "no" >&6; }
15456 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
15457 done
15460 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
15461 set dummy windmc
15462 if test $build = $target ; then
15463 WINDMC_FOR_TARGET="$2"
15464 else
15465 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15467 else
15468 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
15471 else
15472 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
15476 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
15479 $as_echo_n "checking where to find the target ar... " >&6; }
15480 if test "x${build}" != "x${host}" ; then
15481 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
15482 # We already found the complete path
15483 ac_dir=`dirname $AR_FOR_TARGET`
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15485 $as_echo "pre-installed in $ac_dir" >&6; }
15486 else
15487 # Canadian cross, just use what we found
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15489 $as_echo "pre-installed" >&6; }
15491 else
15492 ok=yes
15493 case " ${configdirs} " in
15494 *" binutils "*) ;;
15495 *) ok=no ;;
15496 esac
15498 if test $ok = yes; then
15499 # An in-tree tool is available and we can use it
15500 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15502 $as_echo "just compiled" >&6; }
15503 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
15504 # We already found the complete path
15505 ac_dir=`dirname $AR_FOR_TARGET`
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15507 $as_echo "pre-installed in $ac_dir" >&6; }
15508 elif test "x$target" = "x$host"; then
15509 # We can use an host tool
15510 AR_FOR_TARGET='$(AR)'
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15512 $as_echo "host tool" >&6; }
15513 else
15514 # We need a cross tool
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15516 $as_echo "pre-installed" >&6; }
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
15521 $as_echo_n "checking where to find the target as... " >&6; }
15522 if test "x${build}" != "x${host}" ; then
15523 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
15524 # We already found the complete path
15525 ac_dir=`dirname $AS_FOR_TARGET`
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15527 $as_echo "pre-installed in $ac_dir" >&6; }
15528 else
15529 # Canadian cross, just use what we found
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15531 $as_echo "pre-installed" >&6; }
15533 else
15534 ok=yes
15535 case " ${configdirs} " in
15536 *" gas "*) ;;
15537 *) ok=no ;;
15538 esac
15540 if test $ok = yes; then
15541 # An in-tree tool is available and we can use it
15542 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15544 $as_echo "just compiled" >&6; }
15545 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
15546 # We already found the complete path
15547 ac_dir=`dirname $AS_FOR_TARGET`
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15549 $as_echo "pre-installed in $ac_dir" >&6; }
15550 elif test "x$target" = "x$host"; then
15551 # We can use an host tool
15552 AS_FOR_TARGET='$(AS)'
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15554 $as_echo "host tool" >&6; }
15555 else
15556 # We need a cross tool
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15558 $as_echo "pre-installed" >&6; }
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
15563 $as_echo_n "checking where to find the target cc... " >&6; }
15564 if test "x${build}" != "x${host}" ; then
15565 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
15566 # We already found the complete path
15567 ac_dir=`dirname $CC_FOR_TARGET`
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15569 $as_echo "pre-installed in $ac_dir" >&6; }
15570 else
15571 # Canadian cross, just use what we found
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15573 $as_echo "pre-installed" >&6; }
15575 else
15576 ok=yes
15577 case " ${configdirs} " in
15578 *" gcc "*) ;;
15579 *) ok=no ;;
15580 esac
15582 if test $ok = yes; then
15583 # An in-tree tool is available and we can use it
15584 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15586 $as_echo "just compiled" >&6; }
15587 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
15588 # We already found the complete path
15589 ac_dir=`dirname $CC_FOR_TARGET`
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15591 $as_echo "pre-installed in $ac_dir" >&6; }
15592 elif test "x$target" = "x$host"; then
15593 # We can use an host tool
15594 CC_FOR_TARGET='$(CC)'
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15596 $as_echo "host tool" >&6; }
15597 else
15598 # We need a cross tool
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15600 $as_echo "pre-installed" >&6; }
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
15605 $as_echo_n "checking where to find the target c++... " >&6; }
15606 if test "x${build}" != "x${host}" ; then
15607 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
15608 # We already found the complete path
15609 ac_dir=`dirname $CXX_FOR_TARGET`
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15611 $as_echo "pre-installed in $ac_dir" >&6; }
15612 else
15613 # Canadian cross, just use what we found
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15615 $as_echo "pre-installed" >&6; }
15617 else
15618 ok=yes
15619 case " ${configdirs} " in
15620 *" gcc "*) ;;
15621 *) ok=no ;;
15622 esac
15623 case ,${enable_languages}, in
15624 *,c++,*) ;;
15625 *) ok=no ;;
15626 esac
15627 if test $ok = yes; then
15628 # An in-tree tool is available and we can use it
15629 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'
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15631 $as_echo "just compiled" >&6; }
15632 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
15633 # We already found the complete path
15634 ac_dir=`dirname $CXX_FOR_TARGET`
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15636 $as_echo "pre-installed in $ac_dir" >&6; }
15637 elif test "x$target" = "x$host"; then
15638 # We can use an host tool
15639 CXX_FOR_TARGET='$(CXX)'
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15641 $as_echo "host tool" >&6; }
15642 else
15643 # We need a cross tool
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15645 $as_echo "pre-installed" >&6; }
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
15650 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
15651 if test "x${build}" != "x${host}" ; then
15652 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
15653 # We already found the complete path
15654 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15656 $as_echo "pre-installed in $ac_dir" >&6; }
15657 else
15658 # Canadian cross, just use what we found
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15660 $as_echo "pre-installed" >&6; }
15662 else
15663 ok=yes
15664 case " ${configdirs} " in
15665 *" gcc "*) ;;
15666 *) ok=no ;;
15667 esac
15668 case ,${enable_languages}, in
15669 *,c++,*) ;;
15670 *) ok=no ;;
15671 esac
15672 if test $ok = yes; then
15673 # An in-tree tool is available and we can use it
15674 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'
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15676 $as_echo "just compiled" >&6; }
15677 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
15678 # We already found the complete path
15679 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15681 $as_echo "pre-installed in $ac_dir" >&6; }
15682 elif test "x$target" = "x$host"; then
15683 # We can use an host tool
15684 RAW_CXX_FOR_TARGET='$(CXX)'
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15686 $as_echo "host tool" >&6; }
15687 else
15688 # We need a cross tool
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15690 $as_echo "pre-installed" >&6; }
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
15695 $as_echo_n "checking where to find the target dlltool... " >&6; }
15696 if test "x${build}" != "x${host}" ; then
15697 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
15698 # We already found the complete path
15699 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15701 $as_echo "pre-installed in $ac_dir" >&6; }
15702 else
15703 # Canadian cross, just use what we found
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15705 $as_echo "pre-installed" >&6; }
15707 else
15708 ok=yes
15709 case " ${configdirs} " in
15710 *" binutils "*) ;;
15711 *) ok=no ;;
15712 esac
15714 if test $ok = yes; then
15715 # An in-tree tool is available and we can use it
15716 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15718 $as_echo "just compiled" >&6; }
15719 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
15720 # We already found the complete path
15721 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15723 $as_echo "pre-installed in $ac_dir" >&6; }
15724 elif test "x$target" = "x$host"; then
15725 # We can use an host tool
15726 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15728 $as_echo "host tool" >&6; }
15729 else
15730 # We need a cross tool
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15732 $as_echo "pre-installed" >&6; }
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
15737 $as_echo_n "checking where to find the target gcc... " >&6; }
15738 if test "x${build}" != "x${host}" ; then
15739 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
15740 # We already found the complete path
15741 ac_dir=`dirname $GCC_FOR_TARGET`
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15743 $as_echo "pre-installed in $ac_dir" >&6; }
15744 else
15745 # Canadian cross, just use what we found
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15747 $as_echo "pre-installed" >&6; }
15749 else
15750 ok=yes
15751 case " ${configdirs} " in
15752 *" gcc "*) ;;
15753 *) ok=no ;;
15754 esac
15756 if test $ok = yes; then
15757 # An in-tree tool is available and we can use it
15758 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15760 $as_echo "just compiled" >&6; }
15761 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
15762 # We already found the complete path
15763 ac_dir=`dirname $GCC_FOR_TARGET`
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15765 $as_echo "pre-installed in $ac_dir" >&6; }
15766 elif test "x$target" = "x$host"; then
15767 # We can use an host tool
15768 GCC_FOR_TARGET='$()'
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15770 $as_echo "host tool" >&6; }
15771 else
15772 # We need a cross tool
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15774 $as_echo "pre-installed" >&6; }
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
15779 $as_echo_n "checking where to find the target gfortran... " >&6; }
15780 if test "x${build}" != "x${host}" ; then
15781 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
15782 # We already found the complete path
15783 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15785 $as_echo "pre-installed in $ac_dir" >&6; }
15786 else
15787 # Canadian cross, just use what we found
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15789 $as_echo "pre-installed" >&6; }
15791 else
15792 ok=yes
15793 case " ${configdirs} " in
15794 *" gcc "*) ;;
15795 *) ok=no ;;
15796 esac
15797 case ,${enable_languages}, in
15798 *,fortran,*) ;;
15799 *) ok=no ;;
15800 esac
15801 if test $ok = yes; then
15802 # An in-tree tool is available and we can use it
15803 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15805 $as_echo "just compiled" >&6; }
15806 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
15807 # We already found the complete path
15808 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15810 $as_echo "pre-installed in $ac_dir" >&6; }
15811 elif test "x$target" = "x$host"; then
15812 # We can use an host tool
15813 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15815 $as_echo "host tool" >&6; }
15816 else
15817 # We need a cross tool
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15819 $as_echo "pre-installed" >&6; }
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
15824 $as_echo_n "checking where to find the target gccgo... " >&6; }
15825 if test "x${build}" != "x${host}" ; then
15826 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
15827 # We already found the complete path
15828 ac_dir=`dirname $GOC_FOR_TARGET`
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15830 $as_echo "pre-installed in $ac_dir" >&6; }
15831 else
15832 # Canadian cross, just use what we found
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15834 $as_echo "pre-installed" >&6; }
15836 else
15837 ok=yes
15838 case " ${configdirs} " in
15839 *" gcc "*) ;;
15840 *) ok=no ;;
15841 esac
15842 case ,${enable_languages}, in
15843 *,go,*) ;;
15844 *) ok=no ;;
15845 esac
15846 if test $ok = yes; then
15847 # An in-tree tool is available and we can use it
15848 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15850 $as_echo "just compiled" >&6; }
15851 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
15852 # We already found the complete path
15853 ac_dir=`dirname $GOC_FOR_TARGET`
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15855 $as_echo "pre-installed in $ac_dir" >&6; }
15856 elif test "x$target" = "x$host"; then
15857 # We can use an host tool
15858 GOC_FOR_TARGET='$(GOC)'
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15860 $as_echo "host tool" >&6; }
15861 else
15862 # We need a cross tool
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15864 $as_echo "pre-installed" >&6; }
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
15869 $as_echo_n "checking where to find the target gdc... " >&6; }
15870 if test "x${build}" != "x${host}" ; then
15871 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
15872 # We already found the complete path
15873 ac_dir=`dirname $GDC_FOR_TARGET`
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15875 $as_echo "pre-installed in $ac_dir" >&6; }
15876 else
15877 # Canadian cross, just use what we found
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15879 $as_echo "pre-installed" >&6; }
15881 else
15882 ok=yes
15883 case " ${configdirs} " in
15884 *" gcc "*) ;;
15885 *) ok=no ;;
15886 esac
15887 case ,${enable_languages}, in
15888 *,d,*) ;;
15889 *) ok=no ;;
15890 esac
15891 if test $ok = yes; then
15892 # An in-tree tool is available and we can use it
15893 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15895 $as_echo "just compiled" >&6; }
15896 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
15897 # We already found the complete path
15898 ac_dir=`dirname $GDC_FOR_TARGET`
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15900 $as_echo "pre-installed in $ac_dir" >&6; }
15901 elif test "x$target" = "x$host"; then
15902 # We can use an host tool
15903 GDC_FOR_TARGET='$(GDC)'
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15905 $as_echo "host tool" >&6; }
15906 else
15907 # We need a cross tool
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15909 $as_echo "pre-installed" >&6; }
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
15914 $as_echo_n "checking where to find the target ld... " >&6; }
15915 if test "x${build}" != "x${host}" ; then
15916 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
15917 # We already found the complete path
15918 ac_dir=`dirname $LD_FOR_TARGET`
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15920 $as_echo "pre-installed in $ac_dir" >&6; }
15921 else
15922 # Canadian cross, just use what we found
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15924 $as_echo "pre-installed" >&6; }
15926 else
15927 ok=yes
15928 case " ${configdirs} " in
15929 *" ld "*) ;;
15930 *) ok=no ;;
15931 esac
15933 if test $ok = yes; then
15934 # An in-tree tool is available and we can use it
15935 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15937 $as_echo "just compiled" >&6; }
15938 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
15939 # We already found the complete path
15940 ac_dir=`dirname $LD_FOR_TARGET`
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15942 $as_echo "pre-installed in $ac_dir" >&6; }
15943 elif test "x$target" = "x$host"; then
15944 # We can use an host tool
15945 LD_FOR_TARGET='$(LD)'
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15947 $as_echo "host tool" >&6; }
15948 else
15949 # We need a cross tool
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15951 $as_echo "pre-installed" >&6; }
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
15956 $as_echo_n "checking where to find the target lipo... " >&6; }
15957 if test "x${build}" != "x${host}" ; then
15958 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
15959 # We already found the complete path
15960 ac_dir=`dirname $LIPO_FOR_TARGET`
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15962 $as_echo "pre-installed in $ac_dir" >&6; }
15963 else
15964 # Canadian cross, just use what we found
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15966 $as_echo "pre-installed" >&6; }
15968 else
15969 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
15970 # We already found the complete path
15971 ac_dir=`dirname $LIPO_FOR_TARGET`
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15973 $as_echo "pre-installed in $ac_dir" >&6; }
15974 elif test "x$target" = "x$host"; then
15975 # We can use an host tool
15976 LIPO_FOR_TARGET='$(LIPO)'
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15978 $as_echo "host tool" >&6; }
15979 else
15980 # We need a cross tool
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15982 $as_echo "pre-installed" >&6; }
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
15987 $as_echo_n "checking where to find the target nm... " >&6; }
15988 if test "x${build}" != "x${host}" ; then
15989 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
15990 # We already found the complete path
15991 ac_dir=`dirname $NM_FOR_TARGET`
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15993 $as_echo "pre-installed in $ac_dir" >&6; }
15994 else
15995 # Canadian cross, just use what we found
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15997 $as_echo "pre-installed" >&6; }
15999 else
16000 ok=yes
16001 case " ${configdirs} " in
16002 *" binutils "*) ;;
16003 *) ok=no ;;
16004 esac
16006 if test $ok = yes; then
16007 # An in-tree tool is available and we can use it
16008 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16010 $as_echo "just compiled" >&6; }
16011 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
16012 # We already found the complete path
16013 ac_dir=`dirname $NM_FOR_TARGET`
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16015 $as_echo "pre-installed in $ac_dir" >&6; }
16016 elif test "x$target" = "x$host"; then
16017 # We can use an host tool
16018 NM_FOR_TARGET='$(NM)'
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16020 $as_echo "host tool" >&6; }
16021 else
16022 # We need a cross tool
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16024 $as_echo "pre-installed" >&6; }
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
16029 $as_echo_n "checking where to find the target objcopy... " >&6; }
16030 if test "x${build}" != "x${host}" ; then
16031 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
16032 # We already found the complete path
16033 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16035 $as_echo "pre-installed in $ac_dir" >&6; }
16036 else
16037 # Canadian cross, just use what we found
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16039 $as_echo "pre-installed" >&6; }
16041 else
16042 ok=yes
16043 case " ${configdirs} " in
16044 *" binutils "*) ;;
16045 *) ok=no ;;
16046 esac
16048 if test $ok = yes; then
16049 # An in-tree tool is available and we can use it
16050 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16052 $as_echo "just compiled" >&6; }
16053 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
16054 # We already found the complete path
16055 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16057 $as_echo "pre-installed in $ac_dir" >&6; }
16058 elif test "x$target" = "x$host"; then
16059 # We can use an host tool
16060 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16062 $as_echo "host tool" >&6; }
16063 else
16064 # We need a cross tool
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16066 $as_echo "pre-installed" >&6; }
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
16071 $as_echo_n "checking where to find the target objdump... " >&6; }
16072 if test "x${build}" != "x${host}" ; then
16073 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
16074 # We already found the complete path
16075 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16077 $as_echo "pre-installed in $ac_dir" >&6; }
16078 else
16079 # Canadian cross, just use what we found
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16081 $as_echo "pre-installed" >&6; }
16083 else
16084 ok=yes
16085 case " ${configdirs} " in
16086 *" binutils "*) ;;
16087 *) ok=no ;;
16088 esac
16090 if test $ok = yes; then
16091 # An in-tree tool is available and we can use it
16092 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16094 $as_echo "just compiled" >&6; }
16095 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
16096 # We already found the complete path
16097 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16099 $as_echo "pre-installed in $ac_dir" >&6; }
16100 elif test "x$target" = "x$host"; then
16101 # We can use an host tool
16102 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16104 $as_echo "host tool" >&6; }
16105 else
16106 # We need a cross tool
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16108 $as_echo "pre-installed" >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
16113 $as_echo_n "checking where to find the target otool... " >&6; }
16114 if test "x${build}" != "x${host}" ; then
16115 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
16116 # We already found the complete path
16117 ac_dir=`dirname $OTOOL_FOR_TARGET`
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16119 $as_echo "pre-installed in $ac_dir" >&6; }
16120 else
16121 # Canadian cross, just use what we found
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16123 $as_echo "pre-installed" >&6; }
16125 else
16126 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
16127 # We already found the complete path
16128 ac_dir=`dirname $OTOOL_FOR_TARGET`
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16130 $as_echo "pre-installed in $ac_dir" >&6; }
16131 elif test "x$target" = "x$host"; then
16132 # We can use an host tool
16133 OTOOL_FOR_TARGET='$(OTOOL)'
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16135 $as_echo "host tool" >&6; }
16136 else
16137 # We need a cross tool
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16139 $as_echo "pre-installed" >&6; }
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
16144 $as_echo_n "checking where to find the target ranlib... " >&6; }
16145 if test "x${build}" != "x${host}" ; then
16146 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
16147 # We already found the complete path
16148 ac_dir=`dirname $RANLIB_FOR_TARGET`
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16150 $as_echo "pre-installed in $ac_dir" >&6; }
16151 else
16152 # Canadian cross, just use what we found
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16154 $as_echo "pre-installed" >&6; }
16156 else
16157 ok=yes
16158 case " ${configdirs} " in
16159 *" binutils "*) ;;
16160 *) ok=no ;;
16161 esac
16163 if test $ok = yes; then
16164 # An in-tree tool is available and we can use it
16165 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16167 $as_echo "just compiled" >&6; }
16168 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
16169 # We already found the complete path
16170 ac_dir=`dirname $RANLIB_FOR_TARGET`
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16172 $as_echo "pre-installed in $ac_dir" >&6; }
16173 elif test "x$target" = "x$host"; then
16174 # We can use an host tool
16175 RANLIB_FOR_TARGET='$(RANLIB)'
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16177 $as_echo "host tool" >&6; }
16178 else
16179 # We need a cross tool
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16181 $as_echo "pre-installed" >&6; }
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
16186 $as_echo_n "checking where to find the target readelf... " >&6; }
16187 if test "x${build}" != "x${host}" ; then
16188 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
16189 # We already found the complete path
16190 ac_dir=`dirname $READELF_FOR_TARGET`
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16192 $as_echo "pre-installed in $ac_dir" >&6; }
16193 else
16194 # Canadian cross, just use what we found
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16196 $as_echo "pre-installed" >&6; }
16198 else
16199 ok=yes
16200 case " ${configdirs} " in
16201 *" binutils "*) ;;
16202 *) ok=no ;;
16203 esac
16205 if test $ok = yes; then
16206 # An in-tree tool is available and we can use it
16207 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16209 $as_echo "just compiled" >&6; }
16210 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
16211 # We already found the complete path
16212 ac_dir=`dirname $READELF_FOR_TARGET`
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16214 $as_echo "pre-installed in $ac_dir" >&6; }
16215 elif test "x$target" = "x$host"; then
16216 # We can use an host tool
16217 READELF_FOR_TARGET='$(READELF)'
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16219 $as_echo "host tool" >&6; }
16220 else
16221 # We need a cross tool
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16223 $as_echo "pre-installed" >&6; }
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
16228 $as_echo_n "checking where to find the target strip... " >&6; }
16229 if test "x${build}" != "x${host}" ; then
16230 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
16231 # We already found the complete path
16232 ac_dir=`dirname $STRIP_FOR_TARGET`
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16234 $as_echo "pre-installed in $ac_dir" >&6; }
16235 else
16236 # Canadian cross, just use what we found
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16238 $as_echo "pre-installed" >&6; }
16240 else
16241 ok=yes
16242 case " ${configdirs} " in
16243 *" binutils "*) ;;
16244 *) ok=no ;;
16245 esac
16247 if test $ok = yes; then
16248 # An in-tree tool is available and we can use it
16249 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16251 $as_echo "just compiled" >&6; }
16252 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
16253 # We already found the complete path
16254 ac_dir=`dirname $STRIP_FOR_TARGET`
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16256 $as_echo "pre-installed in $ac_dir" >&6; }
16257 elif test "x$target" = "x$host"; then
16258 # We can use an host tool
16259 STRIP_FOR_TARGET='$(STRIP)'
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16261 $as_echo "host tool" >&6; }
16262 else
16263 # We need a cross tool
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16265 $as_echo "pre-installed" >&6; }
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
16270 $as_echo_n "checking where to find the target windres... " >&6; }
16271 if test "x${build}" != "x${host}" ; then
16272 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
16273 # We already found the complete path
16274 ac_dir=`dirname $WINDRES_FOR_TARGET`
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16276 $as_echo "pre-installed in $ac_dir" >&6; }
16277 else
16278 # Canadian cross, just use what we found
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16280 $as_echo "pre-installed" >&6; }
16282 else
16283 ok=yes
16284 case " ${configdirs} " in
16285 *" binutils "*) ;;
16286 *) ok=no ;;
16287 esac
16289 if test $ok = yes; then
16290 # An in-tree tool is available and we can use it
16291 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16293 $as_echo "just compiled" >&6; }
16294 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
16295 # We already found the complete path
16296 ac_dir=`dirname $WINDRES_FOR_TARGET`
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16298 $as_echo "pre-installed in $ac_dir" >&6; }
16299 elif test "x$target" = "x$host"; then
16300 # We can use an host tool
16301 WINDRES_FOR_TARGET='$(WINDRES)'
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16303 $as_echo "host tool" >&6; }
16304 else
16305 # We need a cross tool
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16307 $as_echo "pre-installed" >&6; }
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
16312 $as_echo_n "checking where to find the target windmc... " >&6; }
16313 if test "x${build}" != "x${host}" ; then
16314 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
16315 # We already found the complete path
16316 ac_dir=`dirname $WINDMC_FOR_TARGET`
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16318 $as_echo "pre-installed in $ac_dir" >&6; }
16319 else
16320 # Canadian cross, just use what we found
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16322 $as_echo "pre-installed" >&6; }
16324 else
16325 ok=yes
16326 case " ${configdirs} " in
16327 *" binutils "*) ;;
16328 *) ok=no ;;
16329 esac
16331 if test $ok = yes; then
16332 # An in-tree tool is available and we can use it
16333 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16335 $as_echo "just compiled" >&6; }
16336 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
16337 # We already found the complete path
16338 ac_dir=`dirname $WINDMC_FOR_TARGET`
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16340 $as_echo "pre-installed in $ac_dir" >&6; }
16341 elif test "x$target" = "x$host"; then
16342 # We can use an host tool
16343 WINDMC_FOR_TARGET='$(WINDMC)'
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16345 $as_echo "host tool" >&6; }
16346 else
16347 # We need a cross tool
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16349 $as_echo "pre-installed" >&6; }
16357 # Certain tools may need extra flags.
16358 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
16359 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
16360 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
16362 # When building target libraries, except in a Canadian cross, we use
16363 # the same toolchain as the compiler we just built.
16364 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
16365 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
16366 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
16367 if test $host = $build; then
16368 case " $configdirs " in
16369 *" gcc "*)
16370 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
16371 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
16372 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
16374 esac
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16382 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16383 # Check whether --enable-maintainer-mode was given.
16384 if test "${enable_maintainer_mode+set}" = set; then :
16385 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16386 else
16387 USE_MAINTAINER_MODE=no
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16391 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16394 if test "$USE_MAINTAINER_MODE" = yes; then
16395 MAINTAINER_MODE_TRUE=
16396 MAINTAINER_MODE_FALSE='#'
16397 else
16398 MAINTAINER_MODE_TRUE='#'
16399 MAINTAINER_MODE_FALSE=
16401 MAINT=$MAINTAINER_MODE_TRUE
16403 # ---------------------
16404 # GCC bootstrap support
16405 # ---------------------
16407 # Stage specific cflags for build.
16408 stage1_cflags="-g"
16409 case $build in
16410 vax-*-*)
16411 case ${GCC} in
16412 yes) stage1_cflags="-g -Wa,-J" ;;
16413 *) stage1_cflags="-g -J" ;;
16414 esac ;;
16415 esac
16419 # Enable --enable-checking in stage1 of the compiler.
16420 # Check whether --enable-stage1-checking was given.
16421 if test "${enable_stage1_checking+set}" = set; then :
16422 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
16423 else
16424 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
16425 # For --disable-checking or implicit --enable-checking=release, avoid
16426 # setting --enable-checking=gc in the default stage1 checking for LTO
16427 # bootstraps. See PR62077.
16428 case $BUILD_CONFIG in
16429 *lto*)
16430 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
16432 stage1_checking=--enable-checking=yes,types;;
16433 esac
16434 if test "x$enable_checking" = x && \
16435 test -d ${srcdir}/gcc && \
16436 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
16437 stage1_checking=--enable-checking=yes,types,extra
16439 else
16440 stage1_checking=--enable-checking=$enable_checking,types
16446 # Enable -Werror in bootstrap stage2 and later.
16447 # Check whether --enable-werror was given.
16448 if test "${enable_werror+set}" = set; then :
16449 enableval=$enable_werror;
16450 case ${enable_werror} in
16451 yes) stage2_werror_flag="--enable-werror-always" ;;
16452 *) stage2_werror_flag="" ;;
16453 esac
16455 else
16457 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
16458 case $BUILD_CONFIG in
16459 bootstrap-debug)
16460 stage2_werror_flag="--enable-werror-always" ;;
16462 stage2_werror_flag="--enable-werror-always" ;;
16463 esac
16471 # Specify what files to not compare during bootstrap.
16473 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
16474 case "$target" in
16475 hppa*64*-*-hpux*) ;;
16476 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
16477 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
16478 esac
16481 ac_config_files="$ac_config_files Makefile"
16483 cat >confcache <<\_ACEOF
16484 # This file is a shell script that caches the results of configure
16485 # tests run on this system so they can be shared between configure
16486 # scripts and configure runs, see configure's option --config-cache.
16487 # It is not useful on other systems. If it contains results you don't
16488 # want to keep, you may remove or edit it.
16490 # config.status only pays attention to the cache file if you give it
16491 # the --recheck option to rerun configure.
16493 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16494 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16495 # following values.
16497 _ACEOF
16499 # The following way of writing the cache mishandles newlines in values,
16500 # but we know of no workaround that is simple, portable, and efficient.
16501 # So, we kill variables containing newlines.
16502 # Ultrix sh set writes to stderr and can't be redirected directly,
16503 # and sets the high bit in the cache file unless we assign to the vars.
16505 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16506 eval ac_val=\$$ac_var
16507 case $ac_val in #(
16508 *${as_nl}*)
16509 case $ac_var in #(
16510 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16511 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16512 esac
16513 case $ac_var in #(
16514 _ | IFS | as_nl) ;; #(
16515 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16516 *) { eval $ac_var=; unset $ac_var;} ;;
16517 esac ;;
16518 esac
16519 done
16521 (set) 2>&1 |
16522 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16523 *${as_nl}ac_space=\ *)
16524 # `set' does not quote correctly, so add quotes: double-quote
16525 # substitution turns \\\\ into \\, and sed turns \\ into \.
16526 sed -n \
16527 "s/'/'\\\\''/g;
16528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16529 ;; #(
16531 # `set' quotes correctly as required by POSIX, so do not add quotes.
16532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16534 esac |
16535 sort
16537 sed '
16538 /^ac_cv_env_/b end
16539 t clear
16540 :clear
16541 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16542 t end
16543 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16544 :end' >>confcache
16545 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16546 if test -w "$cache_file"; then
16547 if test "x$cache_file" != "x/dev/null"; then
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16549 $as_echo "$as_me: updating cache $cache_file" >&6;}
16550 if test ! -f "$cache_file" || test -h "$cache_file"; then
16551 cat confcache >"$cache_file"
16552 else
16553 case $cache_file in #(
16554 */* | ?:*)
16555 mv -f confcache "$cache_file"$$ &&
16556 mv -f "$cache_file"$$ "$cache_file" ;; #(
16558 mv -f confcache "$cache_file" ;;
16559 esac
16562 else
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16564 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16567 rm -f confcache
16569 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16570 # Let make expand exec_prefix.
16571 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16573 # Transform confdefs.h into DEFS.
16574 # Protect against shell expansion while executing Makefile rules.
16575 # Protect against Makefile macro expansion.
16577 # If the first sed substitution is executed (which looks for macros that
16578 # take arguments), then branch to the quote section. Otherwise,
16579 # look for a macro that doesn't take arguments.
16580 ac_script='
16581 :mline
16582 /\\$/{
16584 s,\\\n,,
16585 b mline
16587 t clear
16588 :clear
16589 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16590 t quote
16591 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16592 t quote
16593 b any
16594 :quote
16595 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16596 s/\[/\\&/g
16597 s/\]/\\&/g
16598 s/\$/$$/g
16600 :any
16603 s/^\n//
16604 s/\n/ /g
16608 DEFS=`sed -n "$ac_script" confdefs.h`
16611 ac_libobjs=
16612 ac_ltlibobjs=
16614 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16615 # 1. Remove the extension, and $U if already installed.
16616 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16617 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16618 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16619 # will be set to the directory where LIBOBJS objects are built.
16620 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16621 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16622 done
16623 LIBOBJS=$ac_libobjs
16625 LTLIBOBJS=$ac_ltlibobjs
16629 : "${CONFIG_STATUS=./config.status}"
16630 ac_write_fail=0
16631 ac_clean_files_save=$ac_clean_files
16632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16634 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16635 as_write_fail=0
16636 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16637 #! $SHELL
16638 # Generated by $as_me.
16639 # Run this file to recreate the current configuration.
16640 # Compiler output produced by configure, useful for debugging
16641 # configure, is in config.log if it exists.
16643 debug=false
16644 ac_cs_recheck=false
16645 ac_cs_silent=false
16647 SHELL=\${CONFIG_SHELL-$SHELL}
16648 export SHELL
16649 _ASEOF
16650 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16651 ## -------------------- ##
16652 ## M4sh Initialization. ##
16653 ## -------------------- ##
16655 # Be more Bourne compatible
16656 DUALCASE=1; export DUALCASE # for MKS sh
16657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16658 emulate sh
16659 NULLCMD=:
16660 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16661 # is contrary to our usage. Disable this feature.
16662 alias -g '${1+"$@"}'='"$@"'
16663 setopt NO_GLOB_SUBST
16664 else
16665 case `(set -o) 2>/dev/null` in #(
16666 *posix*) :
16667 set -o posix ;; #(
16668 *) :
16670 esac
16674 as_nl='
16676 export as_nl
16677 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16678 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16681 # Prefer a ksh shell builtin over an external printf program on Solaris,
16682 # but without wasting forks for bash or zsh.
16683 if test -z "$BASH_VERSION$ZSH_VERSION" \
16684 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16685 as_echo='print -r --'
16686 as_echo_n='print -rn --'
16687 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16688 as_echo='printf %s\n'
16689 as_echo_n='printf %s'
16690 else
16691 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16692 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16693 as_echo_n='/usr/ucb/echo -n'
16694 else
16695 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16696 as_echo_n_body='eval
16697 arg=$1;
16698 case $arg in #(
16699 *"$as_nl"*)
16700 expr "X$arg" : "X\\(.*\\)$as_nl";
16701 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16702 esac;
16703 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16705 export as_echo_n_body
16706 as_echo_n='sh -c $as_echo_n_body as_echo'
16708 export as_echo_body
16709 as_echo='sh -c $as_echo_body as_echo'
16712 # The user is always right.
16713 if test "${PATH_SEPARATOR+set}" != set; then
16714 PATH_SEPARATOR=:
16715 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16716 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16717 PATH_SEPARATOR=';'
16722 # IFS
16723 # We need space, tab and new line, in precisely that order. Quoting is
16724 # there to prevent editors from complaining about space-tab.
16725 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16726 # splitting by setting IFS to empty value.)
16727 IFS=" "" $as_nl"
16729 # Find who we are. Look in the path if we contain no directory separator.
16730 as_myself=
16731 case $0 in #((
16732 *[\\/]* ) as_myself=$0 ;;
16733 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16734 for as_dir in $PATH
16736 IFS=$as_save_IFS
16737 test -z "$as_dir" && as_dir=.
16738 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16739 done
16740 IFS=$as_save_IFS
16743 esac
16744 # We did not find ourselves, most probably we were run as `sh COMMAND'
16745 # in which case we are not to be found in the path.
16746 if test "x$as_myself" = x; then
16747 as_myself=$0
16749 if test ! -f "$as_myself"; then
16750 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16751 exit 1
16754 # Unset variables that we do not need and which cause bugs (e.g. in
16755 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16756 # suppresses any "Segmentation fault" message there. '((' could
16757 # trigger a bug in pdksh 5.2.14.
16758 for as_var in BASH_ENV ENV MAIL MAILPATH
16759 do eval test x\${$as_var+set} = xset \
16760 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16761 done
16762 PS1='$ '
16763 PS2='> '
16764 PS4='+ '
16766 # NLS nuisances.
16767 LC_ALL=C
16768 export LC_ALL
16769 LANGUAGE=C
16770 export LANGUAGE
16772 # CDPATH.
16773 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16776 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16777 # ----------------------------------------
16778 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16779 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16780 # script with STATUS, using 1 if that was 0.
16781 as_fn_error ()
16783 as_status=$1; test $as_status -eq 0 && as_status=1
16784 if test "$4"; then
16785 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16786 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16788 $as_echo "$as_me: error: $2" >&2
16789 as_fn_exit $as_status
16790 } # as_fn_error
16793 # as_fn_set_status STATUS
16794 # -----------------------
16795 # Set $? to STATUS, without forking.
16796 as_fn_set_status ()
16798 return $1
16799 } # as_fn_set_status
16801 # as_fn_exit STATUS
16802 # -----------------
16803 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16804 as_fn_exit ()
16806 set +e
16807 as_fn_set_status $1
16808 exit $1
16809 } # as_fn_exit
16811 # as_fn_unset VAR
16812 # ---------------
16813 # Portably unset VAR.
16814 as_fn_unset ()
16816 { eval $1=; unset $1;}
16818 as_unset=as_fn_unset
16819 # as_fn_append VAR VALUE
16820 # ----------------------
16821 # Append the text in VALUE to the end of the definition contained in VAR. Take
16822 # advantage of any shell optimizations that allow amortized linear growth over
16823 # repeated appends, instead of the typical quadratic growth present in naive
16824 # implementations.
16825 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16826 eval 'as_fn_append ()
16828 eval $1+=\$2
16830 else
16831 as_fn_append ()
16833 eval $1=\$$1\$2
16835 fi # as_fn_append
16837 # as_fn_arith ARG...
16838 # ------------------
16839 # Perform arithmetic evaluation on the ARGs, and store the result in the
16840 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16841 # must be portable across $(()) and expr.
16842 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16843 eval 'as_fn_arith ()
16845 as_val=$(( $* ))
16847 else
16848 as_fn_arith ()
16850 as_val=`expr "$@" || test $? -eq 1`
16852 fi # as_fn_arith
16855 if expr a : '\(a\)' >/dev/null 2>&1 &&
16856 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16857 as_expr=expr
16858 else
16859 as_expr=false
16862 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16863 as_basename=basename
16864 else
16865 as_basename=false
16868 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16869 as_dirname=dirname
16870 else
16871 as_dirname=false
16874 as_me=`$as_basename -- "$0" ||
16875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16876 X"$0" : 'X\(//\)$' \| \
16877 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16878 $as_echo X/"$0" |
16879 sed '/^.*\/\([^/][^/]*\)\/*$/{
16880 s//\1/
16883 /^X\/\(\/\/\)$/{
16884 s//\1/
16887 /^X\/\(\/\).*/{
16888 s//\1/
16891 s/.*/./; q'`
16893 # Avoid depending upon Character Ranges.
16894 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16897 as_cr_digits='0123456789'
16898 as_cr_alnum=$as_cr_Letters$as_cr_digits
16900 ECHO_C= ECHO_N= ECHO_T=
16901 case `echo -n x` in #(((((
16902 -n*)
16903 case `echo 'xy\c'` in
16904 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16905 xy) ECHO_C='\c';;
16906 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16907 ECHO_T=' ';;
16908 esac;;
16910 ECHO_N='-n';;
16911 esac
16913 rm -f conf$$ conf$$.exe conf$$.file
16914 if test -d conf$$.dir; then
16915 rm -f conf$$.dir/conf$$.file
16916 else
16917 rm -f conf$$.dir
16918 mkdir conf$$.dir 2>/dev/null
16920 if (echo >conf$$.file) 2>/dev/null; then
16921 if ln -s conf$$.file conf$$ 2>/dev/null; then
16922 as_ln_s='ln -s'
16923 # ... but there are two gotchas:
16924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16926 # In both cases, we have to default to `cp -pR'.
16927 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16928 as_ln_s='cp -pR'
16929 elif ln conf$$.file conf$$ 2>/dev/null; then
16930 as_ln_s=ln
16931 else
16932 as_ln_s='cp -pR'
16934 else
16935 as_ln_s='cp -pR'
16937 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16938 rmdir conf$$.dir 2>/dev/null
16941 # as_fn_mkdir_p
16942 # -------------
16943 # Create "$as_dir" as a directory, including parents if necessary.
16944 as_fn_mkdir_p ()
16947 case $as_dir in #(
16948 -*) as_dir=./$as_dir;;
16949 esac
16950 test -d "$as_dir" || eval $as_mkdir_p || {
16951 as_dirs=
16952 while :; do
16953 case $as_dir in #(
16954 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16955 *) as_qdir=$as_dir;;
16956 esac
16957 as_dirs="'$as_qdir' $as_dirs"
16958 as_dir=`$as_dirname -- "$as_dir" ||
16959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16960 X"$as_dir" : 'X\(//\)[^/]' \| \
16961 X"$as_dir" : 'X\(//\)$' \| \
16962 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16963 $as_echo X"$as_dir" |
16964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16965 s//\1/
16968 /^X\(\/\/\)[^/].*/{
16969 s//\1/
16972 /^X\(\/\/\)$/{
16973 s//\1/
16976 /^X\(\/\).*/{
16977 s//\1/
16980 s/.*/./; q'`
16981 test -d "$as_dir" && break
16982 done
16983 test -z "$as_dirs" || eval "mkdir $as_dirs"
16984 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16987 } # as_fn_mkdir_p
16988 if mkdir -p . 2>/dev/null; then
16989 as_mkdir_p='mkdir -p "$as_dir"'
16990 else
16991 test -d ./-p && rmdir ./-p
16992 as_mkdir_p=false
16996 # as_fn_executable_p FILE
16997 # -----------------------
16998 # Test if FILE is an executable regular file.
16999 as_fn_executable_p ()
17001 test -f "$1" && test -x "$1"
17002 } # as_fn_executable_p
17003 as_test_x='test -x'
17004 as_executable_p=as_fn_executable_p
17006 # Sed expression to map a string onto a valid CPP name.
17007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17009 # Sed expression to map a string onto a valid variable name.
17010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17013 exec 6>&1
17014 ## ----------------------------------- ##
17015 ## Main body of $CONFIG_STATUS script. ##
17016 ## ----------------------------------- ##
17017 _ASEOF
17018 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17021 # Save the log message, to keep $0 and so on meaningful, and to
17022 # report actual input values of CONFIG_FILES etc. instead of their
17023 # values after options handling.
17024 ac_log="
17025 This file was extended by $as_me, which was
17026 generated by GNU Autoconf 2.69. Invocation command line was
17028 CONFIG_FILES = $CONFIG_FILES
17029 CONFIG_HEADERS = $CONFIG_HEADERS
17030 CONFIG_LINKS = $CONFIG_LINKS
17031 CONFIG_COMMANDS = $CONFIG_COMMANDS
17032 $ $0 $@
17034 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17037 _ACEOF
17039 case $ac_config_files in *"
17040 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17041 esac
17045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17046 # Files that config.status was made for.
17047 config_files="$ac_config_files"
17049 _ACEOF
17051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17052 ac_cs_usage="\
17053 \`$as_me' instantiates files and other configuration actions
17054 from templates according to the current configuration. Unless the files
17055 and actions are specified as TAGs, all are instantiated by default.
17057 Usage: $0 [OPTION]... [TAG]...
17059 -h, --help print this help, then exit
17060 -V, --version print version number and configuration settings, then exit
17061 --config print configuration, then exit
17062 -q, --quiet, --silent
17063 do not print progress messages
17064 -d, --debug don't remove temporary files
17065 --recheck update $as_me by reconfiguring in the same conditions
17066 --file=FILE[:TEMPLATE]
17067 instantiate the configuration file FILE
17069 Configuration files:
17070 $config_files
17072 Report bugs to the package provider."
17074 _ACEOF
17075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17076 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17077 ac_cs_version="\\
17078 config.status
17079 configured by $0, generated by GNU Autoconf 2.69,
17080 with options \\"\$ac_cs_config\\"
17082 Copyright (C) 2012 Free Software Foundation, Inc.
17083 This config.status script is free software; the Free Software Foundation
17084 gives unlimited permission to copy, distribute and modify it."
17086 ac_pwd='$ac_pwd'
17087 srcdir='$srcdir'
17088 INSTALL='$INSTALL'
17089 AWK='$AWK'
17090 test -n "\$AWK" || AWK=awk
17091 _ACEOF
17093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17094 # The default lists apply if the user does not specify any file.
17095 ac_need_defaults=:
17096 while test $# != 0
17098 case $1 in
17099 --*=?*)
17100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17101 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17102 ac_shift=:
17104 --*=)
17105 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17106 ac_optarg=
17107 ac_shift=:
17110 ac_option=$1
17111 ac_optarg=$2
17112 ac_shift=shift
17114 esac
17116 case $ac_option in
17117 # Handling of the options.
17118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17119 ac_cs_recheck=: ;;
17120 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17121 $as_echo "$ac_cs_version"; exit ;;
17122 --config | --confi | --conf | --con | --co | --c )
17123 $as_echo "$ac_cs_config"; exit ;;
17124 --debug | --debu | --deb | --de | --d | -d )
17125 debug=: ;;
17126 --file | --fil | --fi | --f )
17127 $ac_shift
17128 case $ac_optarg in
17129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17130 '') as_fn_error $? "missing file argument" ;;
17131 esac
17132 as_fn_append CONFIG_FILES " '$ac_optarg'"
17133 ac_need_defaults=false;;
17134 --he | --h | --help | --hel | -h )
17135 $as_echo "$ac_cs_usage"; exit ;;
17136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17137 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17138 ac_cs_silent=: ;;
17140 # This is an error.
17141 -*) as_fn_error $? "unrecognized option: \`$1'
17142 Try \`$0 --help' for more information." ;;
17144 *) as_fn_append ac_config_targets " $1"
17145 ac_need_defaults=false ;;
17147 esac
17148 shift
17149 done
17151 ac_configure_extra_args=
17153 if $ac_cs_silent; then
17154 exec 6>/dev/null
17155 ac_configure_extra_args="$ac_configure_extra_args --silent"
17158 _ACEOF
17159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17160 if \$ac_cs_recheck; then
17161 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17162 shift
17163 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17164 CONFIG_SHELL='$SHELL'
17165 export CONFIG_SHELL
17166 exec "\$@"
17169 _ACEOF
17170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17171 exec 5>>config.log
17173 echo
17174 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17175 ## Running $as_me. ##
17176 _ASBOX
17177 $as_echo "$ac_log"
17178 } >&5
17180 _ACEOF
17181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17183 # INIT-COMMANDS
17185 extrasub_build="$extrasub_build"
17186 extrasub_host="$extrasub_host"
17187 extrasub_target="$extrasub_target"
17189 _ACEOF
17191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17193 # Handling of arguments.
17194 for ac_config_target in $ac_config_targets
17196 case $ac_config_target in
17197 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17199 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17200 esac
17201 done
17204 # If the user did not use the arguments to specify the items to instantiate,
17205 # then the envvar interface is used. Set only those that are not.
17206 # We use the long form for the default assignment because of an extremely
17207 # bizarre bug on SunOS 4.1.3.
17208 if $ac_need_defaults; then
17209 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17212 # Have a temporary directory for convenience. Make it in the build tree
17213 # simply because there is no reason against having it here, and in addition,
17214 # creating and moving files from /tmp can sometimes cause problems.
17215 # Hook for its removal unless debugging.
17216 # Note that there is a small window in which the directory will not be cleaned:
17217 # after its creation but before its name has been assigned to `$tmp'.
17218 $debug ||
17220 tmp= ac_tmp=
17221 trap 'exit_status=$?
17222 : "${ac_tmp:=$tmp}"
17223 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17225 trap 'as_fn_exit 1' 1 2 13 15
17227 # Create a (secure) tmp directory for tmp files.
17230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17231 test -d "$tmp"
17232 } ||
17234 tmp=./conf$$-$RANDOM
17235 (umask 077 && mkdir "$tmp")
17236 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17237 ac_tmp=$tmp
17239 # Set up the scripts for CONFIG_FILES section.
17240 # No need to generate them if there are no CONFIG_FILES.
17241 # This happens for instance with `./config.status config.h'.
17242 if test -n "$CONFIG_FILES"; then
17244 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17245 ac_cs_awk_getline=:
17246 ac_cs_awk_pipe_init=
17247 ac_cs_awk_read_file='
17248 while ((getline aline < (F[key])) > 0)
17249 print(aline)
17250 close(F[key])'
17251 ac_cs_awk_pipe_fini=
17252 else
17253 ac_cs_awk_getline=false
17254 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17255 ac_cs_awk_read_file='
17256 print "|#_!!_#|"
17257 print "cat " F[key] " &&"
17258 '$ac_cs_awk_pipe_init
17259 # The final `:' finishes the AND list.
17260 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17262 ac_cr=`echo X | tr X '\015'`
17263 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17264 # But we know of no other shell where ac_cr would be empty at this
17265 # point, so we can use a bashism as a fallback.
17266 if test "x$ac_cr" = x; then
17267 eval ac_cr=\$\'\\r\'
17269 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17270 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17271 ac_cs_awk_cr='\\r'
17272 else
17273 ac_cs_awk_cr=$ac_cr
17276 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17277 _ACEOF
17279 # Create commands to substitute file output variables.
17281 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17282 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17283 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17284 echo "_ACAWK" &&
17285 echo "_ACEOF"
17286 } >conf$$files.sh &&
17287 . ./conf$$files.sh ||
17288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17289 rm -f conf$$files.sh
17292 echo "cat >conf$$subs.awk <<_ACEOF" &&
17293 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17294 echo "_ACEOF"
17295 } >conf$$subs.sh ||
17296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17297 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17298 ac_delim='%!_!# '
17299 for ac_last_try in false false false false false :; do
17300 . ./conf$$subs.sh ||
17301 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17303 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17304 if test $ac_delim_n = $ac_delim_num; then
17305 break
17306 elif $ac_last_try; then
17307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17308 else
17309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17311 done
17312 rm -f conf$$subs.sh
17314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17315 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17316 _ACEOF
17317 sed -n '
17319 s/^/S["/; s/!.*/"]=/
17322 s/^[^!]*!//
17323 :repl
17324 t repl
17325 s/'"$ac_delim"'$//
17326 t delim
17329 s/\(.\{148\}\)..*/\1/
17330 t more1
17331 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17334 b repl
17335 :more1
17336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17339 s/.\{148\}//
17340 t nl
17341 :delim
17343 s/\(.\{148\}\)..*/\1/
17344 t more2
17345 s/["\\]/\\&/g; s/^/"/; s/$/"/
17348 :more2
17349 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17352 s/.\{148\}//
17353 t delim
17354 ' <conf$$subs.awk | sed '
17355 /^[^""]/{
17357 s/\n//
17359 ' >>$CONFIG_STATUS || ac_write_fail=1
17360 rm -f conf$$subs.awk
17361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17362 _ACAWK
17363 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17364 for (key in S) S_is_set[key] = 1
17365 FS = "\a"
17366 \$ac_cs_awk_pipe_init
17369 line = $ 0
17370 nfields = split(line, field, "@")
17371 substed = 0
17372 len = length(field[1])
17373 for (i = 2; i < nfields; i++) {
17374 key = field[i]
17375 keylen = length(key)
17376 if (S_is_set[key]) {
17377 value = S[key]
17378 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17379 len += length(value) + length(field[++i])
17380 substed = 1
17381 } else
17382 len += 1 + keylen
17384 if (nfields == 3 && !substed) {
17385 key = field[2]
17386 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17387 \$ac_cs_awk_read_file
17388 next
17391 print line
17393 \$ac_cs_awk_pipe_fini
17394 _ACAWK
17395 _ACEOF
17396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17397 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17398 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17399 else
17401 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17402 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17403 _ACEOF
17405 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17406 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17407 # trailing colons and then remove the whole line if VPATH becomes empty
17408 # (actually we leave an empty line to preserve line numbers).
17409 if test "x$srcdir" = x.; then
17410 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17412 s///
17413 s/^/:/
17414 s/[ ]*$/:/
17415 s/:\$(srcdir):/:/g
17416 s/:\${srcdir}:/:/g
17417 s/:@srcdir@:/:/g
17418 s/^:*//
17419 s/:*$//
17421 s/\(=[ ]*\).*/\1/
17423 s/\n//
17424 s/^[^=]*=[ ]*$//
17428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17429 fi # test -n "$CONFIG_FILES"
17432 eval set X " :F $CONFIG_FILES "
17433 shift
17434 for ac_tag
17436 case $ac_tag in
17437 :[FHLC]) ac_mode=$ac_tag; continue;;
17438 esac
17439 case $ac_mode$ac_tag in
17440 :[FHL]*:*);;
17441 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17442 :[FH]-) ac_tag=-:-;;
17443 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17444 esac
17445 ac_save_IFS=$IFS
17446 IFS=:
17447 set x $ac_tag
17448 IFS=$ac_save_IFS
17449 shift
17450 ac_file=$1
17451 shift
17453 case $ac_mode in
17454 :L) ac_source=$1;;
17455 :[FH])
17456 ac_file_inputs=
17457 for ac_f
17459 case $ac_f in
17460 -) ac_f="$ac_tmp/stdin";;
17461 *) # Look for the file first in the build tree, then in the source tree
17462 # (if the path is not absolute). The absolute path cannot be DOS-style,
17463 # because $ac_f cannot contain `:'.
17464 test -f "$ac_f" ||
17465 case $ac_f in
17466 [\\/$]*) false;;
17467 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17468 esac ||
17469 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17470 esac
17471 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17472 as_fn_append ac_file_inputs " '$ac_f'"
17473 done
17475 # Let's still pretend it is `configure' which instantiates (i.e., don't
17476 # use $as_me), people would be surprised to read:
17477 # /* config.h. Generated by config.status. */
17478 configure_input='Generated from '`
17479 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17480 `' by configure.'
17481 if test x"$ac_file" != x-; then
17482 configure_input="$ac_file. $configure_input"
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17484 $as_echo "$as_me: creating $ac_file" >&6;}
17486 # Neutralize special characters interpreted by sed in replacement strings.
17487 case $configure_input in #(
17488 *\&* | *\|* | *\\* )
17489 ac_sed_conf_input=`$as_echo "$configure_input" |
17490 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17491 *) ac_sed_conf_input=$configure_input;;
17492 esac
17494 case $ac_tag in
17495 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17496 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17497 esac
17499 esac
17501 ac_dir=`$as_dirname -- "$ac_file" ||
17502 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17503 X"$ac_file" : 'X\(//\)[^/]' \| \
17504 X"$ac_file" : 'X\(//\)$' \| \
17505 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17506 $as_echo X"$ac_file" |
17507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17508 s//\1/
17511 /^X\(\/\/\)[^/].*/{
17512 s//\1/
17515 /^X\(\/\/\)$/{
17516 s//\1/
17519 /^X\(\/\).*/{
17520 s//\1/
17523 s/.*/./; q'`
17524 as_dir="$ac_dir"; as_fn_mkdir_p
17525 ac_builddir=.
17527 case "$ac_dir" in
17528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17531 # A ".." for each directory in $ac_dir_suffix.
17532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17533 case $ac_top_builddir_sub in
17534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17536 esac ;;
17537 esac
17538 ac_abs_top_builddir=$ac_pwd
17539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17540 # for backward compatibility:
17541 ac_top_builddir=$ac_top_build_prefix
17543 case $srcdir in
17544 .) # We are building in place.
17545 ac_srcdir=.
17546 ac_top_srcdir=$ac_top_builddir_sub
17547 ac_abs_top_srcdir=$ac_pwd ;;
17548 [\\/]* | ?:[\\/]* ) # Absolute name.
17549 ac_srcdir=$srcdir$ac_dir_suffix;
17550 ac_top_srcdir=$srcdir
17551 ac_abs_top_srcdir=$srcdir ;;
17552 *) # Relative name.
17553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17554 ac_top_srcdir=$ac_top_build_prefix$srcdir
17555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17556 esac
17557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17560 case $ac_mode in
17563 # CONFIG_FILE
17566 case $INSTALL in
17567 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17568 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17569 esac
17570 _ACEOF
17572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17573 # If the template does not know about datarootdir, expand it.
17574 # FIXME: This hack should be removed a few years after 2.60.
17575 ac_datarootdir_hack=; ac_datarootdir_seen=
17576 ac_sed_dataroot='
17577 /datarootdir/ {
17581 /@datadir@/p
17582 /@docdir@/p
17583 /@infodir@/p
17584 /@localedir@/p
17585 /@mandir@/p'
17586 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17587 *datarootdir*) ac_datarootdir_seen=yes;;
17588 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17590 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17591 _ACEOF
17592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17593 ac_datarootdir_hack='
17594 s&@datadir@&$datadir&g
17595 s&@docdir@&$docdir&g
17596 s&@infodir@&$infodir&g
17597 s&@localedir@&$localedir&g
17598 s&@mandir@&$mandir&g
17599 s&\\\${datarootdir}&$datarootdir&g' ;;
17600 esac
17601 _ACEOF
17603 # Neutralize VPATH when `$srcdir' = `.'.
17604 # Shell code in configure.ac might set extrasub.
17605 # FIXME: do we really want to maintain this feature?
17606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17607 ac_sed_extra="$ac_vpsub
17608 $extrasub
17609 _ACEOF
17610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17613 s|@configure_input@|$ac_sed_conf_input|;t t
17614 s&@top_builddir@&$ac_top_builddir_sub&;t t
17615 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17616 s&@srcdir@&$ac_srcdir&;t t
17617 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17618 s&@top_srcdir@&$ac_top_srcdir&;t t
17619 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17620 s&@builddir@&$ac_builddir&;t t
17621 s&@abs_builddir@&$ac_abs_builddir&;t t
17622 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17623 s&@INSTALL@&$ac_INSTALL&;t t
17624 $ac_datarootdir_hack
17626 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17627 if $ac_cs_awk_getline; then
17628 $AWK -f "$ac_tmp/subs.awk"
17629 else
17630 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17631 fi \
17632 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17635 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17637 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17639 which seems to be undefined. Please make sure it is defined" >&5
17640 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17641 which seems to be undefined. Please make sure it is defined" >&2;}
17643 rm -f "$ac_tmp/stdin"
17644 case $ac_file in
17645 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17646 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17647 esac \
17648 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17653 esac
17656 case $ac_file$ac_mode in
17657 "Makefile":F) sed "$extrasub_build" Makefile |
17658 sed "$extrasub_host" |
17659 sed "$extrasub_target" > mf$$
17660 mv -f mf$$ Makefile ;;
17662 esac
17663 done # for ac_tag
17666 as_fn_exit 0
17667 _ACEOF
17668 ac_clean_files=$ac_clean_files_save
17670 test $ac_write_fail = 0 ||
17671 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17674 # configure is writing to config.log, and then calls config.status.
17675 # config.status does its own redirection, appending to config.log.
17676 # Unfortunately, on DOS this fails, as config.log is still kept open
17677 # by configure, so config.status won't be able to write to it; its
17678 # output is simply discarded. So we exec the FD to /dev/null,
17679 # effectively closing config.log, so it can be properly (re)opened and
17680 # appended to by config.status. When coming back to configure, we
17681 # need to make the FD available again.
17682 if test "$no_create" != yes; then
17683 ac_cs_success=:
17684 ac_config_status_args=
17685 test "$silent" = yes &&
17686 ac_config_status_args="$ac_config_status_args --quiet"
17687 exec 5>/dev/null
17688 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17689 exec 5>>config.log
17690 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17691 # would make configure fail if this is the last instruction.
17692 $ac_cs_success || as_fn_exit 1
17694 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17696 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}