]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
configure: Also check C++11 (flags) for ${build} compiler not only for ${host}
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
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
95 do
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
101
102 ;;
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
108 fi
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
112 fi
113
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='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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
157 fi
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 *) :
173 ;;
174 esac
175 fi
176 "
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; }
182
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 :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
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
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
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
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
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
225 fi
226 fi
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
236
237
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
258 fi
259
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."
271 fi
272 exit 1
273 fi
274 fi
275 fi
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
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
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 ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
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/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
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"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
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 ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
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 ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
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 ()
409 {
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
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
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
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
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
436 fi
437
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/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
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
463
464
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 '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
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; }
487
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
498 }
499
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;;
509 *)
510 ECHO_N='-n';;
511 esac
512
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
519 fi
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'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
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
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
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'"
552
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'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
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`
564
565 #
566 # Initializations.
567 #
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=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 compare_exclusions
590 stage2_werror_flag
591 stage1_checking
592 stage1_cflags
593 MAINT
594 MAINTAINER_MODE_FALSE
595 MAINTAINER_MODE_TRUE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
599 FLAGS_FOR_TARGET
600 RAW_CXX_FOR_TARGET
601 WINDMC_FOR_TARGET
602 WINDRES_FOR_TARGET
603 STRIP_FOR_TARGET
604 READELF_FOR_TARGET
605 RANLIB_FOR_TARGET
606 OTOOL_FOR_TARGET
607 OBJDUMP_FOR_TARGET
608 OBJCOPY_FOR_TARGET
609 NM_FOR_TARGET
610 LIPO_FOR_TARGET
611 LD_FOR_TARGET
612 DLLTOOL_FOR_TARGET
613 AS_FOR_TARGET
614 AR_FOR_TARGET
615 GDC_FOR_TARGET
616 GOC_FOR_TARGET
617 GFORTRAN_FOR_TARGET
618 GCC_FOR_TARGET
619 CXX_FOR_TARGET
620 CC_FOR_TARGET
621 READELF
622 OTOOL
623 OBJDUMP
624 OBJCOPY
625 WINDMC
626 WINDRES
627 STRIP
628 RANLIB
629 NM
630 LIPO
631 LD
632 DLLTOOL
633 AS
634 AR
635 RUNTEST
636 EXPECT
637 MAKEINFO
638 FLEX
639 LEX
640 M4
641 BISON
642 YACC
643 WINDRES_FOR_BUILD
644 WINDMC_FOR_BUILD
645 RANLIB_FOR_BUILD
646 NM_FOR_BUILD
647 LD_FOR_BUILD
648 LDFLAGS_FOR_BUILD
649 GDC_FOR_BUILD
650 GOC_FOR_BUILD
651 GFORTRAN_FOR_BUILD
652 DLLTOOL_FOR_BUILD
653 CXX_FOR_BUILD
654 CXXFLAGS_FOR_BUILD
655 CFLAGS_FOR_BUILD
656 CC_FOR_BUILD
657 AS_FOR_BUILD
658 AR_FOR_BUILD
659 target_configdirs
660 configdirs
661 build_configdirs
662 INSTALL_GDB_TK
663 GDB_TK
664 CONFIGURE_GDB_TK
665 build_tooldir
666 tooldir
667 GCC_SHLIB_SUBDIR
668 RPATH_ENVVAR
669 target_configargs
670 host_configargs
671 build_configargs
672 BUILD_CONFIG
673 LDFLAGS_FOR_TARGET
674 CXXFLAGS_FOR_TARGET
675 CFLAGS_FOR_TARGET
676 DEBUG_PREFIX_CFLAGS_FOR_TARGET
677 SYSROOT_CFLAGS_FOR_TARGET
678 get_gcc_base_ver
679 extra_host_zlib_configure_flags
680 extra_host_libiberty_configure_flags
681 stage1_languages
682 host_shared
683 extra_linker_plugin_flags
684 extra_linker_plugin_configure_flags
685 islinc
686 isllibs
687 poststage1_ldflags
688 poststage1_libs
689 stage1_ldflags
690 stage1_libs
691 extra_isl_gmp_configure_flags
692 extra_mpc_mpfr_configure_flags
693 extra_mpc_gmp_configure_flags
694 extra_mpfr_configure_flags
695 gmpinc
696 gmplibs
697 HAVE_CXX11_FOR_BUILD
698 HAVE_CXX11
699 do_compare
700 GNATMAKE
701 GNATBIND
702 ac_ct_CXX
703 CXXFLAGS
704 CXX
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 extra_liboffloadmic_configure_flags
713 target_subdir
714 host_subdir
715 build_subdir
716 build_libsubdir
717 AWK
718 SED
719 LN_S
720 LN
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_os
725 target_vendor
726 target_cpu
727 target
728 host_os
729 host_vendor
730 host_cpu
731 host
732 target_noncanonical
733 host_noncanonical
734 build_noncanonical
735 build_os
736 build_vendor
737 build_cpu
738 build
739 TOPLEVEL_CONFIGURE_ARGUMENTS
740 target_alias
741 host_alias
742 build_alias
743 LIBS
744 ECHO_T
745 ECHO_N
746 ECHO_C
747 DEFS
748 mandir
749 localedir
750 libdir
751 psdir
752 pdfdir
753 dvidir
754 htmldir
755 infodir
756 docdir
757 oldincludedir
758 includedir
759 localstatedir
760 sharedstatedir
761 sysconfdir
762 datadir
763 datarootdir
764 libexecdir
765 sbindir
766 bindir
767 program_transform_name
768 prefix
769 exec_prefix
770 PACKAGE_URL
771 PACKAGE_BUGREPORT
772 PACKAGE_STRING
773 PACKAGE_VERSION
774 PACKAGE_TARNAME
775 PACKAGE_NAME
776 PATH_SEPARATOR
777 SHELL'
778 ac_subst_files='serialization_dependencies
779 host_makefile_frag
780 target_makefile_frag
781 alphaieee_frag
782 ospace_frag'
783 ac_user_opts='
784 enable_option_checking
785 with_build_libsubdir
786 with_system_zlib
787 enable_as_accelerator_for
788 enable_offload_targets
789 enable_gold
790 enable_ld
791 enable_compressed_debug_sections
792 enable_libquadmath
793 enable_libquadmath_support
794 enable_libada
795 enable_libssp
796 enable_libstdcxx
797 enable_liboffloadmic
798 enable_bootstrap
799 with_mpc
800 with_mpc_include
801 with_mpc_lib
802 with_mpfr_dir
803 with_mpfr
804 with_mpfr_include
805 with_mpfr_lib
806 with_gmp_dir
807 with_gmp
808 with_gmp_include
809 with_gmp_lib
810 with_stage1_libs
811 with_static_standard_libraries
812 with_stage1_ldflags
813 with_boot_libs
814 with_boot_ldflags
815 with_isl
816 with_isl_include
817 with_isl_lib
818 enable_isl_version_check
819 enable_lto
820 enable_linker_plugin_configure_flags
821 enable_linker_plugin_flags
822 enable_host_shared
823 enable_stage1_languages
824 enable_objc_gc
825 with_target_bdw_gc
826 with_target_bdw_gc_include
827 with_target_bdw_gc_lib
828 with_gcc_major_version_only
829 with_build_sysroot
830 with_debug_prefix_map
831 with_build_config
832 enable_vtable_verify
833 enable_serial_configure
834 with_build_time_tools
835 enable_maintainer_mode
836 enable_stage1_checking
837 enable_werror
838 '
839 ac_precious_vars='build_alias
840 host_alias
841 target_alias
842 CC
843 CFLAGS
844 LDFLAGS
845 LIBS
846 CPPFLAGS
847 CXX
848 CXXFLAGS
849 CCC
850 build_configargs
851 host_configargs
852 target_configargs
853 AR
854 AS
855 DLLTOOL
856 LD
857 LIPO
858 NM
859 RANLIB
860 STRIP
861 WINDRES
862 WINDMC
863 OBJCOPY
864 OBJDUMP
865 OTOOL
866 READELF
867 CC_FOR_TARGET
868 CXX_FOR_TARGET
869 GCC_FOR_TARGET
870 GFORTRAN_FOR_TARGET
871 GOC_FOR_TARGET
872 GDC_FOR_TARGET
873 AR_FOR_TARGET
874 AS_FOR_TARGET
875 DLLTOOL_FOR_TARGET
876 LD_FOR_TARGET
877 LIPO_FOR_TARGET
878 NM_FOR_TARGET
879 OBJCOPY_FOR_TARGET
880 OBJDUMP_FOR_TARGET
881 OTOOL_FOR_TARGET
882 RANLIB_FOR_TARGET
883 READELF_FOR_TARGET
884 STRIP_FOR_TARGET
885 WINDRES_FOR_TARGET
886 WINDMC_FOR_TARGET'
887
888
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 ac_unrecognized_opts=
893 ac_unrecognized_sep=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
910
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
936
937 ac_prev=
938 ac_dashdash=
939 for ac_option
940 do
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
944 ac_prev=
945 continue
946 fi
947
948 case $ac_option in
949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *=) ac_optarg= ;;
951 *) ac_optarg=yes ;;
952 esac
953
954 # Accept the important Cygnus configure options, so we can diagnose typos.
955
956 case $ac_dashdash$ac_option in
957 --)
958 ac_dashdash=yes ;;
959
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
964
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
969
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
976
977 --config-cache | -C)
978 cache_file=config.cache ;;
979
980 -datadir | --datadir | --datadi | --datad)
981 ac_prev=datadir ;;
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
984
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
991
992 -disable-* | --disable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1007
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1012
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1017
1018 -enable-* | --enable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=\$ac_optarg ;;
1237
1238 -without-* | --without-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
1253
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1257
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1264
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1271
1272 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information"
1274 ;;
1275
1276 *=*)
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
1279 case $ac_envvar in #(
1280 '' | [0-9]* | *[!_$as_cr_alnum]* )
1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282 esac
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1285
1286 *)
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1292 ;;
1293
1294 esac
1295 done
1296
1297 if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299 as_fn_error $? "missing argument to $ac_option"
1300 fi
1301
1302 if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1304 no) ;;
1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307 esac
1308 fi
1309
1310 # Check all directory arguments for consistency.
1311 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
1315 do
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
1324 case $ac_val in
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 esac
1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1329 done
1330
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1337
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1344 fi
1345 fi
1346
1347 ac_tool_prefix=
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
1350 test "$silent" = yes && exec 6>/dev/null
1351
1352
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356 as_fn_error $? "working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 as_fn_error $? "pwd does not report name of working directory"
1359
1360
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\).*/{
1384 s//\1/
1385 q
1386 }
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1391 fi
1392 else
1393 ac_srcdir_defaulted=no
1394 fi
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1398 fi
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402 pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1406 fi
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 case $srcdir in
1414 *" "*)
1415 as_fn_error $? "path to source, $srcdir, contains spaces"
1416 ;;
1417 esac
1418 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1419
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1426
1427 #
1428 # Report the --help message.
1429 #
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434 \`configure' configures this package to adapt to many kinds of systems.
1435
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1440
1441 Defaults for the options are specified in brackets.
1442
1443 Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking ...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 [PREFIX]
1459
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1464
1465 For better control, use the options below.
1466
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487 _ACEOF
1488
1489 cat <<\_ACEOF
1490
1491 Program names:
1492 --program-prefix=PREFIX prepend PREFIX to installed program names
1493 --program-suffix=SUFFIX append SUFFIX to installed program names
1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495
1496 System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 --target=TARGET configure for building compilers for TARGET [HOST]
1500 _ACEOF
1501 fi
1502
1503 if test -n "$ac_init_help"; then
1504
1505 cat <<\_ACEOF
1506
1507 Optional Features:
1508 --disable-option-checking ignore unrecognized --enable/--with options
1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1511 --enable-as-accelerator-for=ARG
1512 build as offload target compiler. Specify offload
1513 host triple by ARG
1514 --enable-offload-targets=LIST
1515 enable offloading to devices from comma-separated
1516 LIST of TARGET[=DIR]. Use optional path to find
1517 offload target compiler during the build
1518 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1519 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1520 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1521 Enable compressed debug sections for gas, gold or ld
1522 by default
1523 --disable-libquadmath do not build libquadmath directory
1524 --disable-libquadmath-support
1525 disable libquadmath support for Fortran
1526 --enable-libada build libada directory
1527 --enable-libssp build libssp directory
1528 --disable-libstdcxx do not build libstdc++-v3 directory
1529 --enable-liboffloadmic=ARG
1530 build liboffloadmic [ARG={no,host,target}]
1531 --enable-bootstrap enable bootstrapping [yes if native build]
1532 --disable-isl-version-check
1533 disable check for isl version
1534 --enable-lto enable link time optimization support
1535 --enable-linker-plugin-configure-flags=FLAGS
1536 additional flags for configuring linker plugins
1537 [none]
1538 --enable-linker-plugin-flags=FLAGS
1539 additional flags for configuring and building linker
1540 plugins [none]
1541 --enable-host-shared build host code as shared libraries
1542 --enable-stage1-languages[=all]
1543 choose additional languages to build during stage1.
1544 Mostly useful for compiler development
1545 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1546 Objective-C runtime
1547 --enable-vtable-verify Enable vtable verification feature
1548 --enable-serial-[{host,target,build}-]configure
1549 force sequential configuration of sub-packages for
1550 the host, target or build machine, or all
1551 sub-packages
1552 --enable-maintainer-mode
1553 enable make rules and dependencies not useful (and
1554 sometimes confusing) to the casual installer
1555 --enable-stage1-checking[=all]
1556 choose additional checking for stage1 of the
1557 compiler
1558 --enable-werror enable -Werror in bootstrap stage2 and later
1559
1560 Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-build-libsubdir=DIR Directory where to find libraries for build system
1564 --with-system-zlib use installed libz
1565 --with-mpc=PATH specify prefix directory for installed MPC package.
1566 Equivalent to --with-mpc-include=PATH/include plus
1567 --with-mpc-lib=PATH/lib
1568 --with-mpc-include=PATH specify directory for installed MPC include files
1569 --with-mpc-lib=PATH specify directory for the installed MPC library
1570 --with-mpfr-dir=PATH this option has been REMOVED
1571 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1572 Equivalent to --with-mpfr-include=PATH/include plus
1573 --with-mpfr-lib=PATH/lib
1574 --with-mpfr-include=PATH
1575 specify directory for installed MPFR include files
1576 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1577 --with-gmp-dir=PATH this option has been REMOVED
1578 --with-gmp=PATH specify prefix directory for the installed GMP
1579 package. Equivalent to
1580 --with-gmp-include=PATH/include plus
1581 --with-gmp-lib=PATH/lib
1582 --with-gmp-include=PATH specify directory for installed GMP include files
1583 --with-gmp-lib=PATH specify directory for the installed GMP library
1584 --with-stage1-libs=LIBS libraries for stage1
1585 --with-static-standard-libraries
1586 use -static-libstdc++ and -static-libgcc
1587 (default=auto)
1588 --with-stage1-ldflags=FLAGS
1589 linker flags for stage1
1590 --with-boot-libs=LIBS libraries for stage2 and later
1591 --with-boot-ldflags=FLAGS
1592 linker flags for stage2 and later
1593 --with-isl=PATH Specify prefix directory for the installed isl
1594 package. Equivalent to
1595 --with-isl-include=PATH/include plus
1596 --with-isl-lib=PATH/lib
1597 --with-isl-include=PATH Specify directory for installed isl include files
1598 --with-isl-lib=PATH Specify the directory for the installed isl library
1599 --with-target-bdw-gc=PATHLIST
1600 specify prefix directory for installed bdw-gc
1601 package. Equivalent to
1602 --with-target-bdw-gc-include=PATH/include plus
1603 --with-target-bdw-gc-lib=PATH/lib
1604 --with-target-bdw-gc-include=PATHLIST
1605 specify directories for installed bdw-gc include
1606 files
1607 --with-target-bdw-gc-lib=PATHLIST
1608 specify directories for installed bdw-gc library
1609 --with-gcc-major-version-only
1610 use only GCC major number in filesystem paths
1611 --with-build-sysroot=SYSROOT
1612 use sysroot as the system root during the build
1613 --with-debug-prefix-map='A=B C=D ...'
1614 map A to B, C to D ... in debug information
1615 --with-build-config='NAME NAME2...'
1616 use config/NAME.mk build configuration
1617 --with-build-time-tools=PATH
1618 use given path to find target tools during the build
1619
1620 Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
1625 LIBS libraries to pass to the linker, e.g. -l<library>
1626 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1627 you have headers in a nonstandard directory <include dir>
1628 CXX C++ compiler command
1629 CXXFLAGS C++ compiler flags
1630 build_configargs
1631 additional configure arguments for build directories
1632 host_configargs
1633 additional configure arguments for host directories
1634 target_configargs
1635 additional configure arguments for target directories
1636 AR AR for the host
1637 AS AS for the host
1638 DLLTOOL DLLTOOL for the host
1639 LD LD for the host
1640 LIPO LIPO for the host
1641 NM NM for the host
1642 RANLIB RANLIB for the host
1643 STRIP STRIP for the host
1644 WINDRES WINDRES for the host
1645 WINDMC WINDMC for the host
1646 OBJCOPY OBJCOPY for the host
1647 OBJDUMP OBJDUMP for the host
1648 OTOOL OTOOL for the host
1649 READELF READELF for the host
1650 CC_FOR_TARGET
1651 CC for the target
1652 CXX_FOR_TARGET
1653 CXX for the target
1654 GCC_FOR_TARGET
1655 GCC for the target
1656 GFORTRAN_FOR_TARGET
1657 GFORTRAN for the target
1658 GOC_FOR_TARGET
1659 GOC for the target
1660 GDC_FOR_TARGET
1661 GDC for the target
1662 AR_FOR_TARGET
1663 AR for the target
1664 AS_FOR_TARGET
1665 AS for the target
1666 DLLTOOL_FOR_TARGET
1667 DLLTOOL for the target
1668 LD_FOR_TARGET
1669 LD for the target
1670 LIPO_FOR_TARGET
1671 LIPO for the target
1672 NM_FOR_TARGET
1673 NM for the target
1674 OBJCOPY_FOR_TARGET
1675 OBJCOPY for the target
1676 OBJDUMP_FOR_TARGET
1677 OBJDUMP for the target
1678 OTOOL_FOR_TARGET
1679 OTOOL for the target
1680 RANLIB_FOR_TARGET
1681 RANLIB for the target
1682 READELF_FOR_TARGET
1683 READELF for the target
1684 STRIP_FOR_TARGET
1685 STRIP for the target
1686 WINDRES_FOR_TARGET
1687 WINDRES for the target
1688 WINDMC_FOR_TARGET
1689 WINDMC for the target
1690
1691 Use these variables to override the choices made by `configure' or to help
1692 it to find libraries and programs with nonstandard names/locations.
1693
1694 Report bugs to the package provider.
1695 _ACEOF
1696 ac_status=$?
1697 fi
1698
1699 if test "$ac_init_help" = "recursive"; then
1700 # If there are subdirs, report their specific --help.
1701 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1702 test -d "$ac_dir" ||
1703 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1704 continue
1705 ac_builddir=.
1706
1707 case "$ac_dir" in
1708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *)
1710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711 # A ".." for each directory in $ac_dir_suffix.
1712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713 case $ac_top_builddir_sub in
1714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716 esac ;;
1717 esac
1718 ac_abs_top_builddir=$ac_pwd
1719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720 # for backward compatibility:
1721 ac_top_builddir=$ac_top_build_prefix
1722
1723 case $srcdir in
1724 .) # We are building in place.
1725 ac_srcdir=.
1726 ac_top_srcdir=$ac_top_builddir_sub
1727 ac_abs_top_srcdir=$ac_pwd ;;
1728 [\\/]* | ?:[\\/]* ) # Absolute name.
1729 ac_srcdir=$srcdir$ac_dir_suffix;
1730 ac_top_srcdir=$srcdir
1731 ac_abs_top_srcdir=$srcdir ;;
1732 *) # Relative name.
1733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734 ac_top_srcdir=$ac_top_build_prefix$srcdir
1735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1736 esac
1737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1738
1739 cd "$ac_dir" || { ac_status=$?; continue; }
1740 # Check for guested configure.
1741 if test -f "$ac_srcdir/configure.gnu"; then
1742 echo &&
1743 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744 elif test -f "$ac_srcdir/configure"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure" --help=recursive
1747 else
1748 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1749 fi || ac_status=$?
1750 cd "$ac_pwd" || { ac_status=$?; break; }
1751 done
1752 fi
1753
1754 test -n "$ac_init_help" && exit $ac_status
1755 if $ac_init_version; then
1756 cat <<\_ACEOF
1757 configure
1758 generated by GNU Autoconf 2.69
1759
1760 Copyright (C) 2012 Free Software Foundation, Inc.
1761 This configure script is free software; the Free Software Foundation
1762 gives unlimited permission to copy, distribute and modify it.
1763 _ACEOF
1764 exit
1765 fi
1766
1767 ## ------------------------ ##
1768 ## Autoconf initialization. ##
1769 ## ------------------------ ##
1770
1771 # ac_fn_c_try_compile LINENO
1772 # --------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_compile ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext
1778 if { { ac_try="$ac_compile"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.$ac_objext; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=1
1803 fi
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_compile
1808
1809 # ac_fn_cxx_try_compile LINENO
1810 # ----------------------------
1811 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_cxx_try_compile ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext
1816 if { { ac_try="$ac_compile"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_cxx_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.$ac_objext; then :
1835 ac_retval=0
1836 else
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=1
1841 fi
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1844
1845 } # ac_fn_cxx_try_compile
1846
1847 # ac_fn_cxx_try_link LINENO
1848 # -------------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_cxx_try_link ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_cxx_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest$ac_exeext && {
1873 test "$cross_compiling" = yes ||
1874 test -x conftest$ac_exeext
1875 }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882 fi
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1890
1891 } # ac_fn_cxx_try_link
1892
1893 # ac_fn_c_try_link LINENO
1894 # -----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_link ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
1920 test -x conftest$ac_exeext
1921 }; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927 ac_retval=1
1928 fi
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1936
1937 } # ac_fn_c_try_link
1938 cat >config.log <<_ACEOF
1939 This file contains any messages produced by compilers while
1940 running configure, to aid debugging if configure makes a mistake.
1941
1942 It was created by $as_me, which was
1943 generated by GNU Autoconf 2.69. Invocation command line was
1944
1945 $ $0 $@
1946
1947 _ACEOF
1948 exec 5>>config.log
1949 {
1950 cat <<_ASUNAME
1951 ## --------- ##
1952 ## Platform. ##
1953 ## --------- ##
1954
1955 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960
1961 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1963
1964 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1965 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1966 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1967 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1968 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1969 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1970 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1971
1972 _ASUNAME
1973
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 $as_echo "PATH: $as_dir"
1980 done
1981 IFS=$as_save_IFS
1982
1983 } >&5
1984
1985 cat >&5 <<_ACEOF
1986
1987
1988 ## ----------- ##
1989 ## Core tests. ##
1990 ## ----------- ##
1991
1992 _ACEOF
1993
1994
1995 # Keep a trace of the command line.
1996 # Strip out --no-create and --no-recursion so they do not pile up.
1997 # Strip out --silent because we don't want to record it for future runs.
1998 # Also quote any args containing shell meta-characters.
1999 # Make two passes to allow for proper duplicate-argument suppression.
2000 ac_configure_args=
2001 ac_configure_args0=
2002 ac_configure_args1=
2003 ac_must_keep_next=false
2004 for ac_pass in 1 2
2005 do
2006 for ac_arg
2007 do
2008 case $ac_arg in
2009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2011 | -silent | --silent | --silen | --sile | --sil)
2012 continue ;;
2013 *\'*)
2014 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2015 esac
2016 case $ac_pass in
2017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2018 2)
2019 as_fn_append ac_configure_args1 " '$ac_arg'"
2020 if test $ac_must_keep_next = true; then
2021 ac_must_keep_next=false # Got value, back to normal.
2022 else
2023 case $ac_arg in
2024 *=* | --config-cache | -C | -disable-* | --disable-* \
2025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2027 | -with-* | --with-* | -without-* | --without-* | --x)
2028 case "$ac_configure_args0 " in
2029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2030 esac
2031 ;;
2032 -* ) ac_must_keep_next=true ;;
2033 esac
2034 fi
2035 as_fn_append ac_configure_args " '$ac_arg'"
2036 ;;
2037 esac
2038 done
2039 done
2040 { ac_configure_args0=; unset ac_configure_args0;}
2041 { ac_configure_args1=; unset ac_configure_args1;}
2042
2043 # When interrupted or exit'd, cleanup temporary files, and complete
2044 # config.log. We remove comments because anyway the quotes in there
2045 # would cause problems or look ugly.
2046 # WARNING: Use '\'' to represent an apostrophe within the trap.
2047 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2048 trap 'exit_status=$?
2049 # Save into config.log some information that might help in debugging.
2050 {
2051 echo
2052
2053 $as_echo "## ---------------- ##
2054 ## Cache variables. ##
2055 ## ---------------- ##"
2056 echo
2057 # The following way of writing the cache mishandles newlines in values,
2058 (
2059 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2060 eval ac_val=\$$ac_var
2061 case $ac_val in #(
2062 *${as_nl}*)
2063 case $ac_var in #(
2064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2066 esac
2067 case $ac_var in #(
2068 _ | IFS | as_nl) ;; #(
2069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2070 *) { eval $ac_var=; unset $ac_var;} ;;
2071 esac ;;
2072 esac
2073 done
2074 (set) 2>&1 |
2075 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2076 *${as_nl}ac_space=\ *)
2077 sed -n \
2078 "s/'\''/'\''\\\\'\'''\''/g;
2079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2080 ;; #(
2081 *)
2082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2083 ;;
2084 esac |
2085 sort
2086 )
2087 echo
2088
2089 $as_echo "## ----------------- ##
2090 ## Output variables. ##
2091 ## ----------------- ##"
2092 echo
2093 for ac_var in $ac_subst_vars
2094 do
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2102
2103 if test -n "$ac_subst_files"; then
2104 $as_echo "## ------------------- ##
2105 ## File substitutions. ##
2106 ## ------------------- ##"
2107 echo
2108 for ac_var in $ac_subst_files
2109 do
2110 eval ac_val=\$$ac_var
2111 case $ac_val in
2112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113 esac
2114 $as_echo "$ac_var='\''$ac_val'\''"
2115 done | sort
2116 echo
2117 fi
2118
2119 if test -s confdefs.h; then
2120 $as_echo "## ----------- ##
2121 ## confdefs.h. ##
2122 ## ----------- ##"
2123 echo
2124 cat confdefs.h
2125 echo
2126 fi
2127 test "$ac_signal" != 0 &&
2128 $as_echo "$as_me: caught signal $ac_signal"
2129 $as_echo "$as_me: exit $exit_status"
2130 } >&5
2131 rm -f core *.core core.conftest.* &&
2132 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2133 exit $exit_status
2134 ' 0
2135 for ac_signal in 1 2 13 15; do
2136 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2137 done
2138 ac_signal=0
2139
2140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2141 rm -f -r conftest* confdefs.h
2142
2143 $as_echo "/* confdefs.h */" > confdefs.h
2144
2145 # Predefined preprocessor variables.
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_NAME "$PACKAGE_NAME"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_STRING "$PACKAGE_STRING"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_URL "$PACKAGE_URL"
2169 _ACEOF
2170
2171
2172 # Let the site file select an alternate cache file if it wants to.
2173 # Prefer an explicitly selected file to automatically selected ones.
2174 ac_site_file1=NONE
2175 ac_site_file2=NONE
2176 if test -n "$CONFIG_SITE"; then
2177 # We do not want a PATH search for config.site.
2178 case $CONFIG_SITE in #((
2179 -*) ac_site_file1=./$CONFIG_SITE;;
2180 */*) ac_site_file1=$CONFIG_SITE;;
2181 *) ac_site_file1=./$CONFIG_SITE;;
2182 esac
2183 elif test "x$prefix" != xNONE; then
2184 ac_site_file1=$prefix/share/config.site
2185 ac_site_file2=$prefix/etc/config.site
2186 else
2187 ac_site_file1=$ac_default_prefix/share/config.site
2188 ac_site_file2=$ac_default_prefix/etc/config.site
2189 fi
2190 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2191 do
2192 test "x$ac_site_file" = xNONE && continue
2193 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2195 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2196 sed 's/^/| /' "$ac_site_file" >&5
2197 . "$ac_site_file" \
2198 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2200 as_fn_error $? "failed to load site script $ac_site_file
2201 See \`config.log' for more details" "$LINENO" 5; }
2202 fi
2203 done
2204
2205 if test -r "$cache_file"; then
2206 # Some versions of bash will fail to source /dev/null (special files
2207 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2210 $as_echo "$as_me: loading cache $cache_file" >&6;}
2211 case $cache_file in
2212 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2213 *) . "./$cache_file";;
2214 esac
2215 fi
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2218 $as_echo "$as_me: creating cache $cache_file" >&6;}
2219 >$cache_file
2220 fi
2221
2222 # Check that the precious variables saved in the cache have kept the same
2223 # value.
2224 ac_cache_corrupted=false
2225 for ac_var in $ac_precious_vars; do
2226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2227 eval ac_new_set=\$ac_env_${ac_var}_set
2228 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2229 eval ac_new_val=\$ac_env_${ac_var}_value
2230 case $ac_old_set,$ac_new_set in
2231 set,)
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2233 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2234 ac_cache_corrupted=: ;;
2235 ,set)
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2237 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2238 ac_cache_corrupted=: ;;
2239 ,);;
2240 *)
2241 if test "x$ac_old_val" != "x$ac_new_val"; then
2242 # differences in whitespace do not lead to failure.
2243 ac_old_val_w=`echo x $ac_old_val`
2244 ac_new_val_w=`echo x $ac_new_val`
2245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2247 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2248 ac_cache_corrupted=:
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2251 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2252 eval $ac_var=\$ac_old_val
2253 fi
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2255 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2257 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2258 fi;;
2259 esac
2260 # Pass precious variables to config.status.
2261 if test "$ac_new_set" = set; then
2262 case $ac_new_val in
2263 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2264 *) ac_arg=$ac_var=$ac_new_val ;;
2265 esac
2266 case " $ac_configure_args " in
2267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2268 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2269 esac
2270 fi
2271 done
2272 if $ac_cache_corrupted; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2276 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2277 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2278 fi
2279 ## -------------------- ##
2280 ## Main body of script. ##
2281 ## -------------------- ##
2282
2283 ac_ext=c
2284 ac_cpp='$CPP $CPPFLAGS'
2285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288
2289
2290
2291
2292
2293
2294
2295
2296 progname=$0
2297 # if PWD already has a value, it is probably wrong.
2298 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2299
2300 # Export original configure arguments for use by sub-configures.
2301 # Quote arguments with shell meta charatcers.
2302 TOPLEVEL_CONFIGURE_ARGUMENTS=
2303 set -- "$progname" "$@"
2304 for ac_arg
2305 do
2306 case "$ac_arg" in
2307 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2308 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2309 # if the argument is of the form -foo=baz, quote the baz part only
2310 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2311 *) ;;
2312 esac
2313 # Add the quoted argument to the list.
2314 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2315 done
2316 if test "$silent" = yes; then
2317 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2318 fi
2319 # Remove the initial space we just introduced and, as these will be
2320 # expanded by make, quote '$'.
2321 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2322
2323
2324 # Find the build, host, and target systems.
2325 ac_aux_dir=
2326 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2327 if test -f "$ac_dir/install-sh"; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/install-sh -c"
2330 break
2331 elif test -f "$ac_dir/install.sh"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/install.sh -c"
2334 break
2335 elif test -f "$ac_dir/shtool"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/shtool install -c"
2338 break
2339 fi
2340 done
2341 if test -z "$ac_aux_dir"; then
2342 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2343 fi
2344
2345 # These three variables are undocumented and unsupported,
2346 # and are intended to be withdrawn in a future Autoconf release.
2347 # They can cause serious problems if a builder's source tree is in a directory
2348 # whose full name contains unusual characters.
2349 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2352
2353
2354 # Make sure we can run config.sub.
2355 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2356 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2357
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2359 $as_echo_n "checking build system type... " >&6; }
2360 if ${ac_cv_build+:} false; then :
2361 $as_echo_n "(cached) " >&6
2362 else
2363 ac_build_alias=$build_alias
2364 test "x$ac_build_alias" = x &&
2365 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2366 test "x$ac_build_alias" = x &&
2367 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2368 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2369 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2370
2371 fi
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2373 $as_echo "$ac_cv_build" >&6; }
2374 case $ac_cv_build in
2375 *-*-*) ;;
2376 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2377 esac
2378 build=$ac_cv_build
2379 ac_save_IFS=$IFS; IFS='-'
2380 set x $ac_cv_build
2381 shift
2382 build_cpu=$1
2383 build_vendor=$2
2384 shift; shift
2385 # Remember, the first character of IFS is used to create $*,
2386 # except with old shells:
2387 build_os=$*
2388 IFS=$ac_save_IFS
2389 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2390
2391
2392 case ${build_alias} in
2393 "") build_noncanonical=${build} ;;
2394 *) build_noncanonical=${build_alias} ;;
2395 esac
2396
2397
2398
2399 case ${host_alias} in
2400 "") host_noncanonical=${build_noncanonical} ;;
2401 *) host_noncanonical=${host_alias} ;;
2402 esac
2403
2404
2405
2406 case ${target_alias} in
2407 "") target_noncanonical=${host_noncanonical} ;;
2408 *) target_noncanonical=${target_alias} ;;
2409 esac
2410
2411
2412
2413
2414 test "$host_noncanonical" = "$target_noncanonical" &&
2415 test "$program_prefix$program_suffix$program_transform_name" = \
2416 NONENONEs,x,x, &&
2417 program_transform_name=s,y,y,
2418
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2420 $as_echo_n "checking host system type... " >&6; }
2421 if ${ac_cv_host+:} false; then :
2422 $as_echo_n "(cached) " >&6
2423 else
2424 if test "x$host_alias" = x; then
2425 ac_cv_host=$ac_cv_build
2426 else
2427 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2429 fi
2430
2431 fi
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2433 $as_echo "$ac_cv_host" >&6; }
2434 case $ac_cv_host in
2435 *-*-*) ;;
2436 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2437 esac
2438 host=$ac_cv_host
2439 ac_save_IFS=$IFS; IFS='-'
2440 set x $ac_cv_host
2441 shift
2442 host_cpu=$1
2443 host_vendor=$2
2444 shift; shift
2445 # Remember, the first character of IFS is used to create $*,
2446 # except with old shells:
2447 host_os=$*
2448 IFS=$ac_save_IFS
2449 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2450
2451
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2453 $as_echo_n "checking target system type... " >&6; }
2454 if ${ac_cv_target+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test "x$target_alias" = x; then
2458 ac_cv_target=$ac_cv_host
2459 else
2460 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2461 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2462 fi
2463
2464 fi
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2466 $as_echo "$ac_cv_target" >&6; }
2467 case $ac_cv_target in
2468 *-*-*) ;;
2469 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2470 esac
2471 target=$ac_cv_target
2472 ac_save_IFS=$IFS; IFS='-'
2473 set x $ac_cv_target
2474 shift
2475 target_cpu=$1
2476 target_vendor=$2
2477 shift; shift
2478 # Remember, the first character of IFS is used to create $*,
2479 # except with old shells:
2480 target_os=$*
2481 IFS=$ac_save_IFS
2482 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2483
2484
2485 # The aliases save the names the user supplied, while $host etc.
2486 # will get canonicalized.
2487 test -n "$target_alias" &&
2488 test "$program_prefix$program_suffix$program_transform_name" = \
2489 NONENONEs,x,x, &&
2490 program_prefix=${target_alias}-
2491
2492 test "$program_prefix" != NONE &&
2493 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2494 # Use a double $ so make ignores it.
2495 test "$program_suffix" != NONE &&
2496 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2497 # Double any \ or $.
2498 # By default was `s,x,x', remove it if useless.
2499 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2500 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2501
2502
2503
2504 # Get 'install' or 'install-sh' and its variants.
2505 # Find a good install program. We prefer a C program (faster),
2506 # so one script is as good as another. But avoid the broken or
2507 # incompatible versions:
2508 # SysV /etc/install, /usr/sbin/install
2509 # SunOS /usr/etc/install
2510 # IRIX /sbin/install
2511 # AIX /bin/install
2512 # AmigaOS /C/install, which installs bootblocks on floppy discs
2513 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2516 # OS/2's system install, which has a completely different semantic
2517 # ./install, which can be erroneously created by make from ./install.sh.
2518 # Reject install programs that cannot install multiple files.
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2521 if test -z "$INSTALL"; then
2522 if ${ac_cv_path_install+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 # Account for people who put trailing slashes in PATH elements.
2531 case $as_dir/ in #((
2532 ./ | .// | /[cC]/* | \
2533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2534 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2535 /usr/ucb/* ) ;;
2536 *)
2537 # OSF1 and SCO ODT 3.0 have their own names for install.
2538 # Don't use installbsd from OSF since it installs stuff as root
2539 # by default.
2540 for ac_prog in ginstall scoinst install; do
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2543 if test $ac_prog = install &&
2544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545 # AIX install. It has an incompatible calling convention.
2546 :
2547 elif test $ac_prog = install &&
2548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549 # program-specific install script used by HP pwplus--don't use.
2550 :
2551 else
2552 rm -rf conftest.one conftest.two conftest.dir
2553 echo one > conftest.one
2554 echo two > conftest.two
2555 mkdir conftest.dir
2556 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2557 test -s conftest.one && test -s conftest.two &&
2558 test -s conftest.dir/conftest.one &&
2559 test -s conftest.dir/conftest.two
2560 then
2561 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2562 break 3
2563 fi
2564 fi
2565 fi
2566 done
2567 done
2568 ;;
2569 esac
2570
2571 done
2572 IFS=$as_save_IFS
2573
2574 rm -rf conftest.one conftest.two conftest.dir
2575
2576 fi
2577 if test "${ac_cv_path_install+set}" = set; then
2578 INSTALL=$ac_cv_path_install
2579 else
2580 # As a last resort, use the slow shell script. Don't cache a
2581 # value for INSTALL within a source directory, because that will
2582 # break other packages using the cache if that directory is
2583 # removed, or if the value is a relative name.
2584 INSTALL=$ac_install_sh
2585 fi
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2588 $as_echo "$INSTALL" >&6; }
2589
2590 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2591 # It thinks the first close brace ends the variable substitution.
2592 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2593
2594 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2595
2596 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2597
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2599 $as_echo_n "checking whether ln works... " >&6; }
2600 if ${acx_cv_prog_LN+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 rm -f conftestdata_t
2604 echo >conftestdata_f
2605 if ln conftestdata_f conftestdata_t 2>/dev/null
2606 then
2607 acx_cv_prog_LN=ln
2608 else
2609 acx_cv_prog_LN=no
2610 fi
2611 rm -f conftestdata_f conftestdata_t
2612
2613 fi
2614 if test $acx_cv_prog_LN = no; then
2615 LN="cp"
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2617 $as_echo "no, using $LN" >&6; }
2618 else
2619 LN="$acx_cv_prog_LN"
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621 $as_echo "yes" >&6; }
2622 fi
2623
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2625 $as_echo_n "checking whether ln -s works... " >&6; }
2626 LN_S=$as_ln_s
2627 if test "$LN_S" = "ln -s"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2629 $as_echo "yes" >&6; }
2630 else
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2632 $as_echo "no, using $LN_S" >&6; }
2633 fi
2634
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2636 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2637 if ${ac_cv_path_SED+:} false; then :
2638 $as_echo_n "(cached) " >&6
2639 else
2640 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2641 for ac_i in 1 2 3 4 5 6 7; do
2642 ac_script="$ac_script$as_nl$ac_script"
2643 done
2644 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2645 { ac_script=; unset ac_script;}
2646 if test -z "$SED"; then
2647 ac_path_SED_found=false
2648 # Loop through the user's path and test for each of PROGNAME-LIST
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_prog in sed gsed; do
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2657 as_fn_executable_p "$ac_path_SED" || continue
2658 # Check for GNU ac_path_SED and select it if it is found.
2659 # Check for GNU $ac_path_SED
2660 case `"$ac_path_SED" --version 2>&1` in
2661 *GNU*)
2662 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2663 *)
2664 ac_count=0
2665 $as_echo_n 0123456789 >"conftest.in"
2666 while :
2667 do
2668 cat "conftest.in" "conftest.in" >"conftest.tmp"
2669 mv "conftest.tmp" "conftest.in"
2670 cp "conftest.in" "conftest.nl"
2671 $as_echo '' >> "conftest.nl"
2672 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2674 as_fn_arith $ac_count + 1 && ac_count=$as_val
2675 if test $ac_count -gt ${ac_path_SED_max-0}; then
2676 # Best one so far, save it but keep looking for a better one
2677 ac_cv_path_SED="$ac_path_SED"
2678 ac_path_SED_max=$ac_count
2679 fi
2680 # 10*(2^10) chars as input seems more than enough
2681 test $ac_count -gt 10 && break
2682 done
2683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2684 esac
2685
2686 $ac_path_SED_found && break 3
2687 done
2688 done
2689 done
2690 IFS=$as_save_IFS
2691 if test -z "$ac_cv_path_SED"; then
2692 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2693 fi
2694 else
2695 ac_cv_path_SED=$SED
2696 fi
2697
2698 fi
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2700 $as_echo "$ac_cv_path_SED" >&6; }
2701 SED="$ac_cv_path_SED"
2702 rm -f conftest.sed
2703
2704 for ac_prog in gawk mawk nawk awk
2705 do
2706 # Extract the first word of "$ac_prog", so it can be a program name with args.
2707 set dummy $ac_prog; ac_word=$2
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 $as_echo_n "checking for $ac_word... " >&6; }
2710 if ${ac_cv_prog_AWK+:} false; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 if test -n "$AWK"; then
2714 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2723 ac_cv_prog_AWK="$ac_prog"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2726 fi
2727 done
2728 done
2729 IFS=$as_save_IFS
2730
2731 fi
2732 fi
2733 AWK=$ac_cv_prog_AWK
2734 if test -n "$AWK"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2736 $as_echo "$AWK" >&6; }
2737 else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2740 fi
2741
2742
2743 test -n "$AWK" && break
2744 done
2745
2746
2747 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2748
2749 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2750 # a relative path.
2751 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2752 INSTALL="${srcpwd}/install-sh -c"
2753 fi
2754
2755 # Set srcdir to "." if that's what it is.
2756 # This is important for multilib support.
2757 pwd=`${PWDCMD-pwd}`
2758 if test "${pwd}" = "${srcpwd}" ; then
2759 srcdir=.
2760 fi
2761
2762 topsrcdir=$srcpwd
2763
2764 extra_host_args=
2765
2766 ### To add a new directory to the tree, first choose whether it is a target
2767 ### or a host dependent tool. Then put it into the appropriate list
2768 ### (library or tools, host or target), doing a dependency sort.
2769
2770 # Subdirs will be configured in the order listed in build_configdirs,
2771 # configdirs, or target_configdirs; see the serialization section below.
2772
2773 # Dependency sorting is only needed when *configuration* must be done in
2774 # a particular order. In all cases a dependency should be specified in
2775 # the Makefile, whether or not it's implicitly specified here.
2776
2777 # Double entries in build_configdirs, configdirs, or target_configdirs may
2778 # cause circular dependencies and break everything horribly.
2779
2780 # these library is used by various programs built for the build
2781 # environment
2782 #
2783 build_libs="build-libiberty build-libcpp"
2784
2785 # these tools are built for the build environment
2786 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2787
2788 # these libraries are used by various programs built for the host environment
2789 #f
2790 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2791
2792 # these tools are built for the host environment
2793 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2794 # know that we are building the simulator.
2795 # binutils, gas and ld appear in that order because it makes sense to run
2796 # "make check" in that particular order.
2797 # If --enable-gold is used, "gold" may replace "ld".
2798 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2799
2800 # these libraries are built for the target environment, and are built after
2801 # the host libraries and the host tools (which may be a cross compiler)
2802 # Note that libiberty is not a target library.
2803 target_libraries="target-libgcc \
2804 target-libbacktrace \
2805 target-libgloss \
2806 target-newlib \
2807 target-libgomp \
2808 target-liboffloadmic \
2809 target-libhsail-rt \
2810 target-libatomic \
2811 target-libitm \
2812 target-libstdc++-v3 \
2813 target-libsanitizer \
2814 target-libvtv \
2815 target-libssp \
2816 target-libquadmath \
2817 target-libgfortran \
2818 target-libffi \
2819 target-libobjc \
2820 target-libada \
2821 target-libgo \
2822 target-libphobos \
2823 target-zlib"
2824
2825 # these tools are built using the target libraries, and are intended to
2826 # run only in the target environment
2827 #
2828 # note: any program that *uses* libraries that are in the "target_libraries"
2829 # list belongs in this list.
2830 #
2831 target_tools="target-rda"
2832
2833 ################################################################################
2834
2835 ## All tools belong in one of the four categories, and are assigned above
2836 ## We assign ${configdirs} this way to remove all embedded newlines. This
2837 ## is important because configure will choke if they ever get through.
2838 ## ${configdirs} is directories we build using the host tools.
2839 ## ${target_configdirs} is directories we build using the target tools.
2840 configdirs=`echo ${host_libs} ${host_tools}`
2841 target_configdirs=`echo ${target_libraries} ${target_tools}`
2842 build_configdirs=`echo ${build_libs} ${build_tools}`
2843
2844
2845
2846 ################################################################################
2847
2848 srcname="gnu development package"
2849
2850 # This gets set non-empty for some net releases of packages.
2851 appdirs=""
2852
2853 # Define is_cross_compiler to save on calls to 'test'.
2854 is_cross_compiler=
2855 if test x"${host}" = x"${target}" ; then
2856 is_cross_compiler=no
2857 else
2858 is_cross_compiler=yes
2859 fi
2860
2861 # Find the build and target subdir names.
2862
2863 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2864 # have matching libraries, they should use host libraries: Makefile.tpl
2865 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2866 # However, they still use the build modules, because the corresponding
2867 # host modules (e.g. bison) are only built for the host when bootstrap
2868 # finishes. So:
2869 # - build_subdir is where we find build modules, and never changes.
2870 # - build_libsubdir is where we find build libraries, and can be overridden.
2871
2872 # Prefix 'build-' so this never conflicts with target_subdir.
2873 build_subdir="build-${build_noncanonical}"
2874
2875 # Check whether --with-build-libsubdir was given.
2876 if test "${with_build_libsubdir+set}" = set; then :
2877 withval=$with_build_libsubdir; build_libsubdir="$withval"
2878 else
2879 build_libsubdir="$build_subdir"
2880 fi
2881
2882 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2883 if ( test $srcdir = . && test -d gcc ) \
2884 || test -d $srcdir/../host-${host_noncanonical}; then
2885 host_subdir="host-${host_noncanonical}"
2886 else
2887 host_subdir=.
2888 fi
2889 # No prefix.
2890 target_subdir=${target_noncanonical}
2891
2892 # Be sure to cover against remnants of an in-tree build.
2893 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2894 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2895 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2896 fi
2897
2898 # Skipdirs are removed silently.
2899 skipdirs=
2900 # Noconfigdirs are removed loudly.
2901 noconfigdirs=""
2902
2903 use_gnu_ld=
2904 # Make sure we don't let GNU ld be added if we didn't want it.
2905 if test x$with_gnu_ld = xno ; then
2906 use_gnu_ld=no
2907 noconfigdirs="$noconfigdirs ld gold"
2908 fi
2909
2910 use_gnu_as=
2911 # Make sure we don't let GNU as be added if we didn't want it.
2912 if test x$with_gnu_as = xno ; then
2913 use_gnu_as=no
2914 noconfigdirs="$noconfigdirs gas"
2915 fi
2916
2917 use_included_zlib=
2918
2919 # Check whether --with-system-zlib was given.
2920 if test "${with_system_zlib+set}" = set; then :
2921 withval=$with_system_zlib;
2922 fi
2923
2924 # Make sure we don't let ZLIB be added if we didn't want it.
2925 if test x$with_system_zlib = xyes ; then
2926 use_included_zlib=no
2927 noconfigdirs="$noconfigdirs zlib"
2928 fi
2929
2930 # some tools are so dependent upon X11 that if we're not building with X,
2931 # it's not even worth trying to configure, much less build, that tool.
2932
2933 case ${with_x} in
2934 yes | "") ;; # the default value for this tree is that X11 is available
2935 no)
2936 skipdirs="${skipdirs} tk itcl libgui"
2937 # We won't be able to build gdbtk without X.
2938 enable_gdbtk=no
2939 ;;
2940 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2941 esac
2942
2943 # Some are only suitable for cross toolchains.
2944 # Remove these if host=target.
2945 cross_only="target-libgloss target-newlib target-opcodes"
2946
2947 case $is_cross_compiler in
2948 no) skipdirs="${skipdirs} ${cross_only}" ;;
2949 esac
2950
2951 # If both --with-headers and --with-libs are specified, default to
2952 # --without-newlib.
2953 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2954 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2955 if test x"${with_newlib}" = x ; then
2956 with_newlib=no
2957 fi
2958 fi
2959
2960 # Recognize --with-newlib/--without-newlib.
2961 case ${with_newlib} in
2962 no) skipdirs="${skipdirs} target-newlib" ;;
2963 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2964 esac
2965
2966 # Check whether --enable-as-accelerator-for was given.
2967 if test "${enable_as_accelerator_for+set}" = set; then :
2968 enableval=$enable_as_accelerator_for;
2969 fi
2970
2971
2972 # Check whether --enable-offload-targets was given.
2973 if test "${enable_offload_targets+set}" = set; then :
2974 enableval=$enable_offload_targets;
2975 if test x"$enable_offload_targets" = x; then
2976 as_fn_error $? "no offload targets specified" "$LINENO" 5
2977 fi
2978
2979 else
2980 enable_offload_targets=
2981 fi
2982
2983
2984 # Handle --enable-gold, --enable-ld.
2985 # --disable-gold [--enable-ld]
2986 # Build only ld. Default option.
2987 # --enable-gold [--enable-ld]
2988 # Build both gold and ld. Install gold as "ld.gold", install ld
2989 # as "ld.bfd" and "ld".
2990 # --enable-gold=default [--enable-ld]
2991 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2992 # install ld as "ld.bfd".
2993 # --enable-gold[=default] --disable-ld
2994 # Build only gold, which is then installed as both "ld.gold" and "ld".
2995 # --enable-gold --enable-ld=default
2996 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2997 # and ld.bfd).
2998 # In other words, ld is default
2999 # --enable-gold=default --enable-ld=default
3000 # Error.
3001
3002 default_ld=
3003 # Check whether --enable-gold was given.
3004 if test "${enable_gold+set}" = set; then :
3005 enableval=$enable_gold; ENABLE_GOLD=$enableval
3006 else
3007 ENABLE_GOLD=no
3008 fi
3009
3010 case "${ENABLE_GOLD}" in
3011 yes|default)
3012 # Check for ELF target.
3013 is_elf=no
3014 case "${target}" in
3015 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3016 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3017 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3018 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3019 case "${target}" in
3020 *-*-linux*aout* | *-*-linux*oldld*)
3021 ;;
3022 *)
3023 is_elf=yes
3024 ;;
3025 esac
3026 esac
3027
3028 if test "$is_elf" = "yes"; then
3029 # Check for target supported by gold.
3030 case "${target}" in
3031 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3032 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3033 configdirs="$configdirs gold"
3034 if test x${ENABLE_GOLD} = xdefault; then
3035 default_ld=gold
3036 fi
3037 ENABLE_GOLD=yes
3038 ;;
3039 esac
3040 fi
3041 ;;
3042 no)
3043 ;;
3044 *)
3045 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3046 ;;
3047 esac
3048
3049 # Check whether --enable-ld was given.
3050 if test "${enable_ld+set}" = set; then :
3051 enableval=$enable_ld; ENABLE_LD=$enableval
3052 else
3053 ENABLE_LD=yes
3054 fi
3055
3056
3057 case "${ENABLE_LD}" in
3058 default)
3059 if test x${default_ld} != x; then
3060 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3061 fi
3062 ;;
3063 yes)
3064 ;;
3065 no)
3066 if test x${ENABLE_GOLD} != xyes; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3068 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3069 fi
3070 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3071 ;;
3072 *)
3073 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3074 ;;
3075 esac
3076
3077 # PR gas/19109
3078 # Decide the default method for compressing debug sections.
3079 # Provide a configure time option to override our default.
3080 # Check whether --enable-compressed_debug_sections was given.
3081 if test "${enable_compressed_debug_sections+set}" = set; then :
3082 enableval=$enable_compressed_debug_sections;
3083 if test x"$enable_compressed_debug_sections" = xyes; then
3084 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3085 fi
3086
3087 else
3088 enable_compressed_debug_sections=
3089 fi
3090
3091
3092 # Configure extra directories which are host specific
3093
3094 case "${host}" in
3095 *-cygwin*)
3096 configdirs="$configdirs libtermcap" ;;
3097 esac
3098
3099 # A target can indicate whether a language isn't supported for some reason.
3100 # Only spaces may be used in this macro; not newlines or tabs.
3101 unsupported_languages=
3102
3103 # Remove more programs from consideration, based on the host or
3104 # target this usually means that a port of the program doesn't
3105 # exist yet.
3106
3107 case "${host}" in
3108 i[3456789]86-*-msdosdjgpp*)
3109 noconfigdirs="$noconfigdirs tcl tk itcl"
3110 ;;
3111 esac
3112
3113
3114 # Check whether --enable-libquadmath was given.
3115 if test "${enable_libquadmath+set}" = set; then :
3116 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3117 else
3118 ENABLE_LIBQUADMATH=yes
3119 fi
3120
3121 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3122 noconfigdirs="$noconfigdirs target-libquadmath"
3123 fi
3124
3125
3126 # Check whether --enable-libquadmath-support was given.
3127 if test "${enable_libquadmath_support+set}" = set; then :
3128 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3129 else
3130 ENABLE_LIBQUADMATH_SUPPORT=yes
3131 fi
3132
3133 enable_libquadmath_support=
3134 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3135 enable_libquadmath_support=no
3136 fi
3137
3138
3139 # Check whether --enable-libada was given.
3140 if test "${enable_libada+set}" = set; then :
3141 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3142 else
3143 ENABLE_LIBADA=yes
3144 fi
3145
3146 if test "${ENABLE_LIBADA}" != "yes" ; then
3147 noconfigdirs="$noconfigdirs gnattools"
3148 fi
3149
3150 # Check whether --enable-libssp was given.
3151 if test "${enable_libssp+set}" = set; then :
3152 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3153 else
3154 ENABLE_LIBSSP=yes
3155 fi
3156
3157
3158 # Check whether --enable-libstdcxx was given.
3159 if test "${enable_libstdcxx+set}" = set; then :
3160 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3161 else
3162 ENABLE_LIBSTDCXX=default
3163 fi
3164
3165 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3166 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3167 fi
3168
3169 # If this is accelerator compiler and its target is intelmic we enable
3170 # target liboffloadmic by default. If this is compiler with offloading
3171 # for intelmic we enable host liboffloadmic by default. Otherwise
3172 # liboffloadmic is disabled by default.
3173 # Check whether --enable-liboffloadmic was given.
3174 if test "${enable_liboffloadmic+set}" = set; then :
3175 enableval=$enable_liboffloadmic; case "$enableval" in
3176 no | host | target)
3177 enable_liboffloadmic=$enableval ;;
3178 *)
3179 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3180 esac
3181 else
3182 if test x"$enable_as_accelerator_for" != x; then
3183 case "${target}" in
3184 *-intelmic-* | *-intelmicemul-*)
3185 enable_liboffloadmic=target
3186 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3187 ;;
3188 *)
3189 enable_liboffloadmic=no
3190 ;;
3191 esac
3192 else
3193 case "${enable_offload_targets}" in
3194 *-intelmic-* | *-intelmicemul-*)
3195 enable_liboffloadmic=host
3196 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3197 ;;
3198 *)
3199 enable_liboffloadmic=no
3200 ;;
3201 esac
3202 fi
3203 fi
3204
3205
3206
3207 # Enable libgomp by default on hosted POSIX systems, and a few others.
3208 if test x$enable_libgomp = x ; then
3209 case "${target}" in
3210 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3211 ;;
3212 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3213 ;;
3214 *-*-solaris2* | *-*-hpux11*)
3215 ;;
3216 *-*-darwin* | *-*-aix*)
3217 ;;
3218 nvptx*-*-* | amdgcn*-*-*)
3219 ;;
3220 *)
3221 noconfigdirs="$noconfigdirs target-libgomp"
3222 ;;
3223 esac
3224 fi
3225
3226 # Disable libatomic on unsupported systems.
3227 if test -d ${srcdir}/libatomic; then
3228 if test x$enable_libatomic = x; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3230 $as_echo_n "checking for libatomic support... " >&6; }
3231 if (srcdir=${srcdir}/libatomic; \
3232 . ${srcdir}/configure.tgt; \
3233 test -n "$UNSUPPORTED")
3234 then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 noconfigdirs="$noconfigdirs target-libatomic"
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 $as_echo "yes" >&6; }
3241 fi
3242 fi
3243 fi
3244
3245 # Disable liboffloadmic on unsupported systems.
3246 if test -d ${srcdir}/liboffloadmic; then
3247 if test x$enable_liboffloadmic != xno; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3249 $as_echo_n "checking for liboffloadmic support... " >&6; }
3250 if (srcdir=${srcdir}/liboffloadmic; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3253 then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-liboffloadmic"
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3260 fi
3261 fi
3262 fi
3263
3264 # Disable libitm on unsupported systems.
3265 if test -d ${srcdir}/libitm; then
3266 if test x$enable_libitm = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3268 $as_echo_n "checking for libitm support... " >&6; }
3269 if (srcdir=${srcdir}/libitm; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3272 then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 noconfigdirs="$noconfigdirs target-libitm"
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278 $as_echo "yes" >&6; }
3279 fi
3280 fi
3281 fi
3282
3283 # Disable libsanitizer on unsupported systems.
3284 if test -d ${srcdir}/libsanitizer; then
3285 if test x$enable_libsanitizer = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3287 $as_echo_n "checking for libsanitizer support... " >&6; }
3288 if (srcdir=${srcdir}/libsanitizer; \
3289 . ${srcdir}/configure.tgt; \
3290 test -n "$UNSUPPORTED")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libsanitizer"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3298 fi
3299 fi
3300 fi
3301
3302 # Disable libvtv on unsupported systems.
3303 if test -d ${srcdir}/libvtv; then
3304 if test x$enable_libvtv = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3306 $as_echo_n "checking for libvtv support... " >&6; }
3307 if (srcdir=${srcdir}/libvtv; \
3308 . ${srcdir}/configure.tgt; \
3309 test "$VTV_SUPPORTED" != "yes")
3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 noconfigdirs="$noconfigdirs target-libvtv"
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 fi
3318 fi
3319 fi
3320
3321
3322 # Disable libhsail-rt on unsupported systems.
3323 if test -d ${srcdir}/libhsail-rt; then
3324 if test x$enable_libhsail_rt = x; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3326 $as_echo_n "checking for libhsail-rt support... " >&6; }
3327 if (srcdir=${srcdir}/libhsail-rt; \
3328 . ${srcdir}/configure.tgt; \
3329 test -n "$UNSUPPORTED")
3330 then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 unsupported_languages="$unsupported_languages brig"
3334 # This implicitly disables also target-libhsail-rt as it won't
3335 # get added to the build without BRIG FE.
3336 else
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3338 $as_echo "yes" >&6; }
3339 fi
3340 fi
3341 fi
3342
3343
3344 # Disable libquadmath for some systems.
3345 case "${target}" in
3346 avr-*-*)
3347 noconfigdirs="$noconfigdirs target-libquadmath"
3348 ;;
3349 # libquadmath is unused on AIX and libquadmath build process use of
3350 # LD_LIBRARY_PATH can break AIX bootstrap.
3351 powerpc-*-aix* | rs6000-*-aix*)
3352 noconfigdirs="$noconfigdirs target-libquadmath"
3353 ;;
3354 esac
3355
3356 # Disable libssp for some systems.
3357 case "${target}" in
3358 avr-*-*)
3359 # No hosted I/O support.
3360 noconfigdirs="$noconfigdirs target-libssp"
3361 ;;
3362 bpf-*-*)
3363 noconfigdirs="$noconfigdirs target-libssp"
3364 ;;
3365 powerpc-*-aix* | rs6000-*-aix*)
3366 noconfigdirs="$noconfigdirs target-libssp"
3367 ;;
3368 pru-*-*)
3369 # No hosted I/O support.
3370 noconfigdirs="$noconfigdirs target-libssp"
3371 ;;
3372 rl78-*-*)
3373 # libssp uses a misaligned load to trigger a fault, but the RL78
3374 # doesn't fault for those - instead, it gives a build-time error
3375 # for explicit misaligned loads.
3376 noconfigdirs="$noconfigdirs target-libssp"
3377 ;;
3378 visium-*-*)
3379 # No hosted I/O support.
3380 noconfigdirs="$noconfigdirs target-libssp"
3381 ;;
3382 esac
3383
3384 # Disable libstdc++-v3 for some systems.
3385 # Allow user to override this if they pass --enable-libstdc++-v3
3386 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3387 case "${target}" in
3388 *-*-vxworks*)
3389 # VxWorks uses the Dinkumware C++ library.
3390 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3391 ;;
3392 amdgcn*-*-*)
3393 # Not ported/fails to build when using newlib.
3394 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395 ;;
3396 arm*-wince-pe*)
3397 # the C++ libraries don't build on top of CE's C libraries
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399 ;;
3400 avr-*-*)
3401 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3402 ;;
3403 bpf-*-*)
3404 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405 ;;
3406 ft32-*-*)
3407 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408 ;;
3409 esac
3410 fi
3411
3412 # Disable C++ on systems where it is known to not work.
3413 # For testing, you can override this with --enable-languages=c++.
3414 case ,${enable_languages}, in
3415 *,c++,*)
3416 ;;
3417 *)
3418 case "${target}" in
3419 bpf-*-*)
3420 unsupported_languages="$unsupported_languages c++"
3421 ;;
3422 esac
3423 ;;
3424 esac
3425
3426 # Disable Objc on systems where it is known to not work.
3427 # For testing, you can override this with --enable-languages=objc.
3428 case ,${enable_languages}, in
3429 *,objc,*)
3430 ;;
3431 *)
3432 case "${target}" in
3433 bpf-*-*)
3434 unsupported_languages="$unsupported_languages objc"
3435 ;;
3436 esac
3437 ;;
3438 esac
3439
3440 # Disable D on systems where it is known to not work.
3441 # For testing, you can override this with --enable-languages=d.
3442 case ,${enable_languages}, in
3443 *,d,*)
3444 ;;
3445 *)
3446 case "${target}" in
3447 *-*-darwin*)
3448 unsupported_languages="$unsupported_languages d"
3449 ;;
3450 bpf-*-*)
3451 unsupported_languages="$unsupported_languages d"
3452 ;;
3453 esac
3454 ;;
3455 esac
3456
3457 # Disable libphobos on unsupported systems.
3458 # For testing, you can override this with --enable-libphobos.
3459 if test -d ${srcdir}/libphobos; then
3460 if test x$enable_libphobos = x; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3462 $as_echo_n "checking for libphobos support... " >&6; }
3463 if (srcdir=${srcdir}/libphobos; \
3464 . ${srcdir}/configure.tgt; \
3465 test "$LIBPHOBOS_SUPPORTED" != "yes")
3466 then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3469 noconfigdirs="$noconfigdirs target-libphobos"
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3472 $as_echo "yes" >&6; }
3473 fi
3474 fi
3475 fi
3476
3477 # Disable Fortran for some systems.
3478 case "${target}" in
3479 mmix-*-*)
3480 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3481 unsupported_languages="$unsupported_languages fortran"
3482 ;;
3483 bpf-*-*)
3484 unsupported_languages="$unsupported_languages fortran"
3485 ;;
3486 esac
3487
3488 # Disable libffi for some systems.
3489 case "${target}" in
3490 powerpc-*-darwin*)
3491 ;;
3492 i[3456789]86-*-darwin*)
3493 ;;
3494 x86_64-*-darwin[912]*)
3495 ;;
3496 *-*-darwin*)
3497 noconfigdirs="$noconfigdirs target-libffi"
3498 ;;
3499 *-*-netware*)
3500 noconfigdirs="$noconfigdirs target-libffi"
3501 ;;
3502 *-*-phoenix*)
3503 noconfigdirs="$noconfigdirs target-libffi"
3504 ;;
3505 *-*-rtems*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3507 ;;
3508 *-*-tpf*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3510 ;;
3511 *-*-uclinux*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3513 ;;
3514 *-*-vxworks*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3516 ;;
3517 aarch64*-*-freebsd*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3519 ;;
3520 alpha*-*-*vms*)
3521 noconfigdirs="$noconfigdirs target-libffi"
3522 ;;
3523 arm*-*-freebsd*)
3524 noconfigdirs="$noconfigdirs target-libffi"
3525 ;;
3526 arm-wince-pe)
3527 noconfigdirs="$noconfigdirs target-libffi"
3528 ;;
3529 arm*-*-symbianelf*)
3530 noconfigdirs="$noconfigdirs target-libffi"
3531 ;;
3532 bpf-*-*)
3533 noconfigdirs="$noconfigdirs target-libffi"
3534 ;;
3535 cris-*-* | crisv32-*-*)
3536 case "${target}" in
3537 *-*-linux*)
3538 ;;
3539 *) # See PR46792 regarding target-libffi.
3540 noconfigdirs="$noconfigdirs target-libffi";;
3541 esac
3542 ;;
3543 hppa*64*-*-hpux*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3545 ;;
3546 hppa*-hp-hpux11*)
3547 ;;
3548 hppa*-*-hpux*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3550 ;;
3551 ia64*-*-*vms*)
3552 noconfigdirs="$noconfigdirs target-libffi"
3553 ;;
3554 i[3456789]86-w64-mingw*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3556 ;;
3557 i[3456789]86-*-mingw*)
3558 noconfigdirs="$noconfigdirs target-libffi"
3559 ;;
3560 x86_64-*-mingw*)
3561 noconfigdirs="$noconfigdirs target-libffi"
3562 ;;
3563 mmix-*-*)
3564 noconfigdirs="$noconfigdirs target-libffi"
3565 ;;
3566 powerpc-*-aix*)
3567 ;;
3568 rs6000-*-aix*)
3569 ;;
3570 ft32-*-*)
3571 noconfigdirs="$noconfigdirs target-libffi"
3572 ;;
3573 *-*-lynxos*)
3574 noconfigdirs="$noconfigdirs target-libffi"
3575 ;;
3576 esac
3577
3578 # Disable the go frontend on systems where it is known to not work. Please keep
3579 # this in sync with contrib/config-list.mk.
3580 case "${target}" in
3581 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3582 unsupported_languages="$unsupported_languages go"
3583 ;;
3584 esac
3585
3586 # Only allow gdbserver on some systems.
3587 if test -d ${srcdir}/gdbserver; then
3588 if test x$enable_gdbserver = x; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3590 $as_echo_n "checking for gdbserver support... " >&6; }
3591 if (srcdir=${srcdir}/gdbserver; \
3592 . ${srcdir}/configure.srv; \
3593 test -n "$UNSUPPORTED")
3594 then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597 noconfigdirs="$noconfigdirs gdbserver"
3598 else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600 $as_echo "yes" >&6; }
3601 fi
3602 fi
3603 fi
3604
3605 # Disable libgo for some systems where it is known to not work.
3606 # For testing, you can easily override this with --enable-libgo.
3607 if test x$enable_libgo = x; then
3608 case "${target}" in
3609 *-*-darwin*)
3610 # PR 46986
3611 noconfigdirs="$noconfigdirs target-libgo"
3612 ;;
3613 *-*-cygwin* | *-*-mingw*)
3614 noconfigdirs="$noconfigdirs target-libgo"
3615 ;;
3616 bpf-*-*)
3617 noconfigdirs="$noconfigdirs target-libgo"
3618 ;;
3619 esac
3620 fi
3621
3622 # Default libgloss CPU subdirectory.
3623 libgloss_dir="$target_cpu"
3624
3625 case "${target}" in
3626 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3627 libgloss_dir=wince
3628 ;;
3629 aarch64*-*-* )
3630 libgloss_dir=aarch64
3631 ;;
3632 arm*-*-*)
3633 libgloss_dir=arm
3634 ;;
3635 cris-*-* | crisv32-*-*)
3636 libgloss_dir=cris
3637 ;;
3638 hppa*-*-*)
3639 libgloss_dir=pa
3640 ;;
3641 i[3456789]86-*-*)
3642 libgloss_dir=i386
3643 ;;
3644 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3645 libgloss_dir=m68hc11
3646 ;;
3647 m68*-*-* | fido-*-*)
3648 libgloss_dir=m68k
3649 ;;
3650 mips*-*-*)
3651 libgloss_dir=mips
3652 ;;
3653 powerpc*-*-*)
3654 libgloss_dir=rs6000
3655 ;;
3656 pru-*-*)
3657 libgloss_dir=pru
3658 ;;
3659 sparc*-*-*)
3660 libgloss_dir=sparc
3661 ;;
3662 esac
3663
3664 # Disable newlib and libgloss for various target OSes.
3665 case "${target}" in
3666 alpha*-dec-osf*)
3667 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 ;;
3669 i[3456789]86-*-linux*)
3670 # This section makes it possible to build newlib natively on linux.
3671 # If we are using a cross compiler then don't configure newlib.
3672 if test x${is_cross_compiler} != xno ; then
3673 noconfigdirs="$noconfigdirs target-newlib"
3674 fi
3675 noconfigdirs="$noconfigdirs target-libgloss"
3676 # If we are not using a cross compiler, do configure newlib.
3677 # Note however, that newlib will only be configured in this situation
3678 # if the --with-newlib option has been given, because otherwise
3679 # 'target-newlib' will appear in skipdirs.
3680 ;;
3681 i[3456789]86-*-rdos*)
3682 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 ;;
3684 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3685 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 ;;
3687 sparc-*-sunos4*)
3688 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 ;;
3690 bpf-*-*)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 ;;
3693 *-*-aix*)
3694 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 ;;
3696 *-*-beos*)
3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 ;;
3699 *-*-chorusos)
3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 ;;
3702 *-*-dragonfly*)
3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 ;;
3705 *-*-freebsd*)
3706 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 ;;
3708 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 ;;
3711 *-*-lynxos*)
3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 ;;
3714 *-*-mingw*)
3715 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 ;;
3717 *-*-netbsd*)
3718 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 ;;
3720 *-*-netware*)
3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 ;;
3723 *-*-tpf*)
3724 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 ;;
3726 *-*-uclinux*)
3727 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 ;;
3729 *-*-vxworks*)
3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 ;;
3732 esac
3733
3734 case "${target}" in
3735 *-*-chorusos)
3736 ;;
3737 aarch64-*-darwin*)
3738 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3739 noconfigdirs="$noconfigdirs sim target-rda"
3740 ;;
3741 amdgcn*-*-*)
3742 ;;
3743 arm-*-darwin*)
3744 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3745 noconfigdirs="$noconfigdirs sim target-rda"
3746 ;;
3747 powerpc-*-darwin*)
3748 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3749 noconfigdirs="$noconfigdirs sim target-rda"
3750 ;;
3751 i[3456789]86-*-darwin*)
3752 noconfigdirs="$noconfigdirs ld gprof"
3753 noconfigdirs="$noconfigdirs sim target-rda"
3754 ;;
3755 x86_64-*-darwin[912]*)
3756 noconfigdirs="$noconfigdirs ld gas gprof"
3757 noconfigdirs="$noconfigdirs sim target-rda"
3758 ;;
3759 *-*-darwin*)
3760 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3761 noconfigdirs="$noconfigdirs sim target-rda"
3762 ;;
3763 *-*-dragonfly*)
3764 ;;
3765 *-*-freebsd*)
3766 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3767 && test -f /usr/local/include/gmp.h; then
3768 with_gmp=/usr/local
3769 fi
3770 ;;
3771 *-*-kaos*)
3772 # Remove unsupported stuff on all kaOS configurations.
3773 noconfigdirs="$noconfigdirs target-libgloss"
3774 ;;
3775 *-*-netbsd*)
3776 ;;
3777 *-*-netware*)
3778 ;;
3779 *-*-phoenix*)
3780 noconfigdirs="$noconfigdirs target-libgloss"
3781 ;;
3782 *-*-rtems*)
3783 noconfigdirs="$noconfigdirs target-libgloss"
3784 ;;
3785 # The tpf target doesn't support gdb yet.
3786 *-*-tpf*)
3787 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3788 ;;
3789 *-*-uclinux*)
3790 noconfigdirs="$noconfigdirs target-rda"
3791 ;;
3792 *-*-vxworks*)
3793 ;;
3794 alpha*-dec-osf*)
3795 # ld works, but does not support shared libraries.
3796 # gas doesn't generate exception information.
3797 noconfigdirs="$noconfigdirs gas ld"
3798 ;;
3799 alpha*-*-*vms*)
3800 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3801 ;;
3802 alpha*-*-*)
3803 # newlib is not 64 bit ready
3804 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3805 ;;
3806 bpf-*-*)
3807 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3808 ;;
3809 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3810 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3811 ;;
3812 arc*-*-*)
3813 noconfigdirs="$noconfigdirs sim"
3814 ;;
3815 arm-*-pe*)
3816 noconfigdirs="$noconfigdirs target-libgloss"
3817 ;;
3818 arm-*-riscix*)
3819 noconfigdirs="$noconfigdirs ld target-libgloss"
3820 ;;
3821 avr-*-*)
3822 if test x${with_avrlibc} != xno; then
3823 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3824 fi
3825 ;;
3826 c4x-*-* | tic4x-*-*)
3827 noconfigdirs="$noconfigdirs target-libgloss"
3828 ;;
3829 tic54x-*-*)
3830 noconfigdirs="$noconfigdirs target-libgloss gdb"
3831 ;;
3832 d10v-*-*)
3833 noconfigdirs="$noconfigdirs target-libgloss"
3834 ;;
3835 d30v-*-*)
3836 noconfigdirs="$noconfigdirs gdb"
3837 ;;
3838 fr30-*-elf*)
3839 noconfigdirs="$noconfigdirs gdb"
3840 ;;
3841 ft32-*-*)
3842 noconfigdirs="$noconfigdirs target-rda gprof"
3843 ;;
3844 moxie-*-*)
3845 noconfigdirs="$noconfigdirs"
3846 ;;
3847 h8300*-*-*)
3848 noconfigdirs="$noconfigdirs target-libgloss"
3849 ;;
3850 h8500-*-*)
3851 noconfigdirs="$noconfigdirs target-libgloss"
3852 ;;
3853 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3854 ;;
3855 hppa*64*-*-hpux*)
3856 noconfigdirs="$noconfigdirs gdb"
3857 ;;
3858 hppa*-*-hpux11*)
3859 noconfigdirs="$noconfigdirs gdb ld"
3860 ;;
3861 hppa*64*-*-linux*)
3862 ;;
3863 hppa*-*-linux*)
3864 ;;
3865 hppa*-*-*elf* | \
3866 hppa*-*-lites* | \
3867 hppa*-*-openbsd* | \
3868 hppa*64*-*-*)
3869 ;;
3870 hppa*-*-pro*)
3871 ;;
3872 hppa*-*-*)
3873 noconfigdirs="$noconfigdirs ld"
3874 ;;
3875 i960-*-*)
3876 noconfigdirs="$noconfigdirs gdb"
3877 ;;
3878 ia64*-*-elf*)
3879 # No gdb support yet.
3880 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3881 ;;
3882 ia64*-**-hpux*)
3883 # No ld support yet.
3884 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3885 ;;
3886 ia64*-*-*vms*)
3887 # No ld support yet.
3888 noconfigdirs="$noconfigdirs libgui itcl ld"
3889 ;;
3890 i[3456789]86-w64-mingw*)
3891 ;;
3892 i[3456789]86-*-mingw*)
3893 target_configdirs="$target_configdirs target-winsup"
3894 ;;
3895 *-*-cygwin*)
3896 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3897 noconfigdirs="$noconfigdirs target-libgloss"
3898 # always build newlib if winsup directory is present.
3899 if test -d "$srcdir/winsup/cygwin"; then
3900 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3901 elif test -d "$srcdir/newlib"; then
3902 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3903 fi
3904 ;;
3905 i[3456789]86-*-pe)
3906 noconfigdirs="$noconfigdirs target-libgloss"
3907 ;;
3908 i[3456789]86-*-sco3.2v5*)
3909 # The linker does not yet know about weak symbols in COFF,
3910 # and is not configured to handle mixed ELF and COFF.
3911 noconfigdirs="$noconfigdirs ld target-libgloss"
3912 ;;
3913 i[3456789]86-*-sco*)
3914 noconfigdirs="$noconfigdirs gprof target-libgloss"
3915 ;;
3916 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3917 noconfigdirs="$noconfigdirs target-libgloss"
3918 ;;
3919 i[3456789]86-*-sysv4*)
3920 noconfigdirs="$noconfigdirs target-libgloss"
3921 ;;
3922 i[3456789]86-*-beos*)
3923 noconfigdirs="$noconfigdirs gdb"
3924 ;;
3925 i[3456789]86-*-rdos*)
3926 noconfigdirs="$noconfigdirs gdb"
3927 ;;
3928 mmix-*-*)
3929 noconfigdirs="$noconfigdirs gdb"
3930 ;;
3931 mt-*-*)
3932 noconfigdirs="$noconfigdirs sim"
3933 ;;
3934 nfp-*-*)
3935 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3936 noconfigdirs="$noconfigdirs $target_libraries"
3937 ;;
3938 pdp11-*-*)
3939 noconfigdirs="$noconfigdirs gdb gprof"
3940 ;;
3941 powerpc-*-aix*)
3942 # copied from rs6000-*-* entry
3943 noconfigdirs="$noconfigdirs gprof"
3944 ;;
3945 powerpc*-*-winnt* | powerpc*-*-pe*)
3946 target_configdirs="$target_configdirs target-winsup"
3947 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3948 # always build newlib.
3949 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3950 ;;
3951 # This is temporary until we can link against shared libraries
3952 powerpcle-*-solaris*)
3953 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3954 ;;
3955 powerpc-*-beos*)
3956 noconfigdirs="$noconfigdirs gdb"
3957 ;;
3958 rs6000-*-lynxos*)
3959 noconfigdirs="$noconfigdirs gprof"
3960 ;;
3961 rs6000-*-aix*)
3962 noconfigdirs="$noconfigdirs gprof"
3963 ;;
3964 rs6000-*-*)
3965 noconfigdirs="$noconfigdirs gprof"
3966 ;;
3967 m68k-apollo-*)
3968 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3969 ;;
3970 microblaze*)
3971 noconfigdirs="$noconfigdirs gprof"
3972 ;;
3973 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3974 if test x$with_newlib = xyes; then
3975 noconfigdirs="$noconfigdirs gprof"
3976 fi
3977 ;;
3978 mips*-*-irix5*)
3979 noconfigdirs="$noconfigdirs gprof target-libgloss"
3980 ;;
3981 mips*-*-irix6*)
3982 noconfigdirs="$noconfigdirs gprof target-libgloss"
3983 ;;
3984 mips*-*-bsd*)
3985 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3986 ;;
3987 mips*-*-linux*)
3988 ;;
3989 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3990 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3991 noconfigdirs="$noconfigdirs ld gas gprof"
3992 ;;
3993 mips*-*-*)
3994 noconfigdirs="$noconfigdirs gprof"
3995 ;;
3996 nvptx*-*-*)
3997 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3998 ;;
3999 sh-*-*)
4000 case "${target}" in
4001 sh*-*-elf)
4002 ;;
4003 *)
4004 noconfigdirs="$noconfigdirs target-libgloss" ;;
4005 esac
4006 ;;
4007 sparc-*-sunos4*)
4008 if test x${is_cross_compiler} = xno ; then
4009 use_gnu_ld=no
4010 fi
4011 ;;
4012 tic6x-*-*)
4013 noconfigdirs="$noconfigdirs sim"
4014 ;;
4015 tilepro*-*-* | tilegx*-*-*)
4016 noconfigdirs="$noconfigdirs sim"
4017 ;;
4018 v810-*-*)
4019 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4020 ;;
4021 vax-*-*)
4022 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4023 ;;
4024 wasm32-*-*)
4025 noconfigdirs="$noconfigdirs ld"
4026 ;;
4027 esac
4028
4029 # If we aren't building newlib, then don't build libgloss, since libgloss
4030 # depends upon some newlib header files.
4031 case "${noconfigdirs}" in
4032 *target-libgloss*) ;;
4033 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4034 esac
4035
4036 # Work in distributions that contain no compiler tools, like Autoconf.
4037 host_makefile_frag=/dev/null
4038 if test -d ${srcdir}/config ; then
4039 case "${host}" in
4040 i[3456789]86-*-msdosdjgpp*)
4041 host_makefile_frag="config/mh-djgpp"
4042 ;;
4043 *-cygwin*)
4044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4046 $as_echo_n "checking to see if cat works as expected... " >&6; }
4047 echo a >cygwin-cat-check
4048 if test `cat cygwin-cat-check` = a ; then
4049 rm cygwin-cat-check
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4051 $as_echo "yes" >&6; }
4052 else
4053 rm cygwin-cat-check
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4056 as_fn_error $? "The cat command does not ignore carriage return characters.
4057 Please either mount the build directory in binary mode or run the following
4058 commands before running any configure script:
4059 set -o igncr
4060 export SHELLOPTS
4061 " "$LINENO" 5
4062 fi
4063
4064 host_makefile_frag="config/mh-cygwin"
4065 ;;
4066 *-mingw*)
4067 host_makefile_frag="config/mh-mingw"
4068 ;;
4069 alpha*-linux*)
4070 host_makefile_frag="config/mh-alpha-linux"
4071 ;;
4072 hppa*-hp-hpux10*)
4073 host_makefile_frag="config/mh-pa-hpux10"
4074 ;;
4075 hppa*-hp-hpux*)
4076 host_makefile_frag="config/mh-pa"
4077 ;;
4078 hppa*-*)
4079 host_makefile_frag="config/mh-pa"
4080 ;;
4081 *-*-darwin*)
4082 host_makefile_frag="config/mh-darwin"
4083 ;;
4084 powerpc-*-aix*)
4085 host_makefile_frag="config/mh-ppc-aix"
4086 ;;
4087 rs6000-*-aix*)
4088 host_makefile_frag="config/mh-ppc-aix"
4089 ;;
4090 esac
4091 fi
4092
4093 if test "${build}" != "${host}" ; then
4094 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4095 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4096 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4097 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4098 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4099 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4100 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4101 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4102 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4103 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4104 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4105 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4106 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4107 else
4108 AR_FOR_BUILD="\$(AR)"
4109 AS_FOR_BUILD="\$(AS)"
4110 CC_FOR_BUILD="\$(CC)"
4111 CXX_FOR_BUILD="\$(CXX)"
4112 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4113 GOC_FOR_BUILD="\$(GOC)"
4114 GDC_FOR_BUILD="\$(GDC)"
4115 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4116 LD_FOR_BUILD="\$(LD)"
4117 NM_FOR_BUILD="\$(NM)"
4118 RANLIB_FOR_BUILD="\$(RANLIB)"
4119 WINDRES_FOR_BUILD="\$(WINDRES)"
4120 WINDMC_FOR_BUILD="\$(WINDMC)"
4121 fi
4122
4123 ac_ext=c
4124 ac_cpp='$CPP $CPPFLAGS'
4125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_prog_CC+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4149 fi
4150 done
4151 done
4152 IFS=$as_save_IFS
4153
4154 fi
4155 fi
4156 CC=$ac_cv_prog_CC
4157 if test -n "$CC"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4159 $as_echo "$CC" >&6; }
4160 else
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4163 fi
4164
4165
4166 fi
4167 if test -z "$ac_cv_prog_CC"; then
4168 ac_ct_CC=$CC
4169 # Extract the first word of "gcc", so it can be a program name with args.
4170 set dummy gcc; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 if test -n "$ac_ct_CC"; then
4177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4186 ac_cv_prog_ac_ct_CC="gcc"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4189 fi
4190 done
4191 done
4192 IFS=$as_save_IFS
4193
4194 fi
4195 fi
4196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4197 if test -n "$ac_ct_CC"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4199 $as_echo "$ac_ct_CC" >&6; }
4200 else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4203 fi
4204
4205 if test "x$ac_ct_CC" = x; then
4206 CC=""
4207 else
4208 case $cross_compiling:$ac_tool_warned in
4209 yes:)
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4212 ac_tool_warned=yes ;;
4213 esac
4214 CC=$ac_ct_CC
4215 fi
4216 else
4217 CC="$ac_cv_prog_CC"
4218 fi
4219
4220 if test -z "$CC"; then
4221 if test -n "$ac_tool_prefix"; then
4222 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4223 set dummy ${ac_tool_prefix}cc; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_CC+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 if test -n "$CC"; then
4230 ac_cv_prog_CC="$CC" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 ac_cv_prog_CC="${ac_tool_prefix}cc"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 break 2
4242 fi
4243 done
4244 done
4245 IFS=$as_save_IFS
4246
4247 fi
4248 fi
4249 CC=$ac_cv_prog_CC
4250 if test -n "$CC"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4252 $as_echo "$CC" >&6; }
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256 fi
4257
4258
4259 fi
4260 fi
4261 if test -z "$CC"; then
4262 # Extract the first word of "cc", so it can be a program name with args.
4263 set dummy cc; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_CC+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$CC"; then
4270 ac_cv_prog_CC="$CC" # Let the user override the test.
4271 else
4272 ac_prog_rejected=no
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4281 ac_prog_rejected=yes
4282 continue
4283 fi
4284 ac_cv_prog_CC="cc"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288 done
4289 done
4290 IFS=$as_save_IFS
4291
4292 if test $ac_prog_rejected = yes; then
4293 # We found a bogon in the path, so make sure we never use it.
4294 set dummy $ac_cv_prog_CC
4295 shift
4296 if test $# != 0; then
4297 # We chose a different compiler from the bogus one.
4298 # However, it has the same basename, so the bogon will be chosen
4299 # first if we set CC to just the basename; use the full file name.
4300 shift
4301 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4302 fi
4303 fi
4304 fi
4305 fi
4306 CC=$ac_cv_prog_CC
4307 if test -n "$CC"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4309 $as_echo "$CC" >&6; }
4310 else
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4313 fi
4314
4315
4316 fi
4317 if test -z "$CC"; then
4318 if test -n "$ac_tool_prefix"; then
4319 for ac_prog in cl.exe
4320 do
4321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_CC+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -n "$CC"; then
4329 ac_cv_prog_CC="$CC" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4341 fi
4342 done
4343 done
4344 IFS=$as_save_IFS
4345
4346 fi
4347 fi
4348 CC=$ac_cv_prog_CC
4349 if test -n "$CC"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4351 $as_echo "$CC" >&6; }
4352 else
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4355 fi
4356
4357
4358 test -n "$CC" && break
4359 done
4360 fi
4361 if test -z "$CC"; then
4362 ac_ct_CC=$CC
4363 for ac_prog in cl.exe
4364 do
4365 # Extract the first word of "$ac_prog", so it can be a program name with args.
4366 set dummy $ac_prog; ac_word=$2
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368 $as_echo_n "checking for $ac_word... " >&6; }
4369 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 if test -n "$ac_ct_CC"; then
4373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4374 else
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4377 do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382 ac_cv_prog_ac_ct_CC="$ac_prog"
4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 break 2
4385 fi
4386 done
4387 done
4388 IFS=$as_save_IFS
4389
4390 fi
4391 fi
4392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4393 if test -n "$ac_ct_CC"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4395 $as_echo "$ac_ct_CC" >&6; }
4396 else
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4399 fi
4400
4401
4402 test -n "$ac_ct_CC" && break
4403 done
4404
4405 if test "x$ac_ct_CC" = x; then
4406 CC=""
4407 else
4408 case $cross_compiling:$ac_tool_warned in
4409 yes:)
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4412 ac_tool_warned=yes ;;
4413 esac
4414 CC=$ac_ct_CC
4415 fi
4416 fi
4417
4418 fi
4419
4420
4421 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4423 as_fn_error $? "no acceptable C compiler found in \$PATH
4424 See \`config.log' for more details" "$LINENO" 5; }
4425
4426 # Provide some information about the compiler.
4427 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4428 set X $ac_compile
4429 ac_compiler=$2
4430 for ac_option in --version -v -V -qversion; do
4431 { { ac_try="$ac_compiler $ac_option >&5"
4432 case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437 $as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4439 ac_status=$?
4440 if test -s conftest.err; then
4441 sed '10a\
4442 ... rest of stderr output deleted ...
4443 10q' conftest.err >conftest.er1
4444 cat conftest.er1 >&5
4445 fi
4446 rm -f conftest.er1 conftest.err
4447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4448 test $ac_status = 0; }
4449 done
4450
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4453
4454 int
4455 main ()
4456 {
4457
4458 ;
4459 return 0;
4460 }
4461 _ACEOF
4462 ac_clean_files_save=$ac_clean_files
4463 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4464 # Try to create an executable without -o first, disregard a.out.
4465 # It will help us diagnose broken compilers, and finding out an intuition
4466 # of exeext.
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4468 $as_echo_n "checking whether the C compiler works... " >&6; }
4469 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4470
4471 # The possible output files:
4472 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4473
4474 ac_rmfiles=
4475 for ac_file in $ac_files
4476 do
4477 case $ac_file in
4478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4479 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4480 esac
4481 done
4482 rm -f $ac_rmfiles
4483
4484 if { { ac_try="$ac_link_default"
4485 case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490 $as_echo "$ac_try_echo"; } >&5
4491 (eval "$ac_link_default") 2>&5
4492 ac_status=$?
4493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494 test $ac_status = 0; }; then :
4495 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4496 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4497 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4498 # so that the user can short-circuit this test for compilers unknown to
4499 # Autoconf.
4500 for ac_file in $ac_files ''
4501 do
4502 test -f "$ac_file" || continue
4503 case $ac_file in
4504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4505 ;;
4506 [ab].out )
4507 # We found the default executable, but exeext='' is most
4508 # certainly right.
4509 break;;
4510 *.* )
4511 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4512 then :; else
4513 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4514 fi
4515 # We set ac_cv_exeext here because the later test for it is not
4516 # safe: cross compilers may not add the suffix if given an `-o'
4517 # argument, so we may need to know it at that point already.
4518 # Even if this section looks crufty: it has the advantage of
4519 # actually working.
4520 break;;
4521 * )
4522 break;;
4523 esac
4524 done
4525 test "$ac_cv_exeext" = no && ac_cv_exeext=
4526
4527 else
4528 ac_file=''
4529 fi
4530 if test -z "$ac_file"; then :
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4533 $as_echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4535
4536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4538 as_fn_error 77 "C compiler cannot create executables
4539 See \`config.log' for more details" "$LINENO" 5; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542 $as_echo "yes" >&6; }
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4545 $as_echo_n "checking for C compiler default output file name... " >&6; }
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4547 $as_echo "$ac_file" >&6; }
4548 ac_exeext=$ac_cv_exeext
4549
4550 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4551 ac_clean_files=$ac_clean_files_save
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4553 $as_echo_n "checking for suffix of executables... " >&6; }
4554 if { { ac_try="$ac_link"
4555 case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4558 esac
4559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4560 $as_echo "$ac_try_echo"; } >&5
4561 (eval "$ac_link") 2>&5
4562 ac_status=$?
4563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4564 test $ac_status = 0; }; then :
4565 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4566 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4567 # work properly (i.e., refer to `conftest.exe'), while it won't with
4568 # `rm'.
4569 for ac_file in conftest.exe conftest conftest.*; do
4570 test -f "$ac_file" || continue
4571 case $ac_file in
4572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4574 break;;
4575 * ) break;;
4576 esac
4577 done
4578 else
4579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4581 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4582 See \`config.log' for more details" "$LINENO" 5; }
4583 fi
4584 rm -f conftest conftest$ac_cv_exeext
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4586 $as_echo "$ac_cv_exeext" >&6; }
4587
4588 rm -f conftest.$ac_ext
4589 EXEEXT=$ac_cv_exeext
4590 ac_exeext=$EXEEXT
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <stdio.h>
4594 int
4595 main ()
4596 {
4597 FILE *f = fopen ("conftest.out", "w");
4598 return ferror (f) || fclose (f) != 0;
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 ac_clean_files="$ac_clean_files conftest.out"
4605 # Check that the compiler produces executables we can run. If not, either
4606 # the compiler is broken, or we cross compile.
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4608 $as_echo_n "checking whether we are cross compiling... " >&6; }
4609 if test "$cross_compiling" != yes; then
4610 { { ac_try="$ac_link"
4611 case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614 esac
4615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4616 $as_echo "$ac_try_echo"; } >&5
4617 (eval "$ac_link") 2>&5
4618 ac_status=$?
4619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4620 test $ac_status = 0; }
4621 if { ac_try='./conftest$ac_cv_exeext'
4622 { { case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4625 esac
4626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4627 $as_echo "$ac_try_echo"; } >&5
4628 (eval "$ac_try") 2>&5
4629 ac_status=$?
4630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4631 test $ac_status = 0; }; }; then
4632 cross_compiling=no
4633 else
4634 if test "$cross_compiling" = maybe; then
4635 cross_compiling=yes
4636 else
4637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4639 as_fn_error $? "cannot run C compiled programs.
4640 If you meant to cross compile, use \`--host'.
4641 See \`config.log' for more details" "$LINENO" 5; }
4642 fi
4643 fi
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4646 $as_echo "$cross_compiling" >&6; }
4647
4648 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4649 ac_clean_files=$ac_clean_files_save
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4651 $as_echo_n "checking for suffix of object files... " >&6; }
4652 if ${ac_cv_objext+:} false; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657
4658 int
4659 main ()
4660 {
4661
4662 ;
4663 return 0;
4664 }
4665 _ACEOF
4666 rm -f conftest.o conftest.obj
4667 if { { ac_try="$ac_compile"
4668 case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671 esac
4672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4673 $as_echo "$ac_try_echo"; } >&5
4674 (eval "$ac_compile") 2>&5
4675 ac_status=$?
4676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4677 test $ac_status = 0; }; then :
4678 for ac_file in conftest.o conftest.obj conftest.*; do
4679 test -f "$ac_file" || continue;
4680 case $ac_file in
4681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4683 break;;
4684 esac
4685 done
4686 else
4687 $as_echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4689
4690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4692 as_fn_error $? "cannot compute suffix of object files: cannot compile
4693 See \`config.log' for more details" "$LINENO" 5; }
4694 fi
4695 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4698 $as_echo "$ac_cv_objext" >&6; }
4699 OBJEXT=$ac_cv_objext
4700 ac_objext=$OBJEXT
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4702 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4703 if ${ac_cv_c_compiler_gnu+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708
4709 int
4710 main ()
4711 {
4712 #ifndef __GNUC__
4713 choke me
4714 #endif
4715
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 if ac_fn_c_try_compile "$LINENO"; then :
4721 ac_compiler_gnu=yes
4722 else
4723 ac_compiler_gnu=no
4724 fi
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4727
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4730 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4731 if test $ac_compiler_gnu = yes; then
4732 GCC=yes
4733 else
4734 GCC=
4735 fi
4736 ac_test_CFLAGS=${CFLAGS+set}
4737 ac_save_CFLAGS=$CFLAGS
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4739 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4740 if ${ac_cv_prog_cc_g+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 ac_save_c_werror_flag=$ac_c_werror_flag
4744 ac_c_werror_flag=yes
4745 ac_cv_prog_cc_g=no
4746 CFLAGS="-g"
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4749
4750 int
4751 main ()
4752 {
4753
4754 ;
4755 return 0;
4756 }
4757 _ACEOF
4758 if ac_fn_c_try_compile "$LINENO"; then :
4759 ac_cv_prog_cc_g=yes
4760 else
4761 CFLAGS=""
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764
4765 int
4766 main ()
4767 {
4768
4769 ;
4770 return 0;
4771 }
4772 _ACEOF
4773 if ac_fn_c_try_compile "$LINENO"; then :
4774
4775 else
4776 ac_c_werror_flag=$ac_save_c_werror_flag
4777 CFLAGS="-g"
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780
4781 int
4782 main ()
4783 {
4784
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790 ac_cv_prog_cc_g=yes
4791 fi
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 fi
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 fi
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 ac_c_werror_flag=$ac_save_c_werror_flag
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4800 $as_echo "$ac_cv_prog_cc_g" >&6; }
4801 if test "$ac_test_CFLAGS" = set; then
4802 CFLAGS=$ac_save_CFLAGS
4803 elif test $ac_cv_prog_cc_g = yes; then
4804 if test "$GCC" = yes; then
4805 CFLAGS="-g -O2"
4806 else
4807 CFLAGS="-g"
4808 fi
4809 else
4810 if test "$GCC" = yes; then
4811 CFLAGS="-O2"
4812 else
4813 CFLAGS=
4814 fi
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4817 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4818 if ${ac_cv_prog_cc_c89+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 ac_cv_prog_cc_c89=no
4822 ac_save_CC=$CC
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4825 #include <stdarg.h>
4826 #include <stdio.h>
4827 struct stat;
4828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4829 struct buf { int x; };
4830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4831 static char *e (p, i)
4832 char **p;
4833 int i;
4834 {
4835 return p[i];
4836 }
4837 static char *f (char * (*g) (char **, int), char **p, ...)
4838 {
4839 char *s;
4840 va_list v;
4841 va_start (v,p);
4842 s = g (p, va_arg (v,int));
4843 va_end (v);
4844 return s;
4845 }
4846
4847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4848 function prototypes and stuff, but not '\xHH' hex character constants.
4849 These don't provoke an error unfortunately, instead are silently treated
4850 as 'x'. The following induces an error, until -std is added to get
4851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4852 array size at least. It's necessary to write '\x00'==0 to get something
4853 that's true only with -std. */
4854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4855
4856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4857 inside strings and character constants. */
4858 #define FOO(x) 'x'
4859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4860
4861 int test (int i, double x);
4862 struct s1 {int (*f) (int a);};
4863 struct s2 {int (*f) (double a);};
4864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4865 int argc;
4866 char **argv;
4867 int
4868 main ()
4869 {
4870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4871 ;
4872 return 0;
4873 }
4874 _ACEOF
4875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4877 do
4878 CC="$ac_save_CC $ac_arg"
4879 if ac_fn_c_try_compile "$LINENO"; then :
4880 ac_cv_prog_cc_c89=$ac_arg
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext
4883 test "x$ac_cv_prog_cc_c89" != "xno" && break
4884 done
4885 rm -f conftest.$ac_ext
4886 CC=$ac_save_CC
4887
4888 fi
4889 # AC_CACHE_VAL
4890 case "x$ac_cv_prog_cc_c89" in
4891 x)
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4893 $as_echo "none needed" >&6; } ;;
4894 xno)
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4896 $as_echo "unsupported" >&6; } ;;
4897 *)
4898 CC="$CC $ac_cv_prog_cc_c89"
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4900 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4901 esac
4902 if test "x$ac_cv_prog_cc_c89" != xno; then :
4903
4904 fi
4905
4906 ac_ext=c
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911
4912 ac_ext=cpp
4913 ac_cpp='$CXXCPP $CPPFLAGS'
4914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4917 if test -z "$CXX"; then
4918 if test -n "$CCC"; then
4919 CXX=$CCC
4920 else
4921 if test -n "$ac_tool_prefix"; then
4922 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4923 do
4924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if ${ac_cv_prog_CXX+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$CXX"; then
4932 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945 done
4946 done
4947 IFS=$as_save_IFS
4948
4949 fi
4950 fi
4951 CXX=$ac_cv_prog_CXX
4952 if test -n "$CXX"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4954 $as_echo "$CXX" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4958 fi
4959
4960
4961 test -n "$CXX" && break
4962 done
4963 fi
4964 if test -z "$CXX"; then
4965 ac_ct_CXX=$CXX
4966 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4967 do
4968 # Extract the first word of "$ac_prog", so it can be a program name with args.
4969 set dummy $ac_prog; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 if test -n "$ac_ct_CXX"; then
4976 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_ac_ct_CXX="$ac_prog"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4988 fi
4989 done
4990 done
4991 IFS=$as_save_IFS
4992
4993 fi
4994 fi
4995 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4996 if test -n "$ac_ct_CXX"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4998 $as_echo "$ac_ct_CXX" >&6; }
4999 else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5002 fi
5003
5004
5005 test -n "$ac_ct_CXX" && break
5006 done
5007
5008 if test "x$ac_ct_CXX" = x; then
5009 CXX="g++"
5010 else
5011 case $cross_compiling:$ac_tool_warned in
5012 yes:)
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5015 ac_tool_warned=yes ;;
5016 esac
5017 CXX=$ac_ct_CXX
5018 fi
5019 fi
5020
5021 fi
5022 fi
5023 # Provide some information about the compiler.
5024 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5025 set X $ac_compile
5026 ac_compiler=$2
5027 for ac_option in --version -v -V -qversion; do
5028 { { ac_try="$ac_compiler $ac_option >&5"
5029 case "(($ac_try" in
5030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5032 esac
5033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5034 $as_echo "$ac_try_echo"; } >&5
5035 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5036 ac_status=$?
5037 if test -s conftest.err; then
5038 sed '10a\
5039 ... rest of stderr output deleted ...
5040 10q' conftest.err >conftest.er1
5041 cat conftest.er1 >&5
5042 fi
5043 rm -f conftest.er1 conftest.err
5044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5045 test $ac_status = 0; }
5046 done
5047
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5049 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5050 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5055
5056 int
5057 main ()
5058 {
5059 #ifndef __GNUC__
5060 choke me
5061 #endif
5062
5063 ;
5064 return 0;
5065 }
5066 _ACEOF
5067 if ac_fn_cxx_try_compile "$LINENO"; then :
5068 ac_compiler_gnu=yes
5069 else
5070 ac_compiler_gnu=no
5071 fi
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5074
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5077 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5078 if test $ac_compiler_gnu = yes; then
5079 GXX=yes
5080 else
5081 GXX=
5082 fi
5083 ac_test_CXXFLAGS=${CXXFLAGS+set}
5084 ac_save_CXXFLAGS=$CXXFLAGS
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5086 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5087 if ${ac_cv_prog_cxx_g+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5091 ac_cxx_werror_flag=yes
5092 ac_cv_prog_cxx_g=no
5093 CXXFLAGS="-g"
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096
5097 int
5098 main ()
5099 {
5100
5101 ;
5102 return 0;
5103 }
5104 _ACEOF
5105 if ac_fn_cxx_try_compile "$LINENO"; then :
5106 ac_cv_prog_cxx_g=yes
5107 else
5108 CXXFLAGS=""
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111
5112 int
5113 main ()
5114 {
5115
5116 ;
5117 return 0;
5118 }
5119 _ACEOF
5120 if ac_fn_cxx_try_compile "$LINENO"; then :
5121
5122 else
5123 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5124 CXXFLAGS="-g"
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5127
5128 int
5129 main ()
5130 {
5131
5132 ;
5133 return 0;
5134 }
5135 _ACEOF
5136 if ac_fn_cxx_try_compile "$LINENO"; then :
5137 ac_cv_prog_cxx_g=yes
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 fi
5141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 fi
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5145 fi
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5147 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5148 if test "$ac_test_CXXFLAGS" = set; then
5149 CXXFLAGS=$ac_save_CXXFLAGS
5150 elif test $ac_cv_prog_cxx_g = yes; then
5151 if test "$GXX" = yes; then
5152 CXXFLAGS="-g -O2"
5153 else
5154 CXXFLAGS="-g"
5155 fi
5156 else
5157 if test "$GXX" = yes; then
5158 CXXFLAGS="-O2"
5159 else
5160 CXXFLAGS=
5161 fi
5162 fi
5163 ac_ext=c
5164 ac_cpp='$CPP $CPPFLAGS'
5165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5168
5169
5170 # We must set the default linker to the linker used by gcc for the correct
5171 # operation of libtool. If LD is not defined and we are using gcc, try to
5172 # set the LD default to the ld used by gcc.
5173 if test -z "$LD"; then
5174 if test "$GCC" = yes; then
5175 case $build in
5176 *-*-mingw*)
5177 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5178 *)
5179 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5180 esac
5181 case $gcc_prog_ld in
5182 # Accept absolute paths.
5183 [\\/]* | [A-Za-z]:[\\/]*)
5184 LD="$gcc_prog_ld" ;;
5185 esac
5186 fi
5187 fi
5188
5189 # Check whether -static-libstdc++ -static-libgcc is supported.
5190 have_static_libs=no
5191 if test "$GCC" = yes; then
5192 saved_LDFLAGS="$LDFLAGS"
5193
5194 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5196 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5197 ac_ext=cpp
5198 ac_cpp='$CXXCPP $CPPFLAGS'
5199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5202
5203
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206
5207 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5208 #error -static-libstdc++ not implemented
5209 #endif
5210 int main() {}
5211 _ACEOF
5212 if ac_fn_cxx_try_link "$LINENO"; then :
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5214 $as_echo "yes" >&6; }; have_static_libs=yes
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219 rm -f core conftest.err conftest.$ac_objext \
5220 conftest$ac_exeext conftest.$ac_ext
5221 ac_ext=c
5222 ac_cpp='$CPP $CPPFLAGS'
5223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5226
5227
5228 LDFLAGS="$saved_LDFLAGS"
5229 fi
5230
5231
5232
5233
5234 if test -n "$ac_tool_prefix"; then
5235 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5236 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if ${ac_cv_prog_GNATBIND+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 if test -n "$GNATBIND"; then
5243 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256 done
5257 done
5258 IFS=$as_save_IFS
5259
5260 fi
5261 fi
5262 GNATBIND=$ac_cv_prog_GNATBIND
5263 if test -n "$GNATBIND"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5265 $as_echo "$GNATBIND" >&6; }
5266 else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 fi
5270
5271
5272 fi
5273 if test -z "$ac_cv_prog_GNATBIND"; then
5274 ac_ct_GNATBIND=$GNATBIND
5275 # Extract the first word of "gnatbind", so it can be a program name with args.
5276 set dummy gnatbind; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 if test -n "$ac_ct_GNATBIND"; then
5283 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5284 else
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 for as_dir in $PATH
5287 do
5288 IFS=$as_save_IFS
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 break 2
5295 fi
5296 done
5297 done
5298 IFS=$as_save_IFS
5299
5300 fi
5301 fi
5302 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5303 if test -n "$ac_ct_GNATBIND"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5305 $as_echo "$ac_ct_GNATBIND" >&6; }
5306 else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310
5311 if test "x$ac_ct_GNATBIND" = x; then
5312 GNATBIND="no"
5313 else
5314 case $cross_compiling:$ac_tool_warned in
5315 yes:)
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5318 ac_tool_warned=yes ;;
5319 esac
5320 GNATBIND=$ac_ct_GNATBIND
5321 fi
5322 else
5323 GNATBIND="$ac_cv_prog_GNATBIND"
5324 fi
5325
5326 if test -n "$ac_tool_prefix"; then
5327 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5328 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if ${ac_cv_prog_GNATMAKE+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$GNATMAKE"; then
5335 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348 done
5349 done
5350 IFS=$as_save_IFS
5351
5352 fi
5353 fi
5354 GNATMAKE=$ac_cv_prog_GNATMAKE
5355 if test -n "$GNATMAKE"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5357 $as_echo "$GNATMAKE" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5361 fi
5362
5363
5364 fi
5365 if test -z "$ac_cv_prog_GNATMAKE"; then
5366 ac_ct_GNATMAKE=$GNATMAKE
5367 # Extract the first word of "gnatmake", so it can be a program name with args.
5368 set dummy gnatmake; ac_word=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -n "$ac_ct_GNATMAKE"; then
5375 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5387 fi
5388 done
5389 done
5390 IFS=$as_save_IFS
5391
5392 fi
5393 fi
5394 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5395 if test -n "$ac_ct_GNATMAKE"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5397 $as_echo "$ac_ct_GNATMAKE" >&6; }
5398 else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5401 fi
5402
5403 if test "x$ac_ct_GNATMAKE" = x; then
5404 GNATMAKE="no"
5405 else
5406 case $cross_compiling:$ac_tool_warned in
5407 yes:)
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5410 ac_tool_warned=yes ;;
5411 esac
5412 GNATMAKE=$ac_ct_GNATMAKE
5413 fi
5414 else
5415 GNATMAKE="$ac_cv_prog_GNATMAKE"
5416 fi
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5419 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5420 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 cat >conftest.adb <<EOF
5424 procedure conftest is begin null; end conftest;
5425 EOF
5426 acx_cv_cc_gcc_supports_ada=no
5427 # There is a bug in old released versions of GCC which causes the
5428 # driver to exit successfully when the appropriate language module
5429 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5430 # Therefore we must check for the error message as well as an
5431 # unsuccessful exit.
5432 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5433 # given a .adb file, but produce no object file. So we must check
5434 # if an object file was really produced to guard against this.
5435 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5436 if test x"$errors" = x && test -f conftest.$ac_objext; then
5437 acx_cv_cc_gcc_supports_ada=yes
5438 fi
5439 rm -f conftest.*
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5442 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5443
5444 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5445 have_gnat=yes
5446 else
5447 have_gnat=no
5448 fi
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5451 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5452 if ${gcc_cv_prog_cmp_skip+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 echo abfoo >t1
5456 echo cdfoo >t2
5457 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5458 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5459 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5460 :
5461 else
5462 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5463 fi
5464 fi
5465 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5466 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5467 :
5468 else
5469 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5470 fi
5471 fi
5472 rm t1 t2
5473
5474 fi
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5476 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5477 do_compare="$gcc_cv_prog_cmp_skip"
5478
5479
5480
5481 # Check whether --enable-bootstrap was given.
5482 if test "${enable_bootstrap+set}" = set; then :
5483 enableval=$enable_bootstrap;
5484 else
5485 enable_bootstrap=default
5486 fi
5487
5488
5489 # Issue errors and warnings for invalid/strange bootstrap combinations.
5490 if test -r $srcdir/gcc/configure; then
5491 have_compiler=yes
5492 else
5493 have_compiler=no
5494 fi
5495
5496 case "$have_compiler:$host:$target:$enable_bootstrap" in
5497 *:*:*:no) ;;
5498
5499 # Default behavior. Enable bootstrap if we have a compiler
5500 # and we are in a native configuration.
5501 yes:$build:$build:default)
5502 enable_bootstrap=yes ;;
5503
5504 *:*:*:default)
5505 enable_bootstrap=no ;;
5506
5507 # We have a compiler and we are in a native configuration, bootstrap is ok
5508 yes:$build:$build:yes)
5509 ;;
5510
5511 # Other configurations, but we have a compiler. Assume the user knows
5512 # what he's doing.
5513 yes:*:*:yes)
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5515 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5516 ;;
5517
5518 # No compiler: if they passed --enable-bootstrap explicitly, fail
5519 no:*:*:yes)
5520 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5521
5522 # Fail if wrong command line
5523 *)
5524 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5525 ;;
5526 esac
5527
5528 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5529 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5530 # require C++11 (or higher).
5531 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5532 CXX="$CXX -std=c++11"
5533 elif test "$have_compiler" = yes; then
5534 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5535 ac_ext=cpp
5536 ac_cpp='$CXXCPP $CPPFLAGS'
5537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5540 ac_success=no
5541
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5543 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5544 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549
5550
5551 // If the compiler admits that it is not ready for C++11, why torture it?
5552 // Hopefully, this will speed up the test.
5553
5554 #ifndef __cplusplus
5555
5556 #error "This is not a C++ compiler"
5557
5558 #elif __cplusplus < 201103L
5559
5560 #error "This is not a C++11 compiler"
5561
5562 #else
5563
5564 namespace cxx11
5565 {
5566
5567 namespace test_static_assert
5568 {
5569
5570 template <typename T>
5571 struct check
5572 {
5573 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5574 };
5575
5576 }
5577
5578 namespace test_final_override
5579 {
5580
5581 struct Base
5582 {
5583 virtual ~Base() {}
5584 virtual void f() {}
5585 };
5586
5587 struct Derived : public Base
5588 {
5589 virtual ~Derived() override {}
5590 virtual void f() override {}
5591 };
5592
5593 }
5594
5595 namespace test_double_right_angle_brackets
5596 {
5597
5598 template < typename T >
5599 struct check {};
5600
5601 typedef check<void> single_type;
5602 typedef check<check<void>> double_type;
5603 typedef check<check<check<void>>> triple_type;
5604 typedef check<check<check<check<void>>>> quadruple_type;
5605
5606 }
5607
5608 namespace test_decltype
5609 {
5610
5611 int
5612 f()
5613 {
5614 int a = 1;
5615 decltype(a) b = 2;
5616 return a + b;
5617 }
5618
5619 }
5620
5621 namespace test_type_deduction
5622 {
5623
5624 template < typename T1, typename T2 >
5625 struct is_same
5626 {
5627 static const bool value = false;
5628 };
5629
5630 template < typename T >
5631 struct is_same<T, T>
5632 {
5633 static const bool value = true;
5634 };
5635
5636 template < typename T1, typename T2 >
5637 auto
5638 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5639 {
5640 return a1 + a2;
5641 }
5642
5643 int
5644 test(const int c, volatile int v)
5645 {
5646 static_assert(is_same<int, decltype(0)>::value == true, "");
5647 static_assert(is_same<int, decltype(c)>::value == false, "");
5648 static_assert(is_same<int, decltype(v)>::value == false, "");
5649 auto ac = c;
5650 auto av = v;
5651 auto sumi = ac + av + 'x';
5652 auto sumf = ac + av + 1.0;
5653 static_assert(is_same<int, decltype(ac)>::value == true, "");
5654 static_assert(is_same<int, decltype(av)>::value == true, "");
5655 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5656 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5657 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5658 return (sumf > 0.0) ? sumi : add(c, v);
5659 }
5660
5661 }
5662
5663 namespace test_noexcept
5664 {
5665
5666 int f() { return 0; }
5667 int g() noexcept { return 0; }
5668
5669 static_assert(noexcept(f()) == false, "");
5670 static_assert(noexcept(g()) == true, "");
5671
5672 }
5673
5674 namespace test_constexpr
5675 {
5676
5677 template < typename CharT >
5678 unsigned long constexpr
5679 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5680 {
5681 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5682 }
5683
5684 template < typename CharT >
5685 unsigned long constexpr
5686 strlen_c(const CharT *const s) noexcept
5687 {
5688 return strlen_c_r(s, 0UL);
5689 }
5690
5691 static_assert(strlen_c("") == 0UL, "");
5692 static_assert(strlen_c("1") == 1UL, "");
5693 static_assert(strlen_c("example") == 7UL, "");
5694 static_assert(strlen_c("another\0example") == 7UL, "");
5695
5696 }
5697
5698 namespace test_rvalue_references
5699 {
5700
5701 template < int N >
5702 struct answer
5703 {
5704 static constexpr int value = N;
5705 };
5706
5707 answer<1> f(int&) { return answer<1>(); }
5708 answer<2> f(const int&) { return answer<2>(); }
5709 answer<3> f(int&&) { return answer<3>(); }
5710
5711 void
5712 test()
5713 {
5714 int i = 0;
5715 const int c = 0;
5716 static_assert(decltype(f(i))::value == 1, "");
5717 static_assert(decltype(f(c))::value == 2, "");
5718 static_assert(decltype(f(0))::value == 3, "");
5719 }
5720
5721 }
5722
5723 namespace test_uniform_initialization
5724 {
5725
5726 struct test
5727 {
5728 static const int zero {};
5729 static const int one {1};
5730 };
5731
5732 static_assert(test::zero == 0, "");
5733 static_assert(test::one == 1, "");
5734
5735 }
5736
5737 namespace test_lambdas
5738 {
5739
5740 void
5741 test1()
5742 {
5743 auto lambda1 = [](){};
5744 auto lambda2 = lambda1;
5745 lambda1();
5746 lambda2();
5747 }
5748
5749 int
5750 test2()
5751 {
5752 auto a = [](int i, int j){ return i + j; }(1, 2);
5753 auto b = []() -> int { return '0'; }();
5754 auto c = [=](){ return a + b; }();
5755 auto d = [&](){ return c; }();
5756 auto e = [a, &b](int x) mutable {
5757 const auto identity = [](int y){ return y; };
5758 for (auto i = 0; i < a; ++i)
5759 a += b--;
5760 return x + identity(a + b);
5761 }(0);
5762 return a + b + c + d + e;
5763 }
5764
5765 int
5766 test3()
5767 {
5768 const auto nullary = [](){ return 0; };
5769 const auto unary = [](int x){ return x; };
5770 using nullary_t = decltype(nullary);
5771 using unary_t = decltype(unary);
5772 const auto higher1st = [](nullary_t f){ return f(); };
5773 const auto higher2nd = [unary](nullary_t f1){
5774 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5775 };
5776 return higher1st(nullary) + higher2nd(nullary)(unary);
5777 }
5778
5779 }
5780
5781 namespace test_variadic_templates
5782 {
5783
5784 template <int...>
5785 struct sum;
5786
5787 template <int N0, int... N1toN>
5788 struct sum<N0, N1toN...>
5789 {
5790 static constexpr auto value = N0 + sum<N1toN...>::value;
5791 };
5792
5793 template <>
5794 struct sum<>
5795 {
5796 static constexpr auto value = 0;
5797 };
5798
5799 static_assert(sum<>::value == 0, "");
5800 static_assert(sum<1>::value == 1, "");
5801 static_assert(sum<23>::value == 23, "");
5802 static_assert(sum<1, 2>::value == 3, "");
5803 static_assert(sum<5, 5, 11>::value == 21, "");
5804 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5805
5806 }
5807
5808 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5809 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5810 // because of this.
5811 namespace test_template_alias_sfinae
5812 {
5813
5814 struct foo {};
5815
5816 template<typename T>
5817 using member = typename T::member_type;
5818
5819 template<typename T>
5820 void func(...) {}
5821
5822 template<typename T>
5823 void func(member<T>*) {}
5824
5825 void test();
5826
5827 void test() { func<foo>(0); }
5828
5829 }
5830
5831 } // namespace cxx11
5832
5833 #endif // __cplusplus >= 201103L
5834
5835
5836
5837 _ACEOF
5838 if ac_fn_cxx_try_compile "$LINENO"; then :
5839 ax_cv_cxx_compile_cxx11=yes
5840 else
5841 ax_cv_cxx_compile_cxx11=no
5842 fi
5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844 fi
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5846 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5847 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5848 ac_success=yes
5849 fi
5850
5851 if test x$ac_success = xno; then
5852 for alternative in ${ax_cxx_compile_alternatives}; do
5853 switch="-std=gnu++${alternative}"
5854 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5856 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5857 if eval \${$cachevar+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 ac_save_CXX="$CXX"
5861 CXX="$CXX $switch"
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864
5865
5866 // If the compiler admits that it is not ready for C++11, why torture it?
5867 // Hopefully, this will speed up the test.
5868
5869 #ifndef __cplusplus
5870
5871 #error "This is not a C++ compiler"
5872
5873 #elif __cplusplus < 201103L
5874
5875 #error "This is not a C++11 compiler"
5876
5877 #else
5878
5879 namespace cxx11
5880 {
5881
5882 namespace test_static_assert
5883 {
5884
5885 template <typename T>
5886 struct check
5887 {
5888 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5889 };
5890
5891 }
5892
5893 namespace test_final_override
5894 {
5895
5896 struct Base
5897 {
5898 virtual ~Base() {}
5899 virtual void f() {}
5900 };
5901
5902 struct Derived : public Base
5903 {
5904 virtual ~Derived() override {}
5905 virtual void f() override {}
5906 };
5907
5908 }
5909
5910 namespace test_double_right_angle_brackets
5911 {
5912
5913 template < typename T >
5914 struct check {};
5915
5916 typedef check<void> single_type;
5917 typedef check<check<void>> double_type;
5918 typedef check<check<check<void>>> triple_type;
5919 typedef check<check<check<check<void>>>> quadruple_type;
5920
5921 }
5922
5923 namespace test_decltype
5924 {
5925
5926 int
5927 f()
5928 {
5929 int a = 1;
5930 decltype(a) b = 2;
5931 return a + b;
5932 }
5933
5934 }
5935
5936 namespace test_type_deduction
5937 {
5938
5939 template < typename T1, typename T2 >
5940 struct is_same
5941 {
5942 static const bool value = false;
5943 };
5944
5945 template < typename T >
5946 struct is_same<T, T>
5947 {
5948 static const bool value = true;
5949 };
5950
5951 template < typename T1, typename T2 >
5952 auto
5953 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5954 {
5955 return a1 + a2;
5956 }
5957
5958 int
5959 test(const int c, volatile int v)
5960 {
5961 static_assert(is_same<int, decltype(0)>::value == true, "");
5962 static_assert(is_same<int, decltype(c)>::value == false, "");
5963 static_assert(is_same<int, decltype(v)>::value == false, "");
5964 auto ac = c;
5965 auto av = v;
5966 auto sumi = ac + av + 'x';
5967 auto sumf = ac + av + 1.0;
5968 static_assert(is_same<int, decltype(ac)>::value == true, "");
5969 static_assert(is_same<int, decltype(av)>::value == true, "");
5970 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5971 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5972 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5973 return (sumf > 0.0) ? sumi : add(c, v);
5974 }
5975
5976 }
5977
5978 namespace test_noexcept
5979 {
5980
5981 int f() { return 0; }
5982 int g() noexcept { return 0; }
5983
5984 static_assert(noexcept(f()) == false, "");
5985 static_assert(noexcept(g()) == true, "");
5986
5987 }
5988
5989 namespace test_constexpr
5990 {
5991
5992 template < typename CharT >
5993 unsigned long constexpr
5994 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5995 {
5996 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5997 }
5998
5999 template < typename CharT >
6000 unsigned long constexpr
6001 strlen_c(const CharT *const s) noexcept
6002 {
6003 return strlen_c_r(s, 0UL);
6004 }
6005
6006 static_assert(strlen_c("") == 0UL, "");
6007 static_assert(strlen_c("1") == 1UL, "");
6008 static_assert(strlen_c("example") == 7UL, "");
6009 static_assert(strlen_c("another\0example") == 7UL, "");
6010
6011 }
6012
6013 namespace test_rvalue_references
6014 {
6015
6016 template < int N >
6017 struct answer
6018 {
6019 static constexpr int value = N;
6020 };
6021
6022 answer<1> f(int&) { return answer<1>(); }
6023 answer<2> f(const int&) { return answer<2>(); }
6024 answer<3> f(int&&) { return answer<3>(); }
6025
6026 void
6027 test()
6028 {
6029 int i = 0;
6030 const int c = 0;
6031 static_assert(decltype(f(i))::value == 1, "");
6032 static_assert(decltype(f(c))::value == 2, "");
6033 static_assert(decltype(f(0))::value == 3, "");
6034 }
6035
6036 }
6037
6038 namespace test_uniform_initialization
6039 {
6040
6041 struct test
6042 {
6043 static const int zero {};
6044 static const int one {1};
6045 };
6046
6047 static_assert(test::zero == 0, "");
6048 static_assert(test::one == 1, "");
6049
6050 }
6051
6052 namespace test_lambdas
6053 {
6054
6055 void
6056 test1()
6057 {
6058 auto lambda1 = [](){};
6059 auto lambda2 = lambda1;
6060 lambda1();
6061 lambda2();
6062 }
6063
6064 int
6065 test2()
6066 {
6067 auto a = [](int i, int j){ return i + j; }(1, 2);
6068 auto b = []() -> int { return '0'; }();
6069 auto c = [=](){ return a + b; }();
6070 auto d = [&](){ return c; }();
6071 auto e = [a, &b](int x) mutable {
6072 const auto identity = [](int y){ return y; };
6073 for (auto i = 0; i < a; ++i)
6074 a += b--;
6075 return x + identity(a + b);
6076 }(0);
6077 return a + b + c + d + e;
6078 }
6079
6080 int
6081 test3()
6082 {
6083 const auto nullary = [](){ return 0; };
6084 const auto unary = [](int x){ return x; };
6085 using nullary_t = decltype(nullary);
6086 using unary_t = decltype(unary);
6087 const auto higher1st = [](nullary_t f){ return f(); };
6088 const auto higher2nd = [unary](nullary_t f1){
6089 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6090 };
6091 return higher1st(nullary) + higher2nd(nullary)(unary);
6092 }
6093
6094 }
6095
6096 namespace test_variadic_templates
6097 {
6098
6099 template <int...>
6100 struct sum;
6101
6102 template <int N0, int... N1toN>
6103 struct sum<N0, N1toN...>
6104 {
6105 static constexpr auto value = N0 + sum<N1toN...>::value;
6106 };
6107
6108 template <>
6109 struct sum<>
6110 {
6111 static constexpr auto value = 0;
6112 };
6113
6114 static_assert(sum<>::value == 0, "");
6115 static_assert(sum<1>::value == 1, "");
6116 static_assert(sum<23>::value == 23, "");
6117 static_assert(sum<1, 2>::value == 3, "");
6118 static_assert(sum<5, 5, 11>::value == 21, "");
6119 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6120
6121 }
6122
6123 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6124 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6125 // because of this.
6126 namespace test_template_alias_sfinae
6127 {
6128
6129 struct foo {};
6130
6131 template<typename T>
6132 using member = typename T::member_type;
6133
6134 template<typename T>
6135 void func(...) {}
6136
6137 template<typename T>
6138 void func(member<T>*) {}
6139
6140 void test();
6141
6142 void test() { func<foo>(0); }
6143
6144 }
6145
6146 } // namespace cxx11
6147
6148 #endif // __cplusplus >= 201103L
6149
6150
6151
6152 _ACEOF
6153 if ac_fn_cxx_try_compile "$LINENO"; then :
6154 eval $cachevar=yes
6155 else
6156 eval $cachevar=no
6157 fi
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 CXX="$ac_save_CXX"
6160 fi
6161 eval ac_res=\$$cachevar
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6163 $as_echo "$ac_res" >&6; }
6164 if eval test x\$$cachevar = xyes; then
6165 CXX="$CXX $switch"
6166 if test -n "$CXXCPP" ; then
6167 CXXCPP="$CXXCPP $switch"
6168 fi
6169 ac_success=yes
6170 break
6171 fi
6172 done
6173 fi
6174
6175 if test x$ac_success = xno; then
6176 for alternative in ${ax_cxx_compile_alternatives}; do
6177 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6178 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6180 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6181 if eval \${$cachevar+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 ac_save_CXX="$CXX"
6185 CXX="$CXX $switch"
6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188
6189
6190 // If the compiler admits that it is not ready for C++11, why torture it?
6191 // Hopefully, this will speed up the test.
6192
6193 #ifndef __cplusplus
6194
6195 #error "This is not a C++ compiler"
6196
6197 #elif __cplusplus < 201103L
6198
6199 #error "This is not a C++11 compiler"
6200
6201 #else
6202
6203 namespace cxx11
6204 {
6205
6206 namespace test_static_assert
6207 {
6208
6209 template <typename T>
6210 struct check
6211 {
6212 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6213 };
6214
6215 }
6216
6217 namespace test_final_override
6218 {
6219
6220 struct Base
6221 {
6222 virtual ~Base() {}
6223 virtual void f() {}
6224 };
6225
6226 struct Derived : public Base
6227 {
6228 virtual ~Derived() override {}
6229 virtual void f() override {}
6230 };
6231
6232 }
6233
6234 namespace test_double_right_angle_brackets
6235 {
6236
6237 template < typename T >
6238 struct check {};
6239
6240 typedef check<void> single_type;
6241 typedef check<check<void>> double_type;
6242 typedef check<check<check<void>>> triple_type;
6243 typedef check<check<check<check<void>>>> quadruple_type;
6244
6245 }
6246
6247 namespace test_decltype
6248 {
6249
6250 int
6251 f()
6252 {
6253 int a = 1;
6254 decltype(a) b = 2;
6255 return a + b;
6256 }
6257
6258 }
6259
6260 namespace test_type_deduction
6261 {
6262
6263 template < typename T1, typename T2 >
6264 struct is_same
6265 {
6266 static const bool value = false;
6267 };
6268
6269 template < typename T >
6270 struct is_same<T, T>
6271 {
6272 static const bool value = true;
6273 };
6274
6275 template < typename T1, typename T2 >
6276 auto
6277 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6278 {
6279 return a1 + a2;
6280 }
6281
6282 int
6283 test(const int c, volatile int v)
6284 {
6285 static_assert(is_same<int, decltype(0)>::value == true, "");
6286 static_assert(is_same<int, decltype(c)>::value == false, "");
6287 static_assert(is_same<int, decltype(v)>::value == false, "");
6288 auto ac = c;
6289 auto av = v;
6290 auto sumi = ac + av + 'x';
6291 auto sumf = ac + av + 1.0;
6292 static_assert(is_same<int, decltype(ac)>::value == true, "");
6293 static_assert(is_same<int, decltype(av)>::value == true, "");
6294 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6295 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6296 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6297 return (sumf > 0.0) ? sumi : add(c, v);
6298 }
6299
6300 }
6301
6302 namespace test_noexcept
6303 {
6304
6305 int f() { return 0; }
6306 int g() noexcept { return 0; }
6307
6308 static_assert(noexcept(f()) == false, "");
6309 static_assert(noexcept(g()) == true, "");
6310
6311 }
6312
6313 namespace test_constexpr
6314 {
6315
6316 template < typename CharT >
6317 unsigned long constexpr
6318 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6319 {
6320 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6321 }
6322
6323 template < typename CharT >
6324 unsigned long constexpr
6325 strlen_c(const CharT *const s) noexcept
6326 {
6327 return strlen_c_r(s, 0UL);
6328 }
6329
6330 static_assert(strlen_c("") == 0UL, "");
6331 static_assert(strlen_c("1") == 1UL, "");
6332 static_assert(strlen_c("example") == 7UL, "");
6333 static_assert(strlen_c("another\0example") == 7UL, "");
6334
6335 }
6336
6337 namespace test_rvalue_references
6338 {
6339
6340 template < int N >
6341 struct answer
6342 {
6343 static constexpr int value = N;
6344 };
6345
6346 answer<1> f(int&) { return answer<1>(); }
6347 answer<2> f(const int&) { return answer<2>(); }
6348 answer<3> f(int&&) { return answer<3>(); }
6349
6350 void
6351 test()
6352 {
6353 int i = 0;
6354 const int c = 0;
6355 static_assert(decltype(f(i))::value == 1, "");
6356 static_assert(decltype(f(c))::value == 2, "");
6357 static_assert(decltype(f(0))::value == 3, "");
6358 }
6359
6360 }
6361
6362 namespace test_uniform_initialization
6363 {
6364
6365 struct test
6366 {
6367 static const int zero {};
6368 static const int one {1};
6369 };
6370
6371 static_assert(test::zero == 0, "");
6372 static_assert(test::one == 1, "");
6373
6374 }
6375
6376 namespace test_lambdas
6377 {
6378
6379 void
6380 test1()
6381 {
6382 auto lambda1 = [](){};
6383 auto lambda2 = lambda1;
6384 lambda1();
6385 lambda2();
6386 }
6387
6388 int
6389 test2()
6390 {
6391 auto a = [](int i, int j){ return i + j; }(1, 2);
6392 auto b = []() -> int { return '0'; }();
6393 auto c = [=](){ return a + b; }();
6394 auto d = [&](){ return c; }();
6395 auto e = [a, &b](int x) mutable {
6396 const auto identity = [](int y){ return y; };
6397 for (auto i = 0; i < a; ++i)
6398 a += b--;
6399 return x + identity(a + b);
6400 }(0);
6401 return a + b + c + d + e;
6402 }
6403
6404 int
6405 test3()
6406 {
6407 const auto nullary = [](){ return 0; };
6408 const auto unary = [](int x){ return x; };
6409 using nullary_t = decltype(nullary);
6410 using unary_t = decltype(unary);
6411 const auto higher1st = [](nullary_t f){ return f(); };
6412 const auto higher2nd = [unary](nullary_t f1){
6413 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6414 };
6415 return higher1st(nullary) + higher2nd(nullary)(unary);
6416 }
6417
6418 }
6419
6420 namespace test_variadic_templates
6421 {
6422
6423 template <int...>
6424 struct sum;
6425
6426 template <int N0, int... N1toN>
6427 struct sum<N0, N1toN...>
6428 {
6429 static constexpr auto value = N0 + sum<N1toN...>::value;
6430 };
6431
6432 template <>
6433 struct sum<>
6434 {
6435 static constexpr auto value = 0;
6436 };
6437
6438 static_assert(sum<>::value == 0, "");
6439 static_assert(sum<1>::value == 1, "");
6440 static_assert(sum<23>::value == 23, "");
6441 static_assert(sum<1, 2>::value == 3, "");
6442 static_assert(sum<5, 5, 11>::value == 21, "");
6443 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6444
6445 }
6446
6447 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6448 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6449 // because of this.
6450 namespace test_template_alias_sfinae
6451 {
6452
6453 struct foo {};
6454
6455 template<typename T>
6456 using member = typename T::member_type;
6457
6458 template<typename T>
6459 void func(...) {}
6460
6461 template<typename T>
6462 void func(member<T>*) {}
6463
6464 void test();
6465
6466 void test() { func<foo>(0); }
6467
6468 }
6469
6470 } // namespace cxx11
6471
6472 #endif // __cplusplus >= 201103L
6473
6474
6475
6476 _ACEOF
6477 if ac_fn_cxx_try_compile "$LINENO"; then :
6478 eval $cachevar=yes
6479 else
6480 eval $cachevar=no
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 CXX="$ac_save_CXX"
6484 fi
6485 eval ac_res=\$$cachevar
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6487 $as_echo "$ac_res" >&6; }
6488 if eval test x\$$cachevar = xyes; then
6489 CXX="$CXX $switch"
6490 if test -n "$CXXCPP" ; then
6491 CXXCPP="$CXXCPP $switch"
6492 fi
6493 ac_success=yes
6494 break
6495 fi
6496 done
6497 if test x$ac_success = xyes; then
6498 break
6499 fi
6500 done
6501 fi
6502
6503 ac_ext=c
6504 ac_cpp='$CPP $CPPFLAGS'
6505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6508
6509 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6510 if test x$ac_success = xno; then
6511 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6512 fi
6513 fi
6514 if test x$ac_success = xno; then
6515 HAVE_CXX11=0
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6517 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6518 else
6519 HAVE_CXX11=1
6520
6521 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6522
6523 fi
6524
6525
6526
6527 if test "${build}" != "${host}"; then
6528 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6529 ac_ext=cpp
6530 ac_cpp='$CXXCPP $CPPFLAGS'
6531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6534 ac_success=no
6535 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6536 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6537 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6538 CXX="$CXX_FOR_BUILD"
6539 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6540 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6542 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6543 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6548
6549
6550 // If the compiler admits that it is not ready for C++11, why torture it?
6551 // Hopefully, this will speed up the test.
6552
6553 #ifndef __cplusplus
6554
6555 #error "This is not a C++ compiler"
6556
6557 #elif __cplusplus < 201103L
6558
6559 #error "This is not a C++11 compiler"
6560
6561 #else
6562
6563 namespace cxx11
6564 {
6565
6566 namespace test_static_assert
6567 {
6568
6569 template <typename T>
6570 struct check
6571 {
6572 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6573 };
6574
6575 }
6576
6577 namespace test_final_override
6578 {
6579
6580 struct Base
6581 {
6582 virtual ~Base() {}
6583 virtual void f() {}
6584 };
6585
6586 struct Derived : public Base
6587 {
6588 virtual ~Derived() override {}
6589 virtual void f() override {}
6590 };
6591
6592 }
6593
6594 namespace test_double_right_angle_brackets
6595 {
6596
6597 template < typename T >
6598 struct check {};
6599
6600 typedef check<void> single_type;
6601 typedef check<check<void>> double_type;
6602 typedef check<check<check<void>>> triple_type;
6603 typedef check<check<check<check<void>>>> quadruple_type;
6604
6605 }
6606
6607 namespace test_decltype
6608 {
6609
6610 int
6611 f()
6612 {
6613 int a = 1;
6614 decltype(a) b = 2;
6615 return a + b;
6616 }
6617
6618 }
6619
6620 namespace test_type_deduction
6621 {
6622
6623 template < typename T1, typename T2 >
6624 struct is_same
6625 {
6626 static const bool value = false;
6627 };
6628
6629 template < typename T >
6630 struct is_same<T, T>
6631 {
6632 static const bool value = true;
6633 };
6634
6635 template < typename T1, typename T2 >
6636 auto
6637 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6638 {
6639 return a1 + a2;
6640 }
6641
6642 int
6643 test(const int c, volatile int v)
6644 {
6645 static_assert(is_same<int, decltype(0)>::value == true, "");
6646 static_assert(is_same<int, decltype(c)>::value == false, "");
6647 static_assert(is_same<int, decltype(v)>::value == false, "");
6648 auto ac = c;
6649 auto av = v;
6650 auto sumi = ac + av + 'x';
6651 auto sumf = ac + av + 1.0;
6652 static_assert(is_same<int, decltype(ac)>::value == true, "");
6653 static_assert(is_same<int, decltype(av)>::value == true, "");
6654 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6655 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6656 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6657 return (sumf > 0.0) ? sumi : add(c, v);
6658 }
6659
6660 }
6661
6662 namespace test_noexcept
6663 {
6664
6665 int f() { return 0; }
6666 int g() noexcept { return 0; }
6667
6668 static_assert(noexcept(f()) == false, "");
6669 static_assert(noexcept(g()) == true, "");
6670
6671 }
6672
6673 namespace test_constexpr
6674 {
6675
6676 template < typename CharT >
6677 unsigned long constexpr
6678 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6679 {
6680 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6681 }
6682
6683 template < typename CharT >
6684 unsigned long constexpr
6685 strlen_c(const CharT *const s) noexcept
6686 {
6687 return strlen_c_r(s, 0UL);
6688 }
6689
6690 static_assert(strlen_c("") == 0UL, "");
6691 static_assert(strlen_c("1") == 1UL, "");
6692 static_assert(strlen_c("example") == 7UL, "");
6693 static_assert(strlen_c("another\0example") == 7UL, "");
6694
6695 }
6696
6697 namespace test_rvalue_references
6698 {
6699
6700 template < int N >
6701 struct answer
6702 {
6703 static constexpr int value = N;
6704 };
6705
6706 answer<1> f(int&) { return answer<1>(); }
6707 answer<2> f(const int&) { return answer<2>(); }
6708 answer<3> f(int&&) { return answer<3>(); }
6709
6710 void
6711 test()
6712 {
6713 int i = 0;
6714 const int c = 0;
6715 static_assert(decltype(f(i))::value == 1, "");
6716 static_assert(decltype(f(c))::value == 2, "");
6717 static_assert(decltype(f(0))::value == 3, "");
6718 }
6719
6720 }
6721
6722 namespace test_uniform_initialization
6723 {
6724
6725 struct test
6726 {
6727 static const int zero {};
6728 static const int one {1};
6729 };
6730
6731 static_assert(test::zero == 0, "");
6732 static_assert(test::one == 1, "");
6733
6734 }
6735
6736 namespace test_lambdas
6737 {
6738
6739 void
6740 test1()
6741 {
6742 auto lambda1 = [](){};
6743 auto lambda2 = lambda1;
6744 lambda1();
6745 lambda2();
6746 }
6747
6748 int
6749 test2()
6750 {
6751 auto a = [](int i, int j){ return i + j; }(1, 2);
6752 auto b = []() -> int { return '0'; }();
6753 auto c = [=](){ return a + b; }();
6754 auto d = [&](){ return c; }();
6755 auto e = [a, &b](int x) mutable {
6756 const auto identity = [](int y){ return y; };
6757 for (auto i = 0; i < a; ++i)
6758 a += b--;
6759 return x + identity(a + b);
6760 }(0);
6761 return a + b + c + d + e;
6762 }
6763
6764 int
6765 test3()
6766 {
6767 const auto nullary = [](){ return 0; };
6768 const auto unary = [](int x){ return x; };
6769 using nullary_t = decltype(nullary);
6770 using unary_t = decltype(unary);
6771 const auto higher1st = [](nullary_t f){ return f(); };
6772 const auto higher2nd = [unary](nullary_t f1){
6773 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6774 };
6775 return higher1st(nullary) + higher2nd(nullary)(unary);
6776 }
6777
6778 }
6779
6780 namespace test_variadic_templates
6781 {
6782
6783 template <int...>
6784 struct sum;
6785
6786 template <int N0, int... N1toN>
6787 struct sum<N0, N1toN...>
6788 {
6789 static constexpr auto value = N0 + sum<N1toN...>::value;
6790 };
6791
6792 template <>
6793 struct sum<>
6794 {
6795 static constexpr auto value = 0;
6796 };
6797
6798 static_assert(sum<>::value == 0, "");
6799 static_assert(sum<1>::value == 1, "");
6800 static_assert(sum<23>::value == 23, "");
6801 static_assert(sum<1, 2>::value == 3, "");
6802 static_assert(sum<5, 5, 11>::value == 21, "");
6803 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6804
6805 }
6806
6807 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6808 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6809 // because of this.
6810 namespace test_template_alias_sfinae
6811 {
6812
6813 struct foo {};
6814
6815 template<typename T>
6816 using member = typename T::member_type;
6817
6818 template<typename T>
6819 void func(...) {}
6820
6821 template<typename T>
6822 void func(member<T>*) {}
6823
6824 void test();
6825
6826 void test() { func<foo>(0); }
6827
6828 }
6829
6830 } // namespace cxx11
6831
6832 #endif // __cplusplus >= 201103L
6833
6834
6835
6836 _ACEOF
6837 if ac_fn_cxx_try_compile "$LINENO"; then :
6838 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
6839 else
6840 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
6841 fi
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843 fi
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
6845 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
6846 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
6847 ac_success=yes
6848 fi
6849
6850 if test x$ac_success = xno; then
6851 for alternative in ${ax_cxx_compile_alternatives}; do
6852 switch="-std=gnu++${alternative}"
6853 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6855 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6856 if eval \${$cachevar+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 ac_save_CXX="$CXX"
6860 CXX="$CXX $switch"
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863
6864
6865 // If the compiler admits that it is not ready for C++11, why torture it?
6866 // Hopefully, this will speed up the test.
6867
6868 #ifndef __cplusplus
6869
6870 #error "This is not a C++ compiler"
6871
6872 #elif __cplusplus < 201103L
6873
6874 #error "This is not a C++11 compiler"
6875
6876 #else
6877
6878 namespace cxx11
6879 {
6880
6881 namespace test_static_assert
6882 {
6883
6884 template <typename T>
6885 struct check
6886 {
6887 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6888 };
6889
6890 }
6891
6892 namespace test_final_override
6893 {
6894
6895 struct Base
6896 {
6897 virtual ~Base() {}
6898 virtual void f() {}
6899 };
6900
6901 struct Derived : public Base
6902 {
6903 virtual ~Derived() override {}
6904 virtual void f() override {}
6905 };
6906
6907 }
6908
6909 namespace test_double_right_angle_brackets
6910 {
6911
6912 template < typename T >
6913 struct check {};
6914
6915 typedef check<void> single_type;
6916 typedef check<check<void>> double_type;
6917 typedef check<check<check<void>>> triple_type;
6918 typedef check<check<check<check<void>>>> quadruple_type;
6919
6920 }
6921
6922 namespace test_decltype
6923 {
6924
6925 int
6926 f()
6927 {
6928 int a = 1;
6929 decltype(a) b = 2;
6930 return a + b;
6931 }
6932
6933 }
6934
6935 namespace test_type_deduction
6936 {
6937
6938 template < typename T1, typename T2 >
6939 struct is_same
6940 {
6941 static const bool value = false;
6942 };
6943
6944 template < typename T >
6945 struct is_same<T, T>
6946 {
6947 static const bool value = true;
6948 };
6949
6950 template < typename T1, typename T2 >
6951 auto
6952 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6953 {
6954 return a1 + a2;
6955 }
6956
6957 int
6958 test(const int c, volatile int v)
6959 {
6960 static_assert(is_same<int, decltype(0)>::value == true, "");
6961 static_assert(is_same<int, decltype(c)>::value == false, "");
6962 static_assert(is_same<int, decltype(v)>::value == false, "");
6963 auto ac = c;
6964 auto av = v;
6965 auto sumi = ac + av + 'x';
6966 auto sumf = ac + av + 1.0;
6967 static_assert(is_same<int, decltype(ac)>::value == true, "");
6968 static_assert(is_same<int, decltype(av)>::value == true, "");
6969 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6970 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6971 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6972 return (sumf > 0.0) ? sumi : add(c, v);
6973 }
6974
6975 }
6976
6977 namespace test_noexcept
6978 {
6979
6980 int f() { return 0; }
6981 int g() noexcept { return 0; }
6982
6983 static_assert(noexcept(f()) == false, "");
6984 static_assert(noexcept(g()) == true, "");
6985
6986 }
6987
6988 namespace test_constexpr
6989 {
6990
6991 template < typename CharT >
6992 unsigned long constexpr
6993 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6994 {
6995 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6996 }
6997
6998 template < typename CharT >
6999 unsigned long constexpr
7000 strlen_c(const CharT *const s) noexcept
7001 {
7002 return strlen_c_r(s, 0UL);
7003 }
7004
7005 static_assert(strlen_c("") == 0UL, "");
7006 static_assert(strlen_c("1") == 1UL, "");
7007 static_assert(strlen_c("example") == 7UL, "");
7008 static_assert(strlen_c("another\0example") == 7UL, "");
7009
7010 }
7011
7012 namespace test_rvalue_references
7013 {
7014
7015 template < int N >
7016 struct answer
7017 {
7018 static constexpr int value = N;
7019 };
7020
7021 answer<1> f(int&) { return answer<1>(); }
7022 answer<2> f(const int&) { return answer<2>(); }
7023 answer<3> f(int&&) { return answer<3>(); }
7024
7025 void
7026 test()
7027 {
7028 int i = 0;
7029 const int c = 0;
7030 static_assert(decltype(f(i))::value == 1, "");
7031 static_assert(decltype(f(c))::value == 2, "");
7032 static_assert(decltype(f(0))::value == 3, "");
7033 }
7034
7035 }
7036
7037 namespace test_uniform_initialization
7038 {
7039
7040 struct test
7041 {
7042 static const int zero {};
7043 static const int one {1};
7044 };
7045
7046 static_assert(test::zero == 0, "");
7047 static_assert(test::one == 1, "");
7048
7049 }
7050
7051 namespace test_lambdas
7052 {
7053
7054 void
7055 test1()
7056 {
7057 auto lambda1 = [](){};
7058 auto lambda2 = lambda1;
7059 lambda1();
7060 lambda2();
7061 }
7062
7063 int
7064 test2()
7065 {
7066 auto a = [](int i, int j){ return i + j; }(1, 2);
7067 auto b = []() -> int { return '0'; }();
7068 auto c = [=](){ return a + b; }();
7069 auto d = [&](){ return c; }();
7070 auto e = [a, &b](int x) mutable {
7071 const auto identity = [](int y){ return y; };
7072 for (auto i = 0; i < a; ++i)
7073 a += b--;
7074 return x + identity(a + b);
7075 }(0);
7076 return a + b + c + d + e;
7077 }
7078
7079 int
7080 test3()
7081 {
7082 const auto nullary = [](){ return 0; };
7083 const auto unary = [](int x){ return x; };
7084 using nullary_t = decltype(nullary);
7085 using unary_t = decltype(unary);
7086 const auto higher1st = [](nullary_t f){ return f(); };
7087 const auto higher2nd = [unary](nullary_t f1){
7088 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7089 };
7090 return higher1st(nullary) + higher2nd(nullary)(unary);
7091 }
7092
7093 }
7094
7095 namespace test_variadic_templates
7096 {
7097
7098 template <int...>
7099 struct sum;
7100
7101 template <int N0, int... N1toN>
7102 struct sum<N0, N1toN...>
7103 {
7104 static constexpr auto value = N0 + sum<N1toN...>::value;
7105 };
7106
7107 template <>
7108 struct sum<>
7109 {
7110 static constexpr auto value = 0;
7111 };
7112
7113 static_assert(sum<>::value == 0, "");
7114 static_assert(sum<1>::value == 1, "");
7115 static_assert(sum<23>::value == 23, "");
7116 static_assert(sum<1, 2>::value == 3, "");
7117 static_assert(sum<5, 5, 11>::value == 21, "");
7118 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7119
7120 }
7121
7122 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7123 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7124 // because of this.
7125 namespace test_template_alias_sfinae
7126 {
7127
7128 struct foo {};
7129
7130 template<typename T>
7131 using member = typename T::member_type;
7132
7133 template<typename T>
7134 void func(...) {}
7135
7136 template<typename T>
7137 void func(member<T>*) {}
7138
7139 void test();
7140
7141 void test() { func<foo>(0); }
7142
7143 }
7144
7145 } // namespace cxx11
7146
7147 #endif // __cplusplus >= 201103L
7148
7149
7150
7151 _ACEOF
7152 if ac_fn_cxx_try_compile "$LINENO"; then :
7153 eval $cachevar=yes
7154 else
7155 eval $cachevar=no
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158 CXX="$ac_save_CXX"
7159 fi
7160 eval ac_res=\$$cachevar
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7162 $as_echo "$ac_res" >&6; }
7163 if eval test x\$$cachevar = xyes; then
7164 CXX="$CXX $switch"
7165 if test -n "$CXXCPP" ; then
7166 CXXCPP="$CXXCPP $switch"
7167 fi
7168 ac_success=yes
7169 break
7170 fi
7171 done
7172 fi
7173
7174 if test x$ac_success = xno; then
7175 for alternative in ${ax_cxx_compile_alternatives}; do
7176 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7177 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7179 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7180 if eval \${$cachevar+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182 else
7183 ac_save_CXX="$CXX"
7184 CXX="$CXX $switch"
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187
7188
7189 // If the compiler admits that it is not ready for C++11, why torture it?
7190 // Hopefully, this will speed up the test.
7191
7192 #ifndef __cplusplus
7193
7194 #error "This is not a C++ compiler"
7195
7196 #elif __cplusplus < 201103L
7197
7198 #error "This is not a C++11 compiler"
7199
7200 #else
7201
7202 namespace cxx11
7203 {
7204
7205 namespace test_static_assert
7206 {
7207
7208 template <typename T>
7209 struct check
7210 {
7211 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7212 };
7213
7214 }
7215
7216 namespace test_final_override
7217 {
7218
7219 struct Base
7220 {
7221 virtual ~Base() {}
7222 virtual void f() {}
7223 };
7224
7225 struct Derived : public Base
7226 {
7227 virtual ~Derived() override {}
7228 virtual void f() override {}
7229 };
7230
7231 }
7232
7233 namespace test_double_right_angle_brackets
7234 {
7235
7236 template < typename T >
7237 struct check {};
7238
7239 typedef check<void> single_type;
7240 typedef check<check<void>> double_type;
7241 typedef check<check<check<void>>> triple_type;
7242 typedef check<check<check<check<void>>>> quadruple_type;
7243
7244 }
7245
7246 namespace test_decltype
7247 {
7248
7249 int
7250 f()
7251 {
7252 int a = 1;
7253 decltype(a) b = 2;
7254 return a + b;
7255 }
7256
7257 }
7258
7259 namespace test_type_deduction
7260 {
7261
7262 template < typename T1, typename T2 >
7263 struct is_same
7264 {
7265 static const bool value = false;
7266 };
7267
7268 template < typename T >
7269 struct is_same<T, T>
7270 {
7271 static const bool value = true;
7272 };
7273
7274 template < typename T1, typename T2 >
7275 auto
7276 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7277 {
7278 return a1 + a2;
7279 }
7280
7281 int
7282 test(const int c, volatile int v)
7283 {
7284 static_assert(is_same<int, decltype(0)>::value == true, "");
7285 static_assert(is_same<int, decltype(c)>::value == false, "");
7286 static_assert(is_same<int, decltype(v)>::value == false, "");
7287 auto ac = c;
7288 auto av = v;
7289 auto sumi = ac + av + 'x';
7290 auto sumf = ac + av + 1.0;
7291 static_assert(is_same<int, decltype(ac)>::value == true, "");
7292 static_assert(is_same<int, decltype(av)>::value == true, "");
7293 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7294 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7295 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7296 return (sumf > 0.0) ? sumi : add(c, v);
7297 }
7298
7299 }
7300
7301 namespace test_noexcept
7302 {
7303
7304 int f() { return 0; }
7305 int g() noexcept { return 0; }
7306
7307 static_assert(noexcept(f()) == false, "");
7308 static_assert(noexcept(g()) == true, "");
7309
7310 }
7311
7312 namespace test_constexpr
7313 {
7314
7315 template < typename CharT >
7316 unsigned long constexpr
7317 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7318 {
7319 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7320 }
7321
7322 template < typename CharT >
7323 unsigned long constexpr
7324 strlen_c(const CharT *const s) noexcept
7325 {
7326 return strlen_c_r(s, 0UL);
7327 }
7328
7329 static_assert(strlen_c("") == 0UL, "");
7330 static_assert(strlen_c("1") == 1UL, "");
7331 static_assert(strlen_c("example") == 7UL, "");
7332 static_assert(strlen_c("another\0example") == 7UL, "");
7333
7334 }
7335
7336 namespace test_rvalue_references
7337 {
7338
7339 template < int N >
7340 struct answer
7341 {
7342 static constexpr int value = N;
7343 };
7344
7345 answer<1> f(int&) { return answer<1>(); }
7346 answer<2> f(const int&) { return answer<2>(); }
7347 answer<3> f(int&&) { return answer<3>(); }
7348
7349 void
7350 test()
7351 {
7352 int i = 0;
7353 const int c = 0;
7354 static_assert(decltype(f(i))::value == 1, "");
7355 static_assert(decltype(f(c))::value == 2, "");
7356 static_assert(decltype(f(0))::value == 3, "");
7357 }
7358
7359 }
7360
7361 namespace test_uniform_initialization
7362 {
7363
7364 struct test
7365 {
7366 static const int zero {};
7367 static const int one {1};
7368 };
7369
7370 static_assert(test::zero == 0, "");
7371 static_assert(test::one == 1, "");
7372
7373 }
7374
7375 namespace test_lambdas
7376 {
7377
7378 void
7379 test1()
7380 {
7381 auto lambda1 = [](){};
7382 auto lambda2 = lambda1;
7383 lambda1();
7384 lambda2();
7385 }
7386
7387 int
7388 test2()
7389 {
7390 auto a = [](int i, int j){ return i + j; }(1, 2);
7391 auto b = []() -> int { return '0'; }();
7392 auto c = [=](){ return a + b; }();
7393 auto d = [&](){ return c; }();
7394 auto e = [a, &b](int x) mutable {
7395 const auto identity = [](int y){ return y; };
7396 for (auto i = 0; i < a; ++i)
7397 a += b--;
7398 return x + identity(a + b);
7399 }(0);
7400 return a + b + c + d + e;
7401 }
7402
7403 int
7404 test3()
7405 {
7406 const auto nullary = [](){ return 0; };
7407 const auto unary = [](int x){ return x; };
7408 using nullary_t = decltype(nullary);
7409 using unary_t = decltype(unary);
7410 const auto higher1st = [](nullary_t f){ return f(); };
7411 const auto higher2nd = [unary](nullary_t f1){
7412 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7413 };
7414 return higher1st(nullary) + higher2nd(nullary)(unary);
7415 }
7416
7417 }
7418
7419 namespace test_variadic_templates
7420 {
7421
7422 template <int...>
7423 struct sum;
7424
7425 template <int N0, int... N1toN>
7426 struct sum<N0, N1toN...>
7427 {
7428 static constexpr auto value = N0 + sum<N1toN...>::value;
7429 };
7430
7431 template <>
7432 struct sum<>
7433 {
7434 static constexpr auto value = 0;
7435 };
7436
7437 static_assert(sum<>::value == 0, "");
7438 static_assert(sum<1>::value == 1, "");
7439 static_assert(sum<23>::value == 23, "");
7440 static_assert(sum<1, 2>::value == 3, "");
7441 static_assert(sum<5, 5, 11>::value == 21, "");
7442 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7443
7444 }
7445
7446 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7447 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7448 // because of this.
7449 namespace test_template_alias_sfinae
7450 {
7451
7452 struct foo {};
7453
7454 template<typename T>
7455 using member = typename T::member_type;
7456
7457 template<typename T>
7458 void func(...) {}
7459
7460 template<typename T>
7461 void func(member<T>*) {}
7462
7463 void test();
7464
7465 void test() { func<foo>(0); }
7466
7467 }
7468
7469 } // namespace cxx11
7470
7471 #endif // __cplusplus >= 201103L
7472
7473
7474
7475 _ACEOF
7476 if ac_fn_cxx_try_compile "$LINENO"; then :
7477 eval $cachevar=yes
7478 else
7479 eval $cachevar=no
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482 CXX="$ac_save_CXX"
7483 fi
7484 eval ac_res=\$$cachevar
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7486 $as_echo "$ac_res" >&6; }
7487 if eval test x\$$cachevar = xyes; then
7488 CXX="$CXX $switch"
7489 if test -n "$CXXCPP" ; then
7490 CXXCPP="$CXXCPP $switch"
7491 fi
7492 ac_success=yes
7493 break
7494 fi
7495 done
7496 if test x$ac_success = xyes; then
7497 break
7498 fi
7499 done
7500 fi
7501 CXX_FOR_BUILD="$CXX"
7502 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7503 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7504 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7505 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7506 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7507 ac_ext=c
7508 ac_cpp='$CPP $CPPFLAGS'
7509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7512
7513 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7514 if test x$ac_success = xno; then
7515 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7516 fi
7517 fi
7518 if test x$ac_success = xno; then
7519 HAVE_CXX11_FOR_BUILD=0
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7521 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7522 else
7523 HAVE_CXX11_FOR_BUILD=1
7524
7525 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7526
7527 fi
7528
7529
7530 fi
7531 fi
7532
7533 # Used for setting $lt_cv_objdir
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7535 $as_echo_n "checking for objdir... " >&6; }
7536 if ${lt_cv_objdir+:} false; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539 rm -f .libs 2>/dev/null
7540 mkdir .libs 2>/dev/null
7541 if test -d .libs; then
7542 lt_cv_objdir=.libs
7543 else
7544 # MS-DOS does not allow filenames that begin with a dot.
7545 lt_cv_objdir=_libs
7546 fi
7547 rmdir .libs 2>/dev/null
7548 fi
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7550 $as_echo "$lt_cv_objdir" >&6; }
7551 objdir=$lt_cv_objdir
7552
7553
7554
7555
7556
7557 cat >>confdefs.h <<_ACEOF
7558 #define LT_OBJDIR "$lt_cv_objdir/"
7559 _ACEOF
7560
7561
7562
7563 # Check for GMP, MPFR and MPC
7564 gmplibs="-lmpc -lmpfr -lgmp"
7565 gmpinc=
7566 have_gmp=no
7567
7568 # Specify a location for mpc
7569 # check for this first so it ends up on the link line before mpfr.
7570
7571 # Check whether --with-mpc was given.
7572 if test "${with_mpc+set}" = set; then :
7573 withval=$with_mpc;
7574 fi
7575
7576
7577 # Check whether --with-mpc-include was given.
7578 if test "${with_mpc_include+set}" = set; then :
7579 withval=$with_mpc_include;
7580 fi
7581
7582
7583 # Check whether --with-mpc-lib was given.
7584 if test "${with_mpc_lib+set}" = set; then :
7585 withval=$with_mpc_lib;
7586 fi
7587
7588
7589 if test "x$with_mpc" != x; then
7590 gmplibs="-L$with_mpc/lib $gmplibs"
7591 gmpinc="-I$with_mpc/include $gmpinc"
7592 fi
7593 if test "x$with_mpc_include" != x; then
7594 gmpinc="-I$with_mpc_include $gmpinc"
7595 fi
7596 if test "x$with_mpc_lib" != x; then
7597 gmplibs="-L$with_mpc_lib $gmplibs"
7598 fi
7599 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7600 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7601 gmpinc='-I$$s/mpc/src '"$gmpinc"
7602 # Do not test the mpc version. Assume that it is sufficient, since
7603 # it is in the source tree, and the library has not been built yet
7604 # but it would be included on the link line in the version check below
7605 # hence making the test fail.
7606 have_gmp=yes
7607 fi
7608
7609 # Specify a location for mpfr
7610 # check for this first so it ends up on the link line before gmp.
7611
7612 # Check whether --with-mpfr-dir was given.
7613 if test "${with_mpfr_dir+set}" = set; then :
7614 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7615 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7616 fi
7617
7618
7619
7620 # Check whether --with-mpfr was given.
7621 if test "${with_mpfr+set}" = set; then :
7622 withval=$with_mpfr;
7623 fi
7624
7625
7626 # Check whether --with-mpfr-include was given.
7627 if test "${with_mpfr_include+set}" = set; then :
7628 withval=$with_mpfr_include;
7629 fi
7630
7631
7632 # Check whether --with-mpfr-lib was given.
7633 if test "${with_mpfr_lib+set}" = set; then :
7634 withval=$with_mpfr_lib;
7635 fi
7636
7637
7638 if test "x$with_mpfr" != x; then
7639 gmplibs="-L$with_mpfr/lib $gmplibs"
7640 gmpinc="-I$with_mpfr/include $gmpinc"
7641 fi
7642 if test "x$with_mpfr_include" != x; then
7643 gmpinc="-I$with_mpfr_include $gmpinc"
7644 fi
7645 if test "x$with_mpfr_lib" != x; then
7646 gmplibs="-L$with_mpfr_lib $gmplibs"
7647 fi
7648 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7649 # MPFR v3.1.0 moved the sources into a src sub-directory.
7650 if ! test -d ${srcdir}/mpfr/src; then
7651 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7652 fi
7653 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7654 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7655 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7656 # Do not test the mpfr version. Assume that it is sufficient, since
7657 # it is in the source tree, and the library has not been built yet
7658 # but it would be included on the link line in the version check below
7659 # hence making the test fail.
7660 have_gmp=yes
7661 fi
7662
7663 # Specify a location for gmp
7664
7665 # Check whether --with-gmp-dir was given.
7666 if test "${with_gmp_dir+set}" = set; then :
7667 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7668 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7669 fi
7670
7671
7672
7673 # Check whether --with-gmp was given.
7674 if test "${with_gmp+set}" = set; then :
7675 withval=$with_gmp;
7676 fi
7677
7678
7679 # Check whether --with-gmp-include was given.
7680 if test "${with_gmp_include+set}" = set; then :
7681 withval=$with_gmp_include;
7682 fi
7683
7684
7685 # Check whether --with-gmp-lib was given.
7686 if test "${with_gmp_lib+set}" = set; then :
7687 withval=$with_gmp_lib;
7688 fi
7689
7690
7691
7692 if test "x$with_gmp" != x; then
7693 gmplibs="-L$with_gmp/lib $gmplibs"
7694 gmpinc="-I$with_gmp/include $gmpinc"
7695 fi
7696 if test "x$with_gmp_include" != x; then
7697 gmpinc="-I$with_gmp_include $gmpinc"
7698 fi
7699 if test "x$with_gmp_lib" != x; then
7700 gmplibs="-L$with_gmp_lib $gmplibs"
7701 fi
7702 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7703 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7704 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7705 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7706 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7707 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7708 # Do not test the gmp version. Assume that it is sufficient, since
7709 # it is in the source tree, and the library has not been built yet
7710 # but it would be included on the link line in the version check below
7711 # hence making the test fail.
7712 have_gmp=yes
7713 fi
7714
7715 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7716 have_gmp=yes
7717 saved_CFLAGS="$CFLAGS"
7718 CFLAGS="$CFLAGS $gmpinc"
7719 # Check for the recommended and required versions of GMP.
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7721 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
7722
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7725 #include "gmp.h"
7726 int
7727 main ()
7728 {
7729
7730 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7731 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7732 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
7733 choke me
7734 #endif
7735
7736 ;
7737 return 0;
7738 }
7739 _ACEOF
7740 if ac_fn_c_try_compile "$LINENO"; then :
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743 #include <gmp.h>
7744 int
7745 main ()
7746 {
7747
7748 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7749 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7750 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
7751 choke me
7752 #endif
7753
7754 ;
7755 return 0;
7756 }
7757 _ACEOF
7758 if ac_fn_c_try_compile "$LINENO"; then :
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7760 $as_echo "yes" >&6; }
7761 else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7763 $as_echo "buggy but acceptable" >&6; }
7764 fi
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }; have_gmp=no
7769 fi
7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771
7772 # If we have GMP, check the MPFR version.
7773 if test x"$have_gmp" = xyes; then
7774 # Check for the recommended and required versions of MPFR.
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7776 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779 #include <gmp.h>
7780 #include <mpfr.h>
7781 int
7782 main ()
7783 {
7784
7785 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
7786 choke me
7787 #endif
7788
7789 ;
7790 return 0;
7791 }
7792 _ACEOF
7793 if ac_fn_c_try_compile "$LINENO"; then :
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 #include <gmp.h>
7797 #include <mpfr.h>
7798 int
7799 main ()
7800 {
7801
7802 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
7803 choke me
7804 #endif
7805
7806 ;
7807 return 0;
7808 }
7809 _ACEOF
7810 if ac_fn_c_try_compile "$LINENO"; then :
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7812 $as_echo "yes" >&6; }
7813 else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7815 $as_echo "buggy but acceptable" >&6; }
7816 fi
7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 else
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }; have_gmp=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 fi
7824
7825 # Check for the MPC header version.
7826 if test x"$have_gmp" = xyes ; then
7827 # Check for the recommended and required versions of MPC.
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
7829 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7832 #include <mpc.h>
7833 int
7834 main ()
7835 {
7836
7837 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
7838 choke me
7839 #endif
7840
7841 ;
7842 return 0;
7843 }
7844 _ACEOF
7845 if ac_fn_c_try_compile "$LINENO"; then :
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 #include <mpc.h>
7849 int
7850 main ()
7851 {
7852
7853 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
7854 choke me
7855 #endif
7856
7857 ;
7858 return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_compile "$LINENO"; then :
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7863 $as_echo "yes" >&6; }
7864 else
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7866 $as_echo "buggy but acceptable" >&6; }
7867 fi
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }; have_gmp=no
7872 fi
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874 fi
7875
7876 # Now check the MPFR library.
7877 if test x"$have_gmp" = xyes; then
7878 saved_LIBS="$LIBS"
7879 LIBS="$LIBS $gmplibs"
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
7881 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884 #include <mpc.h>
7885 int
7886 main ()
7887 {
7888
7889 mpfr_t n;
7890 mpfr_t x;
7891 mpc_t c;
7892 int t;
7893 mpfr_init (n);
7894 mpfr_init (x);
7895 mpfr_atan2 (n, n, x, MPFR_RNDN);
7896 mpfr_erfc (n, x, MPFR_RNDN);
7897 mpfr_subnormalize (x, t, MPFR_RNDN);
7898 mpfr_clear(n);
7899 mpfr_clear(x);
7900 mpc_init2 (c, 53);
7901 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
7902 mpc_cosh (c, c, MPC_RNDNN);
7903 mpc_pow (c, c, c, MPC_RNDNN);
7904 mpc_acosh (c, c, MPC_RNDNN);
7905 mpc_clear (c);
7906
7907 ;
7908 return 0;
7909 }
7910 _ACEOF
7911 if ac_fn_c_try_link "$LINENO"; then :
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7913 $as_echo "yes" >&6; }
7914 else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }; have_gmp=no
7917 fi
7918 rm -f core conftest.err conftest.$ac_objext \
7919 conftest$ac_exeext conftest.$ac_ext
7920 LIBS="$saved_LIBS"
7921 fi
7922
7923 CFLAGS="$saved_CFLAGS"
7924
7925 # The library versions listed in the error message below should match
7926 # the HARD-minimums enforced above.
7927 if test x$have_gmp != xyes; then
7928 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
7929 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
7930 their locations. Source code for these libraries can be found at
7931 their respective hosting sites as well as at
7932 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
7933 http://gcc.gnu.org/install/prerequisites.html for additional info. If
7934 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
7935 make sure that you have installed both the libraries and the header
7936 files. They may be located in separate packages." "$LINENO" 5
7937 fi
7938 fi
7939
7940 # Flags needed for both GMP, MPFR and/or MPC.
7941
7942
7943
7944
7945
7946
7947
7948 # Libraries to use for stage1 or when not bootstrapping.
7949
7950 # Check whether --with-stage1-libs was given.
7951 if test "${with_stage1_libs+set}" = set; then :
7952 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
7953 stage1_libs=
7954 else
7955 stage1_libs=$withval
7956 fi
7957 else
7958 stage1_libs=
7959 fi
7960
7961
7962
7963 # Whether or not to use -static-libstdc++ and -static-libgcc. The
7964 # default is yes if gcc is being built; no otherwise. The reason for
7965 # this default is that gdb is sometimes linked against GNU Source
7966 # Highlight, which is a shared library that uses C++ exceptions. In
7967 # this case, -static-libstdc++ will cause crashes.
7968
7969 # Check whether --with-static-standard-libraries was given.
7970 if test "${with_static_standard_libraries+set}" = set; then :
7971 withval=$with_static_standard_libraries;
7972 else
7973 with_static_standard_libraries=auto
7974 fi
7975
7976 if test "$with_static_standard_libraries" = auto; then
7977 with_static_standard_libraries=$have_compiler
7978 fi
7979
7980 # Linker flags to use for stage1 or when not bootstrapping.
7981
7982 # Check whether --with-stage1-ldflags was given.
7983 if test "${with_stage1_ldflags+set}" = set; then :
7984 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7985 stage1_ldflags=
7986 else
7987 stage1_ldflags=$withval
7988 fi
7989 else
7990 stage1_ldflags=
7991 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
7992 # if supported. But if the user explicitly specified the libraries to use,
7993 # trust that they are doing what they want.
7994 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
7995 -a "$have_static_libs" = yes; then
7996 stage1_ldflags="-static-libstdc++ -static-libgcc"
7997 fi
7998 fi
7999
8000
8001
8002 # Libraries to use for stage2 and later builds.
8003
8004 # Check whether --with-boot-libs was given.
8005 if test "${with_boot_libs+set}" = set; then :
8006 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8007 poststage1_libs=
8008 else
8009 poststage1_libs=$withval
8010 fi
8011 else
8012 poststage1_libs=
8013 fi
8014
8015
8016
8017 # Linker flags to use for stage2 and later builds.
8018
8019 # Check whether --with-boot-ldflags was given.
8020 if test "${with_boot_ldflags+set}" = set; then :
8021 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8022 poststage1_ldflags=
8023 else
8024 poststage1_ldflags=$withval
8025 fi
8026 else
8027 poststage1_ldflags=
8028 # In stages 2 and 3, default to linking libstdc++ and libgcc
8029 # statically. But if the user explicitly specified the libraries to
8030 # use, trust that they are doing what they want.
8031 if test "$poststage1_libs" = ""; then
8032 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8033 fi
8034 fi
8035
8036
8037
8038 # GCC GRAPHITE dependency isl.
8039 # Basic setup is inlined here, actual checks are in config/isl.m4
8040
8041
8042 # Check whether --with-isl was given.
8043 if test "${with_isl+set}" = set; then :
8044 withval=$with_isl;
8045 fi
8046
8047
8048 # Treat --without-isl as a request to disable
8049 # GRAPHITE support and skip all following checks.
8050 if test "x$with_isl" != "xno"; then
8051 # Check for isl
8052
8053
8054 # Check whether --with-isl-include was given.
8055 if test "${with_isl_include+set}" = set; then :
8056 withval=$with_isl_include;
8057 fi
8058
8059
8060 # Check whether --with-isl-lib was given.
8061 if test "${with_isl_lib+set}" = set; then :
8062 withval=$with_isl_lib;
8063 fi
8064
8065
8066 # Check whether --enable-isl-version-check was given.
8067 if test "${enable_isl_version_check+set}" = set; then :
8068 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8069 else
8070 ENABLE_ISL_CHECK=yes
8071 fi
8072
8073
8074 # Initialize isllibs and islinc.
8075 case $with_isl in
8076 no)
8077 isllibs=
8078 islinc=
8079 ;;
8080 "" | yes)
8081 ;;
8082 *)
8083 isllibs="-L$with_isl/lib"
8084 islinc="-I$with_isl/include"
8085 ;;
8086 esac
8087 if test "x${with_isl_include}" != x ; then
8088 islinc="-I$with_isl_include"
8089 fi
8090 if test "x${with_isl_lib}" != x; then
8091 isllibs="-L$with_isl_lib"
8092 fi
8093 if test "x${islinc}" = x && test "x${isllibs}" = x \
8094 && test -d ${srcdir}/isl; then
8095 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8096 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8097 ENABLE_ISL_CHECK=no
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8099 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8100 fi
8101
8102 isllibs="${isllibs} -lisl"
8103
8104
8105
8106 if test "${ENABLE_ISL_CHECK}" = yes ; then
8107 _isl_saved_CFLAGS=$CFLAGS
8108 _isl_saved_LDFLAGS=$LDFLAGS
8109 _isl_saved_LIBS=$LIBS
8110
8111 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8112 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8113 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8114
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8116 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8119 #include <isl/schedule.h>
8120 int
8121 main ()
8122 {
8123 isl_options_set_schedule_serialize_sccs (NULL, 0);
8124 ;
8125 return 0;
8126 }
8127 _ACEOF
8128 if ac_fn_c_try_link "$LINENO"; then :
8129 gcc_cv_isl=yes
8130 else
8131 gcc_cv_isl=no
8132 fi
8133 rm -f core conftest.err conftest.$ac_objext \
8134 conftest$ac_exeext conftest.$ac_ext
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8136 $as_echo "$gcc_cv_isl" >&6; }
8137
8138 if test "${gcc_cv_isl}" = no ; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8140 $as_echo "required isl version is 0.15 or later" >&6; }
8141 fi
8142
8143 CFLAGS=$_isl_saved_CFLAGS
8144 LDFLAGS=$_isl_saved_LDFLAGS
8145 LIBS=$_isl_saved_LIBS
8146 fi
8147
8148
8149
8150
8151
8152
8153 if test "x${with_isl}" = xno; then
8154 graphite_requested=no
8155 elif test "x${with_isl}" != x \
8156 || test "x${with_isl_include}" != x \
8157 || test "x${with_isl_lib}" != x ; then
8158 graphite_requested=yes
8159 else
8160 graphite_requested=no
8161 fi
8162
8163
8164
8165 if test "${gcc_cv_isl}" = no ; then
8166 isllibs=
8167 islinc=
8168 fi
8169
8170 if test "${graphite_requested}" = yes \
8171 && test "x${isllibs}" = x \
8172 && test "x${islinc}" = x ; then
8173
8174 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8175 fi
8176
8177
8178 fi
8179
8180 # If the isl check failed, disable builds of in-tree variant of isl
8181 if test "x$with_isl" = xno ||
8182 test "x$gcc_cv_isl" = xno; then
8183 noconfigdirs="$noconfigdirs isl"
8184 islinc=
8185 fi
8186
8187
8188
8189
8190 # Check for LTO support.
8191 # Check whether --enable-lto was given.
8192 if test "${enable_lto+set}" = set; then :
8193 enableval=$enable_lto; enable_lto=$enableval
8194 else
8195 enable_lto=yes; default_enable_lto=yes
8196 fi
8197
8198
8199
8200
8201
8202 target_elf=no
8203 case $target in
8204 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8205 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8206 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8207 nvptx-*-none)
8208 target_elf=no
8209 ;;
8210 *)
8211 target_elf=yes
8212 ;;
8213 esac
8214
8215 if test $target_elf = yes; then :
8216 # ELF platforms build the lto-plugin always.
8217 build_lto_plugin=yes
8218
8219 else
8220 if test x"$default_enable_lto" = x"yes" ; then
8221 case $target in
8222 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8223 # On other non-ELF platforms, LTO has yet to be validated.
8224 *) enable_lto=no ;;
8225 esac
8226 else
8227 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8228 # It would also be nice to check the binutils support, but we don't
8229 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8230 # warn during gcc/ subconfigure; unless you're bootstrapping with
8231 # -flto it won't be needed until after installation anyway.
8232 case $target in
8233 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8234 *) if test x"$enable_lto" = x"yes"; then
8235 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8236 fi
8237 ;;
8238 esac
8239 fi
8240 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8241 # Build it unless LTO was explicitly disabled.
8242 case $target in
8243 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8244 *) ;;
8245 esac
8246
8247 fi
8248
8249
8250 # Check whether --enable-linker-plugin-configure-flags was given.
8251 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8252 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8253 else
8254 extra_linker_plugin_configure_flags=
8255 fi
8256
8257
8258 # Check whether --enable-linker-plugin-flags was given.
8259 if test "${enable_linker_plugin_flags+set}" = set; then :
8260 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8261 else
8262 extra_linker_plugin_flags=
8263 fi
8264
8265
8266
8267 # Enable --enable-host-shared.
8268 # Checked early to determine whether jit is an 'all' language
8269 # Check whether --enable-host-shared was given.
8270 if test "${enable_host_shared+set}" = set; then :
8271 enableval=$enable_host_shared; host_shared=$enableval
8272 else
8273 host_shared=no
8274 fi
8275
8276
8277
8278 # By default, C and C++ are the only stage 1 languages.
8279 stage1_languages=,c,
8280
8281 # Target libraries that we bootstrap.
8282 bootstrap_target_libs=,target-libgcc,
8283
8284 # Figure out what language subdirectories are present.
8285 # Look if the user specified --enable-languages="..."; if not, use
8286 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8287 # go away some day.
8288 # NB: embedded tabs in this IF block -- do not untabify
8289 if test -d ${srcdir}/gcc; then
8290 if test x"${enable_languages+set}" != xset; then
8291 if test x"${LANGUAGES+set}" = xset; then
8292 enable_languages="${LANGUAGES}"
8293 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8294 else
8295 enable_languages=default
8296 fi
8297 else
8298 if test x"${enable_languages}" = x ||
8299 test x"${enable_languages}" = xyes;
8300 then
8301 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8302 exit 1
8303 fi
8304 fi
8305 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8306
8307 # 'f95' is the old name for the 'fortran' language. We issue a warning
8308 # and make the substitution.
8309 case ,${enable_languages}, in
8310 *,f95,*)
8311 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8312 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8313 ;;
8314 esac
8315
8316 # If bootstrapping, C++ must be enabled.
8317 case ",$enable_languages,:$enable_bootstrap" in
8318 *,c++,*:*) ;;
8319 *:yes)
8320 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8321 enable_languages="${enable_languages},c++"
8322 else
8323 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8324 fi
8325 ;;
8326 esac
8327
8328 # First scan to see if an enabled language requires some other language.
8329 # We assume that a given config-lang.in will list all the language
8330 # front ends it requires, even if some are required indirectly.
8331 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8332 case ${lang_frag} in
8333 ..) ;;
8334 # The odd quoting in the next line works around
8335 # an apparent bug in bash 1.12 on linux.
8336 ${srcdir}/gcc/[*]/config-lang.in) ;;
8337 *)
8338 # From the config-lang.in, get $language, $lang_requires, and
8339 # $lang_requires_boot_languages.
8340 language=
8341 lang_requires=
8342 lang_requires_boot_languages=
8343 # set srcdir during sourcing lang_frag to the gcc dir.
8344 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8345 # polutes this shell
8346 saved_srcdir=${srcdir}
8347 srcdir=${srcdir}/gcc . ${lang_frag}
8348 srcdir=${saved_srcdir}
8349 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8350 case ,${enable_languages}, in
8351 *,$other,*) ;;
8352 *,default,*) ;;
8353 *,all,*) ;;
8354 *,$language,*)
8355 echo " \`$other' language required by \`$language'; enabling" 1>&2
8356 enable_languages="${enable_languages},${other}"
8357 ;;
8358 esac
8359 done
8360 for other in ${lang_requires_boot_languages} ; do
8361 if test "$other" != "c"; then
8362 case ,${enable_stage1_languages}, in
8363 *,$other,*) ;;
8364 *,default,*) ;;
8365 *,all,*) ;;
8366 *)
8367 case ,${enable_languages}, in
8368 *,$language,*)
8369 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8370 enable_stage1_languages="$enable_stage1_languages,${other}"
8371 ;;
8372 esac
8373 ;;
8374 esac
8375 fi
8376 done
8377 ;;
8378 esac
8379 done
8380
8381 new_enable_languages=,c,
8382
8383 # If LTO is enabled, add the LTO front end.
8384 if test "$enable_lto" = "yes" ; then
8385 case ,${enable_languages}, in
8386 *,lto,*) ;;
8387 *) enable_languages="${enable_languages},lto" ;;
8388 esac
8389 if test "${build_lto_plugin}" = "yes" ; then
8390 configdirs="$configdirs lto-plugin"
8391 fi
8392 fi
8393
8394 # If we're building an offloading compiler, add the LTO front end.
8395 if test x"$enable_as_accelerator_for" != x ; then
8396 case ,${enable_languages}, in
8397 *,lto,*) ;;
8398 *) enable_languages="${enable_languages},lto" ;;
8399 esac
8400 fi
8401
8402 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8403 potential_languages=,c,
8404
8405 enabled_target_libs=
8406 disabled_target_libs=
8407
8408 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8409 case ${lang_frag} in
8410 ..) ;;
8411 # The odd quoting in the next line works around
8412 # an apparent bug in bash 1.12 on linux.
8413 ${srcdir}/gcc/[*]/config-lang.in) ;;
8414 *)
8415 # From the config-lang.in, get $language, $target_libs,
8416 # $lang_dirs, $boot_language, and $build_by_default
8417 language=
8418 target_libs=
8419 lang_dirs=
8420 subdir_requires=
8421 boot_language=no
8422 build_by_default=yes
8423 # set srcdir during sourcing. See above about save & restore
8424 saved_srcdir=${srcdir}
8425 srcdir=${srcdir}/gcc . ${lang_frag}
8426 srcdir=${saved_srcdir}
8427 if test x${language} = x; then
8428 echo "${lang_frag} doesn't set \$language." 1>&2
8429 exit 1
8430 fi
8431
8432 if test "$language" = "c++"; then
8433 boot_language=yes
8434 fi
8435
8436 add_this_lang=no
8437 # C is always enabled, so no need to add it again
8438 if test "$language" != "c"; then
8439 case ,${enable_languages}, in
8440 *,${language},*)
8441 # Language was explicitly selected; include it
8442 add_this_lang=yes
8443 ;;
8444 *,all,*)
8445 # All languages are enabled
8446 add_this_lang=all
8447 ;;
8448 *,default,*)
8449 # 'default' was selected, select it if it is a default language
8450 add_this_lang=${build_by_default}
8451 ;;
8452 esac
8453 fi
8454
8455 # Disable languages that need other directories if these aren't available.
8456 for i in $subdir_requires; do
8457 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8458 case ${add_this_lang} in
8459 yes)
8460 # Specifically requested language; tell them.
8461 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8462 ;;
8463 all)
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8465 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8466 add_this_lang=unsupported
8467 ;;
8468 *)
8469 # Silently disable.
8470 add_this_lang=unsupported
8471 ;;
8472 esac
8473 done
8474
8475 # Disable Ada if no preexisting GNAT is available.
8476 case ${add_this_lang}:${language}:${have_gnat} in
8477 yes:ada:no)
8478 # Specifically requested language; tell them.
8479 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8480 ;;
8481 all:ada:no)
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8483 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8484 add_this_lang=unsupported
8485 ;;
8486 *:ada:no)
8487 # Silently disable.
8488 add_this_lang=unsupported
8489 ;;
8490 esac
8491
8492 # Disable jit if -enable-host-shared not specified
8493 # but not if building for Mingw. All code in Windows
8494 # is position independent code (PIC).
8495 case $target in
8496 *mingw*) ;;
8497 *)
8498 case ${add_this_lang}:${language}:${host_shared} in
8499 yes:jit:no)
8500 # PR jit/64780: explicitly specify --enable-host-shared
8501 as_fn_error $? "
8502 Enabling language \"jit\" requires --enable-host-shared.
8503
8504 --enable-host-shared typically slows the rest of the compiler down by
8505 a few %, so you must explicitly enable it.
8506
8507 If you want to build both the jit and the regular compiler, it is often
8508 best to do this via two separate configure/builds, in separate
8509 directories, to avoid imposing the performance cost of
8510 --enable-host-shared on the regular compiler." "$LINENO" 5
8511 ;;
8512 all:jit:no)
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8514 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8515 add_this_lang=unsupported
8516 ;;
8517 *:jit:no)
8518 # Silently disable.
8519 add_this_lang=unsupported
8520 ;;
8521 esac
8522 ;;
8523 esac
8524
8525 # Disable a language that is unsupported by the target.
8526 case "${add_this_lang}: $unsupported_languages " in
8527 no:*) ;;
8528 unsupported:*) ;;
8529 *:*" $language "*)
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8531 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8532 add_this_lang=unsupported
8533 ;;
8534 esac
8535
8536 case $add_this_lang in
8537 unsupported)
8538 # Remove language-dependent dirs.
8539 disabled_target_libs="$disabled_target_libs $target_libs"
8540 noconfigdirs="$noconfigdirs $lang_dirs"
8541 ;;
8542 no)
8543 # Remove language-dependent dirs; still show language as supported.
8544 disabled_target_libs="$disabled_target_libs $target_libs"
8545 noconfigdirs="$noconfigdirs $lang_dirs"
8546 potential_languages="${potential_languages}${language},"
8547 ;;
8548 all|yes)
8549 new_enable_languages="${new_enable_languages}${language},"
8550 potential_languages="${potential_languages}${language},"
8551 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8552 enabled_target_libs="$enabled_target_libs $target_libs"
8553 case "${boot_language}:,$enable_stage1_languages," in
8554 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8555 # Add to (comma-separated) list of stage 1 languages.
8556 case ",$stage1_languages," in
8557 *,$language,* | ,yes, | ,all,) ;;
8558 *) stage1_languages="${stage1_languages}${language}," ;;
8559 esac
8560 # We need to bootstrap any supporting libraries.
8561 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
8562 ;;
8563 esac
8564 ;;
8565 esac
8566 ;;
8567 esac
8568 done
8569
8570 # Add target libraries which are only needed for disabled languages
8571 # to noconfigdirs.
8572 if test -n "$disabled_target_libs"; then
8573 for dir in $disabled_target_libs; do
8574 case " $enabled_target_libs " in
8575 *" ${dir} "*) ;;
8576 *) noconfigdirs="$noconfigdirs $dir" ;;
8577 esac
8578 done
8579 fi
8580
8581 # Check whether --enable-stage1-languages was given.
8582 if test "${enable_stage1_languages+set}" = set; then :
8583 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8584 ,no,|,,)
8585 # Set it to something that will have no effect in the loop below
8586 enable_stage1_languages=c ;;
8587 ,yes,)
8588 enable_stage1_languages=`echo $new_enable_languages | \
8589 sed -e "s/^,//" -e "s/,$//" ` ;;
8590 *,all,*)
8591 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8592 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8593 esac
8594
8595 # Add "good" languages from enable_stage1_languages to stage1_languages,
8596 # while "bad" languages go in missing_languages. Leave no duplicates.
8597 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8598 case $potential_languages in
8599 *,$i,*)
8600 case $stage1_languages in
8601 *,$i,*) ;;
8602 *) stage1_languages="$stage1_languages$i," ;;
8603 esac ;;
8604 *)
8605 case $missing_languages in
8606 *,$i,*) ;;
8607 *) missing_languages="$missing_languages$i," ;;
8608 esac ;;
8609 esac
8610 done
8611 fi
8612
8613
8614 # Remove leading/trailing commas that were added for simplicity
8615 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8616 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8617 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8618 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8619
8620 if test "x$missing_languages" != x; then
8621 as_fn_error $? "
8622 The following requested languages could not be built: ${missing_languages}
8623 Supported languages are: ${potential_languages}" "$LINENO" 5
8624 fi
8625 if test "x$new_enable_languages" != "x$enable_languages"; then
8626 echo The following languages will be built: ${new_enable_languages}
8627 enable_languages="$new_enable_languages"
8628 fi
8629
8630
8631 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8632 fi
8633
8634 # Handle --disable-<component> generically.
8635 for dir in $configdirs $build_configdirs $target_configdirs ; do
8636 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8637 varname=`echo $dirname | sed -e s/+/_/g`
8638 if eval test x\${enable_${varname}} "=" xno ; then
8639 noconfigdirs="$noconfigdirs $dir"
8640 fi
8641 done
8642
8643 # Check for Boehm's garbage collector
8644 # Check whether --enable-objc-gc was given.
8645 if test "${enable_objc_gc+set}" = set; then :
8646 enableval=$enable_objc_gc;
8647 fi
8648
8649
8650 # Check whether --with-target-bdw-gc was given.
8651 if test "${with_target_bdw_gc+set}" = set; then :
8652 withval=$with_target_bdw_gc;
8653 fi
8654
8655
8656 # Check whether --with-target-bdw-gc-include was given.
8657 if test "${with_target_bdw_gc_include+set}" = set; then :
8658 withval=$with_target_bdw_gc_include;
8659 fi
8660
8661
8662 # Check whether --with-target-bdw-gc-lib was given.
8663 if test "${with_target_bdw_gc_lib+set}" = set; then :
8664 withval=$with_target_bdw_gc_lib;
8665 fi
8666
8667
8668 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8670 $as_echo_n "checking for bdw garbage collector... " >&6; }
8671 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8673 $as_echo "using bdw-gc in default locations" >&6; }
8674 else
8675 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8676 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8677 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8678 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8679 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8681 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8682 fi
8683 fi
8684 esac
8685
8686 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8687 case ,${enable_languages}, in
8688 *,c++,*)
8689 # Disable libitm, libsanitizer if we're not building libstdc++
8690 case "${noconfigdirs}" in
8691 *target-libstdc++-v3*)
8692 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
8693 ;;
8694 *) ;;
8695 esac
8696 ;;
8697 *)
8698 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
8699 ;;
8700 esac
8701
8702 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8703 # $build_configdirs and $target_configdirs.
8704 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8705
8706 notsupp=""
8707 for dir in . $skipdirs $noconfigdirs ; do
8708 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8709 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8710 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8711 if test -r $srcdir/$dirname/configure ; then
8712 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8713 true
8714 else
8715 notsupp="$notsupp $dir"
8716 fi
8717 fi
8718 fi
8719 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8720 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8721 if test -r $srcdir/$dirname/configure ; then
8722 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8723 true
8724 else
8725 notsupp="$notsupp $dir"
8726 fi
8727 fi
8728 fi
8729 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8730 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8731 if test -r $srcdir/$dirname/configure ; then
8732 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8733 true
8734 else
8735 notsupp="$notsupp $dir"
8736 fi
8737 fi
8738 fi
8739 done
8740
8741 # Quietly strip out all directories which aren't configurable in this tree.
8742 # This relies on all configurable subdirectories being autoconfiscated, which
8743 # is now the case.
8744 build_configdirs_all="$build_configdirs"
8745 build_configdirs=
8746 for i in ${build_configdirs_all} ; do
8747 j=`echo $i | sed -e s/build-//g`
8748 if test -f ${srcdir}/$j/configure ; then
8749 build_configdirs="${build_configdirs} $i"
8750 fi
8751 done
8752
8753 configdirs_all="$configdirs"
8754 configdirs=
8755 for i in ${configdirs_all} ; do
8756 if test -f ${srcdir}/$i/configure ; then
8757 configdirs="${configdirs} $i"
8758 fi
8759 done
8760
8761 target_configdirs_all="$target_configdirs"
8762 target_configdirs=
8763 for i in ${target_configdirs_all} ; do
8764 j=`echo $i | sed -e s/target-//g`
8765 if test -f ${srcdir}/$j/configure ; then
8766 target_configdirs="${target_configdirs} $i"
8767 fi
8768 done
8769
8770 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8771 # so we have to add it after the preceding checks.
8772 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8773 then
8774 case " $configdirs " in
8775 *" libiberty "*)
8776 # If we can build libiberty, we can also build libiberty-linker-plugin.
8777 configdirs="$configdirs libiberty-linker-plugin"
8778 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8779 --with-libiberty=../libiberty-linker-plugin";;
8780 *)
8781 as_fn_error $? "libiberty missing" "$LINENO" 5;;
8782 esac
8783 fi
8784
8785 # Sometimes we have special requirements for the host libiberty.
8786 extra_host_libiberty_configure_flags=
8787 extra_host_zlib_configure_flags=
8788 case " $configdirs " in
8789 *" lto-plugin "* | *" libcc1 "*)
8790 # When these are to be built as shared libraries, the same applies to
8791 # libiberty.
8792 extra_host_libiberty_configure_flags=--enable-shared
8793 ;;
8794 *" bfd "*)
8795 # When bfd is to be built as a shared library, the same applies to
8796 # zlib.
8797 if test "$enable_shared" = "yes"; then
8798 extra_host_zlib_configure_flags=--enable-host-shared
8799 fi
8800 ;;
8801 esac
8802
8803
8804
8805 # Produce a warning message for the subdirs we can't configure.
8806 # This isn't especially interesting in the Cygnus tree, but in the individual
8807 # FSF releases, it's important to let people know when their machine isn't
8808 # supported by the one or two programs in a package.
8809
8810 if test -n "${notsupp}" && test -z "${norecursion}" ; then
8811 # If $appdirs is non-empty, at least one of those directories must still
8812 # be configured, or we error out. (E.g., if the gas release supports a
8813 # specified target in some subdirs but not the gas subdir, we shouldn't
8814 # pretend that all is well.)
8815 if test -n "$appdirs" ; then
8816 for dir in $appdirs ; do
8817 if test -r $dir/Makefile.in ; then
8818 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8819 appdirs=""
8820 break
8821 fi
8822 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8823 appdirs=""
8824 break
8825 fi
8826 fi
8827 done
8828 if test -n "$appdirs" ; then
8829 echo "*** This configuration is not supported by this package." 1>&2
8830 exit 1
8831 fi
8832 fi
8833 # Okay, some application will build, or we don't care to check. Still
8834 # notify of subdirs not getting built.
8835 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
8836 echo " ${notsupp}" 1>&2
8837 echo " (Any other directories should still work fine.)" 1>&2
8838 fi
8839
8840 case "$host" in
8841 *msdosdjgpp*)
8842 enable_gdbtk=no ;;
8843 esac
8844
8845 # To find our prefix, in gcc_cv_tool_prefix.
8846
8847 # The user is always right.
8848 if test "${PATH_SEPARATOR+set}" != set; then
8849 echo "#! /bin/sh" >conf$$.sh
8850 echo "exit 0" >>conf$$.sh
8851 chmod +x conf$$.sh
8852 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8853 PATH_SEPARATOR=';'
8854 else
8855 PATH_SEPARATOR=:
8856 fi
8857 rm -f conf$$.sh
8858 fi
8859
8860
8861 get_gcc_base_ver="cat"
8862
8863 # Check whether --with-gcc-major-version-only was given.
8864 if test "${with_gcc_major_version_only+set}" = set; then :
8865 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
8866 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
8867 fi
8868
8869 fi
8870
8871
8872
8873
8874
8875
8876 if test "x$exec_prefix" = xNONE; then
8877 if test "x$prefix" = xNONE; then
8878 gcc_cv_tool_prefix=$ac_default_prefix
8879 else
8880 gcc_cv_tool_prefix=$prefix
8881 fi
8882 else
8883 gcc_cv_tool_prefix=$exec_prefix
8884 fi
8885
8886 # If there is no compiler in the tree, use the PATH only. In any
8887 # case, if there is no compiler in the tree nobody should use
8888 # AS_FOR_TARGET and LD_FOR_TARGET.
8889 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
8890 if test x$with_gcc_major_version_only = xyes ; then
8891 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
8892 else
8893 gcc_version=`cat $srcdir/gcc/BASE-VER`
8894 fi
8895 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8896 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
8897 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8898 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
8899 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8900 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
8901 else
8902 gcc_cv_tool_dirs=
8903 fi
8904
8905 if test x$build = x$target && test -n "$md_exec_prefix"; then
8906 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
8907 fi
8908
8909
8910
8911 copy_dirs=
8912
8913
8914 # Check whether --with-build-sysroot was given.
8915 if test "${with_build_sysroot+set}" = set; then :
8916 withval=$with_build_sysroot; if test x"$withval" != x ; then
8917 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
8918 fi
8919 else
8920 SYSROOT_CFLAGS_FOR_TARGET=
8921 fi
8922
8923
8924
8925
8926 # Check whether --with-debug-prefix-map was given.
8927 if test "${with_debug_prefix_map+set}" = set; then :
8928 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8929 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
8930 for debug_map in $withval; do
8931 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
8932 done
8933 fi
8934 else
8935 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
8936 fi
8937
8938
8939
8940 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
8941 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
8942 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
8943 # We want to ensure that TARGET libraries (which we know are built with
8944 # gcc) are built with "-O2 -g", so include those options when setting
8945 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
8946 if test "x$CFLAGS_FOR_TARGET" = x; then
8947 if test "x${is_cross_compiler}" = xyes; then
8948 CFLAGS_FOR_TARGET="-g -O2"
8949 else
8950 CFLAGS_FOR_TARGET=$CFLAGS
8951 case " $CFLAGS " in
8952 *" -O2 "*) ;;
8953 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
8954 esac
8955 case " $CFLAGS " in
8956 *" -g "* | *" -g3 "*) ;;
8957 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
8958 esac
8959 fi
8960 fi
8961
8962
8963 if test "x$CXXFLAGS_FOR_TARGET" = x; then
8964 if test "x${is_cross_compiler}" = xyes; then
8965 CXXFLAGS_FOR_TARGET="-g -O2"
8966 else
8967 CXXFLAGS_FOR_TARGET=$CXXFLAGS
8968 case " $CXXFLAGS " in
8969 *" -O2 "*) ;;
8970 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
8971 esac
8972 case " $CXXFLAGS " in
8973 *" -g "* | *" -g3 "*) ;;
8974 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
8975 esac
8976 fi
8977 fi
8978
8979
8980
8981
8982 # Handle --with-headers=XXX. If the value is not "yes", the contents of
8983 # the named directory are copied to $(tooldir)/sys-include.
8984 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
8985 if test x${is_cross_compiler} = xno ; then
8986 echo 1>&2 '***' --with-headers is only supported when cross compiling
8987 exit 1
8988 fi
8989 if test x"${with_headers}" != xyes ; then
8990 x=${gcc_cv_tool_prefix}
8991 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8992 fi
8993 fi
8994
8995 # Handle --with-libs=XXX. If the value is not "yes", the contents of
8996 # the name directories are copied to $(tooldir)/lib. Multiple directories
8997 # are permitted.
8998 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
8999 if test x${is_cross_compiler} = xno ; then
9000 echo 1>&2 '***' --with-libs is only supported when cross compiling
9001 exit 1
9002 fi
9003 if test x"${with_libs}" != xyes ; then
9004 # Copy the libraries in reverse order, so that files in the first named
9005 # library override files in subsequent libraries.
9006 x=${gcc_cv_tool_prefix}
9007 for l in ${with_libs}; do
9008 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9009 done
9010 fi
9011 fi
9012
9013 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9014 #
9015 # This is done by determining whether or not the appropriate directory
9016 # is available, and by checking whether or not specific configurations
9017 # have requested that this magic not happen.
9018 #
9019 # The command line options always override the explicit settings in
9020 # configure.ac, and the settings in configure.ac override this magic.
9021 #
9022 # If the default for a toolchain is to use GNU as and ld, and you don't
9023 # want to do that, then you should use the --without-gnu-as and
9024 # --without-gnu-ld options for the configure script. Similarly, if
9025 # the default is to use the included zlib and you don't want to do that,
9026 # you should use the --with-system-zlib option for the configure script.
9027
9028 if test x${use_gnu_as} = x &&
9029 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9030 with_gnu_as=yes
9031 extra_host_args="$extra_host_args --with-gnu-as"
9032 fi
9033
9034 if test x${use_gnu_ld} = x &&
9035 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9036 with_gnu_ld=yes
9037 extra_host_args="$extra_host_args --with-gnu-ld"
9038 fi
9039
9040 if test x${use_included_zlib} = x &&
9041 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9042 :
9043 else
9044 with_system_zlib=yes
9045 extra_host_args="$extra_host_args --with-system-zlib"
9046 fi
9047
9048 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9049 # can detect this case.
9050
9051 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9052 with_newlib=yes
9053 extra_host_args="$extra_host_args --with-newlib"
9054 fi
9055
9056 # Handle ${copy_dirs}
9057 set fnord ${copy_dirs}
9058 shift
9059 while test $# != 0 ; do
9060 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9061 :
9062 else
9063 echo Copying $1 to $2
9064
9065 # Use the install script to create the directory and all required
9066 # parent directories.
9067 if test -d $2 ; then
9068 :
9069 else
9070 echo >config.temp
9071 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9072 fi
9073
9074 # Copy the directory, assuming we have tar.
9075 # FIXME: Should we use B in the second tar? Not all systems support it.
9076 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9077
9078 # It is the responsibility of the user to correctly adjust all
9079 # symlinks. If somebody can figure out how to handle them correctly
9080 # here, feel free to add the code.
9081
9082 echo $1 > $2/COPIED
9083 fi
9084 shift; shift
9085 done
9086
9087 # Determine a target-dependent exec_prefix that the installed
9088 # gcc will search in. Keep this list sorted by triplet, with
9089 # the *-*-osname triplets last.
9090 md_exec_prefix=
9091 case "${target}" in
9092 i[34567]86-pc-msdosdjgpp*)
9093 md_exec_prefix=/dev/env/DJDIR/bin
9094 ;;
9095 *-*-hpux* | \
9096 *-*-nto-qnx* | \
9097 *-*-solaris2*)
9098 md_exec_prefix=/usr/ccs/bin
9099 ;;
9100 esac
9101
9102 extra_arflags_for_target=
9103 extra_nmflags_for_target=
9104 extra_ranlibflags_for_target=
9105 target_makefile_frag=/dev/null
9106 case "${target}" in
9107 spu-*-*)
9108 target_makefile_frag="config/mt-spu"
9109 ;;
9110 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9111 target_makefile_frag="config/mt-sde"
9112 ;;
9113 mipsisa*-*-elfoabi*)
9114 target_makefile_frag="config/mt-mips-elfoabi"
9115 ;;
9116 mips*-*-*linux* | mips*-*-gnu*)
9117 target_makefile_frag="config/mt-mips-gnu"
9118 ;;
9119 nios2-*-elf*)
9120 target_makefile_frag="config/mt-nios2-elf"
9121 ;;
9122 *-*-linux-android*)
9123 target_makefile_frag="config/mt-android"
9124 ;;
9125 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9126 target_makefile_frag="config/mt-gnu"
9127 ;;
9128 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9129 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9130 # commands to handle both 32-bit and 64-bit objects. These flags are
9131 # harmless if we're using GNU nm or ar.
9132 extra_arflags_for_target=" -X32_64"
9133 extra_nmflags_for_target=" -B -X32_64"
9134 ;;
9135 esac
9136
9137 alphaieee_frag=/dev/null
9138 case $target in
9139 alpha*-*-*)
9140 # This just makes sure to use the -mieee option to build target libs.
9141 # This should probably be set individually by each library.
9142 alphaieee_frag="config/mt-alphaieee"
9143 ;;
9144 esac
9145
9146 # If --enable-target-optspace always use -Os instead of -O2 to build
9147 # the target libraries, similarly if it is not specified, use -Os
9148 # on selected platforms.
9149 ospace_frag=/dev/null
9150 case "${enable_target_optspace}:${target}" in
9151 yes:*)
9152 ospace_frag="config/mt-ospace"
9153 ;;
9154 :d30v-*)
9155 ospace_frag="config/mt-d30v"
9156 ;;
9157 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9158 ospace_frag="config/mt-ospace"
9159 ;;
9160 no:* | :*)
9161 ;;
9162 *)
9163 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9164 ;;
9165 esac
9166
9167 # Some systems (e.g., one of the i386-aix systems the gas testers are
9168 # using) don't handle "\$" correctly, so don't use it here.
9169 tooldir='${exec_prefix}'/${target_noncanonical}
9170 build_tooldir=${tooldir}
9171
9172 # Create a .gdbinit file which runs the one in srcdir
9173 # and tells GDB to look there for source files.
9174
9175 if test -r ${srcdir}/.gdbinit ; then
9176 case ${srcdir} in
9177 .) ;;
9178 *) cat > ./.gdbinit <<EOF
9179 # ${NO_EDIT}
9180 dir ${srcdir}
9181 dir .
9182 source ${srcdir}/.gdbinit
9183 EOF
9184 ;;
9185 esac
9186 fi
9187
9188 # Make sure that the compiler is able to generate an executable. If it
9189 # can't, we are probably in trouble. We don't care whether we can run the
9190 # executable--we might be using a cross compiler--we only care whether it
9191 # can be created. At this point the main configure script has set CC.
9192 we_are_ok=no
9193 echo "int main () { return 0; }" > conftest.c
9194 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9195 if test $? = 0 ; then
9196 if test -s conftest || test -s conftest.exe ; then
9197 we_are_ok=yes
9198 fi
9199 fi
9200 case $we_are_ok in
9201 no)
9202 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9203 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9204 rm -f conftest*
9205 exit 1
9206 ;;
9207 esac
9208 rm -f conftest*
9209
9210 # Decide which environment variable is used to find dynamic libraries.
9211 case "${host}" in
9212 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9213 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9214 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9215 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9216 esac
9217
9218 # On systems where the dynamic library environment variable is PATH,
9219 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9220 # built executables to PATH.
9221 if test "$RPATH_ENVVAR" = PATH; then
9222 GCC_SHLIB_SUBDIR=/shlib
9223 else
9224 GCC_SHLIB_SUBDIR=
9225 fi
9226
9227 # Adjust the toplevel makefile according to whether bootstrap was selected.
9228 case $enable_bootstrap in
9229 yes)
9230 bootstrap_suffix=bootstrap
9231 BUILD_CONFIG=bootstrap-debug
9232 ;;
9233 no)
9234 bootstrap_suffix=no-bootstrap
9235 BUILD_CONFIG=
9236 ;;
9237 esac
9238
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9240 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9241
9242
9243 # Check whether --with-build-config was given.
9244 if test "${with_build_config+set}" = set; then :
9245 withval=$with_build_config; case $with_build_config in
9246 yes) with_build_config= ;;
9247 no) with_build_config= BUILD_CONFIG= ;;
9248 esac
9249 fi
9250
9251
9252 if test "x${with_build_config}" != x; then
9253 BUILD_CONFIG=$with_build_config
9254 else
9255 case $BUILD_CONFIG in
9256 bootstrap-debug)
9257 if echo "int f (void) { return 0; }" > conftest.c &&
9258 ${CC} -c conftest.c &&
9259 mv conftest.o conftest.o.g0 &&
9260 ${CC} -c -g conftest.c &&
9261 mv conftest.o conftest.o.g &&
9262 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9263 :
9264 else
9265 BUILD_CONFIG=
9266 fi
9267 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9268 ;;
9269 esac
9270 fi
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9272 $as_echo "$BUILD_CONFIG" >&6; }
9273
9274
9275 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9277 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9278 # Check whether --enable-vtable-verify was given.
9279 if test "${enable_vtable_verify+set}" = set; then :
9280 enableval=$enable_vtable_verify; case "$enableval" in
9281 yes) enable_vtable_verify=yes ;;
9282 no) enable_vtable_verify=no ;;
9283 *) enable_vtable_verify=no;;
9284 esac
9285 else
9286 enable_vtable_verify=no
9287 fi
9288
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9290 $as_echo "$enable_vtable_verify" >&6; }
9291
9292 # Record target_configdirs and the configure arguments for target and
9293 # build configuration in Makefile.
9294 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9295 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9296 bootstrap_fixincludes=no
9297
9298 # If we are building libgomp, bootstrap it.
9299 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9300 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9301 fi
9302
9303 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9304 # or bootstrap-ubsan, bootstrap it.
9305 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9306 case "$BUILD_CONFIG" in
9307 *bootstrap-asan* | *bootstrap-ubsan* )
9308 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9309 bootstrap_fixincludes=yes
9310 ;;
9311 esac
9312 fi
9313
9314 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9315 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9316 test "$enable_vtable_verify" != no; then
9317 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9318 fi
9319
9320 # Determine whether gdb needs tk/tcl or not.
9321 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9322 # and in that case we want gdb to be built without tk. Ugh!
9323 # In fact I believe gdb is the *only* package directly dependent on tk,
9324 # so we should be able to put the 'maybe's in unconditionally and
9325 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9326 # 100% sure that that's safe though.
9327
9328 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9329 case "$enable_gdbtk" in
9330 no)
9331 GDB_TK="" ;;
9332 yes)
9333 GDB_TK="${gdb_tk}" ;;
9334 *)
9335 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9336 # distro. Eventually someone will fix this and move Insight, nee
9337 # gdbtk to a separate directory.
9338 if test -d ${srcdir}/gdb/gdbtk ; then
9339 GDB_TK="${gdb_tk}"
9340 else
9341 GDB_TK=""
9342 fi
9343 ;;
9344 esac
9345 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9346 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9347
9348 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9349 # else does, only include them if one of these is built. The Makefile
9350 # provides the ordering, so it's enough here to add to the list.
9351 case " ${configdirs} " in
9352 *\ gdb\ *)
9353 configdirs="${configdirs} gnulib gdbsupport"
9354 ;;
9355 *\ gdbserver\ *)
9356 configdirs="${configdirs} gnulib gdbsupport"
9357 ;;
9358 esac
9359
9360 # Strip out unwanted targets.
9361
9362 # While at that, we remove Makefiles if we were started for recursive
9363 # configuration, so that the top-level Makefile reconfigures them,
9364 # like we used to do when configure itself was recursive.
9365
9366 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9367 # but now we're fixing up the Makefile ourselves with the additional
9368 # commands passed to AC_CONFIG_FILES. Use separate variables
9369 # extrasub-{build,host,target} not because there is any reason to split
9370 # the substitutions up that way, but only to remain below the limit of
9371 # 99 commands in a script, for HP-UX sed.
9372
9373 # Do not nest @if/@endif or @unless/@endunless pairs, because
9374 # configure will not warn you at all.
9375
9376 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9377 yes:yes:*\ gold\ *:*,c++,*) ;;
9378 yes:yes:*\ gold\ *:*)
9379 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9380 ;;
9381 esac
9382
9383 extrasub_build=
9384 for module in ${build_configdirs} ; do
9385 if test -z "${no_recursion}" \
9386 && test -f ${build_subdir}/${module}/Makefile; then
9387 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9388 rm -f ${build_subdir}/${module}/Makefile
9389 fi
9390 extrasub_build="$extrasub_build
9391 /^@if build-$module\$/d
9392 /^@endif build-$module\$/d
9393 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9394 /^@if build-$module-$bootstrap_suffix\$/d
9395 /^@endif build-$module-$bootstrap_suffix\$/d
9396 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9397 done
9398 extrasub_host=
9399 for module in ${configdirs} ; do
9400 if test -z "${no_recursion}"; then
9401 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9402 if test -f ${file}; then
9403 echo 1>&2 "*** removing ${file} to force reconfigure"
9404 rm -f ${file}
9405 fi
9406 done
9407 fi
9408 case ${module},${bootstrap_fixincludes} in
9409 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9410 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9411 esac
9412 extrasub_host="$extrasub_host
9413 /^@if $module\$/d
9414 /^@endif $module\$/d
9415 /^@unless $module\$/,/^@endunless $module\$/d
9416 /^@if $module-$host_bootstrap_suffix\$/d
9417 /^@endif $module-$host_bootstrap_suffix\$/d
9418 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9419 done
9420 extrasub_target=
9421 for module in ${target_configdirs} ; do
9422 if test -z "${no_recursion}" \
9423 && test -f ${target_subdir}/${module}/Makefile; then
9424 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9425 rm -f ${target_subdir}/${module}/Makefile
9426 fi
9427
9428 # We only bootstrap target libraries listed in bootstrap_target_libs.
9429 case $bootstrap_target_libs in
9430 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9431 *) target_bootstrap_suffix=no-bootstrap ;;
9432 esac
9433
9434 extrasub_target="$extrasub_target
9435 /^@if target-$module\$/d
9436 /^@endif target-$module\$/d
9437 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9438 /^@if target-$module-$target_bootstrap_suffix\$/d
9439 /^@endif target-$module-$target_bootstrap_suffix\$/d
9440 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9441 done
9442
9443 # Do the final fixup along with target modules.
9444 extrasub_target="$extrasub_target
9445 /^@if /,/^@endif /d
9446 /^@unless /d
9447 /^@endunless /d"
9448
9449 # Create the serialization dependencies. This uses a temporary file.
9450
9451 # Check whether --enable-serial-configure was given.
9452 if test "${enable_serial_configure+set}" = set; then :
9453 enableval=$enable_serial_configure;
9454 fi
9455
9456
9457 case ${enable_serial_configure} in
9458 yes)
9459 enable_serial_build_configure=yes
9460 enable_serial_host_configure=yes
9461 enable_serial_target_configure=yes
9462 ;;
9463 esac
9464
9465 # These force 'configure's to be done one at a time, to avoid problems
9466 # with contention over a shared config.cache.
9467 rm -f serdep.tmp
9468 echo '# serdep.tmp' > serdep.tmp
9469 olditem=
9470 test "x${enable_serial_build_configure}" = xyes &&
9471 for item in ${build_configdirs} ; do
9472 case ${olditem} in
9473 "") ;;
9474 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9475 esac
9476 olditem=${item}
9477 done
9478 olditem=
9479 test "x${enable_serial_host_configure}" = xyes &&
9480 for item in ${configdirs} ; do
9481 case ${olditem} in
9482 "") ;;
9483 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9484 esac
9485 olditem=${item}
9486 done
9487 olditem=
9488 test "x${enable_serial_target_configure}" = xyes &&
9489 for item in ${target_configdirs} ; do
9490 case ${olditem} in
9491 "") ;;
9492 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9493 esac
9494 olditem=${item}
9495 done
9496 serialization_dependencies=serdep.tmp
9497
9498
9499 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9500 # target, nonopt, and variable assignments. These are the ones we
9501 # might not want to pass down to subconfigures. The exception being
9502 # --cache-file=/dev/null, which is used to turn off the use of cache
9503 # files altogether, and which should be passed on to subconfigures.
9504 # Also strip program-prefix, program-suffix, and program-transform-name,
9505 # so that we can pass down a consistent program-transform-name.
9506 baseargs=
9507 tbaseargs=
9508 keep_next=no
9509 skip_next=no
9510 eval "set -- $ac_configure_args"
9511 for ac_arg
9512 do
9513 if test X"$skip_next" = X"yes"; then
9514 skip_next=no
9515 continue
9516 fi
9517 if test X"$keep_next" = X"yes"; then
9518 case $ac_arg in
9519 *\'*)
9520 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9521 esac
9522 baseargs="$baseargs '$ac_arg'"
9523 tbaseargs="$tbaseargs '$ac_arg'"
9524 keep_next=no
9525 continue
9526 fi
9527
9528 # Handle separated arguments. Based on the logic generated by
9529 # autoconf 2.59.
9530 case $ac_arg in
9531 *=* | --config-cache | -C | -disable-* | --disable-* \
9532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9534 | -with-* | --with-* | -without-* | --without-* | --x)
9535 separate_arg=no
9536 ;;
9537 -*)
9538 separate_arg=yes
9539 ;;
9540 *)
9541 separate_arg=no
9542 ;;
9543 esac
9544
9545 skip_targ=no
9546 case $ac_arg in
9547
9548 --with-* | --without-*)
9549 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9550
9551 case $libopt in
9552 *[-_]include)
9553 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9554 ;;
9555 *[-_]lib)
9556 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9557 ;;
9558 *)
9559 lib=$libopt
9560 ;;
9561 esac
9562
9563
9564 case $lib in
9565 mpc | mpfr | gmp | isl)
9566 # If we're processing --with-$lib, --with-$lib-include or
9567 # --with-$lib-lib, for one of the libs above, and target is
9568 # different from host, don't pass the current argument to any
9569 # target library's configure.
9570 if test x$is_cross_compiler = xyes; then
9571 skip_targ=yes
9572 fi
9573 ;;
9574 esac
9575 ;;
9576 esac
9577
9578 case "$ac_arg" in
9579 --cache-file=/dev/null | \
9580 -cache-file=/dev/null )
9581 # Handled here to avoid the test to skip args below.
9582 baseargs="$baseargs '$ac_arg'"
9583 tbaseargs="$tbaseargs '$ac_arg'"
9584 # Assert: $separate_arg should always be no.
9585 keep_next=$separate_arg
9586 ;;
9587 --no*)
9588 continue
9589 ;;
9590 --c* | \
9591 --sr* | \
9592 --ho* | \
9593 --bu* | \
9594 --t* | \
9595 --program-* | \
9596 -cache_file* | \
9597 -srcdir* | \
9598 -host* | \
9599 -build* | \
9600 -target* | \
9601 -program-prefix* | \
9602 -program-suffix* | \
9603 -program-transform-name* )
9604 skip_next=$separate_arg
9605 continue
9606 ;;
9607 -*)
9608 # An option. Add it.
9609 case $ac_arg in
9610 *\'*)
9611 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9612 esac
9613 baseargs="$baseargs '$ac_arg'"
9614 if test X"$skip_targ" = Xno; then
9615 tbaseargs="$tbaseargs '$ac_arg'"
9616 fi
9617 keep_next=$separate_arg
9618 ;;
9619 *)
9620 # Either a variable assignment, or a nonopt (triplet). Don't
9621 # pass it down; let the Makefile handle this.
9622 continue
9623 ;;
9624 esac
9625 done
9626 # Remove the initial space we just introduced and, as these will be
9627 # expanded by make, quote '$'.
9628 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9629
9630 # Add in --program-transform-name, after --program-prefix and
9631 # --program-suffix have been applied to it. Autoconf has already
9632 # doubled dollar signs and backslashes in program_transform_name; we want
9633 # the backslashes un-doubled, and then the entire thing wrapped in single
9634 # quotes, because this will be expanded first by make and then by the shell.
9635 # Also, because we want to override the logic in subdir configure scripts to
9636 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9637 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9638 ${program_transform_name}
9639 EOF_SED
9640 gcc_transform_name=`cat conftestsed.out`
9641 rm -f conftestsed.out
9642 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9643 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9644 if test "$silent" = yes; then
9645 baseargs="$baseargs --silent"
9646 tbaseargs="$tbaseargs --silent"
9647 fi
9648 baseargs="$baseargs --disable-option-checking"
9649 tbaseargs="$tbaseargs --disable-option-checking"
9650
9651 # Record and document user additions to sub configure arguments.
9652
9653
9654
9655
9656 # For the build-side libraries, we just need to pretend we're native,
9657 # and not use the same cache file. Multilibs are neither needed nor
9658 # desired. We can't even use the same cache file for all build-side
9659 # libraries, as they're compiled differently; some with C, some with
9660 # C++ or with different feature-enabling options.
9661 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9662
9663 # For host modules, accept cache file option, or specification as blank.
9664 case "${cache_file}" in
9665 "") # empty
9666 cache_file_option="" ;;
9667 /* | [A-Za-z]:[\\/]* ) # absolute path
9668 cache_file_option="--cache-file=${cache_file}" ;;
9669 *) # relative path
9670 cache_file_option="--cache-file=../${cache_file}" ;;
9671 esac
9672
9673 # Host dirs don't like to share a cache file either, horribly enough.
9674 # This seems to be due to autoconf 2.5x stupidity.
9675 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9676
9677 target_configargs="$target_configargs ${tbaseargs}"
9678
9679 # Passing a --with-cross-host argument lets the target libraries know
9680 # whether they are being built with a cross-compiler or being built
9681 # native. However, it would be better to use other mechanisms to make the
9682 # sorts of decisions they want to make on this basis. Please consider
9683 # this option to be deprecated. FIXME.
9684 if test x${is_cross_compiler} = xyes ; then
9685 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
9686 fi
9687
9688 # Special user-friendly check for native x86_64-linux build, if
9689 # multilib is not explicitly enabled.
9690 case "$target:$have_compiler:$host:$target:$enable_multilib" in
9691 x86_64-*linux*:yes:$build:$build:)
9692 # Make sure we have a development environment that handles 32-bit
9693 dev64=no
9694 echo "int main () { return 0; }" > conftest.c
9695 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9696 if test $? = 0 ; then
9697 if test -s conftest || test -s conftest.exe ; then
9698 dev64=yes
9699 fi
9700 fi
9701 rm -f conftest*
9702 if test x${dev64} != xyes ; then
9703 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
9704 fi
9705 ;;
9706 esac
9707
9708 # Default to --enable-multilib.
9709 if test x${enable_multilib} = x ; then
9710 target_configargs="--enable-multilib ${target_configargs}"
9711 fi
9712
9713 # Pass --with-newlib if appropriate. Note that target_configdirs has
9714 # changed from the earlier setting of with_newlib.
9715 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9716 target_configargs="--with-newlib ${target_configargs}"
9717 fi
9718
9719 # Different target subdirs use different values of certain variables
9720 # (notably CXX). Worse, multilibs use *lots* of different values.
9721 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9722 # it doesn't automatically accept command-line overrides of them.
9723 # This means it's not safe for target subdirs to share a cache file,
9724 # which is disgusting, but there you have it. Hopefully this can be
9725 # fixed in future. It's still worthwhile to use a cache file for each
9726 # directory. I think.
9727
9728 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9729 # We need to pass --target, as newer autoconf's requires consistency
9730 # for target_alias and gcc doesn't manage it consistently.
9731 target_configargs="--cache-file=./config.cache ${target_configargs}"
9732
9733 FLAGS_FOR_TARGET=
9734 case " $target_configdirs " in
9735 *" newlib "*)
9736 case " $target_configargs " in
9737 *" --with-newlib "*)
9738 case "$target" in
9739 *-cygwin*)
9740 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9741 ;;
9742 esac
9743
9744 # If we're not building GCC, don't discard standard headers.
9745 if test -d ${srcdir}/gcc; then
9746 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9747
9748 if test "${build}" != "${host}"; then
9749 # On Canadian crosses, CC_FOR_TARGET will have already been set
9750 # by `configure', so we won't have an opportunity to add -Bgcc/
9751 # to it. This is right: we don't want to search that directory
9752 # for binaries, but we want the header files in there, so add
9753 # them explicitly.
9754 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9755
9756 # Someone might think of using the pre-installed headers on
9757 # Canadian crosses, in case the installed compiler is not fully
9758 # compatible with the compiler being built. In this case, it
9759 # would be better to flag an error than risking having
9760 # incompatible object files being constructed. We can't
9761 # guarantee that an error will be flagged, but let's hope the
9762 # compiler will do it, when presented with incompatible header
9763 # files.
9764 fi
9765 fi
9766
9767 case "${target}-${is_cross_compiler}" in
9768 i[3456789]86-*-linux*-no)
9769 # Here host == target, so we don't need to build gcc,
9770 # so we don't want to discard standard headers.
9771 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9772 ;;
9773 *)
9774 # If we're building newlib, use its generic headers last, but search
9775 # for any libc-related directories first (so make it the last -B
9776 # switch).
9777 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9778
9779 # If we're building libgloss, find the startup file, simulator library
9780 # and linker script.
9781 case " $target_configdirs " in
9782 *" libgloss "*)
9783 # Look for startup file, simulator library and maybe linker script.
9784 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9785 # Look for libnosys.a in case the target needs it.
9786 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9787 # Most targets have the linker script in the source directory.
9788 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9789 ;;
9790 esac
9791 ;;
9792 esac
9793 ;;
9794 esac
9795 ;;
9796 esac
9797
9798 case "$target" in
9799 x86_64-*mingw* | *-w64-mingw*)
9800 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9801 # however, use a symlink named 'mingw' in ${prefix} .
9802 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9803 ;;
9804 *-mingw*)
9805 # MinGW can't be handled as Cygwin above since it does not use newlib.
9806 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'
9807 ;;
9808 esac
9809
9810 # Allow the user to override the flags for
9811 # our build compiler if desired.
9812 if test x"${build}" = x"${host}" ; then
9813 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
9814 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
9815 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
9816 fi
9817
9818 # On Canadian crosses, we'll be searching the right directories for
9819 # the previously-installed cross compiler, so don't bother to add
9820 # flags for directories within the install tree of the compiler
9821 # being built; programs in there won't even run.
9822 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
9823 # Search for pre-installed headers if nothing else fits.
9824 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
9825 fi
9826
9827 if test "x${use_gnu_ld}" = x &&
9828 echo " ${configdirs} " | grep " ld " > /dev/null ; then
9829 # Arrange for us to find uninstalled linker scripts.
9830 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
9831 fi
9832
9833 # Search for other target-specific linker scripts and such.
9834 case "${target}" in
9835 mep*)
9836 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
9837 ;;
9838 esac
9839
9840 # Makefile fragments.
9841 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
9842 do
9843 eval fragval=\$$frag
9844 if test $fragval != /dev/null; then
9845 eval $frag=${srcdir}/$fragval
9846 fi
9847 done
9848
9849
9850
9851
9852
9853 # Miscellanea: directories, flags, etc.
9854
9855
9856
9857
9858
9859
9860
9861
9862 # Build module lists & subconfigure args.
9863
9864
9865
9866 # Host module lists & subconfigure args.
9867
9868
9869
9870
9871 # Target module lists & subconfigure args.
9872
9873
9874
9875 # Build tools.
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893 # Generate default definitions for YACC, M4, LEX and other programs that run
9894 # on the build machine. These are used if the Makefile can't locate these
9895 # programs in objdir.
9896 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
9897
9898 for ac_prog in 'bison -y' byacc yacc
9899 do
9900 # Extract the first word of "$ac_prog", so it can be a program name with args.
9901 set dummy $ac_prog; ac_word=$2
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903 $as_echo_n "checking for $ac_word... " >&6; }
9904 if ${ac_cv_prog_YACC+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 if test -n "$YACC"; then
9908 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9909 else
9910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911 for as_dir in $PATH
9912 do
9913 IFS=$as_save_IFS
9914 test -z "$as_dir" && as_dir=.
9915 for ac_exec_ext in '' $ac_executable_extensions; do
9916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9917 ac_cv_prog_YACC="$ac_prog"
9918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9919 break 2
9920 fi
9921 done
9922 done
9923 IFS=$as_save_IFS
9924
9925 fi
9926 fi
9927 YACC=$ac_cv_prog_YACC
9928 if test -n "$YACC"; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
9930 $as_echo "$YACC" >&6; }
9931 else
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 $as_echo "no" >&6; }
9934 fi
9935
9936
9937 test -n "$YACC" && break
9938 done
9939 test -n "$YACC" || YACC="$MISSING bison -y"
9940
9941 case " $build_configdirs " in
9942 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
9943 esac
9944
9945 for ac_prog in bison
9946 do
9947 # Extract the first word of "$ac_prog", so it can be a program name with args.
9948 set dummy $ac_prog; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if ${ac_cv_prog_BISON+:} false; then :
9952 $as_echo_n "(cached) " >&6
9953 else
9954 if test -n "$BISON"; then
9955 ac_cv_prog_BISON="$BISON" # Let the user override the test.
9956 else
9957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958 for as_dir in $PATH
9959 do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9964 ac_cv_prog_BISON="$ac_prog"
9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9967 fi
9968 done
9969 done
9970 IFS=$as_save_IFS
9971
9972 fi
9973 fi
9974 BISON=$ac_cv_prog_BISON
9975 if test -n "$BISON"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9977 $as_echo "$BISON" >&6; }
9978 else
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9981 fi
9982
9983
9984 test -n "$BISON" && break
9985 done
9986 test -n "$BISON" || BISON="$MISSING bison"
9987
9988 case " $build_configdirs " in
9989 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
9990 esac
9991
9992 for ac_prog in gm4 gnum4 m4
9993 do
9994 # Extract the first word of "$ac_prog", so it can be a program name with args.
9995 set dummy $ac_prog; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if ${ac_cv_prog_M4+:} false; then :
9999 $as_echo_n "(cached) " >&6
10000 else
10001 if test -n "$M4"; then
10002 ac_cv_prog_M4="$M4" # Let the user override the test.
10003 else
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10006 do
10007 IFS=$as_save_IFS
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10011 ac_cv_prog_M4="$ac_prog"
10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10013 break 2
10014 fi
10015 done
10016 done
10017 IFS=$as_save_IFS
10018
10019 fi
10020 fi
10021 M4=$ac_cv_prog_M4
10022 if test -n "$M4"; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10024 $as_echo "$M4" >&6; }
10025 else
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10028 fi
10029
10030
10031 test -n "$M4" && break
10032 done
10033 test -n "$M4" || M4="$MISSING m4"
10034
10035 case " $build_configdirs " in
10036 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10037 esac
10038
10039 for ac_prog in flex lex
10040 do
10041 # Extract the first word of "$ac_prog", so it can be a program name with args.
10042 set dummy $ac_prog; ac_word=$2
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 $as_echo_n "checking for $ac_word... " >&6; }
10045 if ${ac_cv_prog_LEX+:} false; then :
10046 $as_echo_n "(cached) " >&6
10047 else
10048 if test -n "$LEX"; then
10049 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10050 else
10051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052 for as_dir in $PATH
10053 do
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10058 ac_cv_prog_LEX="$ac_prog"
10059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10060 break 2
10061 fi
10062 done
10063 done
10064 IFS=$as_save_IFS
10065
10066 fi
10067 fi
10068 LEX=$ac_cv_prog_LEX
10069 if test -n "$LEX"; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10071 $as_echo "$LEX" >&6; }
10072 else
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074 $as_echo "no" >&6; }
10075 fi
10076
10077
10078 test -n "$LEX" && break
10079 done
10080 test -n "$LEX" || LEX="$MISSING flex"
10081
10082 case " $build_configdirs " in
10083 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10084 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10085 esac
10086
10087 for ac_prog in flex
10088 do
10089 # Extract the first word of "$ac_prog", so it can be a program name with args.
10090 set dummy $ac_prog; ac_word=$2
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10092 $as_echo_n "checking for $ac_word... " >&6; }
10093 if ${ac_cv_prog_FLEX+:} false; then :
10094 $as_echo_n "(cached) " >&6
10095 else
10096 if test -n "$FLEX"; then
10097 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10098 else
10099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100 for as_dir in $PATH
10101 do
10102 IFS=$as_save_IFS
10103 test -z "$as_dir" && as_dir=.
10104 for ac_exec_ext in '' $ac_executable_extensions; do
10105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10106 ac_cv_prog_FLEX="$ac_prog"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10108 break 2
10109 fi
10110 done
10111 done
10112 IFS=$as_save_IFS
10113
10114 fi
10115 fi
10116 FLEX=$ac_cv_prog_FLEX
10117 if test -n "$FLEX"; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10119 $as_echo "$FLEX" >&6; }
10120 else
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122 $as_echo "no" >&6; }
10123 fi
10124
10125
10126 test -n "$FLEX" && break
10127 done
10128 test -n "$FLEX" || FLEX="$MISSING flex"
10129
10130 case " $build_configdirs " in
10131 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10132 esac
10133
10134 for ac_prog in makeinfo
10135 do
10136 # Extract the first word of "$ac_prog", so it can be a program name with args.
10137 set dummy $ac_prog; ac_word=$2
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139 $as_echo_n "checking for $ac_word... " >&6; }
10140 if ${ac_cv_prog_MAKEINFO+:} false; then :
10141 $as_echo_n "(cached) " >&6
10142 else
10143 if test -n "$MAKEINFO"; then
10144 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10145 else
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10148 do
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10153 ac_cv_prog_MAKEINFO="$ac_prog"
10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 break 2
10156 fi
10157 done
10158 done
10159 IFS=$as_save_IFS
10160
10161 fi
10162 fi
10163 MAKEINFO=$ac_cv_prog_MAKEINFO
10164 if test -n "$MAKEINFO"; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10166 $as_echo "$MAKEINFO" >&6; }
10167 else
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }
10170 fi
10171
10172
10173 test -n "$MAKEINFO" && break
10174 done
10175 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10176
10177 case " $build_configdirs " in
10178 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10179 *)
10180
10181 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10182 # higher, else we use the "missing" dummy.
10183 if ${MAKEINFO} --version \
10184 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10185 :
10186 else
10187 MAKEINFO="$MISSING makeinfo"
10188 fi
10189 ;;
10190
10191 esac
10192
10193 # FIXME: expect and dejagnu may become build tools?
10194
10195 for ac_prog in expect
10196 do
10197 # Extract the first word of "$ac_prog", so it can be a program name with args.
10198 set dummy $ac_prog; ac_word=$2
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200 $as_echo_n "checking for $ac_word... " >&6; }
10201 if ${ac_cv_prog_EXPECT+:} false; then :
10202 $as_echo_n "(cached) " >&6
10203 else
10204 if test -n "$EXPECT"; then
10205 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10206 else
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10209 do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10214 ac_cv_prog_EXPECT="$ac_prog"
10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10217 fi
10218 done
10219 done
10220 IFS=$as_save_IFS
10221
10222 fi
10223 fi
10224 EXPECT=$ac_cv_prog_EXPECT
10225 if test -n "$EXPECT"; then
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10227 $as_echo "$EXPECT" >&6; }
10228 else
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10231 fi
10232
10233
10234 test -n "$EXPECT" && break
10235 done
10236 test -n "$EXPECT" || EXPECT="expect"
10237
10238 case " $configdirs " in
10239 *" expect "*)
10240 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10241 ;;
10242 esac
10243
10244 for ac_prog in runtest
10245 do
10246 # Extract the first word of "$ac_prog", so it can be a program name with args.
10247 set dummy $ac_prog; ac_word=$2
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10249 $as_echo_n "checking for $ac_word... " >&6; }
10250 if ${ac_cv_prog_RUNTEST+:} false; then :
10251 $as_echo_n "(cached) " >&6
10252 else
10253 if test -n "$RUNTEST"; then
10254 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10255 else
10256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in $PATH
10258 do
10259 IFS=$as_save_IFS
10260 test -z "$as_dir" && as_dir=.
10261 for ac_exec_ext in '' $ac_executable_extensions; do
10262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10263 ac_cv_prog_RUNTEST="$ac_prog"
10264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 break 2
10266 fi
10267 done
10268 done
10269 IFS=$as_save_IFS
10270
10271 fi
10272 fi
10273 RUNTEST=$ac_cv_prog_RUNTEST
10274 if test -n "$RUNTEST"; then
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10276 $as_echo "$RUNTEST" >&6; }
10277 else
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10280 fi
10281
10282
10283 test -n "$RUNTEST" && break
10284 done
10285 test -n "$RUNTEST" || RUNTEST="runtest"
10286
10287 case " $configdirs " in
10288 *" dejagnu "*)
10289 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10290 ;;
10291 esac
10292
10293
10294 # Host tools.
10295 ncn_tool_prefix=
10296 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10297 ncn_target_tool_prefix=
10298 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10299
10300
10301
10302 if test -n "$AR"; then
10303 ac_cv_prog_AR=$AR
10304 elif test -n "$ac_cv_prog_AR"; then
10305 AR=$ac_cv_prog_AR
10306 fi
10307
10308 if test -n "$ac_cv_prog_AR"; then
10309 for ncn_progname in ar; do
10310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10311 set dummy ${ncn_progname}; ac_word=$2
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10313 $as_echo_n "checking for $ac_word... " >&6; }
10314 if ${ac_cv_prog_AR+:} false; then :
10315 $as_echo_n "(cached) " >&6
10316 else
10317 if test -n "$AR"; then
10318 ac_cv_prog_AR="$AR" # Let the user override the test.
10319 else
10320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321 for as_dir in $PATH
10322 do
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
10325 for ac_exec_ext in '' $ac_executable_extensions; do
10326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10327 ac_cv_prog_AR="${ncn_progname}"
10328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 break 2
10330 fi
10331 done
10332 done
10333 IFS=$as_save_IFS
10334
10335 fi
10336 fi
10337 AR=$ac_cv_prog_AR
10338 if test -n "$AR"; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10340 $as_echo "$AR" >&6; }
10341 else
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10343 $as_echo "no" >&6; }
10344 fi
10345
10346
10347 done
10348 fi
10349
10350 for ncn_progname in ar; do
10351 if test -n "$ncn_tool_prefix"; then
10352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10353 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355 $as_echo_n "checking for $ac_word... " >&6; }
10356 if ${ac_cv_prog_AR+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 if test -n "$AR"; then
10360 ac_cv_prog_AR="$AR" # Let the user override the test.
10361 else
10362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363 for as_dir in $PATH
10364 do
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10369 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10372 fi
10373 done
10374 done
10375 IFS=$as_save_IFS
10376
10377 fi
10378 fi
10379 AR=$ac_cv_prog_AR
10380 if test -n "$AR"; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10382 $as_echo "$AR" >&6; }
10383 else
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385 $as_echo "no" >&6; }
10386 fi
10387
10388
10389 fi
10390 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10392 set dummy ${ncn_progname}; ac_word=$2
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394 $as_echo_n "checking for $ac_word... " >&6; }
10395 if ${ac_cv_prog_AR+:} false; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 if test -n "$AR"; then
10399 ac_cv_prog_AR="$AR" # Let the user override the test.
10400 else
10401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402 for as_dir in $PATH
10403 do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10408 ac_cv_prog_AR="${ncn_progname}"
10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410 break 2
10411 fi
10412 done
10413 done
10414 IFS=$as_save_IFS
10415
10416 fi
10417 fi
10418 AR=$ac_cv_prog_AR
10419 if test -n "$AR"; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10421 $as_echo "$AR" >&6; }
10422 else
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10425 fi
10426
10427
10428 fi
10429 test -n "$ac_cv_prog_AR" && break
10430 done
10431
10432 if test -z "$ac_cv_prog_AR" ; then
10433 set dummy ar
10434 if test $build = $host ; then
10435 AR="$2"
10436 else
10437 AR="${ncn_tool_prefix}$2"
10438 fi
10439 fi
10440
10441
10442
10443 if test -n "$AS"; then
10444 ac_cv_prog_AS=$AS
10445 elif test -n "$ac_cv_prog_AS"; then
10446 AS=$ac_cv_prog_AS
10447 fi
10448
10449 if test -n "$ac_cv_prog_AS"; then
10450 for ncn_progname in as; do
10451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10452 set dummy ${ncn_progname}; ac_word=$2
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10454 $as_echo_n "checking for $ac_word... " >&6; }
10455 if ${ac_cv_prog_AS+:} false; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 if test -n "$AS"; then
10459 ac_cv_prog_AS="$AS" # Let the user override the test.
10460 else
10461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10462 for as_dir in $PATH
10463 do
10464 IFS=$as_save_IFS
10465 test -z "$as_dir" && as_dir=.
10466 for ac_exec_ext in '' $ac_executable_extensions; do
10467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10468 ac_cv_prog_AS="${ncn_progname}"
10469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10470 break 2
10471 fi
10472 done
10473 done
10474 IFS=$as_save_IFS
10475
10476 fi
10477 fi
10478 AS=$ac_cv_prog_AS
10479 if test -n "$AS"; then
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10481 $as_echo "$AS" >&6; }
10482 else
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; }
10485 fi
10486
10487
10488 done
10489 fi
10490
10491 for ncn_progname in as; do
10492 if test -n "$ncn_tool_prefix"; then
10493 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10494 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10496 $as_echo_n "checking for $ac_word... " >&6; }
10497 if ${ac_cv_prog_AS+:} false; then :
10498 $as_echo_n "(cached) " >&6
10499 else
10500 if test -n "$AS"; then
10501 ac_cv_prog_AS="$AS" # Let the user override the test.
10502 else
10503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10504 for as_dir in $PATH
10505 do
10506 IFS=$as_save_IFS
10507 test -z "$as_dir" && as_dir=.
10508 for ac_exec_ext in '' $ac_executable_extensions; do
10509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10510 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10512 break 2
10513 fi
10514 done
10515 done
10516 IFS=$as_save_IFS
10517
10518 fi
10519 fi
10520 AS=$ac_cv_prog_AS
10521 if test -n "$AS"; then
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10523 $as_echo "$AS" >&6; }
10524 else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526 $as_echo "no" >&6; }
10527 fi
10528
10529
10530 fi
10531 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10533 set dummy ${ncn_progname}; ac_word=$2
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10535 $as_echo_n "checking for $ac_word... " >&6; }
10536 if ${ac_cv_prog_AS+:} false; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 if test -n "$AS"; then
10540 ac_cv_prog_AS="$AS" # Let the user override the test.
10541 else
10542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543 for as_dir in $PATH
10544 do
10545 IFS=$as_save_IFS
10546 test -z "$as_dir" && as_dir=.
10547 for ac_exec_ext in '' $ac_executable_extensions; do
10548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10549 ac_cv_prog_AS="${ncn_progname}"
10550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10551 break 2
10552 fi
10553 done
10554 done
10555 IFS=$as_save_IFS
10556
10557 fi
10558 fi
10559 AS=$ac_cv_prog_AS
10560 if test -n "$AS"; then
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10562 $as_echo "$AS" >&6; }
10563 else
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10565 $as_echo "no" >&6; }
10566 fi
10567
10568
10569 fi
10570 test -n "$ac_cv_prog_AS" && break
10571 done
10572
10573 if test -z "$ac_cv_prog_AS" ; then
10574 set dummy as
10575 if test $build = $host ; then
10576 AS="$2"
10577 else
10578 AS="${ncn_tool_prefix}$2"
10579 fi
10580 fi
10581
10582
10583
10584 if test -n "$DLLTOOL"; then
10585 ac_cv_prog_DLLTOOL=$DLLTOOL
10586 elif test -n "$ac_cv_prog_DLLTOOL"; then
10587 DLLTOOL=$ac_cv_prog_DLLTOOL
10588 fi
10589
10590 if test -n "$ac_cv_prog_DLLTOOL"; then
10591 for ncn_progname in dlltool; do
10592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10593 set dummy ${ncn_progname}; ac_word=$2
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10595 $as_echo_n "checking for $ac_word... " >&6; }
10596 if ${ac_cv_prog_DLLTOOL+:} false; then :
10597 $as_echo_n "(cached) " >&6
10598 else
10599 if test -n "$DLLTOOL"; then
10600 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10601 else
10602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10603 for as_dir in $PATH
10604 do
10605 IFS=$as_save_IFS
10606 test -z "$as_dir" && as_dir=.
10607 for ac_exec_ext in '' $ac_executable_extensions; do
10608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10609 ac_cv_prog_DLLTOOL="${ncn_progname}"
10610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10611 break 2
10612 fi
10613 done
10614 done
10615 IFS=$as_save_IFS
10616
10617 fi
10618 fi
10619 DLLTOOL=$ac_cv_prog_DLLTOOL
10620 if test -n "$DLLTOOL"; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10622 $as_echo "$DLLTOOL" >&6; }
10623 else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; }
10626 fi
10627
10628
10629 done
10630 fi
10631
10632 for ncn_progname in dlltool; do
10633 if test -n "$ncn_tool_prefix"; then
10634 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10635 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10637 $as_echo_n "checking for $ac_word... " >&6; }
10638 if ${ac_cv_prog_DLLTOOL+:} false; then :
10639 $as_echo_n "(cached) " >&6
10640 else
10641 if test -n "$DLLTOOL"; then
10642 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10643 else
10644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645 for as_dir in $PATH
10646 do
10647 IFS=$as_save_IFS
10648 test -z "$as_dir" && as_dir=.
10649 for ac_exec_ext in '' $ac_executable_extensions; do
10650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10651 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10653 break 2
10654 fi
10655 done
10656 done
10657 IFS=$as_save_IFS
10658
10659 fi
10660 fi
10661 DLLTOOL=$ac_cv_prog_DLLTOOL
10662 if test -n "$DLLTOOL"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10664 $as_echo "$DLLTOOL" >&6; }
10665 else
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10668 fi
10669
10670
10671 fi
10672 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10674 set dummy ${ncn_progname}; ac_word=$2
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if ${ac_cv_prog_DLLTOOL+:} false; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 if test -n "$DLLTOOL"; then
10681 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10682 else
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10685 do
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10690 ac_cv_prog_DLLTOOL="${ncn_progname}"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10692 break 2
10693 fi
10694 done
10695 done
10696 IFS=$as_save_IFS
10697
10698 fi
10699 fi
10700 DLLTOOL=$ac_cv_prog_DLLTOOL
10701 if test -n "$DLLTOOL"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10703 $as_echo "$DLLTOOL" >&6; }
10704 else
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10707 fi
10708
10709
10710 fi
10711 test -n "$ac_cv_prog_DLLTOOL" && break
10712 done
10713
10714 if test -z "$ac_cv_prog_DLLTOOL" ; then
10715 set dummy dlltool
10716 if test $build = $host ; then
10717 DLLTOOL="$2"
10718 else
10719 DLLTOOL="${ncn_tool_prefix}$2"
10720 fi
10721 fi
10722
10723
10724
10725 if test -n "$LD"; then
10726 ac_cv_prog_LD=$LD
10727 elif test -n "$ac_cv_prog_LD"; then
10728 LD=$ac_cv_prog_LD
10729 fi
10730
10731 if test -n "$ac_cv_prog_LD"; then
10732 for ncn_progname in ld; do
10733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10734 set dummy ${ncn_progname}; ac_word=$2
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10736 $as_echo_n "checking for $ac_word... " >&6; }
10737 if ${ac_cv_prog_LD+:} false; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 if test -n "$LD"; then
10741 ac_cv_prog_LD="$LD" # Let the user override the test.
10742 else
10743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744 for as_dir in $PATH
10745 do
10746 IFS=$as_save_IFS
10747 test -z "$as_dir" && as_dir=.
10748 for ac_exec_ext in '' $ac_executable_extensions; do
10749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10750 ac_cv_prog_LD="${ncn_progname}"
10751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10752 break 2
10753 fi
10754 done
10755 done
10756 IFS=$as_save_IFS
10757
10758 fi
10759 fi
10760 LD=$ac_cv_prog_LD
10761 if test -n "$LD"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10763 $as_echo "$LD" >&6; }
10764 else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766 $as_echo "no" >&6; }
10767 fi
10768
10769
10770 done
10771 fi
10772
10773 for ncn_progname in ld; do
10774 if test -n "$ncn_tool_prefix"; then
10775 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10776 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10778 $as_echo_n "checking for $ac_word... " >&6; }
10779 if ${ac_cv_prog_LD+:} false; then :
10780 $as_echo_n "(cached) " >&6
10781 else
10782 if test -n "$LD"; then
10783 ac_cv_prog_LD="$LD" # Let the user override the test.
10784 else
10785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786 for as_dir in $PATH
10787 do
10788 IFS=$as_save_IFS
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
10791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10792 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10794 break 2
10795 fi
10796 done
10797 done
10798 IFS=$as_save_IFS
10799
10800 fi
10801 fi
10802 LD=$ac_cv_prog_LD
10803 if test -n "$LD"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10805 $as_echo "$LD" >&6; }
10806 else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808 $as_echo "no" >&6; }
10809 fi
10810
10811
10812 fi
10813 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
10814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10815 set dummy ${ncn_progname}; ac_word=$2
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817 $as_echo_n "checking for $ac_word... " >&6; }
10818 if ${ac_cv_prog_LD+:} false; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10821 if test -n "$LD"; then
10822 ac_cv_prog_LD="$LD" # Let the user override the test.
10823 else
10824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825 for as_dir in $PATH
10826 do
10827 IFS=$as_save_IFS
10828 test -z "$as_dir" && as_dir=.
10829 for ac_exec_ext in '' $ac_executable_extensions; do
10830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10831 ac_cv_prog_LD="${ncn_progname}"
10832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10833 break 2
10834 fi
10835 done
10836 done
10837 IFS=$as_save_IFS
10838
10839 fi
10840 fi
10841 LD=$ac_cv_prog_LD
10842 if test -n "$LD"; then
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10844 $as_echo "$LD" >&6; }
10845 else
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847 $as_echo "no" >&6; }
10848 fi
10849
10850
10851 fi
10852 test -n "$ac_cv_prog_LD" && break
10853 done
10854
10855 if test -z "$ac_cv_prog_LD" ; then
10856 set dummy ld
10857 if test $build = $host ; then
10858 LD="$2"
10859 else
10860 LD="${ncn_tool_prefix}$2"
10861 fi
10862 fi
10863
10864
10865
10866 if test -n "$LIPO"; then
10867 ac_cv_prog_LIPO=$LIPO
10868 elif test -n "$ac_cv_prog_LIPO"; then
10869 LIPO=$ac_cv_prog_LIPO
10870 fi
10871
10872 if test -n "$ac_cv_prog_LIPO"; then
10873 for ncn_progname in lipo; do
10874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10875 set dummy ${ncn_progname}; ac_word=$2
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10877 $as_echo_n "checking for $ac_word... " >&6; }
10878 if ${ac_cv_prog_LIPO+:} false; then :
10879 $as_echo_n "(cached) " >&6
10880 else
10881 if test -n "$LIPO"; then
10882 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10883 else
10884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10886 do
10887 IFS=$as_save_IFS
10888 test -z "$as_dir" && as_dir=.
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10891 ac_cv_prog_LIPO="${ncn_progname}"
10892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10893 break 2
10894 fi
10895 done
10896 done
10897 IFS=$as_save_IFS
10898
10899 fi
10900 fi
10901 LIPO=$ac_cv_prog_LIPO
10902 if test -n "$LIPO"; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10904 $as_echo "$LIPO" >&6; }
10905 else
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10908 fi
10909
10910
10911 done
10912 fi
10913
10914 for ncn_progname in lipo; do
10915 if test -n "$ncn_tool_prefix"; then
10916 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10917 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10919 $as_echo_n "checking for $ac_word... " >&6; }
10920 if ${ac_cv_prog_LIPO+:} false; then :
10921 $as_echo_n "(cached) " >&6
10922 else
10923 if test -n "$LIPO"; then
10924 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10925 else
10926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10927 for as_dir in $PATH
10928 do
10929 IFS=$as_save_IFS
10930 test -z "$as_dir" && as_dir=.
10931 for ac_exec_ext in '' $ac_executable_extensions; do
10932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10933 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
10934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10935 break 2
10936 fi
10937 done
10938 done
10939 IFS=$as_save_IFS
10940
10941 fi
10942 fi
10943 LIPO=$ac_cv_prog_LIPO
10944 if test -n "$LIPO"; then
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10946 $as_echo "$LIPO" >&6; }
10947 else
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10950 fi
10951
10952
10953 fi
10954 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
10955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10956 set dummy ${ncn_progname}; ac_word=$2
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10958 $as_echo_n "checking for $ac_word... " >&6; }
10959 if ${ac_cv_prog_LIPO+:} false; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 if test -n "$LIPO"; then
10963 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10964 else
10965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966 for as_dir in $PATH
10967 do
10968 IFS=$as_save_IFS
10969 test -z "$as_dir" && as_dir=.
10970 for ac_exec_ext in '' $ac_executable_extensions; do
10971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10972 ac_cv_prog_LIPO="${ncn_progname}"
10973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10974 break 2
10975 fi
10976 done
10977 done
10978 IFS=$as_save_IFS
10979
10980 fi
10981 fi
10982 LIPO=$ac_cv_prog_LIPO
10983 if test -n "$LIPO"; then
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10985 $as_echo "$LIPO" >&6; }
10986 else
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10988 $as_echo "no" >&6; }
10989 fi
10990
10991
10992 fi
10993 test -n "$ac_cv_prog_LIPO" && break
10994 done
10995
10996 if test -z "$ac_cv_prog_LIPO" ; then
10997 set dummy lipo
10998 if test $build = $host ; then
10999 LIPO="$2"
11000 else
11001 LIPO="${ncn_tool_prefix}$2"
11002 fi
11003 fi
11004
11005
11006
11007 if test -n "$NM"; then
11008 ac_cv_prog_NM=$NM
11009 elif test -n "$ac_cv_prog_NM"; then
11010 NM=$ac_cv_prog_NM
11011 fi
11012
11013 if test -n "$ac_cv_prog_NM"; then
11014 for ncn_progname in nm; do
11015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11016 set dummy ${ncn_progname}; ac_word=$2
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11018 $as_echo_n "checking for $ac_word... " >&6; }
11019 if ${ac_cv_prog_NM+:} false; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 if test -n "$NM"; then
11023 ac_cv_prog_NM="$NM" # Let the user override the test.
11024 else
11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026 for as_dir in $PATH
11027 do
11028 IFS=$as_save_IFS
11029 test -z "$as_dir" && as_dir=.
11030 for ac_exec_ext in '' $ac_executable_extensions; do
11031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11032 ac_cv_prog_NM="${ncn_progname}"
11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 break 2
11035 fi
11036 done
11037 done
11038 IFS=$as_save_IFS
11039
11040 fi
11041 fi
11042 NM=$ac_cv_prog_NM
11043 if test -n "$NM"; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11045 $as_echo "$NM" >&6; }
11046 else
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11049 fi
11050
11051
11052 done
11053 fi
11054
11055 for ncn_progname in nm; do
11056 if test -n "$ncn_tool_prefix"; then
11057 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11058 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060 $as_echo_n "checking for $ac_word... " >&6; }
11061 if ${ac_cv_prog_NM+:} false; then :
11062 $as_echo_n "(cached) " >&6
11063 else
11064 if test -n "$NM"; then
11065 ac_cv_prog_NM="$NM" # Let the user override the test.
11066 else
11067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068 for as_dir in $PATH
11069 do
11070 IFS=$as_save_IFS
11071 test -z "$as_dir" && as_dir=.
11072 for ac_exec_ext in '' $ac_executable_extensions; do
11073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11074 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11076 break 2
11077 fi
11078 done
11079 done
11080 IFS=$as_save_IFS
11081
11082 fi
11083 fi
11084 NM=$ac_cv_prog_NM
11085 if test -n "$NM"; then
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11087 $as_echo "$NM" >&6; }
11088 else
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090 $as_echo "no" >&6; }
11091 fi
11092
11093
11094 fi
11095 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11097 set dummy ${ncn_progname}; ac_word=$2
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if ${ac_cv_prog_NM+:} false; then :
11101 $as_echo_n "(cached) " >&6
11102 else
11103 if test -n "$NM"; then
11104 ac_cv_prog_NM="$NM" # Let the user override the test.
11105 else
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11108 do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11113 ac_cv_prog_NM="${ncn_progname}"
11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11115 break 2
11116 fi
11117 done
11118 done
11119 IFS=$as_save_IFS
11120
11121 fi
11122 fi
11123 NM=$ac_cv_prog_NM
11124 if test -n "$NM"; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11126 $as_echo "$NM" >&6; }
11127 else
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11130 fi
11131
11132
11133 fi
11134 test -n "$ac_cv_prog_NM" && break
11135 done
11136
11137 if test -z "$ac_cv_prog_NM" ; then
11138 set dummy nm
11139 if test $build = $host ; then
11140 NM="$2"
11141 else
11142 NM="${ncn_tool_prefix}$2"
11143 fi
11144 fi
11145
11146
11147
11148 if test -n "$RANLIB"; then
11149 ac_cv_prog_RANLIB=$RANLIB
11150 elif test -n "$ac_cv_prog_RANLIB"; then
11151 RANLIB=$ac_cv_prog_RANLIB
11152 fi
11153
11154 if test -n "$ac_cv_prog_RANLIB"; then
11155 for ncn_progname in ranlib; do
11156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11157 set dummy ${ncn_progname}; ac_word=$2
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11159 $as_echo_n "checking for $ac_word... " >&6; }
11160 if ${ac_cv_prog_RANLIB+:} false; then :
11161 $as_echo_n "(cached) " >&6
11162 else
11163 if test -n "$RANLIB"; then
11164 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11165 else
11166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167 for as_dir in $PATH
11168 do
11169 IFS=$as_save_IFS
11170 test -z "$as_dir" && as_dir=.
11171 for ac_exec_ext in '' $ac_executable_extensions; do
11172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11173 ac_cv_prog_RANLIB="${ncn_progname}"
11174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11175 break 2
11176 fi
11177 done
11178 done
11179 IFS=$as_save_IFS
11180
11181 fi
11182 fi
11183 RANLIB=$ac_cv_prog_RANLIB
11184 if test -n "$RANLIB"; then
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11186 $as_echo "$RANLIB" >&6; }
11187 else
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189 $as_echo "no" >&6; }
11190 fi
11191
11192
11193 done
11194 fi
11195
11196 for ncn_progname in ranlib; do
11197 if test -n "$ncn_tool_prefix"; then
11198 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11199 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201 $as_echo_n "checking for $ac_word... " >&6; }
11202 if ${ac_cv_prog_RANLIB+:} false; then :
11203 $as_echo_n "(cached) " >&6
11204 else
11205 if test -n "$RANLIB"; then
11206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11207 else
11208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209 for as_dir in $PATH
11210 do
11211 IFS=$as_save_IFS
11212 test -z "$as_dir" && as_dir=.
11213 for ac_exec_ext in '' $ac_executable_extensions; do
11214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11215 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11217 break 2
11218 fi
11219 done
11220 done
11221 IFS=$as_save_IFS
11222
11223 fi
11224 fi
11225 RANLIB=$ac_cv_prog_RANLIB
11226 if test -n "$RANLIB"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11228 $as_echo "$RANLIB" >&6; }
11229 else
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11232 fi
11233
11234
11235 fi
11236 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11238 set dummy ${ncn_progname}; ac_word=$2
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11240 $as_echo_n "checking for $ac_word... " >&6; }
11241 if ${ac_cv_prog_RANLIB+:} false; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 if test -n "$RANLIB"; then
11245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11246 else
11247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11248 for as_dir in $PATH
11249 do
11250 IFS=$as_save_IFS
11251 test -z "$as_dir" && as_dir=.
11252 for ac_exec_ext in '' $ac_executable_extensions; do
11253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11254 ac_cv_prog_RANLIB="${ncn_progname}"
11255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11256 break 2
11257 fi
11258 done
11259 done
11260 IFS=$as_save_IFS
11261
11262 fi
11263 fi
11264 RANLIB=$ac_cv_prog_RANLIB
11265 if test -n "$RANLIB"; then
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11267 $as_echo "$RANLIB" >&6; }
11268 else
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11270 $as_echo "no" >&6; }
11271 fi
11272
11273
11274 fi
11275 test -n "$ac_cv_prog_RANLIB" && break
11276 done
11277
11278 if test -z "$ac_cv_prog_RANLIB" ; then
11279 RANLIB="true"
11280 fi
11281
11282
11283
11284 if test -n "$STRIP"; then
11285 ac_cv_prog_STRIP=$STRIP
11286 elif test -n "$ac_cv_prog_STRIP"; then
11287 STRIP=$ac_cv_prog_STRIP
11288 fi
11289
11290 if test -n "$ac_cv_prog_STRIP"; then
11291 for ncn_progname in strip; do
11292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11293 set dummy ${ncn_progname}; ac_word=$2
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11295 $as_echo_n "checking for $ac_word... " >&6; }
11296 if ${ac_cv_prog_STRIP+:} false; then :
11297 $as_echo_n "(cached) " >&6
11298 else
11299 if test -n "$STRIP"; then
11300 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11301 else
11302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11303 for as_dir in $PATH
11304 do
11305 IFS=$as_save_IFS
11306 test -z "$as_dir" && as_dir=.
11307 for ac_exec_ext in '' $ac_executable_extensions; do
11308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11309 ac_cv_prog_STRIP="${ncn_progname}"
11310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11311 break 2
11312 fi
11313 done
11314 done
11315 IFS=$as_save_IFS
11316
11317 fi
11318 fi
11319 STRIP=$ac_cv_prog_STRIP
11320 if test -n "$STRIP"; then
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11322 $as_echo "$STRIP" >&6; }
11323 else
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11325 $as_echo "no" >&6; }
11326 fi
11327
11328
11329 done
11330 fi
11331
11332 for ncn_progname in strip; do
11333 if test -n "$ncn_tool_prefix"; then
11334 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11335 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11337 $as_echo_n "checking for $ac_word... " >&6; }
11338 if ${ac_cv_prog_STRIP+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 if test -n "$STRIP"; then
11342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11343 else
11344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11345 for as_dir in $PATH
11346 do
11347 IFS=$as_save_IFS
11348 test -z "$as_dir" && as_dir=.
11349 for ac_exec_ext in '' $ac_executable_extensions; do
11350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11351 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11353 break 2
11354 fi
11355 done
11356 done
11357 IFS=$as_save_IFS
11358
11359 fi
11360 fi
11361 STRIP=$ac_cv_prog_STRIP
11362 if test -n "$STRIP"; then
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11364 $as_echo "$STRIP" >&6; }
11365 else
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11368 fi
11369
11370
11371 fi
11372 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11374 set dummy ${ncn_progname}; ac_word=$2
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11376 $as_echo_n "checking for $ac_word... " >&6; }
11377 if ${ac_cv_prog_STRIP+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 if test -n "$STRIP"; then
11381 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11382 else
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH
11385 do
11386 IFS=$as_save_IFS
11387 test -z "$as_dir" && as_dir=.
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11390 ac_cv_prog_STRIP="${ncn_progname}"
11391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11392 break 2
11393 fi
11394 done
11395 done
11396 IFS=$as_save_IFS
11397
11398 fi
11399 fi
11400 STRIP=$ac_cv_prog_STRIP
11401 if test -n "$STRIP"; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11403 $as_echo "$STRIP" >&6; }
11404 else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 fi
11408
11409
11410 fi
11411 test -n "$ac_cv_prog_STRIP" && break
11412 done
11413
11414 if test -z "$ac_cv_prog_STRIP" ; then
11415 STRIP="true"
11416 fi
11417
11418
11419
11420 if test -n "$WINDRES"; then
11421 ac_cv_prog_WINDRES=$WINDRES
11422 elif test -n "$ac_cv_prog_WINDRES"; then
11423 WINDRES=$ac_cv_prog_WINDRES
11424 fi
11425
11426 if test -n "$ac_cv_prog_WINDRES"; then
11427 for ncn_progname in windres; do
11428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11429 set dummy ${ncn_progname}; ac_word=$2
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11431 $as_echo_n "checking for $ac_word... " >&6; }
11432 if ${ac_cv_prog_WINDRES+:} false; then :
11433 $as_echo_n "(cached) " >&6
11434 else
11435 if test -n "$WINDRES"; then
11436 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11437 else
11438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439 for as_dir in $PATH
11440 do
11441 IFS=$as_save_IFS
11442 test -z "$as_dir" && as_dir=.
11443 for ac_exec_ext in '' $ac_executable_extensions; do
11444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11445 ac_cv_prog_WINDRES="${ncn_progname}"
11446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11447 break 2
11448 fi
11449 done
11450 done
11451 IFS=$as_save_IFS
11452
11453 fi
11454 fi
11455 WINDRES=$ac_cv_prog_WINDRES
11456 if test -n "$WINDRES"; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11458 $as_echo "$WINDRES" >&6; }
11459 else
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11462 fi
11463
11464
11465 done
11466 fi
11467
11468 for ncn_progname in windres; do
11469 if test -n "$ncn_tool_prefix"; then
11470 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11471 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473 $as_echo_n "checking for $ac_word... " >&6; }
11474 if ${ac_cv_prog_WINDRES+:} false; then :
11475 $as_echo_n "(cached) " >&6
11476 else
11477 if test -n "$WINDRES"; then
11478 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11479 else
11480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481 for as_dir in $PATH
11482 do
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
11485 for ac_exec_ext in '' $ac_executable_extensions; do
11486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11487 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11489 break 2
11490 fi
11491 done
11492 done
11493 IFS=$as_save_IFS
11494
11495 fi
11496 fi
11497 WINDRES=$ac_cv_prog_WINDRES
11498 if test -n "$WINDRES"; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11500 $as_echo "$WINDRES" >&6; }
11501 else
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503 $as_echo "no" >&6; }
11504 fi
11505
11506
11507 fi
11508 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11510 set dummy ${ncn_progname}; ac_word=$2
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512 $as_echo_n "checking for $ac_word... " >&6; }
11513 if ${ac_cv_prog_WINDRES+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 if test -n "$WINDRES"; then
11517 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11518 else
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $PATH
11521 do
11522 IFS=$as_save_IFS
11523 test -z "$as_dir" && as_dir=.
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11526 ac_cv_prog_WINDRES="${ncn_progname}"
11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11528 break 2
11529 fi
11530 done
11531 done
11532 IFS=$as_save_IFS
11533
11534 fi
11535 fi
11536 WINDRES=$ac_cv_prog_WINDRES
11537 if test -n "$WINDRES"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11539 $as_echo "$WINDRES" >&6; }
11540 else
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11543 fi
11544
11545
11546 fi
11547 test -n "$ac_cv_prog_WINDRES" && break
11548 done
11549
11550 if test -z "$ac_cv_prog_WINDRES" ; then
11551 set dummy windres
11552 if test $build = $host ; then
11553 WINDRES="$2"
11554 else
11555 WINDRES="${ncn_tool_prefix}$2"
11556 fi
11557 fi
11558
11559
11560
11561 if test -n "$WINDMC"; then
11562 ac_cv_prog_WINDMC=$WINDMC
11563 elif test -n "$ac_cv_prog_WINDMC"; then
11564 WINDMC=$ac_cv_prog_WINDMC
11565 fi
11566
11567 if test -n "$ac_cv_prog_WINDMC"; then
11568 for ncn_progname in windmc; do
11569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11570 set dummy ${ncn_progname}; ac_word=$2
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11572 $as_echo_n "checking for $ac_word... " >&6; }
11573 if ${ac_cv_prog_WINDMC+:} false; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 if test -n "$WINDMC"; then
11577 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11578 else
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11581 do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586 ac_cv_prog_WINDMC="${ncn_progname}"
11587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 break 2
11589 fi
11590 done
11591 done
11592 IFS=$as_save_IFS
11593
11594 fi
11595 fi
11596 WINDMC=$ac_cv_prog_WINDMC
11597 if test -n "$WINDMC"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11599 $as_echo "$WINDMC" >&6; }
11600 else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11603 fi
11604
11605
11606 done
11607 fi
11608
11609 for ncn_progname in windmc; do
11610 if test -n "$ncn_tool_prefix"; then
11611 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11612 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614 $as_echo_n "checking for $ac_word... " >&6; }
11615 if ${ac_cv_prog_WINDMC+:} false; then :
11616 $as_echo_n "(cached) " >&6
11617 else
11618 if test -n "$WINDMC"; then
11619 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11620 else
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11623 do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11628 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 break 2
11631 fi
11632 done
11633 done
11634 IFS=$as_save_IFS
11635
11636 fi
11637 fi
11638 WINDMC=$ac_cv_prog_WINDMC
11639 if test -n "$WINDMC"; then
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11641 $as_echo "$WINDMC" >&6; }
11642 else
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11645 fi
11646
11647
11648 fi
11649 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11651 set dummy ${ncn_progname}; ac_word=$2
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11653 $as_echo_n "checking for $ac_word... " >&6; }
11654 if ${ac_cv_prog_WINDMC+:} false; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 if test -n "$WINDMC"; then
11658 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11659 else
11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11662 do
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11667 ac_cv_prog_WINDMC="${ncn_progname}"
11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 break 2
11670 fi
11671 done
11672 done
11673 IFS=$as_save_IFS
11674
11675 fi
11676 fi
11677 WINDMC=$ac_cv_prog_WINDMC
11678 if test -n "$WINDMC"; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11680 $as_echo "$WINDMC" >&6; }
11681 else
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11684 fi
11685
11686
11687 fi
11688 test -n "$ac_cv_prog_WINDMC" && break
11689 done
11690
11691 if test -z "$ac_cv_prog_WINDMC" ; then
11692 set dummy windmc
11693 if test $build = $host ; then
11694 WINDMC="$2"
11695 else
11696 WINDMC="${ncn_tool_prefix}$2"
11697 fi
11698 fi
11699
11700
11701
11702 if test -n "$OBJCOPY"; then
11703 ac_cv_prog_OBJCOPY=$OBJCOPY
11704 elif test -n "$ac_cv_prog_OBJCOPY"; then
11705 OBJCOPY=$ac_cv_prog_OBJCOPY
11706 fi
11707
11708 if test -n "$ac_cv_prog_OBJCOPY"; then
11709 for ncn_progname in objcopy; do
11710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11711 set dummy ${ncn_progname}; ac_word=$2
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11713 $as_echo_n "checking for $ac_word... " >&6; }
11714 if ${ac_cv_prog_OBJCOPY+:} false; then :
11715 $as_echo_n "(cached) " >&6
11716 else
11717 if test -n "$OBJCOPY"; then
11718 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11719 else
11720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721 for as_dir in $PATH
11722 do
11723 IFS=$as_save_IFS
11724 test -z "$as_dir" && as_dir=.
11725 for ac_exec_ext in '' $ac_executable_extensions; do
11726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11727 ac_cv_prog_OBJCOPY="${ncn_progname}"
11728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11729 break 2
11730 fi
11731 done
11732 done
11733 IFS=$as_save_IFS
11734
11735 fi
11736 fi
11737 OBJCOPY=$ac_cv_prog_OBJCOPY
11738 if test -n "$OBJCOPY"; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11740 $as_echo "$OBJCOPY" >&6; }
11741 else
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743 $as_echo "no" >&6; }
11744 fi
11745
11746
11747 done
11748 fi
11749
11750 for ncn_progname in objcopy; do
11751 if test -n "$ncn_tool_prefix"; then
11752 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11753 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11755 $as_echo_n "checking for $ac_word... " >&6; }
11756 if ${ac_cv_prog_OBJCOPY+:} false; then :
11757 $as_echo_n "(cached) " >&6
11758 else
11759 if test -n "$OBJCOPY"; then
11760 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11761 else
11762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763 for as_dir in $PATH
11764 do
11765 IFS=$as_save_IFS
11766 test -z "$as_dir" && as_dir=.
11767 for ac_exec_ext in '' $ac_executable_extensions; do
11768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11769 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
11770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11771 break 2
11772 fi
11773 done
11774 done
11775 IFS=$as_save_IFS
11776
11777 fi
11778 fi
11779 OBJCOPY=$ac_cv_prog_OBJCOPY
11780 if test -n "$OBJCOPY"; then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11782 $as_echo "$OBJCOPY" >&6; }
11783 else
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 $as_echo "no" >&6; }
11786 fi
11787
11788
11789 fi
11790 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
11791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11792 set dummy ${ncn_progname}; ac_word=$2
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11794 $as_echo_n "checking for $ac_word... " >&6; }
11795 if ${ac_cv_prog_OBJCOPY+:} false; then :
11796 $as_echo_n "(cached) " >&6
11797 else
11798 if test -n "$OBJCOPY"; then
11799 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11800 else
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802 for as_dir in $PATH
11803 do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11808 ac_cv_prog_OBJCOPY="${ncn_progname}"
11809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 break 2
11811 fi
11812 done
11813 done
11814 IFS=$as_save_IFS
11815
11816 fi
11817 fi
11818 OBJCOPY=$ac_cv_prog_OBJCOPY
11819 if test -n "$OBJCOPY"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11821 $as_echo "$OBJCOPY" >&6; }
11822 else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11825 fi
11826
11827
11828 fi
11829 test -n "$ac_cv_prog_OBJCOPY" && break
11830 done
11831
11832 if test -z "$ac_cv_prog_OBJCOPY" ; then
11833 set dummy objcopy
11834 if test $build = $host ; then
11835 OBJCOPY="$2"
11836 else
11837 OBJCOPY="${ncn_tool_prefix}$2"
11838 fi
11839 fi
11840
11841
11842
11843 if test -n "$OBJDUMP"; then
11844 ac_cv_prog_OBJDUMP=$OBJDUMP
11845 elif test -n "$ac_cv_prog_OBJDUMP"; then
11846 OBJDUMP=$ac_cv_prog_OBJDUMP
11847 fi
11848
11849 if test -n "$ac_cv_prog_OBJDUMP"; then
11850 for ncn_progname in objdump; do
11851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11852 set dummy ${ncn_progname}; ac_word=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if ${ac_cv_prog_OBJDUMP+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 if test -n "$OBJDUMP"; then
11859 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11860 else
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862 for as_dir in $PATH
11863 do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11868 ac_cv_prog_OBJDUMP="${ncn_progname}"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11871 fi
11872 done
11873 done
11874 IFS=$as_save_IFS
11875
11876 fi
11877 fi
11878 OBJDUMP=$ac_cv_prog_OBJDUMP
11879 if test -n "$OBJDUMP"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11881 $as_echo "$OBJDUMP" >&6; }
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11885 fi
11886
11887
11888 done
11889 fi
11890
11891 for ncn_progname in objdump; do
11892 if test -n "$ncn_tool_prefix"; then
11893 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11894 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_prog_OBJDUMP+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 if test -n "$OBJDUMP"; then
11901 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11902 else
11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904 for as_dir in $PATH
11905 do
11906 IFS=$as_save_IFS
11907 test -z "$as_dir" && as_dir=.
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11910 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
11911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11912 break 2
11913 fi
11914 done
11915 done
11916 IFS=$as_save_IFS
11917
11918 fi
11919 fi
11920 OBJDUMP=$ac_cv_prog_OBJDUMP
11921 if test -n "$OBJDUMP"; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11923 $as_echo "$OBJDUMP" >&6; }
11924 else
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926 $as_echo "no" >&6; }
11927 fi
11928
11929
11930 fi
11931 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
11932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11933 set dummy ${ncn_progname}; ac_word=$2
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11935 $as_echo_n "checking for $ac_word... " >&6; }
11936 if ${ac_cv_prog_OBJDUMP+:} false; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 if test -n "$OBJDUMP"; then
11940 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11941 else
11942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11943 for as_dir in $PATH
11944 do
11945 IFS=$as_save_IFS
11946 test -z "$as_dir" && as_dir=.
11947 for ac_exec_ext in '' $ac_executable_extensions; do
11948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11949 ac_cv_prog_OBJDUMP="${ncn_progname}"
11950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11951 break 2
11952 fi
11953 done
11954 done
11955 IFS=$as_save_IFS
11956
11957 fi
11958 fi
11959 OBJDUMP=$ac_cv_prog_OBJDUMP
11960 if test -n "$OBJDUMP"; then
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11962 $as_echo "$OBJDUMP" >&6; }
11963 else
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965 $as_echo "no" >&6; }
11966 fi
11967
11968
11969 fi
11970 test -n "$ac_cv_prog_OBJDUMP" && break
11971 done
11972
11973 if test -z "$ac_cv_prog_OBJDUMP" ; then
11974 set dummy objdump
11975 if test $build = $host ; then
11976 OBJDUMP="$2"
11977 else
11978 OBJDUMP="${ncn_tool_prefix}$2"
11979 fi
11980 fi
11981
11982
11983
11984 if test -n "$OTOOL"; then
11985 ac_cv_prog_OTOOL=$OTOOL
11986 elif test -n "$ac_cv_prog_OTOOL"; then
11987 OTOOL=$ac_cv_prog_OTOOL
11988 fi
11989
11990 if test -n "$ac_cv_prog_OTOOL"; then
11991 for ncn_progname in otool; do
11992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11993 set dummy ${ncn_progname}; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if ${ac_cv_prog_OTOOL+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 if test -n "$OTOOL"; then
12000 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12001 else
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12004 do
12005 IFS=$as_save_IFS
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12009 ac_cv_prog_OTOOL="${ncn_progname}"
12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 break 2
12012 fi
12013 done
12014 done
12015 IFS=$as_save_IFS
12016
12017 fi
12018 fi
12019 OTOOL=$ac_cv_prog_OTOOL
12020 if test -n "$OTOOL"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12022 $as_echo "$OTOOL" >&6; }
12023 else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12026 fi
12027
12028
12029 done
12030 fi
12031
12032 for ncn_progname in otool; do
12033 if test -n "$ncn_tool_prefix"; then
12034 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12035 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037 $as_echo_n "checking for $ac_word... " >&6; }
12038 if ${ac_cv_prog_OTOOL+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 if test -n "$OTOOL"; then
12042 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12043 else
12044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045 for as_dir in $PATH
12046 do
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12051 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12053 break 2
12054 fi
12055 done
12056 done
12057 IFS=$as_save_IFS
12058
12059 fi
12060 fi
12061 OTOOL=$ac_cv_prog_OTOOL
12062 if test -n "$OTOOL"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12064 $as_echo "$OTOOL" >&6; }
12065 else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12068 fi
12069
12070
12071 fi
12072 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12074 set dummy ${ncn_progname}; ac_word=$2
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12076 $as_echo_n "checking for $ac_word... " >&6; }
12077 if ${ac_cv_prog_OTOOL+:} false; then :
12078 $as_echo_n "(cached) " >&6
12079 else
12080 if test -n "$OTOOL"; then
12081 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12082 else
12083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084 for as_dir in $PATH
12085 do
12086 IFS=$as_save_IFS
12087 test -z "$as_dir" && as_dir=.
12088 for ac_exec_ext in '' $ac_executable_extensions; do
12089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12090 ac_cv_prog_OTOOL="${ncn_progname}"
12091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12092 break 2
12093 fi
12094 done
12095 done
12096 IFS=$as_save_IFS
12097
12098 fi
12099 fi
12100 OTOOL=$ac_cv_prog_OTOOL
12101 if test -n "$OTOOL"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12103 $as_echo "$OTOOL" >&6; }
12104 else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; }
12107 fi
12108
12109
12110 fi
12111 test -n "$ac_cv_prog_OTOOL" && break
12112 done
12113
12114 if test -z "$ac_cv_prog_OTOOL" ; then
12115 set dummy otool
12116 if test $build = $host ; then
12117 OTOOL="$2"
12118 else
12119 OTOOL="${ncn_tool_prefix}$2"
12120 fi
12121 fi
12122
12123
12124
12125 if test -n "$READELF"; then
12126 ac_cv_prog_READELF=$READELF
12127 elif test -n "$ac_cv_prog_READELF"; then
12128 READELF=$ac_cv_prog_READELF
12129 fi
12130
12131 if test -n "$ac_cv_prog_READELF"; then
12132 for ncn_progname in readelf; do
12133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12134 set dummy ${ncn_progname}; ac_word=$2
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136 $as_echo_n "checking for $ac_word... " >&6; }
12137 if ${ac_cv_prog_READELF+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 if test -n "$READELF"; then
12141 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12142 else
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144 for as_dir in $PATH
12145 do
12146 IFS=$as_save_IFS
12147 test -z "$as_dir" && as_dir=.
12148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12150 ac_cv_prog_READELF="${ncn_progname}"
12151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12152 break 2
12153 fi
12154 done
12155 done
12156 IFS=$as_save_IFS
12157
12158 fi
12159 fi
12160 READELF=$ac_cv_prog_READELF
12161 if test -n "$READELF"; then
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12163 $as_echo "$READELF" >&6; }
12164 else
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166 $as_echo "no" >&6; }
12167 fi
12168
12169
12170 done
12171 fi
12172
12173 for ncn_progname in readelf; do
12174 if test -n "$ncn_tool_prefix"; then
12175 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12176 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if ${ac_cv_prog_READELF+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 if test -n "$READELF"; then
12183 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12184 else
12185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12186 for as_dir in $PATH
12187 do
12188 IFS=$as_save_IFS
12189 test -z "$as_dir" && as_dir=.
12190 for ac_exec_ext in '' $ac_executable_extensions; do
12191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12192 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12194 break 2
12195 fi
12196 done
12197 done
12198 IFS=$as_save_IFS
12199
12200 fi
12201 fi
12202 READELF=$ac_cv_prog_READELF
12203 if test -n "$READELF"; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12205 $as_echo "$READELF" >&6; }
12206 else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208 $as_echo "no" >&6; }
12209 fi
12210
12211
12212 fi
12213 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12215 set dummy ${ncn_progname}; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217 $as_echo_n "checking for $ac_word... " >&6; }
12218 if ${ac_cv_prog_READELF+:} false; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 if test -n "$READELF"; then
12222 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12223 else
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12226 do
12227 IFS=$as_save_IFS
12228 test -z "$as_dir" && as_dir=.
12229 for ac_exec_ext in '' $ac_executable_extensions; do
12230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12231 ac_cv_prog_READELF="${ncn_progname}"
12232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12233 break 2
12234 fi
12235 done
12236 done
12237 IFS=$as_save_IFS
12238
12239 fi
12240 fi
12241 READELF=$ac_cv_prog_READELF
12242 if test -n "$READELF"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12244 $as_echo "$READELF" >&6; }
12245 else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12248 fi
12249
12250
12251 fi
12252 test -n "$ac_cv_prog_READELF" && break
12253 done
12254
12255 if test -z "$ac_cv_prog_READELF" ; then
12256 set dummy readelf
12257 if test $build = $host ; then
12258 READELF="$2"
12259 else
12260 READELF="${ncn_tool_prefix}$2"
12261 fi
12262 fi
12263
12264
12265
12266
12267
12268
12269 # Target tools.
12270
12271 # Check whether --with-build-time-tools was given.
12272 if test "${with_build_time_tools+set}" = set; then :
12273 withval=$with_build_time_tools; case x"$withval" in
12274 x/*) ;;
12275 *)
12276 with_build_time_tools=
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12278 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12279 ;;
12280 esac
12281 else
12282 with_build_time_tools=
12283 fi
12284
12285
12286
12287
12288 if test -n "$CC_FOR_TARGET"; then
12289 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12290 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12291 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12292 fi
12293
12294 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12295 for ncn_progname in cc gcc; do
12296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12297 set dummy ${ncn_progname}; ac_word=$2
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12299 $as_echo_n "checking for $ac_word... " >&6; }
12300 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 if test -n "$CC_FOR_TARGET"; then
12304 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12305 else
12306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307 for as_dir in $PATH
12308 do
12309 IFS=$as_save_IFS
12310 test -z "$as_dir" && as_dir=.
12311 for ac_exec_ext in '' $ac_executable_extensions; do
12312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12313 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12315 break 2
12316 fi
12317 done
12318 done
12319 IFS=$as_save_IFS
12320
12321 fi
12322 fi
12323 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12324 if test -n "$CC_FOR_TARGET"; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12326 $as_echo "$CC_FOR_TARGET" >&6; }
12327 else
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12330 fi
12331
12332
12333 done
12334 fi
12335
12336 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12337 for ncn_progname in cc gcc; do
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12339 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12340 if test -x $with_build_time_tools/${ncn_progname}; then
12341 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12343 $as_echo "yes" >&6; }
12344 break
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12348 fi
12349 done
12350 fi
12351
12352 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12353 for ncn_progname in cc gcc; do
12354 if test -n "$ncn_target_tool_prefix"; then
12355 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12356 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358 $as_echo_n "checking for $ac_word... " >&6; }
12359 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 if test -n "$CC_FOR_TARGET"; then
12363 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12364 else
12365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366 for as_dir in $PATH
12367 do
12368 IFS=$as_save_IFS
12369 test -z "$as_dir" && as_dir=.
12370 for ac_exec_ext in '' $ac_executable_extensions; do
12371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12372 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12374 break 2
12375 fi
12376 done
12377 done
12378 IFS=$as_save_IFS
12379
12380 fi
12381 fi
12382 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12383 if test -n "$CC_FOR_TARGET"; then
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12385 $as_echo "$CC_FOR_TARGET" >&6; }
12386 else
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388 $as_echo "no" >&6; }
12389 fi
12390
12391
12392 fi
12393 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12395 set dummy ${ncn_progname}; ac_word=$2
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397 $as_echo_n "checking for $ac_word... " >&6; }
12398 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 if test -n "$CC_FOR_TARGET"; then
12402 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12403 else
12404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405 for as_dir in $PATH
12406 do
12407 IFS=$as_save_IFS
12408 test -z "$as_dir" && as_dir=.
12409 for ac_exec_ext in '' $ac_executable_extensions; do
12410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12411 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413 break 2
12414 fi
12415 done
12416 done
12417 IFS=$as_save_IFS
12418
12419 fi
12420 fi
12421 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12422 if test -n "$CC_FOR_TARGET"; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12424 $as_echo "$CC_FOR_TARGET" >&6; }
12425 else
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 $as_echo "no" >&6; }
12428 fi
12429
12430
12431 fi
12432 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12433 done
12434 fi
12435
12436 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12437 set dummy cc gcc
12438 if test $build = $target ; then
12439 CC_FOR_TARGET="$2"
12440 else
12441 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12442 fi
12443 else
12444 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12445 fi
12446
12447
12448
12449 if test -n "$CXX_FOR_TARGET"; then
12450 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12451 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12452 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12453 fi
12454
12455 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12456 for ncn_progname in c++ g++ cxx gxx; do
12457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12458 set dummy ${ncn_progname}; ac_word=$2
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12460 $as_echo_n "checking for $ac_word... " >&6; }
12461 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12462 $as_echo_n "(cached) " >&6
12463 else
12464 if test -n "$CXX_FOR_TARGET"; then
12465 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12466 else
12467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12468 for as_dir in $PATH
12469 do
12470 IFS=$as_save_IFS
12471 test -z "$as_dir" && as_dir=.
12472 for ac_exec_ext in '' $ac_executable_extensions; do
12473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12474 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12476 break 2
12477 fi
12478 done
12479 done
12480 IFS=$as_save_IFS
12481
12482 fi
12483 fi
12484 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12485 if test -n "$CXX_FOR_TARGET"; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12487 $as_echo "$CXX_FOR_TARGET" >&6; }
12488 else
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; }
12491 fi
12492
12493
12494 done
12495 fi
12496
12497 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12498 for ncn_progname in c++ g++ cxx gxx; do
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12500 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12501 if test -x $with_build_time_tools/${ncn_progname}; then
12502 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12504 $as_echo "yes" >&6; }
12505 break
12506 else
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508 $as_echo "no" >&6; }
12509 fi
12510 done
12511 fi
12512
12513 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12514 for ncn_progname in c++ g++ cxx gxx; do
12515 if test -n "$ncn_target_tool_prefix"; then
12516 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12517 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12519 $as_echo_n "checking for $ac_word... " >&6; }
12520 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12521 $as_echo_n "(cached) " >&6
12522 else
12523 if test -n "$CXX_FOR_TARGET"; then
12524 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12525 else
12526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12527 for as_dir in $PATH
12528 do
12529 IFS=$as_save_IFS
12530 test -z "$as_dir" && as_dir=.
12531 for ac_exec_ext in '' $ac_executable_extensions; do
12532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12533 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12535 break 2
12536 fi
12537 done
12538 done
12539 IFS=$as_save_IFS
12540
12541 fi
12542 fi
12543 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12544 if test -n "$CXX_FOR_TARGET"; then
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12546 $as_echo "$CXX_FOR_TARGET" >&6; }
12547 else
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12550 fi
12551
12552
12553 fi
12554 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
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_CXX_FOR_TARGET+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 if test -n "$CXX_FOR_TARGET"; then
12563 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12564 else
12565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566 for as_dir in $PATH
12567 do
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_CXX_FOR_TARGET="${ncn_progname}"
12573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12574 break 2
12575 fi
12576 done
12577 done
12578 IFS=$as_save_IFS
12579
12580 fi
12581 fi
12582 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12583 if test -n "$CXX_FOR_TARGET"; then
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12585 $as_echo "$CXX_FOR_TARGET" >&6; }
12586 else
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12588 $as_echo "no" >&6; }
12589 fi
12590
12591
12592 fi
12593 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12594 done
12595 fi
12596
12597 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12598 set dummy c++ g++ cxx gxx
12599 if test $build = $target ; then
12600 CXX_FOR_TARGET="$2"
12601 else
12602 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12603 fi
12604 else
12605 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12606 fi
12607
12608
12609
12610 if test -n "$GCC_FOR_TARGET"; then
12611 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12612 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12613 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12614 fi
12615
12616 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12617 for ncn_progname in gcc; do
12618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12619 set dummy ${ncn_progname}; ac_word=$2
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12621 $as_echo_n "checking for $ac_word... " >&6; }
12622 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12623 $as_echo_n "(cached) " >&6
12624 else
12625 if test -n "$GCC_FOR_TARGET"; then
12626 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12627 else
12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12629 for as_dir in $PATH
12630 do
12631 IFS=$as_save_IFS
12632 test -z "$as_dir" && as_dir=.
12633 for ac_exec_ext in '' $ac_executable_extensions; do
12634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12635 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12637 break 2
12638 fi
12639 done
12640 done
12641 IFS=$as_save_IFS
12642
12643 fi
12644 fi
12645 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12646 if test -n "$GCC_FOR_TARGET"; then
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12648 $as_echo "$GCC_FOR_TARGET" >&6; }
12649 else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651 $as_echo "no" >&6; }
12652 fi
12653
12654
12655 done
12656 fi
12657
12658 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12659 for ncn_progname in gcc; do
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12661 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12662 if test -x $with_build_time_tools/${ncn_progname}; then
12663 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12665 $as_echo "yes" >&6; }
12666 break
12667 else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12670 fi
12671 done
12672 fi
12673
12674 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
12675 for ncn_progname in gcc; do
12676 if test -n "$ncn_target_tool_prefix"; then
12677 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12678 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12680 $as_echo_n "checking for $ac_word... " >&6; }
12681 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 if test -n "$GCC_FOR_TARGET"; then
12685 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12686 else
12687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12688 for as_dir in $PATH
12689 do
12690 IFS=$as_save_IFS
12691 test -z "$as_dir" && as_dir=.
12692 for ac_exec_ext in '' $ac_executable_extensions; do
12693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12694 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12696 break 2
12697 fi
12698 done
12699 done
12700 IFS=$as_save_IFS
12701
12702 fi
12703 fi
12704 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12705 if test -n "$GCC_FOR_TARGET"; then
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12707 $as_echo "$GCC_FOR_TARGET" >&6; }
12708 else
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12711 fi
12712
12713
12714 fi
12715 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
12716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12717 set dummy ${ncn_progname}; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719 $as_echo_n "checking for $ac_word... " >&6; }
12720 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 if test -n "$GCC_FOR_TARGET"; then
12724 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12725 else
12726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727 for as_dir in $PATH
12728 do
12729 IFS=$as_save_IFS
12730 test -z "$as_dir" && as_dir=.
12731 for ac_exec_ext in '' $ac_executable_extensions; do
12732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12733 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12735 break 2
12736 fi
12737 done
12738 done
12739 IFS=$as_save_IFS
12740
12741 fi
12742 fi
12743 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12744 if test -n "$GCC_FOR_TARGET"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12746 $as_echo "$GCC_FOR_TARGET" >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12750 fi
12751
12752
12753 fi
12754 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
12755 done
12756 fi
12757
12758 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
12759 GCC_FOR_TARGET="${CC_FOR_TARGET}"
12760 else
12761 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
12762 fi
12763
12764
12765
12766 if test -n "$GFORTRAN_FOR_TARGET"; then
12767 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
12768 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12769 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12770 fi
12771
12772 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12773 for ncn_progname in gfortran; do
12774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12775 set dummy ${ncn_progname}; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 $as_echo_n "checking for $ac_word... " >&6; }
12778 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 if test -n "$GFORTRAN_FOR_TARGET"; then
12782 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12783 else
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12791 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12794 fi
12795 done
12796 done
12797 IFS=$as_save_IFS
12798
12799 fi
12800 fi
12801 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12802 if test -n "$GFORTRAN_FOR_TARGET"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12804 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12805 else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12808 fi
12809
12810
12811 done
12812 fi
12813
12814 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
12815 for ncn_progname in gfortran; do
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12817 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12818 if test -x $with_build_time_tools/${ncn_progname}; then
12819 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12821 $as_echo "yes" >&6; }
12822 break
12823 else
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825 $as_echo "no" >&6; }
12826 fi
12827 done
12828 fi
12829
12830 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12831 for ncn_progname in gfortran; do
12832 if test -n "$ncn_target_tool_prefix"; then
12833 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12834 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12836 $as_echo_n "checking for $ac_word... " >&6; }
12837 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12838 $as_echo_n "(cached) " >&6
12839 else
12840 if test -n "$GFORTRAN_FOR_TARGET"; then
12841 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12842 else
12843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844 for as_dir in $PATH
12845 do
12846 IFS=$as_save_IFS
12847 test -z "$as_dir" && as_dir=.
12848 for ac_exec_ext in '' $ac_executable_extensions; do
12849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12850 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12852 break 2
12853 fi
12854 done
12855 done
12856 IFS=$as_save_IFS
12857
12858 fi
12859 fi
12860 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12861 if test -n "$GFORTRAN_FOR_TARGET"; then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12863 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12864 else
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12867 fi
12868
12869
12870 fi
12871 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
12872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12873 set dummy ${ncn_progname}; ac_word=$2
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12875 $as_echo_n "checking for $ac_word... " >&6; }
12876 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 if test -n "$GFORTRAN_FOR_TARGET"; then
12880 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12881 else
12882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in $PATH
12884 do
12885 IFS=$as_save_IFS
12886 test -z "$as_dir" && as_dir=.
12887 for ac_exec_ext in '' $ac_executable_extensions; do
12888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12889 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
12890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12891 break 2
12892 fi
12893 done
12894 done
12895 IFS=$as_save_IFS
12896
12897 fi
12898 fi
12899 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12900 if test -n "$GFORTRAN_FOR_TARGET"; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12902 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12903 else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12906 fi
12907
12908
12909 fi
12910 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
12911 done
12912 fi
12913
12914 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
12915 set dummy gfortran
12916 if test $build = $target ; then
12917 GFORTRAN_FOR_TARGET="$2"
12918 else
12919 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
12920 fi
12921 else
12922 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
12923 fi
12924
12925
12926
12927 if test -n "$GOC_FOR_TARGET"; then
12928 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
12929 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
12930 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
12931 fi
12932
12933 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
12934 for ncn_progname in gccgo; do
12935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12936 set dummy ${ncn_progname}; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 if test -n "$GOC_FOR_TARGET"; then
12943 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
12944 else
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12947 do
12948 IFS=$as_save_IFS
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12952 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
12953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12954 break 2
12955 fi
12956 done
12957 done
12958 IFS=$as_save_IFS
12959
12960 fi
12961 fi
12962 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
12963 if test -n "$GOC_FOR_TARGET"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
12965 $as_echo "$GOC_FOR_TARGET" >&6; }
12966 else
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968 $as_echo "no" >&6; }
12969 fi
12970
12971
12972 done
12973 fi
12974
12975 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12976 for ncn_progname in gccgo; do
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12978 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12979 if test -x $with_build_time_tools/${ncn_progname}; then
12980 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12982 $as_echo "yes" >&6; }
12983 break
12984 else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12987 fi
12988 done
12989 fi
12990
12991 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
12992 for ncn_progname in gccgo; do
12993 if test -n "$ncn_target_tool_prefix"; then
12994 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12995 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997 $as_echo_n "checking for $ac_word... " >&6; }
12998 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
12999 $as_echo_n "(cached) " >&6
13000 else
13001 if test -n "$GOC_FOR_TARGET"; then
13002 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13003 else
13004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $PATH
13006 do
13007 IFS=$as_save_IFS
13008 test -z "$as_dir" && as_dir=.
13009 for ac_exec_ext in '' $ac_executable_extensions; do
13010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13011 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13013 break 2
13014 fi
13015 done
13016 done
13017 IFS=$as_save_IFS
13018
13019 fi
13020 fi
13021 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13022 if test -n "$GOC_FOR_TARGET"; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13024 $as_echo "$GOC_FOR_TARGET" >&6; }
13025 else
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027 $as_echo "no" >&6; }
13028 fi
13029
13030
13031 fi
13032 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13034 set dummy ${ncn_progname}; ac_word=$2
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036 $as_echo_n "checking for $ac_word... " >&6; }
13037 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 if test -n "$GOC_FOR_TARGET"; then
13041 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13042 else
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044 for as_dir in $PATH
13045 do
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13050 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13053 fi
13054 done
13055 done
13056 IFS=$as_save_IFS
13057
13058 fi
13059 fi
13060 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13061 if test -n "$GOC_FOR_TARGET"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13063 $as_echo "$GOC_FOR_TARGET" >&6; }
13064 else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13067 fi
13068
13069
13070 fi
13071 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13072 done
13073 fi
13074
13075 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13076 set dummy gccgo
13077 if test $build = $target ; then
13078 GOC_FOR_TARGET="$2"
13079 else
13080 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13081 fi
13082 else
13083 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13084 fi
13085
13086
13087
13088 if test -n "$GDC_FOR_TARGET"; then
13089 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13090 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13091 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13092 fi
13093
13094 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13095 for ncn_progname in gdc; do
13096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13097 set dummy ${ncn_progname}; ac_word=$2
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13099 $as_echo_n "checking for $ac_word... " >&6; }
13100 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13101 $as_echo_n "(cached) " >&6
13102 else
13103 if test -n "$GDC_FOR_TARGET"; then
13104 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13105 else
13106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13107 for as_dir in $PATH
13108 do
13109 IFS=$as_save_IFS
13110 test -z "$as_dir" && as_dir=.
13111 for ac_exec_ext in '' $ac_executable_extensions; do
13112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13113 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13115 break 2
13116 fi
13117 done
13118 done
13119 IFS=$as_save_IFS
13120
13121 fi
13122 fi
13123 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13124 if test -n "$GDC_FOR_TARGET"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13126 $as_echo "$GDC_FOR_TARGET" >&6; }
13127 else
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13130 fi
13131
13132
13133 done
13134 fi
13135
13136 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13137 for ncn_progname in gdc; do
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13139 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13140 if test -x $with_build_time_tools/${ncn_progname}; then
13141 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13143 $as_echo "yes" >&6; }
13144 break
13145 else
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13147 $as_echo "no" >&6; }
13148 fi
13149 done
13150 fi
13151
13152 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13153 for ncn_progname in gdc; do
13154 if test -n "$ncn_target_tool_prefix"; then
13155 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13156 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158 $as_echo_n "checking for $ac_word... " >&6; }
13159 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 if test -n "$GDC_FOR_TARGET"; then
13163 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13164 else
13165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166 for as_dir in $PATH
13167 do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13172 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176 done
13177 done
13178 IFS=$as_save_IFS
13179
13180 fi
13181 fi
13182 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13183 if test -n "$GDC_FOR_TARGET"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13185 $as_echo "$GDC_FOR_TARGET" >&6; }
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13189 fi
13190
13191
13192 fi
13193 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13195 set dummy ${ncn_progname}; ac_word=$2
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197 $as_echo_n "checking for $ac_word... " >&6; }
13198 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 if test -n "$GDC_FOR_TARGET"; then
13202 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13203 else
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13206 do
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13211 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13214 fi
13215 done
13216 done
13217 IFS=$as_save_IFS
13218
13219 fi
13220 fi
13221 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13222 if test -n "$GDC_FOR_TARGET"; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13224 $as_echo "$GDC_FOR_TARGET" >&6; }
13225 else
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 $as_echo "no" >&6; }
13228 fi
13229
13230
13231 fi
13232 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13233 done
13234 fi
13235
13236 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13237 set dummy gdc
13238 if test $build = $target ; then
13239 GDC_FOR_TARGET="$2"
13240 else
13241 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13242 fi
13243 else
13244 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13245 fi
13246
13247
13248
13249 cat > conftest.c << \EOF
13250 #ifdef __GNUC__
13251 gcc_yay;
13252 #endif
13253 EOF
13254 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13255 have_gcc_for_target=yes
13256 else
13257 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13258 have_gcc_for_target=no
13259 fi
13260 rm conftest.c
13261
13262
13263
13264
13265 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13266 if test -n "$with_build_time_tools"; then
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13268 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13269 if test -x $with_build_time_tools/ar; then
13270 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13271 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13273 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13274 else
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 $as_echo "no" >&6; }
13277 fi
13278 elif test $build != $host && test $have_gcc_for_target = yes; then
13279 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13280 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13281 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13282 fi
13283 fi
13284 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13285 # Extract the first word of "ar", so it can be a program name with args.
13286 set dummy ar; ac_word=$2
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13288 $as_echo_n "checking for $ac_word... " >&6; }
13289 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 case $AR_FOR_TARGET in
13293 [\\/]* | ?:[\\/]*)
13294 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13295 ;;
13296 *)
13297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298 for as_dir in $gcc_cv_tool_dirs
13299 do
13300 IFS=$as_save_IFS
13301 test -z "$as_dir" && as_dir=.
13302 for ac_exec_ext in '' $ac_executable_extensions; do
13303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13304 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13306 break 2
13307 fi
13308 done
13309 done
13310 IFS=$as_save_IFS
13311
13312 ;;
13313 esac
13314 fi
13315 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13316 if test -n "$AR_FOR_TARGET"; then
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13318 $as_echo "$AR_FOR_TARGET" >&6; }
13319 else
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321 $as_echo "no" >&6; }
13322 fi
13323
13324
13325 fi
13326 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13327
13328
13329 if test -n "$AR_FOR_TARGET"; then
13330 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13331 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13332 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13333 fi
13334
13335 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13336 for ncn_progname in ar; do
13337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13338 set dummy ${ncn_progname}; ac_word=$2
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13340 $as_echo_n "checking for $ac_word... " >&6; }
13341 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13342 $as_echo_n "(cached) " >&6
13343 else
13344 if test -n "$AR_FOR_TARGET"; then
13345 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13346 else
13347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13348 for as_dir in $PATH
13349 do
13350 IFS=$as_save_IFS
13351 test -z "$as_dir" && as_dir=.
13352 for ac_exec_ext in '' $ac_executable_extensions; do
13353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13354 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13356 break 2
13357 fi
13358 done
13359 done
13360 IFS=$as_save_IFS
13361
13362 fi
13363 fi
13364 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13365 if test -n "$AR_FOR_TARGET"; then
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13367 $as_echo "$AR_FOR_TARGET" >&6; }
13368 else
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13371 fi
13372
13373
13374 done
13375 fi
13376
13377 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13378 for ncn_progname in ar; do
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13380 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13381 if test -x $with_build_time_tools/${ncn_progname}; then
13382 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13384 $as_echo "yes" >&6; }
13385 break
13386 else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388 $as_echo "no" >&6; }
13389 fi
13390 done
13391 fi
13392
13393 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13394 for ncn_progname in ar; do
13395 if test -n "$ncn_target_tool_prefix"; then
13396 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13397 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13399 $as_echo_n "checking for $ac_word... " >&6; }
13400 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13401 $as_echo_n "(cached) " >&6
13402 else
13403 if test -n "$AR_FOR_TARGET"; then
13404 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13405 else
13406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407 for as_dir in $PATH
13408 do
13409 IFS=$as_save_IFS
13410 test -z "$as_dir" && as_dir=.
13411 for ac_exec_ext in '' $ac_executable_extensions; do
13412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13413 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13415 break 2
13416 fi
13417 done
13418 done
13419 IFS=$as_save_IFS
13420
13421 fi
13422 fi
13423 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13424 if test -n "$AR_FOR_TARGET"; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13426 $as_echo "$AR_FOR_TARGET" >&6; }
13427 else
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429 $as_echo "no" >&6; }
13430 fi
13431
13432
13433 fi
13434 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13436 set dummy ${ncn_progname}; ac_word=$2
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13438 $as_echo_n "checking for $ac_word... " >&6; }
13439 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13440 $as_echo_n "(cached) " >&6
13441 else
13442 if test -n "$AR_FOR_TARGET"; then
13443 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13444 else
13445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13446 for as_dir in $PATH
13447 do
13448 IFS=$as_save_IFS
13449 test -z "$as_dir" && as_dir=.
13450 for ac_exec_ext in '' $ac_executable_extensions; do
13451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13452 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13454 break 2
13455 fi
13456 done
13457 done
13458 IFS=$as_save_IFS
13459
13460 fi
13461 fi
13462 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13463 if test -n "$AR_FOR_TARGET"; then
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13465 $as_echo "$AR_FOR_TARGET" >&6; }
13466 else
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13468 $as_echo "no" >&6; }
13469 fi
13470
13471
13472 fi
13473 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13474 done
13475 fi
13476
13477 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13478 set dummy ar
13479 if test $build = $target ; then
13480 AR_FOR_TARGET="$2"
13481 else
13482 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13483 fi
13484 else
13485 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13486 fi
13487
13488 else
13489 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13490 fi
13491
13492
13493
13494
13495 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13496 if test -n "$with_build_time_tools"; then
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13498 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
13499 if test -x $with_build_time_tools/as; then
13500 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13501 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13503 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13504 else
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506 $as_echo "no" >&6; }
13507 fi
13508 elif test $build != $host && test $have_gcc_for_target = yes; then
13509 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13510 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13511 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13512 fi
13513 fi
13514 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13515 # Extract the first word of "as", so it can be a program name with args.
13516 set dummy as; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13518 $as_echo_n "checking for $ac_word... " >&6; }
13519 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13522 case $AS_FOR_TARGET in
13523 [\\/]* | ?:[\\/]*)
13524 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13525 ;;
13526 *)
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $gcc_cv_tool_dirs
13529 do
13530 IFS=$as_save_IFS
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13534 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536 break 2
13537 fi
13538 done
13539 done
13540 IFS=$as_save_IFS
13541
13542 ;;
13543 esac
13544 fi
13545 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13546 if test -n "$AS_FOR_TARGET"; then
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13548 $as_echo "$AS_FOR_TARGET" >&6; }
13549 else
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551 $as_echo "no" >&6; }
13552 fi
13553
13554
13555 fi
13556 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13557
13558
13559 if test -n "$AS_FOR_TARGET"; then
13560 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13561 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13562 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13563 fi
13564
13565 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13566 for ncn_progname in as; do
13567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13568 set dummy ${ncn_progname}; ac_word=$2
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13570 $as_echo_n "checking for $ac_word... " >&6; }
13571 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13572 $as_echo_n "(cached) " >&6
13573 else
13574 if test -n "$AS_FOR_TARGET"; then
13575 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13576 else
13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13579 do
13580 IFS=$as_save_IFS
13581 test -z "$as_dir" && as_dir=.
13582 for ac_exec_ext in '' $ac_executable_extensions; do
13583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13584 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13586 break 2
13587 fi
13588 done
13589 done
13590 IFS=$as_save_IFS
13591
13592 fi
13593 fi
13594 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13595 if test -n "$AS_FOR_TARGET"; then
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13597 $as_echo "$AS_FOR_TARGET" >&6; }
13598 else
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13600 $as_echo "no" >&6; }
13601 fi
13602
13603
13604 done
13605 fi
13606
13607 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
13608 for ncn_progname in as; do
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13610 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13611 if test -x $with_build_time_tools/${ncn_progname}; then
13612 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13614 $as_echo "yes" >&6; }
13615 break
13616 else
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 $as_echo "no" >&6; }
13619 fi
13620 done
13621 fi
13622
13623 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13624 for ncn_progname in as; do
13625 if test -n "$ncn_target_tool_prefix"; then
13626 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13627 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13629 $as_echo_n "checking for $ac_word... " >&6; }
13630 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13631 $as_echo_n "(cached) " >&6
13632 else
13633 if test -n "$AS_FOR_TARGET"; then
13634 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13635 else
13636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637 for as_dir in $PATH
13638 do
13639 IFS=$as_save_IFS
13640 test -z "$as_dir" && as_dir=.
13641 for ac_exec_ext in '' $ac_executable_extensions; do
13642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13643 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13645 break 2
13646 fi
13647 done
13648 done
13649 IFS=$as_save_IFS
13650
13651 fi
13652 fi
13653 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13654 if test -n "$AS_FOR_TARGET"; then
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13656 $as_echo "$AS_FOR_TARGET" >&6; }
13657 else
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659 $as_echo "no" >&6; }
13660 fi
13661
13662
13663 fi
13664 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13666 set dummy ${ncn_progname}; ac_word=$2
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13668 $as_echo_n "checking for $ac_word... " >&6; }
13669 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13672 if test -n "$AS_FOR_TARGET"; then
13673 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13674 else
13675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13677 do
13678 IFS=$as_save_IFS
13679 test -z "$as_dir" && as_dir=.
13680 for ac_exec_ext in '' $ac_executable_extensions; do
13681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13682 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13684 break 2
13685 fi
13686 done
13687 done
13688 IFS=$as_save_IFS
13689
13690 fi
13691 fi
13692 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13693 if test -n "$AS_FOR_TARGET"; then
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13695 $as_echo "$AS_FOR_TARGET" >&6; }
13696 else
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698 $as_echo "no" >&6; }
13699 fi
13700
13701
13702 fi
13703 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
13704 done
13705 fi
13706
13707 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
13708 set dummy as
13709 if test $build = $target ; then
13710 AS_FOR_TARGET="$2"
13711 else
13712 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
13713 fi
13714 else
13715 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
13716 fi
13717
13718 else
13719 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13720 fi
13721
13722
13723
13724
13725 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13726 if test -n "$with_build_time_tools"; then
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
13728 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
13729 if test -x $with_build_time_tools/dlltool; then
13730 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
13731 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
13733 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
13734 else
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736 $as_echo "no" >&6; }
13737 fi
13738 elif test $build != $host && test $have_gcc_for_target = yes; then
13739 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
13740 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
13741 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13742 fi
13743 fi
13744 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13745 # Extract the first word of "dlltool", so it can be a program name with args.
13746 set dummy dlltool; ac_word=$2
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13748 $as_echo_n "checking for $ac_word... " >&6; }
13749 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 case $DLLTOOL_FOR_TARGET in
13753 [\\/]* | ?:[\\/]*)
13754 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
13755 ;;
13756 *)
13757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13758 for as_dir in $gcc_cv_tool_dirs
13759 do
13760 IFS=$as_save_IFS
13761 test -z "$as_dir" && as_dir=.
13762 for ac_exec_ext in '' $ac_executable_extensions; do
13763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13764 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13766 break 2
13767 fi
13768 done
13769 done
13770 IFS=$as_save_IFS
13771
13772 ;;
13773 esac
13774 fi
13775 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
13776 if test -n "$DLLTOOL_FOR_TARGET"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13778 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13779 else
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13782 fi
13783
13784
13785 fi
13786 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13787
13788
13789 if test -n "$DLLTOOL_FOR_TARGET"; then
13790 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13791 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13792 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13793 fi
13794
13795 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13796 for ncn_progname in dlltool; do
13797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13798 set dummy ${ncn_progname}; ac_word=$2
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13800 $as_echo_n "checking for $ac_word... " >&6; }
13801 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13802 $as_echo_n "(cached) " >&6
13803 else
13804 if test -n "$DLLTOOL_FOR_TARGET"; then
13805 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13806 else
13807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13808 for as_dir in $PATH
13809 do
13810 IFS=$as_save_IFS
13811 test -z "$as_dir" && as_dir=.
13812 for ac_exec_ext in '' $ac_executable_extensions; do
13813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13814 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
13815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13816 break 2
13817 fi
13818 done
13819 done
13820 IFS=$as_save_IFS
13821
13822 fi
13823 fi
13824 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13825 if test -n "$DLLTOOL_FOR_TARGET"; then
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13827 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13828 else
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13830 $as_echo "no" >&6; }
13831 fi
13832
13833
13834 done
13835 fi
13836
13837 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13838 for ncn_progname in dlltool; do
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13840 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13841 if test -x $with_build_time_tools/${ncn_progname}; then
13842 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13844 $as_echo "yes" >&6; }
13845 break
13846 else
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13848 $as_echo "no" >&6; }
13849 fi
13850 done
13851 fi
13852
13853 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13854 for ncn_progname in dlltool; do
13855 if test -n "$ncn_target_tool_prefix"; then
13856 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13857 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13859 $as_echo_n "checking for $ac_word... " >&6; }
13860 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13863 if test -n "$DLLTOOL_FOR_TARGET"; then
13864 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13865 else
13866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13867 for as_dir in $PATH
13868 do
13869 IFS=$as_save_IFS
13870 test -z "$as_dir" && as_dir=.
13871 for ac_exec_ext in '' $ac_executable_extensions; do
13872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13873 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13875 break 2
13876 fi
13877 done
13878 done
13879 IFS=$as_save_IFS
13880
13881 fi
13882 fi
13883 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13884 if test -n "$DLLTOOL_FOR_TARGET"; then
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13886 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13887 else
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889 $as_echo "no" >&6; }
13890 fi
13891
13892
13893 fi
13894 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
13895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13896 set dummy ${ncn_progname}; ac_word=$2
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13898 $as_echo_n "checking for $ac_word... " >&6; }
13899 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13900 $as_echo_n "(cached) " >&6
13901 else
13902 if test -n "$DLLTOOL_FOR_TARGET"; then
13903 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13904 else
13905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13906 for as_dir in $PATH
13907 do
13908 IFS=$as_save_IFS
13909 test -z "$as_dir" && as_dir=.
13910 for ac_exec_ext in '' $ac_executable_extensions; do
13911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13912 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
13913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13914 break 2
13915 fi
13916 done
13917 done
13918 IFS=$as_save_IFS
13919
13920 fi
13921 fi
13922 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13923 if test -n "$DLLTOOL_FOR_TARGET"; then
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13925 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13926 else
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13928 $as_echo "no" >&6; }
13929 fi
13930
13931
13932 fi
13933 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
13934 done
13935 fi
13936
13937 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
13938 set dummy dlltool
13939 if test $build = $target ; then
13940 DLLTOOL_FOR_TARGET="$2"
13941 else
13942 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13943 fi
13944 else
13945 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
13946 fi
13947
13948 else
13949 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
13950 fi
13951
13952
13953
13954
13955 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
13956 if test -n "$with_build_time_tools"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
13958 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
13959 if test -x $with_build_time_tools/ld; then
13960 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
13961 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
13963 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
13964 else
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13967 fi
13968 elif test $build != $host && test $have_gcc_for_target = yes; then
13969 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
13970 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
13971 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
13972 fi
13973 fi
13974 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13975 # Extract the first word of "ld", so it can be a program name with args.
13976 set dummy ld; ac_word=$2
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13978 $as_echo_n "checking for $ac_word... " >&6; }
13979 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
13980 $as_echo_n "(cached) " >&6
13981 else
13982 case $LD_FOR_TARGET in
13983 [\\/]* | ?:[\\/]*)
13984 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
13985 ;;
13986 *)
13987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13988 for as_dir in $gcc_cv_tool_dirs
13989 do
13990 IFS=$as_save_IFS
13991 test -z "$as_dir" && as_dir=.
13992 for ac_exec_ext in '' $ac_executable_extensions; do
13993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13994 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13996 break 2
13997 fi
13998 done
13999 done
14000 IFS=$as_save_IFS
14001
14002 ;;
14003 esac
14004 fi
14005 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14006 if test -n "$LD_FOR_TARGET"; then
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14008 $as_echo "$LD_FOR_TARGET" >&6; }
14009 else
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14011 $as_echo "no" >&6; }
14012 fi
14013
14014
14015 fi
14016 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14017
14018
14019 if test -n "$LD_FOR_TARGET"; then
14020 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14021 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14022 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14023 fi
14024
14025 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14026 for ncn_progname in ld; do
14027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14028 set dummy ${ncn_progname}; ac_word=$2
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14030 $as_echo_n "checking for $ac_word... " >&6; }
14031 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14032 $as_echo_n "(cached) " >&6
14033 else
14034 if test -n "$LD_FOR_TARGET"; then
14035 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14036 else
14037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14038 for as_dir in $PATH
14039 do
14040 IFS=$as_save_IFS
14041 test -z "$as_dir" && as_dir=.
14042 for ac_exec_ext in '' $ac_executable_extensions; do
14043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14044 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14046 break 2
14047 fi
14048 done
14049 done
14050 IFS=$as_save_IFS
14051
14052 fi
14053 fi
14054 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14055 if test -n "$LD_FOR_TARGET"; then
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14057 $as_echo "$LD_FOR_TARGET" >&6; }
14058 else
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14060 $as_echo "no" >&6; }
14061 fi
14062
14063
14064 done
14065 fi
14066
14067 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14068 for ncn_progname in ld; do
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14070 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14071 if test -x $with_build_time_tools/${ncn_progname}; then
14072 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14074 $as_echo "yes" >&6; }
14075 break
14076 else
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14078 $as_echo "no" >&6; }
14079 fi
14080 done
14081 fi
14082
14083 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14084 for ncn_progname in ld; do
14085 if test -n "$ncn_target_tool_prefix"; then
14086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14087 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14089 $as_echo_n "checking for $ac_word... " >&6; }
14090 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14091 $as_echo_n "(cached) " >&6
14092 else
14093 if test -n "$LD_FOR_TARGET"; then
14094 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14095 else
14096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14097 for as_dir in $PATH
14098 do
14099 IFS=$as_save_IFS
14100 test -z "$as_dir" && as_dir=.
14101 for ac_exec_ext in '' $ac_executable_extensions; do
14102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14103 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14105 break 2
14106 fi
14107 done
14108 done
14109 IFS=$as_save_IFS
14110
14111 fi
14112 fi
14113 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14114 if test -n "$LD_FOR_TARGET"; then
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14116 $as_echo "$LD_FOR_TARGET" >&6; }
14117 else
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14119 $as_echo "no" >&6; }
14120 fi
14121
14122
14123 fi
14124 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14126 set dummy ${ncn_progname}; ac_word=$2
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14128 $as_echo_n "checking for $ac_word... " >&6; }
14129 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14130 $as_echo_n "(cached) " >&6
14131 else
14132 if test -n "$LD_FOR_TARGET"; then
14133 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14134 else
14135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136 for as_dir in $PATH
14137 do
14138 IFS=$as_save_IFS
14139 test -z "$as_dir" && as_dir=.
14140 for ac_exec_ext in '' $ac_executable_extensions; do
14141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14142 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14144 break 2
14145 fi
14146 done
14147 done
14148 IFS=$as_save_IFS
14149
14150 fi
14151 fi
14152 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14153 if test -n "$LD_FOR_TARGET"; then
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14155 $as_echo "$LD_FOR_TARGET" >&6; }
14156 else
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158 $as_echo "no" >&6; }
14159 fi
14160
14161
14162 fi
14163 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14164 done
14165 fi
14166
14167 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14168 set dummy ld
14169 if test $build = $target ; then
14170 LD_FOR_TARGET="$2"
14171 else
14172 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14173 fi
14174 else
14175 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14176 fi
14177
14178 else
14179 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14180 fi
14181
14182
14183
14184
14185 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14186 if test -n "$with_build_time_tools"; then
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14188 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14189 if test -x $with_build_time_tools/lipo; then
14190 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14191 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14193 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14194 else
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14196 $as_echo "no" >&6; }
14197 fi
14198 elif test $build != $host && test $have_gcc_for_target = yes; then
14199 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14200 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14201 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14202 fi
14203 fi
14204 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14205 # Extract the first word of "lipo", so it can be a program name with args.
14206 set dummy lipo; ac_word=$2
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14208 $as_echo_n "checking for $ac_word... " >&6; }
14209 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 case $LIPO_FOR_TARGET in
14213 [\\/]* | ?:[\\/]*)
14214 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14215 ;;
14216 *)
14217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218 for as_dir in $gcc_cv_tool_dirs
14219 do
14220 IFS=$as_save_IFS
14221 test -z "$as_dir" && as_dir=.
14222 for ac_exec_ext in '' $ac_executable_extensions; do
14223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14224 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14226 break 2
14227 fi
14228 done
14229 done
14230 IFS=$as_save_IFS
14231
14232 ;;
14233 esac
14234 fi
14235 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14236 if test -n "$LIPO_FOR_TARGET"; then
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14238 $as_echo "$LIPO_FOR_TARGET" >&6; }
14239 else
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14241 $as_echo "no" >&6; }
14242 fi
14243
14244
14245 fi
14246 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14247
14248
14249 if test -n "$LIPO_FOR_TARGET"; then
14250 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14251 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14252 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14253 fi
14254
14255 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14256 for ncn_progname in lipo; do
14257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14258 set dummy ${ncn_progname}; ac_word=$2
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14260 $as_echo_n "checking for $ac_word... " >&6; }
14261 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14262 $as_echo_n "(cached) " >&6
14263 else
14264 if test -n "$LIPO_FOR_TARGET"; then
14265 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14266 else
14267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14269 do
14270 IFS=$as_save_IFS
14271 test -z "$as_dir" && as_dir=.
14272 for ac_exec_ext in '' $ac_executable_extensions; do
14273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14274 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14276 break 2
14277 fi
14278 done
14279 done
14280 IFS=$as_save_IFS
14281
14282 fi
14283 fi
14284 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14285 if test -n "$LIPO_FOR_TARGET"; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14287 $as_echo "$LIPO_FOR_TARGET" >&6; }
14288 else
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14290 $as_echo "no" >&6; }
14291 fi
14292
14293
14294 done
14295 fi
14296
14297 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
14298 for ncn_progname in lipo; do
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14300 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14301 if test -x $with_build_time_tools/${ncn_progname}; then
14302 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14304 $as_echo "yes" >&6; }
14305 break
14306 else
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14308 $as_echo "no" >&6; }
14309 fi
14310 done
14311 fi
14312
14313 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14314 for ncn_progname in lipo; do
14315 if test -n "$ncn_target_tool_prefix"; then
14316 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14317 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14319 $as_echo_n "checking for $ac_word... " >&6; }
14320 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14321 $as_echo_n "(cached) " >&6
14322 else
14323 if test -n "$LIPO_FOR_TARGET"; then
14324 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14325 else
14326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327 for as_dir in $PATH
14328 do
14329 IFS=$as_save_IFS
14330 test -z "$as_dir" && as_dir=.
14331 for ac_exec_ext in '' $ac_executable_extensions; do
14332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14333 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14335 break 2
14336 fi
14337 done
14338 done
14339 IFS=$as_save_IFS
14340
14341 fi
14342 fi
14343 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14344 if test -n "$LIPO_FOR_TARGET"; then
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14346 $as_echo "$LIPO_FOR_TARGET" >&6; }
14347 else
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 $as_echo "no" >&6; }
14350 fi
14351
14352
14353 fi
14354 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14356 set dummy ${ncn_progname}; ac_word=$2
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14358 $as_echo_n "checking for $ac_word... " >&6; }
14359 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14360 $as_echo_n "(cached) " >&6
14361 else
14362 if test -n "$LIPO_FOR_TARGET"; then
14363 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14364 else
14365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14366 for as_dir in $PATH
14367 do
14368 IFS=$as_save_IFS
14369 test -z "$as_dir" && as_dir=.
14370 for ac_exec_ext in '' $ac_executable_extensions; do
14371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14372 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14374 break 2
14375 fi
14376 done
14377 done
14378 IFS=$as_save_IFS
14379
14380 fi
14381 fi
14382 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14383 if test -n "$LIPO_FOR_TARGET"; then
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14385 $as_echo "$LIPO_FOR_TARGET" >&6; }
14386 else
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14388 $as_echo "no" >&6; }
14389 fi
14390
14391
14392 fi
14393 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14394 done
14395 fi
14396
14397 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14398 set dummy lipo
14399 if test $build = $target ; then
14400 LIPO_FOR_TARGET="$2"
14401 else
14402 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14403 fi
14404 else
14405 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
14406 fi
14407
14408 else
14409 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14410 fi
14411
14412
14413
14414
14415 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14416 if test -n "$with_build_time_tools"; then
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14418 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
14419 if test -x $with_build_time_tools/nm; then
14420 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14421 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14423 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
14424 else
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14426 $as_echo "no" >&6; }
14427 fi
14428 elif test $build != $host && test $have_gcc_for_target = yes; then
14429 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
14430 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14431 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14432 fi
14433 fi
14434 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14435 # Extract the first word of "nm", so it can be a program name with args.
14436 set dummy nm; ac_word=$2
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14438 $as_echo_n "checking for $ac_word... " >&6; }
14439 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
14440 $as_echo_n "(cached) " >&6
14441 else
14442 case $NM_FOR_TARGET in
14443 [\\/]* | ?:[\\/]*)
14444 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
14445 ;;
14446 *)
14447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14448 for as_dir in $gcc_cv_tool_dirs
14449 do
14450 IFS=$as_save_IFS
14451 test -z "$as_dir" && as_dir=.
14452 for ac_exec_ext in '' $ac_executable_extensions; do
14453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14454 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14456 break 2
14457 fi
14458 done
14459 done
14460 IFS=$as_save_IFS
14461
14462 ;;
14463 esac
14464 fi
14465 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14466 if test -n "$NM_FOR_TARGET"; then
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14468 $as_echo "$NM_FOR_TARGET" >&6; }
14469 else
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14471 $as_echo "no" >&6; }
14472 fi
14473
14474
14475 fi
14476 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14477
14478
14479 if test -n "$NM_FOR_TARGET"; then
14480 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
14481 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14482 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14483 fi
14484
14485 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14486 for ncn_progname in nm; do
14487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14488 set dummy ${ncn_progname}; ac_word=$2
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14490 $as_echo_n "checking for $ac_word... " >&6; }
14491 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14492 $as_echo_n "(cached) " >&6
14493 else
14494 if test -n "$NM_FOR_TARGET"; then
14495 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14496 else
14497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14498 for as_dir in $PATH
14499 do
14500 IFS=$as_save_IFS
14501 test -z "$as_dir" && as_dir=.
14502 for ac_exec_ext in '' $ac_executable_extensions; do
14503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14504 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14506 break 2
14507 fi
14508 done
14509 done
14510 IFS=$as_save_IFS
14511
14512 fi
14513 fi
14514 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14515 if test -n "$NM_FOR_TARGET"; then
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14517 $as_echo "$NM_FOR_TARGET" >&6; }
14518 else
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14520 $as_echo "no" >&6; }
14521 fi
14522
14523
14524 done
14525 fi
14526
14527 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
14528 for ncn_progname in nm; do
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14530 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14531 if test -x $with_build_time_tools/${ncn_progname}; then
14532 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14534 $as_echo "yes" >&6; }
14535 break
14536 else
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14538 $as_echo "no" >&6; }
14539 fi
14540 done
14541 fi
14542
14543 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
14544 for ncn_progname in nm; do
14545 if test -n "$ncn_target_tool_prefix"; then
14546 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14547 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14549 $as_echo_n "checking for $ac_word... " >&6; }
14550 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14551 $as_echo_n "(cached) " >&6
14552 else
14553 if test -n "$NM_FOR_TARGET"; then
14554 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14555 else
14556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14557 for as_dir in $PATH
14558 do
14559 IFS=$as_save_IFS
14560 test -z "$as_dir" && as_dir=.
14561 for ac_exec_ext in '' $ac_executable_extensions; do
14562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14563 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14565 break 2
14566 fi
14567 done
14568 done
14569 IFS=$as_save_IFS
14570
14571 fi
14572 fi
14573 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14574 if test -n "$NM_FOR_TARGET"; then
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14576 $as_echo "$NM_FOR_TARGET" >&6; }
14577 else
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14579 $as_echo "no" >&6; }
14580 fi
14581
14582
14583 fi
14584 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
14585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14586 set dummy ${ncn_progname}; ac_word=$2
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14588 $as_echo_n "checking for $ac_word... " >&6; }
14589 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14590 $as_echo_n "(cached) " >&6
14591 else
14592 if test -n "$NM_FOR_TARGET"; then
14593 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14594 else
14595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14596 for as_dir in $PATH
14597 do
14598 IFS=$as_save_IFS
14599 test -z "$as_dir" && as_dir=.
14600 for ac_exec_ext in '' $ac_executable_extensions; do
14601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14602 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14604 break 2
14605 fi
14606 done
14607 done
14608 IFS=$as_save_IFS
14609
14610 fi
14611 fi
14612 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14613 if test -n "$NM_FOR_TARGET"; then
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14615 $as_echo "$NM_FOR_TARGET" >&6; }
14616 else
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14618 $as_echo "no" >&6; }
14619 fi
14620
14621
14622 fi
14623 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
14624 done
14625 fi
14626
14627 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
14628 set dummy nm
14629 if test $build = $target ; then
14630 NM_FOR_TARGET="$2"
14631 else
14632 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
14633 fi
14634 else
14635 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
14636 fi
14637
14638 else
14639 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14640 fi
14641
14642
14643
14644
14645 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14646 if test -n "$with_build_time_tools"; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
14648 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
14649 if test -x $with_build_time_tools/objcopy; then
14650 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
14651 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
14653 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
14654 else
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14656 $as_echo "no" >&6; }
14657 fi
14658 elif test $build != $host && test $have_gcc_for_target = yes; then
14659 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
14660 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
14661 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14662 fi
14663 fi
14664 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14665 # Extract the first word of "objcopy", so it can be a program name with args.
14666 set dummy objcopy; ac_word=$2
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14668 $as_echo_n "checking for $ac_word... " >&6; }
14669 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
14670 $as_echo_n "(cached) " >&6
14671 else
14672 case $OBJCOPY_FOR_TARGET in
14673 [\\/]* | ?:[\\/]*)
14674 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
14675 ;;
14676 *)
14677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14678 for as_dir in $gcc_cv_tool_dirs
14679 do
14680 IFS=$as_save_IFS
14681 test -z "$as_dir" && as_dir=.
14682 for ac_exec_ext in '' $ac_executable_extensions; do
14683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14684 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14686 break 2
14687 fi
14688 done
14689 done
14690 IFS=$as_save_IFS
14691
14692 ;;
14693 esac
14694 fi
14695 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
14696 if test -n "$OBJCOPY_FOR_TARGET"; then
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14698 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14699 else
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701 $as_echo "no" >&6; }
14702 fi
14703
14704
14705 fi
14706 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14707
14708
14709 if test -n "$OBJCOPY_FOR_TARGET"; then
14710 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14711 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14712 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14713 fi
14714
14715 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14716 for ncn_progname in objcopy; do
14717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14718 set dummy ${ncn_progname}; ac_word=$2
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14720 $as_echo_n "checking for $ac_word... " >&6; }
14721 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14722 $as_echo_n "(cached) " >&6
14723 else
14724 if test -n "$OBJCOPY_FOR_TARGET"; then
14725 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14726 else
14727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14728 for as_dir in $PATH
14729 do
14730 IFS=$as_save_IFS
14731 test -z "$as_dir" && as_dir=.
14732 for ac_exec_ext in '' $ac_executable_extensions; do
14733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14734 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
14735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14736 break 2
14737 fi
14738 done
14739 done
14740 IFS=$as_save_IFS
14741
14742 fi
14743 fi
14744 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14745 if test -n "$OBJCOPY_FOR_TARGET"; then
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14747 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14748 else
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14750 $as_echo "no" >&6; }
14751 fi
14752
14753
14754 done
14755 fi
14756
14757 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
14758 for ncn_progname in objcopy; do
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14760 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14761 if test -x $with_build_time_tools/${ncn_progname}; then
14762 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14764 $as_echo "yes" >&6; }
14765 break
14766 else
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14768 $as_echo "no" >&6; }
14769 fi
14770 done
14771 fi
14772
14773 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14774 for ncn_progname in objcopy; do
14775 if test -n "$ncn_target_tool_prefix"; then
14776 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14777 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14779 $as_echo_n "checking for $ac_word... " >&6; }
14780 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14781 $as_echo_n "(cached) " >&6
14782 else
14783 if test -n "$OBJCOPY_FOR_TARGET"; then
14784 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14785 else
14786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14787 for as_dir in $PATH
14788 do
14789 IFS=$as_save_IFS
14790 test -z "$as_dir" && as_dir=.
14791 for ac_exec_ext in '' $ac_executable_extensions; do
14792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14793 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14795 break 2
14796 fi
14797 done
14798 done
14799 IFS=$as_save_IFS
14800
14801 fi
14802 fi
14803 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14804 if test -n "$OBJCOPY_FOR_TARGET"; then
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14806 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14807 else
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14809 $as_echo "no" >&6; }
14810 fi
14811
14812
14813 fi
14814 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
14815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14816 set dummy ${ncn_progname}; ac_word=$2
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14818 $as_echo_n "checking for $ac_word... " >&6; }
14819 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14820 $as_echo_n "(cached) " >&6
14821 else
14822 if test -n "$OBJCOPY_FOR_TARGET"; then
14823 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14824 else
14825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14826 for as_dir in $PATH
14827 do
14828 IFS=$as_save_IFS
14829 test -z "$as_dir" && as_dir=.
14830 for ac_exec_ext in '' $ac_executable_extensions; do
14831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14832 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
14833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14834 break 2
14835 fi
14836 done
14837 done
14838 IFS=$as_save_IFS
14839
14840 fi
14841 fi
14842 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14843 if test -n "$OBJCOPY_FOR_TARGET"; then
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14845 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14846 else
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14848 $as_echo "no" >&6; }
14849 fi
14850
14851
14852 fi
14853 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
14854 done
14855 fi
14856
14857 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
14858 set dummy objcopy
14859 if test $build = $target ; then
14860 OBJCOPY_FOR_TARGET="$2"
14861 else
14862 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
14863 fi
14864 else
14865 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
14866 fi
14867
14868 else
14869 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
14870 fi
14871
14872
14873
14874
14875 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
14876 if test -n "$with_build_time_tools"; then
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
14878 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
14879 if test -x $with_build_time_tools/objdump; then
14880 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
14881 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
14883 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
14884 else
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14886 $as_echo "no" >&6; }
14887 fi
14888 elif test $build != $host && test $have_gcc_for_target = yes; then
14889 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
14890 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
14891 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
14892 fi
14893 fi
14894 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14895 # Extract the first word of "objdump", so it can be a program name with args.
14896 set dummy objdump; ac_word=$2
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14898 $as_echo_n "checking for $ac_word... " >&6; }
14899 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
14900 $as_echo_n "(cached) " >&6
14901 else
14902 case $OBJDUMP_FOR_TARGET in
14903 [\\/]* | ?:[\\/]*)
14904 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
14905 ;;
14906 *)
14907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14908 for as_dir in $gcc_cv_tool_dirs
14909 do
14910 IFS=$as_save_IFS
14911 test -z "$as_dir" && as_dir=.
14912 for ac_exec_ext in '' $ac_executable_extensions; do
14913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14914 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14916 break 2
14917 fi
14918 done
14919 done
14920 IFS=$as_save_IFS
14921
14922 ;;
14923 esac
14924 fi
14925 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
14926 if test -n "$OBJDUMP_FOR_TARGET"; then
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
14928 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
14929 else
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14931 $as_echo "no" >&6; }
14932 fi
14933
14934
14935 fi
14936 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
14937
14938
14939 if test -n "$OBJDUMP_FOR_TARGET"; then
14940 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
14941 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
14942 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
14943 fi
14944
14945 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
14946 for ncn_progname in objdump; do
14947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14948 set dummy ${ncn_progname}; ac_word=$2
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14950 $as_echo_n "checking for $ac_word... " >&6; }
14951 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
14952 $as_echo_n "(cached) " >&6
14953 else
14954 if test -n "$OBJDUMP_FOR_TARGET"; then
14955 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
14956 else
14957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14958 for as_dir in $PATH
14959 do
14960 IFS=$as_save_IFS
14961 test -z "$as_dir" && as_dir=.
14962 for ac_exec_ext in '' $ac_executable_extensions; do
14963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14964 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
14965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14966 break 2
14967 fi
14968 done
14969 done
14970 IFS=$as_save_IFS
14971
14972 fi
14973 fi
14974 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
14975 if test -n "$OBJDUMP_FOR_TARGET"; then
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
14977 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
14978 else
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14980 $as_echo "no" >&6; }
14981 fi
14982
14983
14984 done
14985 fi
14986
14987 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
14988 for ncn_progname in objdump; do
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14990 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14991 if test -x $with_build_time_tools/${ncn_progname}; then
14992 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14994 $as_echo "yes" >&6; }
14995 break
14996 else
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14998 $as_echo "no" >&6; }
14999 fi
15000 done
15001 fi
15002
15003 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15004 for ncn_progname in objdump; do
15005 if test -n "$ncn_target_tool_prefix"; then
15006 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15007 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15009 $as_echo_n "checking for $ac_word... " >&6; }
15010 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15011 $as_echo_n "(cached) " >&6
15012 else
15013 if test -n "$OBJDUMP_FOR_TARGET"; then
15014 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15015 else
15016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15017 for as_dir in $PATH
15018 do
15019 IFS=$as_save_IFS
15020 test -z "$as_dir" && as_dir=.
15021 for ac_exec_ext in '' $ac_executable_extensions; do
15022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15023 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15025 break 2
15026 fi
15027 done
15028 done
15029 IFS=$as_save_IFS
15030
15031 fi
15032 fi
15033 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15034 if test -n "$OBJDUMP_FOR_TARGET"; then
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15036 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15037 else
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039 $as_echo "no" >&6; }
15040 fi
15041
15042
15043 fi
15044 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15046 set dummy ${ncn_progname}; ac_word=$2
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15048 $as_echo_n "checking for $ac_word... " >&6; }
15049 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15050 $as_echo_n "(cached) " >&6
15051 else
15052 if test -n "$OBJDUMP_FOR_TARGET"; then
15053 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15054 else
15055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15056 for as_dir in $PATH
15057 do
15058 IFS=$as_save_IFS
15059 test -z "$as_dir" && as_dir=.
15060 for ac_exec_ext in '' $ac_executable_extensions; do
15061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15062 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15064 break 2
15065 fi
15066 done
15067 done
15068 IFS=$as_save_IFS
15069
15070 fi
15071 fi
15072 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15073 if test -n "$OBJDUMP_FOR_TARGET"; then
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15075 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15076 else
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15078 $as_echo "no" >&6; }
15079 fi
15080
15081
15082 fi
15083 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15084 done
15085 fi
15086
15087 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15088 set dummy objdump
15089 if test $build = $target ; then
15090 OBJDUMP_FOR_TARGET="$2"
15091 else
15092 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15093 fi
15094 else
15095 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15096 fi
15097
15098 else
15099 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15100 fi
15101
15102
15103
15104
15105 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15106 if test -n "$with_build_time_tools"; then
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15108 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15109 if test -x $with_build_time_tools/otool; then
15110 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15111 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15113 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15114 else
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15116 $as_echo "no" >&6; }
15117 fi
15118 elif test $build != $host && test $have_gcc_for_target = yes; then
15119 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15120 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15121 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15122 fi
15123 fi
15124 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15125 # Extract the first word of "otool", so it can be a program name with args.
15126 set dummy otool; ac_word=$2
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15128 $as_echo_n "checking for $ac_word... " >&6; }
15129 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15130 $as_echo_n "(cached) " >&6
15131 else
15132 case $OTOOL_FOR_TARGET in
15133 [\\/]* | ?:[\\/]*)
15134 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15135 ;;
15136 *)
15137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15138 for as_dir in $gcc_cv_tool_dirs
15139 do
15140 IFS=$as_save_IFS
15141 test -z "$as_dir" && as_dir=.
15142 for ac_exec_ext in '' $ac_executable_extensions; do
15143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15144 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15146 break 2
15147 fi
15148 done
15149 done
15150 IFS=$as_save_IFS
15151
15152 ;;
15153 esac
15154 fi
15155 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15156 if test -n "$OTOOL_FOR_TARGET"; then
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15158 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15159 else
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161 $as_echo "no" >&6; }
15162 fi
15163
15164
15165 fi
15166 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15167
15168
15169 if test -n "$OTOOL_FOR_TARGET"; then
15170 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15171 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15172 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15173 fi
15174
15175 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15176 for ncn_progname in otool; do
15177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15178 set dummy ${ncn_progname}; ac_word=$2
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15180 $as_echo_n "checking for $ac_word... " >&6; }
15181 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15182 $as_echo_n "(cached) " >&6
15183 else
15184 if test -n "$OTOOL_FOR_TARGET"; then
15185 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15186 else
15187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15188 for as_dir in $PATH
15189 do
15190 IFS=$as_save_IFS
15191 test -z "$as_dir" && as_dir=.
15192 for ac_exec_ext in '' $ac_executable_extensions; do
15193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15194 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15196 break 2
15197 fi
15198 done
15199 done
15200 IFS=$as_save_IFS
15201
15202 fi
15203 fi
15204 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15205 if test -n "$OTOOL_FOR_TARGET"; then
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15207 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15208 else
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15210 $as_echo "no" >&6; }
15211 fi
15212
15213
15214 done
15215 fi
15216
15217 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15218 for ncn_progname in otool; do
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15220 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15221 if test -x $with_build_time_tools/${ncn_progname}; then
15222 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15224 $as_echo "yes" >&6; }
15225 break
15226 else
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15228 $as_echo "no" >&6; }
15229 fi
15230 done
15231 fi
15232
15233 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15234 for ncn_progname in otool; do
15235 if test -n "$ncn_target_tool_prefix"; then
15236 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15237 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15239 $as_echo_n "checking for $ac_word... " >&6; }
15240 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15241 $as_echo_n "(cached) " >&6
15242 else
15243 if test -n "$OTOOL_FOR_TARGET"; then
15244 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15245 else
15246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15247 for as_dir in $PATH
15248 do
15249 IFS=$as_save_IFS
15250 test -z "$as_dir" && as_dir=.
15251 for ac_exec_ext in '' $ac_executable_extensions; do
15252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15253 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15255 break 2
15256 fi
15257 done
15258 done
15259 IFS=$as_save_IFS
15260
15261 fi
15262 fi
15263 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15264 if test -n "$OTOOL_FOR_TARGET"; then
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15266 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15267 else
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15269 $as_echo "no" >&6; }
15270 fi
15271
15272
15273 fi
15274 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15276 set dummy ${ncn_progname}; ac_word=$2
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15278 $as_echo_n "checking for $ac_word... " >&6; }
15279 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15280 $as_echo_n "(cached) " >&6
15281 else
15282 if test -n "$OTOOL_FOR_TARGET"; then
15283 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15284 else
15285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15286 for as_dir in $PATH
15287 do
15288 IFS=$as_save_IFS
15289 test -z "$as_dir" && as_dir=.
15290 for ac_exec_ext in '' $ac_executable_extensions; do
15291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15292 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15294 break 2
15295 fi
15296 done
15297 done
15298 IFS=$as_save_IFS
15299
15300 fi
15301 fi
15302 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15303 if test -n "$OTOOL_FOR_TARGET"; then
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15305 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15306 else
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15308 $as_echo "no" >&6; }
15309 fi
15310
15311
15312 fi
15313 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15314 done
15315 fi
15316
15317 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15318 set dummy otool
15319 if test $build = $target ; then
15320 OTOOL_FOR_TARGET="$2"
15321 else
15322 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15323 fi
15324 else
15325 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15326 fi
15327
15328 else
15329 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15330 fi
15331
15332
15333
15334
15335 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15336 if test -n "$with_build_time_tools"; then
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15338 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
15339 if test -x $with_build_time_tools/ranlib; then
15340 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15341 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15343 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
15344 else
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15346 $as_echo "no" >&6; }
15347 fi
15348 elif test $build != $host && test $have_gcc_for_target = yes; then
15349 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
15350 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15351 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15352 fi
15353 fi
15354 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15355 # Extract the first word of "ranlib", so it can be a program name with args.
15356 set dummy ranlib; ac_word=$2
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15358 $as_echo_n "checking for $ac_word... " >&6; }
15359 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
15360 $as_echo_n "(cached) " >&6
15361 else
15362 case $RANLIB_FOR_TARGET in
15363 [\\/]* | ?:[\\/]*)
15364 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15365 ;;
15366 *)
15367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15368 for as_dir in $gcc_cv_tool_dirs
15369 do
15370 IFS=$as_save_IFS
15371 test -z "$as_dir" && as_dir=.
15372 for ac_exec_ext in '' $ac_executable_extensions; do
15373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15374 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15376 break 2
15377 fi
15378 done
15379 done
15380 IFS=$as_save_IFS
15381
15382 ;;
15383 esac
15384 fi
15385 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15386 if test -n "$RANLIB_FOR_TARGET"; then
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15388 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15389 else
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15391 $as_echo "no" >&6; }
15392 fi
15393
15394
15395 fi
15396 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15397
15398
15399 if test -n "$RANLIB_FOR_TARGET"; then
15400 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15401 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15402 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15403 fi
15404
15405 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15406 for ncn_progname in ranlib; do
15407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15408 set dummy ${ncn_progname}; ac_word=$2
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15410 $as_echo_n "checking for $ac_word... " >&6; }
15411 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15412 $as_echo_n "(cached) " >&6
15413 else
15414 if test -n "$RANLIB_FOR_TARGET"; then
15415 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15416 else
15417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15418 for as_dir in $PATH
15419 do
15420 IFS=$as_save_IFS
15421 test -z "$as_dir" && as_dir=.
15422 for ac_exec_ext in '' $ac_executable_extensions; do
15423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15424 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15426 break 2
15427 fi
15428 done
15429 done
15430 IFS=$as_save_IFS
15431
15432 fi
15433 fi
15434 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15435 if test -n "$RANLIB_FOR_TARGET"; then
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15437 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15438 else
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15440 $as_echo "no" >&6; }
15441 fi
15442
15443
15444 done
15445 fi
15446
15447 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
15448 for ncn_progname in ranlib; do
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15450 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15451 if test -x $with_build_time_tools/${ncn_progname}; then
15452 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15454 $as_echo "yes" >&6; }
15455 break
15456 else
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15458 $as_echo "no" >&6; }
15459 fi
15460 done
15461 fi
15462
15463 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15464 for ncn_progname in ranlib; do
15465 if test -n "$ncn_target_tool_prefix"; then
15466 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15467 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15469 $as_echo_n "checking for $ac_word... " >&6; }
15470 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15471 $as_echo_n "(cached) " >&6
15472 else
15473 if test -n "$RANLIB_FOR_TARGET"; then
15474 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15475 else
15476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15477 for as_dir in $PATH
15478 do
15479 IFS=$as_save_IFS
15480 test -z "$as_dir" && as_dir=.
15481 for ac_exec_ext in '' $ac_executable_extensions; do
15482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15483 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15485 break 2
15486 fi
15487 done
15488 done
15489 IFS=$as_save_IFS
15490
15491 fi
15492 fi
15493 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15494 if test -n "$RANLIB_FOR_TARGET"; then
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15496 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15497 else
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15499 $as_echo "no" >&6; }
15500 fi
15501
15502
15503 fi
15504 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
15505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15506 set dummy ${ncn_progname}; ac_word=$2
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15508 $as_echo_n "checking for $ac_word... " >&6; }
15509 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15510 $as_echo_n "(cached) " >&6
15511 else
15512 if test -n "$RANLIB_FOR_TARGET"; then
15513 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15514 else
15515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15516 for as_dir in $PATH
15517 do
15518 IFS=$as_save_IFS
15519 test -z "$as_dir" && as_dir=.
15520 for ac_exec_ext in '' $ac_executable_extensions; do
15521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15522 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15524 break 2
15525 fi
15526 done
15527 done
15528 IFS=$as_save_IFS
15529
15530 fi
15531 fi
15532 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15533 if test -n "$RANLIB_FOR_TARGET"; then
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15535 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15536 else
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15538 $as_echo "no" >&6; }
15539 fi
15540
15541
15542 fi
15543 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
15544 done
15545 fi
15546
15547 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
15548 set dummy ranlib
15549 if test $build = $target ; then
15550 RANLIB_FOR_TARGET="$2"
15551 else
15552 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
15553 fi
15554 else
15555 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
15556 fi
15557
15558 else
15559 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15560 fi
15561
15562
15563
15564
15565 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15566 if test -n "$with_build_time_tools"; then
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
15568 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
15569 if test -x $with_build_time_tools/readelf; then
15570 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
15571 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
15573 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
15574 else
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15576 $as_echo "no" >&6; }
15577 fi
15578 elif test $build != $host && test $have_gcc_for_target = yes; then
15579 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
15580 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
15581 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15582 fi
15583 fi
15584 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15585 # Extract the first word of "readelf", so it can be a program name with args.
15586 set dummy readelf; ac_word=$2
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15588 $as_echo_n "checking for $ac_word... " >&6; }
15589 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
15590 $as_echo_n "(cached) " >&6
15591 else
15592 case $READELF_FOR_TARGET in
15593 [\\/]* | ?:[\\/]*)
15594 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
15595 ;;
15596 *)
15597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15598 for as_dir in $gcc_cv_tool_dirs
15599 do
15600 IFS=$as_save_IFS
15601 test -z "$as_dir" && as_dir=.
15602 for ac_exec_ext in '' $ac_executable_extensions; do
15603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15604 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15606 break 2
15607 fi
15608 done
15609 done
15610 IFS=$as_save_IFS
15611
15612 ;;
15613 esac
15614 fi
15615 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15616 if test -n "$READELF_FOR_TARGET"; then
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15618 $as_echo "$READELF_FOR_TARGET" >&6; }
15619 else
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15621 $as_echo "no" >&6; }
15622 fi
15623
15624
15625 fi
15626 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15627
15628
15629 if test -n "$READELF_FOR_TARGET"; then
15630 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
15631 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15632 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15633 fi
15634
15635 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15636 for ncn_progname in readelf; do
15637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15638 set dummy ${ncn_progname}; ac_word=$2
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15640 $as_echo_n "checking for $ac_word... " >&6; }
15641 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15642 $as_echo_n "(cached) " >&6
15643 else
15644 if test -n "$READELF_FOR_TARGET"; then
15645 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15646 else
15647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15648 for as_dir in $PATH
15649 do
15650 IFS=$as_save_IFS
15651 test -z "$as_dir" && as_dir=.
15652 for ac_exec_ext in '' $ac_executable_extensions; do
15653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15654 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15656 break 2
15657 fi
15658 done
15659 done
15660 IFS=$as_save_IFS
15661
15662 fi
15663 fi
15664 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15665 if test -n "$READELF_FOR_TARGET"; then
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15667 $as_echo "$READELF_FOR_TARGET" >&6; }
15668 else
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15670 $as_echo "no" >&6; }
15671 fi
15672
15673
15674 done
15675 fi
15676
15677 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
15678 for ncn_progname in readelf; do
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15680 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15681 if test -x $with_build_time_tools/${ncn_progname}; then
15682 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15684 $as_echo "yes" >&6; }
15685 break
15686 else
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15688 $as_echo "no" >&6; }
15689 fi
15690 done
15691 fi
15692
15693 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
15694 for ncn_progname in readelf; do
15695 if test -n "$ncn_target_tool_prefix"; then
15696 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15697 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15699 $as_echo_n "checking for $ac_word... " >&6; }
15700 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15701 $as_echo_n "(cached) " >&6
15702 else
15703 if test -n "$READELF_FOR_TARGET"; then
15704 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15705 else
15706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15707 for as_dir in $PATH
15708 do
15709 IFS=$as_save_IFS
15710 test -z "$as_dir" && as_dir=.
15711 for ac_exec_ext in '' $ac_executable_extensions; do
15712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15713 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15715 break 2
15716 fi
15717 done
15718 done
15719 IFS=$as_save_IFS
15720
15721 fi
15722 fi
15723 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15724 if test -n "$READELF_FOR_TARGET"; then
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15726 $as_echo "$READELF_FOR_TARGET" >&6; }
15727 else
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15729 $as_echo "no" >&6; }
15730 fi
15731
15732
15733 fi
15734 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
15735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15736 set dummy ${ncn_progname}; ac_word=$2
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15738 $as_echo_n "checking for $ac_word... " >&6; }
15739 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15740 $as_echo_n "(cached) " >&6
15741 else
15742 if test -n "$READELF_FOR_TARGET"; then
15743 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15744 else
15745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15746 for as_dir in $PATH
15747 do
15748 IFS=$as_save_IFS
15749 test -z "$as_dir" && as_dir=.
15750 for ac_exec_ext in '' $ac_executable_extensions; do
15751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15752 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15754 break 2
15755 fi
15756 done
15757 done
15758 IFS=$as_save_IFS
15759
15760 fi
15761 fi
15762 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15763 if test -n "$READELF_FOR_TARGET"; then
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15765 $as_echo "$READELF_FOR_TARGET" >&6; }
15766 else
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15768 $as_echo "no" >&6; }
15769 fi
15770
15771
15772 fi
15773 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
15774 done
15775 fi
15776
15777 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
15778 set dummy readelf
15779 if test $build = $target ; then
15780 READELF_FOR_TARGET="$2"
15781 else
15782 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
15783 fi
15784 else
15785 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
15786 fi
15787
15788 else
15789 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15790 fi
15791
15792
15793
15794
15795 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
15796 if test -n "$with_build_time_tools"; then
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
15798 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
15799 if test -x $with_build_time_tools/strip; then
15800 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
15801 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
15803 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
15804 else
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15806 $as_echo "no" >&6; }
15807 fi
15808 elif test $build != $host && test $have_gcc_for_target = yes; then
15809 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
15810 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
15811 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15812 fi
15813 fi
15814 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15815 # Extract the first word of "strip", so it can be a program name with args.
15816 set dummy strip; ac_word=$2
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15818 $as_echo_n "checking for $ac_word... " >&6; }
15819 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
15820 $as_echo_n "(cached) " >&6
15821 else
15822 case $STRIP_FOR_TARGET in
15823 [\\/]* | ?:[\\/]*)
15824 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
15825 ;;
15826 *)
15827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15828 for as_dir in $gcc_cv_tool_dirs
15829 do
15830 IFS=$as_save_IFS
15831 test -z "$as_dir" && as_dir=.
15832 for ac_exec_ext in '' $ac_executable_extensions; do
15833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15834 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15836 break 2
15837 fi
15838 done
15839 done
15840 IFS=$as_save_IFS
15841
15842 ;;
15843 esac
15844 fi
15845 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
15846 if test -n "$STRIP_FOR_TARGET"; then
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15848 $as_echo "$STRIP_FOR_TARGET" >&6; }
15849 else
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15851 $as_echo "no" >&6; }
15852 fi
15853
15854
15855 fi
15856 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
15857
15858
15859 if test -n "$STRIP_FOR_TARGET"; then
15860 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15861 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
15862 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15863 fi
15864
15865 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
15866 for ncn_progname in strip; do
15867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15868 set dummy ${ncn_progname}; ac_word=$2
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15870 $as_echo_n "checking for $ac_word... " >&6; }
15871 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
15872 $as_echo_n "(cached) " >&6
15873 else
15874 if test -n "$STRIP_FOR_TARGET"; then
15875 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15876 else
15877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15878 for as_dir in $PATH
15879 do
15880 IFS=$as_save_IFS
15881 test -z "$as_dir" && as_dir=.
15882 for ac_exec_ext in '' $ac_executable_extensions; do
15883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15884 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
15885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15886 break 2
15887 fi
15888 done
15889 done
15890 IFS=$as_save_IFS
15891
15892 fi
15893 fi
15894 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15895 if test -n "$STRIP_FOR_TARGET"; then
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15897 $as_echo "$STRIP_FOR_TARGET" >&6; }
15898 else
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15900 $as_echo "no" >&6; }
15901 fi
15902
15903
15904 done
15905 fi
15906
15907 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15908 for ncn_progname in strip; do
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15910 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15911 if test -x $with_build_time_tools/${ncn_progname}; then
15912 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15914 $as_echo "yes" >&6; }
15915 break
15916 else
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15918 $as_echo "no" >&6; }
15919 fi
15920 done
15921 fi
15922
15923 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
15924 for ncn_progname in strip; do
15925 if test -n "$ncn_target_tool_prefix"; then
15926 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15927 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15929 $as_echo_n "checking for $ac_word... " >&6; }
15930 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
15931 $as_echo_n "(cached) " >&6
15932 else
15933 if test -n "$STRIP_FOR_TARGET"; then
15934 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15935 else
15936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15937 for as_dir in $PATH
15938 do
15939 IFS=$as_save_IFS
15940 test -z "$as_dir" && as_dir=.
15941 for ac_exec_ext in '' $ac_executable_extensions; do
15942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15943 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15945 break 2
15946 fi
15947 done
15948 done
15949 IFS=$as_save_IFS
15950
15951 fi
15952 fi
15953 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15954 if test -n "$STRIP_FOR_TARGET"; then
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15956 $as_echo "$STRIP_FOR_TARGET" >&6; }
15957 else
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15959 $as_echo "no" >&6; }
15960 fi
15961
15962
15963 fi
15964 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
15965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15966 set dummy ${ncn_progname}; ac_word=$2
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15968 $as_echo_n "checking for $ac_word... " >&6; }
15969 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
15970 $as_echo_n "(cached) " >&6
15971 else
15972 if test -n "$STRIP_FOR_TARGET"; then
15973 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15974 else
15975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15976 for as_dir in $PATH
15977 do
15978 IFS=$as_save_IFS
15979 test -z "$as_dir" && as_dir=.
15980 for ac_exec_ext in '' $ac_executable_extensions; do
15981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15982 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
15983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15984 break 2
15985 fi
15986 done
15987 done
15988 IFS=$as_save_IFS
15989
15990 fi
15991 fi
15992 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15993 if test -n "$STRIP_FOR_TARGET"; then
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15995 $as_echo "$STRIP_FOR_TARGET" >&6; }
15996 else
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15998 $as_echo "no" >&6; }
15999 fi
16000
16001
16002 fi
16003 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16004 done
16005 fi
16006
16007 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16008 set dummy strip
16009 if test $build = $target ; then
16010 STRIP_FOR_TARGET="$2"
16011 else
16012 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16013 fi
16014 else
16015 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16016 fi
16017
16018 else
16019 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16020 fi
16021
16022
16023
16024
16025 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16026 if test -n "$with_build_time_tools"; then
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16028 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16029 if test -x $with_build_time_tools/windres; then
16030 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16031 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16033 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16034 else
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16036 $as_echo "no" >&6; }
16037 fi
16038 elif test $build != $host && test $have_gcc_for_target = yes; then
16039 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16040 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16041 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16042 fi
16043 fi
16044 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16045 # Extract the first word of "windres", so it can be a program name with args.
16046 set dummy windres; ac_word=$2
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16048 $as_echo_n "checking for $ac_word... " >&6; }
16049 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16050 $as_echo_n "(cached) " >&6
16051 else
16052 case $WINDRES_FOR_TARGET in
16053 [\\/]* | ?:[\\/]*)
16054 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16055 ;;
16056 *)
16057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16058 for as_dir in $gcc_cv_tool_dirs
16059 do
16060 IFS=$as_save_IFS
16061 test -z "$as_dir" && as_dir=.
16062 for ac_exec_ext in '' $ac_executable_extensions; do
16063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16064 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16066 break 2
16067 fi
16068 done
16069 done
16070 IFS=$as_save_IFS
16071
16072 ;;
16073 esac
16074 fi
16075 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16076 if test -n "$WINDRES_FOR_TARGET"; then
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16078 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16079 else
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081 $as_echo "no" >&6; }
16082 fi
16083
16084
16085 fi
16086 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16087
16088
16089 if test -n "$WINDRES_FOR_TARGET"; then
16090 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16091 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16092 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16093 fi
16094
16095 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16096 for ncn_progname in windres; do
16097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16098 set dummy ${ncn_progname}; ac_word=$2
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16100 $as_echo_n "checking for $ac_word... " >&6; }
16101 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16102 $as_echo_n "(cached) " >&6
16103 else
16104 if test -n "$WINDRES_FOR_TARGET"; then
16105 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16106 else
16107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16108 for as_dir in $PATH
16109 do
16110 IFS=$as_save_IFS
16111 test -z "$as_dir" && as_dir=.
16112 for ac_exec_ext in '' $ac_executable_extensions; do
16113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16114 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16116 break 2
16117 fi
16118 done
16119 done
16120 IFS=$as_save_IFS
16121
16122 fi
16123 fi
16124 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16125 if test -n "$WINDRES_FOR_TARGET"; then
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16127 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16128 else
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16130 $as_echo "no" >&6; }
16131 fi
16132
16133
16134 done
16135 fi
16136
16137 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16138 for ncn_progname in windres; do
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16140 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16141 if test -x $with_build_time_tools/${ncn_progname}; then
16142 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16144 $as_echo "yes" >&6; }
16145 break
16146 else
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16148 $as_echo "no" >&6; }
16149 fi
16150 done
16151 fi
16152
16153 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16154 for ncn_progname in windres; do
16155 if test -n "$ncn_target_tool_prefix"; then
16156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16157 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16159 $as_echo_n "checking for $ac_word... " >&6; }
16160 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16161 $as_echo_n "(cached) " >&6
16162 else
16163 if test -n "$WINDRES_FOR_TARGET"; then
16164 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16165 else
16166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16167 for as_dir in $PATH
16168 do
16169 IFS=$as_save_IFS
16170 test -z "$as_dir" && as_dir=.
16171 for ac_exec_ext in '' $ac_executable_extensions; do
16172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16173 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16175 break 2
16176 fi
16177 done
16178 done
16179 IFS=$as_save_IFS
16180
16181 fi
16182 fi
16183 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16184 if test -n "$WINDRES_FOR_TARGET"; then
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16186 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16187 else
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16189 $as_echo "no" >&6; }
16190 fi
16191
16192
16193 fi
16194 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16196 set dummy ${ncn_progname}; ac_word=$2
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16198 $as_echo_n "checking for $ac_word... " >&6; }
16199 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16200 $as_echo_n "(cached) " >&6
16201 else
16202 if test -n "$WINDRES_FOR_TARGET"; then
16203 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16204 else
16205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16206 for as_dir in $PATH
16207 do
16208 IFS=$as_save_IFS
16209 test -z "$as_dir" && as_dir=.
16210 for ac_exec_ext in '' $ac_executable_extensions; do
16211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16212 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16214 break 2
16215 fi
16216 done
16217 done
16218 IFS=$as_save_IFS
16219
16220 fi
16221 fi
16222 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16223 if test -n "$WINDRES_FOR_TARGET"; then
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16225 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16226 else
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16228 $as_echo "no" >&6; }
16229 fi
16230
16231
16232 fi
16233 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16234 done
16235 fi
16236
16237 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16238 set dummy windres
16239 if test $build = $target ; then
16240 WINDRES_FOR_TARGET="$2"
16241 else
16242 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16243 fi
16244 else
16245 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16246 fi
16247
16248 else
16249 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16250 fi
16251
16252
16253
16254
16255 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16256 if test -n "$with_build_time_tools"; then
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16258 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
16259 if test -x $with_build_time_tools/windmc; then
16260 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16261 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16263 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16264 else
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16266 $as_echo "no" >&6; }
16267 fi
16268 elif test $build != $host && test $have_gcc_for_target = yes; then
16269 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16270 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16271 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16272 fi
16273 fi
16274 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16275 # Extract the first word of "windmc", so it can be a program name with args.
16276 set dummy windmc; ac_word=$2
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16278 $as_echo_n "checking for $ac_word... " >&6; }
16279 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16280 $as_echo_n "(cached) " >&6
16281 else
16282 case $WINDMC_FOR_TARGET in
16283 [\\/]* | ?:[\\/]*)
16284 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16285 ;;
16286 *)
16287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16288 for as_dir in $gcc_cv_tool_dirs
16289 do
16290 IFS=$as_save_IFS
16291 test -z "$as_dir" && as_dir=.
16292 for ac_exec_ext in '' $ac_executable_extensions; do
16293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16294 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16296 break 2
16297 fi
16298 done
16299 done
16300 IFS=$as_save_IFS
16301
16302 ;;
16303 esac
16304 fi
16305 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16306 if test -n "$WINDMC_FOR_TARGET"; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16308 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16309 else
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16311 $as_echo "no" >&6; }
16312 fi
16313
16314
16315 fi
16316 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16317
16318
16319 if test -n "$WINDMC_FOR_TARGET"; then
16320 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16321 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16322 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16323 fi
16324
16325 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16326 for ncn_progname in windmc; do
16327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16328 set dummy ${ncn_progname}; ac_word=$2
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16330 $as_echo_n "checking for $ac_word... " >&6; }
16331 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16332 $as_echo_n "(cached) " >&6
16333 else
16334 if test -n "$WINDMC_FOR_TARGET"; then
16335 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16336 else
16337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16338 for as_dir in $PATH
16339 do
16340 IFS=$as_save_IFS
16341 test -z "$as_dir" && as_dir=.
16342 for ac_exec_ext in '' $ac_executable_extensions; do
16343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16344 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16346 break 2
16347 fi
16348 done
16349 done
16350 IFS=$as_save_IFS
16351
16352 fi
16353 fi
16354 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16355 if test -n "$WINDMC_FOR_TARGET"; then
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16357 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16358 else
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16360 $as_echo "no" >&6; }
16361 fi
16362
16363
16364 done
16365 fi
16366
16367 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16368 for ncn_progname in windmc; do
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16370 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16371 if test -x $with_build_time_tools/${ncn_progname}; then
16372 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16374 $as_echo "yes" >&6; }
16375 break
16376 else
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16378 $as_echo "no" >&6; }
16379 fi
16380 done
16381 fi
16382
16383 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16384 for ncn_progname in windmc; do
16385 if test -n "$ncn_target_tool_prefix"; then
16386 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16387 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16389 $as_echo_n "checking for $ac_word... " >&6; }
16390 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16391 $as_echo_n "(cached) " >&6
16392 else
16393 if test -n "$WINDMC_FOR_TARGET"; then
16394 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16395 else
16396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16397 for as_dir in $PATH
16398 do
16399 IFS=$as_save_IFS
16400 test -z "$as_dir" && as_dir=.
16401 for ac_exec_ext in '' $ac_executable_extensions; do
16402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16403 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16405 break 2
16406 fi
16407 done
16408 done
16409 IFS=$as_save_IFS
16410
16411 fi
16412 fi
16413 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16414 if test -n "$WINDMC_FOR_TARGET"; then
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16416 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16417 else
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16419 $as_echo "no" >&6; }
16420 fi
16421
16422
16423 fi
16424 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16426 set dummy ${ncn_progname}; ac_word=$2
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16428 $as_echo_n "checking for $ac_word... " >&6; }
16429 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16430 $as_echo_n "(cached) " >&6
16431 else
16432 if test -n "$WINDMC_FOR_TARGET"; then
16433 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16434 else
16435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16436 for as_dir in $PATH
16437 do
16438 IFS=$as_save_IFS
16439 test -z "$as_dir" && as_dir=.
16440 for ac_exec_ext in '' $ac_executable_extensions; do
16441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16442 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16444 break 2
16445 fi
16446 done
16447 done
16448 IFS=$as_save_IFS
16449
16450 fi
16451 fi
16452 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16453 if test -n "$WINDMC_FOR_TARGET"; then
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16455 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16456 else
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16458 $as_echo "no" >&6; }
16459 fi
16460
16461
16462 fi
16463 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
16464 done
16465 fi
16466
16467 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
16468 set dummy windmc
16469 if test $build = $target ; then
16470 WINDMC_FOR_TARGET="$2"
16471 else
16472 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
16473 fi
16474 else
16475 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
16476 fi
16477
16478 else
16479 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16480 fi
16481
16482
16483 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
16484
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
16486 $as_echo_n "checking where to find the target ar... " >&6; }
16487 if test "x${build}" != "x${host}" ; then
16488 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16489 # We already found the complete path
16490 ac_dir=`dirname $AR_FOR_TARGET`
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16492 $as_echo "pre-installed in $ac_dir" >&6; }
16493 else
16494 # Canadian cross, just use what we found
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16496 $as_echo "pre-installed" >&6; }
16497 fi
16498 else
16499 ok=yes
16500 case " ${configdirs} " in
16501 *" binutils "*) ;;
16502 *) ok=no ;;
16503 esac
16504
16505 if test $ok = yes; then
16506 # An in-tree tool is available and we can use it
16507 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16509 $as_echo "just compiled" >&6; }
16510 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16511 # We already found the complete path
16512 ac_dir=`dirname $AR_FOR_TARGET`
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16514 $as_echo "pre-installed in $ac_dir" >&6; }
16515 elif test "x$target" = "x$host"; then
16516 # We can use an host tool
16517 AR_FOR_TARGET='$(AR)'
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16519 $as_echo "host tool" >&6; }
16520 else
16521 # We need a cross tool
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16523 $as_echo "pre-installed" >&6; }
16524 fi
16525 fi
16526
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
16528 $as_echo_n "checking where to find the target as... " >&6; }
16529 if test "x${build}" != "x${host}" ; then
16530 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16531 # We already found the complete path
16532 ac_dir=`dirname $AS_FOR_TARGET`
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16534 $as_echo "pre-installed in $ac_dir" >&6; }
16535 else
16536 # Canadian cross, just use what we found
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16538 $as_echo "pre-installed" >&6; }
16539 fi
16540 else
16541 ok=yes
16542 case " ${configdirs} " in
16543 *" gas "*) ;;
16544 *) ok=no ;;
16545 esac
16546
16547 if test $ok = yes; then
16548 # An in-tree tool is available and we can use it
16549 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16551 $as_echo "just compiled" >&6; }
16552 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16553 # We already found the complete path
16554 ac_dir=`dirname $AS_FOR_TARGET`
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16556 $as_echo "pre-installed in $ac_dir" >&6; }
16557 elif test "x$target" = "x$host"; then
16558 # We can use an host tool
16559 AS_FOR_TARGET='$(AS)'
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16561 $as_echo "host tool" >&6; }
16562 else
16563 # We need a cross tool
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16565 $as_echo "pre-installed" >&6; }
16566 fi
16567 fi
16568
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
16570 $as_echo_n "checking where to find the target cc... " >&6; }
16571 if test "x${build}" != "x${host}" ; then
16572 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16573 # We already found the complete path
16574 ac_dir=`dirname $CC_FOR_TARGET`
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16576 $as_echo "pre-installed in $ac_dir" >&6; }
16577 else
16578 # Canadian cross, just use what we found
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16580 $as_echo "pre-installed" >&6; }
16581 fi
16582 else
16583 ok=yes
16584 case " ${configdirs} " in
16585 *" gcc "*) ;;
16586 *) ok=no ;;
16587 esac
16588
16589 if test $ok = yes; then
16590 # An in-tree tool is available and we can use it
16591 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16593 $as_echo "just compiled" >&6; }
16594 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16595 # We already found the complete path
16596 ac_dir=`dirname $CC_FOR_TARGET`
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16598 $as_echo "pre-installed in $ac_dir" >&6; }
16599 elif test "x$target" = "x$host"; then
16600 # We can use an host tool
16601 CC_FOR_TARGET='$(CC)'
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16603 $as_echo "host tool" >&6; }
16604 else
16605 # We need a cross tool
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16607 $as_echo "pre-installed" >&6; }
16608 fi
16609 fi
16610
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
16612 $as_echo_n "checking where to find the target c++... " >&6; }
16613 if test "x${build}" != "x${host}" ; then
16614 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16615 # We already found the complete path
16616 ac_dir=`dirname $CXX_FOR_TARGET`
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16618 $as_echo "pre-installed in $ac_dir" >&6; }
16619 else
16620 # Canadian cross, just use what we found
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16622 $as_echo "pre-installed" >&6; }
16623 fi
16624 else
16625 ok=yes
16626 case " ${configdirs} " in
16627 *" gcc "*) ;;
16628 *) ok=no ;;
16629 esac
16630 case ,${enable_languages}, in
16631 *,c++,*) ;;
16632 *) ok=no ;;
16633 esac
16634 if test $ok = yes; then
16635 # An in-tree tool is available and we can use it
16636 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'
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16638 $as_echo "just compiled" >&6; }
16639 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16640 # We already found the complete path
16641 ac_dir=`dirname $CXX_FOR_TARGET`
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16643 $as_echo "pre-installed in $ac_dir" >&6; }
16644 elif test "x$target" = "x$host"; then
16645 # We can use an host tool
16646 CXX_FOR_TARGET='$(CXX)'
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16648 $as_echo "host tool" >&6; }
16649 else
16650 # We need a cross tool
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16652 $as_echo "pre-installed" >&6; }
16653 fi
16654 fi
16655
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
16657 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
16658 if test "x${build}" != "x${host}" ; then
16659 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16660 # We already found the complete path
16661 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16663 $as_echo "pre-installed in $ac_dir" >&6; }
16664 else
16665 # Canadian cross, just use what we found
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16667 $as_echo "pre-installed" >&6; }
16668 fi
16669 else
16670 ok=yes
16671 case " ${configdirs} " in
16672 *" gcc "*) ;;
16673 *) ok=no ;;
16674 esac
16675 case ,${enable_languages}, in
16676 *,c++,*) ;;
16677 *) ok=no ;;
16678 esac
16679 if test $ok = yes; then
16680 # An in-tree tool is available and we can use it
16681 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'
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16683 $as_echo "just compiled" >&6; }
16684 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16685 # We already found the complete path
16686 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16688 $as_echo "pre-installed in $ac_dir" >&6; }
16689 elif test "x$target" = "x$host"; then
16690 # We can use an host tool
16691 RAW_CXX_FOR_TARGET='$(CXX)'
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16693 $as_echo "host tool" >&6; }
16694 else
16695 # We need a cross tool
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16697 $as_echo "pre-installed" >&6; }
16698 fi
16699 fi
16700
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
16702 $as_echo_n "checking where to find the target dlltool... " >&6; }
16703 if test "x${build}" != "x${host}" ; then
16704 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16705 # We already found the complete path
16706 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16708 $as_echo "pre-installed in $ac_dir" >&6; }
16709 else
16710 # Canadian cross, just use what we found
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16712 $as_echo "pre-installed" >&6; }
16713 fi
16714 else
16715 ok=yes
16716 case " ${configdirs} " in
16717 *" binutils "*) ;;
16718 *) ok=no ;;
16719 esac
16720
16721 if test $ok = yes; then
16722 # An in-tree tool is available and we can use it
16723 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16725 $as_echo "just compiled" >&6; }
16726 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16727 # We already found the complete path
16728 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16730 $as_echo "pre-installed in $ac_dir" >&6; }
16731 elif test "x$target" = "x$host"; then
16732 # We can use an host tool
16733 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16735 $as_echo "host tool" >&6; }
16736 else
16737 # We need a cross tool
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16739 $as_echo "pre-installed" >&6; }
16740 fi
16741 fi
16742
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
16744 $as_echo_n "checking where to find the target gcc... " >&6; }
16745 if test "x${build}" != "x${host}" ; then
16746 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16747 # We already found the complete path
16748 ac_dir=`dirname $GCC_FOR_TARGET`
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16750 $as_echo "pre-installed in $ac_dir" >&6; }
16751 else
16752 # Canadian cross, just use what we found
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16754 $as_echo "pre-installed" >&6; }
16755 fi
16756 else
16757 ok=yes
16758 case " ${configdirs} " in
16759 *" gcc "*) ;;
16760 *) ok=no ;;
16761 esac
16762
16763 if test $ok = yes; then
16764 # An in-tree tool is available and we can use it
16765 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16767 $as_echo "just compiled" >&6; }
16768 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16769 # We already found the complete path
16770 ac_dir=`dirname $GCC_FOR_TARGET`
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16772 $as_echo "pre-installed in $ac_dir" >&6; }
16773 elif test "x$target" = "x$host"; then
16774 # We can use an host tool
16775 GCC_FOR_TARGET='$()'
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16777 $as_echo "host tool" >&6; }
16778 else
16779 # We need a cross tool
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16781 $as_echo "pre-installed" >&6; }
16782 fi
16783 fi
16784
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
16786 $as_echo_n "checking where to find the target gfortran... " >&6; }
16787 if test "x${build}" != "x${host}" ; then
16788 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
16789 # We already found the complete path
16790 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16792 $as_echo "pre-installed in $ac_dir" >&6; }
16793 else
16794 # Canadian cross, just use what we found
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16796 $as_echo "pre-installed" >&6; }
16797 fi
16798 else
16799 ok=yes
16800 case " ${configdirs} " in
16801 *" gcc "*) ;;
16802 *) ok=no ;;
16803 esac
16804 case ,${enable_languages}, in
16805 *,fortran,*) ;;
16806 *) ok=no ;;
16807 esac
16808 if test $ok = yes; then
16809 # An in-tree tool is available and we can use it
16810 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16812 $as_echo "just compiled" >&6; }
16813 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
16814 # We already found the complete path
16815 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16817 $as_echo "pre-installed in $ac_dir" >&6; }
16818 elif test "x$target" = "x$host"; then
16819 # We can use an host tool
16820 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16822 $as_echo "host tool" >&6; }
16823 else
16824 # We need a cross tool
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16826 $as_echo "pre-installed" >&6; }
16827 fi
16828 fi
16829
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
16831 $as_echo_n "checking where to find the target gccgo... " >&6; }
16832 if test "x${build}" != "x${host}" ; then
16833 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
16834 # We already found the complete path
16835 ac_dir=`dirname $GOC_FOR_TARGET`
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16837 $as_echo "pre-installed in $ac_dir" >&6; }
16838 else
16839 # Canadian cross, just use what we found
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16841 $as_echo "pre-installed" >&6; }
16842 fi
16843 else
16844 ok=yes
16845 case " ${configdirs} " in
16846 *" gcc "*) ;;
16847 *) ok=no ;;
16848 esac
16849 case ,${enable_languages}, in
16850 *,go,*) ;;
16851 *) ok=no ;;
16852 esac
16853 if test $ok = yes; then
16854 # An in-tree tool is available and we can use it
16855 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16857 $as_echo "just compiled" >&6; }
16858 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
16859 # We already found the complete path
16860 ac_dir=`dirname $GOC_FOR_TARGET`
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16862 $as_echo "pre-installed in $ac_dir" >&6; }
16863 elif test "x$target" = "x$host"; then
16864 # We can use an host tool
16865 GOC_FOR_TARGET='$(GOC)'
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16867 $as_echo "host tool" >&6; }
16868 else
16869 # We need a cross tool
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16871 $as_echo "pre-installed" >&6; }
16872 fi
16873 fi
16874
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
16876 $as_echo_n "checking where to find the target gdc... " >&6; }
16877 if test "x${build}" != "x${host}" ; then
16878 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
16879 # We already found the complete path
16880 ac_dir=`dirname $GDC_FOR_TARGET`
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16882 $as_echo "pre-installed in $ac_dir" >&6; }
16883 else
16884 # Canadian cross, just use what we found
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16886 $as_echo "pre-installed" >&6; }
16887 fi
16888 else
16889 ok=yes
16890 case " ${configdirs} " in
16891 *" gcc "*) ;;
16892 *) ok=no ;;
16893 esac
16894 case ,${enable_languages}, in
16895 *,d,*) ;;
16896 *) ok=no ;;
16897 esac
16898 if test $ok = yes; then
16899 # An in-tree tool is available and we can use it
16900 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16902 $as_echo "just compiled" >&6; }
16903 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
16904 # We already found the complete path
16905 ac_dir=`dirname $GDC_FOR_TARGET`
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16907 $as_echo "pre-installed in $ac_dir" >&6; }
16908 elif test "x$target" = "x$host"; then
16909 # We can use an host tool
16910 GDC_FOR_TARGET='$(GDC)'
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16912 $as_echo "host tool" >&6; }
16913 else
16914 # We need a cross tool
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16916 $as_echo "pre-installed" >&6; }
16917 fi
16918 fi
16919
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
16921 $as_echo_n "checking where to find the target ld... " >&6; }
16922 if test "x${build}" != "x${host}" ; then
16923 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
16924 # We already found the complete path
16925 ac_dir=`dirname $LD_FOR_TARGET`
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16927 $as_echo "pre-installed in $ac_dir" >&6; }
16928 else
16929 # Canadian cross, just use what we found
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16931 $as_echo "pre-installed" >&6; }
16932 fi
16933 else
16934 ok=yes
16935 case " ${configdirs} " in
16936 *" ld "*) ;;
16937 *) ok=no ;;
16938 esac
16939
16940 if test $ok = yes; then
16941 # An in-tree tool is available and we can use it
16942 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16944 $as_echo "just compiled" >&6; }
16945 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
16946 # We already found the complete path
16947 ac_dir=`dirname $LD_FOR_TARGET`
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16949 $as_echo "pre-installed in $ac_dir" >&6; }
16950 elif test "x$target" = "x$host"; then
16951 # We can use an host tool
16952 LD_FOR_TARGET='$(LD)'
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16954 $as_echo "host tool" >&6; }
16955 else
16956 # We need a cross tool
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16958 $as_echo "pre-installed" >&6; }
16959 fi
16960 fi
16961
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
16963 $as_echo_n "checking where to find the target lipo... " >&6; }
16964 if test "x${build}" != "x${host}" ; then
16965 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
16966 # We already found the complete path
16967 ac_dir=`dirname $LIPO_FOR_TARGET`
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16969 $as_echo "pre-installed in $ac_dir" >&6; }
16970 else
16971 # Canadian cross, just use what we found
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16973 $as_echo "pre-installed" >&6; }
16974 fi
16975 else
16976 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
16977 # We already found the complete path
16978 ac_dir=`dirname $LIPO_FOR_TARGET`
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16980 $as_echo "pre-installed in $ac_dir" >&6; }
16981 elif test "x$target" = "x$host"; then
16982 # We can use an host tool
16983 LIPO_FOR_TARGET='$(LIPO)'
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16985 $as_echo "host tool" >&6; }
16986 else
16987 # We need a cross tool
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16989 $as_echo "pre-installed" >&6; }
16990 fi
16991 fi
16992
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
16994 $as_echo_n "checking where to find the target nm... " >&6; }
16995 if test "x${build}" != "x${host}" ; then
16996 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
16997 # We already found the complete path
16998 ac_dir=`dirname $NM_FOR_TARGET`
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17000 $as_echo "pre-installed in $ac_dir" >&6; }
17001 else
17002 # Canadian cross, just use what we found
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17004 $as_echo "pre-installed" >&6; }
17005 fi
17006 else
17007 ok=yes
17008 case " ${configdirs} " in
17009 *" binutils "*) ;;
17010 *) ok=no ;;
17011 esac
17012
17013 if test $ok = yes; then
17014 # An in-tree tool is available and we can use it
17015 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17017 $as_echo "just compiled" >&6; }
17018 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17019 # We already found the complete path
17020 ac_dir=`dirname $NM_FOR_TARGET`
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17022 $as_echo "pre-installed in $ac_dir" >&6; }
17023 elif test "x$target" = "x$host"; then
17024 # We can use an host tool
17025 NM_FOR_TARGET='$(NM)'
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17027 $as_echo "host tool" >&6; }
17028 else
17029 # We need a cross tool
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17031 $as_echo "pre-installed" >&6; }
17032 fi
17033 fi
17034
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17036 $as_echo_n "checking where to find the target objcopy... " >&6; }
17037 if test "x${build}" != "x${host}" ; then
17038 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17039 # We already found the complete path
17040 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17042 $as_echo "pre-installed in $ac_dir" >&6; }
17043 else
17044 # Canadian cross, just use what we found
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17046 $as_echo "pre-installed" >&6; }
17047 fi
17048 else
17049 ok=yes
17050 case " ${configdirs} " in
17051 *" binutils "*) ;;
17052 *) ok=no ;;
17053 esac
17054
17055 if test $ok = yes; then
17056 # An in-tree tool is available and we can use it
17057 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17059 $as_echo "just compiled" >&6; }
17060 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17061 # We already found the complete path
17062 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17064 $as_echo "pre-installed in $ac_dir" >&6; }
17065 elif test "x$target" = "x$host"; then
17066 # We can use an host tool
17067 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17069 $as_echo "host tool" >&6; }
17070 else
17071 # We need a cross tool
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17073 $as_echo "pre-installed" >&6; }
17074 fi
17075 fi
17076
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17078 $as_echo_n "checking where to find the target objdump... " >&6; }
17079 if test "x${build}" != "x${host}" ; then
17080 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17081 # We already found the complete path
17082 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17084 $as_echo "pre-installed in $ac_dir" >&6; }
17085 else
17086 # Canadian cross, just use what we found
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17088 $as_echo "pre-installed" >&6; }
17089 fi
17090 else
17091 ok=yes
17092 case " ${configdirs} " in
17093 *" binutils "*) ;;
17094 *) ok=no ;;
17095 esac
17096
17097 if test $ok = yes; then
17098 # An in-tree tool is available and we can use it
17099 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17101 $as_echo "just compiled" >&6; }
17102 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17103 # We already found the complete path
17104 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17106 $as_echo "pre-installed in $ac_dir" >&6; }
17107 elif test "x$target" = "x$host"; then
17108 # We can use an host tool
17109 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17111 $as_echo "host tool" >&6; }
17112 else
17113 # We need a cross tool
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17115 $as_echo "pre-installed" >&6; }
17116 fi
17117 fi
17118
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17120 $as_echo_n "checking where to find the target otool... " >&6; }
17121 if test "x${build}" != "x${host}" ; then
17122 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17123 # We already found the complete path
17124 ac_dir=`dirname $OTOOL_FOR_TARGET`
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17126 $as_echo "pre-installed in $ac_dir" >&6; }
17127 else
17128 # Canadian cross, just use what we found
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17130 $as_echo "pre-installed" >&6; }
17131 fi
17132 else
17133 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17134 # We already found the complete path
17135 ac_dir=`dirname $OTOOL_FOR_TARGET`
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17137 $as_echo "pre-installed in $ac_dir" >&6; }
17138 elif test "x$target" = "x$host"; then
17139 # We can use an host tool
17140 OTOOL_FOR_TARGET='$(OTOOL)'
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17142 $as_echo "host tool" >&6; }
17143 else
17144 # We need a cross tool
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17146 $as_echo "pre-installed" >&6; }
17147 fi
17148 fi
17149
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17151 $as_echo_n "checking where to find the target ranlib... " >&6; }
17152 if test "x${build}" != "x${host}" ; then
17153 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17154 # We already found the complete path
17155 ac_dir=`dirname $RANLIB_FOR_TARGET`
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17157 $as_echo "pre-installed in $ac_dir" >&6; }
17158 else
17159 # Canadian cross, just use what we found
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17161 $as_echo "pre-installed" >&6; }
17162 fi
17163 else
17164 ok=yes
17165 case " ${configdirs} " in
17166 *" binutils "*) ;;
17167 *) ok=no ;;
17168 esac
17169
17170 if test $ok = yes; then
17171 # An in-tree tool is available and we can use it
17172 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17174 $as_echo "just compiled" >&6; }
17175 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17176 # We already found the complete path
17177 ac_dir=`dirname $RANLIB_FOR_TARGET`
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17179 $as_echo "pre-installed in $ac_dir" >&6; }
17180 elif test "x$target" = "x$host"; then
17181 # We can use an host tool
17182 RANLIB_FOR_TARGET='$(RANLIB)'
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17184 $as_echo "host tool" >&6; }
17185 else
17186 # We need a cross tool
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17188 $as_echo "pre-installed" >&6; }
17189 fi
17190 fi
17191
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17193 $as_echo_n "checking where to find the target readelf... " >&6; }
17194 if test "x${build}" != "x${host}" ; then
17195 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17196 # We already found the complete path
17197 ac_dir=`dirname $READELF_FOR_TARGET`
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17199 $as_echo "pre-installed in $ac_dir" >&6; }
17200 else
17201 # Canadian cross, just use what we found
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17203 $as_echo "pre-installed" >&6; }
17204 fi
17205 else
17206 ok=yes
17207 case " ${configdirs} " in
17208 *" binutils "*) ;;
17209 *) ok=no ;;
17210 esac
17211
17212 if test $ok = yes; then
17213 # An in-tree tool is available and we can use it
17214 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17216 $as_echo "just compiled" >&6; }
17217 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17218 # We already found the complete path
17219 ac_dir=`dirname $READELF_FOR_TARGET`
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17221 $as_echo "pre-installed in $ac_dir" >&6; }
17222 elif test "x$target" = "x$host"; then
17223 # We can use an host tool
17224 READELF_FOR_TARGET='$(READELF)'
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17226 $as_echo "host tool" >&6; }
17227 else
17228 # We need a cross tool
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17230 $as_echo "pre-installed" >&6; }
17231 fi
17232 fi
17233
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17235 $as_echo_n "checking where to find the target strip... " >&6; }
17236 if test "x${build}" != "x${host}" ; then
17237 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17238 # We already found the complete path
17239 ac_dir=`dirname $STRIP_FOR_TARGET`
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17241 $as_echo "pre-installed in $ac_dir" >&6; }
17242 else
17243 # Canadian cross, just use what we found
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17245 $as_echo "pre-installed" >&6; }
17246 fi
17247 else
17248 ok=yes
17249 case " ${configdirs} " in
17250 *" binutils "*) ;;
17251 *) ok=no ;;
17252 esac
17253
17254 if test $ok = yes; then
17255 # An in-tree tool is available and we can use it
17256 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17258 $as_echo "just compiled" >&6; }
17259 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17260 # We already found the complete path
17261 ac_dir=`dirname $STRIP_FOR_TARGET`
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17263 $as_echo "pre-installed in $ac_dir" >&6; }
17264 elif test "x$target" = "x$host"; then
17265 # We can use an host tool
17266 STRIP_FOR_TARGET='$(STRIP)'
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17268 $as_echo "host tool" >&6; }
17269 else
17270 # We need a cross tool
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17272 $as_echo "pre-installed" >&6; }
17273 fi
17274 fi
17275
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17277 $as_echo_n "checking where to find the target windres... " >&6; }
17278 if test "x${build}" != "x${host}" ; then
17279 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17280 # We already found the complete path
17281 ac_dir=`dirname $WINDRES_FOR_TARGET`
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17283 $as_echo "pre-installed in $ac_dir" >&6; }
17284 else
17285 # Canadian cross, just use what we found
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17287 $as_echo "pre-installed" >&6; }
17288 fi
17289 else
17290 ok=yes
17291 case " ${configdirs} " in
17292 *" binutils "*) ;;
17293 *) ok=no ;;
17294 esac
17295
17296 if test $ok = yes; then
17297 # An in-tree tool is available and we can use it
17298 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17300 $as_echo "just compiled" >&6; }
17301 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17302 # We already found the complete path
17303 ac_dir=`dirname $WINDRES_FOR_TARGET`
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17305 $as_echo "pre-installed in $ac_dir" >&6; }
17306 elif test "x$target" = "x$host"; then
17307 # We can use an host tool
17308 WINDRES_FOR_TARGET='$(WINDRES)'
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17310 $as_echo "host tool" >&6; }
17311 else
17312 # We need a cross tool
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17314 $as_echo "pre-installed" >&6; }
17315 fi
17316 fi
17317
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17319 $as_echo_n "checking where to find the target windmc... " >&6; }
17320 if test "x${build}" != "x${host}" ; then
17321 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17322 # We already found the complete path
17323 ac_dir=`dirname $WINDMC_FOR_TARGET`
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17325 $as_echo "pre-installed in $ac_dir" >&6; }
17326 else
17327 # Canadian cross, just use what we found
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17329 $as_echo "pre-installed" >&6; }
17330 fi
17331 else
17332 ok=yes
17333 case " ${configdirs} " in
17334 *" binutils "*) ;;
17335 *) ok=no ;;
17336 esac
17337
17338 if test $ok = yes; then
17339 # An in-tree tool is available and we can use it
17340 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17342 $as_echo "just compiled" >&6; }
17343 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17344 # We already found the complete path
17345 ac_dir=`dirname $WINDMC_FOR_TARGET`
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17347 $as_echo "pre-installed in $ac_dir" >&6; }
17348 elif test "x$target" = "x$host"; then
17349 # We can use an host tool
17350 WINDMC_FOR_TARGET='$(WINDMC)'
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17352 $as_echo "host tool" >&6; }
17353 else
17354 # We need a cross tool
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17356 $as_echo "pre-installed" >&6; }
17357 fi
17358 fi
17359
17360
17361
17362
17363
17364 # Certain tools may need extra flags.
17365 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17366 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17367 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17368
17369 # When building target libraries, except in a Canadian cross, we use
17370 # the same toolchain as the compiler we just built.
17371 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17372 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17373 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17374 if test $host = $build; then
17375 case " $configdirs " in
17376 *" gcc "*)
17377 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17378 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17379 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17380 ;;
17381 esac
17382 fi
17383
17384
17385
17386
17387
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17389 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17390 # Check whether --enable-maintainer-mode was given.
17391 if test "${enable_maintainer_mode+set}" = set; then :
17392 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17393 else
17394 USE_MAINTAINER_MODE=no
17395 fi
17396
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17398 $as_echo "$USE_MAINTAINER_MODE" >&6; }
17399
17400
17401 if test "$USE_MAINTAINER_MODE" = yes; then
17402 MAINTAINER_MODE_TRUE=
17403 MAINTAINER_MODE_FALSE='#'
17404 else
17405 MAINTAINER_MODE_TRUE='#'
17406 MAINTAINER_MODE_FALSE=
17407 fi
17408 MAINT=$MAINTAINER_MODE_TRUE
17409
17410 # ---------------------
17411 # GCC bootstrap support
17412 # ---------------------
17413
17414 # Stage specific cflags for build.
17415 stage1_cflags="-g"
17416 case $build in
17417 vax-*-*)
17418 case ${GCC} in
17419 yes) stage1_cflags="-g -Wa,-J" ;;
17420 *) stage1_cflags="-g -J" ;;
17421 esac ;;
17422 esac
17423
17424
17425
17426 # Enable --enable-checking in stage1 of the compiler.
17427 # Check whether --enable-stage1-checking was given.
17428 if test "${enable_stage1_checking+set}" = set; then :
17429 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
17430 else
17431 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
17432 # For --disable-checking or implicit --enable-checking=release, avoid
17433 # setting --enable-checking=gc in the default stage1 checking for LTO
17434 # bootstraps. See PR62077.
17435 case $BUILD_CONFIG in
17436 *lto*)
17437 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
17438 *)
17439 stage1_checking=--enable-checking=yes,types;;
17440 esac
17441 if test "x$enable_checking" = x && \
17442 test -d ${srcdir}/gcc && \
17443 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
17444 stage1_checking=--enable-checking=yes,types,extra
17445 fi
17446 else
17447 stage1_checking=--enable-checking=$enable_checking,types
17448 fi
17449 fi
17450
17451
17452
17453 # Enable -Werror in bootstrap stage2 and later.
17454 # Check whether --enable-werror was given.
17455 if test "${enable_werror+set}" = set; then :
17456 enableval=$enable_werror;
17457 case ${enable_werror} in
17458 yes) stage2_werror_flag="--enable-werror-always" ;;
17459 *) stage2_werror_flag="" ;;
17460 esac
17461
17462 else
17463
17464 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
17465 case $BUILD_CONFIG in
17466 bootstrap-debug)
17467 stage2_werror_flag="--enable-werror-always" ;;
17468 "")
17469 stage2_werror_flag="--enable-werror-always" ;;
17470 esac
17471 fi
17472
17473 fi
17474
17475
17476
17477
17478 # Specify what files to not compare during bootstrap.
17479
17480 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
17481 case "$target" in
17482 hppa*64*-*-hpux*) ;;
17483 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
17484 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
17485 esac
17486
17487
17488 ac_config_files="$ac_config_files Makefile"
17489
17490 cat >confcache <<\_ACEOF
17491 # This file is a shell script that caches the results of configure
17492 # tests run on this system so they can be shared between configure
17493 # scripts and configure runs, see configure's option --config-cache.
17494 # It is not useful on other systems. If it contains results you don't
17495 # want to keep, you may remove or edit it.
17496 #
17497 # config.status only pays attention to the cache file if you give it
17498 # the --recheck option to rerun configure.
17499 #
17500 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17501 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17502 # following values.
17503
17504 _ACEOF
17505
17506 # The following way of writing the cache mishandles newlines in values,
17507 # but we know of no workaround that is simple, portable, and efficient.
17508 # So, we kill variables containing newlines.
17509 # Ultrix sh set writes to stderr and can't be redirected directly,
17510 # and sets the high bit in the cache file unless we assign to the vars.
17511 (
17512 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17513 eval ac_val=\$$ac_var
17514 case $ac_val in #(
17515 *${as_nl}*)
17516 case $ac_var in #(
17517 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17518 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17519 esac
17520 case $ac_var in #(
17521 _ | IFS | as_nl) ;; #(
17522 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17523 *) { eval $ac_var=; unset $ac_var;} ;;
17524 esac ;;
17525 esac
17526 done
17527
17528 (set) 2>&1 |
17529 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17530 *${as_nl}ac_space=\ *)
17531 # `set' does not quote correctly, so add quotes: double-quote
17532 # substitution turns \\\\ into \\, and sed turns \\ into \.
17533 sed -n \
17534 "s/'/'\\\\''/g;
17535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17536 ;; #(
17537 *)
17538 # `set' quotes correctly as required by POSIX, so do not add quotes.
17539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17540 ;;
17541 esac |
17542 sort
17543 ) |
17544 sed '
17545 /^ac_cv_env_/b end
17546 t clear
17547 :clear
17548 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17549 t end
17550 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17551 :end' >>confcache
17552 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17553 if test -w "$cache_file"; then
17554 if test "x$cache_file" != "x/dev/null"; then
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17556 $as_echo "$as_me: updating cache $cache_file" >&6;}
17557 if test ! -f "$cache_file" || test -h "$cache_file"; then
17558 cat confcache >"$cache_file"
17559 else
17560 case $cache_file in #(
17561 */* | ?:*)
17562 mv -f confcache "$cache_file"$$ &&
17563 mv -f "$cache_file"$$ "$cache_file" ;; #(
17564 *)
17565 mv -f confcache "$cache_file" ;;
17566 esac
17567 fi
17568 fi
17569 else
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17571 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17572 fi
17573 fi
17574 rm -f confcache
17575
17576 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17577 # Let make expand exec_prefix.
17578 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17579
17580 # Transform confdefs.h into DEFS.
17581 # Protect against shell expansion while executing Makefile rules.
17582 # Protect against Makefile macro expansion.
17583 #
17584 # If the first sed substitution is executed (which looks for macros that
17585 # take arguments), then branch to the quote section. Otherwise,
17586 # look for a macro that doesn't take arguments.
17587 ac_script='
17588 :mline
17589 /\\$/{
17590 N
17591 s,\\\n,,
17592 b mline
17593 }
17594 t clear
17595 :clear
17596 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17597 t quote
17598 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17599 t quote
17600 b any
17601 :quote
17602 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17603 s/\[/\\&/g
17604 s/\]/\\&/g
17605 s/\$/$$/g
17606 H
17607 :any
17608 ${
17609 g
17610 s/^\n//
17611 s/\n/ /g
17612 p
17613 }
17614 '
17615 DEFS=`sed -n "$ac_script" confdefs.h`
17616
17617
17618 ac_libobjs=
17619 ac_ltlibobjs=
17620 U=
17621 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17622 # 1. Remove the extension, and $U if already installed.
17623 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17624 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17625 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17626 # will be set to the directory where LIBOBJS objects are built.
17627 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17628 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17629 done
17630 LIBOBJS=$ac_libobjs
17631
17632 LTLIBOBJS=$ac_ltlibobjs
17633
17634
17635
17636 : "${CONFIG_STATUS=./config.status}"
17637 ac_write_fail=0
17638 ac_clean_files_save=$ac_clean_files
17639 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17641 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17642 as_write_fail=0
17643 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17644 #! $SHELL
17645 # Generated by $as_me.
17646 # Run this file to recreate the current configuration.
17647 # Compiler output produced by configure, useful for debugging
17648 # configure, is in config.log if it exists.
17649
17650 debug=false
17651 ac_cs_recheck=false
17652 ac_cs_silent=false
17653
17654 SHELL=\${CONFIG_SHELL-$SHELL}
17655 export SHELL
17656 _ASEOF
17657 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17658 ## -------------------- ##
17659 ## M4sh Initialization. ##
17660 ## -------------------- ##
17661
17662 # Be more Bourne compatible
17663 DUALCASE=1; export DUALCASE # for MKS sh
17664 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17665 emulate sh
17666 NULLCMD=:
17667 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17668 # is contrary to our usage. Disable this feature.
17669 alias -g '${1+"$@"}'='"$@"'
17670 setopt NO_GLOB_SUBST
17671 else
17672 case `(set -o) 2>/dev/null` in #(
17673 *posix*) :
17674 set -o posix ;; #(
17675 *) :
17676 ;;
17677 esac
17678 fi
17679
17680
17681 as_nl='
17682 '
17683 export as_nl
17684 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17685 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17686 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17687 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17688 # Prefer a ksh shell builtin over an external printf program on Solaris,
17689 # but without wasting forks for bash or zsh.
17690 if test -z "$BASH_VERSION$ZSH_VERSION" \
17691 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17692 as_echo='print -r --'
17693 as_echo_n='print -rn --'
17694 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17695 as_echo='printf %s\n'
17696 as_echo_n='printf %s'
17697 else
17698 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17699 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17700 as_echo_n='/usr/ucb/echo -n'
17701 else
17702 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17703 as_echo_n_body='eval
17704 arg=$1;
17705 case $arg in #(
17706 *"$as_nl"*)
17707 expr "X$arg" : "X\\(.*\\)$as_nl";
17708 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17709 esac;
17710 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17711 '
17712 export as_echo_n_body
17713 as_echo_n='sh -c $as_echo_n_body as_echo'
17714 fi
17715 export as_echo_body
17716 as_echo='sh -c $as_echo_body as_echo'
17717 fi
17718
17719 # The user is always right.
17720 if test "${PATH_SEPARATOR+set}" != set; then
17721 PATH_SEPARATOR=:
17722 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17723 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17724 PATH_SEPARATOR=';'
17725 }
17726 fi
17727
17728
17729 # IFS
17730 # We need space, tab and new line, in precisely that order. Quoting is
17731 # there to prevent editors from complaining about space-tab.
17732 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17733 # splitting by setting IFS to empty value.)
17734 IFS=" "" $as_nl"
17735
17736 # Find who we are. Look in the path if we contain no directory separator.
17737 as_myself=
17738 case $0 in #((
17739 *[\\/]* ) as_myself=$0 ;;
17740 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17741 for as_dir in $PATH
17742 do
17743 IFS=$as_save_IFS
17744 test -z "$as_dir" && as_dir=.
17745 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17746 done
17747 IFS=$as_save_IFS
17748
17749 ;;
17750 esac
17751 # We did not find ourselves, most probably we were run as `sh COMMAND'
17752 # in which case we are not to be found in the path.
17753 if test "x$as_myself" = x; then
17754 as_myself=$0
17755 fi
17756 if test ! -f "$as_myself"; then
17757 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17758 exit 1
17759 fi
17760
17761 # Unset variables that we do not need and which cause bugs (e.g. in
17762 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17763 # suppresses any "Segmentation fault" message there. '((' could
17764 # trigger a bug in pdksh 5.2.14.
17765 for as_var in BASH_ENV ENV MAIL MAILPATH
17766 do eval test x\${$as_var+set} = xset \
17767 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17768 done
17769 PS1='$ '
17770 PS2='> '
17771 PS4='+ '
17772
17773 # NLS nuisances.
17774 LC_ALL=C
17775 export LC_ALL
17776 LANGUAGE=C
17777 export LANGUAGE
17778
17779 # CDPATH.
17780 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17781
17782
17783 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17784 # ----------------------------------------
17785 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17786 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17787 # script with STATUS, using 1 if that was 0.
17788 as_fn_error ()
17789 {
17790 as_status=$1; test $as_status -eq 0 && as_status=1
17791 if test "$4"; then
17792 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17793 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17794 fi
17795 $as_echo "$as_me: error: $2" >&2
17796 as_fn_exit $as_status
17797 } # as_fn_error
17798
17799
17800 # as_fn_set_status STATUS
17801 # -----------------------
17802 # Set $? to STATUS, without forking.
17803 as_fn_set_status ()
17804 {
17805 return $1
17806 } # as_fn_set_status
17807
17808 # as_fn_exit STATUS
17809 # -----------------
17810 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17811 as_fn_exit ()
17812 {
17813 set +e
17814 as_fn_set_status $1
17815 exit $1
17816 } # as_fn_exit
17817
17818 # as_fn_unset VAR
17819 # ---------------
17820 # Portably unset VAR.
17821 as_fn_unset ()
17822 {
17823 { eval $1=; unset $1;}
17824 }
17825 as_unset=as_fn_unset
17826 # as_fn_append VAR VALUE
17827 # ----------------------
17828 # Append the text in VALUE to the end of the definition contained in VAR. Take
17829 # advantage of any shell optimizations that allow amortized linear growth over
17830 # repeated appends, instead of the typical quadratic growth present in naive
17831 # implementations.
17832 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17833 eval 'as_fn_append ()
17834 {
17835 eval $1+=\$2
17836 }'
17837 else
17838 as_fn_append ()
17839 {
17840 eval $1=\$$1\$2
17841 }
17842 fi # as_fn_append
17843
17844 # as_fn_arith ARG...
17845 # ------------------
17846 # Perform arithmetic evaluation on the ARGs, and store the result in the
17847 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17848 # must be portable across $(()) and expr.
17849 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17850 eval 'as_fn_arith ()
17851 {
17852 as_val=$(( $* ))
17853 }'
17854 else
17855 as_fn_arith ()
17856 {
17857 as_val=`expr "$@" || test $? -eq 1`
17858 }
17859 fi # as_fn_arith
17860
17861
17862 if expr a : '\(a\)' >/dev/null 2>&1 &&
17863 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17864 as_expr=expr
17865 else
17866 as_expr=false
17867 fi
17868
17869 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17870 as_basename=basename
17871 else
17872 as_basename=false
17873 fi
17874
17875 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17876 as_dirname=dirname
17877 else
17878 as_dirname=false
17879 fi
17880
17881 as_me=`$as_basename -- "$0" ||
17882 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17883 X"$0" : 'X\(//\)$' \| \
17884 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17885 $as_echo X/"$0" |
17886 sed '/^.*\/\([^/][^/]*\)\/*$/{
17887 s//\1/
17888 q
17889 }
17890 /^X\/\(\/\/\)$/{
17891 s//\1/
17892 q
17893 }
17894 /^X\/\(\/\).*/{
17895 s//\1/
17896 q
17897 }
17898 s/.*/./; q'`
17899
17900 # Avoid depending upon Character Ranges.
17901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17904 as_cr_digits='0123456789'
17905 as_cr_alnum=$as_cr_Letters$as_cr_digits
17906
17907 ECHO_C= ECHO_N= ECHO_T=
17908 case `echo -n x` in #(((((
17909 -n*)
17910 case `echo 'xy\c'` in
17911 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17912 xy) ECHO_C='\c';;
17913 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17914 ECHO_T=' ';;
17915 esac;;
17916 *)
17917 ECHO_N='-n';;
17918 esac
17919
17920 rm -f conf$$ conf$$.exe conf$$.file
17921 if test -d conf$$.dir; then
17922 rm -f conf$$.dir/conf$$.file
17923 else
17924 rm -f conf$$.dir
17925 mkdir conf$$.dir 2>/dev/null
17926 fi
17927 if (echo >conf$$.file) 2>/dev/null; then
17928 if ln -s conf$$.file conf$$ 2>/dev/null; then
17929 as_ln_s='ln -s'
17930 # ... but there are two gotchas:
17931 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17932 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17933 # In both cases, we have to default to `cp -pR'.
17934 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17935 as_ln_s='cp -pR'
17936 elif ln conf$$.file conf$$ 2>/dev/null; then
17937 as_ln_s=ln
17938 else
17939 as_ln_s='cp -pR'
17940 fi
17941 else
17942 as_ln_s='cp -pR'
17943 fi
17944 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17945 rmdir conf$$.dir 2>/dev/null
17946
17947
17948 # as_fn_mkdir_p
17949 # -------------
17950 # Create "$as_dir" as a directory, including parents if necessary.
17951 as_fn_mkdir_p ()
17952 {
17953
17954 case $as_dir in #(
17955 -*) as_dir=./$as_dir;;
17956 esac
17957 test -d "$as_dir" || eval $as_mkdir_p || {
17958 as_dirs=
17959 while :; do
17960 case $as_dir in #(
17961 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17962 *) as_qdir=$as_dir;;
17963 esac
17964 as_dirs="'$as_qdir' $as_dirs"
17965 as_dir=`$as_dirname -- "$as_dir" ||
17966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17967 X"$as_dir" : 'X\(//\)[^/]' \| \
17968 X"$as_dir" : 'X\(//\)$' \| \
17969 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17970 $as_echo X"$as_dir" |
17971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17972 s//\1/
17973 q
17974 }
17975 /^X\(\/\/\)[^/].*/{
17976 s//\1/
17977 q
17978 }
17979 /^X\(\/\/\)$/{
17980 s//\1/
17981 q
17982 }
17983 /^X\(\/\).*/{
17984 s//\1/
17985 q
17986 }
17987 s/.*/./; q'`
17988 test -d "$as_dir" && break
17989 done
17990 test -z "$as_dirs" || eval "mkdir $as_dirs"
17991 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17992
17993
17994 } # as_fn_mkdir_p
17995 if mkdir -p . 2>/dev/null; then
17996 as_mkdir_p='mkdir -p "$as_dir"'
17997 else
17998 test -d ./-p && rmdir ./-p
17999 as_mkdir_p=false
18000 fi
18001
18002
18003 # as_fn_executable_p FILE
18004 # -----------------------
18005 # Test if FILE is an executable regular file.
18006 as_fn_executable_p ()
18007 {
18008 test -f "$1" && test -x "$1"
18009 } # as_fn_executable_p
18010 as_test_x='test -x'
18011 as_executable_p=as_fn_executable_p
18012
18013 # Sed expression to map a string onto a valid CPP name.
18014 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18015
18016 # Sed expression to map a string onto a valid variable name.
18017 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18018
18019
18020 exec 6>&1
18021 ## ----------------------------------- ##
18022 ## Main body of $CONFIG_STATUS script. ##
18023 ## ----------------------------------- ##
18024 _ASEOF
18025 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18026
18027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18028 # Save the log message, to keep $0 and so on meaningful, and to
18029 # report actual input values of CONFIG_FILES etc. instead of their
18030 # values after options handling.
18031 ac_log="
18032 This file was extended by $as_me, which was
18033 generated by GNU Autoconf 2.69. Invocation command line was
18034
18035 CONFIG_FILES = $CONFIG_FILES
18036 CONFIG_HEADERS = $CONFIG_HEADERS
18037 CONFIG_LINKS = $CONFIG_LINKS
18038 CONFIG_COMMANDS = $CONFIG_COMMANDS
18039 $ $0 $@
18040
18041 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18042 "
18043
18044 _ACEOF
18045
18046 case $ac_config_files in *"
18047 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18048 esac
18049
18050
18051
18052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18053 # Files that config.status was made for.
18054 config_files="$ac_config_files"
18055
18056 _ACEOF
18057
18058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18059 ac_cs_usage="\
18060 \`$as_me' instantiates files and other configuration actions
18061 from templates according to the current configuration. Unless the files
18062 and actions are specified as TAGs, all are instantiated by default.
18063
18064 Usage: $0 [OPTION]... [TAG]...
18065
18066 -h, --help print this help, then exit
18067 -V, --version print version number and configuration settings, then exit
18068 --config print configuration, then exit
18069 -q, --quiet, --silent
18070 do not print progress messages
18071 -d, --debug don't remove temporary files
18072 --recheck update $as_me by reconfiguring in the same conditions
18073 --file=FILE[:TEMPLATE]
18074 instantiate the configuration file FILE
18075
18076 Configuration files:
18077 $config_files
18078
18079 Report bugs to the package provider."
18080
18081 _ACEOF
18082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18083 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18084 ac_cs_version="\\
18085 config.status
18086 configured by $0, generated by GNU Autoconf 2.69,
18087 with options \\"\$ac_cs_config\\"
18088
18089 Copyright (C) 2012 Free Software Foundation, Inc.
18090 This config.status script is free software; the Free Software Foundation
18091 gives unlimited permission to copy, distribute and modify it."
18092
18093 ac_pwd='$ac_pwd'
18094 srcdir='$srcdir'
18095 INSTALL='$INSTALL'
18096 AWK='$AWK'
18097 test -n "\$AWK" || AWK=awk
18098 _ACEOF
18099
18100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18101 # The default lists apply if the user does not specify any file.
18102 ac_need_defaults=:
18103 while test $# != 0
18104 do
18105 case $1 in
18106 --*=?*)
18107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18108 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18109 ac_shift=:
18110 ;;
18111 --*=)
18112 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18113 ac_optarg=
18114 ac_shift=:
18115 ;;
18116 *)
18117 ac_option=$1
18118 ac_optarg=$2
18119 ac_shift=shift
18120 ;;
18121 esac
18122
18123 case $ac_option in
18124 # Handling of the options.
18125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18126 ac_cs_recheck=: ;;
18127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18128 $as_echo "$ac_cs_version"; exit ;;
18129 --config | --confi | --conf | --con | --co | --c )
18130 $as_echo "$ac_cs_config"; exit ;;
18131 --debug | --debu | --deb | --de | --d | -d )
18132 debug=: ;;
18133 --file | --fil | --fi | --f )
18134 $ac_shift
18135 case $ac_optarg in
18136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18137 '') as_fn_error $? "missing file argument" ;;
18138 esac
18139 as_fn_append CONFIG_FILES " '$ac_optarg'"
18140 ac_need_defaults=false;;
18141 --he | --h | --help | --hel | -h )
18142 $as_echo "$ac_cs_usage"; exit ;;
18143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18145 ac_cs_silent=: ;;
18146
18147 # This is an error.
18148 -*) as_fn_error $? "unrecognized option: \`$1'
18149 Try \`$0 --help' for more information." ;;
18150
18151 *) as_fn_append ac_config_targets " $1"
18152 ac_need_defaults=false ;;
18153
18154 esac
18155 shift
18156 done
18157
18158 ac_configure_extra_args=
18159
18160 if $ac_cs_silent; then
18161 exec 6>/dev/null
18162 ac_configure_extra_args="$ac_configure_extra_args --silent"
18163 fi
18164
18165 _ACEOF
18166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18167 if \$ac_cs_recheck; then
18168 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18169 shift
18170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18171 CONFIG_SHELL='$SHELL'
18172 export CONFIG_SHELL
18173 exec "\$@"
18174 fi
18175
18176 _ACEOF
18177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18178 exec 5>>config.log
18179 {
18180 echo
18181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18182 ## Running $as_me. ##
18183 _ASBOX
18184 $as_echo "$ac_log"
18185 } >&5
18186
18187 _ACEOF
18188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18189 #
18190 # INIT-COMMANDS
18191 #
18192 extrasub_build="$extrasub_build"
18193 extrasub_host="$extrasub_host"
18194 extrasub_target="$extrasub_target"
18195
18196 _ACEOF
18197
18198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18199
18200 # Handling of arguments.
18201 for ac_config_target in $ac_config_targets
18202 do
18203 case $ac_config_target in
18204 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18205
18206 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18207 esac
18208 done
18209
18210
18211 # If the user did not use the arguments to specify the items to instantiate,
18212 # then the envvar interface is used. Set only those that are not.
18213 # We use the long form for the default assignment because of an extremely
18214 # bizarre bug on SunOS 4.1.3.
18215 if $ac_need_defaults; then
18216 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18217 fi
18218
18219 # Have a temporary directory for convenience. Make it in the build tree
18220 # simply because there is no reason against having it here, and in addition,
18221 # creating and moving files from /tmp can sometimes cause problems.
18222 # Hook for its removal unless debugging.
18223 # Note that there is a small window in which the directory will not be cleaned:
18224 # after its creation but before its name has been assigned to `$tmp'.
18225 $debug ||
18226 {
18227 tmp= ac_tmp=
18228 trap 'exit_status=$?
18229 : "${ac_tmp:=$tmp}"
18230 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18231 ' 0
18232 trap 'as_fn_exit 1' 1 2 13 15
18233 }
18234 # Create a (secure) tmp directory for tmp files.
18235
18236 {
18237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18238 test -d "$tmp"
18239 } ||
18240 {
18241 tmp=./conf$$-$RANDOM
18242 (umask 077 && mkdir "$tmp")
18243 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18244 ac_tmp=$tmp
18245
18246 # Set up the scripts for CONFIG_FILES section.
18247 # No need to generate them if there are no CONFIG_FILES.
18248 # This happens for instance with `./config.status config.h'.
18249 if test -n "$CONFIG_FILES"; then
18250
18251 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18252 ac_cs_awk_getline=:
18253 ac_cs_awk_pipe_init=
18254 ac_cs_awk_read_file='
18255 while ((getline aline < (F[key])) > 0)
18256 print(aline)
18257 close(F[key])'
18258 ac_cs_awk_pipe_fini=
18259 else
18260 ac_cs_awk_getline=false
18261 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18262 ac_cs_awk_read_file='
18263 print "|#_!!_#|"
18264 print "cat " F[key] " &&"
18265 '$ac_cs_awk_pipe_init
18266 # The final `:' finishes the AND list.
18267 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18268 fi
18269 ac_cr=`echo X | tr X '\015'`
18270 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18271 # But we know of no other shell where ac_cr would be empty at this
18272 # point, so we can use a bashism as a fallback.
18273 if test "x$ac_cr" = x; then
18274 eval ac_cr=\$\'\\r\'
18275 fi
18276 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18277 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18278 ac_cs_awk_cr='\\r'
18279 else
18280 ac_cs_awk_cr=$ac_cr
18281 fi
18282
18283 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18284 _ACEOF
18285
18286 # Create commands to substitute file output variables.
18287 {
18288 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18289 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18290 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18291 echo "_ACAWK" &&
18292 echo "_ACEOF"
18293 } >conf$$files.sh &&
18294 . ./conf$$files.sh ||
18295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18296 rm -f conf$$files.sh
18297
18298 {
18299 echo "cat >conf$$subs.awk <<_ACEOF" &&
18300 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18301 echo "_ACEOF"
18302 } >conf$$subs.sh ||
18303 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18304 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18305 ac_delim='%!_!# '
18306 for ac_last_try in false false false false false :; do
18307 . ./conf$$subs.sh ||
18308 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18309
18310 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18311 if test $ac_delim_n = $ac_delim_num; then
18312 break
18313 elif $ac_last_try; then
18314 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18315 else
18316 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18317 fi
18318 done
18319 rm -f conf$$subs.sh
18320
18321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18322 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18323 _ACEOF
18324 sed -n '
18325 h
18326 s/^/S["/; s/!.*/"]=/
18327 p
18328 g
18329 s/^[^!]*!//
18330 :repl
18331 t repl
18332 s/'"$ac_delim"'$//
18333 t delim
18334 :nl
18335 h
18336 s/\(.\{148\}\)..*/\1/
18337 t more1
18338 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18339 p
18340 n
18341 b repl
18342 :more1
18343 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18344 p
18345 g
18346 s/.\{148\}//
18347 t nl
18348 :delim
18349 h
18350 s/\(.\{148\}\)..*/\1/
18351 t more2
18352 s/["\\]/\\&/g; s/^/"/; s/$/"/
18353 p
18354 b
18355 :more2
18356 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18357 p
18358 g
18359 s/.\{148\}//
18360 t delim
18361 ' <conf$$subs.awk | sed '
18362 /^[^""]/{
18363 N
18364 s/\n//
18365 }
18366 ' >>$CONFIG_STATUS || ac_write_fail=1
18367 rm -f conf$$subs.awk
18368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18369 _ACAWK
18370 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18371 for (key in S) S_is_set[key] = 1
18372 FS = "\a"
18373 \$ac_cs_awk_pipe_init
18374 }
18375 {
18376 line = $ 0
18377 nfields = split(line, field, "@")
18378 substed = 0
18379 len = length(field[1])
18380 for (i = 2; i < nfields; i++) {
18381 key = field[i]
18382 keylen = length(key)
18383 if (S_is_set[key]) {
18384 value = S[key]
18385 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18386 len += length(value) + length(field[++i])
18387 substed = 1
18388 } else
18389 len += 1 + keylen
18390 }
18391 if (nfields == 3 && !substed) {
18392 key = field[2]
18393 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18394 \$ac_cs_awk_read_file
18395 next
18396 }
18397 }
18398 print line
18399 }
18400 \$ac_cs_awk_pipe_fini
18401 _ACAWK
18402 _ACEOF
18403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18404 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18405 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18406 else
18407 cat
18408 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18409 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18410 _ACEOF
18411
18412 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18413 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18414 # trailing colons and then remove the whole line if VPATH becomes empty
18415 # (actually we leave an empty line to preserve line numbers).
18416 if test "x$srcdir" = x.; then
18417 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18418 h
18419 s///
18420 s/^/:/
18421 s/[ ]*$/:/
18422 s/:\$(srcdir):/:/g
18423 s/:\${srcdir}:/:/g
18424 s/:@srcdir@:/:/g
18425 s/^:*//
18426 s/:*$//
18427 x
18428 s/\(=[ ]*\).*/\1/
18429 G
18430 s/\n//
18431 s/^[^=]*=[ ]*$//
18432 }'
18433 fi
18434
18435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18436 fi # test -n "$CONFIG_FILES"
18437
18438
18439 eval set X " :F $CONFIG_FILES "
18440 shift
18441 for ac_tag
18442 do
18443 case $ac_tag in
18444 :[FHLC]) ac_mode=$ac_tag; continue;;
18445 esac
18446 case $ac_mode$ac_tag in
18447 :[FHL]*:*);;
18448 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18449 :[FH]-) ac_tag=-:-;;
18450 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18451 esac
18452 ac_save_IFS=$IFS
18453 IFS=:
18454 set x $ac_tag
18455 IFS=$ac_save_IFS
18456 shift
18457 ac_file=$1
18458 shift
18459
18460 case $ac_mode in
18461 :L) ac_source=$1;;
18462 :[FH])
18463 ac_file_inputs=
18464 for ac_f
18465 do
18466 case $ac_f in
18467 -) ac_f="$ac_tmp/stdin";;
18468 *) # Look for the file first in the build tree, then in the source tree
18469 # (if the path is not absolute). The absolute path cannot be DOS-style,
18470 # because $ac_f cannot contain `:'.
18471 test -f "$ac_f" ||
18472 case $ac_f in
18473 [\\/$]*) false;;
18474 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18475 esac ||
18476 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18477 esac
18478 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18479 as_fn_append ac_file_inputs " '$ac_f'"
18480 done
18481
18482 # Let's still pretend it is `configure' which instantiates (i.e., don't
18483 # use $as_me), people would be surprised to read:
18484 # /* config.h. Generated by config.status. */
18485 configure_input='Generated from '`
18486 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18487 `' by configure.'
18488 if test x"$ac_file" != x-; then
18489 configure_input="$ac_file. $configure_input"
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18491 $as_echo "$as_me: creating $ac_file" >&6;}
18492 fi
18493 # Neutralize special characters interpreted by sed in replacement strings.
18494 case $configure_input in #(
18495 *\&* | *\|* | *\\* )
18496 ac_sed_conf_input=`$as_echo "$configure_input" |
18497 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18498 *) ac_sed_conf_input=$configure_input;;
18499 esac
18500
18501 case $ac_tag in
18502 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18504 esac
18505 ;;
18506 esac
18507
18508 ac_dir=`$as_dirname -- "$ac_file" ||
18509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18510 X"$ac_file" : 'X\(//\)[^/]' \| \
18511 X"$ac_file" : 'X\(//\)$' \| \
18512 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18513 $as_echo X"$ac_file" |
18514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18515 s//\1/
18516 q
18517 }
18518 /^X\(\/\/\)[^/].*/{
18519 s//\1/
18520 q
18521 }
18522 /^X\(\/\/\)$/{
18523 s//\1/
18524 q
18525 }
18526 /^X\(\/\).*/{
18527 s//\1/
18528 q
18529 }
18530 s/.*/./; q'`
18531 as_dir="$ac_dir"; as_fn_mkdir_p
18532 ac_builddir=.
18533
18534 case "$ac_dir" in
18535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18536 *)
18537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18538 # A ".." for each directory in $ac_dir_suffix.
18539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18540 case $ac_top_builddir_sub in
18541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18543 esac ;;
18544 esac
18545 ac_abs_top_builddir=$ac_pwd
18546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18547 # for backward compatibility:
18548 ac_top_builddir=$ac_top_build_prefix
18549
18550 case $srcdir in
18551 .) # We are building in place.
18552 ac_srcdir=.
18553 ac_top_srcdir=$ac_top_builddir_sub
18554 ac_abs_top_srcdir=$ac_pwd ;;
18555 [\\/]* | ?:[\\/]* ) # Absolute name.
18556 ac_srcdir=$srcdir$ac_dir_suffix;
18557 ac_top_srcdir=$srcdir
18558 ac_abs_top_srcdir=$srcdir ;;
18559 *) # Relative name.
18560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18561 ac_top_srcdir=$ac_top_build_prefix$srcdir
18562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18563 esac
18564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18565
18566
18567 case $ac_mode in
18568 :F)
18569 #
18570 # CONFIG_FILE
18571 #
18572
18573 case $INSTALL in
18574 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18575 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18576 esac
18577 _ACEOF
18578
18579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18580 # If the template does not know about datarootdir, expand it.
18581 # FIXME: This hack should be removed a few years after 2.60.
18582 ac_datarootdir_hack=; ac_datarootdir_seen=
18583 ac_sed_dataroot='
18584 /datarootdir/ {
18585 p
18586 q
18587 }
18588 /@datadir@/p
18589 /@docdir@/p
18590 /@infodir@/p
18591 /@localedir@/p
18592 /@mandir@/p'
18593 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18594 *datarootdir*) ac_datarootdir_seen=yes;;
18595 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18597 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18598 _ACEOF
18599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18600 ac_datarootdir_hack='
18601 s&@datadir@&$datadir&g
18602 s&@docdir@&$docdir&g
18603 s&@infodir@&$infodir&g
18604 s&@localedir@&$localedir&g
18605 s&@mandir@&$mandir&g
18606 s&\\\${datarootdir}&$datarootdir&g' ;;
18607 esac
18608 _ACEOF
18609
18610 # Neutralize VPATH when `$srcdir' = `.'.
18611 # Shell code in configure.ac might set extrasub.
18612 # FIXME: do we really want to maintain this feature?
18613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18614 ac_sed_extra="$ac_vpsub
18615 $extrasub
18616 _ACEOF
18617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18618 :t
18619 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18620 s|@configure_input@|$ac_sed_conf_input|;t t
18621 s&@top_builddir@&$ac_top_builddir_sub&;t t
18622 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18623 s&@srcdir@&$ac_srcdir&;t t
18624 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18625 s&@top_srcdir@&$ac_top_srcdir&;t t
18626 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18627 s&@builddir@&$ac_builddir&;t t
18628 s&@abs_builddir@&$ac_abs_builddir&;t t
18629 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18630 s&@INSTALL@&$ac_INSTALL&;t t
18631 $ac_datarootdir_hack
18632 "
18633 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18634 if $ac_cs_awk_getline; then
18635 $AWK -f "$ac_tmp/subs.awk"
18636 else
18637 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18638 fi \
18639 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18640
18641 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18642 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18643 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18644 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18646 which seems to be undefined. Please make sure it is defined" >&5
18647 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18648 which seems to be undefined. Please make sure it is defined" >&2;}
18649
18650 rm -f "$ac_tmp/stdin"
18651 case $ac_file in
18652 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18653 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18654 esac \
18655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18656 ;;
18657
18658
18659
18660 esac
18661
18662
18663 case $ac_file$ac_mode in
18664 "Makefile":F) sed "$extrasub_build" Makefile |
18665 sed "$extrasub_host" |
18666 sed "$extrasub_target" > mf$$
18667 mv -f mf$$ Makefile ;;
18668
18669 esac
18670 done # for ac_tag
18671
18672
18673 as_fn_exit 0
18674 _ACEOF
18675 ac_clean_files=$ac_clean_files_save
18676
18677 test $ac_write_fail = 0 ||
18678 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18679
18680
18681 # configure is writing to config.log, and then calls config.status.
18682 # config.status does its own redirection, appending to config.log.
18683 # Unfortunately, on DOS this fails, as config.log is still kept open
18684 # by configure, so config.status won't be able to write to it; its
18685 # output is simply discarded. So we exec the FD to /dev/null,
18686 # effectively closing config.log, so it can be properly (re)opened and
18687 # appended to by config.status. When coming back to configure, we
18688 # need to make the FD available again.
18689 if test "$no_create" != yes; then
18690 ac_cs_success=:
18691 ac_config_status_args=
18692 test "$silent" = yes &&
18693 ac_config_status_args="$ac_config_status_args --quiet"
18694 exec 5>/dev/null
18695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18696 exec 5>>config.log
18697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18698 # would make configure fail if this is the last instruction.
18699 $ac_cs_success || as_fn_exit 1
18700 fi
18701 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18703 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18704 fi
18705