Automatic date update in version.in
[binutils-gdb.git] / configure
blobf14e0efd675eaff3ac292ef6997ebdb9f616bb65
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 OBJDUMP_FOR_TARGET
607 OBJCOPY_FOR_TARGET
608 NM_FOR_TARGET
609 LIPO_FOR_TARGET
610 LD_FOR_TARGET
611 DLLTOOL_FOR_TARGET
612 AS_FOR_TARGET
613 AR_FOR_TARGET
614 GOC_FOR_TARGET
615 GFORTRAN_FOR_TARGET
616 GCC_FOR_TARGET
617 CXX_FOR_TARGET
618 CC_FOR_TARGET
619 RANLIB_PLUGIN_OPTION
620 AR_PLUGIN_OPTION
621 PKG_CONFIG_PATH
622 READELF
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 GOC_FOR_BUILD
650 GFORTRAN_FOR_BUILD
651 DLLTOOL_FOR_BUILD
652 CXX_FOR_BUILD
653 CXXFLAGS_FOR_BUILD
654 CPPFLAGS_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 PGO_BUILD_LTO_CFLAGS
698 PGO_BUILD_USE_CFLAGS
699 PGO_BUILD_GEN_CFLAGS
700 do_compare
701 GNATMAKE
702 GNATBIND
703 ac_ct_CXX
704 CXXFLAGS
706 OBJEXT
707 EXEEXT
708 ac_ct_CC
709 CPPFLAGS
710 LDFLAGS
711 CFLAGS
713 extra_liboffloadmic_configure_flags
714 target_subdir
715 host_subdir
716 build_subdir
717 build_libsubdir
720 LN_S
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_os
726 target_vendor
727 target_cpu
728 target
729 host_os
730 host_vendor
731 host_cpu
732 host
733 target_noncanonical
734 host_noncanonical
735 build_noncanonical
736 build_os
737 build_vendor
738 build_cpu
739 build
740 TOPLEVEL_CONFIGURE_ARGUMENTS
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files='serialization_dependencies
780 host_makefile_frag
781 target_makefile_frag
782 alphaieee_frag
783 ospace_frag'
784 ac_user_opts='
785 enable_option_checking
786 with_build_libsubdir
787 with_system_zlib
788 with_zstd
789 enable_as_accelerator_for
790 enable_offload_targets
791 enable_gold
792 enable_ld
793 enable_gprofng
794 enable_compressed_debug_sections
795 enable_year2038
796 enable_libquadmath
797 enable_libquadmath_support
798 enable_libada
799 enable_libssp
800 enable_libstdcxx
801 enable_liboffloadmic
802 enable_bootstrap
803 enable_pgo_build
804 with_mpc
805 with_mpc_include
806 with_mpc_lib
807 with_mpfr_dir
808 with_mpfr
809 with_mpfr_include
810 with_mpfr_lib
811 with_gmp_dir
812 with_gmp
813 with_gmp_include
814 with_gmp_lib
815 with_stage1_libs
816 with_static_standard_libraries
817 with_stage1_ldflags
818 with_boot_libs
819 with_boot_ldflags
820 with_isl
821 with_isl_include
822 with_isl_lib
823 enable_isl_version_check
824 enable_lto
825 enable_linker_plugin_configure_flags
826 enable_linker_plugin_flags
827 enable_host_shared
828 enable_stage1_languages
829 enable_objc_gc
830 with_target_bdw_gc
831 with_target_bdw_gc_include
832 with_target_bdw_gc_lib
833 with_gcc_major_version_only
834 with_build_sysroot
835 with_debug_prefix_map
836 with_build_config
837 enable_vtable_verify
838 enable_serial_configure
839 with_build_time_tools
840 enable_maintainer_mode
841 enable_stage1_checking
842 enable_werror
844 ac_precious_vars='build_alias
845 host_alias
846 target_alias
848 CFLAGS
849 LDFLAGS
850 LIBS
851 CPPFLAGS
853 CXXFLAGS
855 build_configargs
856 host_configargs
857 target_configargs
860 DLLTOOL
862 LIPO
864 RANLIB
865 STRIP
866 WINDRES
867 WINDMC
868 OBJCOPY
869 OBJDUMP
870 READELF
871 CC_FOR_TARGET
872 CXX_FOR_TARGET
873 GCC_FOR_TARGET
874 GFORTRAN_FOR_TARGET
875 GOC_FOR_TARGET
876 AR_FOR_TARGET
877 AS_FOR_TARGET
878 DLLTOOL_FOR_TARGET
879 LD_FOR_TARGET
880 LIPO_FOR_TARGET
881 NM_FOR_TARGET
882 OBJCOPY_FOR_TARGET
883 OBJDUMP_FOR_TARGET
884 RANLIB_FOR_TARGET
885 READELF_FOR_TARGET
886 STRIP_FOR_TARGET
887 WINDRES_FOR_TARGET
888 WINDMC_FOR_TARGET'
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 ac_unrecognized_opts=
895 ac_unrecognized_sep=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
939 ac_prev=
940 ac_dashdash=
941 for ac_option
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
946 ac_prev=
947 continue
950 case $ac_option in
951 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 *=) ac_optarg= ;;
953 *) ac_optarg=yes ;;
954 esac
956 # Accept the important Cygnus configure options, so we can diagnose typos.
958 case $ac_dashdash$ac_option in
960 ac_dashdash=yes ;;
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 ac_prev=bindir ;;
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 bindir=$ac_optarg ;;
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
979 --config-cache | -C)
980 cache_file=config.cache ;;
982 -datadir | --datadir | --datadi | --datad)
983 ac_prev=datadir ;;
984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
985 datadir=$ac_optarg ;;
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
994 -disable-* | --disable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=no ;;
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1020 -enable-* | --enable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1029 "enable_$ac_useropt"
1030 "*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval enable_$ac_useropt=\$ac_optarg ;;
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1114 no_create=yes ;;
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
1183 sbindir=$ac_optarg ;;
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
1194 sharedstatedir=$ac_optarg ;;
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
1199 site=$ac_optarg ;;
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1224 -with-* | --with-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=\$ac_optarg ;;
1240 -without-* | --without-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1274 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1275 Try \`$0 --help' for more information"
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 case $ac_envvar in #(
1282 '' | [0-9]* | *[!_$as_cr_alnum]* )
1283 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1284 esac
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1289 # FIXME: should be removed in autoconf 3.0.
1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1296 esac
1297 done
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 as_fn_error $? "missing argument to $ac_option"
1304 if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1308 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1312 # Check all directory arguments for consistency.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val=\$$ac_var
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
1326 case $ac_val in
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329 esac
1330 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1331 done
1333 # There might be people who depend on the old broken behavior: `$host'
1334 # used to hold the argument of --host etc.
1335 # FIXME: To remove some day.
1336 build=$build_alias
1337 host=$host_alias
1338 target=$target_alias
1340 # FIXME: To remove some day.
1341 if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
1344 elif test "x$build_alias" != "x$host_alias"; then
1345 cross_compiling=yes
1349 ac_tool_prefix=
1350 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352 test "$silent" = yes && exec 6>/dev/null
1355 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di=`ls -di .` &&
1357 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1358 as_fn_error $? "working directory cannot be determined"
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360 as_fn_error $? "pwd does not report name of working directory"
1363 # Find the source files, if location was not specified.
1364 if test -z "$srcdir"; then
1365 ac_srcdir_defaulted=yes
1366 # Try the directory containing this script, then the parent directory.
1367 ac_confdir=`$as_dirname -- "$as_myself" ||
1368 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369 X"$as_myself" : 'X\(//\)[^/]' \| \
1370 X"$as_myself" : 'X\(//\)$' \| \
1371 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1372 $as_echo X"$as_myself" |
1373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 s//\1/
1377 /^X\(\/\/\)[^/].*/{
1378 s//\1/
1381 /^X\(\/\/\)$/{
1382 s//\1/
1385 /^X\(\/\).*/{
1386 s//\1/
1389 s/.*/./; q'`
1390 srcdir=$ac_confdir
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 srcdir=..
1394 else
1395 ac_srcdir_defaulted=no
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1399 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1404 pwd)`
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407 srcdir=.
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1412 case $srcdir in
1413 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414 esac
1415 case $srcdir in
1416 *" "*)
1417 as_fn_error $? "path to source, $srcdir, contains spaces"
1419 esac
1420 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1422 for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 done
1430 # Report the --help message.
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
1436 \`configure' configures this package to adapt to many kinds of systems.
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1443 Defaults for the options are specified in brackets.
1445 Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking ...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1460 [PREFIX]
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1467 For better control, use the options below.
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
1489 _ACEOF
1491 cat <<\_ACEOF
1493 Program names:
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498 System types:
1499 --build=BUILD configure for building on BUILD [guessed]
1500 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1501 --target=TARGET configure for building compilers for TARGET [HOST]
1502 _ACEOF
1505 if test -n "$ac_init_help"; then
1507 cat <<\_ACEOF
1509 Optional Features:
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1513 --enable-as-accelerator-for=ARG
1514 build as offload target compiler. Specify offload
1515 host triple by ARG
1516 --enable-offload-targets=LIST
1517 enable offloading to devices from comma-separated
1518 LIST of TARGET[=DIR]. Use optional path to find
1519 offload target compiler during the build
1520 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1521 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1522 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
1523 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1524 Enable compressed debug sections for gas, gold or ld
1525 by default
1526 --enable-year2038 enable support for timestamps past the year 2038
1527 --disable-libquadmath do not build libquadmath directory
1528 --disable-libquadmath-support
1529 disable libquadmath support for Fortran
1530 --enable-libada build libada directory
1531 --enable-libssp build libssp directory
1532 --disable-libstdcxx do not build libstdc++-v3 directory
1533 --enable-liboffloadmic=ARG
1534 build liboffloadmic [ARG={no,host,target}]
1535 --enable-bootstrap enable bootstrapping [yes if native build]
1536 --enable-pgo-build[=lto]
1537 enable the PGO build
1538 --disable-isl-version-check
1539 disable check for isl version
1540 --enable-lto enable link time optimization support
1541 --enable-linker-plugin-configure-flags=FLAGS
1542 additional flags for configuring linker plugins
1543 [none]
1544 --enable-linker-plugin-flags=FLAGS
1545 additional flags for configuring and building linker
1546 plugins [none]
1547 --enable-host-shared build host code as shared libraries
1548 --enable-stage1-languages[=all]
1549 choose additional languages to build during stage1.
1550 Mostly useful for compiler development
1551 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1552 Objective-C runtime
1553 --enable-vtable-verify Enable vtable verification feature
1554 --enable-serial-[{host,target,build}-]configure
1555 force sequential configuration of sub-packages for
1556 the host, target or build machine, or all
1557 sub-packages
1558 --enable-maintainer-mode
1559 enable make rules and dependencies not useful (and
1560 sometimes confusing) to the casual installer
1561 --enable-stage1-checking[=all]
1562 choose additional checking for stage1 of the
1563 compiler
1564 --enable-werror enable -Werror in bootstrap stage2 and later
1566 Optional Packages:
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-build-libsubdir=DIR Directory where to find libraries for build system
1570 --with-system-zlib use installed libz
1571 --with-zstd Support zstd compressed debug sections
1572 (default=auto)
1573 --with-mpc=PATH specify prefix directory for installed MPC package.
1574 Equivalent to --with-mpc-include=PATH/include plus
1575 --with-mpc-lib=PATH/lib
1576 --with-mpc-include=PATH specify directory for installed MPC include files
1577 --with-mpc-lib=PATH specify directory for the installed MPC library
1578 --with-mpfr-dir=PATH this option has been REMOVED
1579 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1580 Equivalent to --with-mpfr-include=PATH/include plus
1581 --with-mpfr-lib=PATH/lib
1582 --with-mpfr-include=PATH
1583 specify directory for installed MPFR include files
1584 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1585 --with-gmp-dir=PATH this option has been REMOVED
1586 --with-gmp=PATH specify prefix directory for the installed GMP
1587 package. Equivalent to
1588 --with-gmp-include=PATH/include plus
1589 --with-gmp-lib=PATH/lib
1590 --with-gmp-include=PATH specify directory for installed GMP include files
1591 --with-gmp-lib=PATH specify directory for the installed GMP library
1592 --with-stage1-libs=LIBS libraries for stage1
1593 --with-static-standard-libraries
1594 use -static-libstdc++ and -static-libgcc
1595 (default=auto)
1596 --with-stage1-ldflags=FLAGS
1597 linker flags for stage1
1598 --with-boot-libs=LIBS libraries for stage2 and later
1599 --with-boot-ldflags=FLAGS
1600 linker flags for stage2 and later
1601 --with-isl=PATH Specify prefix directory for the installed isl
1602 package. Equivalent to
1603 --with-isl-include=PATH/include plus
1604 --with-isl-lib=PATH/lib
1605 --with-isl-include=PATH Specify directory for installed isl include files
1606 --with-isl-lib=PATH Specify the directory for the installed isl library
1607 --with-target-bdw-gc=PATHLIST
1608 specify prefix directory for installed bdw-gc
1609 package. Equivalent to
1610 --with-target-bdw-gc-include=PATH/include plus
1611 --with-target-bdw-gc-lib=PATH/lib
1612 --with-target-bdw-gc-include=PATHLIST
1613 specify directories for installed bdw-gc include
1614 files
1615 --with-target-bdw-gc-lib=PATHLIST
1616 specify directories for installed bdw-gc library
1617 --with-gcc-major-version-only
1618 use only GCC major number in filesystem paths
1619 --with-build-sysroot=SYSROOT
1620 use sysroot as the system root during the build
1621 --with-debug-prefix-map='A=B C=D ...'
1622 map A to B, C to D ... in debug information
1623 --with-build-config='NAME NAME2...'
1624 use config/NAME.mk build configuration
1625 --with-build-time-tools=PATH
1626 use given path to find target tools during the build
1628 Some influential environment variables:
1629 CC C compiler command
1630 CFLAGS C compiler flags
1631 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1632 nonstandard directory <lib dir>
1633 LIBS libraries to pass to the linker, e.g. -l<library>
1634 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1635 you have headers in a nonstandard directory <include dir>
1636 CXX C++ compiler command
1637 CXXFLAGS C++ compiler flags
1638 build_configargs
1639 additional configure arguments for build directories
1640 host_configargs
1641 additional configure arguments for host directories
1642 target_configargs
1643 additional configure arguments for target directories
1644 AR AR for the host
1645 AS AS for the host
1646 DLLTOOL DLLTOOL for the host
1647 LD LD for the host
1648 LIPO LIPO for the host
1649 NM NM for the host
1650 RANLIB RANLIB for the host
1651 STRIP STRIP for the host
1652 WINDRES WINDRES for the host
1653 WINDMC WINDMC for the host
1654 OBJCOPY OBJCOPY for the host
1655 OBJDUMP OBJDUMP for the host
1656 READELF READELF for the host
1657 CC_FOR_TARGET
1658 CC for the target
1659 CXX_FOR_TARGET
1660 CXX for the target
1661 GCC_FOR_TARGET
1662 GCC for the target
1663 GFORTRAN_FOR_TARGET
1664 GFORTRAN for the target
1665 GOC_FOR_TARGET
1666 GOC for the target
1667 AR_FOR_TARGET
1668 AR for the target
1669 AS_FOR_TARGET
1670 AS for the target
1671 DLLTOOL_FOR_TARGET
1672 DLLTOOL for the target
1673 LD_FOR_TARGET
1674 LD for the target
1675 LIPO_FOR_TARGET
1676 LIPO for the target
1677 NM_FOR_TARGET
1678 NM for the target
1679 OBJCOPY_FOR_TARGET
1680 OBJCOPY for the target
1681 OBJDUMP_FOR_TARGET
1682 OBJDUMP for the target
1683 RANLIB_FOR_TARGET
1684 RANLIB for the target
1685 READELF_FOR_TARGET
1686 READELF for the target
1687 STRIP_FOR_TARGET
1688 STRIP for the target
1689 WINDRES_FOR_TARGET
1690 WINDRES for the target
1691 WINDMC_FOR_TARGET
1692 WINDMC for the target
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1697 Report bugs to the package provider.
1698 _ACEOF
1699 ac_status=$?
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707 continue
1708 ac_builddir=.
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1726 case $srcdir in
1727 .) # We are building in place.
1728 ac_srcdir=.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1735 *) # Relative name.
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1750 else
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 fi || ac_status=$?
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1754 done
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759 cat <<\_ACEOF
1760 configure
1761 generated by GNU Autoconf 2.69
1763 Copyright (C) 2012 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767 exit
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=1
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1810 } # ac_fn_c_try_compile
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=1
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1848 } # ac_fn_cxx_try_compile
1850 # ac_fn_cxx_try_link LINENO
1851 # -------------------------
1852 # Try to link conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_cxx_try_link ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext conftest$ac_exeext
1857 if { { ac_try="$ac_link"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_cxx_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest$ac_exeext && {
1876 test "$cross_compiling" = yes ||
1877 test -x conftest$ac_exeext
1878 }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1887 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1888 # interfere with the next link command; also delete a directory that is
1889 # left behind by Apple's compiler. We do this before executing the actions.
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1894 } # ac_fn_cxx_try_link
1896 # ac_fn_c_try_link LINENO
1897 # -----------------------
1898 # Try to link conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_c_try_link ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 rm -f conftest.$ac_objext conftest$ac_exeext
1903 if { { ac_try="$ac_link"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_link") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest$ac_exeext && {
1922 test "$cross_compiling" = yes ||
1923 test -x conftest$ac_exeext
1924 }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1930 ac_retval=1
1932 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1933 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1934 # interfere with the next link command; also delete a directory that is
1935 # left behind by Apple's compiler. We do this before executing the actions.
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1940 } # ac_fn_c_try_link
1941 cat >config.log <<_ACEOF
1942 This file contains any messages produced by compilers while
1943 running configure, to aid debugging if configure makes a mistake.
1945 It was created by $as_me, which was
1946 generated by GNU Autoconf 2.69. Invocation command line was
1948 $ $0 $@
1950 _ACEOF
1951 exec 5>>config.log
1953 cat <<_ASUNAME
1954 ## --------- ##
1955 ## Platform. ##
1956 ## --------- ##
1958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1970 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1975 _ASUNAME
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 $as_echo "PATH: $as_dir"
1983 done
1984 IFS=$as_save_IFS
1986 } >&5
1988 cat >&5 <<_ACEOF
1991 ## ----------- ##
1992 ## Core tests. ##
1993 ## ----------- ##
1995 _ACEOF
1998 # Keep a trace of the command line.
1999 # Strip out --no-create and --no-recursion so they do not pile up.
2000 # Strip out --silent because we don't want to record it for future runs.
2001 # Also quote any args containing shell meta-characters.
2002 # Make two passes to allow for proper duplicate-argument suppression.
2003 ac_configure_args=
2004 ac_configure_args0=
2005 ac_configure_args1=
2006 ac_must_keep_next=false
2007 for ac_pass in 1 2
2009 for ac_arg
2011 case $ac_arg in
2012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2014 | -silent | --silent | --silen | --sile | --sil)
2015 continue ;;
2016 *\'*)
2017 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018 esac
2019 case $ac_pass in
2020 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2022 as_fn_append ac_configure_args1 " '$ac_arg'"
2023 if test $ac_must_keep_next = true; then
2024 ac_must_keep_next=false # Got value, back to normal.
2025 else
2026 case $ac_arg in
2027 *=* | --config-cache | -C | -disable-* | --disable-* \
2028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2030 | -with-* | --with-* | -without-* | --without-* | --x)
2031 case "$ac_configure_args0 " in
2032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2033 esac
2035 -* ) ac_must_keep_next=true ;;
2036 esac
2038 as_fn_append ac_configure_args " '$ac_arg'"
2040 esac
2041 done
2042 done
2043 { ac_configure_args0=; unset ac_configure_args0;}
2044 { ac_configure_args1=; unset ac_configure_args1;}
2046 # When interrupted or exit'd, cleanup temporary files, and complete
2047 # config.log. We remove comments because anyway the quotes in there
2048 # would cause problems or look ugly.
2049 # WARNING: Use '\'' to represent an apostrophe within the trap.
2050 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2051 trap 'exit_status=$?
2052 # Save into config.log some information that might help in debugging.
2054 echo
2056 $as_echo "## ---------------- ##
2057 ## Cache variables. ##
2058 ## ---------------- ##"
2059 echo
2060 # The following way of writing the cache mishandles newlines in values,
2062 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2063 eval ac_val=\$$ac_var
2064 case $ac_val in #(
2065 *${as_nl}*)
2066 case $ac_var in #(
2067 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2069 esac
2070 case $ac_var in #(
2071 _ | IFS | as_nl) ;; #(
2072 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2073 *) { eval $ac_var=; unset $ac_var;} ;;
2074 esac ;;
2075 esac
2076 done
2077 (set) 2>&1 |
2078 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2079 *${as_nl}ac_space=\ *)
2080 sed -n \
2081 "s/'\''/'\''\\\\'\'''\''/g;
2082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2083 ;; #(
2085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2087 esac |
2088 sort
2090 echo
2092 $as_echo "## ----------------- ##
2093 ## Output variables. ##
2094 ## ----------------- ##"
2095 echo
2096 for ac_var in $ac_subst_vars
2098 eval ac_val=\$$ac_var
2099 case $ac_val in
2100 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2101 esac
2102 $as_echo "$ac_var='\''$ac_val'\''"
2103 done | sort
2104 echo
2106 if test -n "$ac_subst_files"; then
2107 $as_echo "## ------------------- ##
2108 ## File substitutions. ##
2109 ## ------------------- ##"
2110 echo
2111 for ac_var in $ac_subst_files
2113 eval ac_val=\$$ac_var
2114 case $ac_val in
2115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2116 esac
2117 $as_echo "$ac_var='\''$ac_val'\''"
2118 done | sort
2119 echo
2122 if test -s confdefs.h; then
2123 $as_echo "## ----------- ##
2124 ## confdefs.h. ##
2125 ## ----------- ##"
2126 echo
2127 cat confdefs.h
2128 echo
2130 test "$ac_signal" != 0 &&
2131 $as_echo "$as_me: caught signal $ac_signal"
2132 $as_echo "$as_me: exit $exit_status"
2133 } >&5
2134 rm -f core *.core core.conftest.* &&
2135 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2136 exit $exit_status
2138 for ac_signal in 1 2 13 15; do
2139 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2140 done
2141 ac_signal=0
2143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2144 rm -f -r conftest* confdefs.h
2146 $as_echo "/* confdefs.h */" > confdefs.h
2148 # Predefined preprocessor variables.
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_NAME "$PACKAGE_NAME"
2152 _ACEOF
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2156 _ACEOF
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2160 _ACEOF
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_STRING "$PACKAGE_STRING"
2164 _ACEOF
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2168 _ACEOF
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_URL "$PACKAGE_URL"
2172 _ACEOF
2175 # Let the site file select an alternate cache file if it wants to.
2176 # Prefer an explicitly selected file to automatically selected ones.
2177 ac_site_file1=NONE
2178 ac_site_file2=NONE
2179 if test -n "$CONFIG_SITE"; then
2180 # We do not want a PATH search for config.site.
2181 case $CONFIG_SITE in #((
2182 -*) ac_site_file1=./$CONFIG_SITE;;
2183 */*) ac_site_file1=$CONFIG_SITE;;
2184 *) ac_site_file1=./$CONFIG_SITE;;
2185 esac
2186 elif test "x$prefix" != xNONE; then
2187 ac_site_file1=$prefix/share/config.site
2188 ac_site_file2=$prefix/etc/config.site
2189 else
2190 ac_site_file1=$ac_default_prefix/share/config.site
2191 ac_site_file2=$ac_default_prefix/etc/config.site
2193 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2195 test "x$ac_site_file" = xNONE && continue
2196 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2198 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2199 sed 's/^/| /' "$ac_site_file" >&5
2200 . "$ac_site_file" \
2201 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2203 as_fn_error $? "failed to load site script $ac_site_file
2204 See \`config.log' for more details" "$LINENO" 5; }
2206 done
2208 if test -r "$cache_file"; then
2209 # Some versions of bash will fail to source /dev/null (special files
2210 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2211 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2213 $as_echo "$as_me: loading cache $cache_file" >&6;}
2214 case $cache_file in
2215 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2216 *) . "./$cache_file";;
2217 esac
2219 else
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2221 $as_echo "$as_me: creating cache $cache_file" >&6;}
2222 >$cache_file
2225 # Check that the precious variables saved in the cache have kept the same
2226 # value.
2227 ac_cache_corrupted=false
2228 for ac_var in $ac_precious_vars; do
2229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2230 eval ac_new_set=\$ac_env_${ac_var}_set
2231 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2232 eval ac_new_val=\$ac_env_${ac_var}_value
2233 case $ac_old_set,$ac_new_set in
2234 set,)
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2237 ac_cache_corrupted=: ;;
2238 ,set)
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2240 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2241 ac_cache_corrupted=: ;;
2242 ,);;
2244 if test "x$ac_old_val" != "x$ac_new_val"; then
2245 # differences in whitespace do not lead to failure.
2246 ac_old_val_w=`echo x $ac_old_val`
2247 ac_new_val_w=`echo x $ac_new_val`
2248 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2250 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2251 ac_cache_corrupted=:
2252 else
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2254 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2255 eval $ac_var=\$ac_old_val
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2258 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2260 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2261 fi;;
2262 esac
2263 # Pass precious variables to config.status.
2264 if test "$ac_new_set" = set; then
2265 case $ac_new_val in
2266 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2267 *) ac_arg=$ac_var=$ac_new_val ;;
2268 esac
2269 case " $ac_configure_args " in
2270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2271 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2272 esac
2274 done
2275 if $ac_cache_corrupted; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2279 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2280 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2282 ## -------------------- ##
2283 ## Main body of script. ##
2284 ## -------------------- ##
2286 ac_ext=c
2287 ac_cpp='$CPP $CPPFLAGS'
2288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299 progname=$0
2300 # if PWD already has a value, it is probably wrong.
2301 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2303 # Export original configure arguments for use by sub-configures.
2304 # Quote arguments with shell meta charatcers.
2305 TOPLEVEL_CONFIGURE_ARGUMENTS=
2306 set -- "$progname" "$@"
2307 for ac_arg
2309 case "$ac_arg" in
2310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2311 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2312 # if the argument is of the form -foo=baz, quote the baz part only
2313 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2314 *) ;;
2315 esac
2316 # Add the quoted argument to the list.
2317 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2318 done
2319 if test "$silent" = yes; then
2320 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2322 # Remove the initial space we just introduced and, as these will be
2323 # expanded by make, quote '$'.
2324 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2327 # Find the build, host, and target systems.
2328 ac_aux_dir=
2329 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2330 if test -f "$ac_dir/install-sh"; then
2331 ac_aux_dir=$ac_dir
2332 ac_install_sh="$ac_aux_dir/install-sh -c"
2333 break
2334 elif test -f "$ac_dir/install.sh"; then
2335 ac_aux_dir=$ac_dir
2336 ac_install_sh="$ac_aux_dir/install.sh -c"
2337 break
2338 elif test -f "$ac_dir/shtool"; then
2339 ac_aux_dir=$ac_dir
2340 ac_install_sh="$ac_aux_dir/shtool install -c"
2341 break
2343 done
2344 if test -z "$ac_aux_dir"; then
2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2348 # These three variables are undocumented and unsupported,
2349 # and are intended to be withdrawn in a future Autoconf release.
2350 # They can cause serious problems if a builder's source tree is in a directory
2351 # whose full name contains unusual characters.
2352 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2353 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2354 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2357 # Make sure we can run config.sub.
2358 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2362 $as_echo_n "checking build system type... " >&6; }
2363 if ${ac_cv_build+:} false; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 ac_build_alias=$build_alias
2367 test "x$ac_build_alias" = x &&
2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2369 test "x$ac_build_alias" = x &&
2370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2371 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2376 $as_echo "$ac_cv_build" >&6; }
2377 case $ac_cv_build in
2378 *-*-*) ;;
2379 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2380 esac
2381 build=$ac_cv_build
2382 ac_save_IFS=$IFS; IFS='-'
2383 set x $ac_cv_build
2384 shift
2385 build_cpu=$1
2386 build_vendor=$2
2387 shift; shift
2388 # Remember, the first character of IFS is used to create $*,
2389 # except with old shells:
2390 build_os=$*
2391 IFS=$ac_save_IFS
2392 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2395 case ${build_alias} in
2396 "") build_noncanonical=${build} ;;
2397 *) build_noncanonical=${build_alias} ;;
2398 esac
2402 case ${host_alias} in
2403 "") host_noncanonical=${build_noncanonical} ;;
2404 *) host_noncanonical=${host_alias} ;;
2405 esac
2409 case ${target_alias} in
2410 "") target_noncanonical=${host_noncanonical} ;;
2411 *) target_noncanonical=${target_alias} ;;
2412 esac
2417 test "$host_noncanonical" = "$target_noncanonical" &&
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_transform_name=s,y,y,
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2423 $as_echo_n "checking host system type... " >&6; }
2424 if ${ac_cv_host+:} false; then :
2425 $as_echo_n "(cached) " >&6
2426 else
2427 if test "x$host_alias" = x; then
2428 ac_cv_host=$ac_cv_build
2429 else
2430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2436 $as_echo "$ac_cv_host" >&6; }
2437 case $ac_cv_host in
2438 *-*-*) ;;
2439 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2440 esac
2441 host=$ac_cv_host
2442 ac_save_IFS=$IFS; IFS='-'
2443 set x $ac_cv_host
2444 shift
2445 host_cpu=$1
2446 host_vendor=$2
2447 shift; shift
2448 # Remember, the first character of IFS is used to create $*,
2449 # except with old shells:
2450 host_os=$*
2451 IFS=$ac_save_IFS
2452 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2456 $as_echo_n "checking target system type... " >&6; }
2457 if ${ac_cv_target+:} false; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 if test "x$target_alias" = x; then
2461 ac_cv_target=$ac_cv_host
2462 else
2463 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2464 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2469 $as_echo "$ac_cv_target" >&6; }
2470 case $ac_cv_target in
2471 *-*-*) ;;
2472 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2473 esac
2474 target=$ac_cv_target
2475 ac_save_IFS=$IFS; IFS='-'
2476 set x $ac_cv_target
2477 shift
2478 target_cpu=$1
2479 target_vendor=$2
2480 shift; shift
2481 # Remember, the first character of IFS is used to create $*,
2482 # except with old shells:
2483 target_os=$*
2484 IFS=$ac_save_IFS
2485 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2488 # The aliases save the names the user supplied, while $host etc.
2489 # will get canonicalized.
2490 test -n "$target_alias" &&
2491 test "$program_prefix$program_suffix$program_transform_name" = \
2492 NONENONEs,x,x, &&
2493 program_prefix=${target_alias}-
2495 test "$program_prefix" != NONE &&
2496 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2497 # Use a double $ so make ignores it.
2498 test "$program_suffix" != NONE &&
2499 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2500 # Double any \ or $.
2501 # By default was `s,x,x', remove it if useless.
2502 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2503 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2507 # Get 'install' or 'install-sh' and its variants.
2508 # Find a good install program. We prefer a C program (faster),
2509 # so one script is as good as another. But avoid the broken or
2510 # incompatible versions:
2511 # SysV /etc/install, /usr/sbin/install
2512 # SunOS /usr/etc/install
2513 # IRIX /sbin/install
2514 # AIX /bin/install
2515 # AmigaOS /C/install, which installs bootblocks on floppy discs
2516 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2517 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2518 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2519 # OS/2's system install, which has a completely different semantic
2520 # ./install, which can be erroneously created by make from ./install.sh.
2521 # Reject install programs that cannot install multiple files.
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2523 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2524 if test -z "$INSTALL"; then
2525 if ${ac_cv_path_install+:} false; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 # Account for people who put trailing slashes in PATH elements.
2534 case $as_dir/ in #((
2535 ./ | .// | /[cC]/* | \
2536 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2537 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2538 /usr/ucb/* ) ;;
2540 # OSF1 and SCO ODT 3.0 have their own names for install.
2541 # Don't use installbsd from OSF since it installs stuff as root
2542 # by default.
2543 for ac_prog in ginstall scoinst install; do
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2546 if test $ac_prog = install &&
2547 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2548 # AIX install. It has an incompatible calling convention.
2550 elif test $ac_prog = install &&
2551 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2552 # program-specific install script used by HP pwplus--don't use.
2554 else
2555 rm -rf conftest.one conftest.two conftest.dir
2556 echo one > conftest.one
2557 echo two > conftest.two
2558 mkdir conftest.dir
2559 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2560 test -s conftest.one && test -s conftest.two &&
2561 test -s conftest.dir/conftest.one &&
2562 test -s conftest.dir/conftest.two
2563 then
2564 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2565 break 3
2569 done
2570 done
2572 esac
2574 done
2575 IFS=$as_save_IFS
2577 rm -rf conftest.one conftest.two conftest.dir
2580 if test "${ac_cv_path_install+set}" = set; then
2581 INSTALL=$ac_cv_path_install
2582 else
2583 # As a last resort, use the slow shell script. Don't cache a
2584 # value for INSTALL within a source directory, because that will
2585 # break other packages using the cache if that directory is
2586 # removed, or if the value is a relative name.
2587 INSTALL=$ac_install_sh
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2591 $as_echo "$INSTALL" >&6; }
2593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2594 # It thinks the first close brace ends the variable substitution.
2595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2597 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2599 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2602 $as_echo_n "checking whether ln works... " >&6; }
2603 if ${acx_cv_prog_LN+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 rm -f conftestdata_t
2607 echo >conftestdata_f
2608 if ln conftestdata_f conftestdata_t 2>/dev/null
2609 then
2610 acx_cv_prog_LN=ln
2611 else
2612 acx_cv_prog_LN=no
2614 rm -f conftestdata_f conftestdata_t
2617 if test $acx_cv_prog_LN = no; then
2618 LN="cp"
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2620 $as_echo "no, using $LN" >&6; }
2621 else
2622 LN="$acx_cv_prog_LN"
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624 $as_echo "yes" >&6; }
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2628 $as_echo_n "checking whether ln -s works... " >&6; }
2629 LN_S=$as_ln_s
2630 if test "$LN_S" = "ln -s"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2632 $as_echo "yes" >&6; }
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2635 $as_echo "no, using $LN_S" >&6; }
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2639 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2640 if ${ac_cv_path_SED+:} false; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2644 for ac_i in 1 2 3 4 5 6 7; do
2645 ac_script="$ac_script$as_nl$ac_script"
2646 done
2647 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2648 { ac_script=; unset ac_script;}
2649 if test -z "$SED"; then
2650 ac_path_SED_found=false
2651 # Loop through the user's path and test for each of PROGNAME-LIST
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_prog in sed gsed; do
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2660 as_fn_executable_p "$ac_path_SED" || continue
2661 # Check for GNU ac_path_SED and select it if it is found.
2662 # Check for GNU $ac_path_SED
2663 case `"$ac_path_SED" --version 2>&1` in
2664 *GNU*)
2665 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2667 ac_count=0
2668 $as_echo_n 0123456789 >"conftest.in"
2669 while :
2671 cat "conftest.in" "conftest.in" >"conftest.tmp"
2672 mv "conftest.tmp" "conftest.in"
2673 cp "conftest.in" "conftest.nl"
2674 $as_echo '' >> "conftest.nl"
2675 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2677 as_fn_arith $ac_count + 1 && ac_count=$as_val
2678 if test $ac_count -gt ${ac_path_SED_max-0}; then
2679 # Best one so far, save it but keep looking for a better one
2680 ac_cv_path_SED="$ac_path_SED"
2681 ac_path_SED_max=$ac_count
2683 # 10*(2^10) chars as input seems more than enough
2684 test $ac_count -gt 10 && break
2685 done
2686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2687 esac
2689 $ac_path_SED_found && break 3
2690 done
2691 done
2692 done
2693 IFS=$as_save_IFS
2694 if test -z "$ac_cv_path_SED"; then
2695 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2697 else
2698 ac_cv_path_SED=$SED
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2703 $as_echo "$ac_cv_path_SED" >&6; }
2704 SED="$ac_cv_path_SED"
2705 rm -f conftest.sed
2707 for ac_prog in gawk mawk nawk awk
2709 # Extract the first word of "$ac_prog", so it can be a program name with args.
2710 set dummy $ac_prog; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_AWK+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test -n "$AWK"; then
2717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2726 ac_cv_prog_AWK="$ac_prog"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2730 done
2731 done
2732 IFS=$as_save_IFS
2736 AWK=$ac_cv_prog_AWK
2737 if test -n "$AWK"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2739 $as_echo "$AWK" >&6; }
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2746 test -n "$AWK" && break
2747 done
2750 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2752 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2753 # a relative path.
2754 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2755 INSTALL="${srcpwd}/install-sh -c"
2758 # Set srcdir to "." if that's what it is.
2759 # This is important for multilib support.
2760 pwd=`${PWDCMD-pwd}`
2761 if test "${pwd}" = "${srcpwd}" ; then
2762 srcdir=.
2765 topsrcdir=$srcpwd
2767 extra_host_args=
2769 ### To add a new directory to the tree, first choose whether it is a target
2770 ### or a host dependent tool. Then put it into the appropriate list
2771 ### (library or tools, host or target), doing a dependency sort.
2773 # Subdirs will be configured in the order listed in build_configdirs,
2774 # configdirs, or target_configdirs; see the serialization section below.
2776 # Dependency sorting is only needed when *configuration* must be done in
2777 # a particular order. In all cases a dependency should be specified in
2778 # the Makefile, whether or not it's implicitly specified here.
2780 # Double entries in build_configdirs, configdirs, or target_configdirs may
2781 # cause circular dependencies and break everything horribly.
2783 # these library is used by various programs built for the build
2784 # environment
2786 build_libs="build-libiberty build-libcpp"
2788 # these tools are built for the build environment
2789 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2791 # these libraries are used by various programs built for the host environment
2793 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2795 # these tools are built for the host environment
2796 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2797 # know that we are building the simulator.
2798 # binutils, gas and ld appear in that order because it makes sense to run
2799 # "make check" in that particular order.
2800 # If --enable-gold is used, "gold" may replace "ld".
2801 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"
2803 # these libraries are built for the target environment, and are built after
2804 # the host libraries and the host tools (which may be a cross compiler)
2805 # Note that libiberty is not a target library.
2806 target_libraries="target-libgcc \
2807 target-libbacktrace \
2808 target-libgloss \
2809 target-newlib \
2810 target-libgomp \
2811 target-liboffloadmic \
2812 target-libhsail-rt \
2813 target-libatomic \
2814 target-libitm \
2815 target-libstdc++-v3 \
2816 target-libsanitizer \
2817 target-libvtv \
2818 target-libssp \
2819 target-libquadmath \
2820 target-libgfortran \
2821 target-libffi \
2822 target-libobjc \
2823 target-libada \
2824 target-libgo"
2826 # these tools are built using the target libraries, and are intended to
2827 # run only in the target environment
2829 # note: any program that *uses* libraries that are in the "target_libraries"
2830 # list belongs in this list.
2832 target_tools="target-rda"
2834 ################################################################################
2836 ## All tools belong in one of the four categories, and are assigned above
2837 ## We assign ${configdirs} this way to remove all embedded newlines. This
2838 ## is important because configure will choke if they ever get through.
2839 ## ${configdirs} is directories we build using the host tools.
2840 ## ${target_configdirs} is directories we build using the target tools.
2841 configdirs=`echo ${host_libs} ${host_tools}`
2842 target_configdirs=`echo ${target_libraries} ${target_tools}`
2843 build_configdirs=`echo ${build_libs} ${build_tools}`
2847 ################################################################################
2849 srcname="gnu development package"
2851 # This gets set non-empty for some net releases of packages.
2852 appdirs=""
2854 # Define is_cross_compiler to save on calls to 'test'.
2855 is_cross_compiler=
2856 if test x"${host}" = x"${target}" ; then
2857 is_cross_compiler=no
2858 else
2859 is_cross_compiler=yes
2862 # Find the build and target subdir names.
2864 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2865 # have matching libraries, they should use host libraries: Makefile.tpl
2866 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2867 # However, they still use the build modules, because the corresponding
2868 # host modules (e.g. bison) are only built for the host when bootstrap
2869 # finishes. So:
2870 # - build_subdir is where we find build modules, and never changes.
2871 # - build_libsubdir is where we find build libraries, and can be overridden.
2873 # Prefix 'build-' so this never conflicts with target_subdir.
2874 build_subdir="build-${build_noncanonical}"
2876 # Check whether --with-build-libsubdir was given.
2877 if test "${with_build_libsubdir+set}" = set; then :
2878 withval=$with_build_libsubdir; build_libsubdir="$withval"
2879 else
2880 build_libsubdir="$build_subdir"
2883 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2884 if ( test $srcdir = . && test -d gcc ) \
2885 || test -d $srcdir/../host-${host_noncanonical}; then
2886 host_subdir="host-${host_noncanonical}"
2887 else
2888 host_subdir=.
2890 # No prefix.
2891 target_subdir=${target_noncanonical}
2893 # Be sure to cover against remnants of an in-tree build.
2894 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2895 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2896 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2899 # Skipdirs are removed silently.
2900 skipdirs=
2901 # Noconfigdirs are removed loudly.
2902 noconfigdirs=""
2904 use_gnu_ld=
2905 # Make sure we don't let GNU ld be added if we didn't want it.
2906 if test x$with_gnu_ld = xno ; then
2907 use_gnu_ld=no
2908 noconfigdirs="$noconfigdirs ld gold"
2911 use_gnu_as=
2912 # Make sure we don't let GNU as be added if we didn't want it.
2913 if test x$with_gnu_as = xno ; then
2914 use_gnu_as=no
2915 noconfigdirs="$noconfigdirs gas"
2918 use_included_zlib=
2920 # Check whether --with-system-zlib was given.
2921 if test "${with_system_zlib+set}" = set; then :
2922 withval=$with_system_zlib;
2925 # Make sure we don't let ZLIB be added if we didn't want it.
2926 if test x$with_system_zlib = xyes ; then
2927 use_included_zlib=no
2928 noconfigdirs="$noconfigdirs zlib"
2932 # Check whether --with-zstd was given.
2933 if test "${with_zstd+set}" = set; then :
2934 withval=$with_zstd;
2938 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2939 # is provided.
2940 if test x$with_system_readline = xyes ; then
2941 noconfigdirs="$noconfigdirs readline"
2944 # some tools are so dependent upon X11 that if we're not building with X,
2945 # it's not even worth trying to configure, much less build, that tool.
2947 case ${with_x} in
2948 yes | "") ;; # the default value for this tree is that X11 is available
2950 skipdirs="${skipdirs} tk itcl libgui"
2951 # We won't be able to build gdbtk without X.
2952 enable_gdbtk=no
2954 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2955 esac
2957 # Some are only suitable for cross toolchains.
2958 # Remove these if host=target.
2959 cross_only="target-libgloss target-newlib target-opcodes"
2961 case $is_cross_compiler in
2962 no) skipdirs="${skipdirs} ${cross_only}" ;;
2963 esac
2965 # If both --with-headers and --with-libs are specified, default to
2966 # --without-newlib.
2967 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2968 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2969 if test x"${with_newlib}" = x ; then
2970 with_newlib=no
2974 # Recognize --with-newlib/--without-newlib.
2975 case ${with_newlib} in
2976 no) skipdirs="${skipdirs} target-newlib" ;;
2977 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2978 esac
2980 # Check whether --enable-as-accelerator-for was given.
2981 if test "${enable_as_accelerator_for+set}" = set; then :
2982 enableval=$enable_as_accelerator_for;
2986 # Check whether --enable-offload-targets was given.
2987 if test "${enable_offload_targets+set}" = set; then :
2988 enableval=$enable_offload_targets;
2989 if test x"$enable_offload_targets" = x; then
2990 as_fn_error $? "no offload targets specified" "$LINENO" 5
2993 else
2994 enable_offload_targets=
2998 # Handle --enable-gold, --enable-ld.
2999 # --disable-gold [--enable-ld]
3000 # Build only ld. Default option.
3001 # --enable-gold [--enable-ld]
3002 # Build both gold and ld. Install gold as "ld.gold", install ld
3003 # as "ld.bfd" and "ld".
3004 # --enable-gold=default [--enable-ld]
3005 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3006 # install ld as "ld.bfd".
3007 # --enable-gold[=default] --disable-ld
3008 # Build only gold, which is then installed as both "ld.gold" and "ld".
3009 # --enable-gold --enable-ld=default
3010 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3011 # and ld.bfd).
3012 # In other words, ld is default
3013 # --enable-gold=default --enable-ld=default
3014 # Error.
3016 default_ld=
3017 # Check whether --enable-gold was given.
3018 if test "${enable_gold+set}" = set; then :
3019 enableval=$enable_gold; ENABLE_GOLD=$enableval
3020 else
3021 ENABLE_GOLD=no
3024 case "${ENABLE_GOLD}" in
3025 yes|default)
3026 # Check for ELF target.
3027 is_elf=no
3028 case "${target}" in
3029 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3030 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3031 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3032 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
3033 case "${target}" in
3034 *-*-linux*aout* | *-*-linux*oldld*)
3037 is_elf=yes
3039 esac
3040 esac
3042 if test "$is_elf" = "yes"; then
3043 # Check for target supported by gold.
3044 case "${target}" in
3045 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3046 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3047 configdirs="$configdirs gold"
3048 if test x${ENABLE_GOLD} = xdefault; then
3049 default_ld=gold
3051 ENABLE_GOLD=yes
3053 esac
3059 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3061 esac
3063 # Check whether --enable-ld was given.
3064 if test "${enable_ld+set}" = set; then :
3065 enableval=$enable_ld; ENABLE_LD=$enableval
3066 else
3067 ENABLE_LD=yes
3071 case "${ENABLE_LD}" in
3072 default)
3073 if test x${default_ld} != x; then
3074 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3077 yes)
3080 if test x${ENABLE_GOLD} != xyes; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3082 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3084 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3087 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3089 esac
3091 # Check whether --enable-gprofng was given.
3092 if test "${enable_gprofng+set}" = set; then :
3093 enableval=$enable_gprofng; enable_gprofng=$enableval
3094 else
3095 enable_gprofng=yes
3098 if test "$enable_gprofng" = "yes"; then
3099 case "${target}" in
3100 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3101 configdirs="$configdirs gprofng"
3103 esac
3107 # PR gas/19109
3108 # Decide the default method for compressing debug sections.
3109 # Provide a configure time option to override our default.
3110 # Check whether --enable-compressed_debug_sections was given.
3111 if test "${enable_compressed_debug_sections+set}" = set; then :
3112 enableval=$enable_compressed_debug_sections;
3113 if test x"$enable_compressed_debug_sections" = xyes; then
3114 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3117 else
3118 enable_compressed_debug_sections=
3122 # Configure extra directories which are host specific
3124 case "${host}" in
3125 *-cygwin*)
3126 configdirs="$configdirs libtermcap" ;;
3127 esac
3129 # A target can indicate whether a language isn't supported for some reason.
3130 # Only spaces may be used in this macro; not newlines or tabs.
3131 unsupported_languages=
3133 # Remove more programs from consideration, based on the host or
3134 # target this usually means that a port of the program doesn't
3135 # exist yet.
3137 case "${host}" in
3138 i[3456789]86-*-msdosdjgpp*)
3139 noconfigdirs="$noconfigdirs tcl tk itcl"
3141 esac
3143 # Default to --disable-year2038 until we can handle differences between
3144 # projects that use gnulib (which understands year 2038) and projects that
3145 # do not (like BFD).
3146 # Check whether --enable-year2038 was given.
3147 if test "${enable_year2038+set}" = set; then :
3148 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3149 else
3150 ENABLE_YEAR2038=no
3153 enable_year2038=
3154 if test "${ENABLE_YEAR2038}" = "no" ; then
3155 enable_year2038=no
3158 # Check whether --enable-libquadmath was given.
3159 if test "${enable_libquadmath+set}" = set; then :
3160 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3161 else
3162 ENABLE_LIBQUADMATH=yes
3165 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3166 noconfigdirs="$noconfigdirs target-libquadmath"
3170 # Check whether --enable-libquadmath-support was given.
3171 if test "${enable_libquadmath_support+set}" = set; then :
3172 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3173 else
3174 ENABLE_LIBQUADMATH_SUPPORT=yes
3177 enable_libquadmath_support=
3178 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3179 enable_libquadmath_support=no
3183 # Check whether --enable-libada was given.
3184 if test "${enable_libada+set}" = set; then :
3185 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3186 else
3187 ENABLE_LIBADA=yes
3190 if test "${ENABLE_LIBADA}" != "yes" ; then
3191 noconfigdirs="$noconfigdirs gnattools"
3194 # Check whether --enable-libssp was given.
3195 if test "${enable_libssp+set}" = set; then :
3196 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3197 else
3198 ENABLE_LIBSSP=yes
3202 # Check whether --enable-libstdcxx was given.
3203 if test "${enable_libstdcxx+set}" = set; then :
3204 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3205 else
3206 ENABLE_LIBSTDCXX=default
3209 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3210 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3213 # If this is accelerator compiler and its target is intelmic we enable
3214 # target liboffloadmic by default. If this is compiler with offloading
3215 # for intelmic we enable host liboffloadmic by default. Otherwise
3216 # liboffloadmic is disabled by default.
3217 # Check whether --enable-liboffloadmic was given.
3218 if test "${enable_liboffloadmic+set}" = set; then :
3219 enableval=$enable_liboffloadmic; case "$enableval" in
3220 no | host | target)
3221 enable_liboffloadmic=$enableval ;;
3223 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3224 esac
3225 else
3226 if test x"$enable_as_accelerator_for" != x; then
3227 case "${target}" in
3228 *-intelmic-* | *-intelmicemul-*)
3229 enable_liboffloadmic=target
3230 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3233 enable_liboffloadmic=no
3235 esac
3236 else
3237 case "${enable_offload_targets}" in
3238 *-intelmic-* | *-intelmicemul-*)
3239 enable_liboffloadmic=host
3240 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3243 enable_liboffloadmic=no
3245 esac
3251 # Enable libgomp by default on hosted POSIX systems, and a few others.
3252 if test x$enable_libgomp = x ; then
3253 case "${target}" in
3254 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3256 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3258 *-*-solaris2* | *-*-hpux11*)
3260 *-*-darwin* | *-*-aix*)
3262 nvptx*-*-*)
3265 noconfigdirs="$noconfigdirs target-libgomp"
3267 esac
3270 # Disable libatomic on unsupported systems.
3271 if test -d ${srcdir}/libatomic; then
3272 if test x$enable_libatomic = x; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3274 $as_echo_n "checking for libatomic support... " >&6; }
3275 if (srcdir=${srcdir}/libatomic; \
3276 . ${srcdir}/configure.tgt; \
3277 test -n "$UNSUPPORTED")
3278 then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 noconfigdirs="$noconfigdirs target-libatomic"
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3289 # Disable liboffloadmic on unsupported systems.
3290 if test -d ${srcdir}/liboffloadmic; then
3291 if test x$enable_liboffloadmic != xno; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3293 $as_echo_n "checking for liboffloadmic support... " >&6; }
3294 if (srcdir=${srcdir}/liboffloadmic; \
3295 . ${srcdir}/configure.tgt; \
3296 test -n "$UNSUPPORTED")
3297 then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 noconfigdirs="$noconfigdirs target-liboffloadmic"
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 $as_echo "yes" >&6; }
3308 # Disable libitm on unsupported systems.
3309 if test -d ${srcdir}/libitm; then
3310 if test x$enable_libitm = x; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3312 $as_echo_n "checking for libitm support... " >&6; }
3313 if (srcdir=${srcdir}/libitm; \
3314 . ${srcdir}/configure.tgt; \
3315 test -n "$UNSUPPORTED")
3316 then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 noconfigdirs="$noconfigdirs target-libitm"
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 $as_echo "yes" >&6; }
3327 # Disable libsanitizer on unsupported systems.
3328 if test -d ${srcdir}/libsanitizer; then
3329 if test x$enable_libsanitizer = x; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3331 $as_echo_n "checking for libsanitizer support... " >&6; }
3332 if (srcdir=${srcdir}/libsanitizer; \
3333 . ${srcdir}/configure.tgt; \
3334 test -n "$UNSUPPORTED")
3335 then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 noconfigdirs="$noconfigdirs target-libsanitizer"
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3346 # Disable libvtv on unsupported systems.
3347 if test -d ${srcdir}/libvtv; then
3348 if test x$enable_libvtv = x; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3350 $as_echo_n "checking for libvtv support... " >&6; }
3351 if (srcdir=${srcdir}/libvtv; \
3352 . ${srcdir}/configure.tgt; \
3353 test "$VTV_SUPPORTED" != "yes")
3354 then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 noconfigdirs="$noconfigdirs target-libvtv"
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360 $as_echo "yes" >&6; }
3366 # Disable libhsail-rt on unsupported systems.
3367 if test -d ${srcdir}/libhsail-rt; then
3368 if test x$enable_libhsail_rt = x; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3370 $as_echo_n "checking for libhsail-rt support... " >&6; }
3371 if (srcdir=${srcdir}/libhsail-rt; \
3372 . ${srcdir}/configure.tgt; \
3373 test -n "$UNSUPPORTED")
3374 then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 unsupported_languages="$unsupported_languages brig"
3378 # This implicitly disables also target-libhsail-rt as it won't
3379 # get added to the build without BRIG FE.
3380 else
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3382 $as_echo "yes" >&6; }
3388 # Disable libquadmath for some systems.
3389 case "${target}" in
3390 avr-*-*)
3391 noconfigdirs="$noconfigdirs target-libquadmath"
3393 # libquadmath is unused on AIX and libquadmath build process use of
3394 # LD_LIBRARY_PATH can break AIX bootstrap.
3395 powerpc-*-aix* | rs6000-*-aix*)
3396 noconfigdirs="$noconfigdirs target-libquadmath"
3398 esac
3400 # Disable libssp for some systems.
3401 case "${target}" in
3402 avr-*-*)
3403 # No hosted I/O support.
3404 noconfigdirs="$noconfigdirs target-libssp"
3406 powerpc-*-aix* | rs6000-*-aix*)
3407 noconfigdirs="$noconfigdirs target-libssp"
3409 rl78-*-*)
3410 # libssp uses a misaligned load to trigger a fault, but the RL78
3411 # doesn't fault for those - instead, it gives a build-time error
3412 # for explicit misaligned loads.
3413 noconfigdirs="$noconfigdirs target-libssp"
3415 visium-*-*)
3416 # No hosted I/O support.
3417 noconfigdirs="$noconfigdirs target-libssp"
3419 esac
3421 # Disable libstdc++-v3 for some systems.
3422 # Allow user to override this if they pass --enable-libstdc++-v3
3423 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3424 case "${target}" in
3425 *-*-vxworks*)
3426 # VxWorks uses the Dinkumware C++ library.
3427 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3429 arm*-wince-pe*)
3430 # the C++ libraries don't build on top of CE's C libraries
3431 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3433 avr-*-*)
3434 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3436 ft32-*-*)
3437 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3439 esac
3442 # Disable Fortran for some systems.
3443 case "${target}" in
3444 mmix-*-*)
3445 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3446 unsupported_languages="$unsupported_languages fortran"
3448 esac
3450 # Disable libffi for some systems.
3451 case "${target}" in
3452 powerpc-*-darwin*)
3454 i[3456789]86-*-darwin*)
3456 x86_64-*-darwin[912]*)
3458 *-*-darwin*)
3459 noconfigdirs="$noconfigdirs target-libffi"
3461 *-*-netware*)
3462 noconfigdirs="$noconfigdirs target-libffi"
3464 *-*-phoenix*)
3465 noconfigdirs="$noconfigdirs target-libffi"
3467 *-*-rtems*)
3468 noconfigdirs="$noconfigdirs target-libffi"
3470 *-*-tpf*)
3471 noconfigdirs="$noconfigdirs target-libffi"
3473 *-*-uclinux*)
3474 noconfigdirs="$noconfigdirs target-libffi"
3476 *-*-vxworks*)
3477 noconfigdirs="$noconfigdirs target-libffi"
3479 aarch64*-*-freebsd*)
3480 noconfigdirs="$noconfigdirs target-libffi"
3482 alpha*-*-*vms*)
3483 noconfigdirs="$noconfigdirs target-libffi"
3485 arm*-*-freebsd*)
3486 noconfigdirs="$noconfigdirs target-libffi"
3488 arm-wince-pe)
3489 noconfigdirs="$noconfigdirs target-libffi"
3491 cris-*-* | crisv32-*-*)
3492 case "${target}" in
3493 *-*-linux*)
3495 *) # See PR46792 regarding target-libffi.
3496 noconfigdirs="$noconfigdirs target-libffi";;
3497 esac
3499 hppa*64*-*-hpux*)
3500 noconfigdirs="$noconfigdirs target-libffi"
3502 hppa*-hp-hpux11*)
3504 hppa*-*-hpux*)
3505 noconfigdirs="$noconfigdirs target-libffi"
3507 ia64*-*-*vms*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3510 i[3456789]86-w64-mingw*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3513 i[3456789]86-*-mingw*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3516 x86_64-*-mingw*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3519 mmix-*-*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3522 powerpc-*-aix*)
3524 rs6000-*-aix*)
3526 ft32-*-*)
3527 noconfigdirs="$noconfigdirs target-libffi"
3529 *-*-lynxos*)
3530 noconfigdirs="$noconfigdirs target-libffi"
3532 esac
3534 # Disable the go frontend on systems where it is known to not work. Please keep
3535 # this in sync with contrib/config-list.mk.
3536 case "${target}" in
3537 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3538 unsupported_languages="$unsupported_languages go"
3540 esac
3542 # Only allow gdbserver on some systems.
3543 if test -d ${srcdir}/gdbserver; then
3544 if test x$enable_gdbserver = x; then
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3546 $as_echo_n "checking for gdbserver support... " >&6; }
3547 if (srcdir=${srcdir}/gdbserver; \
3548 . ${srcdir}/configure.srv; \
3549 test -n "$UNSUPPORTED")
3550 then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 noconfigdirs="$noconfigdirs gdbserver"
3554 else
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3556 $as_echo "yes" >&6; }
3561 # Disable libgo for some systems where it is known to not work.
3562 # For testing, you can easily override this with --enable-libgo.
3563 if test x$enable_libgo = x; then
3564 case "${target}" in
3565 *-*-darwin*)
3566 # PR 46986
3567 noconfigdirs="$noconfigdirs target-libgo"
3569 *-*-cygwin* | *-*-mingw*)
3570 noconfigdirs="$noconfigdirs target-libgo"
3572 esac
3575 # Default libgloss CPU subdirectory.
3576 libgloss_dir="$target_cpu"
3578 case "${target}" in
3579 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3580 libgloss_dir=wince
3582 aarch64*-*-* )
3583 libgloss_dir=aarch64
3585 arm*-*-*)
3586 libgloss_dir=arm
3588 cris-*-* | crisv32-*-*)
3589 libgloss_dir=cris
3591 hppa*-*-*)
3592 libgloss_dir=pa
3594 i[3456789]86-*-*)
3595 libgloss_dir=i386
3597 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3598 libgloss_dir=m68hc11
3600 m68*-*-* | fido-*-*)
3601 libgloss_dir=m68k
3603 mips*-*-*)
3604 libgloss_dir=mips
3606 powerpc*-*-*)
3607 libgloss_dir=rs6000
3609 sparc*-*-*)
3610 libgloss_dir=sparc
3612 esac
3614 # Disable newlib and libgloss for various target OSes.
3615 case "${target}" in
3616 alpha*-dec-osf*)
3617 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3619 i[3456789]86-*-linux*)
3620 # This section makes it possible to build newlib natively on linux.
3621 # If we are using a cross compiler then don't configure newlib.
3622 if test x${is_cross_compiler} != xno ; then
3623 noconfigdirs="$noconfigdirs target-newlib"
3625 noconfigdirs="$noconfigdirs target-libgloss"
3626 # If we are not using a cross compiler, do configure newlib.
3627 # Note however, that newlib will only be configured in this situation
3628 # if the --with-newlib option has been given, because otherwise
3629 # 'target-newlib' will appear in skipdirs.
3631 i[3456789]86-*-rdos*)
3632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3634 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637 sparc-*-sunos4*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 *-*-aix*)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643 *-*-beos*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 *-*-chorusos)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 *-*-dragonfly*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 *-*-freebsd*)
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 *-*-lynxos*)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 *-*-mingw*)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 *-*-netbsd*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667 *-*-netware*)
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670 *-*-tpf*)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 *-*-uclinux*)
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 *-*-vxworks*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679 esac
3681 case "${target}" in
3682 *-*-chorusos)
3684 aarch64-*-darwin*)
3685 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3686 noconfigdirs="$noconfigdirs sim target-rda"
3688 arm-*-darwin*)
3689 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3690 noconfigdirs="$noconfigdirs sim target-rda"
3692 powerpc-*-darwin*)
3693 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3694 noconfigdirs="$noconfigdirs sim target-rda"
3696 i[3456789]86-*-darwin*)
3697 noconfigdirs="$noconfigdirs ld gprof"
3698 noconfigdirs="$noconfigdirs sim target-rda"
3700 x86_64-*-darwin[912]*)
3701 noconfigdirs="$noconfigdirs ld gas gprof"
3702 noconfigdirs="$noconfigdirs sim target-rda"
3704 *-*-darwin*)
3705 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3706 noconfigdirs="$noconfigdirs sim target-rda"
3708 *-*-dragonfly*)
3710 *-*-freebsd*)
3711 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3712 && test -f /usr/local/include/gmp.h; then
3713 with_gmp=/usr/local
3716 *-*-kaos*)
3717 # Remove unsupported stuff on all kaOS configurations.
3718 noconfigdirs="$noconfigdirs target-libgloss"
3720 *-*-netbsd*)
3722 *-*-netware*)
3724 *-*-phoenix*)
3725 noconfigdirs="$noconfigdirs target-libgloss"
3727 *-*-rtems*)
3728 noconfigdirs="$noconfigdirs target-libgloss"
3730 # The tpf target doesn't support gdb yet.
3731 *-*-tpf*)
3732 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3734 *-*-uclinux*)
3735 noconfigdirs="$noconfigdirs target-rda"
3737 *-*-vxworks*)
3739 alpha*-dec-osf*)
3740 # ld works, but does not support shared libraries.
3741 # gas doesn't generate exception information.
3742 noconfigdirs="$noconfigdirs gas ld"
3744 alpha*-*-*vms*)
3745 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3747 alpha*-*-*)
3748 # newlib is not 64 bit ready
3749 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3751 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3752 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3754 arc*-*-*)
3755 noconfigdirs="$noconfigdirs sim"
3757 arm-*-pe*)
3758 noconfigdirs="$noconfigdirs target-libgloss"
3760 arm-*-riscix*)
3761 noconfigdirs="$noconfigdirs ld target-libgloss"
3763 avr-*-*)
3764 if test x${with_avrlibc} != xno; then
3765 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3768 c4x-*-* | tic4x-*-*)
3769 noconfigdirs="$noconfigdirs target-libgloss"
3771 tic54x-*-*)
3772 noconfigdirs="$noconfigdirs target-libgloss gdb"
3774 d10v-*-*)
3775 noconfigdirs="$noconfigdirs target-libgloss"
3777 d30v-*-*)
3778 noconfigdirs="$noconfigdirs gdb"
3780 fr30-*-elf*)
3781 noconfigdirs="$noconfigdirs gdb"
3783 ft32-*-*)
3784 noconfigdirs="$noconfigdirs target-rda gprof"
3786 moxie-*-*)
3787 noconfigdirs="$noconfigdirs"
3789 h8300*-*-*)
3790 noconfigdirs="$noconfigdirs target-libgloss"
3792 h8500-*-*)
3793 noconfigdirs="$noconfigdirs target-libgloss"
3795 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3797 hppa*64*-*-hpux*)
3798 noconfigdirs="$noconfigdirs gdb"
3800 hppa*-*-hpux11*)
3801 noconfigdirs="$noconfigdirs gdb ld"
3803 hppa*64*-*-linux*)
3805 hppa*-*-linux*)
3807 hppa*-*-*elf* | \
3808 hppa*-*-lites* | \
3809 hppa*-*-openbsd* | \
3810 hppa*64*-*-*)
3812 hppa*-*-pro*)
3814 hppa*-*-*)
3815 noconfigdirs="$noconfigdirs ld"
3817 i960-*-*)
3818 noconfigdirs="$noconfigdirs gdb"
3820 ia64*-*-elf*)
3821 # No gdb support yet.
3822 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3824 ia64*-**-hpux*)
3825 # No ld support yet.
3826 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3828 ia64*-*-*vms*)
3829 # No ld support yet.
3830 noconfigdirs="$noconfigdirs libgui itcl ld"
3832 i[3456789]86-w64-mingw*)
3834 i[3456789]86-*-mingw*)
3835 target_configdirs="$target_configdirs target-winsup"
3837 *-*-cygwin*)
3838 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3839 noconfigdirs="$noconfigdirs target-libgloss"
3840 # always build newlib if winsup directory is present.
3841 if test -d "$srcdir/winsup/cygwin"; then
3842 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3843 elif test -d "$srcdir/newlib"; then
3844 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3847 i[3456789]86-*-pe)
3848 noconfigdirs="$noconfigdirs target-libgloss"
3850 i[3456789]86-*-sco3.2v5*)
3851 # The linker does not yet know about weak symbols in COFF,
3852 # and is not configured to handle mixed ELF and COFF.
3853 noconfigdirs="$noconfigdirs ld target-libgloss"
3855 i[3456789]86-*-sco*)
3856 noconfigdirs="$noconfigdirs gprof target-libgloss"
3858 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3859 noconfigdirs="$noconfigdirs target-libgloss"
3861 i[3456789]86-*-sysv4*)
3862 noconfigdirs="$noconfigdirs target-libgloss"
3864 i[3456789]86-*-beos*)
3865 noconfigdirs="$noconfigdirs gdb"
3867 i[3456789]86-*-rdos*)
3868 noconfigdirs="$noconfigdirs gdb"
3870 mmix-*-*)
3871 noconfigdirs="$noconfigdirs gdb"
3873 mt-*-*)
3874 noconfigdirs="$noconfigdirs sim"
3876 nfp-*-*)
3877 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3878 noconfigdirs="$noconfigdirs $target_libraries"
3880 pdp11-*-*)
3881 noconfigdirs="$noconfigdirs gdb gprof"
3883 powerpc-*-aix*)
3884 # copied from rs6000-*-* entry
3885 noconfigdirs="$noconfigdirs gprof"
3887 powerpc*-*-winnt* | powerpc*-*-pe*)
3888 target_configdirs="$target_configdirs target-winsup"
3889 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3890 # always build newlib.
3891 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3893 # This is temporary until we can link against shared libraries
3894 powerpcle-*-solaris*)
3895 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3897 powerpc-*-beos*)
3898 noconfigdirs="$noconfigdirs gdb"
3900 rs6000-*-lynxos*)
3901 noconfigdirs="$noconfigdirs gprof"
3903 rs6000-*-aix*)
3904 noconfigdirs="$noconfigdirs gprof"
3906 rs6000-*-*)
3907 noconfigdirs="$noconfigdirs gprof"
3909 m68k-apollo-*)
3910 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3912 microblaze*)
3913 noconfigdirs="$noconfigdirs gprof"
3915 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3916 if test x$with_newlib = xyes; then
3917 noconfigdirs="$noconfigdirs gprof"
3920 mips*-*-irix5*)
3921 noconfigdirs="$noconfigdirs gprof target-libgloss"
3923 mips*-*-irix6*)
3924 noconfigdirs="$noconfigdirs gprof target-libgloss"
3926 mips*-*-bsd*)
3927 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3929 mips*-*-linux*)
3931 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3932 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3933 noconfigdirs="$noconfigdirs ld gas gprof"
3935 mips*-*-*)
3936 noconfigdirs="$noconfigdirs gprof"
3938 nvptx*-*-*)
3939 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3941 sh-*-*)
3942 case "${target}" in
3943 sh*-*-elf)
3946 noconfigdirs="$noconfigdirs target-libgloss" ;;
3947 esac
3949 sparc-*-sunos4*)
3950 if test x${is_cross_compiler} = xno ; then
3951 use_gnu_ld=no
3954 tic6x-*-*)
3955 noconfigdirs="$noconfigdirs sim"
3957 tilepro*-*-* | tilegx*-*-*)
3958 noconfigdirs="$noconfigdirs sim"
3960 v810-*-*)
3961 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3963 vax-*-*)
3964 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3966 wasm32-*-*)
3967 noconfigdirs="$noconfigdirs ld"
3969 esac
3971 # If we aren't building newlib, then don't build libgloss, since libgloss
3972 # depends upon some newlib header files.
3973 case "${noconfigdirs}" in
3974 *target-libgloss*) ;;
3975 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3976 esac
3978 # Work in distributions that contain no compiler tools, like Autoconf.
3979 host_makefile_frag=/dev/null
3980 if test -d ${srcdir}/config ; then
3981 case "${host}" in
3982 i[3456789]86-*-msdosdjgpp*)
3983 host_makefile_frag="config/mh-djgpp"
3985 *-cygwin*)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3988 $as_echo_n "checking to see if cat works as expected... " >&6; }
3989 echo a >cygwin-cat-check
3990 if test `cat cygwin-cat-check` = a ; then
3991 rm cygwin-cat-check
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3993 $as_echo "yes" >&6; }
3994 else
3995 rm cygwin-cat-check
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
3998 as_fn_error $? "The cat command does not ignore carriage return characters.
3999 Please either mount the build directory in binary mode or run the following
4000 commands before running any configure script:
4001 set -o igncr
4002 export SHELLOPTS
4003 " "$LINENO" 5
4006 host_makefile_frag="config/mh-cygwin"
4008 *-mingw*)
4009 host_makefile_frag="config/mh-mingw"
4011 alpha*-linux*)
4012 host_makefile_frag="config/mh-alpha-linux"
4014 hppa*-hp-hpux10*)
4015 host_makefile_frag="config/mh-pa-hpux10"
4017 hppa*-hp-hpux*)
4018 host_makefile_frag="config/mh-pa"
4020 hppa*-*)
4021 host_makefile_frag="config/mh-pa"
4023 *-*-darwin*)
4024 host_makefile_frag="config/mh-darwin"
4026 powerpc-*-aix*)
4027 host_makefile_frag="config/mh-ppc-aix"
4029 rs6000-*-aix*)
4030 host_makefile_frag="config/mh-ppc-aix"
4032 esac
4035 if test "${build}" != "${host}" ; then
4036 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4037 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4038 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4039 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4040 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4041 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4042 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4043 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4044 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4045 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4046 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4047 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4048 else
4049 AR_FOR_BUILD="\$(AR)"
4050 AS_FOR_BUILD="\$(AS)"
4051 CC_FOR_BUILD="\$(CC)"
4052 CXX_FOR_BUILD="\$(CXX)"
4053 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4054 GOC_FOR_BUILD="\$(GOC)"
4055 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4056 LD_FOR_BUILD="\$(LD)"
4057 NM_FOR_BUILD="\$(NM)"
4058 RANLIB_FOR_BUILD="\$(RANLIB)"
4059 WINDRES_FOR_BUILD="\$(WINDRES)"
4060 WINDMC_FOR_BUILD="\$(WINDMC)"
4063 ac_ext=c
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068 if test -n "$ac_tool_prefix"; then
4069 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4070 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072 $as_echo_n "checking for $ac_word... " >&6; }
4073 if ${ac_cv_prog_CC+:} false; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 if test -n "$CC"; then
4077 ac_cv_prog_CC="$CC" # Let the user override the test.
4078 else
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4090 done
4091 done
4092 IFS=$as_save_IFS
4096 CC=$ac_cv_prog_CC
4097 if test -n "$CC"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 $as_echo "$CC" >&6; }
4100 else
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4107 if test -z "$ac_cv_prog_CC"; then
4108 ac_ct_CC=$CC
4109 # Extract the first word of "gcc", so it can be a program name with args.
4110 set dummy gcc; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -n "$ac_ct_CC"; then
4117 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_ac_ct_CC="gcc"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4130 done
4131 done
4132 IFS=$as_save_IFS
4136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4137 if test -n "$ac_ct_CC"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4139 $as_echo "$ac_ct_CC" >&6; }
4140 else
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4145 if test "x$ac_ct_CC" = x; then
4146 CC=""
4147 else
4148 case $cross_compiling:$ac_tool_warned in
4149 yes:)
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4152 ac_tool_warned=yes ;;
4153 esac
4154 CC=$ac_ct_CC
4156 else
4157 CC="$ac_cv_prog_CC"
4160 if test -z "$CC"; then
4161 if test -n "$ac_tool_prefix"; then
4162 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4163 set dummy ${ac_tool_prefix}cc; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if ${ac_cv_prog_CC+:} false; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test -n "$CC"; then
4170 ac_cv_prog_CC="$CC" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_CC="${ac_tool_prefix}cc"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4183 done
4184 done
4185 IFS=$as_save_IFS
4189 CC=$ac_cv_prog_CC
4190 if test -n "$CC"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4192 $as_echo "$CC" >&6; }
4193 else
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4201 if test -z "$CC"; then
4202 # Extract the first word of "cc", so it can be a program name with args.
4203 set dummy cc; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if ${ac_cv_prog_CC+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$CC"; then
4210 ac_cv_prog_CC="$CC" # Let the user override the test.
4211 else
4212 ac_prog_rejected=no
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4221 ac_prog_rejected=yes
4222 continue
4224 ac_cv_prog_CC="cc"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4228 done
4229 done
4230 IFS=$as_save_IFS
4232 if test $ac_prog_rejected = yes; then
4233 # We found a bogon in the path, so make sure we never use it.
4234 set dummy $ac_cv_prog_CC
4235 shift
4236 if test $# != 0; then
4237 # We chose a different compiler from the bogus one.
4238 # However, it has the same basename, so the bogon will be chosen
4239 # first if we set CC to just the basename; use the full file name.
4240 shift
4241 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4246 CC=$ac_cv_prog_CC
4247 if test -n "$CC"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4249 $as_echo "$CC" >&6; }
4250 else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4257 if test -z "$CC"; then
4258 if test -n "$ac_tool_prefix"; then
4259 for ac_prog in cl.exe
4261 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4262 set dummy $ac_tool_prefix$ac_prog; 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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4282 done
4283 done
4284 IFS=$as_save_IFS
4288 CC=$ac_cv_prog_CC
4289 if test -n "$CC"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4291 $as_echo "$CC" >&6; }
4292 else
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4298 test -n "$CC" && break
4299 done
4301 if test -z "$CC"; then
4302 ac_ct_CC=$CC
4303 for ac_prog in cl.exe
4305 # Extract the first word of "$ac_prog", so it can be a program name with args.
4306 set dummy $ac_prog; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$ac_ct_CC"; then
4313 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_prog_ac_ct_CC="$ac_prog"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4326 done
4327 done
4328 IFS=$as_save_IFS
4332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4333 if test -n "$ac_ct_CC"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4335 $as_echo "$ac_ct_CC" >&6; }
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4342 test -n "$ac_ct_CC" && break
4343 done
4345 if test "x$ac_ct_CC" = x; then
4346 CC=""
4347 else
4348 case $cross_compiling:$ac_tool_warned in
4349 yes:)
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4352 ac_tool_warned=yes ;;
4353 esac
4354 CC=$ac_ct_CC
4361 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4363 as_fn_error $? "no acceptable C compiler found in \$PATH
4364 See \`config.log' for more details" "$LINENO" 5; }
4366 # Provide some information about the compiler.
4367 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4368 set X $ac_compile
4369 ac_compiler=$2
4370 for ac_option in --version -v -V -qversion; do
4371 { { ac_try="$ac_compiler $ac_option >&5"
4372 case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4379 ac_status=$?
4380 if test -s conftest.err; then
4381 sed '10a\
4382 ... rest of stderr output deleted ...
4383 10q' conftest.err >conftest.er1
4384 cat conftest.er1 >&5
4386 rm -f conftest.er1 conftest.err
4387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; }
4389 done
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4395 main ()
4399 return 0;
4401 _ACEOF
4402 ac_clean_files_save=$ac_clean_files
4403 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4404 # Try to create an executable without -o first, disregard a.out.
4405 # It will help us diagnose broken compilers, and finding out an intuition
4406 # of exeext.
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4408 $as_echo_n "checking whether the C compiler works... " >&6; }
4409 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4411 # The possible output files:
4412 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4414 ac_rmfiles=
4415 for ac_file in $ac_files
4417 case $ac_file in
4418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4419 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4420 esac
4421 done
4422 rm -f $ac_rmfiles
4424 if { { ac_try="$ac_link_default"
4425 case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_link_default") 2>&5
4432 ac_status=$?
4433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434 test $ac_status = 0; }; then :
4435 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4436 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4437 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4438 # so that the user can short-circuit this test for compilers unknown to
4439 # Autoconf.
4440 for ac_file in $ac_files ''
4442 test -f "$ac_file" || continue
4443 case $ac_file in
4444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4446 [ab].out )
4447 # We found the default executable, but exeext='' is most
4448 # certainly right.
4449 break;;
4450 *.* )
4451 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4452 then :; else
4453 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4455 # We set ac_cv_exeext here because the later test for it is not
4456 # safe: cross compilers may not add the suffix if given an `-o'
4457 # argument, so we may need to know it at that point already.
4458 # Even if this section looks crufty: it has the advantage of
4459 # actually working.
4460 break;;
4462 break;;
4463 esac
4464 done
4465 test "$ac_cv_exeext" = no && ac_cv_exeext=
4467 else
4468 ac_file=''
4470 if test -z "$ac_file"; then :
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 $as_echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 as_fn_error 77 "C compiler cannot create executables
4479 See \`config.log' for more details" "$LINENO" 5; }
4480 else
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4482 $as_echo "yes" >&6; }
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4485 $as_echo_n "checking for C compiler default output file name... " >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4487 $as_echo "$ac_file" >&6; }
4488 ac_exeext=$ac_cv_exeext
4490 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4491 ac_clean_files=$ac_clean_files_save
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4493 $as_echo_n "checking for suffix of executables... " >&6; }
4494 if { { ac_try="$ac_link"
4495 case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_link") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; then :
4505 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4506 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4507 # work properly (i.e., refer to `conftest.exe'), while it won't with
4508 # `rm'.
4509 for ac_file in conftest.exe conftest conftest.*; do
4510 test -f "$ac_file" || continue
4511 case $ac_file in
4512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4513 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4514 break;;
4515 * ) break;;
4516 esac
4517 done
4518 else
4519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4521 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4522 See \`config.log' for more details" "$LINENO" 5; }
4524 rm -f conftest conftest$ac_cv_exeext
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4526 $as_echo "$ac_cv_exeext" >&6; }
4528 rm -f conftest.$ac_ext
4529 EXEEXT=$ac_cv_exeext
4530 ac_exeext=$EXEEXT
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4533 #include <stdio.h>
4535 main ()
4537 FILE *f = fopen ("conftest.out", "w");
4538 return ferror (f) || fclose (f) != 0;
4541 return 0;
4543 _ACEOF
4544 ac_clean_files="$ac_clean_files conftest.out"
4545 # Check that the compiler produces executables we can run. If not, either
4546 # the compiler is broken, or we cross compile.
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4548 $as_echo_n "checking whether we are cross compiling... " >&6; }
4549 if test "$cross_compiling" != yes; then
4550 { { ac_try="$ac_link"
4551 case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557 (eval "$ac_link") 2>&5
4558 ac_status=$?
4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560 test $ac_status = 0; }
4561 if { ac_try='./conftest$ac_cv_exeext'
4562 { { case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565 esac
4566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567 $as_echo "$ac_try_echo"; } >&5
4568 (eval "$ac_try") 2>&5
4569 ac_status=$?
4570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4571 test $ac_status = 0; }; }; then
4572 cross_compiling=no
4573 else
4574 if test "$cross_compiling" = maybe; then
4575 cross_compiling=yes
4576 else
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error $? "cannot run C compiled programs.
4580 If you meant to cross compile, use \`--host'.
4581 See \`config.log' for more details" "$LINENO" 5; }
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4586 $as_echo "$cross_compiling" >&6; }
4588 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4589 ac_clean_files=$ac_clean_files_save
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4591 $as_echo_n "checking for suffix of object files... " >&6; }
4592 if ${ac_cv_objext+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4599 main ()
4603 return 0;
4605 _ACEOF
4606 rm -f conftest.o conftest.obj
4607 if { { ac_try="$ac_compile"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614 (eval "$ac_compile") 2>&5
4615 ac_status=$?
4616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617 test $ac_status = 0; }; then :
4618 for ac_file in conftest.o conftest.obj conftest.*; do
4619 test -f "$ac_file" || continue;
4620 case $ac_file in
4621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4622 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4623 break;;
4624 esac
4625 done
4626 else
4627 $as_echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4632 as_fn_error $? "cannot compute suffix of object files: cannot compile
4633 See \`config.log' for more details" "$LINENO" 5; }
4635 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4638 $as_echo "$ac_cv_objext" >&6; }
4639 OBJEXT=$ac_cv_objext
4640 ac_objext=$OBJEXT
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4642 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4643 if ${ac_cv_c_compiler_gnu+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4650 main ()
4652 #ifndef __GNUC__
4653 choke me
4654 #endif
4657 return 0;
4659 _ACEOF
4660 if ac_fn_c_try_compile "$LINENO"; then :
4661 ac_compiler_gnu=yes
4662 else
4663 ac_compiler_gnu=no
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4671 if test $ac_compiler_gnu = yes; then
4672 GCC=yes
4673 else
4674 GCC=
4676 ac_test_CFLAGS=${CFLAGS+set}
4677 ac_save_CFLAGS=$CFLAGS
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4679 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4680 if ${ac_cv_prog_cc_g+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 ac_save_c_werror_flag=$ac_c_werror_flag
4684 ac_c_werror_flag=yes
4685 ac_cv_prog_cc_g=no
4686 CFLAGS="-g"
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4691 main ()
4695 return 0;
4697 _ACEOF
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 ac_cv_prog_cc_g=yes
4700 else
4701 CFLAGS=""
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4706 main ()
4710 return 0;
4712 _ACEOF
4713 if ac_fn_c_try_compile "$LINENO"; then :
4715 else
4716 ac_c_werror_flag=$ac_save_c_werror_flag
4717 CFLAGS="-g"
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4722 main ()
4726 return 0;
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_cv_prog_cc_g=yes
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 ac_c_werror_flag=$ac_save_c_werror_flag
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4740 $as_echo "$ac_cv_prog_cc_g" >&6; }
4741 if test "$ac_test_CFLAGS" = set; then
4742 CFLAGS=$ac_save_CFLAGS
4743 elif test $ac_cv_prog_cc_g = yes; then
4744 if test "$GCC" = yes; then
4745 CFLAGS="-g -O2"
4746 else
4747 CFLAGS="-g"
4749 else
4750 if test "$GCC" = yes; then
4751 CFLAGS="-O2"
4752 else
4753 CFLAGS=
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4757 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4758 if ${ac_cv_prog_cc_c89+:} false; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 ac_cv_prog_cc_c89=no
4762 ac_save_CC=$CC
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765 #include <stdarg.h>
4766 #include <stdio.h>
4767 struct stat;
4768 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4769 struct buf { int x; };
4770 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4771 static char *e (p, i)
4772 char **p;
4773 int i;
4775 return p[i];
4777 static char *f (char * (*g) (char **, int), char **p, ...)
4779 char *s;
4780 va_list v;
4781 va_start (v,p);
4782 s = g (p, va_arg (v,int));
4783 va_end (v);
4784 return s;
4787 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4788 function prototypes and stuff, but not '\xHH' hex character constants.
4789 These don't provoke an error unfortunately, instead are silently treated
4790 as 'x'. The following induces an error, until -std is added to get
4791 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4792 array size at least. It's necessary to write '\x00'==0 to get something
4793 that's true only with -std. */
4794 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4796 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4797 inside strings and character constants. */
4798 #define FOO(x) 'x'
4799 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4801 int test (int i, double x);
4802 struct s1 {int (*f) (int a);};
4803 struct s2 {int (*f) (double a);};
4804 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4805 int argc;
4806 char **argv;
4808 main ()
4810 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4812 return 0;
4814 _ACEOF
4815 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4816 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4818 CC="$ac_save_CC $ac_arg"
4819 if ac_fn_c_try_compile "$LINENO"; then :
4820 ac_cv_prog_cc_c89=$ac_arg
4822 rm -f core conftest.err conftest.$ac_objext
4823 test "x$ac_cv_prog_cc_c89" != "xno" && break
4824 done
4825 rm -f conftest.$ac_ext
4826 CC=$ac_save_CC
4829 # AC_CACHE_VAL
4830 case "x$ac_cv_prog_cc_c89" in
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4833 $as_echo "none needed" >&6; } ;;
4834 xno)
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4836 $as_echo "unsupported" >&6; } ;;
4838 CC="$CC $ac_cv_prog_cc_c89"
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4840 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4841 esac
4842 if test "x$ac_cv_prog_cc_c89" != xno; then :
4846 ac_ext=c
4847 ac_cpp='$CPP $CPPFLAGS'
4848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4853 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4854 if ${ac_cv_prog_cc_c99+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 ac_cv_prog_cc_c99=no
4858 ac_save_CC=$CC
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861 #include <stdarg.h>
4862 #include <stdbool.h>
4863 #include <stdlib.h>
4864 #include <wchar.h>
4865 #include <stdio.h>
4867 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4868 #define debug(...) fprintf (stderr, __VA_ARGS__)
4869 #define showlist(...) puts (#__VA_ARGS__)
4870 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4871 static void
4872 test_varargs_macros (void)
4874 int x = 1234;
4875 int y = 5678;
4876 debug ("Flag");
4877 debug ("X = %d\n", x);
4878 showlist (The first, second, and third items.);
4879 report (x>y, "x is %d but y is %d", x, y);
4882 // Check long long types.
4883 #define BIG64 18446744073709551615ull
4884 #define BIG32 4294967295ul
4885 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4886 #if !BIG_OK
4887 your preprocessor is broken;
4888 #endif
4889 #if BIG_OK
4890 #else
4891 your preprocessor is broken;
4892 #endif
4893 static long long int bignum = -9223372036854775807LL;
4894 static unsigned long long int ubignum = BIG64;
4896 struct incomplete_array
4898 int datasize;
4899 double data[];
4902 struct named_init {
4903 int number;
4904 const wchar_t *name;
4905 double average;
4908 typedef const char *ccp;
4910 static inline int
4911 test_restrict (ccp restrict text)
4913 // See if C++-style comments work.
4914 // Iterate through items via the restricted pointer.
4915 // Also check for declarations in for loops.
4916 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4917 continue;
4918 return 0;
4921 // Check varargs and va_copy.
4922 static void
4923 test_varargs (const char *format, ...)
4925 va_list args;
4926 va_start (args, format);
4927 va_list args_copy;
4928 va_copy (args_copy, args);
4930 const char *str;
4931 int number;
4932 float fnumber;
4934 while (*format)
4936 switch (*format++)
4938 case 's': // string
4939 str = va_arg (args_copy, const char *);
4940 break;
4941 case 'd': // int
4942 number = va_arg (args_copy, int);
4943 break;
4944 case 'f': // float
4945 fnumber = va_arg (args_copy, double);
4946 break;
4947 default:
4948 break;
4951 va_end (args_copy);
4952 va_end (args);
4956 main ()
4959 // Check bool.
4960 _Bool success = false;
4962 // Check restrict.
4963 if (test_restrict ("String literal") == 0)
4964 success = true;
4965 char *restrict newvar = "Another string";
4967 // Check varargs.
4968 test_varargs ("s, d' f .", "string", 65, 34.234);
4969 test_varargs_macros ();
4971 // Check flexible array members.
4972 struct incomplete_array *ia =
4973 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4974 ia->datasize = 10;
4975 for (int i = 0; i < ia->datasize; ++i)
4976 ia->data[i] = i * 1.234;
4978 // Check named initializers.
4979 struct named_init ni = {
4980 .number = 34,
4981 .name = L"Test wide string",
4982 .average = 543.34343,
4985 ni.number = 58;
4987 int dynamic_array[ni.number];
4988 dynamic_array[ni.number - 1] = 543;
4990 // work around unused variable warnings
4991 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4992 || dynamic_array[ni.number - 1] != 543);
4995 return 0;
4997 _ACEOF
4998 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5000 CC="$ac_save_CC $ac_arg"
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 ac_cv_prog_cc_c99=$ac_arg
5004 rm -f core conftest.err conftest.$ac_objext
5005 test "x$ac_cv_prog_cc_c99" != "xno" && break
5006 done
5007 rm -f conftest.$ac_ext
5008 CC=$ac_save_CC
5011 # AC_CACHE_VAL
5012 case "x$ac_cv_prog_cc_c99" in
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5015 $as_echo "none needed" >&6; } ;;
5016 xno)
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5018 $as_echo "unsupported" >&6; } ;;
5020 CC="$CC $ac_cv_prog_cc_c99"
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5022 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5023 esac
5024 if test "x$ac_cv_prog_cc_c99" != xno; then :
5029 ac_ext=cpp
5030 ac_cpp='$CXXCPP $CPPFLAGS'
5031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5034 if test -z "$CXX"; then
5035 if test -n "$CCC"; then
5036 CXX=$CCC
5037 else
5038 if test -n "$ac_tool_prefix"; then
5039 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_CXX+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$CXX"; then
5049 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5064 IFS=$as_save_IFS
5068 CXX=$ac_cv_prog_CXX
5069 if test -n "$CXX"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5071 $as_echo "$CXX" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5078 test -n "$CXX" && break
5079 done
5081 if test -z "$CXX"; then
5082 ac_ct_CXX=$CXX
5083 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy $ac_prog; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$ac_ct_CXX"; then
5093 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_ac_ct_CXX="$ac_prog"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5108 IFS=$as_save_IFS
5112 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5113 if test -n "$ac_ct_CXX"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5115 $as_echo "$ac_ct_CXX" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 test -n "$ac_ct_CXX" && break
5123 done
5125 if test "x$ac_ct_CXX" = x; then
5126 CXX="g++"
5127 else
5128 case $cross_compiling:$ac_tool_warned in
5129 yes:)
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132 ac_tool_warned=yes ;;
5133 esac
5134 CXX=$ac_ct_CXX
5140 # Provide some information about the compiler.
5141 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5142 set X $ac_compile
5143 ac_compiler=$2
5144 for ac_option in --version -v -V -qversion; do
5145 { { ac_try="$ac_compiler $ac_option >&5"
5146 case "(($ac_try" in
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5149 esac
5150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5151 $as_echo "$ac_try_echo"; } >&5
5152 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5153 ac_status=$?
5154 if test -s conftest.err; then
5155 sed '10a\
5156 ... rest of stderr output deleted ...
5157 10q' conftest.err >conftest.er1
5158 cat conftest.er1 >&5
5160 rm -f conftest.er1 conftest.err
5161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5162 test $ac_status = 0; }
5163 done
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5166 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5167 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5174 main ()
5176 #ifndef __GNUC__
5177 choke me
5178 #endif
5181 return 0;
5183 _ACEOF
5184 if ac_fn_cxx_try_compile "$LINENO"; then :
5185 ac_compiler_gnu=yes
5186 else
5187 ac_compiler_gnu=no
5189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5194 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5195 if test $ac_compiler_gnu = yes; then
5196 GXX=yes
5197 else
5198 GXX=
5200 ac_test_CXXFLAGS=${CXXFLAGS+set}
5201 ac_save_CXXFLAGS=$CXXFLAGS
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5203 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5204 if ${ac_cv_prog_cxx_g+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5208 ac_cxx_werror_flag=yes
5209 ac_cv_prog_cxx_g=no
5210 CXXFLAGS="-g"
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5215 main ()
5219 return 0;
5221 _ACEOF
5222 if ac_fn_cxx_try_compile "$LINENO"; then :
5223 ac_cv_prog_cxx_g=yes
5224 else
5225 CXXFLAGS=""
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5230 main ()
5234 return 0;
5236 _ACEOF
5237 if ac_fn_cxx_try_compile "$LINENO"; then :
5239 else
5240 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5241 CXXFLAGS="-g"
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5246 main ()
5250 return 0;
5252 _ACEOF
5253 if ac_fn_cxx_try_compile "$LINENO"; then :
5254 ac_cv_prog_cxx_g=yes
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5261 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5264 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5265 if test "$ac_test_CXXFLAGS" = set; then
5266 CXXFLAGS=$ac_save_CXXFLAGS
5267 elif test $ac_cv_prog_cxx_g = yes; then
5268 if test "$GXX" = yes; then
5269 CXXFLAGS="-g -O2"
5270 else
5271 CXXFLAGS="-g"
5273 else
5274 if test "$GXX" = yes; then
5275 CXXFLAGS="-O2"
5276 else
5277 CXXFLAGS=
5280 ac_ext=c
5281 ac_cpp='$CPP $CPPFLAGS'
5282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287 # We must set the default linker to the linker used by gcc for the correct
5288 # operation of libtool. If LD is not defined and we are using gcc, try to
5289 # set the LD default to the ld used by gcc.
5290 if test -z "$LD"; then
5291 if test "$GCC" = yes; then
5292 case $build in
5293 *-*-mingw*)
5294 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5296 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5297 esac
5298 case $gcc_prog_ld in
5299 # Accept absolute paths.
5300 [\\/]* | [A-Za-z]:[\\/]*)
5301 LD="$gcc_prog_ld" ;;
5302 esac
5306 # Check whether -static-libstdc++ -static-libgcc is supported.
5307 have_static_libs=no
5308 if test "$GCC" = yes; then
5309 saved_LDFLAGS="$LDFLAGS"
5311 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5313 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5314 ac_ext=cpp
5315 ac_cpp='$CXXCPP $CPPFLAGS'
5316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5324 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5325 #error -static-libstdc++ not implemented
5326 #endif
5327 int main() {}
5328 _ACEOF
5329 if ac_fn_cxx_try_link "$LINENO"; then :
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5331 $as_echo "yes" >&6; }; have_static_libs=yes
5332 else
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5336 rm -f core conftest.err conftest.$ac_objext \
5337 conftest$ac_exeext conftest.$ac_ext
5338 ac_ext=c
5339 ac_cpp='$CPP $CPPFLAGS'
5340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5345 LDFLAGS="$saved_LDFLAGS"
5351 if test -n "$ac_tool_prefix"; then
5352 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5353 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if ${ac_cv_prog_GNATBIND+:} false; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 if test -n "$GNATBIND"; then
5360 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 break 2
5373 done
5374 done
5375 IFS=$as_save_IFS
5379 GNATBIND=$ac_cv_prog_GNATBIND
5380 if test -n "$GNATBIND"; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5382 $as_echo "$GNATBIND" >&6; }
5383 else
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5390 if test -z "$ac_cv_prog_GNATBIND"; then
5391 ac_ct_GNATBIND=$GNATBIND
5392 # Extract the first word of "gnatbind", so it can be a program name with args.
5393 set dummy gnatbind; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 if test -n "$ac_ct_GNATBIND"; then
5400 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5409 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5413 done
5414 done
5415 IFS=$as_save_IFS
5419 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5420 if test -n "$ac_ct_GNATBIND"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5422 $as_echo "$ac_ct_GNATBIND" >&6; }
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5428 if test "x$ac_ct_GNATBIND" = x; then
5429 GNATBIND="no"
5430 else
5431 case $cross_compiling:$ac_tool_warned in
5432 yes:)
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5435 ac_tool_warned=yes ;;
5436 esac
5437 GNATBIND=$ac_ct_GNATBIND
5439 else
5440 GNATBIND="$ac_cv_prog_GNATBIND"
5443 if test -n "$ac_tool_prefix"; then
5444 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5445 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if ${ac_cv_prog_GNATMAKE+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 if test -n "$GNATMAKE"; then
5452 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5461 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5465 done
5466 done
5467 IFS=$as_save_IFS
5471 GNATMAKE=$ac_cv_prog_GNATMAKE
5472 if test -n "$GNATMAKE"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5474 $as_echo "$GNATMAKE" >&6; }
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5482 if test -z "$ac_cv_prog_GNATMAKE"; then
5483 ac_ct_GNATMAKE=$GNATMAKE
5484 # Extract the first word of "gnatmake", so it can be a program name with args.
5485 set dummy gnatmake; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if test -n "$ac_ct_GNATMAKE"; then
5492 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5505 done
5506 done
5507 IFS=$as_save_IFS
5511 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5512 if test -n "$ac_ct_GNATMAKE"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5514 $as_echo "$ac_ct_GNATMAKE" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5520 if test "x$ac_ct_GNATMAKE" = x; then
5521 GNATMAKE="no"
5522 else
5523 case $cross_compiling:$ac_tool_warned in
5524 yes:)
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned=yes ;;
5528 esac
5529 GNATMAKE=$ac_ct_GNATMAKE
5531 else
5532 GNATMAKE="$ac_cv_prog_GNATMAKE"
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5536 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5537 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 cat >conftest.adb <<EOF
5541 procedure conftest is begin null; end conftest;
5543 acx_cv_cc_gcc_supports_ada=no
5544 # There is a bug in old released versions of GCC which causes the
5545 # driver to exit successfully when the appropriate language module
5546 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5547 # Therefore we must check for the error message as well as an
5548 # unsuccessful exit.
5549 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5550 # given a .adb file, but produce no object file. So we must check
5551 # if an object file was really produced to guard against this.
5552 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5553 if test x"$errors" = x && test -f conftest.$ac_objext; then
5554 acx_cv_cc_gcc_supports_ada=yes
5556 rm -f conftest.*
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5559 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5561 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5562 have_gnat=yes
5563 else
5564 have_gnat=no
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5568 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5569 if ${gcc_cv_prog_cmp_skip+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 echo abfoo >t1
5573 echo cdfoo >t2
5574 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5575 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5576 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5578 else
5579 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5582 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5583 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5585 else
5586 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5589 rm t1 t2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5593 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5594 do_compare="$gcc_cv_prog_cmp_skip"
5598 # Check whether --enable-bootstrap was given.
5599 if test "${enable_bootstrap+set}" = set; then :
5600 enableval=$enable_bootstrap;
5601 else
5602 enable_bootstrap=default
5606 # Issue errors and warnings for invalid/strange bootstrap combinations.
5607 if test -r $srcdir/gcc/configure; then
5608 have_compiler=yes
5609 else
5610 have_compiler=no
5613 case "$have_compiler:$host:$target:$enable_bootstrap" in
5614 *:*:*:no) ;;
5616 # Default behavior. Enable bootstrap if we have a compiler
5617 # and we are in a native configuration.
5618 yes:$build:$build:default)
5619 enable_bootstrap=yes ;;
5621 *:*:*:default)
5622 enable_bootstrap=no ;;
5624 # We have a compiler and we are in a native configuration, bootstrap is ok
5625 yes:$build:$build:yes)
5628 # Other configurations, but we have a compiler. Assume the user knows
5629 # what he's doing.
5630 yes:*:*:yes)
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5632 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5635 # No compiler: if they passed --enable-bootstrap explicitly, fail
5636 no:*:*:yes)
5637 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5639 # Fail if wrong command line
5641 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5643 esac
5645 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5646 # C++98 compiler can still start the bootstrap.
5647 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5648 CXX="$CXX -std=gnu++98"
5651 # Check whether --enable-pgo-build was given.
5652 if test "${enable_pgo_build+set}" = set; then :
5653 enableval=$enable_pgo_build; enable_pgo_build=$enableval
5654 else
5655 enable_pgo_build=no
5659 # Issue errors and warnings for invalid/strange PGO build combinations.
5660 case "$have_compiler:$host:$target:$enable_pgo_build" in
5661 *:*:*:no) ;;
5663 # Allow the PGO build only if we aren't building a compiler and
5664 # we are in a native configuration.
5665 no:$build:$build:yes | no:$build:$build:lto) ;;
5667 # Disallow the PGO bootstrap if we are building a compiler.
5668 yes:*:*:yes | yes:*:*:lto)
5669 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
5672 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
5674 esac
5676 if test "$enable_pgo_build" != "no"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
5678 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
5679 old_CFLAGS="$CFLAGS"
5680 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
5681 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684 /* end confdefs.h. */
5685 int foo;
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"; then :
5689 else
5690 PGO_BUILD_GEN_CFLAGS=
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 CFLAGS="$old_CFLAGS"
5694 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696 $as_echo "yes" >&6; }
5697 PGO_BUILD_USE_CFLAGS="-fprofile-use"
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
5704 if test "$enable_pgo_build" = "lto"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
5706 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
5707 old_CFLAGS="$CFLAGS"
5708 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
5709 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712 int foo;
5713 _ACEOF
5714 if ac_fn_c_try_compile "$LINENO"; then :
5716 else
5717 PGO_BUILD_LTO_CFLAGS=
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 CFLAGS="$old_CFLAGS"
5721 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5723 $as_echo "yes" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
5728 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
5736 # Used for setting $lt_cv_objdir
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5738 $as_echo_n "checking for objdir... " >&6; }
5739 if ${lt_cv_objdir+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 rm -f .libs 2>/dev/null
5743 mkdir .libs 2>/dev/null
5744 if test -d .libs; then
5745 lt_cv_objdir=.libs
5746 else
5747 # MS-DOS does not allow filenames that begin with a dot.
5748 lt_cv_objdir=_libs
5750 rmdir .libs 2>/dev/null
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5753 $as_echo "$lt_cv_objdir" >&6; }
5754 objdir=$lt_cv_objdir
5760 cat >>confdefs.h <<_ACEOF
5761 #define LT_OBJDIR "$lt_cv_objdir/"
5762 _ACEOF
5766 # Check for GMP, MPFR and MPC
5767 gmplibs="-lmpc -lmpfr -lgmp"
5768 gmpinc=
5769 have_gmp=no
5771 # Specify a location for mpc
5772 # check for this first so it ends up on the link line before mpfr.
5774 # Check whether --with-mpc was given.
5775 if test "${with_mpc+set}" = set; then :
5776 withval=$with_mpc;
5780 # Check whether --with-mpc-include was given.
5781 if test "${with_mpc_include+set}" = set; then :
5782 withval=$with_mpc_include;
5786 # Check whether --with-mpc-lib was given.
5787 if test "${with_mpc_lib+set}" = set; then :
5788 withval=$with_mpc_lib;
5792 if test "x$with_mpc" != x; then
5793 gmplibs="-L$with_mpc/lib $gmplibs"
5794 gmpinc="-I$with_mpc/include $gmpinc"
5796 if test "x$with_mpc_include" != x; then
5797 gmpinc="-I$with_mpc_include $gmpinc"
5799 if test "x$with_mpc_lib" != x; then
5800 gmplibs="-L$with_mpc_lib $gmplibs"
5802 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5803 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5804 gmpinc='-I$$s/mpc/src '"$gmpinc"
5805 # Do not test the mpc version. Assume that it is sufficient, since
5806 # it is in the source tree, and the library has not been built yet
5807 # but it would be included on the link line in the version check below
5808 # hence making the test fail.
5809 have_gmp=yes
5812 # Specify a location for mpfr
5813 # check for this first so it ends up on the link line before gmp.
5815 # Check whether --with-mpfr-dir was given.
5816 if test "${with_mpfr_dir+set}" = set; then :
5817 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5818 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5823 # Check whether --with-mpfr was given.
5824 if test "${with_mpfr+set}" = set; then :
5825 withval=$with_mpfr;
5829 # Check whether --with-mpfr-include was given.
5830 if test "${with_mpfr_include+set}" = set; then :
5831 withval=$with_mpfr_include;
5835 # Check whether --with-mpfr-lib was given.
5836 if test "${with_mpfr_lib+set}" = set; then :
5837 withval=$with_mpfr_lib;
5841 if test "x$with_mpfr" != x; then
5842 gmplibs="-L$with_mpfr/lib $gmplibs"
5843 gmpinc="-I$with_mpfr/include $gmpinc"
5845 if test "x$with_mpfr_include" != x; then
5846 gmpinc="-I$with_mpfr_include $gmpinc"
5848 if test "x$with_mpfr_lib" != x; then
5849 gmplibs="-L$with_mpfr_lib $gmplibs"
5851 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5852 # MPFR v3.1.0 moved the sources into a src sub-directory.
5853 if ! test -d ${srcdir}/mpfr/src; then
5854 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5856 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5857 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5858 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5859 # Do not test the mpfr version. Assume that it is sufficient, since
5860 # it is in the source tree, and the library has not been built yet
5861 # but it would be included on the link line in the version check below
5862 # hence making the test fail.
5863 have_gmp=yes
5866 # Specify a location for gmp
5868 # Check whether --with-gmp-dir was given.
5869 if test "${with_gmp_dir+set}" = set; then :
5870 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5871 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5876 # Check whether --with-gmp was given.
5877 if test "${with_gmp+set}" = set; then :
5878 withval=$with_gmp;
5882 # Check whether --with-gmp-include was given.
5883 if test "${with_gmp_include+set}" = set; then :
5884 withval=$with_gmp_include;
5888 # Check whether --with-gmp-lib was given.
5889 if test "${with_gmp_lib+set}" = set; then :
5890 withval=$with_gmp_lib;
5895 if test "x$with_gmp" != x; then
5896 gmplibs="-L$with_gmp/lib $gmplibs"
5897 gmpinc="-I$with_gmp/include $gmpinc"
5899 if test "x$with_gmp_include" != x; then
5900 gmpinc="-I$with_gmp_include $gmpinc"
5902 if test "x$with_gmp_lib" != x; then
5903 gmplibs="-L$with_gmp_lib $gmplibs"
5905 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5906 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5907 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5908 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5909 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5910 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5911 # Do not test the gmp version. Assume that it is sufficient, since
5912 # it is in the source tree, and the library has not been built yet
5913 # but it would be included on the link line in the version check below
5914 # hence making the test fail.
5915 have_gmp=yes
5918 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5919 have_gmp=yes
5920 saved_CFLAGS="$CFLAGS"
5921 CFLAGS="$CFLAGS $gmpinc"
5922 # Check for the recommended and required versions of GMP.
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5924 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5927 #include "gmp.h"
5929 main ()
5932 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5933 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5934 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5935 choke me
5936 #endif
5939 return 0;
5941 _ACEOF
5942 if ac_fn_c_try_compile "$LINENO"; then :
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 #include <gmp.h>
5947 main ()
5950 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5951 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5952 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5953 choke me
5954 #endif
5957 return 0;
5959 _ACEOF
5960 if ac_fn_c_try_compile "$LINENO"; then :
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5962 $as_echo "yes" >&6; }
5963 else
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5965 $as_echo "buggy but acceptable" >&6; }
5967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5968 else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }; have_gmp=no
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 # If we have GMP, check the MPFR version.
5975 if test x"$have_gmp" = xyes; then
5976 # Check for the recommended and required versions of MPFR.
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5978 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 #include <gmp.h>
5982 #include <mpfr.h>
5984 main ()
5987 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5988 choke me
5989 #endif
5992 return 0;
5994 _ACEOF
5995 if ac_fn_c_try_compile "$LINENO"; then :
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
5998 #include <gmp.h>
5999 #include <mpfr.h>
6001 main ()
6004 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
6005 choke me
6006 #endif
6009 return 0;
6011 _ACEOF
6012 if ac_fn_c_try_compile "$LINENO"; then :
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6014 $as_echo "yes" >&6; }
6015 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6017 $as_echo "buggy but acceptable" >&6; }
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }; have_gmp=no
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 # Check for the MPC header version.
6028 if test x"$have_gmp" = xyes ; then
6029 # Check for the recommended and required versions of MPC.
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
6031 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 #include <mpc.h>
6036 main ()
6039 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
6040 choke me
6041 #endif
6044 return 0;
6046 _ACEOF
6047 if ac_fn_c_try_compile "$LINENO"; then :
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 #include <mpc.h>
6052 main ()
6055 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
6056 choke me
6057 #endif
6060 return 0;
6062 _ACEOF
6063 if ac_fn_c_try_compile "$LINENO"; then :
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6065 $as_echo "yes" >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6068 $as_echo "buggy but acceptable" >&6; }
6070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 else
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073 $as_echo "no" >&6; }; have_gmp=no
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078 # Now check the MPFR library.
6079 if test x"$have_gmp" = xyes; then
6080 saved_LIBS="$LIBS"
6081 LIBS="$LIBS $gmplibs"
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
6083 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6086 #include <mpc.h>
6088 main ()
6091 mpfr_t n;
6092 mpfr_t x;
6093 mpc_t c;
6094 int t;
6095 mpfr_init (n);
6096 mpfr_init (x);
6097 mpfr_atan2 (n, n, x, GMP_RNDN);
6098 mpfr_erfc (n, x, GMP_RNDN);
6099 mpfr_subnormalize (x, t, GMP_RNDN);
6100 mpfr_clear(n);
6101 mpfr_clear(x);
6102 mpc_init2 (c, 53);
6103 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
6104 mpc_cosh (c, c, MPC_RNDNN);
6105 mpc_pow (c, c, c, MPC_RNDNN);
6106 mpc_acosh (c, c, MPC_RNDNN);
6107 mpc_clear (c);
6110 return 0;
6112 _ACEOF
6113 if ac_fn_c_try_link "$LINENO"; then :
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6115 $as_echo "yes" >&6; }
6116 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }; have_gmp=no
6120 rm -f core conftest.err conftest.$ac_objext \
6121 conftest$ac_exeext conftest.$ac_ext
6122 LIBS="$saved_LIBS"
6125 CFLAGS="$saved_CFLAGS"
6127 # The library versions listed in the error message below should match
6128 # the HARD-minimums enforced above.
6129 if test x$have_gmp != xyes; then
6130 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
6131 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
6132 their locations. Source code for these libraries can be found at
6133 their respective hosting sites as well as at
6134 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
6135 http://gcc.gnu.org/install/prerequisites.html for additional info. If
6136 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
6137 make sure that you have installed both the libraries and the header
6138 files. They may be located in separate packages." "$LINENO" 5
6142 # Flags needed for both GMP, MPFR and/or MPC.
6150 # Libraries to use for stage1 or when not bootstrapping.
6152 # Check whether --with-stage1-libs was given.
6153 if test "${with_stage1_libs+set}" = set; then :
6154 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6155 stage1_libs=
6156 else
6157 stage1_libs=$withval
6159 else
6160 stage1_libs=
6165 # Whether or not to use -static-libstdc++ and -static-libgcc. The
6166 # default is yes if gcc is being built; no otherwise. The reason for
6167 # this default is that gdb is sometimes linked against GNU Source
6168 # Highlight, which is a shared library that uses C++ exceptions. In
6169 # this case, -static-libstdc++ will cause crashes.
6171 # Check whether --with-static-standard-libraries was given.
6172 if test "${with_static_standard_libraries+set}" = set; then :
6173 withval=$with_static_standard_libraries;
6174 else
6175 with_static_standard_libraries=auto
6178 if test "$with_static_standard_libraries" = auto; then
6179 with_static_standard_libraries=$have_compiler
6182 # Linker flags to use for stage1 or when not bootstrapping.
6184 # Check whether --with-stage1-ldflags was given.
6185 if test "${with_stage1_ldflags+set}" = set; then :
6186 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6187 stage1_ldflags=
6188 else
6189 stage1_ldflags=$withval
6191 else
6192 stage1_ldflags=
6193 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6194 # if supported. But if the user explicitly specified the libraries to use,
6195 # trust that they are doing what they want.
6196 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6197 -a "$have_static_libs" = yes; then
6198 stage1_ldflags="-static-libstdc++ -static-libgcc"
6204 # Libraries to use for stage2 and later builds.
6206 # Check whether --with-boot-libs was given.
6207 if test "${with_boot_libs+set}" = set; then :
6208 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
6209 poststage1_libs=
6210 else
6211 poststage1_libs=$withval
6213 else
6214 poststage1_libs=
6219 # Linker flags to use for stage2 and later builds.
6221 # Check whether --with-boot-ldflags was given.
6222 if test "${with_boot_ldflags+set}" = set; then :
6223 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6224 poststage1_ldflags=
6225 else
6226 poststage1_ldflags=$withval
6228 else
6229 poststage1_ldflags=
6230 # In stages 2 and 3, default to linking libstdc++ and libgcc
6231 # statically. But if the user explicitly specified the libraries to
6232 # use, trust that they are doing what they want.
6233 if test "$poststage1_libs" = ""; then
6234 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6240 # GCC GRAPHITE dependency isl.
6241 # Basic setup is inlined here, actual checks are in config/isl.m4
6244 # Check whether --with-isl was given.
6245 if test "${with_isl+set}" = set; then :
6246 withval=$with_isl;
6250 # Treat --without-isl as a request to disable
6251 # GRAPHITE support and skip all following checks.
6252 if test "x$with_isl" != "xno"; then
6253 # Check for isl
6256 # Check whether --with-isl-include was given.
6257 if test "${with_isl_include+set}" = set; then :
6258 withval=$with_isl_include;
6262 # Check whether --with-isl-lib was given.
6263 if test "${with_isl_lib+set}" = set; then :
6264 withval=$with_isl_lib;
6268 # Check whether --enable-isl-version-check was given.
6269 if test "${enable_isl_version_check+set}" = set; then :
6270 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6271 else
6272 ENABLE_ISL_CHECK=yes
6276 # Initialize isllibs and islinc.
6277 case $with_isl in
6279 isllibs=
6280 islinc=
6282 "" | yes)
6285 isllibs="-L$with_isl/lib"
6286 islinc="-I$with_isl/include"
6288 esac
6289 if test "x${with_isl_include}" != x ; then
6290 islinc="-I$with_isl_include"
6292 if test "x${with_isl_lib}" != x; then
6293 isllibs="-L$with_isl_lib"
6295 if test "x${islinc}" = x && test "x${isllibs}" = x \
6296 && test -d ${srcdir}/isl; then
6297 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6298 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6299 ENABLE_ISL_CHECK=no
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6301 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6304 isllibs="${isllibs} -lisl"
6308 if test "${ENABLE_ISL_CHECK}" = yes ; then
6309 _isl_saved_CFLAGS=$CFLAGS
6310 _isl_saved_LDFLAGS=$LDFLAGS
6311 _isl_saved_LIBS=$LIBS
6313 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6314 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6315 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6318 $as_echo_n "checking for isl 0.15 or later... " >&6; }
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321 #include <isl/schedule.h>
6323 main ()
6325 isl_options_set_schedule_serialize_sccs (NULL, 0);
6327 return 0;
6329 _ACEOF
6330 if ac_fn_c_try_link "$LINENO"; then :
6331 gcc_cv_isl=yes
6332 else
6333 gcc_cv_isl=no
6335 rm -f core conftest.err conftest.$ac_objext \
6336 conftest$ac_exeext conftest.$ac_ext
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6338 $as_echo "$gcc_cv_isl" >&6; }
6340 if test "${gcc_cv_isl}" = no ; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6342 $as_echo "required isl version is 0.15 or later" >&6; }
6345 CFLAGS=$_isl_saved_CFLAGS
6346 LDFLAGS=$_isl_saved_LDFLAGS
6347 LIBS=$_isl_saved_LIBS
6355 if test "x${with_isl}" = xno; then
6356 graphite_requested=no
6357 elif test "x${with_isl}" != x \
6358 || test "x${with_isl_include}" != x \
6359 || test "x${with_isl_lib}" != x ; then
6360 graphite_requested=yes
6361 else
6362 graphite_requested=no
6367 if test "${gcc_cv_isl}" = no ; then
6368 isllibs=
6369 islinc=
6372 if test "${graphite_requested}" = yes \
6373 && test "x${isllibs}" = x \
6374 && test "x${islinc}" = x ; then
6376 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6382 # If the isl check failed, disable builds of in-tree variant of isl
6383 if test "x$with_isl" = xno ||
6384 test "x$gcc_cv_isl" = xno; then
6385 noconfigdirs="$noconfigdirs isl"
6386 islinc=
6392 # Check for LTO support.
6393 # Check whether --enable-lto was given.
6394 if test "${enable_lto+set}" = set; then :
6395 enableval=$enable_lto; enable_lto=$enableval
6396 else
6397 enable_lto=yes; default_enable_lto=yes
6404 target_elf=no
6405 case $target in
6406 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6407 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6408 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6409 nvptx-*-none)
6410 target_elf=no
6413 target_elf=yes
6415 esac
6417 if test $target_elf = yes; then :
6418 # ELF platforms build the lto-plugin always.
6419 build_lto_plugin=yes
6421 else
6422 if test x"$default_enable_lto" = x"yes" ; then
6423 case $target in
6424 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6425 # On other non-ELF platforms, LTO has yet to be validated.
6426 *) enable_lto=no ;;
6427 esac
6428 else
6429 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6430 # It would also be nice to check the binutils support, but we don't
6431 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6432 # warn during gcc/ subconfigure; unless you're bootstrapping with
6433 # -flto it won't be needed until after installation anyway.
6434 case $target in
6435 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6436 *) if test x"$enable_lto" = x"yes"; then
6437 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
6440 esac
6442 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6443 # Build it unless LTO was explicitly disabled.
6444 case $target in
6445 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6446 *) ;;
6447 esac
6452 # Check whether --enable-linker-plugin-configure-flags was given.
6453 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6454 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6455 else
6456 extra_linker_plugin_configure_flags=
6460 # Check whether --enable-linker-plugin-flags was given.
6461 if test "${enable_linker_plugin_flags+set}" = set; then :
6462 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6463 else
6464 extra_linker_plugin_flags=
6469 # Enable --enable-host-shared.
6470 # Checked early to determine whether jit is an 'all' language
6471 # Check whether --enable-host-shared was given.
6472 if test "${enable_host_shared+set}" = set; then :
6473 enableval=$enable_host_shared; host_shared=$enableval
6474 else
6475 host_shared=no
6480 # By default, C and C++ are the only stage 1 languages.
6481 stage1_languages=,c,
6483 # Target libraries that we bootstrap.
6484 bootstrap_target_libs=,target-libgcc,
6486 # Figure out what language subdirectories are present.
6487 # Look if the user specified --enable-languages="..."; if not, use
6488 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6489 # go away some day.
6490 # NB: embedded tabs in this IF block -- do not untabify
6491 if test -d ${srcdir}/gcc; then
6492 if test x"${enable_languages+set}" != xset; then
6493 if test x"${LANGUAGES+set}" = xset; then
6494 enable_languages="${LANGUAGES}"
6495 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6496 else
6497 enable_languages=default
6499 else
6500 if test x"${enable_languages}" = x ||
6501 test x"${enable_languages}" = xyes;
6502 then
6503 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6504 exit 1
6507 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6509 # 'f95' is the old name for the 'fortran' language. We issue a warning
6510 # and make the substitution.
6511 case ,${enable_languages}, in
6512 *,f95,*)
6513 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6514 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6516 esac
6518 # If bootstrapping, C++ must be enabled.
6519 case ",$enable_languages,:$enable_bootstrap" in
6520 *,c++,*:*) ;;
6521 *:yes)
6522 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6523 enable_languages="${enable_languages},c++"
6524 else
6525 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
6528 esac
6530 # First scan to see if an enabled language requires some other language.
6531 # We assume that a given config-lang.in will list all the language
6532 # front ends it requires, even if some are required indirectly.
6533 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6534 case ${lang_frag} in
6535 ..) ;;
6536 # The odd quoting in the next line works around
6537 # an apparent bug in bash 1.12 on linux.
6538 ${srcdir}/gcc/[*]/config-lang.in) ;;
6540 # From the config-lang.in, get $language, $lang_requires, and
6541 # $lang_requires_boot_languages.
6542 language=
6543 lang_requires=
6544 lang_requires_boot_languages=
6545 # set srcdir during sourcing lang_frag to the gcc dir.
6546 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6547 # polutes this shell
6548 saved_srcdir=${srcdir}
6549 srcdir=${srcdir}/gcc . ${lang_frag}
6550 srcdir=${saved_srcdir}
6551 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6552 case ,${enable_languages}, in
6553 *,$other,*) ;;
6554 *,default,*) ;;
6555 *,all,*) ;;
6556 *,$language,*)
6557 echo " \`$other' language required by \`$language'; enabling" 1>&2
6558 enable_languages="${enable_languages},${other}"
6560 esac
6561 done
6562 for other in ${lang_requires_boot_languages} ; do
6563 if test "$other" != "c"; then
6564 case ,${enable_stage1_languages}, in
6565 *,$other,*) ;;
6566 *,default,*) ;;
6567 *,all,*) ;;
6569 case ,${enable_languages}, in
6570 *,$language,*)
6571 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6572 enable_stage1_languages="$enable_stage1_languages,${other}"
6574 esac
6576 esac
6578 done
6580 esac
6581 done
6583 new_enable_languages=,c,
6585 # If LTO is enabled, add the LTO front end.
6586 if test "$enable_lto" = "yes" ; then
6587 case ,${enable_languages}, in
6588 *,lto,*) ;;
6589 *) enable_languages="${enable_languages},lto" ;;
6590 esac
6591 if test "${build_lto_plugin}" = "yes" ; then
6592 configdirs="$configdirs lto-plugin"
6596 # If we're building an offloading compiler, add the LTO front end.
6597 if test x"$enable_as_accelerator_for" != x ; then
6598 case ,${enable_languages}, in
6599 *,lto,*) ;;
6600 *) enable_languages="${enable_languages},lto" ;;
6601 esac
6604 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6605 potential_languages=,c,
6607 enabled_target_libs=
6608 disabled_target_libs=
6610 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6611 case ${lang_frag} in
6612 ..) ;;
6613 # The odd quoting in the next line works around
6614 # an apparent bug in bash 1.12 on linux.
6615 ${srcdir}/gcc/[*]/config-lang.in) ;;
6617 # From the config-lang.in, get $language, $target_libs,
6618 # $lang_dirs, $boot_language, and $build_by_default
6619 language=
6620 target_libs=
6621 lang_dirs=
6622 subdir_requires=
6623 boot_language=no
6624 build_by_default=yes
6625 # set srcdir during sourcing. See above about save & restore
6626 saved_srcdir=${srcdir}
6627 srcdir=${srcdir}/gcc . ${lang_frag}
6628 srcdir=${saved_srcdir}
6629 if test x${language} = x; then
6630 echo "${lang_frag} doesn't set \$language." 1>&2
6631 exit 1
6634 if test "$language" = "c++"; then
6635 boot_language=yes
6638 add_this_lang=no
6639 # C is always enabled, so no need to add it again
6640 if test "$language" != "c"; then
6641 case ,${enable_languages}, in
6642 *,${language},*)
6643 # Language was explicitly selected; include it
6644 add_this_lang=yes
6646 *,all,*)
6647 # All languages are enabled
6648 add_this_lang=all
6650 *,default,*)
6651 # 'default' was selected, select it if it is a default language
6652 add_this_lang=${build_by_default}
6654 esac
6657 # Disable languages that need other directories if these aren't available.
6658 for i in $subdir_requires; do
6659 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6660 case ${add_this_lang} in
6661 yes)
6662 # Specifically requested language; tell them.
6663 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6665 all)
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6667 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6668 add_this_lang=unsupported
6671 # Silently disable.
6672 add_this_lang=unsupported
6674 esac
6675 done
6677 # Disable Ada if no preexisting GNAT is available.
6678 case ${add_this_lang}:${language}:${have_gnat} in
6679 yes:ada:no)
6680 # Specifically requested language; tell them.
6681 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
6683 all:ada:no)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6685 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6686 add_this_lang=unsupported
6688 *:ada:no)
6689 # Silently disable.
6690 add_this_lang=unsupported
6692 esac
6694 # Disable jit if -enable-host-shared not specified
6695 case ${add_this_lang}:${language}:${host_shared} in
6696 yes:jit:no)
6697 # PR jit/64780: explicitly specify --enable-host-shared
6698 as_fn_error $? "
6699 Enabling language \"jit\" requires --enable-host-shared.
6701 --enable-host-shared typically slows the rest of the compiler down by
6702 a few %, so you must explicitly enable it.
6704 If you want to build both the jit and the regular compiler, it is often
6705 best to do this via two separate configure/builds, in separate
6706 directories, to avoid imposing the performance cost of
6707 --enable-host-shared on the regular compiler." "$LINENO" 5
6709 all:jit:no)
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6711 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6712 add_this_lang=unsupported
6714 *:jit:no)
6715 # Silently disable.
6716 add_this_lang=unsupported
6718 esac
6720 # Disable a language that is unsupported by the target.
6721 case "${add_this_lang}: $unsupported_languages " in
6722 no:*) ;;
6723 unsupported:*) ;;
6724 *:*" $language "*)
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6726 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6727 add_this_lang=unsupported
6729 esac
6731 case $add_this_lang in
6732 unsupported)
6733 # Remove language-dependent dirs.
6734 disabled_target_libs="$disabled_target_libs $target_libs"
6735 noconfigdirs="$noconfigdirs $lang_dirs"
6738 # Remove language-dependent dirs; still show language as supported.
6739 disabled_target_libs="$disabled_target_libs $target_libs"
6740 noconfigdirs="$noconfigdirs $lang_dirs"
6741 potential_languages="${potential_languages}${language},"
6743 all|yes)
6744 new_enable_languages="${new_enable_languages}${language},"
6745 potential_languages="${potential_languages}${language},"
6746 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6747 enabled_target_libs="$enabled_target_libs $target_libs"
6748 case "${boot_language}:,$enable_stage1_languages," in
6749 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6750 # Add to (comma-separated) list of stage 1 languages.
6751 case ",$stage1_languages," in
6752 *,$language,* | ,yes, | ,all,) ;;
6753 *) stage1_languages="${stage1_languages}${language}," ;;
6754 esac
6755 # We need to bootstrap any supporting libraries.
6756 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6758 esac
6760 esac
6762 esac
6763 done
6765 # Add target libraries which are only needed for disabled languages
6766 # to noconfigdirs.
6767 if test -n "$disabled_target_libs"; then
6768 for dir in $disabled_target_libs; do
6769 case " $enabled_target_libs " in
6770 *" ${dir} "*) ;;
6771 *) noconfigdirs="$noconfigdirs $dir" ;;
6772 esac
6773 done
6776 # Check whether --enable-stage1-languages was given.
6777 if test "${enable_stage1_languages+set}" = set; then :
6778 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6779 ,no,|,,)
6780 # Set it to something that will have no effect in the loop below
6781 enable_stage1_languages=c ;;
6782 ,yes,)
6783 enable_stage1_languages=`echo $new_enable_languages | \
6784 sed -e "s/^,//" -e "s/,$//" ` ;;
6785 *,all,*)
6786 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6787 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6788 esac
6790 # Add "good" languages from enable_stage1_languages to stage1_languages,
6791 # while "bad" languages go in missing_languages. Leave no duplicates.
6792 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6793 case $potential_languages in
6794 *,$i,*)
6795 case $stage1_languages in
6796 *,$i,*) ;;
6797 *) stage1_languages="$stage1_languages$i," ;;
6798 esac ;;
6800 case $missing_languages in
6801 *,$i,*) ;;
6802 *) missing_languages="$missing_languages$i," ;;
6803 esac ;;
6804 esac
6805 done
6809 # Remove leading/trailing commas that were added for simplicity
6810 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6811 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6812 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6813 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6815 if test "x$missing_languages" != x; then
6816 as_fn_error $? "
6817 The following requested languages could not be built: ${missing_languages}
6818 Supported languages are: ${potential_languages}" "$LINENO" 5
6820 if test "x$new_enable_languages" != "x$enable_languages"; then
6821 echo The following languages will be built: ${new_enable_languages}
6822 enable_languages="$new_enable_languages"
6826 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6829 # Handle --disable-<component> generically.
6830 for dir in $configdirs $build_configdirs $target_configdirs ; do
6831 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6832 varname=`echo $dirname | sed -e s/+/_/g`
6833 if eval test x\${enable_${varname}} "=" xno ; then
6834 noconfigdirs="$noconfigdirs $dir"
6836 done
6838 # Check for Boehm's garbage collector
6839 # Check whether --enable-objc-gc was given.
6840 if test "${enable_objc_gc+set}" = set; then :
6841 enableval=$enable_objc_gc;
6845 # Check whether --with-target-bdw-gc was given.
6846 if test "${with_target_bdw_gc+set}" = set; then :
6847 withval=$with_target_bdw_gc;
6851 # Check whether --with-target-bdw-gc-include was given.
6852 if test "${with_target_bdw_gc_include+set}" = set; then :
6853 withval=$with_target_bdw_gc_include;
6857 # Check whether --with-target-bdw-gc-lib was given.
6858 if test "${with_target_bdw_gc_lib+set}" = set; then :
6859 withval=$with_target_bdw_gc_lib;
6863 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6865 $as_echo_n "checking for bdw garbage collector... " >&6; }
6866 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6868 $as_echo "using bdw-gc in default locations" >&6; }
6869 else
6870 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6871 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6872 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6873 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6876 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6879 esac
6881 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6882 case ,${enable_languages}, in
6883 *,c++,*)
6884 # Disable libitm, libsanitizer if we're not building libstdc++
6885 case "${noconfigdirs}" in
6886 *target-libstdc++-v3*)
6887 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6889 *) ;;
6890 esac
6893 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6895 esac
6897 # If gcc/ is not in the source tree then we'll not be building a
6898 # target compiler, assume in that case we don't want to build any
6899 # target libraries or tools.
6901 # This was added primarily for the benefit for binutils-gdb who reuse
6902 # this configure script, but don't always have target tools available.
6903 if test ! -d ${srcdir}/gcc; then
6904 skipdirs="${skipdirs} ${target_configdirs}"
6907 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6908 # $build_configdirs and $target_configdirs.
6909 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6911 notsupp=""
6912 for dir in . $skipdirs $noconfigdirs ; do
6913 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6914 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6915 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6916 if test -r $srcdir/$dirname/configure ; then
6917 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6918 true
6919 else
6920 notsupp="$notsupp $dir"
6924 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6925 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6926 if test -r $srcdir/$dirname/configure ; then
6927 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6928 true
6929 else
6930 notsupp="$notsupp $dir"
6934 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6935 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6936 if test -r $srcdir/$dirname/configure ; then
6937 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6938 true
6939 else
6940 notsupp="$notsupp $dir"
6944 done
6946 # Quietly strip out all directories which aren't configurable in this tree.
6947 # This relies on all configurable subdirectories being autoconfiscated, which
6948 # is now the case.
6949 build_configdirs_all="$build_configdirs"
6950 build_configdirs=
6951 for i in ${build_configdirs_all} ; do
6952 j=`echo $i | sed -e s/build-//g`
6953 if test -f ${srcdir}/$j/configure ; then
6954 build_configdirs="${build_configdirs} $i"
6956 done
6958 configdirs_all="$configdirs"
6959 configdirs=
6960 for i in ${configdirs_all} ; do
6961 if test -f ${srcdir}/$i/configure ; then
6962 configdirs="${configdirs} $i"
6964 done
6966 target_configdirs_all="$target_configdirs"
6967 target_configdirs=
6968 for i in ${target_configdirs_all} ; do
6969 j=`echo $i | sed -e s/target-//g`
6970 if test -f ${srcdir}/$j/configure ; then
6971 target_configdirs="${target_configdirs} $i"
6973 done
6975 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6976 # so we have to add it after the preceding checks.
6977 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6978 then
6979 case " $configdirs " in
6980 *" libiberty "*)
6981 # If we can build libiberty, we can also build libiberty-linker-plugin.
6982 configdirs="$configdirs libiberty-linker-plugin"
6983 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6984 --with-libiberty=../libiberty-linker-plugin";;
6986 as_fn_error $? "libiberty missing" "$LINENO" 5;;
6987 esac
6990 # Sometimes we have special requirements for the host libiberty.
6991 extra_host_libiberty_configure_flags=
6992 case " $configdirs " in
6993 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
6994 # When these are to be built as shared libraries, the same applies to
6995 # libiberty.
6996 extra_host_libiberty_configure_flags=--enable-shared
6998 esac
7001 # Sometimes we have special requirements for the host zlib.
7002 extra_host_zlib_configure_flags=
7003 case " $configdirs " in
7004 *" bfd "*)
7005 # When bfd is to be built as a shared library, the same applies to
7006 # zlib.
7007 if test "$enable_shared" = "yes"; then
7008 extra_host_zlib_configure_flags=--enable-host-shared
7011 esac
7014 # Produce a warning message for the subdirs we can't configure.
7015 # This isn't especially interesting in the Cygnus tree, but in the individual
7016 # FSF releases, it's important to let people know when their machine isn't
7017 # supported by the one or two programs in a package.
7019 if test -n "${notsupp}" && test -z "${norecursion}" ; then
7020 # If $appdirs is non-empty, at least one of those directories must still
7021 # be configured, or we error out. (E.g., if the gas release supports a
7022 # specified target in some subdirs but not the gas subdir, we shouldn't
7023 # pretend that all is well.)
7024 if test -n "$appdirs" ; then
7025 for dir in $appdirs ; do
7026 if test -r $dir/Makefile.in ; then
7027 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7028 appdirs=""
7029 break
7031 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
7032 appdirs=""
7033 break
7036 done
7037 if test -n "$appdirs" ; then
7038 echo "*** This configuration is not supported by this package." 1>&2
7039 exit 1
7042 # Okay, some application will build, or we don't care to check. Still
7043 # notify of subdirs not getting built.
7044 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7045 echo " ${notsupp}" 1>&2
7046 echo " (Any other directories should still work fine.)" 1>&2
7049 case "$host" in
7050 *msdosdjgpp*)
7051 enable_gdbtk=no ;;
7052 esac
7054 # To find our prefix, in gcc_cv_tool_prefix.
7056 # The user is always right.
7057 if test "${PATH_SEPARATOR+set}" != set; then
7058 echo "#! /bin/sh" >conf$$.sh
7059 echo "exit 0" >>conf$$.sh
7060 chmod +x conf$$.sh
7061 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7062 PATH_SEPARATOR=';'
7063 else
7064 PATH_SEPARATOR=:
7066 rm -f conf$$.sh
7070 get_gcc_base_ver="cat"
7072 # Check whether --with-gcc-major-version-only was given.
7073 if test "${with_gcc_major_version_only+set}" = set; then :
7074 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
7075 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
7085 if test "x$exec_prefix" = xNONE; then
7086 if test "x$prefix" = xNONE; then
7087 gcc_cv_tool_prefix=$ac_default_prefix
7088 else
7089 gcc_cv_tool_prefix=$prefix
7091 else
7092 gcc_cv_tool_prefix=$exec_prefix
7095 # If there is no compiler in the tree, use the PATH only. In any
7096 # case, if there is no compiler in the tree nobody should use
7097 # AS_FOR_TARGET and LD_FOR_TARGET.
7098 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7099 if test x$with_gcc_major_version_only = xyes ; then
7100 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
7101 else
7102 gcc_version=`cat $srcdir/gcc/BASE-VER`
7104 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7105 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7106 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7107 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7108 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7109 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7110 else
7111 gcc_cv_tool_dirs=
7114 if test x$build = x$target && test -n "$md_exec_prefix"; then
7115 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7120 copy_dirs=
7123 # Check whether --with-build-sysroot was given.
7124 if test "${with_build_sysroot+set}" = set; then :
7125 withval=$with_build_sysroot; if test x"$withval" != x ; then
7126 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7128 else
7129 SYSROOT_CFLAGS_FOR_TARGET=
7135 # Check whether --with-debug-prefix-map was given.
7136 if test "${with_debug_prefix_map+set}" = set; then :
7137 withval=$with_debug_prefix_map; if test x"$withval" != x; then
7138 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7139 for debug_map in $withval; do
7140 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7141 done
7143 else
7144 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7149 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7150 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7151 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7152 # We want to ensure that TARGET libraries (which we know are built with
7153 # gcc) are built with "-O2 -g", so include those options when setting
7154 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7155 if test "x$CFLAGS_FOR_TARGET" = x; then
7156 if test "x${is_cross_compiler}" = xyes; then
7157 CFLAGS_FOR_TARGET="-g -O2"
7158 else
7159 CFLAGS_FOR_TARGET=$CFLAGS
7160 case " $CFLAGS " in
7161 *" -O2 "*) ;;
7162 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7163 esac
7164 case " $CFLAGS " in
7165 *" -g "* | *" -g3 "*) ;;
7166 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7167 esac
7172 if test "x$CXXFLAGS_FOR_TARGET" = x; then
7173 if test "x${is_cross_compiler}" = xyes; then
7174 CXXFLAGS_FOR_TARGET="-g -O2"
7175 else
7176 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7177 case " $CXXFLAGS " in
7178 *" -O2 "*) ;;
7179 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7180 esac
7181 case " $CXXFLAGS " in
7182 *" -g "* | *" -g3 "*) ;;
7183 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7184 esac
7191 # Handle --with-headers=XXX. If the value is not "yes", the contents of
7192 # the named directory are copied to $(tooldir)/sys-include.
7193 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7194 if test x${is_cross_compiler} = xno ; then
7195 echo 1>&2 '***' --with-headers is only supported when cross compiling
7196 exit 1
7198 if test x"${with_headers}" != xyes ; then
7199 x=${gcc_cv_tool_prefix}
7200 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7204 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7205 # the name directories are copied to $(tooldir)/lib. Multiple directories
7206 # are permitted.
7207 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7208 if test x${is_cross_compiler} = xno ; then
7209 echo 1>&2 '***' --with-libs is only supported when cross compiling
7210 exit 1
7212 if test x"${with_libs}" != xyes ; then
7213 # Copy the libraries in reverse order, so that files in the first named
7214 # library override files in subsequent libraries.
7215 x=${gcc_cv_tool_prefix}
7216 for l in ${with_libs}; do
7217 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7218 done
7222 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7224 # This is done by determining whether or not the appropriate directory
7225 # is available, and by checking whether or not specific configurations
7226 # have requested that this magic not happen.
7228 # The command line options always override the explicit settings in
7229 # configure.ac, and the settings in configure.ac override this magic.
7231 # If the default for a toolchain is to use GNU as and ld, and you don't
7232 # want to do that, then you should use the --without-gnu-as and
7233 # --without-gnu-ld options for the configure script. Similarly, if
7234 # the default is to use the included zlib and you don't want to do that,
7235 # you should use the --with-system-zlib option for the configure script.
7237 if test x${use_gnu_as} = x &&
7238 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7239 with_gnu_as=yes
7240 extra_host_args="$extra_host_args --with-gnu-as"
7243 if test x${use_gnu_ld} = x &&
7244 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7245 with_gnu_ld=yes
7246 extra_host_args="$extra_host_args --with-gnu-ld"
7249 if test x${use_included_zlib} = x &&
7250 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7252 else
7253 with_system_zlib=yes
7254 extra_host_args="$extra_host_args --with-system-zlib"
7257 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7258 # can detect this case.
7260 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7261 with_newlib=yes
7262 extra_host_args="$extra_host_args --with-newlib"
7265 # Handle ${copy_dirs}
7266 set fnord ${copy_dirs}
7267 shift
7268 while test $# != 0 ; do
7269 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7271 else
7272 echo Copying $1 to $2
7274 # Use the install script to create the directory and all required
7275 # parent directories.
7276 if test -d $2 ; then
7278 else
7279 echo >config.temp
7280 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7283 # Copy the directory, assuming we have tar.
7284 # FIXME: Should we use B in the second tar? Not all systems support it.
7285 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7287 # It is the responsibility of the user to correctly adjust all
7288 # symlinks. If somebody can figure out how to handle them correctly
7289 # here, feel free to add the code.
7291 echo $1 > $2/COPIED
7293 shift; shift
7294 done
7296 # Determine a target-dependent exec_prefix that the installed
7297 # gcc will search in. Keep this list sorted by triplet, with
7298 # the *-*-osname triplets last.
7299 md_exec_prefix=
7300 case "${target}" in
7301 i[34567]86-pc-msdosdjgpp*)
7302 md_exec_prefix=/dev/env/DJDIR/bin
7304 *-*-hpux* | \
7305 *-*-nto-qnx* | \
7306 *-*-solaris2*)
7307 md_exec_prefix=/usr/ccs/bin
7309 esac
7311 extra_arflags_for_target=
7312 extra_nmflags_for_target=
7313 extra_ranlibflags_for_target=
7314 target_makefile_frag=/dev/null
7315 case "${target}" in
7316 spu-*-*)
7317 target_makefile_frag="config/mt-spu"
7319 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7320 target_makefile_frag="config/mt-sde"
7322 mipsisa*-*-elfoabi*)
7323 target_makefile_frag="config/mt-mips-elfoabi"
7325 mips*-*-*linux* | mips*-*-gnu*)
7326 target_makefile_frag="config/mt-mips-gnu"
7328 nios2-*-elf*)
7329 target_makefile_frag="config/mt-nios2-elf"
7331 *-*-linux-android*)
7332 target_makefile_frag="config/mt-android"
7334 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7335 target_makefile_frag="config/mt-gnu"
7337 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7338 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7339 # commands to handle both 32-bit and 64-bit objects. These flags are
7340 # harmless if we're using GNU nm or ar.
7341 extra_arflags_for_target=" -X32_64"
7342 extra_nmflags_for_target=" -B -X32_64"
7344 esac
7346 alphaieee_frag=/dev/null
7347 case $target in
7348 alpha*-*-*)
7349 # This just makes sure to use the -mieee option to build target libs.
7350 # This should probably be set individually by each library.
7351 alphaieee_frag="config/mt-alphaieee"
7353 esac
7355 # If --enable-target-optspace always use -Os instead of -O2 to build
7356 # the target libraries, similarly if it is not specified, use -Os
7357 # on selected platforms.
7358 ospace_frag=/dev/null
7359 case "${enable_target_optspace}:${target}" in
7360 yes:*)
7361 ospace_frag="config/mt-ospace"
7363 :d30v-*)
7364 ospace_frag="config/mt-d30v"
7366 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
7367 ospace_frag="config/mt-ospace"
7369 no:* | :*)
7372 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7374 esac
7376 # Some systems (e.g., one of the i386-aix systems the gas testers are
7377 # using) don't handle "\$" correctly, so don't use it here.
7378 tooldir='${exec_prefix}'/${target_noncanonical}
7379 build_tooldir=${tooldir}
7381 # Create a .gdbinit file which runs the one in srcdir
7382 # and tells GDB to look there for source files.
7384 if test -r ${srcdir}/.gdbinit ; then
7385 case ${srcdir} in
7386 .) ;;
7387 *) cat > ./.gdbinit <<EOF
7388 # ${NO_EDIT}
7389 dir ${srcdir}
7390 dir .
7391 source ${srcdir}/.gdbinit
7394 esac
7397 # Make sure that the compiler is able to generate an executable. If it
7398 # can't, we are probably in trouble. We don't care whether we can run the
7399 # executable--we might be using a cross compiler--we only care whether it
7400 # can be created. At this point the main configure script has set CC.
7401 we_are_ok=no
7402 echo "int main () { return 0; }" > conftest.c
7403 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7404 if test $? = 0 ; then
7405 if test -s conftest || test -s conftest.exe ; then
7406 we_are_ok=yes
7409 case $we_are_ok in
7411 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7412 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7413 rm -f conftest*
7414 exit 1
7416 esac
7417 rm -f conftest*
7419 # Decide which environment variable is used to find dynamic libraries.
7420 case "${host}" in
7421 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7422 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7423 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7424 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7425 esac
7427 # On systems where the dynamic library environment variable is PATH,
7428 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7429 # built executables to PATH.
7430 if test "$RPATH_ENVVAR" = PATH; then
7431 GCC_SHLIB_SUBDIR=/shlib
7432 else
7433 GCC_SHLIB_SUBDIR=
7436 # Adjust the toplevel makefile according to whether bootstrap was selected.
7437 case $enable_bootstrap in
7438 yes)
7439 bootstrap_suffix=bootstrap
7440 BUILD_CONFIG=bootstrap-debug
7443 bootstrap_suffix=no-bootstrap
7444 BUILD_CONFIG=
7446 esac
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7449 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7452 # Check whether --with-build-config was given.
7453 if test "${with_build_config+set}" = set; then :
7454 withval=$with_build_config; case $with_build_config in
7455 yes) with_build_config= ;;
7456 no) with_build_config= BUILD_CONFIG= ;;
7457 esac
7461 if test "x${with_build_config}" != x; then
7462 BUILD_CONFIG=$with_build_config
7463 else
7464 case $BUILD_CONFIG in
7465 bootstrap-debug)
7466 if echo "int f (void) { return 0; }" > conftest.c &&
7467 ${CC} -c conftest.c &&
7468 mv conftest.o conftest.o.g0 &&
7469 ${CC} -c -g conftest.c &&
7470 mv conftest.o conftest.o.g &&
7471 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7473 else
7474 BUILD_CONFIG=
7476 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7478 esac
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7481 $as_echo "$BUILD_CONFIG" >&6; }
7484 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7486 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7487 # Check whether --enable-vtable-verify was given.
7488 if test "${enable_vtable_verify+set}" = set; then :
7489 enableval=$enable_vtable_verify; case "$enableval" in
7490 yes) enable_vtable_verify=yes ;;
7491 no) enable_vtable_verify=no ;;
7492 *) enable_vtable_verify=no;;
7493 esac
7494 else
7495 enable_vtable_verify=no
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7499 $as_echo "$enable_vtable_verify" >&6; }
7501 # Record target_configdirs and the configure arguments for target and
7502 # build configuration in Makefile.
7503 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7504 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7505 bootstrap_fixincludes=no
7507 # If we are building libgomp, bootstrap it.
7508 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7509 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7512 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7513 # or bootstrap-ubsan, bootstrap it.
7514 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7515 case "$BUILD_CONFIG" in
7516 *bootstrap-asan* | *bootstrap-ubsan* )
7517 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7518 bootstrap_fixincludes=yes
7520 esac
7523 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7524 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7525 test "$enable_vtable_verify" != no; then
7526 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7529 # Determine whether gdb needs tk/tcl or not.
7530 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7531 # and in that case we want gdb to be built without tk. Ugh!
7532 # In fact I believe gdb is the *only* package directly dependent on tk,
7533 # so we should be able to put the 'maybe's in unconditionally and
7534 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7535 # 100% sure that that's safe though.
7537 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7538 case "$enable_gdbtk" in
7540 GDB_TK="" ;;
7541 yes)
7542 GDB_TK="${gdb_tk}" ;;
7544 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7545 # distro. Eventually someone will fix this and move Insight, nee
7546 # gdbtk to a separate directory.
7547 if test -d ${srcdir}/gdb/gdbtk ; then
7548 GDB_TK="${gdb_tk}"
7549 else
7550 GDB_TK=""
7553 esac
7554 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7555 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7557 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7558 # else does, only include them if one of these is built. The Makefile
7559 # provides the ordering, so it's enough here to add to the list.
7560 case " ${configdirs} " in
7561 *\ gdb\ *)
7562 configdirs="${configdirs} gnulib gdbsupport"
7564 *\ gdbserver\ *)
7565 configdirs="${configdirs} gnulib gdbsupport"
7567 *\ sim\ *)
7568 configdirs="${configdirs} gnulib"
7570 esac
7572 # Strip out unwanted targets.
7574 # While at that, we remove Makefiles if we were started for recursive
7575 # configuration, so that the top-level Makefile reconfigures them,
7576 # like we used to do when configure itself was recursive.
7578 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7579 # but now we're fixing up the Makefile ourselves with the additional
7580 # commands passed to AC_CONFIG_FILES. Use separate variables
7581 # extrasub-{build,host,target} not because there is any reason to split
7582 # the substitutions up that way, but only to remain below the limit of
7583 # 99 commands in a script, for HP-UX sed.
7585 # Do not nest @if/@endif or @unless/@endunless pairs, because
7586 # configure will not warn you at all.
7588 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7589 yes:yes:*\ gold\ *:*,c++,*) ;;
7590 yes:yes:*\ gold\ *:*)
7591 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7593 esac
7595 extrasub_build=
7596 for module in ${build_configdirs} ; do
7597 if test -z "${no_recursion}" \
7598 && test -f ${build_subdir}/${module}/Makefile; then
7599 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7600 rm -f ${build_subdir}/${module}/Makefile
7602 extrasub_build="$extrasub_build
7603 /^@if build-$module\$/d
7604 /^@endif build-$module\$/d
7605 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7606 /^@if build-$module-$bootstrap_suffix\$/d
7607 /^@endif build-$module-$bootstrap_suffix\$/d
7608 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7609 done
7610 extrasub_host=
7611 for module in ${configdirs} ; do
7612 if test -z "${no_recursion}"; then
7613 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7614 if test -f ${file}; then
7615 echo 1>&2 "*** removing ${file} to force reconfigure"
7616 rm -f ${file}
7618 done
7620 case ${module},${bootstrap_fixincludes} in
7621 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7622 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7623 esac
7624 extrasub_host="$extrasub_host
7625 /^@if $module\$/d
7626 /^@endif $module\$/d
7627 /^@unless $module\$/,/^@endunless $module\$/d
7628 /^@if $module-$host_bootstrap_suffix\$/d
7629 /^@endif $module-$host_bootstrap_suffix\$/d
7630 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7631 done
7632 extrasub_target=
7633 for module in ${target_configdirs} ; do
7634 if test -z "${no_recursion}" \
7635 && test -f ${target_subdir}/${module}/Makefile; then
7636 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7637 rm -f ${target_subdir}/${module}/Makefile
7640 # We only bootstrap target libraries listed in bootstrap_target_libs.
7641 case $bootstrap_target_libs in
7642 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7643 *) target_bootstrap_suffix=no-bootstrap ;;
7644 esac
7646 extrasub_target="$extrasub_target
7647 /^@if target-$module\$/d
7648 /^@endif target-$module\$/d
7649 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7650 /^@if target-$module-$target_bootstrap_suffix\$/d
7651 /^@endif target-$module-$target_bootstrap_suffix\$/d
7652 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7653 done
7655 # Do the final fixup along with target modules.
7656 extrasub_target="$extrasub_target
7657 /^@if /,/^@endif /d
7658 /^@unless /d
7659 /^@endunless /d"
7661 if test "$enable_pgo_build" != "no"; then
7662 extrasub_build="$extrasub_build
7663 /^@if pgo-build\$/d
7664 /^@endif pgo-build\$/d"
7667 # Create the serialization dependencies. This uses a temporary file.
7669 # Check whether --enable-serial-configure was given.
7670 if test "${enable_serial_configure+set}" = set; then :
7671 enableval=$enable_serial_configure;
7675 case ${enable_serial_configure} in
7676 yes)
7677 enable_serial_build_configure=yes
7678 enable_serial_host_configure=yes
7679 enable_serial_target_configure=yes
7681 esac
7683 # These force 'configure's to be done one at a time, to avoid problems
7684 # with contention over a shared config.cache.
7685 rm -f serdep.tmp
7686 echo '# serdep.tmp' > serdep.tmp
7687 olditem=
7688 test "x${enable_serial_build_configure}" = xyes &&
7689 for item in ${build_configdirs} ; do
7690 case ${olditem} in
7691 "") ;;
7692 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7693 esac
7694 olditem=${item}
7695 done
7696 olditem=
7697 test "x${enable_serial_host_configure}" = xyes &&
7698 for item in ${configdirs} ; do
7699 case ${olditem} in
7700 "") ;;
7701 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7702 esac
7703 olditem=${item}
7704 done
7705 olditem=
7706 test "x${enable_serial_target_configure}" = xyes &&
7707 for item in ${target_configdirs} ; do
7708 case ${olditem} in
7709 "") ;;
7710 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7711 esac
7712 olditem=${item}
7713 done
7714 serialization_dependencies=serdep.tmp
7717 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7718 # target, nonopt, and variable assignments. These are the ones we
7719 # might not want to pass down to subconfigures. The exception being
7720 # --cache-file=/dev/null, which is used to turn off the use of cache
7721 # files altogether, and which should be passed on to subconfigures.
7722 # Also strip program-prefix, program-suffix, and program-transform-name,
7723 # so that we can pass down a consistent program-transform-name.
7724 baseargs=
7725 tbaseargs=
7726 keep_next=no
7727 skip_next=no
7728 eval "set -- $ac_configure_args"
7729 for ac_arg
7731 if test X"$skip_next" = X"yes"; then
7732 skip_next=no
7733 continue
7735 if test X"$keep_next" = X"yes"; then
7736 case $ac_arg in
7737 *\'*)
7738 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7739 esac
7740 baseargs="$baseargs '$ac_arg'"
7741 tbaseargs="$tbaseargs '$ac_arg'"
7742 keep_next=no
7743 continue
7746 # Handle separated arguments. Based on the logic generated by
7747 # autoconf 2.59.
7748 case $ac_arg in
7749 *=* | --config-cache | -C | -disable-* | --disable-* \
7750 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7751 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7752 | -with-* | --with-* | -without-* | --without-* | --x)
7753 separate_arg=no
7756 separate_arg=yes
7759 separate_arg=no
7761 esac
7763 skip_targ=no
7764 case $ac_arg in
7766 --with-* | --without-*)
7767 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7769 case $libopt in
7770 *[-_]include)
7771 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7773 *[-_]lib)
7774 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7777 lib=$libopt
7779 esac
7782 case $lib in
7783 mpc | mpfr | gmp | isl)
7784 # If we're processing --with-$lib, --with-$lib-include or
7785 # --with-$lib-lib, for one of the libs above, and target is
7786 # different from host, don't pass the current argument to any
7787 # target library's configure.
7788 if test x$is_cross_compiler = xyes; then
7789 skip_targ=yes
7792 esac
7794 esac
7796 case "$ac_arg" in
7797 --cache-file=/dev/null | \
7798 -cache-file=/dev/null )
7799 # Handled here to avoid the test to skip args below.
7800 baseargs="$baseargs '$ac_arg'"
7801 tbaseargs="$tbaseargs '$ac_arg'"
7802 # Assert: $separate_arg should always be no.
7803 keep_next=$separate_arg
7805 --no*)
7806 continue
7808 --c* | \
7809 --sr* | \
7810 --ho* | \
7811 --bu* | \
7812 --t* | \
7813 --program-* | \
7814 -cache_file* | \
7815 -srcdir* | \
7816 -host* | \
7817 -build* | \
7818 -target* | \
7819 -program-prefix* | \
7820 -program-suffix* | \
7821 -program-transform-name* )
7822 skip_next=$separate_arg
7823 continue
7826 # An option. Add it.
7827 case $ac_arg in
7828 *\'*)
7829 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7830 esac
7831 baseargs="$baseargs '$ac_arg'"
7832 if test X"$skip_targ" = Xno; then
7833 tbaseargs="$tbaseargs '$ac_arg'"
7835 keep_next=$separate_arg
7838 # Either a variable assignment, or a nonopt (triplet). Don't
7839 # pass it down; let the Makefile handle this.
7840 continue
7842 esac
7843 done
7844 # Remove the initial space we just introduced and, as these will be
7845 # expanded by make, quote '$'.
7846 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7848 # Add in --program-transform-name, after --program-prefix and
7849 # --program-suffix have been applied to it. Autoconf has already
7850 # doubled dollar signs and backslashes in program_transform_name; we want
7851 # the backslashes un-doubled, and then the entire thing wrapped in single
7852 # quotes, because this will be expanded first by make and then by the shell.
7853 # Also, because we want to override the logic in subdir configure scripts to
7854 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7855 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7856 ${program_transform_name}
7857 EOF_SED
7858 gcc_transform_name=`cat conftestsed.out`
7859 rm -f conftestsed.out
7860 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7861 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7862 if test "$silent" = yes; then
7863 baseargs="$baseargs --silent"
7864 tbaseargs="$tbaseargs --silent"
7867 baseargs="$baseargs --disable-option-checking"
7868 tbaseargs="$tbaseargs --disable-option-checking"
7870 if test "$enable_year2038" = no; then
7871 baseargs="$baseargs --disable-year2038"
7872 tbaseargs="$tbaseargs --disable-year2038"
7875 # Record and document user additions to sub configure arguments.
7880 # For the build-side libraries, we just need to pretend we're native,
7881 # and not use the same cache file. Multilibs are neither needed nor
7882 # desired. We can't even use the same cache file for all build-side
7883 # libraries, as they're compiled differently; some with C, some with
7884 # C++ or with different feature-enabling options.
7885 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7887 # For host modules, accept cache file option, or specification as blank.
7888 case "${cache_file}" in
7889 "") # empty
7890 cache_file_option="" ;;
7891 /* | [A-Za-z]:[\\/]* ) # absolute path
7892 cache_file_option="--cache-file=${cache_file}" ;;
7893 *) # relative path
7894 cache_file_option="--cache-file=../${cache_file}" ;;
7895 esac
7897 # Host dirs don't like to share a cache file either, horribly enough.
7898 # This seems to be due to autoconf 2.5x stupidity.
7899 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7901 target_configargs="$target_configargs ${tbaseargs}"
7903 # Passing a --with-cross-host argument lets the target libraries know
7904 # whether they are being built with a cross-compiler or being built
7905 # native. However, it would be better to use other mechanisms to make the
7906 # sorts of decisions they want to make on this basis. Please consider
7907 # this option to be deprecated. FIXME.
7908 if test x${is_cross_compiler} = xyes ; then
7909 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7912 # Special user-friendly check for native x86_64-linux build, if
7913 # multilib is not explicitly enabled.
7914 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7915 x86_64-*linux*:yes:$build:$build:)
7916 # Make sure we have a development environment that handles 32-bit
7917 dev64=no
7918 echo "int main () { return 0; }" > conftest.c
7919 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7920 if test $? = 0 ; then
7921 if test -s conftest || test -s conftest.exe ; then
7922 dev64=yes
7925 rm -f conftest*
7926 if test x${dev64} != xyes ; then
7927 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
7930 esac
7932 # Default to --enable-multilib.
7933 if test x${enable_multilib} = x ; then
7934 target_configargs="--enable-multilib ${target_configargs}"
7937 # Pass --with-newlib if appropriate. Note that target_configdirs has
7938 # changed from the earlier setting of with_newlib.
7939 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7940 target_configargs="--with-newlib ${target_configargs}"
7943 # Different target subdirs use different values of certain variables
7944 # (notably CXX). Worse, multilibs use *lots* of different values.
7945 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7946 # it doesn't automatically accept command-line overrides of them.
7947 # This means it's not safe for target subdirs to share a cache file,
7948 # which is disgusting, but there you have it. Hopefully this can be
7949 # fixed in future. It's still worthwhile to use a cache file for each
7950 # directory. I think.
7952 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7953 # We need to pass --target, as newer autoconf's requires consistency
7954 # for target_alias and gcc doesn't manage it consistently.
7955 target_configargs="--cache-file=./config.cache ${target_configargs}"
7957 FLAGS_FOR_TARGET=
7958 case " $target_configdirs " in
7959 *" newlib "*)
7960 case " $target_configargs " in
7961 *" --with-newlib "*)
7962 case "$target" in
7963 *-cygwin*)
7964 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7966 esac
7968 # If we're not building GCC, don't discard standard headers.
7969 if test -d ${srcdir}/gcc; then
7970 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7972 if test "${build}" != "${host}"; then
7973 # On Canadian crosses, CC_FOR_TARGET will have already been set
7974 # by `configure', so we won't have an opportunity to add -Bgcc/
7975 # to it. This is right: we don't want to search that directory
7976 # for binaries, but we want the header files in there, so add
7977 # them explicitly.
7978 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7980 # Someone might think of using the pre-installed headers on
7981 # Canadian crosses, in case the installed compiler is not fully
7982 # compatible with the compiler being built. In this case, it
7983 # would be better to flag an error than risking having
7984 # incompatible object files being constructed. We can't
7985 # guarantee that an error will be flagged, but let's hope the
7986 # compiler will do it, when presented with incompatible header
7987 # files.
7991 case "${target}-${is_cross_compiler}" in
7992 i[3456789]86-*-linux*-no)
7993 # Here host == target, so we don't need to build gcc,
7994 # so we don't want to discard standard headers.
7995 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7998 # If we're building newlib, use its generic headers last, but search
7999 # for any libc-related directories first (so make it the last -B
8000 # switch).
8001 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
8003 # If we're building libgloss, find the startup file, simulator library
8004 # and linker script.
8005 case " $target_configdirs " in
8006 *" libgloss "*)
8007 # Look for startup file, simulator library and maybe linker script.
8008 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
8009 # Look for libnosys.a in case the target needs it.
8010 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
8011 # Most targets have the linker script in the source directory.
8012 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
8014 esac
8016 esac
8018 esac
8020 esac
8022 case "$target" in
8023 x86_64-*mingw* | *-w64-mingw*)
8024 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8025 # however, use a symlink named 'mingw' in ${prefix} .
8026 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8028 *-mingw*)
8029 # MinGW can't be handled as Cygwin above since it does not use newlib.
8030 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'
8032 esac
8034 # Allow the user to override the flags for
8035 # our build compiler if desired.
8036 if test x"${build}" = x"${host}" ; then
8037 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8038 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
8039 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8040 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8043 # On Canadian crosses, we'll be searching the right directories for
8044 # the previously-installed cross compiler, so don't bother to add
8045 # flags for directories within the install tree of the compiler
8046 # being built; programs in there won't even run.
8047 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8048 # Search for pre-installed headers if nothing else fits.
8049 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
8052 if test "x${use_gnu_ld}" = x &&
8053 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8054 # Arrange for us to find uninstalled linker scripts.
8055 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
8058 # Search for other target-specific linker scripts and such.
8059 case "${target}" in
8060 mep*)
8061 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8063 esac
8065 # Makefile fragments.
8066 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8068 eval fragval=\$$frag
8069 if test $fragval != /dev/null; then
8070 eval $frag=${srcdir}/$fragval
8072 done
8078 # Miscellanea: directories, flags, etc.
8087 # Build module lists & subconfigure args.
8091 # Host module lists & subconfigure args.
8096 # Target module lists & subconfigure args.
8100 # Build tools.
8118 # Generate default definitions for YACC, M4, LEX and other programs that run
8119 # on the build machine. These are used if the Makefile can't locate these
8120 # programs in objdir.
8121 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8123 for ac_prog in 'bison -y' byacc yacc
8125 # Extract the first word of "$ac_prog", so it can be a program name with args.
8126 set dummy $ac_prog; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_YACC+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 if test -n "$YACC"; then
8133 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8138 IFS=$as_save_IFS
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_YACC="$ac_prog"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 break 2
8146 done
8147 done
8148 IFS=$as_save_IFS
8152 YACC=$ac_cv_prog_YACC
8153 if test -n "$YACC"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8155 $as_echo "$YACC" >&6; }
8156 else
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8162 test -n "$YACC" && break
8163 done
8164 test -n "$YACC" || YACC="$MISSING bison -y"
8166 case " $build_configdirs " in
8167 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8168 esac
8170 for ac_prog in bison
8172 # Extract the first word of "$ac_prog", so it can be a program name with args.
8173 set dummy $ac_prog; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if ${ac_cv_prog_BISON+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 if test -n "$BISON"; then
8180 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189 ac_cv_prog_BISON="$ac_prog"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8193 done
8194 done
8195 IFS=$as_save_IFS
8199 BISON=$ac_cv_prog_BISON
8200 if test -n "$BISON"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8202 $as_echo "$BISON" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8209 test -n "$BISON" && break
8210 done
8211 test -n "$BISON" || BISON="$MISSING bison"
8213 case " $build_configdirs " in
8214 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8215 esac
8217 for ac_prog in gm4 gnum4 m4
8219 # Extract the first word of "$ac_prog", so it can be a program name with args.
8220 set dummy $ac_prog; ac_word=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if ${ac_cv_prog_M4+:} false; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 if test -n "$M4"; then
8227 ac_cv_prog_M4="$M4" # Let the user override the test.
8228 else
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 for as_dir in $PATH
8232 IFS=$as_save_IFS
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8236 ac_cv_prog_M4="$ac_prog"
8237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 break 2
8240 done
8241 done
8242 IFS=$as_save_IFS
8246 M4=$ac_cv_prog_M4
8247 if test -n "$M4"; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8249 $as_echo "$M4" >&6; }
8250 else
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 $as_echo "no" >&6; }
8256 test -n "$M4" && break
8257 done
8258 test -n "$M4" || M4="$MISSING m4"
8260 case " $build_configdirs " in
8261 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8262 esac
8264 for ac_prog in flex lex
8266 # Extract the first word of "$ac_prog", so it can be a program name with args.
8267 set dummy $ac_prog; ac_word=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 $as_echo_n "checking for $ac_word... " >&6; }
8270 if ${ac_cv_prog_LEX+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 if test -n "$LEX"; then
8274 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8275 else
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8279 IFS=$as_save_IFS
8280 test -z "$as_dir" && as_dir=.
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8283 ac_cv_prog_LEX="$ac_prog"
8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 break 2
8287 done
8288 done
8289 IFS=$as_save_IFS
8293 LEX=$ac_cv_prog_LEX
8294 if test -n "$LEX"; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8296 $as_echo "$LEX" >&6; }
8297 else
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 $as_echo "no" >&6; }
8303 test -n "$LEX" && break
8304 done
8305 test -n "$LEX" || LEX="$MISSING flex"
8307 case " $build_configdirs " in
8308 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8309 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8310 esac
8312 for ac_prog in flex
8314 # Extract the first word of "$ac_prog", so it can be a program name with args.
8315 set dummy $ac_prog; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if ${ac_cv_prog_FLEX+:} false; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 if test -n "$FLEX"; then
8322 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8331 ac_cv_prog_FLEX="$ac_prog"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8335 done
8336 done
8337 IFS=$as_save_IFS
8341 FLEX=$ac_cv_prog_FLEX
8342 if test -n "$FLEX"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8344 $as_echo "$FLEX" >&6; }
8345 else
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8351 test -n "$FLEX" && break
8352 done
8353 test -n "$FLEX" || FLEX="$MISSING flex"
8355 case " $build_configdirs " in
8356 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8357 esac
8359 for ac_prog in makeinfo
8361 # Extract the first word of "$ac_prog", so it can be a program name with args.
8362 set dummy $ac_prog; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if ${ac_cv_prog_MAKEINFO+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 if test -n "$MAKEINFO"; then
8369 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8378 ac_cv_prog_MAKEINFO="$ac_prog"
8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 break 2
8382 done
8383 done
8384 IFS=$as_save_IFS
8388 MAKEINFO=$ac_cv_prog_MAKEINFO
8389 if test -n "$MAKEINFO"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8391 $as_echo "$MAKEINFO" >&6; }
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8398 test -n "$MAKEINFO" && break
8399 done
8400 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8402 case " $build_configdirs " in
8403 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8406 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8407 # higher, else we use the "missing" dummy.
8408 if ${MAKEINFO} --version \
8409 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8411 else
8412 MAKEINFO="$MISSING makeinfo"
8416 esac
8418 # FIXME: expect and dejagnu may become build tools?
8420 for ac_prog in expect
8422 # Extract the first word of "$ac_prog", so it can be a program name with args.
8423 set dummy $ac_prog; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if ${ac_cv_prog_EXPECT+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 if test -n "$EXPECT"; then
8430 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8431 else
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433 for as_dir in $PATH
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_EXPECT="$ac_prog"
8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 break 2
8443 done
8444 done
8445 IFS=$as_save_IFS
8449 EXPECT=$ac_cv_prog_EXPECT
8450 if test -n "$EXPECT"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8452 $as_echo "$EXPECT" >&6; }
8453 else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8459 test -n "$EXPECT" && break
8460 done
8461 test -n "$EXPECT" || EXPECT="expect"
8463 case " $configdirs " in
8464 *" expect "*)
8465 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8467 esac
8469 for ac_prog in runtest
8471 # Extract the first word of "$ac_prog", so it can be a program name with args.
8472 set dummy $ac_prog; ac_word=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if ${ac_cv_prog_RUNTEST+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 if test -n "$RUNTEST"; then
8479 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8480 else
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488 ac_cv_prog_RUNTEST="$ac_prog"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8492 done
8493 done
8494 IFS=$as_save_IFS
8498 RUNTEST=$ac_cv_prog_RUNTEST
8499 if test -n "$RUNTEST"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8501 $as_echo "$RUNTEST" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8508 test -n "$RUNTEST" && break
8509 done
8510 test -n "$RUNTEST" || RUNTEST="runtest"
8512 case " $configdirs " in
8513 *" dejagnu "*)
8514 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8516 esac
8519 # Host tools.
8520 ncn_tool_prefix=
8521 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8522 ncn_target_tool_prefix=
8523 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8527 if test -n "$AR"; then
8528 ac_cv_prog_AR=$AR
8529 elif test -n "$ac_cv_prog_AR"; then
8530 AR=$ac_cv_prog_AR
8533 if test -n "$ac_cv_prog_AR"; then
8534 for ncn_progname in ar; do
8535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8536 set dummy ${ncn_progname}; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if ${ac_cv_prog_AR+:} false; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 if test -n "$AR"; then
8543 ac_cv_prog_AR="$AR" # Let the user override the test.
8544 else
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8552 ac_cv_prog_AR="${ncn_progname}"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 break 2
8556 done
8557 done
8558 IFS=$as_save_IFS
8562 AR=$ac_cv_prog_AR
8563 if test -n "$AR"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8565 $as_echo "$AR" >&6; }
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8572 done
8575 for ncn_progname in ar; do
8576 if test -n "$ncn_tool_prefix"; then
8577 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8578 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if ${ac_cv_prog_AR+:} false; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 if test -n "$AR"; then
8585 ac_cv_prog_AR="$AR" # Let the user override the test.
8586 else
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 break 2
8598 done
8599 done
8600 IFS=$as_save_IFS
8604 AR=$ac_cv_prog_AR
8605 if test -n "$AR"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8607 $as_echo "$AR" >&6; }
8608 else
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8615 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8617 set dummy ${ncn_progname}; ac_word=$2
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619 $as_echo_n "checking for $ac_word... " >&6; }
8620 if ${ac_cv_prog_AR+:} false; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 if test -n "$AR"; then
8624 ac_cv_prog_AR="$AR" # Let the user override the test.
8625 else
8626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627 for as_dir in $PATH
8629 IFS=$as_save_IFS
8630 test -z "$as_dir" && as_dir=.
8631 for ac_exec_ext in '' $ac_executable_extensions; do
8632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8633 ac_cv_prog_AR="${ncn_progname}"
8634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8635 break 2
8637 done
8638 done
8639 IFS=$as_save_IFS
8643 AR=$ac_cv_prog_AR
8644 if test -n "$AR"; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8646 $as_echo "$AR" >&6; }
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 $as_echo "no" >&6; }
8654 test -n "$ac_cv_prog_AR" && break
8655 done
8657 if test -z "$ac_cv_prog_AR" ; then
8658 set dummy ar
8659 if test $build = $host ; then
8660 AR="$2"
8661 else
8662 AR="${ncn_tool_prefix}$2"
8668 if test -n "$AS"; then
8669 ac_cv_prog_AS=$AS
8670 elif test -n "$ac_cv_prog_AS"; then
8671 AS=$ac_cv_prog_AS
8674 if test -n "$ac_cv_prog_AS"; then
8675 for ncn_progname in as; do
8676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8677 set dummy ${ncn_progname}; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if ${ac_cv_prog_AS+:} false; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 if test -n "$AS"; then
8684 ac_cv_prog_AS="$AS" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8693 ac_cv_prog_AS="${ncn_progname}"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 break 2
8697 done
8698 done
8699 IFS=$as_save_IFS
8703 AS=$ac_cv_prog_AS
8704 if test -n "$AS"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8706 $as_echo "$AS" >&6; }
8707 else
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8713 done
8716 for ncn_progname in as; do
8717 if test -n "$ncn_tool_prefix"; then
8718 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8719 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721 $as_echo_n "checking for $ac_word... " >&6; }
8722 if ${ac_cv_prog_AS+:} false; then :
8723 $as_echo_n "(cached) " >&6
8724 else
8725 if test -n "$AS"; then
8726 ac_cv_prog_AS="$AS" # Let the user override the test.
8727 else
8728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729 for as_dir in $PATH
8731 IFS=$as_save_IFS
8732 test -z "$as_dir" && as_dir=.
8733 for ac_exec_ext in '' $ac_executable_extensions; do
8734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8735 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 break 2
8739 done
8740 done
8741 IFS=$as_save_IFS
8745 AS=$ac_cv_prog_AS
8746 if test -n "$AS"; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8748 $as_echo "$AS" >&6; }
8749 else
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751 $as_echo "no" >&6; }
8756 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8758 set dummy ${ncn_progname}; ac_word=$2
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8760 $as_echo_n "checking for $ac_word... " >&6; }
8761 if ${ac_cv_prog_AS+:} false; then :
8762 $as_echo_n "(cached) " >&6
8763 else
8764 if test -n "$AS"; then
8765 ac_cv_prog_AS="$AS" # Let the user override the test.
8766 else
8767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8768 for as_dir in $PATH
8770 IFS=$as_save_IFS
8771 test -z "$as_dir" && as_dir=.
8772 for ac_exec_ext in '' $ac_executable_extensions; do
8773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8774 ac_cv_prog_AS="${ncn_progname}"
8775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8776 break 2
8778 done
8779 done
8780 IFS=$as_save_IFS
8784 AS=$ac_cv_prog_AS
8785 if test -n "$AS"; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8787 $as_echo "$AS" >&6; }
8788 else
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8790 $as_echo "no" >&6; }
8795 test -n "$ac_cv_prog_AS" && break
8796 done
8798 if test -z "$ac_cv_prog_AS" ; then
8799 set dummy as
8800 if test $build = $host ; then
8801 AS="$2"
8802 else
8803 AS="${ncn_tool_prefix}$2"
8809 if test -n "$DLLTOOL"; then
8810 ac_cv_prog_DLLTOOL=$DLLTOOL
8811 elif test -n "$ac_cv_prog_DLLTOOL"; then
8812 DLLTOOL=$ac_cv_prog_DLLTOOL
8815 if test -n "$ac_cv_prog_DLLTOOL"; then
8816 for ncn_progname in dlltool; do
8817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8818 set dummy ${ncn_progname}; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if ${ac_cv_prog_DLLTOOL+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 if test -n "$DLLTOOL"; then
8825 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8826 else
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 for as_dir in $PATH
8830 IFS=$as_save_IFS
8831 test -z "$as_dir" && as_dir=.
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8834 ac_cv_prog_DLLTOOL="${ncn_progname}"
8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 break 2
8838 done
8839 done
8840 IFS=$as_save_IFS
8844 DLLTOOL=$ac_cv_prog_DLLTOOL
8845 if test -n "$DLLTOOL"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8847 $as_echo "$DLLTOOL" >&6; }
8848 else
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8854 done
8857 for ncn_progname in dlltool; do
8858 if test -n "$ncn_tool_prefix"; then
8859 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8860 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if ${ac_cv_prog_DLLTOOL+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 if test -n "$DLLTOOL"; then
8867 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8868 else
8869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8870 for as_dir in $PATH
8872 IFS=$as_save_IFS
8873 test -z "$as_dir" && as_dir=.
8874 for ac_exec_ext in '' $ac_executable_extensions; do
8875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8876 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8878 break 2
8880 done
8881 done
8882 IFS=$as_save_IFS
8886 DLLTOOL=$ac_cv_prog_DLLTOOL
8887 if test -n "$DLLTOOL"; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8889 $as_echo "$DLLTOOL" >&6; }
8890 else
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8897 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8899 set dummy ${ncn_progname}; ac_word=$2
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901 $as_echo_n "checking for $ac_word... " >&6; }
8902 if ${ac_cv_prog_DLLTOOL+:} false; then :
8903 $as_echo_n "(cached) " >&6
8904 else
8905 if test -n "$DLLTOOL"; then
8906 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8907 else
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8915 ac_cv_prog_DLLTOOL="${ncn_progname}"
8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 break 2
8919 done
8920 done
8921 IFS=$as_save_IFS
8925 DLLTOOL=$ac_cv_prog_DLLTOOL
8926 if test -n "$DLLTOOL"; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8928 $as_echo "$DLLTOOL" >&6; }
8929 else
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8936 test -n "$ac_cv_prog_DLLTOOL" && break
8937 done
8939 if test -z "$ac_cv_prog_DLLTOOL" ; then
8940 set dummy dlltool
8941 if test $build = $host ; then
8942 DLLTOOL="$2"
8943 else
8944 DLLTOOL="${ncn_tool_prefix}$2"
8950 if test -n "$LD"; then
8951 ac_cv_prog_LD=$LD
8952 elif test -n "$ac_cv_prog_LD"; then
8953 LD=$ac_cv_prog_LD
8956 if test -n "$ac_cv_prog_LD"; then
8957 for ncn_progname in ld; do
8958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8959 set dummy ${ncn_progname}; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if ${ac_cv_prog_LD+:} false; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 if test -n "$LD"; then
8966 ac_cv_prog_LD="$LD" # Let the user override the test.
8967 else
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 for as_dir in $PATH
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8975 ac_cv_prog_LD="${ncn_progname}"
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8979 done
8980 done
8981 IFS=$as_save_IFS
8985 LD=$ac_cv_prog_LD
8986 if test -n "$LD"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8988 $as_echo "$LD" >&6; }
8989 else
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8995 done
8998 for ncn_progname in ld; do
8999 if test -n "$ncn_tool_prefix"; then
9000 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9001 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if ${ac_cv_prog_LD+:} false; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 if test -n "$LD"; then
9008 ac_cv_prog_LD="$LD" # Let the user override the test.
9009 else
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011 for as_dir in $PATH
9013 IFS=$as_save_IFS
9014 test -z "$as_dir" && as_dir=.
9015 for ac_exec_ext in '' $ac_executable_extensions; do
9016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9017 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
9018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 break 2
9021 done
9022 done
9023 IFS=$as_save_IFS
9027 LD=$ac_cv_prog_LD
9028 if test -n "$LD"; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9030 $as_echo "$LD" >&6; }
9031 else
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033 $as_echo "no" >&6; }
9038 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9040 set dummy ${ncn_progname}; ac_word=$2
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042 $as_echo_n "checking for $ac_word... " >&6; }
9043 if ${ac_cv_prog_LD+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 if test -n "$LD"; then
9047 ac_cv_prog_LD="$LD" # Let the user override the test.
9048 else
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in $PATH
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
9055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9056 ac_cv_prog_LD="${ncn_progname}"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 break 2
9060 done
9061 done
9062 IFS=$as_save_IFS
9066 LD=$ac_cv_prog_LD
9067 if test -n "$LD"; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9069 $as_echo "$LD" >&6; }
9070 else
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072 $as_echo "no" >&6; }
9077 test -n "$ac_cv_prog_LD" && break
9078 done
9080 if test -z "$ac_cv_prog_LD" ; then
9081 set dummy ld
9082 if test $build = $host ; then
9083 LD="$2"
9084 else
9085 LD="${ncn_tool_prefix}$2"
9091 if test -n "$LIPO"; then
9092 ac_cv_prog_LIPO=$LIPO
9093 elif test -n "$ac_cv_prog_LIPO"; then
9094 LIPO=$ac_cv_prog_LIPO
9097 if test -n "$ac_cv_prog_LIPO"; then
9098 for ncn_progname in lipo; do
9099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9100 set dummy ${ncn_progname}; ac_word=$2
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9102 $as_echo_n "checking for $ac_word... " >&6; }
9103 if ${ac_cv_prog_LIPO+:} false; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 if test -n "$LIPO"; then
9107 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9108 else
9109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110 for as_dir in $PATH
9112 IFS=$as_save_IFS
9113 test -z "$as_dir" && as_dir=.
9114 for ac_exec_ext in '' $ac_executable_extensions; do
9115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9116 ac_cv_prog_LIPO="${ncn_progname}"
9117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9118 break 2
9120 done
9121 done
9122 IFS=$as_save_IFS
9126 LIPO=$ac_cv_prog_LIPO
9127 if test -n "$LIPO"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9129 $as_echo "$LIPO" >&6; }
9130 else
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9136 done
9139 for ncn_progname in lipo; do
9140 if test -n "$ncn_tool_prefix"; then
9141 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9142 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144 $as_echo_n "checking for $ac_word... " >&6; }
9145 if ${ac_cv_prog_LIPO+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 if test -n "$LIPO"; then
9149 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9150 else
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9154 IFS=$as_save_IFS
9155 test -z "$as_dir" && as_dir=.
9156 for ac_exec_ext in '' $ac_executable_extensions; do
9157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9158 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9160 break 2
9162 done
9163 done
9164 IFS=$as_save_IFS
9168 LIPO=$ac_cv_prog_LIPO
9169 if test -n "$LIPO"; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9171 $as_echo "$LIPO" >&6; }
9172 else
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174 $as_echo "no" >&6; }
9179 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9181 set dummy ${ncn_progname}; ac_word=$2
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183 $as_echo_n "checking for $ac_word... " >&6; }
9184 if ${ac_cv_prog_LIPO+:} false; then :
9185 $as_echo_n "(cached) " >&6
9186 else
9187 if test -n "$LIPO"; then
9188 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9189 else
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191 for as_dir in $PATH
9193 IFS=$as_save_IFS
9194 test -z "$as_dir" && as_dir=.
9195 for ac_exec_ext in '' $ac_executable_extensions; do
9196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9197 ac_cv_prog_LIPO="${ncn_progname}"
9198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9199 break 2
9201 done
9202 done
9203 IFS=$as_save_IFS
9207 LIPO=$ac_cv_prog_LIPO
9208 if test -n "$LIPO"; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9210 $as_echo "$LIPO" >&6; }
9211 else
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213 $as_echo "no" >&6; }
9218 test -n "$ac_cv_prog_LIPO" && break
9219 done
9221 if test -z "$ac_cv_prog_LIPO" ; then
9222 set dummy lipo
9223 if test $build = $host ; then
9224 LIPO="$2"
9225 else
9226 LIPO="${ncn_tool_prefix}$2"
9232 if test -n "$NM"; then
9233 ac_cv_prog_NM=$NM
9234 elif test -n "$ac_cv_prog_NM"; then
9235 NM=$ac_cv_prog_NM
9238 if test -n "$ac_cv_prog_NM"; then
9239 for ncn_progname in nm; do
9240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9241 set dummy ${ncn_progname}; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if ${ac_cv_prog_NM+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 if test -n "$NM"; then
9248 ac_cv_prog_NM="$NM" # Let the user override the test.
9249 else
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 for as_dir in $PATH
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9257 ac_cv_prog_NM="${ncn_progname}"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 break 2
9261 done
9262 done
9263 IFS=$as_save_IFS
9267 NM=$ac_cv_prog_NM
9268 if test -n "$NM"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9270 $as_echo "$NM" >&6; }
9271 else
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9277 done
9280 for ncn_progname in nm; do
9281 if test -n "$ncn_tool_prefix"; then
9282 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9283 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285 $as_echo_n "checking for $ac_word... " >&6; }
9286 if ${ac_cv_prog_NM+:} false; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 if test -n "$NM"; then
9290 ac_cv_prog_NM="$NM" # Let the user override the test.
9291 else
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9295 IFS=$as_save_IFS
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9301 break 2
9303 done
9304 done
9305 IFS=$as_save_IFS
9309 NM=$ac_cv_prog_NM
9310 if test -n "$NM"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9312 $as_echo "$NM" >&6; }
9313 else
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9320 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9322 set dummy ${ncn_progname}; ac_word=$2
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324 $as_echo_n "checking for $ac_word... " >&6; }
9325 if ${ac_cv_prog_NM+:} false; then :
9326 $as_echo_n "(cached) " >&6
9327 else
9328 if test -n "$NM"; then
9329 ac_cv_prog_NM="$NM" # Let the user override the test.
9330 else
9331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 for as_dir in $PATH
9334 IFS=$as_save_IFS
9335 test -z "$as_dir" && as_dir=.
9336 for ac_exec_ext in '' $ac_executable_extensions; do
9337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9338 ac_cv_prog_NM="${ncn_progname}"
9339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9340 break 2
9342 done
9343 done
9344 IFS=$as_save_IFS
9348 NM=$ac_cv_prog_NM
9349 if test -n "$NM"; then
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9351 $as_echo "$NM" >&6; }
9352 else
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354 $as_echo "no" >&6; }
9359 test -n "$ac_cv_prog_NM" && break
9360 done
9362 if test -z "$ac_cv_prog_NM" ; then
9363 set dummy nm
9364 if test $build = $host ; then
9365 NM="$2"
9366 else
9367 NM="${ncn_tool_prefix}$2"
9373 if test -n "$RANLIB"; then
9374 ac_cv_prog_RANLIB=$RANLIB
9375 elif test -n "$ac_cv_prog_RANLIB"; then
9376 RANLIB=$ac_cv_prog_RANLIB
9379 if test -n "$ac_cv_prog_RANLIB"; then
9380 for ncn_progname in ranlib; do
9381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9382 set dummy ${ncn_progname}; ac_word=$2
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 $as_echo_n "checking for $ac_word... " >&6; }
9385 if ${ac_cv_prog_RANLIB+:} false; then :
9386 $as_echo_n "(cached) " >&6
9387 else
9388 if test -n "$RANLIB"; then
9389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9390 else
9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392 for as_dir in $PATH
9394 IFS=$as_save_IFS
9395 test -z "$as_dir" && as_dir=.
9396 for ac_exec_ext in '' $ac_executable_extensions; do
9397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9398 ac_cv_prog_RANLIB="${ncn_progname}"
9399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 break 2
9402 done
9403 done
9404 IFS=$as_save_IFS
9408 RANLIB=$ac_cv_prog_RANLIB
9409 if test -n "$RANLIB"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9411 $as_echo "$RANLIB" >&6; }
9412 else
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9418 done
9421 for ncn_progname in ranlib; do
9422 if test -n "$ncn_tool_prefix"; then
9423 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9424 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9426 $as_echo_n "checking for $ac_word... " >&6; }
9427 if ${ac_cv_prog_RANLIB+:} false; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 if test -n "$RANLIB"; then
9431 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9432 else
9433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434 for as_dir in $PATH
9436 IFS=$as_save_IFS
9437 test -z "$as_dir" && as_dir=.
9438 for ac_exec_ext in '' $ac_executable_extensions; do
9439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9440 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9442 break 2
9444 done
9445 done
9446 IFS=$as_save_IFS
9450 RANLIB=$ac_cv_prog_RANLIB
9451 if test -n "$RANLIB"; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9453 $as_echo "$RANLIB" >&6; }
9454 else
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 $as_echo "no" >&6; }
9461 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9463 set dummy ${ncn_progname}; ac_word=$2
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9465 $as_echo_n "checking for $ac_word... " >&6; }
9466 if ${ac_cv_prog_RANLIB+:} false; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 if test -n "$RANLIB"; then
9470 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9471 else
9472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9473 for as_dir in $PATH
9475 IFS=$as_save_IFS
9476 test -z "$as_dir" && as_dir=.
9477 for ac_exec_ext in '' $ac_executable_extensions; do
9478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9479 ac_cv_prog_RANLIB="${ncn_progname}"
9480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9481 break 2
9483 done
9484 done
9485 IFS=$as_save_IFS
9489 RANLIB=$ac_cv_prog_RANLIB
9490 if test -n "$RANLIB"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9492 $as_echo "$RANLIB" >&6; }
9493 else
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9500 test -n "$ac_cv_prog_RANLIB" && break
9501 done
9503 if test -z "$ac_cv_prog_RANLIB" ; then
9504 RANLIB="true"
9509 if test -n "$STRIP"; then
9510 ac_cv_prog_STRIP=$STRIP
9511 elif test -n "$ac_cv_prog_STRIP"; then
9512 STRIP=$ac_cv_prog_STRIP
9515 if test -n "$ac_cv_prog_STRIP"; then
9516 for ncn_progname in strip; do
9517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9518 set dummy ${ncn_progname}; ac_word=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if ${ac_cv_prog_STRIP+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 if test -n "$STRIP"; then
9525 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9526 else
9527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528 for as_dir in $PATH
9530 IFS=$as_save_IFS
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
9533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9534 ac_cv_prog_STRIP="${ncn_progname}"
9535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 break 2
9538 done
9539 done
9540 IFS=$as_save_IFS
9544 STRIP=$ac_cv_prog_STRIP
9545 if test -n "$STRIP"; then
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9547 $as_echo "$STRIP" >&6; }
9548 else
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550 $as_echo "no" >&6; }
9554 done
9557 for ncn_progname in strip; do
9558 if test -n "$ncn_tool_prefix"; then
9559 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9560 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9562 $as_echo_n "checking for $ac_word... " >&6; }
9563 if ${ac_cv_prog_STRIP+:} false; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 if test -n "$STRIP"; then
9567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9568 else
9569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570 for as_dir in $PATH
9572 IFS=$as_save_IFS
9573 test -z "$as_dir" && as_dir=.
9574 for ac_exec_ext in '' $ac_executable_extensions; do
9575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9576 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9578 break 2
9580 done
9581 done
9582 IFS=$as_save_IFS
9586 STRIP=$ac_cv_prog_STRIP
9587 if test -n "$STRIP"; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9589 $as_echo "$STRIP" >&6; }
9590 else
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9597 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9599 set dummy ${ncn_progname}; ac_word=$2
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if ${ac_cv_prog_STRIP+:} false; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605 if test -n "$STRIP"; then
9606 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9607 else
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 for as_dir in $PATH
9611 IFS=$as_save_IFS
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9615 ac_cv_prog_STRIP="${ncn_progname}"
9616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 break 2
9619 done
9620 done
9621 IFS=$as_save_IFS
9625 STRIP=$ac_cv_prog_STRIP
9626 if test -n "$STRIP"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9628 $as_echo "$STRIP" >&6; }
9629 else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9636 test -n "$ac_cv_prog_STRIP" && break
9637 done
9639 if test -z "$ac_cv_prog_STRIP" ; then
9640 STRIP="true"
9645 if test -n "$WINDRES"; then
9646 ac_cv_prog_WINDRES=$WINDRES
9647 elif test -n "$ac_cv_prog_WINDRES"; then
9648 WINDRES=$ac_cv_prog_WINDRES
9651 if test -n "$ac_cv_prog_WINDRES"; then
9652 for ncn_progname in windres; do
9653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9654 set dummy ${ncn_progname}; ac_word=$2
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 $as_echo_n "checking for $ac_word... " >&6; }
9657 if ${ac_cv_prog_WINDRES+:} false; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 if test -n "$WINDRES"; then
9661 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9662 else
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664 for as_dir in $PATH
9666 IFS=$as_save_IFS
9667 test -z "$as_dir" && as_dir=.
9668 for ac_exec_ext in '' $ac_executable_extensions; do
9669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9670 ac_cv_prog_WINDRES="${ncn_progname}"
9671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9672 break 2
9674 done
9675 done
9676 IFS=$as_save_IFS
9680 WINDRES=$ac_cv_prog_WINDRES
9681 if test -n "$WINDRES"; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9683 $as_echo "$WINDRES" >&6; }
9684 else
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686 $as_echo "no" >&6; }
9690 done
9693 for ncn_progname in windres; do
9694 if test -n "$ncn_tool_prefix"; then
9695 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9696 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if ${ac_cv_prog_WINDRES+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 if test -n "$WINDRES"; then
9703 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9704 else
9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 for as_dir in $PATH
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
9710 for ac_exec_ext in '' $ac_executable_extensions; do
9711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9712 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714 break 2
9716 done
9717 done
9718 IFS=$as_save_IFS
9722 WINDRES=$ac_cv_prog_WINDRES
9723 if test -n "$WINDRES"; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9725 $as_echo "$WINDRES" >&6; }
9726 else
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9733 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9735 set dummy ${ncn_progname}; ac_word=$2
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9737 $as_echo_n "checking for $ac_word... " >&6; }
9738 if ${ac_cv_prog_WINDRES+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 if test -n "$WINDRES"; then
9742 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9743 else
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 for as_dir in $PATH
9747 IFS=$as_save_IFS
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9751 ac_cv_prog_WINDRES="${ncn_progname}"
9752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9753 break 2
9755 done
9756 done
9757 IFS=$as_save_IFS
9761 WINDRES=$ac_cv_prog_WINDRES
9762 if test -n "$WINDRES"; then
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9764 $as_echo "$WINDRES" >&6; }
9765 else
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 $as_echo "no" >&6; }
9772 test -n "$ac_cv_prog_WINDRES" && break
9773 done
9775 if test -z "$ac_cv_prog_WINDRES" ; then
9776 set dummy windres
9777 if test $build = $host ; then
9778 WINDRES="$2"
9779 else
9780 WINDRES="${ncn_tool_prefix}$2"
9786 if test -n "$WINDMC"; then
9787 ac_cv_prog_WINDMC=$WINDMC
9788 elif test -n "$ac_cv_prog_WINDMC"; then
9789 WINDMC=$ac_cv_prog_WINDMC
9792 if test -n "$ac_cv_prog_WINDMC"; then
9793 for ncn_progname in windmc; do
9794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9795 set dummy ${ncn_progname}; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if ${ac_cv_prog_WINDMC+:} false; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 if test -n "$WINDMC"; then
9802 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9811 ac_cv_prog_WINDMC="${ncn_progname}"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9815 done
9816 done
9817 IFS=$as_save_IFS
9821 WINDMC=$ac_cv_prog_WINDMC
9822 if test -n "$WINDMC"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9824 $as_echo "$WINDMC" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9831 done
9834 for ncn_progname in windmc; do
9835 if test -n "$ncn_tool_prefix"; then
9836 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9837 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9839 $as_echo_n "checking for $ac_word... " >&6; }
9840 if ${ac_cv_prog_WINDMC+:} false; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 if test -n "$WINDMC"; then
9844 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9845 else
9846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 for as_dir in $PATH
9849 IFS=$as_save_IFS
9850 test -z "$as_dir" && as_dir=.
9851 for ac_exec_ext in '' $ac_executable_extensions; do
9852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9853 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9855 break 2
9857 done
9858 done
9859 IFS=$as_save_IFS
9863 WINDMC=$ac_cv_prog_WINDMC
9864 if test -n "$WINDMC"; then
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9866 $as_echo "$WINDMC" >&6; }
9867 else
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869 $as_echo "no" >&6; }
9874 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9876 set dummy ${ncn_progname}; ac_word=$2
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9878 $as_echo_n "checking for $ac_word... " >&6; }
9879 if ${ac_cv_prog_WINDMC+:} false; then :
9880 $as_echo_n "(cached) " >&6
9881 else
9882 if test -n "$WINDMC"; then
9883 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9884 else
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
9890 for ac_exec_ext in '' $ac_executable_extensions; do
9891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9892 ac_cv_prog_WINDMC="${ncn_progname}"
9893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894 break 2
9896 done
9897 done
9898 IFS=$as_save_IFS
9902 WINDMC=$ac_cv_prog_WINDMC
9903 if test -n "$WINDMC"; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9905 $as_echo "$WINDMC" >&6; }
9906 else
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }
9913 test -n "$ac_cv_prog_WINDMC" && break
9914 done
9916 if test -z "$ac_cv_prog_WINDMC" ; then
9917 set dummy windmc
9918 if test $build = $host ; then
9919 WINDMC="$2"
9920 else
9921 WINDMC="${ncn_tool_prefix}$2"
9927 if test -n "$OBJCOPY"; then
9928 ac_cv_prog_OBJCOPY=$OBJCOPY
9929 elif test -n "$ac_cv_prog_OBJCOPY"; then
9930 OBJCOPY=$ac_cv_prog_OBJCOPY
9933 if test -n "$ac_cv_prog_OBJCOPY"; then
9934 for ncn_progname in objcopy; do
9935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9936 set dummy ${ncn_progname}; ac_word=$2
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938 $as_echo_n "checking for $ac_word... " >&6; }
9939 if ${ac_cv_prog_OBJCOPY+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 if test -n "$OBJCOPY"; then
9943 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9944 else
9945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952 ac_cv_prog_OBJCOPY="${ncn_progname}"
9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9956 done
9957 done
9958 IFS=$as_save_IFS
9962 OBJCOPY=$ac_cv_prog_OBJCOPY
9963 if test -n "$OBJCOPY"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9965 $as_echo "$OBJCOPY" >&6; }
9966 else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 $as_echo "no" >&6; }
9972 done
9975 for ncn_progname in objcopy; do
9976 if test -n "$ncn_tool_prefix"; then
9977 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9978 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980 $as_echo_n "checking for $ac_word... " >&6; }
9981 if ${ac_cv_prog_OBJCOPY+:} false; then :
9982 $as_echo_n "(cached) " >&6
9983 else
9984 if test -n "$OBJCOPY"; then
9985 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9986 else
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 for as_dir in $PATH
9990 IFS=$as_save_IFS
9991 test -z "$as_dir" && as_dir=.
9992 for ac_exec_ext in '' $ac_executable_extensions; do
9993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9994 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996 break 2
9998 done
9999 done
10000 IFS=$as_save_IFS
10004 OBJCOPY=$ac_cv_prog_OBJCOPY
10005 if test -n "$OBJCOPY"; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10007 $as_echo "$OBJCOPY" >&6; }
10008 else
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10010 $as_echo "no" >&6; }
10015 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
10016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10017 set dummy ${ncn_progname}; ac_word=$2
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10019 $as_echo_n "checking for $ac_word... " >&6; }
10020 if ${ac_cv_prog_OBJCOPY+:} false; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 if test -n "$OBJCOPY"; then
10024 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10025 else
10026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027 for as_dir in $PATH
10029 IFS=$as_save_IFS
10030 test -z "$as_dir" && as_dir=.
10031 for ac_exec_ext in '' $ac_executable_extensions; do
10032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10033 ac_cv_prog_OBJCOPY="${ncn_progname}"
10034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10035 break 2
10037 done
10038 done
10039 IFS=$as_save_IFS
10043 OBJCOPY=$ac_cv_prog_OBJCOPY
10044 if test -n "$OBJCOPY"; then
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10046 $as_echo "$OBJCOPY" >&6; }
10047 else
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049 $as_echo "no" >&6; }
10054 test -n "$ac_cv_prog_OBJCOPY" && break
10055 done
10057 if test -z "$ac_cv_prog_OBJCOPY" ; then
10058 set dummy objcopy
10059 if test $build = $host ; then
10060 OBJCOPY="$2"
10061 else
10062 OBJCOPY="${ncn_tool_prefix}$2"
10068 if test -n "$OBJDUMP"; then
10069 ac_cv_prog_OBJDUMP=$OBJDUMP
10070 elif test -n "$ac_cv_prog_OBJDUMP"; then
10071 OBJDUMP=$ac_cv_prog_OBJDUMP
10074 if test -n "$ac_cv_prog_OBJDUMP"; then
10075 for ncn_progname in objdump; do
10076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10077 set dummy ${ncn_progname}; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if ${ac_cv_prog_OBJDUMP+:} false; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 if test -n "$OBJDUMP"; then
10084 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10085 else
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10089 IFS=$as_save_IFS
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10093 ac_cv_prog_OBJDUMP="${ncn_progname}"
10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 break 2
10097 done
10098 done
10099 IFS=$as_save_IFS
10103 OBJDUMP=$ac_cv_prog_OBJDUMP
10104 if test -n "$OBJDUMP"; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10106 $as_echo "$OBJDUMP" >&6; }
10107 else
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10113 done
10116 for ncn_progname in objdump; do
10117 if test -n "$ncn_tool_prefix"; then
10118 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10119 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10121 $as_echo_n "checking for $ac_word... " >&6; }
10122 if ${ac_cv_prog_OBJDUMP+:} false; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125 if test -n "$OBJDUMP"; then
10126 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10127 else
10128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10129 for as_dir in $PATH
10131 IFS=$as_save_IFS
10132 test -z "$as_dir" && as_dir=.
10133 for ac_exec_ext in '' $ac_executable_extensions; do
10134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10135 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10137 break 2
10139 done
10140 done
10141 IFS=$as_save_IFS
10145 OBJDUMP=$ac_cv_prog_OBJDUMP
10146 if test -n "$OBJDUMP"; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10148 $as_echo "$OBJDUMP" >&6; }
10149 else
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10156 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10158 set dummy ${ncn_progname}; ac_word=$2
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10160 $as_echo_n "checking for $ac_word... " >&6; }
10161 if ${ac_cv_prog_OBJDUMP+:} false; then :
10162 $as_echo_n "(cached) " >&6
10163 else
10164 if test -n "$OBJDUMP"; then
10165 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10166 else
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10170 IFS=$as_save_IFS
10171 test -z "$as_dir" && as_dir=.
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10174 ac_cv_prog_OBJDUMP="${ncn_progname}"
10175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10176 break 2
10178 done
10179 done
10180 IFS=$as_save_IFS
10184 OBJDUMP=$ac_cv_prog_OBJDUMP
10185 if test -n "$OBJDUMP"; then
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10187 $as_echo "$OBJDUMP" >&6; }
10188 else
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190 $as_echo "no" >&6; }
10195 test -n "$ac_cv_prog_OBJDUMP" && break
10196 done
10198 if test -z "$ac_cv_prog_OBJDUMP" ; then
10199 set dummy objdump
10200 if test $build = $host ; then
10201 OBJDUMP="$2"
10202 else
10203 OBJDUMP="${ncn_tool_prefix}$2"
10209 if test -n "$READELF"; then
10210 ac_cv_prog_READELF=$READELF
10211 elif test -n "$ac_cv_prog_READELF"; then
10212 READELF=$ac_cv_prog_READELF
10215 if test -n "$ac_cv_prog_READELF"; then
10216 for ncn_progname in readelf; do
10217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10218 set dummy ${ncn_progname}; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if ${ac_cv_prog_READELF+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 if test -n "$READELF"; then
10225 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10226 else
10227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228 for as_dir in $PATH
10230 IFS=$as_save_IFS
10231 test -z "$as_dir" && as_dir=.
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10234 ac_cv_prog_READELF="${ncn_progname}"
10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10236 break 2
10238 done
10239 done
10240 IFS=$as_save_IFS
10244 READELF=$ac_cv_prog_READELF
10245 if test -n "$READELF"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10247 $as_echo "$READELF" >&6; }
10248 else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10254 done
10257 for ncn_progname in readelf; do
10258 if test -n "$ncn_tool_prefix"; then
10259 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10260 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10262 $as_echo_n "checking for $ac_word... " >&6; }
10263 if ${ac_cv_prog_READELF+:} false; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 if test -n "$READELF"; then
10267 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10268 else
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in $PATH
10272 IFS=$as_save_IFS
10273 test -z "$as_dir" && as_dir=.
10274 for ac_exec_ext in '' $ac_executable_extensions; do
10275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10276 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10278 break 2
10280 done
10281 done
10282 IFS=$as_save_IFS
10286 READELF=$ac_cv_prog_READELF
10287 if test -n "$READELF"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10289 $as_echo "$READELF" >&6; }
10290 else
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10297 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10299 set dummy ${ncn_progname}; ac_word=$2
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301 $as_echo_n "checking for $ac_word... " >&6; }
10302 if ${ac_cv_prog_READELF+:} false; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 if test -n "$READELF"; then
10306 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10307 else
10308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309 for as_dir in $PATH
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
10313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10315 ac_cv_prog_READELF="${ncn_progname}"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10317 break 2
10319 done
10320 done
10321 IFS=$as_save_IFS
10325 READELF=$ac_cv_prog_READELF
10326 if test -n "$READELF"; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10328 $as_echo "$READELF" >&6; }
10329 else
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10336 test -n "$ac_cv_prog_READELF" && break
10337 done
10339 if test -z "$ac_cv_prog_READELF" ; then
10340 set dummy readelf
10341 if test $build = $host ; then
10342 READELF="$2"
10343 else
10344 READELF="${ncn_tool_prefix}$2"
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
10355 $as_echo_n "checking for -plugin option... " >&6; }
10357 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
10358 plugin_option=
10359 for plugin in $plugin_names; do
10360 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
10361 if test x$plugin_so = x$plugin; then
10362 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
10364 if test x$plugin_so != x$plugin; then
10365 plugin_option="--plugin $plugin_so"
10366 break
10368 done
10369 if test -n "$ac_tool_prefix"; then
10370 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10371 set dummy ${ac_tool_prefix}ar; ac_word=$2
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373 $as_echo_n "checking for $ac_word... " >&6; }
10374 if ${ac_cv_prog_AR+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 if test -n "$AR"; then
10378 ac_cv_prog_AR="$AR" # Let the user override the test.
10379 else
10380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 for as_dir in $PATH
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10387 ac_cv_prog_AR="${ac_tool_prefix}ar"
10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10391 done
10392 done
10393 IFS=$as_save_IFS
10397 AR=$ac_cv_prog_AR
10398 if test -n "$AR"; then
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10400 $as_echo "$AR" >&6; }
10401 else
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403 $as_echo "no" >&6; }
10408 if test -z "$ac_cv_prog_AR"; then
10409 ac_ct_AR=$AR
10410 # Extract the first word of "ar", so it can be a program name with args.
10411 set dummy ar; ac_word=$2
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413 $as_echo_n "checking for $ac_word... " >&6; }
10414 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 if test -n "$ac_ct_AR"; then
10418 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10419 else
10420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421 for as_dir in $PATH
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10427 ac_cv_prog_ac_ct_AR="ar"
10428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10429 break 2
10431 done
10432 done
10433 IFS=$as_save_IFS
10437 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10438 if test -n "$ac_ct_AR"; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10440 $as_echo "$ac_ct_AR" >&6; }
10441 else
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443 $as_echo "no" >&6; }
10446 if test "x$ac_ct_AR" = x; then
10447 AR=""
10448 else
10449 case $cross_compiling:$ac_tool_warned in
10450 yes:)
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10453 ac_tool_warned=yes ;;
10454 esac
10455 AR=$ac_ct_AR
10457 else
10458 AR="$ac_cv_prog_AR"
10461 if test "${AR}" = "" ; then
10462 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
10464 touch conftest.c
10465 ${AR} $plugin_option rc conftest.a conftest.c
10466 if test "$?" != 0; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
10468 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
10469 plugin_option=
10471 rm -f conftest.*
10472 if test -n "$plugin_option"; then
10473 PLUGIN_OPTION="$plugin_option"
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
10475 $as_echo "$plugin_option" >&6; }
10476 else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; }
10481 AR_PLUGIN_OPTION=
10482 RANLIB_PLUGIN_OPTION=
10483 if test -n "$PLUGIN_OPTION"; then
10484 if $AR --help 2>&1 | grep -q "\--plugin"; then
10485 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
10487 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
10488 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
10490 else
10491 if test "$enable_pgo_build" != "no"; then
10492 as_fn_error $? "AR with --plugin and rc is required for LTO build" "$LINENO" 5
10498 # Target tools.
10500 # Check whether --with-build-time-tools was given.
10501 if test "${with_build_time_tools+set}" = set; then :
10502 withval=$with_build_time_tools; case x"$withval" in
10503 x/*) ;;
10505 with_build_time_tools=
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10507 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10509 esac
10510 else
10511 with_build_time_tools=
10517 if test -n "$CC_FOR_TARGET"; then
10518 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10519 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10520 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10523 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10524 for ncn_progname in cc gcc; do
10525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10526 set dummy ${ncn_progname}; ac_word=$2
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10528 $as_echo_n "checking for $ac_word... " >&6; }
10529 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10530 $as_echo_n "(cached) " >&6
10531 else
10532 if test -n "$CC_FOR_TARGET"; then
10533 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10534 else
10535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536 for as_dir in $PATH
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10542 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10546 done
10547 done
10548 IFS=$as_save_IFS
10552 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10553 if test -n "$CC_FOR_TARGET"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10555 $as_echo "$CC_FOR_TARGET" >&6; }
10556 else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10562 done
10565 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10566 for ncn_progname in cc gcc; do
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10568 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10569 if test -x $with_build_time_tools/${ncn_progname}; then
10570 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572 $as_echo "yes" >&6; }
10573 break
10574 else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; }
10578 done
10581 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10582 for ncn_progname in cc gcc; do
10583 if test -n "$ncn_target_tool_prefix"; then
10584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10585 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587 $as_echo_n "checking for $ac_word... " >&6; }
10588 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10589 $as_echo_n "(cached) " >&6
10590 else
10591 if test -n "$CC_FOR_TARGET"; then
10592 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10593 else
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in $PATH
10597 IFS=$as_save_IFS
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 break 2
10605 done
10606 done
10607 IFS=$as_save_IFS
10611 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10612 if test -n "$CC_FOR_TARGET"; then
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10614 $as_echo "$CC_FOR_TARGET" >&6; }
10615 else
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617 $as_echo "no" >&6; }
10622 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10624 set dummy ${ncn_progname}; ac_word=$2
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626 $as_echo_n "checking for $ac_word... " >&6; }
10627 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
10628 $as_echo_n "(cached) " >&6
10629 else
10630 if test -n "$CC_FOR_TARGET"; then
10631 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10632 else
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10640 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10644 done
10645 done
10646 IFS=$as_save_IFS
10650 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10651 if test -n "$CC_FOR_TARGET"; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10653 $as_echo "$CC_FOR_TARGET" >&6; }
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10661 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10662 done
10665 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10666 set dummy cc gcc
10667 if test $build = $target ; then
10668 CC_FOR_TARGET="$2"
10669 else
10670 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10672 else
10673 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10678 if test -n "$CXX_FOR_TARGET"; then
10679 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10680 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10681 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10684 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10685 for ncn_progname in c++ g++ cxx gxx; do
10686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10687 set dummy ${ncn_progname}; ac_word=$2
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10689 $as_echo_n "checking for $ac_word... " >&6; }
10690 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
10691 $as_echo_n "(cached) " >&6
10692 else
10693 if test -n "$CXX_FOR_TARGET"; then
10694 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10695 else
10696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697 for as_dir in $PATH
10699 IFS=$as_save_IFS
10700 test -z "$as_dir" && as_dir=.
10701 for ac_exec_ext in '' $ac_executable_extensions; do
10702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10703 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10705 break 2
10707 done
10708 done
10709 IFS=$as_save_IFS
10713 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10714 if test -n "$CXX_FOR_TARGET"; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10716 $as_echo "$CXX_FOR_TARGET" >&6; }
10717 else
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }
10723 done
10726 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10727 for ncn_progname in c++ g++ cxx gxx; do
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10729 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10730 if test -x $with_build_time_tools/${ncn_progname}; then
10731 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10733 $as_echo "yes" >&6; }
10734 break
10735 else
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10739 done
10742 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10743 for ncn_progname in c++ g++ cxx gxx; do
10744 if test -n "$ncn_target_tool_prefix"; then
10745 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10746 set dummy ${ncn_target_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_CXX_FOR_TARGET+:} false; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 if test -n "$CXX_FOR_TARGET"; then
10753 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # 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_CXX_FOR_TARGET="${ncn_target_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 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10773 if test -n "$CXX_FOR_TARGET"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10775 $as_echo "$CXX_FOR_TARGET" >&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_CXX_FOR_TARGET" && test $build = $target ; 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_CXX_FOR_TARGET+:} false; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 if test -n "$CXX_FOR_TARGET"; then
10792 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # 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_CXX_FOR_TARGET="${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 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10812 if test -n "$CXX_FOR_TARGET"; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10814 $as_echo "$CXX_FOR_TARGET" >&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_CXX_FOR_TARGET" && break
10823 done
10826 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10827 set dummy c++ g++ cxx gxx
10828 if test $build = $target ; then
10829 CXX_FOR_TARGET="$2"
10830 else
10831 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10833 else
10834 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10839 if test -n "$GCC_FOR_TARGET"; then
10840 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10841 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10842 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10845 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10846 for ncn_progname in gcc; do
10847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10848 set dummy ${ncn_progname}; ac_word=$2
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10850 $as_echo_n "checking for $ac_word... " >&6; }
10851 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 if test -n "$GCC_FOR_TARGET"; then
10855 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10856 else
10857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858 for as_dir in $PATH
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10864 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10868 done
10869 done
10870 IFS=$as_save_IFS
10874 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10875 if test -n "$GCC_FOR_TARGET"; then
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10877 $as_echo "$GCC_FOR_TARGET" >&6; }
10878 else
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880 $as_echo "no" >&6; }
10884 done
10887 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10888 for ncn_progname in gcc; do
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10890 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10891 if test -x $with_build_time_tools/${ncn_progname}; then
10892 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10894 $as_echo "yes" >&6; }
10895 break
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10900 done
10903 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10904 for ncn_progname in gcc; do
10905 if test -n "$ncn_target_tool_prefix"; then
10906 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10907 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909 $as_echo_n "checking for $ac_word... " >&6; }
10910 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10911 $as_echo_n "(cached) " >&6
10912 else
10913 if test -n "$GCC_FOR_TARGET"; then
10914 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10915 else
10916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10917 for as_dir in $PATH
10919 IFS=$as_save_IFS
10920 test -z "$as_dir" && as_dir=.
10921 for ac_exec_ext in '' $ac_executable_extensions; do
10922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10923 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10925 break 2
10927 done
10928 done
10929 IFS=$as_save_IFS
10933 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10934 if test -n "$GCC_FOR_TARGET"; then
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10936 $as_echo "$GCC_FOR_TARGET" >&6; }
10937 else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939 $as_echo "no" >&6; }
10944 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10946 set dummy ${ncn_progname}; ac_word=$2
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10948 $as_echo_n "checking for $ac_word... " >&6; }
10949 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
10950 $as_echo_n "(cached) " >&6
10951 else
10952 if test -n "$GCC_FOR_TARGET"; then
10953 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10954 else
10955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10956 for as_dir in $PATH
10958 IFS=$as_save_IFS
10959 test -z "$as_dir" && as_dir=.
10960 for ac_exec_ext in '' $ac_executable_extensions; do
10961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10962 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10964 break 2
10966 done
10967 done
10968 IFS=$as_save_IFS
10972 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10973 if test -n "$GCC_FOR_TARGET"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10975 $as_echo "$GCC_FOR_TARGET" >&6; }
10976 else
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10983 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10984 done
10987 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10988 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10989 else
10990 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10995 if test -n "$GFORTRAN_FOR_TARGET"; then
10996 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10997 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10998 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11001 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11002 for ncn_progname in gfortran; do
11003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11004 set dummy ${ncn_progname}; ac_word=$2
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006 $as_echo_n "checking for $ac_word... " >&6; }
11007 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11008 $as_echo_n "(cached) " >&6
11009 else
11010 if test -n "$GFORTRAN_FOR_TARGET"; then
11011 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11012 else
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11016 IFS=$as_save_IFS
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11022 break 2
11024 done
11025 done
11026 IFS=$as_save_IFS
11030 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11031 if test -n "$GFORTRAN_FOR_TARGET"; then
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11033 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11040 done
11043 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
11044 for ncn_progname in gfortran; do
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11046 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11047 if test -x $with_build_time_tools/${ncn_progname}; then
11048 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11050 $as_echo "yes" >&6; }
11051 break
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11056 done
11059 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
11060 for ncn_progname in gfortran; do
11061 if test -n "$ncn_target_tool_prefix"; then
11062 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11063 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11065 $as_echo_n "checking for $ac_word... " >&6; }
11066 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 if test -n "$GFORTRAN_FOR_TARGET"; then
11070 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11071 else
11072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073 for as_dir in $PATH
11075 IFS=$as_save_IFS
11076 test -z "$as_dir" && as_dir=.
11077 for ac_exec_ext in '' $ac_executable_extensions; do
11078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11079 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 break 2
11083 done
11084 done
11085 IFS=$as_save_IFS
11089 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11090 if test -n "$GFORTRAN_FOR_TARGET"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11092 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11093 else
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095 $as_echo "no" >&6; }
11100 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11102 set dummy ${ncn_progname}; ac_word=$2
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 if test -n "$GFORTRAN_FOR_TARGET"; then
11109 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11110 else
11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112 for as_dir in $PATH
11114 IFS=$as_save_IFS
11115 test -z "$as_dir" && as_dir=.
11116 for ac_exec_ext in '' $ac_executable_extensions; do
11117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11118 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 break 2
11122 done
11123 done
11124 IFS=$as_save_IFS
11128 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
11129 if test -n "$GFORTRAN_FOR_TARGET"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11131 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11139 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11140 done
11143 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11144 set dummy gfortran
11145 if test $build = $target ; then
11146 GFORTRAN_FOR_TARGET="$2"
11147 else
11148 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11150 else
11151 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11156 if test -n "$GOC_FOR_TARGET"; then
11157 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11158 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11159 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11162 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11163 for ncn_progname in gccgo; do
11164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11165 set dummy ${ncn_progname}; ac_word=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 if test -n "$GOC_FOR_TARGET"; then
11172 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11173 else
11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11181 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 break 2
11185 done
11186 done
11187 IFS=$as_save_IFS
11191 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11192 if test -n "$GOC_FOR_TARGET"; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11194 $as_echo "$GOC_FOR_TARGET" >&6; }
11195 else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11201 done
11204 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11205 for ncn_progname in gccgo; do
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11207 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11208 if test -x $with_build_time_tools/${ncn_progname}; then
11209 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11211 $as_echo "yes" >&6; }
11212 break
11213 else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; }
11217 done
11220 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11221 for ncn_progname in gccgo; do
11222 if test -n "$ncn_target_tool_prefix"; then
11223 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11224 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11226 $as_echo_n "checking for $ac_word... " >&6; }
11227 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 if test -n "$GOC_FOR_TARGET"; then
11231 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11232 else
11233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234 for as_dir in $PATH
11236 IFS=$as_save_IFS
11237 test -z "$as_dir" && as_dir=.
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11240 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242 break 2
11244 done
11245 done
11246 IFS=$as_save_IFS
11250 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11251 if test -n "$GOC_FOR_TARGET"; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11253 $as_echo "$GOC_FOR_TARGET" >&6; }
11254 else
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256 $as_echo "no" >&6; }
11261 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11263 set dummy ${ncn_progname}; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265 $as_echo_n "checking for $ac_word... " >&6; }
11266 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 if test -n "$GOC_FOR_TARGET"; then
11270 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11271 else
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 break 2
11283 done
11284 done
11285 IFS=$as_save_IFS
11289 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11290 if test -n "$GOC_FOR_TARGET"; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11292 $as_echo "$GOC_FOR_TARGET" >&6; }
11293 else
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11300 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11301 done
11304 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11305 set dummy gccgo
11306 if test $build = $target ; then
11307 GOC_FOR_TARGET="$2"
11308 else
11309 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11311 else
11312 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11317 cat > conftest.c << \EOF
11318 #ifdef __GNUC__
11319 gcc_yay;
11320 #endif
11322 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11323 have_gcc_for_target=yes
11324 else
11325 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11326 have_gcc_for_target=no
11328 rm conftest.c
11333 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11334 if test -n "$with_build_time_tools"; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11336 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11337 if test -x $with_build_time_tools/ar; then
11338 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11339 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11341 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11342 else
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11346 elif test $build != $host && test $have_gcc_for_target = yes; then
11347 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11348 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11349 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11352 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11353 # Extract the first word of "ar", so it can be a program name with args.
11354 set dummy ar; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 $as_echo_n "checking for $ac_word... " >&6; }
11357 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11360 case $AR_FOR_TARGET in
11361 [\\/]* | ?:[\\/]*)
11362 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366 for as_dir in $gcc_cv_tool_dirs
11368 IFS=$as_save_IFS
11369 test -z "$as_dir" && as_dir=.
11370 for ac_exec_ext in '' $ac_executable_extensions; do
11371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11372 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11374 break 2
11376 done
11377 done
11378 IFS=$as_save_IFS
11381 esac
11383 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11384 if test -n "$AR_FOR_TARGET"; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11386 $as_echo "$AR_FOR_TARGET" >&6; }
11387 else
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11394 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11397 if test -n "$AR_FOR_TARGET"; then
11398 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11399 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11400 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11403 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11404 for ncn_progname in ar; do
11405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11406 set dummy ${ncn_progname}; ac_word=$2
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11408 $as_echo_n "checking for $ac_word... " >&6; }
11409 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 if test -n "$AR_FOR_TARGET"; then
11413 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11414 else
11415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416 for as_dir in $PATH
11418 IFS=$as_save_IFS
11419 test -z "$as_dir" && as_dir=.
11420 for ac_exec_ext in '' $ac_executable_extensions; do
11421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11422 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 break 2
11426 done
11427 done
11428 IFS=$as_save_IFS
11432 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11433 if test -n "$AR_FOR_TARGET"; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11435 $as_echo "$AR_FOR_TARGET" >&6; }
11436 else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438 $as_echo "no" >&6; }
11442 done
11445 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11446 for ncn_progname in ar; do
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11448 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11449 if test -x $with_build_time_tools/${ncn_progname}; then
11450 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11452 $as_echo "yes" >&6; }
11453 break
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11458 done
11461 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11462 for ncn_progname in ar; do
11463 if test -n "$ncn_target_tool_prefix"; then
11464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11465 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11469 $as_echo_n "(cached) " >&6
11470 else
11471 if test -n "$AR_FOR_TARGET"; then
11472 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11473 else
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11477 IFS=$as_save_IFS
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
11480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11481 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11483 break 2
11485 done
11486 done
11487 IFS=$as_save_IFS
11491 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11492 if test -n "$AR_FOR_TARGET"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11494 $as_echo "$AR_FOR_TARGET" >&6; }
11495 else
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11502 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11504 set dummy ${ncn_progname}; ac_word=$2
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506 $as_echo_n "checking for $ac_word... " >&6; }
11507 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 if test -n "$AR_FOR_TARGET"; then
11511 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11512 else
11513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11516 IFS=$as_save_IFS
11517 test -z "$as_dir" && as_dir=.
11518 for ac_exec_ext in '' $ac_executable_extensions; do
11519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11520 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522 break 2
11524 done
11525 done
11526 IFS=$as_save_IFS
11530 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11531 if test -n "$AR_FOR_TARGET"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11533 $as_echo "$AR_FOR_TARGET" >&6; }
11534 else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11541 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11542 done
11545 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11546 set dummy ar
11547 if test $build = $target ; then
11548 AR_FOR_TARGET="$2"
11549 else
11550 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11552 else
11553 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11556 else
11557 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11563 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11564 if test -n "$with_build_time_tools"; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11566 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11567 if test -x $with_build_time_tools/as; then
11568 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11569 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11571 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11572 else
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574 $as_echo "no" >&6; }
11576 elif test $build != $host && test $have_gcc_for_target = yes; then
11577 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11578 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11579 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11582 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11583 # Extract the first word of "as", so it can be a program name with args.
11584 set dummy as; ac_word=$2
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11586 $as_echo_n "checking for $ac_word... " >&6; }
11587 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 case $AS_FOR_TARGET in
11591 [\\/]* | ?:[\\/]*)
11592 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in $gcc_cv_tool_dirs
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
11600 for ac_exec_ext in '' $ac_executable_extensions; do
11601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11602 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11604 break 2
11606 done
11607 done
11608 IFS=$as_save_IFS
11611 esac
11613 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11614 if test -n "$AS_FOR_TARGET"; then
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11616 $as_echo "$AS_FOR_TARGET" >&6; }
11617 else
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11624 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11627 if test -n "$AS_FOR_TARGET"; then
11628 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11629 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11630 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11633 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11634 for ncn_progname in as; do
11635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11636 set dummy ${ncn_progname}; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 if test -n "$AS_FOR_TARGET"; then
11643 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11644 else
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11648 IFS=$as_save_IFS
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654 break 2
11656 done
11657 done
11658 IFS=$as_save_IFS
11662 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11663 if test -n "$AS_FOR_TARGET"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11665 $as_echo "$AS_FOR_TARGET" >&6; }
11666 else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11672 done
11675 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11676 for ncn_progname in as; do
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11678 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11679 if test -x $with_build_time_tools/${ncn_progname}; then
11680 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11682 $as_echo "yes" >&6; }
11683 break
11684 else
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11688 done
11691 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11692 for ncn_progname in as; do
11693 if test -n "$ncn_target_tool_prefix"; then
11694 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11695 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11699 $as_echo_n "(cached) " >&6
11700 else
11701 if test -n "$AS_FOR_TARGET"; then
11702 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11703 else
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11713 break 2
11715 done
11716 done
11717 IFS=$as_save_IFS
11721 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11722 if test -n "$AS_FOR_TARGET"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11724 $as_echo "$AS_FOR_TARGET" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11732 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11734 set dummy ${ncn_progname}; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 if test -n "$AS_FOR_TARGET"; then
11741 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11742 else
11743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744 for as_dir in $PATH
11746 IFS=$as_save_IFS
11747 test -z "$as_dir" && as_dir=.
11748 for ac_exec_ext in '' $ac_executable_extensions; do
11749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11750 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11752 break 2
11754 done
11755 done
11756 IFS=$as_save_IFS
11760 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11761 if test -n "$AS_FOR_TARGET"; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11763 $as_echo "$AS_FOR_TARGET" >&6; }
11764 else
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11771 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11772 done
11775 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11776 set dummy as
11777 if test $build = $target ; then
11778 AS_FOR_TARGET="$2"
11779 else
11780 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11782 else
11783 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11786 else
11787 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11793 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11794 if test -n "$with_build_time_tools"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11796 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11797 if test -x $with_build_time_tools/dlltool; then
11798 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11799 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11801 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11802 else
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11806 elif test $build != $host && test $have_gcc_for_target = yes; then
11807 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11808 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11809 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11812 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11813 # Extract the first word of "dlltool", so it can be a program name with args.
11814 set dummy dlltool; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 case $DLLTOOL_FOR_TARGET in
11821 [\\/]* | ?:[\\/]*)
11822 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $gcc_cv_tool_dirs
11828 IFS=$as_save_IFS
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11832 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 break 2
11836 done
11837 done
11838 IFS=$as_save_IFS
11841 esac
11843 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11844 if test -n "$DLLTOOL_FOR_TARGET"; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11846 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11847 else
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849 $as_echo "no" >&6; }
11854 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11857 if test -n "$DLLTOOL_FOR_TARGET"; then
11858 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11859 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11860 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11863 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11864 for ncn_progname in dlltool; do
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_DLLTOOL_FOR_TARGET+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 if test -n "$DLLTOOL_FOR_TARGET"; then
11873 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_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_DLLTOOL_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 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11893 if test -n "$DLLTOOL_FOR_TARGET"; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11895 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11896 else
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11902 done
11905 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11906 for ncn_progname in dlltool; do
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11908 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11909 if test -x $with_build_time_tools/${ncn_progname}; then
11910 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11912 $as_echo "yes" >&6; }
11913 break
11914 else
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11918 done
11921 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11922 for ncn_progname in dlltool; do
11923 if test -n "$ncn_target_tool_prefix"; then
11924 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11925 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11927 $as_echo_n "checking for $ac_word... " >&6; }
11928 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11929 $as_echo_n "(cached) " >&6
11930 else
11931 if test -n "$DLLTOOL_FOR_TARGET"; then
11932 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11933 else
11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935 for as_dir in $PATH
11937 IFS=$as_save_IFS
11938 test -z "$as_dir" && as_dir=.
11939 for ac_exec_ext in '' $ac_executable_extensions; do
11940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11941 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11943 break 2
11945 done
11946 done
11947 IFS=$as_save_IFS
11951 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11952 if test -n "$DLLTOOL_FOR_TARGET"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11954 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11955 else
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11962 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11964 set dummy ${ncn_progname}; ac_word=$2
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11966 $as_echo_n "checking for $ac_word... " >&6; }
11967 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 if test -n "$DLLTOOL_FOR_TARGET"; then
11971 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11972 else
11973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974 for as_dir in $PATH
11976 IFS=$as_save_IFS
11977 test -z "$as_dir" && as_dir=.
11978 for ac_exec_ext in '' $ac_executable_extensions; do
11979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11980 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11982 break 2
11984 done
11985 done
11986 IFS=$as_save_IFS
11990 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11991 if test -n "$DLLTOOL_FOR_TARGET"; then
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11993 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996 $as_echo "no" >&6; }
12001 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
12002 done
12005 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
12006 set dummy dlltool
12007 if test $build = $target ; then
12008 DLLTOOL_FOR_TARGET="$2"
12009 else
12010 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
12012 else
12013 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
12016 else
12017 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
12023 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12024 if test -n "$with_build_time_tools"; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
12026 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
12027 if test -x $with_build_time_tools/ld; then
12028 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
12029 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
12031 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
12032 else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 $as_echo "no" >&6; }
12036 elif test $build != $host && test $have_gcc_for_target = yes; then
12037 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
12038 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
12039 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
12042 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12043 # Extract the first word of "ld", so it can be a program name with args.
12044 set dummy ld; ac_word=$2
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046 $as_echo_n "checking for $ac_word... " >&6; }
12047 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 case $LD_FOR_TARGET in
12051 [\\/]* | ?:[\\/]*)
12052 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $gcc_cv_tool_dirs
12058 IFS=$as_save_IFS
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
12061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12062 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12064 break 2
12066 done
12067 done
12068 IFS=$as_save_IFS
12071 esac
12073 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12074 if test -n "$LD_FOR_TARGET"; then
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12076 $as_echo "$LD_FOR_TARGET" >&6; }
12077 else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12084 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12087 if test -n "$LD_FOR_TARGET"; then
12088 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12089 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12090 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12093 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12094 for ncn_progname in ld; do
12095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12096 set dummy ${ncn_progname}; ac_word=$2
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098 $as_echo_n "checking for $ac_word... " >&6; }
12099 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12100 $as_echo_n "(cached) " >&6
12101 else
12102 if test -n "$LD_FOR_TARGET"; then
12103 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12104 else
12105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12108 IFS=$as_save_IFS
12109 test -z "$as_dir" && as_dir=.
12110 for ac_exec_ext in '' $ac_executable_extensions; do
12111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114 break 2
12116 done
12117 done
12118 IFS=$as_save_IFS
12122 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12123 if test -n "$LD_FOR_TARGET"; then
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12125 $as_echo "$LD_FOR_TARGET" >&6; }
12126 else
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12132 done
12135 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
12136 for ncn_progname in ld; do
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12138 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12139 if test -x $with_build_time_tools/${ncn_progname}; then
12140 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12142 $as_echo "yes" >&6; }
12143 break
12144 else
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12148 done
12151 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12152 for ncn_progname in ld; do
12153 if test -n "$ncn_target_tool_prefix"; then
12154 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12155 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157 $as_echo_n "checking for $ac_word... " >&6; }
12158 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 if test -n "$LD_FOR_TARGET"; then
12162 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12163 else
12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165 for as_dir in $PATH
12167 IFS=$as_save_IFS
12168 test -z "$as_dir" && as_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173 break 2
12175 done
12176 done
12177 IFS=$as_save_IFS
12181 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12182 if test -n "$LD_FOR_TARGET"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12184 $as_echo "$LD_FOR_TARGET" >&6; }
12185 else
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187 $as_echo "no" >&6; }
12192 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12194 set dummy ${ncn_progname}; ac_word=$2
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12196 $as_echo_n "checking for $ac_word... " >&6; }
12197 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
12198 $as_echo_n "(cached) " >&6
12199 else
12200 if test -n "$LD_FOR_TARGET"; then
12201 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12202 else
12203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12204 for as_dir in $PATH
12206 IFS=$as_save_IFS
12207 test -z "$as_dir" && as_dir=.
12208 for ac_exec_ext in '' $ac_executable_extensions; do
12209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12210 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
12211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 break 2
12214 done
12215 done
12216 IFS=$as_save_IFS
12220 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12221 if test -n "$LD_FOR_TARGET"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12223 $as_echo "$LD_FOR_TARGET" >&6; }
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12231 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12232 done
12235 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12236 set dummy ld
12237 if test $build = $target ; then
12238 LD_FOR_TARGET="$2"
12239 else
12240 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
12242 else
12243 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
12246 else
12247 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
12253 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12254 if test -n "$with_build_time_tools"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12256 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
12257 if test -x $with_build_time_tools/lipo; then
12258 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12259 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12261 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12262 else
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264 $as_echo "no" >&6; }
12266 elif test $build != $host && test $have_gcc_for_target = yes; then
12267 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12268 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12269 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12272 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12273 # Extract the first word of "lipo", so it can be a program name with args.
12274 set dummy lipo; ac_word=$2
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276 $as_echo_n "checking for $ac_word... " >&6; }
12277 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
12278 $as_echo_n "(cached) " >&6
12279 else
12280 case $LIPO_FOR_TARGET in
12281 [\\/]* | ?:[\\/]*)
12282 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $gcc_cv_tool_dirs
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12296 done
12297 done
12298 IFS=$as_save_IFS
12301 esac
12303 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12304 if test -n "$LIPO_FOR_TARGET"; then
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12306 $as_echo "$LIPO_FOR_TARGET" >&6; }
12307 else
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12314 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12317 if test -n "$LIPO_FOR_TARGET"; then
12318 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12319 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12320 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12323 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12324 for ncn_progname in lipo; do
12325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12326 set dummy ${ncn_progname}; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 if test -n "$LIPO_FOR_TARGET"; then
12333 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12334 else
12335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12336 for as_dir in $PATH
12338 IFS=$as_save_IFS
12339 test -z "$as_dir" && as_dir=.
12340 for ac_exec_ext in '' $ac_executable_extensions; do
12341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12342 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12344 break 2
12346 done
12347 done
12348 IFS=$as_save_IFS
12352 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12353 if test -n "$LIPO_FOR_TARGET"; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12355 $as_echo "$LIPO_FOR_TARGET" >&6; }
12356 else
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358 $as_echo "no" >&6; }
12362 done
12365 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12366 for ncn_progname in lipo; do
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12368 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12369 if test -x $with_build_time_tools/${ncn_progname}; then
12370 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12372 $as_echo "yes" >&6; }
12373 break
12374 else
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376 $as_echo "no" >&6; }
12378 done
12381 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12382 for ncn_progname in lipo; do
12383 if test -n "$ncn_target_tool_prefix"; then
12384 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12385 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387 $as_echo_n "checking for $ac_word... " >&6; }
12388 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 if test -n "$LIPO_FOR_TARGET"; then
12392 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12393 else
12394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395 for as_dir in $PATH
12397 IFS=$as_save_IFS
12398 test -z "$as_dir" && as_dir=.
12399 for ac_exec_ext in '' $ac_executable_extensions; do
12400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12401 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 break 2
12405 done
12406 done
12407 IFS=$as_save_IFS
12411 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12412 if test -n "$LIPO_FOR_TARGET"; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12414 $as_echo "$LIPO_FOR_TARGET" >&6; }
12415 else
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417 $as_echo "no" >&6; }
12422 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12424 set dummy ${ncn_progname}; ac_word=$2
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426 $as_echo_n "checking for $ac_word... " >&6; }
12427 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429 else
12430 if test -n "$LIPO_FOR_TARGET"; then
12431 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12432 else
12433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12436 IFS=$as_save_IFS
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12440 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 break 2
12444 done
12445 done
12446 IFS=$as_save_IFS
12450 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12451 if test -n "$LIPO_FOR_TARGET"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12453 $as_echo "$LIPO_FOR_TARGET" >&6; }
12454 else
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12461 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12462 done
12465 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12466 set dummy lipo
12467 if test $build = $target ; then
12468 LIPO_FOR_TARGET="$2"
12469 else
12470 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12472 else
12473 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12476 else
12477 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12483 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12484 if test -n "$with_build_time_tools"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12486 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12487 if test -x $with_build_time_tools/nm; then
12488 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12489 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12491 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12492 else
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12496 elif test $build != $host && test $have_gcc_for_target = yes; then
12497 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12498 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12499 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12502 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12503 # Extract the first word of "nm", so it can be a program name with args.
12504 set dummy nm; ac_word=$2
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12506 $as_echo_n "checking for $ac_word... " >&6; }
12507 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 case $NM_FOR_TARGET in
12511 [\\/]* | ?:[\\/]*)
12512 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $gcc_cv_tool_dirs
12518 IFS=$as_save_IFS
12519 test -z "$as_dir" && as_dir=.
12520 for ac_exec_ext in '' $ac_executable_extensions; do
12521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12522 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12524 break 2
12526 done
12527 done
12528 IFS=$as_save_IFS
12531 esac
12533 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12534 if test -n "$NM_FOR_TARGET"; then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12536 $as_echo "$NM_FOR_TARGET" >&6; }
12537 else
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12544 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12547 if test -n "$NM_FOR_TARGET"; then
12548 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12549 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12550 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12553 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12554 for ncn_progname in nm; do
12555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12556 set dummy ${ncn_progname}; ac_word=$2
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558 $as_echo_n "checking for $ac_word... " >&6; }
12559 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 if test -n "$NM_FOR_TARGET"; then
12563 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12564 else
12565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566 for as_dir in $PATH
12568 IFS=$as_save_IFS
12569 test -z "$as_dir" && as_dir=.
12570 for ac_exec_ext in '' $ac_executable_extensions; do
12571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12572 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12574 break 2
12576 done
12577 done
12578 IFS=$as_save_IFS
12582 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12583 if test -n "$NM_FOR_TARGET"; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12585 $as_echo "$NM_FOR_TARGET" >&6; }
12586 else
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12588 $as_echo "no" >&6; }
12592 done
12595 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12596 for ncn_progname in nm; do
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12598 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12599 if test -x $with_build_time_tools/${ncn_progname}; then
12600 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12602 $as_echo "yes" >&6; }
12603 break
12604 else
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606 $as_echo "no" >&6; }
12608 done
12611 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12612 for ncn_progname in nm; do
12613 if test -n "$ncn_target_tool_prefix"; then
12614 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12615 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12617 $as_echo_n "checking for $ac_word... " >&6; }
12618 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 if test -n "$NM_FOR_TARGET"; then
12622 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12623 else
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12627 IFS=$as_save_IFS
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633 break 2
12635 done
12636 done
12637 IFS=$as_save_IFS
12641 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12642 if test -n "$NM_FOR_TARGET"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12644 $as_echo "$NM_FOR_TARGET" >&6; }
12645 else
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 $as_echo "no" >&6; }
12652 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12654 set dummy ${ncn_progname}; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12656 $as_echo_n "checking for $ac_word... " >&6; }
12657 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 if test -n "$NM_FOR_TARGET"; then
12661 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12662 else
12663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12664 for as_dir in $PATH
12666 IFS=$as_save_IFS
12667 test -z "$as_dir" && as_dir=.
12668 for ac_exec_ext in '' $ac_executable_extensions; do
12669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12670 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12672 break 2
12674 done
12675 done
12676 IFS=$as_save_IFS
12680 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12681 if test -n "$NM_FOR_TARGET"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12683 $as_echo "$NM_FOR_TARGET" >&6; }
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12691 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12692 done
12695 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12696 set dummy nm
12697 if test $build = $target ; then
12698 NM_FOR_TARGET="$2"
12699 else
12700 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12702 else
12703 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12706 else
12707 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12713 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12714 if test -n "$with_build_time_tools"; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12716 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12717 if test -x $with_build_time_tools/objcopy; then
12718 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12719 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12721 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12722 else
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724 $as_echo "no" >&6; }
12726 elif test $build != $host && test $have_gcc_for_target = yes; then
12727 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12728 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12729 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12732 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12733 # Extract the first word of "objcopy", so it can be a program name with args.
12734 set dummy objcopy; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736 $as_echo_n "checking for $ac_word... " >&6; }
12737 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 case $OBJCOPY_FOR_TARGET in
12741 [\\/]* | ?:[\\/]*)
12742 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746 for as_dir in $gcc_cv_tool_dirs
12748 IFS=$as_save_IFS
12749 test -z "$as_dir" && as_dir=.
12750 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12752 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754 break 2
12756 done
12757 done
12758 IFS=$as_save_IFS
12761 esac
12763 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12764 if test -n "$OBJCOPY_FOR_TARGET"; then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12766 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12767 else
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769 $as_echo "no" >&6; }
12774 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12777 if test -n "$OBJCOPY_FOR_TARGET"; then
12778 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12779 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12780 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12783 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12784 for ncn_progname in objcopy; do
12785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12786 set dummy ${ncn_progname}; ac_word=$2
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12788 $as_echo_n "checking for $ac_word... " >&6; }
12789 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12790 $as_echo_n "(cached) " >&6
12791 else
12792 if test -n "$OBJCOPY_FOR_TARGET"; then
12793 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12794 else
12795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796 for as_dir in $PATH
12798 IFS=$as_save_IFS
12799 test -z "$as_dir" && as_dir=.
12800 for ac_exec_ext in '' $ac_executable_extensions; do
12801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12802 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12804 break 2
12806 done
12807 done
12808 IFS=$as_save_IFS
12812 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12813 if test -n "$OBJCOPY_FOR_TARGET"; then
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12815 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12816 else
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818 $as_echo "no" >&6; }
12822 done
12825 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12826 for ncn_progname in objcopy; do
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12828 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12829 if test -x $with_build_time_tools/${ncn_progname}; then
12830 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12832 $as_echo "yes" >&6; }
12833 break
12834 else
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836 $as_echo "no" >&6; }
12838 done
12841 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12842 for ncn_progname in objcopy; do
12843 if test -n "$ncn_target_tool_prefix"; then
12844 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12845 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 if test -n "$OBJCOPY_FOR_TARGET"; then
12852 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12853 else
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12857 IFS=$as_save_IFS
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
12860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12861 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12863 break 2
12865 done
12866 done
12867 IFS=$as_save_IFS
12871 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12872 if test -n "$OBJCOPY_FOR_TARGET"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12874 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12875 else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12882 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12884 set dummy ${ncn_progname}; ac_word=$2
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886 $as_echo_n "checking for $ac_word... " >&6; }
12887 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
12888 $as_echo_n "(cached) " >&6
12889 else
12890 if test -n "$OBJCOPY_FOR_TARGET"; then
12891 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12892 else
12893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894 for as_dir in $PATH
12896 IFS=$as_save_IFS
12897 test -z "$as_dir" && as_dir=.
12898 for ac_exec_ext in '' $ac_executable_extensions; do
12899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12900 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12902 break 2
12904 done
12905 done
12906 IFS=$as_save_IFS
12910 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12911 if test -n "$OBJCOPY_FOR_TARGET"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12913 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12921 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12922 done
12925 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12926 set dummy objcopy
12927 if test $build = $target ; then
12928 OBJCOPY_FOR_TARGET="$2"
12929 else
12930 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12932 else
12933 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12936 else
12937 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12943 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12944 if test -n "$with_build_time_tools"; then
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12946 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12947 if test -x $with_build_time_tools/objdump; then
12948 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12949 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12951 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12952 else
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954 $as_echo "no" >&6; }
12956 elif test $build != $host && test $have_gcc_for_target = yes; then
12957 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12958 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12959 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12962 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12963 # Extract the first word of "objdump", so it can be a program name with args.
12964 set dummy objdump; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966 $as_echo_n "checking for $ac_word... " >&6; }
12967 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 case $OBJDUMP_FOR_TARGET in
12971 [\\/]* | ?:[\\/]*)
12972 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976 for as_dir in $gcc_cv_tool_dirs
12978 IFS=$as_save_IFS
12979 test -z "$as_dir" && as_dir=.
12980 for ac_exec_ext in '' $ac_executable_extensions; do
12981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12982 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12984 break 2
12986 done
12987 done
12988 IFS=$as_save_IFS
12991 esac
12993 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12994 if test -n "$OBJDUMP_FOR_TARGET"; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12996 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12997 else
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13004 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
13007 if test -n "$OBJDUMP_FOR_TARGET"; then
13008 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
13009 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13010 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13013 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13014 for ncn_progname in objdump; do
13015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13016 set dummy ${ncn_progname}; ac_word=$2
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13018 $as_echo_n "checking for $ac_word... " >&6; }
13019 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13020 $as_echo_n "(cached) " >&6
13021 else
13022 if test -n "$OBJDUMP_FOR_TARGET"; then
13023 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13024 else
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13028 IFS=$as_save_IFS
13029 test -z "$as_dir" && as_dir=.
13030 for ac_exec_ext in '' $ac_executable_extensions; do
13031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13032 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13034 break 2
13036 done
13037 done
13038 IFS=$as_save_IFS
13042 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13043 if test -n "$OBJDUMP_FOR_TARGET"; then
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13045 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13046 else
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048 $as_echo "no" >&6; }
13052 done
13055 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13056 for ncn_progname in objdump; do
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13058 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13059 if test -x $with_build_time_tools/${ncn_progname}; then
13060 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062 $as_echo "yes" >&6; }
13063 break
13064 else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13068 done
13071 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13072 for ncn_progname in objdump; do
13073 if test -n "$ncn_target_tool_prefix"; then
13074 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13075 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 if test -n "$OBJDUMP_FOR_TARGET"; then
13082 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13083 else
13084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085 for as_dir in $PATH
13087 IFS=$as_save_IFS
13088 test -z "$as_dir" && as_dir=.
13089 for ac_exec_ext in '' $ac_executable_extensions; do
13090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13091 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13093 break 2
13095 done
13096 done
13097 IFS=$as_save_IFS
13101 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13102 if test -n "$OBJDUMP_FOR_TARGET"; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13104 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13105 else
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107 $as_echo "no" >&6; }
13112 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13114 set dummy ${ncn_progname}; ac_word=$2
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13116 $as_echo_n "checking for $ac_word... " >&6; }
13117 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
13118 $as_echo_n "(cached) " >&6
13119 else
13120 if test -n "$OBJDUMP_FOR_TARGET"; then
13121 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13122 else
13123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124 for as_dir in $PATH
13126 IFS=$as_save_IFS
13127 test -z "$as_dir" && as_dir=.
13128 for ac_exec_ext in '' $ac_executable_extensions; do
13129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13130 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
13131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13132 break 2
13134 done
13135 done
13136 IFS=$as_save_IFS
13140 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13141 if test -n "$OBJDUMP_FOR_TARGET"; then
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13143 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
13144 else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146 $as_echo "no" >&6; }
13151 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13152 done
13155 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13156 set dummy objdump
13157 if test $build = $target ; then
13158 OBJDUMP_FOR_TARGET="$2"
13159 else
13160 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13162 else
13163 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
13166 else
13167 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
13173 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13174 if test -n "$with_build_time_tools"; then
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13176 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
13177 if test -x $with_build_time_tools/ranlib; then
13178 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13179 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13181 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
13182 else
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184 $as_echo "no" >&6; }
13186 elif test $build != $host && test $have_gcc_for_target = yes; then
13187 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
13188 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13189 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13192 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13193 # Extract the first word of "ranlib", so it can be a program name with args.
13194 set dummy ranlib; ac_word=$2
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13196 $as_echo_n "checking for $ac_word... " >&6; }
13197 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 case $RANLIB_FOR_TARGET in
13201 [\\/]* | ?:[\\/]*)
13202 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $gcc_cv_tool_dirs
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13212 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13216 done
13217 done
13218 IFS=$as_save_IFS
13221 esac
13223 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13224 if test -n "$RANLIB_FOR_TARGET"; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13226 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13227 else
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13234 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13237 if test -n "$RANLIB_FOR_TARGET"; then
13238 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13239 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13240 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13243 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13244 for ncn_progname in ranlib; do
13245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13246 set dummy ${ncn_progname}; ac_word=$2
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13248 $as_echo_n "checking for $ac_word... " >&6; }
13249 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 if test -n "$RANLIB_FOR_TARGET"; then
13253 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13254 else
13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256 for as_dir in $PATH
13258 IFS=$as_save_IFS
13259 test -z "$as_dir" && as_dir=.
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13262 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13264 break 2
13266 done
13267 done
13268 IFS=$as_save_IFS
13272 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13273 if test -n "$RANLIB_FOR_TARGET"; then
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13275 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13276 else
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13278 $as_echo "no" >&6; }
13282 done
13285 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13286 for ncn_progname in ranlib; do
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13288 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13289 if test -x $with_build_time_tools/${ncn_progname}; then
13290 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13292 $as_echo "yes" >&6; }
13293 break
13294 else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13298 done
13301 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13302 for ncn_progname in ranlib; do
13303 if test -n "$ncn_target_tool_prefix"; then
13304 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13305 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13307 $as_echo_n "checking for $ac_word... " >&6; }
13308 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13309 $as_echo_n "(cached) " >&6
13310 else
13311 if test -n "$RANLIB_FOR_TARGET"; then
13312 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13313 else
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315 for as_dir in $PATH
13317 IFS=$as_save_IFS
13318 test -z "$as_dir" && as_dir=.
13319 for ac_exec_ext in '' $ac_executable_extensions; do
13320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13321 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13323 break 2
13325 done
13326 done
13327 IFS=$as_save_IFS
13331 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13332 if test -n "$RANLIB_FOR_TARGET"; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13334 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13335 else
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337 $as_echo "no" >&6; }
13342 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13344 set dummy ${ncn_progname}; ac_word=$2
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13346 $as_echo_n "checking for $ac_word... " >&6; }
13347 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
13348 $as_echo_n "(cached) " >&6
13349 else
13350 if test -n "$RANLIB_FOR_TARGET"; then
13351 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13352 else
13353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13354 for as_dir in $PATH
13356 IFS=$as_save_IFS
13357 test -z "$as_dir" && as_dir=.
13358 for ac_exec_ext in '' $ac_executable_extensions; do
13359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13360 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13362 break 2
13364 done
13365 done
13366 IFS=$as_save_IFS
13370 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13371 if test -n "$RANLIB_FOR_TARGET"; then
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13373 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13374 else
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376 $as_echo "no" >&6; }
13381 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13382 done
13385 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13386 set dummy ranlib
13387 if test $build = $target ; then
13388 RANLIB_FOR_TARGET="$2"
13389 else
13390 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13392 else
13393 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13396 else
13397 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13403 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13404 if test -n "$with_build_time_tools"; then
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13406 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13407 if test -x $with_build_time_tools/readelf; then
13408 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13409 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13411 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13412 else
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13414 $as_echo "no" >&6; }
13416 elif test $build != $host && test $have_gcc_for_target = yes; then
13417 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13418 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13419 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13422 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13423 # Extract the first word of "readelf", so it can be a program name with args.
13424 set dummy readelf; ac_word=$2
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13426 $as_echo_n "checking for $ac_word... " >&6; }
13427 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430 case $READELF_FOR_TARGET in
13431 [\\/]* | ?:[\\/]*)
13432 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436 for as_dir in $gcc_cv_tool_dirs
13438 IFS=$as_save_IFS
13439 test -z "$as_dir" && as_dir=.
13440 for ac_exec_ext in '' $ac_executable_extensions; do
13441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13442 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13444 break 2
13446 done
13447 done
13448 IFS=$as_save_IFS
13451 esac
13453 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13454 if test -n "$READELF_FOR_TARGET"; then
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13456 $as_echo "$READELF_FOR_TARGET" >&6; }
13457 else
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459 $as_echo "no" >&6; }
13464 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13467 if test -n "$READELF_FOR_TARGET"; then
13468 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13469 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13470 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13473 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13474 for ncn_progname in readelf; do
13475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13476 set dummy ${ncn_progname}; ac_word=$2
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478 $as_echo_n "checking for $ac_word... " >&6; }
13479 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 if test -n "$READELF_FOR_TARGET"; then
13483 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13484 else
13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 for as_dir in $PATH
13488 IFS=$as_save_IFS
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
13491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13492 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 break 2
13496 done
13497 done
13498 IFS=$as_save_IFS
13502 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13503 if test -n "$READELF_FOR_TARGET"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13505 $as_echo "$READELF_FOR_TARGET" >&6; }
13506 else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13512 done
13515 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13516 for ncn_progname in readelf; do
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13518 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13519 if test -x $with_build_time_tools/${ncn_progname}; then
13520 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13522 $as_echo "yes" >&6; }
13523 break
13524 else
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526 $as_echo "no" >&6; }
13528 done
13531 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13532 for ncn_progname in readelf; do
13533 if test -n "$ncn_target_tool_prefix"; then
13534 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13535 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537 $as_echo_n "checking for $ac_word... " >&6; }
13538 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 if test -n "$READELF_FOR_TARGET"; then
13542 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13543 else
13544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13547 IFS=$as_save_IFS
13548 test -z "$as_dir" && as_dir=.
13549 for ac_exec_ext in '' $ac_executable_extensions; do
13550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13551 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553 break 2
13555 done
13556 done
13557 IFS=$as_save_IFS
13561 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13562 if test -n "$READELF_FOR_TARGET"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13564 $as_echo "$READELF_FOR_TARGET" >&6; }
13565 else
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 $as_echo "no" >&6; }
13572 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13574 set dummy ${ncn_progname}; ac_word=$2
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13576 $as_echo_n "checking for $ac_word... " >&6; }
13577 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 if test -n "$READELF_FOR_TARGET"; then
13581 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13582 else
13583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584 for as_dir in $PATH
13586 IFS=$as_save_IFS
13587 test -z "$as_dir" && as_dir=.
13588 for ac_exec_ext in '' $ac_executable_extensions; do
13589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13590 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13592 break 2
13594 done
13595 done
13596 IFS=$as_save_IFS
13600 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13601 if test -n "$READELF_FOR_TARGET"; then
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13603 $as_echo "$READELF_FOR_TARGET" >&6; }
13604 else
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606 $as_echo "no" >&6; }
13611 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13612 done
13615 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13616 set dummy readelf
13617 if test $build = $target ; then
13618 READELF_FOR_TARGET="$2"
13619 else
13620 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13622 else
13623 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13626 else
13627 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13633 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13634 if test -n "$with_build_time_tools"; then
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13636 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13637 if test -x $with_build_time_tools/strip; then
13638 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13639 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13641 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13642 else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 $as_echo "no" >&6; }
13646 elif test $build != $host && test $have_gcc_for_target = yes; then
13647 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13648 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13649 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13652 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13653 # Extract the first word of "strip", so it can be a program name with args.
13654 set dummy strip; ac_word=$2
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13656 $as_echo_n "checking for $ac_word... " >&6; }
13657 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 case $STRIP_FOR_TARGET in
13661 [\\/]* | ?:[\\/]*)
13662 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13666 for as_dir in $gcc_cv_tool_dirs
13668 IFS=$as_save_IFS
13669 test -z "$as_dir" && as_dir=.
13670 for ac_exec_ext in '' $ac_executable_extensions; do
13671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13672 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13674 break 2
13676 done
13677 done
13678 IFS=$as_save_IFS
13681 esac
13683 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13684 if test -n "$STRIP_FOR_TARGET"; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13686 $as_echo "$STRIP_FOR_TARGET" >&6; }
13687 else
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689 $as_echo "no" >&6; }
13694 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13697 if test -n "$STRIP_FOR_TARGET"; then
13698 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13699 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13700 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13703 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13704 for ncn_progname in strip; do
13705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13706 set dummy ${ncn_progname}; ac_word=$2
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13708 $as_echo_n "checking for $ac_word... " >&6; }
13709 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13710 $as_echo_n "(cached) " >&6
13711 else
13712 if test -n "$STRIP_FOR_TARGET"; then
13713 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13714 else
13715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716 for as_dir in $PATH
13718 IFS=$as_save_IFS
13719 test -z "$as_dir" && as_dir=.
13720 for ac_exec_ext in '' $ac_executable_extensions; do
13721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13722 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13724 break 2
13726 done
13727 done
13728 IFS=$as_save_IFS
13732 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13733 if test -n "$STRIP_FOR_TARGET"; then
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13735 $as_echo "$STRIP_FOR_TARGET" >&6; }
13736 else
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13738 $as_echo "no" >&6; }
13742 done
13745 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13746 for ncn_progname in strip; do
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13748 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13749 if test -x $with_build_time_tools/${ncn_progname}; then
13750 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13752 $as_echo "yes" >&6; }
13753 break
13754 else
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756 $as_echo "no" >&6; }
13758 done
13761 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13762 for ncn_progname in strip; do
13763 if test -n "$ncn_target_tool_prefix"; then
13764 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13765 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13767 $as_echo_n "checking for $ac_word... " >&6; }
13768 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 if test -n "$STRIP_FOR_TARGET"; then
13772 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13773 else
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13777 IFS=$as_save_IFS
13778 test -z "$as_dir" && as_dir=.
13779 for ac_exec_ext in '' $ac_executable_extensions; do
13780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13783 break 2
13785 done
13786 done
13787 IFS=$as_save_IFS
13791 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13792 if test -n "$STRIP_FOR_TARGET"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13794 $as_echo "$STRIP_FOR_TARGET" >&6; }
13795 else
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797 $as_echo "no" >&6; }
13802 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13804 set dummy ${ncn_progname}; ac_word=$2
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13806 $as_echo_n "checking for $ac_word... " >&6; }
13807 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
13808 $as_echo_n "(cached) " >&6
13809 else
13810 if test -n "$STRIP_FOR_TARGET"; then
13811 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13812 else
13813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814 for as_dir in $PATH
13816 IFS=$as_save_IFS
13817 test -z "$as_dir" && as_dir=.
13818 for ac_exec_ext in '' $ac_executable_extensions; do
13819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13820 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13822 break 2
13824 done
13825 done
13826 IFS=$as_save_IFS
13830 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13831 if test -n "$STRIP_FOR_TARGET"; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13833 $as_echo "$STRIP_FOR_TARGET" >&6; }
13834 else
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13841 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13842 done
13845 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13846 set dummy strip
13847 if test $build = $target ; then
13848 STRIP_FOR_TARGET="$2"
13849 else
13850 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13852 else
13853 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13856 else
13857 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13863 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13864 if test -n "$with_build_time_tools"; then
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13866 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13867 if test -x $with_build_time_tools/windres; then
13868 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13869 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13871 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13872 else
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13874 $as_echo "no" >&6; }
13876 elif test $build != $host && test $have_gcc_for_target = yes; then
13877 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13878 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13879 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13882 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13883 # Extract the first word of "windres", so it can be a program name with args.
13884 set dummy windres; ac_word=$2
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13886 $as_echo_n "checking for $ac_word... " >&6; }
13887 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
13888 $as_echo_n "(cached) " >&6
13889 else
13890 case $WINDRES_FOR_TARGET in
13891 [\\/]* | ?:[\\/]*)
13892 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896 for as_dir in $gcc_cv_tool_dirs
13898 IFS=$as_save_IFS
13899 test -z "$as_dir" && as_dir=.
13900 for ac_exec_ext in '' $ac_executable_extensions; do
13901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13902 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13904 break 2
13906 done
13907 done
13908 IFS=$as_save_IFS
13911 esac
13913 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13914 if test -n "$WINDRES_FOR_TARGET"; then
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13916 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13917 else
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 $as_echo "no" >&6; }
13924 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13927 if test -n "$WINDRES_FOR_TARGET"; then
13928 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13929 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13930 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13933 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13934 for ncn_progname in windres; do
13935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13936 set dummy ${ncn_progname}; ac_word=$2
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13938 $as_echo_n "checking for $ac_word... " >&6; }
13939 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 if test -n "$WINDRES_FOR_TARGET"; then
13943 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13944 else
13945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13946 for as_dir in $PATH
13948 IFS=$as_save_IFS
13949 test -z "$as_dir" && as_dir=.
13950 for ac_exec_ext in '' $ac_executable_extensions; do
13951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13952 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13954 break 2
13956 done
13957 done
13958 IFS=$as_save_IFS
13962 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13963 if test -n "$WINDRES_FOR_TARGET"; then
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13965 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13966 else
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13968 $as_echo "no" >&6; }
13972 done
13975 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13976 for ncn_progname in windres; do
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13978 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13979 if test -x $with_build_time_tools/${ncn_progname}; then
13980 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13982 $as_echo "yes" >&6; }
13983 break
13984 else
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13986 $as_echo "no" >&6; }
13988 done
13991 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13992 for ncn_progname in windres; do
13993 if test -n "$ncn_target_tool_prefix"; then
13994 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13995 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13997 $as_echo_n "checking for $ac_word... " >&6; }
13998 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 if test -n "$WINDRES_FOR_TARGET"; then
14002 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14003 else
14004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14005 for as_dir in $PATH
14007 IFS=$as_save_IFS
14008 test -z "$as_dir" && as_dir=.
14009 for ac_exec_ext in '' $ac_executable_extensions; do
14010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14011 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14013 break 2
14015 done
14016 done
14017 IFS=$as_save_IFS
14021 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14022 if test -n "$WINDRES_FOR_TARGET"; then
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14024 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14025 else
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14027 $as_echo "no" >&6; }
14032 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14034 set dummy ${ncn_progname}; ac_word=$2
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14036 $as_echo_n "checking for $ac_word... " >&6; }
14037 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
14038 $as_echo_n "(cached) " >&6
14039 else
14040 if test -n "$WINDRES_FOR_TARGET"; then
14041 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14042 else
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14046 IFS=$as_save_IFS
14047 test -z "$as_dir" && as_dir=.
14048 for ac_exec_ext in '' $ac_executable_extensions; do
14049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14050 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
14051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14052 break 2
14054 done
14055 done
14056 IFS=$as_save_IFS
14060 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14061 if test -n "$WINDRES_FOR_TARGET"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14063 $as_echo "$WINDRES_FOR_TARGET" >&6; }
14064 else
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066 $as_echo "no" >&6; }
14071 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14072 done
14075 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14076 set dummy windres
14077 if test $build = $target ; then
14078 WINDRES_FOR_TARGET="$2"
14079 else
14080 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
14082 else
14083 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
14086 else
14087 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
14093 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14094 if test -n "$with_build_time_tools"; then
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14096 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
14097 if test -x $with_build_time_tools/windmc; then
14098 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14099 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14101 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
14102 else
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14104 $as_echo "no" >&6; }
14106 elif test $build != $host && test $have_gcc_for_target = yes; then
14107 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
14108 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14109 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14112 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14113 # Extract the first word of "windmc", so it can be a program name with args.
14114 set dummy windmc; ac_word=$2
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14116 $as_echo_n "checking for $ac_word... " >&6; }
14117 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
14118 $as_echo_n "(cached) " >&6
14119 else
14120 case $WINDMC_FOR_TARGET in
14121 [\\/]* | ?:[\\/]*)
14122 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126 for as_dir in $gcc_cv_tool_dirs
14128 IFS=$as_save_IFS
14129 test -z "$as_dir" && as_dir=.
14130 for ac_exec_ext in '' $ac_executable_extensions; do
14131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14132 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14134 break 2
14136 done
14137 done
14138 IFS=$as_save_IFS
14141 esac
14143 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14144 if test -n "$WINDMC_FOR_TARGET"; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14146 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14147 else
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14149 $as_echo "no" >&6; }
14154 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14157 if test -n "$WINDMC_FOR_TARGET"; then
14158 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14159 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14160 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14163 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14164 for ncn_progname in windmc; do
14165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14166 set dummy ${ncn_progname}; ac_word=$2
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14168 $as_echo_n "checking for $ac_word... " >&6; }
14169 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14170 $as_echo_n "(cached) " >&6
14171 else
14172 if test -n "$WINDMC_FOR_TARGET"; then
14173 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14174 else
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14178 IFS=$as_save_IFS
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14182 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14184 break 2
14186 done
14187 done
14188 IFS=$as_save_IFS
14192 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14193 if test -n "$WINDMC_FOR_TARGET"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14195 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14196 else
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198 $as_echo "no" >&6; }
14202 done
14205 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14206 for ncn_progname in windmc; do
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14208 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14209 if test -x $with_build_time_tools/${ncn_progname}; then
14210 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14212 $as_echo "yes" >&6; }
14213 break
14214 else
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216 $as_echo "no" >&6; }
14218 done
14221 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14222 for ncn_progname in windmc; do
14223 if test -n "$ncn_target_tool_prefix"; then
14224 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14225 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14227 $as_echo_n "checking for $ac_word... " >&6; }
14228 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 if test -n "$WINDMC_FOR_TARGET"; then
14232 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14233 else
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14237 IFS=$as_save_IFS
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
14240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14241 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14243 break 2
14245 done
14246 done
14247 IFS=$as_save_IFS
14251 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14252 if test -n "$WINDMC_FOR_TARGET"; then
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14254 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14255 else
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14262 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14264 set dummy ${ncn_progname}; ac_word=$2
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14266 $as_echo_n "checking for $ac_word... " >&6; }
14267 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14270 if test -n "$WINDMC_FOR_TARGET"; then
14271 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14272 else
14273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14274 for as_dir in $PATH
14276 IFS=$as_save_IFS
14277 test -z "$as_dir" && as_dir=.
14278 for ac_exec_ext in '' $ac_executable_extensions; do
14279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14280 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14282 break 2
14284 done
14285 done
14286 IFS=$as_save_IFS
14290 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14291 if test -n "$WINDMC_FOR_TARGET"; then
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14293 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14294 else
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14296 $as_echo "no" >&6; }
14301 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14302 done
14305 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14306 set dummy windmc
14307 if test $build = $target ; then
14308 WINDMC_FOR_TARGET="$2"
14309 else
14310 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14312 else
14313 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14316 else
14317 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14321 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14324 $as_echo_n "checking where to find the target ar... " >&6; }
14325 if test "x${build}" != "x${host}" ; then
14326 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14327 # We already found the complete path
14328 ac_dir=`dirname $AR_FOR_TARGET`
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14330 $as_echo "pre-installed in $ac_dir" >&6; }
14331 else
14332 # Canadian cross, just use what we found
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14334 $as_echo "pre-installed" >&6; }
14336 else
14337 ok=yes
14338 case " ${configdirs} " in
14339 *" binutils "*) ;;
14340 *) ok=no ;;
14341 esac
14343 if test $ok = yes; then
14344 # An in-tree tool is available and we can use it
14345 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14347 $as_echo "just compiled" >&6; }
14348 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14349 # We already found the complete path
14350 ac_dir=`dirname $AR_FOR_TARGET`
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14352 $as_echo "pre-installed in $ac_dir" >&6; }
14353 elif test "x$target" = "x$host"; then
14354 # We can use an host tool
14355 AR_FOR_TARGET='$(AR)'
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14357 $as_echo "host tool" >&6; }
14358 else
14359 # We need a cross tool
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14361 $as_echo "pre-installed" >&6; }
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14366 $as_echo_n "checking where to find the target as... " >&6; }
14367 if test "x${build}" != "x${host}" ; then
14368 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14369 # We already found the complete path
14370 ac_dir=`dirname $AS_FOR_TARGET`
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14372 $as_echo "pre-installed in $ac_dir" >&6; }
14373 else
14374 # Canadian cross, just use what we found
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14376 $as_echo "pre-installed" >&6; }
14378 else
14379 ok=yes
14380 case " ${configdirs} " in
14381 *" gas "*) ;;
14382 *) ok=no ;;
14383 esac
14385 if test $ok = yes; then
14386 # An in-tree tool is available and we can use it
14387 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14389 $as_echo "just compiled" >&6; }
14390 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14391 # We already found the complete path
14392 ac_dir=`dirname $AS_FOR_TARGET`
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14394 $as_echo "pre-installed in $ac_dir" >&6; }
14395 elif test "x$target" = "x$host"; then
14396 # We can use an host tool
14397 AS_FOR_TARGET='$(AS)'
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14399 $as_echo "host tool" >&6; }
14400 else
14401 # We need a cross tool
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14403 $as_echo "pre-installed" >&6; }
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14408 $as_echo_n "checking where to find the target cc... " >&6; }
14409 if test "x${build}" != "x${host}" ; then
14410 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14411 # We already found the complete path
14412 ac_dir=`dirname $CC_FOR_TARGET`
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14414 $as_echo "pre-installed in $ac_dir" >&6; }
14415 else
14416 # Canadian cross, just use what we found
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14418 $as_echo "pre-installed" >&6; }
14420 else
14421 ok=yes
14422 case " ${configdirs} " in
14423 *" gcc "*) ;;
14424 *) ok=no ;;
14425 esac
14427 if test $ok = yes; then
14428 # An in-tree tool is available and we can use it
14429 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14431 $as_echo "just compiled" >&6; }
14432 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14433 # We already found the complete path
14434 ac_dir=`dirname $CC_FOR_TARGET`
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14436 $as_echo "pre-installed in $ac_dir" >&6; }
14437 elif test "x$target" = "x$host"; then
14438 # We can use an host tool
14439 CC_FOR_TARGET='$(CC)'
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14441 $as_echo "host tool" >&6; }
14442 else
14443 # We need a cross tool
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14445 $as_echo "pre-installed" >&6; }
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14450 $as_echo_n "checking where to find the target c++... " >&6; }
14451 if test "x${build}" != "x${host}" ; then
14452 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14453 # We already found the complete path
14454 ac_dir=`dirname $CXX_FOR_TARGET`
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14456 $as_echo "pre-installed in $ac_dir" >&6; }
14457 else
14458 # Canadian cross, just use what we found
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14460 $as_echo "pre-installed" >&6; }
14462 else
14463 ok=yes
14464 case " ${configdirs} " in
14465 *" gcc "*) ;;
14466 *) ok=no ;;
14467 esac
14468 case ,${enable_languages}, in
14469 *,c++,*) ;;
14470 *) ok=no ;;
14471 esac
14472 if test $ok = yes; then
14473 # An in-tree tool is available and we can use it
14474 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'
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14476 $as_echo "just compiled" >&6; }
14477 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14478 # We already found the complete path
14479 ac_dir=`dirname $CXX_FOR_TARGET`
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14481 $as_echo "pre-installed in $ac_dir" >&6; }
14482 elif test "x$target" = "x$host"; then
14483 # We can use an host tool
14484 CXX_FOR_TARGET='$(CXX)'
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14486 $as_echo "host tool" >&6; }
14487 else
14488 # We need a cross tool
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14490 $as_echo "pre-installed" >&6; }
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14495 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14496 if test "x${build}" != "x${host}" ; then
14497 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14498 # We already found the complete path
14499 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14501 $as_echo "pre-installed in $ac_dir" >&6; }
14502 else
14503 # Canadian cross, just use what we found
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14505 $as_echo "pre-installed" >&6; }
14507 else
14508 ok=yes
14509 case " ${configdirs} " in
14510 *" gcc "*) ;;
14511 *) ok=no ;;
14512 esac
14513 case ,${enable_languages}, in
14514 *,c++,*) ;;
14515 *) ok=no ;;
14516 esac
14517 if test $ok = yes; then
14518 # An in-tree tool is available and we can use it
14519 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'
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14521 $as_echo "just compiled" >&6; }
14522 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14523 # We already found the complete path
14524 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14526 $as_echo "pre-installed in $ac_dir" >&6; }
14527 elif test "x$target" = "x$host"; then
14528 # We can use an host tool
14529 RAW_CXX_FOR_TARGET='$(CXX)'
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14531 $as_echo "host tool" >&6; }
14532 else
14533 # We need a cross tool
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14535 $as_echo "pre-installed" >&6; }
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14540 $as_echo_n "checking where to find the target dlltool... " >&6; }
14541 if test "x${build}" != "x${host}" ; then
14542 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14543 # We already found the complete path
14544 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14546 $as_echo "pre-installed in $ac_dir" >&6; }
14547 else
14548 # Canadian cross, just use what we found
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14550 $as_echo "pre-installed" >&6; }
14552 else
14553 ok=yes
14554 case " ${configdirs} " in
14555 *" binutils "*) ;;
14556 *) ok=no ;;
14557 esac
14559 if test $ok = yes; then
14560 # An in-tree tool is available and we can use it
14561 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14563 $as_echo "just compiled" >&6; }
14564 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14565 # We already found the complete path
14566 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14568 $as_echo "pre-installed in $ac_dir" >&6; }
14569 elif test "x$target" = "x$host"; then
14570 # We can use an host tool
14571 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14573 $as_echo "host tool" >&6; }
14574 else
14575 # We need a cross tool
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14577 $as_echo "pre-installed" >&6; }
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14582 $as_echo_n "checking where to find the target gcc... " >&6; }
14583 if test "x${build}" != "x${host}" ; then
14584 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14585 # We already found the complete path
14586 ac_dir=`dirname $GCC_FOR_TARGET`
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14588 $as_echo "pre-installed in $ac_dir" >&6; }
14589 else
14590 # Canadian cross, just use what we found
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14592 $as_echo "pre-installed" >&6; }
14594 else
14595 ok=yes
14596 case " ${configdirs} " in
14597 *" gcc "*) ;;
14598 *) ok=no ;;
14599 esac
14601 if test $ok = yes; then
14602 # An in-tree tool is available and we can use it
14603 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14605 $as_echo "just compiled" >&6; }
14606 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14607 # We already found the complete path
14608 ac_dir=`dirname $GCC_FOR_TARGET`
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14610 $as_echo "pre-installed in $ac_dir" >&6; }
14611 elif test "x$target" = "x$host"; then
14612 # We can use an host tool
14613 GCC_FOR_TARGET='$()'
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14615 $as_echo "host tool" >&6; }
14616 else
14617 # We need a cross tool
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14619 $as_echo "pre-installed" >&6; }
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14624 $as_echo_n "checking where to find the target gfortran... " >&6; }
14625 if test "x${build}" != "x${host}" ; then
14626 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14627 # We already found the complete path
14628 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14630 $as_echo "pre-installed in $ac_dir" >&6; }
14631 else
14632 # Canadian cross, just use what we found
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14634 $as_echo "pre-installed" >&6; }
14636 else
14637 ok=yes
14638 case " ${configdirs} " in
14639 *" gcc "*) ;;
14640 *) ok=no ;;
14641 esac
14642 case ,${enable_languages}, in
14643 *,fortran,*) ;;
14644 *) ok=no ;;
14645 esac
14646 if test $ok = yes; then
14647 # An in-tree tool is available and we can use it
14648 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14650 $as_echo "just compiled" >&6; }
14651 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14652 # We already found the complete path
14653 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14655 $as_echo "pre-installed in $ac_dir" >&6; }
14656 elif test "x$target" = "x$host"; then
14657 # We can use an host tool
14658 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14660 $as_echo "host tool" >&6; }
14661 else
14662 # We need a cross tool
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14664 $as_echo "pre-installed" >&6; }
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14669 $as_echo_n "checking where to find the target gccgo... " >&6; }
14670 if test "x${build}" != "x${host}" ; then
14671 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14672 # We already found the complete path
14673 ac_dir=`dirname $GOC_FOR_TARGET`
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14675 $as_echo "pre-installed in $ac_dir" >&6; }
14676 else
14677 # Canadian cross, just use what we found
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14679 $as_echo "pre-installed" >&6; }
14681 else
14682 ok=yes
14683 case " ${configdirs} " in
14684 *" gcc "*) ;;
14685 *) ok=no ;;
14686 esac
14687 case ,${enable_languages}, in
14688 *,go,*) ;;
14689 *) ok=no ;;
14690 esac
14691 if test $ok = yes; then
14692 # An in-tree tool is available and we can use it
14693 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14695 $as_echo "just compiled" >&6; }
14696 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14697 # We already found the complete path
14698 ac_dir=`dirname $GOC_FOR_TARGET`
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14700 $as_echo "pre-installed in $ac_dir" >&6; }
14701 elif test "x$target" = "x$host"; then
14702 # We can use an host tool
14703 GOC_FOR_TARGET='$(GOC)'
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14705 $as_echo "host tool" >&6; }
14706 else
14707 # We need a cross tool
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14709 $as_echo "pre-installed" >&6; }
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14714 $as_echo_n "checking where to find the target ld... " >&6; }
14715 if test "x${build}" != "x${host}" ; then
14716 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14717 # We already found the complete path
14718 ac_dir=`dirname $LD_FOR_TARGET`
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14720 $as_echo "pre-installed in $ac_dir" >&6; }
14721 else
14722 # Canadian cross, just use what we found
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14724 $as_echo "pre-installed" >&6; }
14726 else
14727 ok=yes
14728 case " ${configdirs} " in
14729 *" ld "*) ;;
14730 *) ok=no ;;
14731 esac
14733 if test $ok = yes; then
14734 # An in-tree tool is available and we can use it
14735 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14737 $as_echo "just compiled" >&6; }
14738 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14739 # We already found the complete path
14740 ac_dir=`dirname $LD_FOR_TARGET`
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14742 $as_echo "pre-installed in $ac_dir" >&6; }
14743 elif test "x$target" = "x$host"; then
14744 # We can use an host tool
14745 LD_FOR_TARGET='$(LD)'
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14747 $as_echo "host tool" >&6; }
14748 else
14749 # We need a cross tool
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14751 $as_echo "pre-installed" >&6; }
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14756 $as_echo_n "checking where to find the target lipo... " >&6; }
14757 if test "x${build}" != "x${host}" ; then
14758 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14759 # We already found the complete path
14760 ac_dir=`dirname $LIPO_FOR_TARGET`
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14762 $as_echo "pre-installed in $ac_dir" >&6; }
14763 else
14764 # Canadian cross, just use what we found
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14766 $as_echo "pre-installed" >&6; }
14768 else
14769 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14770 # We already found the complete path
14771 ac_dir=`dirname $LIPO_FOR_TARGET`
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14773 $as_echo "pre-installed in $ac_dir" >&6; }
14774 elif test "x$target" = "x$host"; then
14775 # We can use an host tool
14776 LIPO_FOR_TARGET='$(LIPO)'
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14778 $as_echo "host tool" >&6; }
14779 else
14780 # We need a cross tool
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14782 $as_echo "pre-installed" >&6; }
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14787 $as_echo_n "checking where to find the target nm... " >&6; }
14788 if test "x${build}" != "x${host}" ; then
14789 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14790 # We already found the complete path
14791 ac_dir=`dirname $NM_FOR_TARGET`
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14793 $as_echo "pre-installed in $ac_dir" >&6; }
14794 else
14795 # Canadian cross, just use what we found
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14797 $as_echo "pre-installed" >&6; }
14799 else
14800 ok=yes
14801 case " ${configdirs} " in
14802 *" binutils "*) ;;
14803 *) ok=no ;;
14804 esac
14806 if test $ok = yes; then
14807 # An in-tree tool is available and we can use it
14808 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14810 $as_echo "just compiled" >&6; }
14811 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14812 # We already found the complete path
14813 ac_dir=`dirname $NM_FOR_TARGET`
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14815 $as_echo "pre-installed in $ac_dir" >&6; }
14816 elif test "x$target" = "x$host"; then
14817 # We can use an host tool
14818 NM_FOR_TARGET='$(NM)'
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14820 $as_echo "host tool" >&6; }
14821 else
14822 # We need a cross tool
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14824 $as_echo "pre-installed" >&6; }
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14829 $as_echo_n "checking where to find the target objcopy... " >&6; }
14830 if test "x${build}" != "x${host}" ; then
14831 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14832 # We already found the complete path
14833 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14835 $as_echo "pre-installed in $ac_dir" >&6; }
14836 else
14837 # Canadian cross, just use what we found
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14839 $as_echo "pre-installed" >&6; }
14841 else
14842 ok=yes
14843 case " ${configdirs} " in
14844 *" binutils "*) ;;
14845 *) ok=no ;;
14846 esac
14848 if test $ok = yes; then
14849 # An in-tree tool is available and we can use it
14850 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14852 $as_echo "just compiled" >&6; }
14853 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14854 # We already found the complete path
14855 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14857 $as_echo "pre-installed in $ac_dir" >&6; }
14858 elif test "x$target" = "x$host"; then
14859 # We can use an host tool
14860 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14862 $as_echo "host tool" >&6; }
14863 else
14864 # We need a cross tool
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14866 $as_echo "pre-installed" >&6; }
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14871 $as_echo_n "checking where to find the target objdump... " >&6; }
14872 if test "x${build}" != "x${host}" ; then
14873 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14874 # We already found the complete path
14875 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14877 $as_echo "pre-installed in $ac_dir" >&6; }
14878 else
14879 # Canadian cross, just use what we found
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14881 $as_echo "pre-installed" >&6; }
14883 else
14884 ok=yes
14885 case " ${configdirs} " in
14886 *" binutils "*) ;;
14887 *) ok=no ;;
14888 esac
14890 if test $ok = yes; then
14891 # An in-tree tool is available and we can use it
14892 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14894 $as_echo "just compiled" >&6; }
14895 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14896 # We already found the complete path
14897 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14899 $as_echo "pre-installed in $ac_dir" >&6; }
14900 elif test "x$target" = "x$host"; then
14901 # We can use an host tool
14902 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14904 $as_echo "host tool" >&6; }
14905 else
14906 # We need a cross tool
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14908 $as_echo "pre-installed" >&6; }
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14913 $as_echo_n "checking where to find the target ranlib... " >&6; }
14914 if test "x${build}" != "x${host}" ; then
14915 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14916 # We already found the complete path
14917 ac_dir=`dirname $RANLIB_FOR_TARGET`
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14919 $as_echo "pre-installed in $ac_dir" >&6; }
14920 else
14921 # Canadian cross, just use what we found
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14923 $as_echo "pre-installed" >&6; }
14925 else
14926 ok=yes
14927 case " ${configdirs} " in
14928 *" binutils "*) ;;
14929 *) ok=no ;;
14930 esac
14932 if test $ok = yes; then
14933 # An in-tree tool is available and we can use it
14934 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14936 $as_echo "just compiled" >&6; }
14937 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14938 # We already found the complete path
14939 ac_dir=`dirname $RANLIB_FOR_TARGET`
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14941 $as_echo "pre-installed in $ac_dir" >&6; }
14942 elif test "x$target" = "x$host"; then
14943 # We can use an host tool
14944 RANLIB_FOR_TARGET='$(RANLIB)'
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14946 $as_echo "host tool" >&6; }
14947 else
14948 # We need a cross tool
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14950 $as_echo "pre-installed" >&6; }
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14955 $as_echo_n "checking where to find the target readelf... " >&6; }
14956 if test "x${build}" != "x${host}" ; then
14957 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14958 # We already found the complete path
14959 ac_dir=`dirname $READELF_FOR_TARGET`
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14961 $as_echo "pre-installed in $ac_dir" >&6; }
14962 else
14963 # Canadian cross, just use what we found
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14965 $as_echo "pre-installed" >&6; }
14967 else
14968 ok=yes
14969 case " ${configdirs} " in
14970 *" binutils "*) ;;
14971 *) ok=no ;;
14972 esac
14974 if test $ok = yes; then
14975 # An in-tree tool is available and we can use it
14976 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14978 $as_echo "just compiled" >&6; }
14979 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14980 # We already found the complete path
14981 ac_dir=`dirname $READELF_FOR_TARGET`
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14983 $as_echo "pre-installed in $ac_dir" >&6; }
14984 elif test "x$target" = "x$host"; then
14985 # We can use an host tool
14986 READELF_FOR_TARGET='$(READELF)'
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14988 $as_echo "host tool" >&6; }
14989 else
14990 # We need a cross tool
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14992 $as_echo "pre-installed" >&6; }
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14997 $as_echo_n "checking where to find the target strip... " >&6; }
14998 if test "x${build}" != "x${host}" ; then
14999 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15000 # We already found the complete path
15001 ac_dir=`dirname $STRIP_FOR_TARGET`
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15003 $as_echo "pre-installed in $ac_dir" >&6; }
15004 else
15005 # Canadian cross, just use what we found
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15007 $as_echo "pre-installed" >&6; }
15009 else
15010 ok=yes
15011 case " ${configdirs} " in
15012 *" binutils "*) ;;
15013 *) ok=no ;;
15014 esac
15016 if test $ok = yes; then
15017 # An in-tree tool is available and we can use it
15018 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15020 $as_echo "just compiled" >&6; }
15021 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15022 # We already found the complete path
15023 ac_dir=`dirname $STRIP_FOR_TARGET`
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15025 $as_echo "pre-installed in $ac_dir" >&6; }
15026 elif test "x$target" = "x$host"; then
15027 # We can use an host tool
15028 STRIP_FOR_TARGET='$(STRIP)'
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15030 $as_echo "host tool" >&6; }
15031 else
15032 # We need a cross tool
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15034 $as_echo "pre-installed" >&6; }
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15039 $as_echo_n "checking where to find the target windres... " >&6; }
15040 if test "x${build}" != "x${host}" ; then
15041 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15042 # We already found the complete path
15043 ac_dir=`dirname $WINDRES_FOR_TARGET`
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15045 $as_echo "pre-installed in $ac_dir" >&6; }
15046 else
15047 # Canadian cross, just use what we found
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15049 $as_echo "pre-installed" >&6; }
15051 else
15052 ok=yes
15053 case " ${configdirs} " in
15054 *" binutils "*) ;;
15055 *) ok=no ;;
15056 esac
15058 if test $ok = yes; then
15059 # An in-tree tool is available and we can use it
15060 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15062 $as_echo "just compiled" >&6; }
15063 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15064 # We already found the complete path
15065 ac_dir=`dirname $WINDRES_FOR_TARGET`
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15067 $as_echo "pre-installed in $ac_dir" >&6; }
15068 elif test "x$target" = "x$host"; then
15069 # We can use an host tool
15070 WINDRES_FOR_TARGET='$(WINDRES)'
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15072 $as_echo "host tool" >&6; }
15073 else
15074 # We need a cross tool
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15076 $as_echo "pre-installed" >&6; }
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15081 $as_echo_n "checking where to find the target windmc... " >&6; }
15082 if test "x${build}" != "x${host}" ; then
15083 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15084 # We already found the complete path
15085 ac_dir=`dirname $WINDMC_FOR_TARGET`
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15087 $as_echo "pre-installed in $ac_dir" >&6; }
15088 else
15089 # Canadian cross, just use what we found
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15091 $as_echo "pre-installed" >&6; }
15093 else
15094 ok=yes
15095 case " ${configdirs} " in
15096 *" binutils "*) ;;
15097 *) ok=no ;;
15098 esac
15100 if test $ok = yes; then
15101 # An in-tree tool is available and we can use it
15102 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15104 $as_echo "just compiled" >&6; }
15105 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15106 # We already found the complete path
15107 ac_dir=`dirname $WINDMC_FOR_TARGET`
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15109 $as_echo "pre-installed in $ac_dir" >&6; }
15110 elif test "x$target" = "x$host"; then
15111 # We can use an host tool
15112 WINDMC_FOR_TARGET='$(WINDMC)'
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15114 $as_echo "host tool" >&6; }
15115 else
15116 # We need a cross tool
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15118 $as_echo "pre-installed" >&6; }
15126 # Certain tools may need extra flags.
15127 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15128 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15129 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15131 # When building target libraries, except in a Canadian cross, we use
15132 # the same toolchain as the compiler we just built.
15133 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15134 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15135 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15136 if test $host = $build; then
15137 case " $configdirs " in
15138 *" gcc "*)
15139 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15140 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15141 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15143 esac
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15151 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15152 # Check whether --enable-maintainer-mode was given.
15153 if test "${enable_maintainer_mode+set}" = set; then :
15154 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15155 else
15156 USE_MAINTAINER_MODE=no
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15160 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15163 if test "$USE_MAINTAINER_MODE" = yes; then
15164 MAINTAINER_MODE_TRUE=
15165 MAINTAINER_MODE_FALSE='#'
15166 else
15167 MAINTAINER_MODE_TRUE='#'
15168 MAINTAINER_MODE_FALSE=
15170 MAINT=$MAINTAINER_MODE_TRUE
15172 # ---------------------
15173 # GCC bootstrap support
15174 # ---------------------
15176 # Stage specific cflags for build.
15177 stage1_cflags="-g"
15178 case $build in
15179 vax-*-*)
15180 case ${GCC} in
15181 yes) stage1_cflags="-g -Wa,-J" ;;
15182 *) stage1_cflags="-g -J" ;;
15183 esac ;;
15184 esac
15188 # Enable --enable-checking in stage1 of the compiler.
15189 # Check whether --enable-stage1-checking was given.
15190 if test "${enable_stage1_checking+set}" = set; then :
15191 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15192 else
15193 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15194 # For --disable-checking or implicit --enable-checking=release, avoid
15195 # setting --enable-checking=gc in the default stage1 checking for LTO
15196 # bootstraps. See PR62077.
15197 case $BUILD_CONFIG in
15198 *lto*)
15199 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15201 stage1_checking=--enable-checking=yes,types;;
15202 esac
15203 if test "x$enable_checking" = x && \
15204 test -d ${srcdir}/gcc && \
15205 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
15206 stage1_checking=--enable-checking=yes,types,extra
15208 else
15209 stage1_checking=--enable-checking=$enable_checking,types
15215 # Enable -Werror in bootstrap stage2 and later.
15216 # Check whether --enable-werror was given.
15217 if test "${enable_werror+set}" = set; then :
15218 enableval=$enable_werror;
15219 case ${enable_werror} in
15220 yes) stage2_werror_flag="--enable-werror-always" ;;
15221 *) stage2_werror_flag="" ;;
15222 esac
15224 else
15226 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15227 case $BUILD_CONFIG in
15228 bootstrap-debug)
15229 stage2_werror_flag="--enable-werror-always" ;;
15231 stage2_werror_flag="--enable-werror-always" ;;
15232 esac
15240 # Specify what files to not compare during bootstrap.
15242 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15243 case "$target" in
15244 hppa*64*-*-hpux*) ;;
15245 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
15246 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15247 esac
15250 ac_config_files="$ac_config_files Makefile"
15252 cat >confcache <<\_ACEOF
15253 # This file is a shell script that caches the results of configure
15254 # tests run on this system so they can be shared between configure
15255 # scripts and configure runs, see configure's option --config-cache.
15256 # It is not useful on other systems. If it contains results you don't
15257 # want to keep, you may remove or edit it.
15259 # config.status only pays attention to the cache file if you give it
15260 # the --recheck option to rerun configure.
15262 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15263 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15264 # following values.
15266 _ACEOF
15268 # The following way of writing the cache mishandles newlines in values,
15269 # but we know of no workaround that is simple, portable, and efficient.
15270 # So, we kill variables containing newlines.
15271 # Ultrix sh set writes to stderr and can't be redirected directly,
15272 # and sets the high bit in the cache file unless we assign to the vars.
15274 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15275 eval ac_val=\$$ac_var
15276 case $ac_val in #(
15277 *${as_nl}*)
15278 case $ac_var in #(
15279 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15280 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15281 esac
15282 case $ac_var in #(
15283 _ | IFS | as_nl) ;; #(
15284 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15285 *) { eval $ac_var=; unset $ac_var;} ;;
15286 esac ;;
15287 esac
15288 done
15290 (set) 2>&1 |
15291 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15292 *${as_nl}ac_space=\ *)
15293 # `set' does not quote correctly, so add quotes: double-quote
15294 # substitution turns \\\\ into \\, and sed turns \\ into \.
15295 sed -n \
15296 "s/'/'\\\\''/g;
15297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15298 ;; #(
15300 # `set' quotes correctly as required by POSIX, so do not add quotes.
15301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15303 esac |
15304 sort
15306 sed '
15307 /^ac_cv_env_/b end
15308 t clear
15309 :clear
15310 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15311 t end
15312 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15313 :end' >>confcache
15314 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15315 if test -w "$cache_file"; then
15316 if test "x$cache_file" != "x/dev/null"; then
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15318 $as_echo "$as_me: updating cache $cache_file" >&6;}
15319 if test ! -f "$cache_file" || test -h "$cache_file"; then
15320 cat confcache >"$cache_file"
15321 else
15322 case $cache_file in #(
15323 */* | ?:*)
15324 mv -f confcache "$cache_file"$$ &&
15325 mv -f "$cache_file"$$ "$cache_file" ;; #(
15327 mv -f confcache "$cache_file" ;;
15328 esac
15331 else
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15333 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15336 rm -f confcache
15338 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15339 # Let make expand exec_prefix.
15340 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15342 # Transform confdefs.h into DEFS.
15343 # Protect against shell expansion while executing Makefile rules.
15344 # Protect against Makefile macro expansion.
15346 # If the first sed substitution is executed (which looks for macros that
15347 # take arguments), then branch to the quote section. Otherwise,
15348 # look for a macro that doesn't take arguments.
15349 ac_script='
15350 :mline
15351 /\\$/{
15353 s,\\\n,,
15354 b mline
15356 t clear
15357 :clear
15358 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15359 t quote
15360 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15361 t quote
15362 b any
15363 :quote
15364 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15365 s/\[/\\&/g
15366 s/\]/\\&/g
15367 s/\$/$$/g
15369 :any
15372 s/^\n//
15373 s/\n/ /g
15377 DEFS=`sed -n "$ac_script" confdefs.h`
15380 ac_libobjs=
15381 ac_ltlibobjs=
15383 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15384 # 1. Remove the extension, and $U if already installed.
15385 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15386 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15387 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15388 # will be set to the directory where LIBOBJS objects are built.
15389 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15390 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15391 done
15392 LIBOBJS=$ac_libobjs
15394 LTLIBOBJS=$ac_ltlibobjs
15398 : "${CONFIG_STATUS=./config.status}"
15399 ac_write_fail=0
15400 ac_clean_files_save=$ac_clean_files
15401 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15403 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15404 as_write_fail=0
15405 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15406 #! $SHELL
15407 # Generated by $as_me.
15408 # Run this file to recreate the current configuration.
15409 # Compiler output produced by configure, useful for debugging
15410 # configure, is in config.log if it exists.
15412 debug=false
15413 ac_cs_recheck=false
15414 ac_cs_silent=false
15416 SHELL=\${CONFIG_SHELL-$SHELL}
15417 export SHELL
15418 _ASEOF
15419 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15420 ## -------------------- ##
15421 ## M4sh Initialization. ##
15422 ## -------------------- ##
15424 # Be more Bourne compatible
15425 DUALCASE=1; export DUALCASE # for MKS sh
15426 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15427 emulate sh
15428 NULLCMD=:
15429 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15430 # is contrary to our usage. Disable this feature.
15431 alias -g '${1+"$@"}'='"$@"'
15432 setopt NO_GLOB_SUBST
15433 else
15434 case `(set -o) 2>/dev/null` in #(
15435 *posix*) :
15436 set -o posix ;; #(
15437 *) :
15439 esac
15443 as_nl='
15445 export as_nl
15446 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15447 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15448 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15449 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15450 # Prefer a ksh shell builtin over an external printf program on Solaris,
15451 # but without wasting forks for bash or zsh.
15452 if test -z "$BASH_VERSION$ZSH_VERSION" \
15453 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15454 as_echo='print -r --'
15455 as_echo_n='print -rn --'
15456 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15457 as_echo='printf %s\n'
15458 as_echo_n='printf %s'
15459 else
15460 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15461 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15462 as_echo_n='/usr/ucb/echo -n'
15463 else
15464 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15465 as_echo_n_body='eval
15466 arg=$1;
15467 case $arg in #(
15468 *"$as_nl"*)
15469 expr "X$arg" : "X\\(.*\\)$as_nl";
15470 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15471 esac;
15472 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15474 export as_echo_n_body
15475 as_echo_n='sh -c $as_echo_n_body as_echo'
15477 export as_echo_body
15478 as_echo='sh -c $as_echo_body as_echo'
15481 # The user is always right.
15482 if test "${PATH_SEPARATOR+set}" != set; then
15483 PATH_SEPARATOR=:
15484 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15485 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15486 PATH_SEPARATOR=';'
15491 # IFS
15492 # We need space, tab and new line, in precisely that order. Quoting is
15493 # there to prevent editors from complaining about space-tab.
15494 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15495 # splitting by setting IFS to empty value.)
15496 IFS=" "" $as_nl"
15498 # Find who we are. Look in the path if we contain no directory separator.
15499 as_myself=
15500 case $0 in #((
15501 *[\\/]* ) as_myself=$0 ;;
15502 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15503 for as_dir in $PATH
15505 IFS=$as_save_IFS
15506 test -z "$as_dir" && as_dir=.
15507 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15508 done
15509 IFS=$as_save_IFS
15512 esac
15513 # We did not find ourselves, most probably we were run as `sh COMMAND'
15514 # in which case we are not to be found in the path.
15515 if test "x$as_myself" = x; then
15516 as_myself=$0
15518 if test ! -f "$as_myself"; then
15519 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15520 exit 1
15523 # Unset variables that we do not need and which cause bugs (e.g. in
15524 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15525 # suppresses any "Segmentation fault" message there. '((' could
15526 # trigger a bug in pdksh 5.2.14.
15527 for as_var in BASH_ENV ENV MAIL MAILPATH
15528 do eval test x\${$as_var+set} = xset \
15529 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15530 done
15531 PS1='$ '
15532 PS2='> '
15533 PS4='+ '
15535 # NLS nuisances.
15536 LC_ALL=C
15537 export LC_ALL
15538 LANGUAGE=C
15539 export LANGUAGE
15541 # CDPATH.
15542 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15545 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15546 # ----------------------------------------
15547 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15548 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15549 # script with STATUS, using 1 if that was 0.
15550 as_fn_error ()
15552 as_status=$1; test $as_status -eq 0 && as_status=1
15553 if test "$4"; then
15554 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15555 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15557 $as_echo "$as_me: error: $2" >&2
15558 as_fn_exit $as_status
15559 } # as_fn_error
15562 # as_fn_set_status STATUS
15563 # -----------------------
15564 # Set $? to STATUS, without forking.
15565 as_fn_set_status ()
15567 return $1
15568 } # as_fn_set_status
15570 # as_fn_exit STATUS
15571 # -----------------
15572 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15573 as_fn_exit ()
15575 set +e
15576 as_fn_set_status $1
15577 exit $1
15578 } # as_fn_exit
15580 # as_fn_unset VAR
15581 # ---------------
15582 # Portably unset VAR.
15583 as_fn_unset ()
15585 { eval $1=; unset $1;}
15587 as_unset=as_fn_unset
15588 # as_fn_append VAR VALUE
15589 # ----------------------
15590 # Append the text in VALUE to the end of the definition contained in VAR. Take
15591 # advantage of any shell optimizations that allow amortized linear growth over
15592 # repeated appends, instead of the typical quadratic growth present in naive
15593 # implementations.
15594 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15595 eval 'as_fn_append ()
15597 eval $1+=\$2
15599 else
15600 as_fn_append ()
15602 eval $1=\$$1\$2
15604 fi # as_fn_append
15606 # as_fn_arith ARG...
15607 # ------------------
15608 # Perform arithmetic evaluation on the ARGs, and store the result in the
15609 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15610 # must be portable across $(()) and expr.
15611 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15612 eval 'as_fn_arith ()
15614 as_val=$(( $* ))
15616 else
15617 as_fn_arith ()
15619 as_val=`expr "$@" || test $? -eq 1`
15621 fi # as_fn_arith
15624 if expr a : '\(a\)' >/dev/null 2>&1 &&
15625 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15626 as_expr=expr
15627 else
15628 as_expr=false
15631 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15632 as_basename=basename
15633 else
15634 as_basename=false
15637 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15638 as_dirname=dirname
15639 else
15640 as_dirname=false
15643 as_me=`$as_basename -- "$0" ||
15644 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15645 X"$0" : 'X\(//\)$' \| \
15646 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15647 $as_echo X/"$0" |
15648 sed '/^.*\/\([^/][^/]*\)\/*$/{
15649 s//\1/
15652 /^X\/\(\/\/\)$/{
15653 s//\1/
15656 /^X\/\(\/\).*/{
15657 s//\1/
15660 s/.*/./; q'`
15662 # Avoid depending upon Character Ranges.
15663 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15664 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15665 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15666 as_cr_digits='0123456789'
15667 as_cr_alnum=$as_cr_Letters$as_cr_digits
15669 ECHO_C= ECHO_N= ECHO_T=
15670 case `echo -n x` in #(((((
15671 -n*)
15672 case `echo 'xy\c'` in
15673 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15674 xy) ECHO_C='\c';;
15675 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15676 ECHO_T=' ';;
15677 esac;;
15679 ECHO_N='-n';;
15680 esac
15682 rm -f conf$$ conf$$.exe conf$$.file
15683 if test -d conf$$.dir; then
15684 rm -f conf$$.dir/conf$$.file
15685 else
15686 rm -f conf$$.dir
15687 mkdir conf$$.dir 2>/dev/null
15689 if (echo >conf$$.file) 2>/dev/null; then
15690 if ln -s conf$$.file conf$$ 2>/dev/null; then
15691 as_ln_s='ln -s'
15692 # ... but there are two gotchas:
15693 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15694 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15695 # In both cases, we have to default to `cp -pR'.
15696 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15697 as_ln_s='cp -pR'
15698 elif ln conf$$.file conf$$ 2>/dev/null; then
15699 as_ln_s=ln
15700 else
15701 as_ln_s='cp -pR'
15703 else
15704 as_ln_s='cp -pR'
15706 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15707 rmdir conf$$.dir 2>/dev/null
15710 # as_fn_mkdir_p
15711 # -------------
15712 # Create "$as_dir" as a directory, including parents if necessary.
15713 as_fn_mkdir_p ()
15716 case $as_dir in #(
15717 -*) as_dir=./$as_dir;;
15718 esac
15719 test -d "$as_dir" || eval $as_mkdir_p || {
15720 as_dirs=
15721 while :; do
15722 case $as_dir in #(
15723 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15724 *) as_qdir=$as_dir;;
15725 esac
15726 as_dirs="'$as_qdir' $as_dirs"
15727 as_dir=`$as_dirname -- "$as_dir" ||
15728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15729 X"$as_dir" : 'X\(//\)[^/]' \| \
15730 X"$as_dir" : 'X\(//\)$' \| \
15731 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15732 $as_echo X"$as_dir" |
15733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15734 s//\1/
15737 /^X\(\/\/\)[^/].*/{
15738 s//\1/
15741 /^X\(\/\/\)$/{
15742 s//\1/
15745 /^X\(\/\).*/{
15746 s//\1/
15749 s/.*/./; q'`
15750 test -d "$as_dir" && break
15751 done
15752 test -z "$as_dirs" || eval "mkdir $as_dirs"
15753 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15756 } # as_fn_mkdir_p
15757 if mkdir -p . 2>/dev/null; then
15758 as_mkdir_p='mkdir -p "$as_dir"'
15759 else
15760 test -d ./-p && rmdir ./-p
15761 as_mkdir_p=false
15765 # as_fn_executable_p FILE
15766 # -----------------------
15767 # Test if FILE is an executable regular file.
15768 as_fn_executable_p ()
15770 test -f "$1" && test -x "$1"
15771 } # as_fn_executable_p
15772 as_test_x='test -x'
15773 as_executable_p=as_fn_executable_p
15775 # Sed expression to map a string onto a valid CPP name.
15776 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15778 # Sed expression to map a string onto a valid variable name.
15779 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15782 exec 6>&1
15783 ## ----------------------------------- ##
15784 ## Main body of $CONFIG_STATUS script. ##
15785 ## ----------------------------------- ##
15786 _ASEOF
15787 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15790 # Save the log message, to keep $0 and so on meaningful, and to
15791 # report actual input values of CONFIG_FILES etc. instead of their
15792 # values after options handling.
15793 ac_log="
15794 This file was extended by $as_me, which was
15795 generated by GNU Autoconf 2.69. Invocation command line was
15797 CONFIG_FILES = $CONFIG_FILES
15798 CONFIG_HEADERS = $CONFIG_HEADERS
15799 CONFIG_LINKS = $CONFIG_LINKS
15800 CONFIG_COMMANDS = $CONFIG_COMMANDS
15801 $ $0 $@
15803 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15806 _ACEOF
15808 case $ac_config_files in *"
15809 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15810 esac
15814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15815 # Files that config.status was made for.
15816 config_files="$ac_config_files"
15818 _ACEOF
15820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15821 ac_cs_usage="\
15822 \`$as_me' instantiates files and other configuration actions
15823 from templates according to the current configuration. Unless the files
15824 and actions are specified as TAGs, all are instantiated by default.
15826 Usage: $0 [OPTION]... [TAG]...
15828 -h, --help print this help, then exit
15829 -V, --version print version number and configuration settings, then exit
15830 --config print configuration, then exit
15831 -q, --quiet, --silent
15832 do not print progress messages
15833 -d, --debug don't remove temporary files
15834 --recheck update $as_me by reconfiguring in the same conditions
15835 --file=FILE[:TEMPLATE]
15836 instantiate the configuration file FILE
15838 Configuration files:
15839 $config_files
15841 Report bugs to the package provider."
15843 _ACEOF
15844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15845 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15846 ac_cs_version="\\
15847 config.status
15848 configured by $0, generated by GNU Autoconf 2.69,
15849 with options \\"\$ac_cs_config\\"
15851 Copyright (C) 2012 Free Software Foundation, Inc.
15852 This config.status script is free software; the Free Software Foundation
15853 gives unlimited permission to copy, distribute and modify it."
15855 ac_pwd='$ac_pwd'
15856 srcdir='$srcdir'
15857 INSTALL='$INSTALL'
15858 AWK='$AWK'
15859 test -n "\$AWK" || AWK=awk
15860 _ACEOF
15862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15863 # The default lists apply if the user does not specify any file.
15864 ac_need_defaults=:
15865 while test $# != 0
15867 case $1 in
15868 --*=?*)
15869 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15870 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15871 ac_shift=:
15873 --*=)
15874 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15875 ac_optarg=
15876 ac_shift=:
15879 ac_option=$1
15880 ac_optarg=$2
15881 ac_shift=shift
15883 esac
15885 case $ac_option in
15886 # Handling of the options.
15887 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15888 ac_cs_recheck=: ;;
15889 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15890 $as_echo "$ac_cs_version"; exit ;;
15891 --config | --confi | --conf | --con | --co | --c )
15892 $as_echo "$ac_cs_config"; exit ;;
15893 --debug | --debu | --deb | --de | --d | -d )
15894 debug=: ;;
15895 --file | --fil | --fi | --f )
15896 $ac_shift
15897 case $ac_optarg in
15898 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15899 '') as_fn_error $? "missing file argument" ;;
15900 esac
15901 as_fn_append CONFIG_FILES " '$ac_optarg'"
15902 ac_need_defaults=false;;
15903 --he | --h | --help | --hel | -h )
15904 $as_echo "$ac_cs_usage"; exit ;;
15905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15906 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15907 ac_cs_silent=: ;;
15909 # This is an error.
15910 -*) as_fn_error $? "unrecognized option: \`$1'
15911 Try \`$0 --help' for more information." ;;
15913 *) as_fn_append ac_config_targets " $1"
15914 ac_need_defaults=false ;;
15916 esac
15917 shift
15918 done
15920 ac_configure_extra_args=
15922 if $ac_cs_silent; then
15923 exec 6>/dev/null
15924 ac_configure_extra_args="$ac_configure_extra_args --silent"
15927 _ACEOF
15928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15929 if \$ac_cs_recheck; then
15930 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15931 shift
15932 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15933 CONFIG_SHELL='$SHELL'
15934 export CONFIG_SHELL
15935 exec "\$@"
15938 _ACEOF
15939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15940 exec 5>>config.log
15942 echo
15943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15944 ## Running $as_me. ##
15945 _ASBOX
15946 $as_echo "$ac_log"
15947 } >&5
15949 _ACEOF
15950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15952 # INIT-COMMANDS
15954 extrasub_build="$extrasub_build"
15955 extrasub_host="$extrasub_host"
15956 extrasub_target="$extrasub_target"
15958 _ACEOF
15960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15962 # Handling of arguments.
15963 for ac_config_target in $ac_config_targets
15965 case $ac_config_target in
15966 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15968 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15969 esac
15970 done
15973 # If the user did not use the arguments to specify the items to instantiate,
15974 # then the envvar interface is used. Set only those that are not.
15975 # We use the long form for the default assignment because of an extremely
15976 # bizarre bug on SunOS 4.1.3.
15977 if $ac_need_defaults; then
15978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15981 # Have a temporary directory for convenience. Make it in the build tree
15982 # simply because there is no reason against having it here, and in addition,
15983 # creating and moving files from /tmp can sometimes cause problems.
15984 # Hook for its removal unless debugging.
15985 # Note that there is a small window in which the directory will not be cleaned:
15986 # after its creation but before its name has been assigned to `$tmp'.
15987 $debug ||
15989 tmp= ac_tmp=
15990 trap 'exit_status=$?
15991 : "${ac_tmp:=$tmp}"
15992 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15994 trap 'as_fn_exit 1' 1 2 13 15
15996 # Create a (secure) tmp directory for tmp files.
15999 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16000 test -d "$tmp"
16001 } ||
16003 tmp=./conf$$-$RANDOM
16004 (umask 077 && mkdir "$tmp")
16005 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16006 ac_tmp=$tmp
16008 # Set up the scripts for CONFIG_FILES section.
16009 # No need to generate them if there are no CONFIG_FILES.
16010 # This happens for instance with `./config.status config.h'.
16011 if test -n "$CONFIG_FILES"; then
16013 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16014 ac_cs_awk_getline=:
16015 ac_cs_awk_pipe_init=
16016 ac_cs_awk_read_file='
16017 while ((getline aline < (F[key])) > 0)
16018 print(aline)
16019 close(F[key])'
16020 ac_cs_awk_pipe_fini=
16021 else
16022 ac_cs_awk_getline=false
16023 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16024 ac_cs_awk_read_file='
16025 print "|#_!!_#|"
16026 print "cat " F[key] " &&"
16027 '$ac_cs_awk_pipe_init
16028 # The final `:' finishes the AND list.
16029 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16031 ac_cr=`echo X | tr X '\015'`
16032 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16033 # But we know of no other shell where ac_cr would be empty at this
16034 # point, so we can use a bashism as a fallback.
16035 if test "x$ac_cr" = x; then
16036 eval ac_cr=\$\'\\r\'
16038 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16039 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16040 ac_cs_awk_cr='\\r'
16041 else
16042 ac_cs_awk_cr=$ac_cr
16045 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16046 _ACEOF
16048 # Create commands to substitute file output variables.
16050 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16051 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16052 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16053 echo "_ACAWK" &&
16054 echo "_ACEOF"
16055 } >conf$$files.sh &&
16056 . ./conf$$files.sh ||
16057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16058 rm -f conf$$files.sh
16061 echo "cat >conf$$subs.awk <<_ACEOF" &&
16062 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16063 echo "_ACEOF"
16064 } >conf$$subs.sh ||
16065 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16066 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16067 ac_delim='%!_!# '
16068 for ac_last_try in false false false false false :; do
16069 . ./conf$$subs.sh ||
16070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16072 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16073 if test $ac_delim_n = $ac_delim_num; then
16074 break
16075 elif $ac_last_try; then
16076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16077 else
16078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16080 done
16081 rm -f conf$$subs.sh
16083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16084 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16085 _ACEOF
16086 sed -n '
16088 s/^/S["/; s/!.*/"]=/
16091 s/^[^!]*!//
16092 :repl
16093 t repl
16094 s/'"$ac_delim"'$//
16095 t delim
16098 s/\(.\{148\}\)..*/\1/
16099 t more1
16100 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16103 b repl
16104 :more1
16105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16108 s/.\{148\}//
16109 t nl
16110 :delim
16112 s/\(.\{148\}\)..*/\1/
16113 t more2
16114 s/["\\]/\\&/g; s/^/"/; s/$/"/
16117 :more2
16118 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16121 s/.\{148\}//
16122 t delim
16123 ' <conf$$subs.awk | sed '
16124 /^[^""]/{
16126 s/\n//
16128 ' >>$CONFIG_STATUS || ac_write_fail=1
16129 rm -f conf$$subs.awk
16130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16131 _ACAWK
16132 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16133 for (key in S) S_is_set[key] = 1
16134 FS = "\a"
16135 \$ac_cs_awk_pipe_init
16138 line = $ 0
16139 nfields = split(line, field, "@")
16140 substed = 0
16141 len = length(field[1])
16142 for (i = 2; i < nfields; i++) {
16143 key = field[i]
16144 keylen = length(key)
16145 if (S_is_set[key]) {
16146 value = S[key]
16147 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16148 len += length(value) + length(field[++i])
16149 substed = 1
16150 } else
16151 len += 1 + keylen
16153 if (nfields == 3 && !substed) {
16154 key = field[2]
16155 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16156 \$ac_cs_awk_read_file
16157 next
16160 print line
16162 \$ac_cs_awk_pipe_fini
16163 _ACAWK
16164 _ACEOF
16165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16166 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16167 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16168 else
16170 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16171 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16172 _ACEOF
16174 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16175 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16176 # trailing colons and then remove the whole line if VPATH becomes empty
16177 # (actually we leave an empty line to preserve line numbers).
16178 if test "x$srcdir" = x.; then
16179 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16181 s///
16182 s/^/:/
16183 s/[ ]*$/:/
16184 s/:\$(srcdir):/:/g
16185 s/:\${srcdir}:/:/g
16186 s/:@srcdir@:/:/g
16187 s/^:*//
16188 s/:*$//
16190 s/\(=[ ]*\).*/\1/
16192 s/\n//
16193 s/^[^=]*=[ ]*$//
16197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16198 fi # test -n "$CONFIG_FILES"
16201 eval set X " :F $CONFIG_FILES "
16202 shift
16203 for ac_tag
16205 case $ac_tag in
16206 :[FHLC]) ac_mode=$ac_tag; continue;;
16207 esac
16208 case $ac_mode$ac_tag in
16209 :[FHL]*:*);;
16210 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16211 :[FH]-) ac_tag=-:-;;
16212 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16213 esac
16214 ac_save_IFS=$IFS
16215 IFS=:
16216 set x $ac_tag
16217 IFS=$ac_save_IFS
16218 shift
16219 ac_file=$1
16220 shift
16222 case $ac_mode in
16223 :L) ac_source=$1;;
16224 :[FH])
16225 ac_file_inputs=
16226 for ac_f
16228 case $ac_f in
16229 -) ac_f="$ac_tmp/stdin";;
16230 *) # Look for the file first in the build tree, then in the source tree
16231 # (if the path is not absolute). The absolute path cannot be DOS-style,
16232 # because $ac_f cannot contain `:'.
16233 test -f "$ac_f" ||
16234 case $ac_f in
16235 [\\/$]*) false;;
16236 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16237 esac ||
16238 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16239 esac
16240 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16241 as_fn_append ac_file_inputs " '$ac_f'"
16242 done
16244 # Let's still pretend it is `configure' which instantiates (i.e., don't
16245 # use $as_me), people would be surprised to read:
16246 # /* config.h. Generated by config.status. */
16247 configure_input='Generated from '`
16248 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16249 `' by configure.'
16250 if test x"$ac_file" != x-; then
16251 configure_input="$ac_file. $configure_input"
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16253 $as_echo "$as_me: creating $ac_file" >&6;}
16255 # Neutralize special characters interpreted by sed in replacement strings.
16256 case $configure_input in #(
16257 *\&* | *\|* | *\\* )
16258 ac_sed_conf_input=`$as_echo "$configure_input" |
16259 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16260 *) ac_sed_conf_input=$configure_input;;
16261 esac
16263 case $ac_tag in
16264 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16266 esac
16268 esac
16270 ac_dir=`$as_dirname -- "$ac_file" ||
16271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16272 X"$ac_file" : 'X\(//\)[^/]' \| \
16273 X"$ac_file" : 'X\(//\)$' \| \
16274 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16275 $as_echo X"$ac_file" |
16276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16277 s//\1/
16280 /^X\(\/\/\)[^/].*/{
16281 s//\1/
16284 /^X\(\/\/\)$/{
16285 s//\1/
16288 /^X\(\/\).*/{
16289 s//\1/
16292 s/.*/./; q'`
16293 as_dir="$ac_dir"; as_fn_mkdir_p
16294 ac_builddir=.
16296 case "$ac_dir" in
16297 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16299 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16300 # A ".." for each directory in $ac_dir_suffix.
16301 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16302 case $ac_top_builddir_sub in
16303 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16304 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16305 esac ;;
16306 esac
16307 ac_abs_top_builddir=$ac_pwd
16308 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16309 # for backward compatibility:
16310 ac_top_builddir=$ac_top_build_prefix
16312 case $srcdir in
16313 .) # We are building in place.
16314 ac_srcdir=.
16315 ac_top_srcdir=$ac_top_builddir_sub
16316 ac_abs_top_srcdir=$ac_pwd ;;
16317 [\\/]* | ?:[\\/]* ) # Absolute name.
16318 ac_srcdir=$srcdir$ac_dir_suffix;
16319 ac_top_srcdir=$srcdir
16320 ac_abs_top_srcdir=$srcdir ;;
16321 *) # Relative name.
16322 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16323 ac_top_srcdir=$ac_top_build_prefix$srcdir
16324 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16325 esac
16326 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16329 case $ac_mode in
16332 # CONFIG_FILE
16335 case $INSTALL in
16336 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16337 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16338 esac
16339 _ACEOF
16341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16342 # If the template does not know about datarootdir, expand it.
16343 # FIXME: This hack should be removed a few years after 2.60.
16344 ac_datarootdir_hack=; ac_datarootdir_seen=
16345 ac_sed_dataroot='
16346 /datarootdir/ {
16350 /@datadir@/p
16351 /@docdir@/p
16352 /@infodir@/p
16353 /@localedir@/p
16354 /@mandir@/p'
16355 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16356 *datarootdir*) ac_datarootdir_seen=yes;;
16357 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16359 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16360 _ACEOF
16361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16362 ac_datarootdir_hack='
16363 s&@datadir@&$datadir&g
16364 s&@docdir@&$docdir&g
16365 s&@infodir@&$infodir&g
16366 s&@localedir@&$localedir&g
16367 s&@mandir@&$mandir&g
16368 s&\\\${datarootdir}&$datarootdir&g' ;;
16369 esac
16370 _ACEOF
16372 # Neutralize VPATH when `$srcdir' = `.'.
16373 # Shell code in configure.ac might set extrasub.
16374 # FIXME: do we really want to maintain this feature?
16375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16376 ac_sed_extra="$ac_vpsub
16377 $extrasub
16378 _ACEOF
16379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16382 s|@configure_input@|$ac_sed_conf_input|;t t
16383 s&@top_builddir@&$ac_top_builddir_sub&;t t
16384 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16385 s&@srcdir@&$ac_srcdir&;t t
16386 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16387 s&@top_srcdir@&$ac_top_srcdir&;t t
16388 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16389 s&@builddir@&$ac_builddir&;t t
16390 s&@abs_builddir@&$ac_abs_builddir&;t t
16391 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16392 s&@INSTALL@&$ac_INSTALL&;t t
16393 $ac_datarootdir_hack
16395 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16396 if $ac_cs_awk_getline; then
16397 $AWK -f "$ac_tmp/subs.awk"
16398 else
16399 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16400 fi \
16401 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16403 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16404 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16405 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16406 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16408 which seems to be undefined. Please make sure it is defined" >&5
16409 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16410 which seems to be undefined. Please make sure it is defined" >&2;}
16412 rm -f "$ac_tmp/stdin"
16413 case $ac_file in
16414 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16415 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16416 esac \
16417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16422 esac
16425 case $ac_file$ac_mode in
16426 "Makefile":F) sed "$extrasub_build" Makefile |
16427 sed "$extrasub_host" |
16428 sed "$extrasub_target" > mf$$
16429 mv -f mf$$ Makefile ;;
16431 esac
16432 done # for ac_tag
16435 as_fn_exit 0
16436 _ACEOF
16437 ac_clean_files=$ac_clean_files_save
16439 test $ac_write_fail = 0 ||
16440 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16443 # configure is writing to config.log, and then calls config.status.
16444 # config.status does its own redirection, appending to config.log.
16445 # Unfortunately, on DOS this fails, as config.log is still kept open
16446 # by configure, so config.status won't be able to write to it; its
16447 # output is simply discarded. So we exec the FD to /dev/null,
16448 # effectively closing config.log, so it can be properly (re)opened and
16449 # appended to by config.status. When coming back to configure, we
16450 # need to make the FD available again.
16451 if test "$no_create" != yes; then
16452 ac_cs_success=:
16453 ac_config_status_args=
16454 test "$silent" = yes &&
16455 ac_config_status_args="$ac_config_status_args --quiet"
16456 exec 5>/dev/null
16457 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16458 exec 5>>config.log
16459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16460 # would make configure fail if this is the last instruction.
16461 $ac_cs_success || as_fn_exit 1
16463 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16465 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}