]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
configure.ac: Add target-libffi to target_libraries.
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCJ_FOR_TARGET
587 GCC_FOR_TARGET
588 CXX_FOR_TARGET
589 CC_FOR_TARGET
590 READELF
591 OBJDUMP
592 OBJCOPY
593 WINDMC
594 WINDRES
595 STRIP
596 RANLIB
597 NM
598 LIPO
599 LD
600 DLLTOOL
601 AS
602 AR
603 RUNTEST
604 EXPECT
605 MAKEINFO
606 FLEX
607 LEX
608 M4
609 BISON
610 YACC
611 WINDRES_FOR_BUILD
612 WINDMC_FOR_BUILD
613 RANLIB_FOR_BUILD
614 NM_FOR_BUILD
615 LD_FOR_BUILD
616 LDFLAGS_FOR_BUILD
617 GOC_FOR_BUILD
618 GFORTRAN_FOR_BUILD
619 GCJ_FOR_BUILD
620 DLLTOOL_FOR_BUILD
621 CXX_FOR_BUILD
622 CXXFLAGS_FOR_BUILD
623 CFLAGS_FOR_BUILD
624 CC_FOR_BUILD
625 AS_FOR_BUILD
626 AR_FOR_BUILD
627 target_configdirs
628 configdirs
629 build_configdirs
630 INSTALL_GDB_TK
631 GDB_TK
632 CONFIGURE_GDB_TK
633 build_tooldir
634 tooldir
635 GCC_SHLIB_SUBDIR
636 RPATH_ENVVAR
637 target_configargs
638 host_configargs
639 build_configargs
640 BUILD_CONFIG
641 LDFLAGS_FOR_TARGET
642 CXXFLAGS_FOR_TARGET
643 CFLAGS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_zlib_configure_flags
647 extra_host_libiberty_configure_flags
648 stage1_languages
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
651 islinc
652 isllibs
653 islver
654 poststage1_ldflags
655 poststage1_libs
656 stage1_ldflags
657 stage1_libs
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
662 gmpinc
663 gmplibs
664 do_compare
665 GNATMAKE
666 GNATBIND
667 ac_ct_CXX
668 CXXFLAGS
669 CXX
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 extra_liboffloadmic_configure_flags
678 target_subdir
679 host_subdir
680 build_subdir
681 build_libsubdir
682 AWK
683 SED
684 LN_S
685 LN
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 target_noncanonical
698 host_noncanonical
699 build_noncanonical
700 build_os
701 build_vendor
702 build_cpu
703 build
704 TOPLEVEL_CONFIGURE_ARGUMENTS
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files='serialization_dependencies
744 host_makefile_frag
745 target_makefile_frag
746 alphaieee_frag
747 ospace_frag'
748 ac_user_opts='
749 enable_option_checking
750 with_build_libsubdir
751 with_system_zlib
752 enable_as_accelerator_for
753 enable_offload_targets
754 enable_gold
755 enable_ld
756 enable_compressed_debug_sections
757 enable_libquadmath
758 enable_libquadmath_support
759 enable_libada
760 enable_libssp
761 enable_libstdcxx
762 enable_liboffloadmic
763 enable_bootstrap
764 with_mpc
765 with_mpc_include
766 with_mpc_lib
767 with_mpfr_dir
768 with_mpfr
769 with_mpfr_include
770 with_mpfr_lib
771 with_gmp_dir
772 with_gmp
773 with_gmp_include
774 with_gmp_lib
775 with_stage1_libs
776 with_stage1_ldflags
777 with_boot_libs
778 with_boot_ldflags
779 with_isl
780 with_isl_include
781 with_isl_lib
782 enable_isl_version_check
783 enable_lto
784 enable_linker_plugin_configure_flags
785 enable_linker_plugin_flags
786 enable_stage1_languages
787 with_build_sysroot
788 with_debug_prefix_map
789 with_build_config
790 enable_vtable_verify
791 enable_serial_configure
792 with_build_time_tools
793 enable_maintainer_mode
794 enable_stage1_checking
795 enable_werror
796 enable_host_shared
797 '
798 ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
806 CXX
807 CXXFLAGS
808 CCC
809 build_configargs
810 host_configargs
811 target_configargs
812 AR
813 AS
814 DLLTOOL
815 LD
816 LIPO
817 NM
818 RANLIB
819 STRIP
820 WINDRES
821 WINDMC
822 OBJCOPY
823 OBJDUMP
824 READELF
825 CC_FOR_TARGET
826 CXX_FOR_TARGET
827 GCC_FOR_TARGET
828 GCJ_FOR_TARGET
829 GFORTRAN_FOR_TARGET
830 GOC_FOR_TARGET
831 AR_FOR_TARGET
832 AS_FOR_TARGET
833 DLLTOOL_FOR_TARGET
834 LD_FOR_TARGET
835 LIPO_FOR_TARGET
836 NM_FOR_TARGET
837 OBJCOPY_FOR_TARGET
838 OBJDUMP_FOR_TARGET
839 RANLIB_FOR_TARGET
840 READELF_FOR_TARGET
841 STRIP_FOR_TARGET
842 WINDRES_FOR_TARGET
843 WINDMC_FOR_TARGET'
844
845
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
867
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
893
894 ac_prev=
895 ac_dashdash=
896 for ac_option
897 do
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
901 ac_prev=
902 continue
903 fi
904
905 case $ac_option in
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 # Accept the important Cygnus configure options, so we can diagnose typos.
911
912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
915
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
920
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
935
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
940
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
963
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
968
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
973
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
989
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
998
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1002
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1009
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1014
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1020
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1027
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1032
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1037
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1044
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1049
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1056
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1061
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1065
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1069
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1073
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1082
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1087
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1094
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1101
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1118
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1123
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1128
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1132
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1138
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1149
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1154
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1159
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1166
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1171
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1174
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1177
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1193
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1209
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1213
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1220
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1227
1228 -*) as_fn_error "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information."
1230 ;;
1231
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1241
1242 *)
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248 ;;
1249
1250 esac
1251 done
1252
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error "missing argument to $ac_option"
1256 fi
1257
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1264 fi
1265
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1271 do
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
1284 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1349 fi
1350 else
1351 ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 case $srcdir in
1372 *" "*)
1373 as_fn_error "path to source, $srcdir, contains spaces"
1374 ;;
1375 esac
1376 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1377
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1384
1385 #
1386 # Report the --help message.
1387 #
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures this package to adapt to many kinds of systems.
1393
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1395
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1398
1399 Defaults for the options are specified in brackets.
1400
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1417
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1422
1423 For better control, use the options below.
1424
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445 _ACEOF
1446
1447 cat <<\_ACEOF
1448
1449 Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1453
1454 System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458 _ACEOF
1459 fi
1460
1461 if test -n "$ac_init_help"; then
1462
1463 cat <<\_ACEOF
1464
1465 Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-as-accelerator-for=ARG
1470 build as offload target compiler. Specify offload
1471 host triple by ARG
1472 --enable-offload-targets=LIST
1473 enable offloading to devices from comma-separated
1474 LIST of TARGET[=DIR]. Use optional path to find
1475 offload target compiler during the build
1476 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1477 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1478 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1479 Enable compressed debug sections for gas, gold or ld
1480 by default
1481 --disable-libquadmath do not build libquadmath directory
1482 --disable-libquadmath-support
1483 disable libquadmath support for Fortran
1484 --enable-libada build libada directory
1485 --enable-libssp build libssp directory
1486 --disable-libstdcxx do not build libstdc++-v3 directory
1487 --enable-liboffloadmic=ARG
1488 build liboffloadmic [ARG={no,host,target}]
1489 --enable-bootstrap enable bootstrapping [yes if native build]
1490 --disable-isl-version-check
1491 disable check for isl version
1492 --enable-lto enable link time optimization support
1493 --enable-linker-plugin-configure-flags=FLAGS
1494 additional flags for configuring linker plugins
1495 [none]
1496 --enable-linker-plugin-flags=FLAGS
1497 additional flags for configuring and building linker
1498 plugins [none]
1499 --enable-stage1-languages[=all]
1500 choose additional languages to build during stage1.
1501 Mostly useful for compiler development
1502 --enable-vtable-verify Enable vtable verification feature
1503 --enable-serial-[{host,target,build}-]configure
1504 force sequential configuration of sub-packages for
1505 the host, target or build machine, or all
1506 sub-packages
1507 --enable-maintainer-mode
1508 enable make rules and dependencies not useful (and
1509 sometimes confusing) to the casual installer
1510 --enable-stage1-checking[=all]
1511 choose additional checking for stage1 of the
1512 compiler
1513 --enable-werror enable -Werror in bootstrap stage2 and later
1514 --enable-host-shared build host code as shared libraries
1515
1516 Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-build-libsubdir=DIR Directory where to find libraries for build system
1520 --with-system-zlib use installed libz
1521 --with-mpc=PATH specify prefix directory for installed MPC package.
1522 Equivalent to --with-mpc-include=PATH/include plus
1523 --with-mpc-lib=PATH/lib
1524 --with-mpc-include=PATH specify directory for installed MPC include files
1525 --with-mpc-lib=PATH specify directory for the installed MPC library
1526 --with-mpfr-dir=PATH this option has been REMOVED
1527 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1528 Equivalent to --with-mpfr-include=PATH/include plus
1529 --with-mpfr-lib=PATH/lib
1530 --with-mpfr-include=PATH
1531 specify directory for installed MPFR include files
1532 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1533 --with-gmp-dir=PATH this option has been REMOVED
1534 --with-gmp=PATH specify prefix directory for the installed GMP
1535 package. Equivalent to
1536 --with-gmp-include=PATH/include plus
1537 --with-gmp-lib=PATH/lib
1538 --with-gmp-include=PATH specify directory for installed GMP include files
1539 --with-gmp-lib=PATH specify directory for the installed GMP library
1540 --with-stage1-libs=LIBS libraries for stage1
1541 --with-stage1-ldflags=FLAGS
1542 linker flags for stage1
1543 --with-boot-libs=LIBS libraries for stage2 and later
1544 --with-boot-ldflags=FLAGS
1545 linker flags for stage2 and later
1546 --with-isl=PATH Specify prefix directory for the installed isl
1547 package. Equivalent to
1548 --with-isl-include=PATH/include plus
1549 --with-isl-lib=PATH/lib
1550 --with-isl-include=PATH Specify directory for installed isl include files
1551 --with-isl-lib=PATH Specify the directory for the installed isl library
1552 --with-build-sysroot=SYSROOT
1553 use sysroot as the system root during the build
1554 --with-debug-prefix-map='A=B C=D ...'
1555 map A to B, C to D ... in debug information
1556 --with-build-config='NAME NAME2...'
1557 use config/NAME.mk build configuration
1558 --with-build-time-tools=PATH
1559 use given path to find target tools during the build
1560
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
1571 build_configargs
1572 additional configure arguments for build directories
1573 host_configargs
1574 additional configure arguments for host directories
1575 target_configargs
1576 additional configure arguments for target directories
1577 AR AR for the host
1578 AS AS for the host
1579 DLLTOOL DLLTOOL for the host
1580 LD LD for the host
1581 LIPO LIPO for the host
1582 NM NM for the host
1583 RANLIB RANLIB for the host
1584 STRIP STRIP for the host
1585 WINDRES WINDRES for the host
1586 WINDMC WINDMC for the host
1587 OBJCOPY OBJCOPY for the host
1588 OBJDUMP OBJDUMP for the host
1589 READELF READELF for the host
1590 CC_FOR_TARGET
1591 CC for the target
1592 CXX_FOR_TARGET
1593 CXX for the target
1594 GCC_FOR_TARGET
1595 GCC for the target
1596 GCJ_FOR_TARGET
1597 GCJ for the target
1598 GFORTRAN_FOR_TARGET
1599 GFORTRAN for the target
1600 GOC_FOR_TARGET
1601 GOC for the target
1602 AR_FOR_TARGET
1603 AR for the target
1604 AS_FOR_TARGET
1605 AS for the target
1606 DLLTOOL_FOR_TARGET
1607 DLLTOOL for the target
1608 LD_FOR_TARGET
1609 LD for the target
1610 LIPO_FOR_TARGET
1611 LIPO for the target
1612 NM_FOR_TARGET
1613 NM for the target
1614 OBJCOPY_FOR_TARGET
1615 OBJCOPY for the target
1616 OBJDUMP_FOR_TARGET
1617 OBJDUMP for the target
1618 RANLIB_FOR_TARGET
1619 RANLIB for the target
1620 READELF_FOR_TARGET
1621 READELF for the target
1622 STRIP_FOR_TARGET
1623 STRIP for the target
1624 WINDRES_FOR_TARGET
1625 WINDRES for the target
1626 WINDMC_FOR_TARGET
1627 WINDMC for the target
1628
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1631
1632 Report bugs to the package provider.
1633 _ACEOF
1634 ac_status=$?
1635 fi
1636
1637 if test "$ac_init_help" = "recursive"; then
1638 # If there are subdirs, report their specific --help.
1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640 test -d "$ac_dir" ||
1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642 continue
1643 ac_builddir=.
1644
1645 case "$ac_dir" in
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *)
1648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649 # A ".." for each directory in $ac_dir_suffix.
1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654 esac ;;
1655 esac
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1660
1661 case $srcdir in
1662 .) # We are building in place.
1663 ac_srcdir=.
1664 ac_top_srcdir=$ac_top_builddir_sub
1665 ac_abs_top_srcdir=$ac_pwd ;;
1666 [\\/]* | ?:[\\/]* ) # Absolute name.
1667 ac_srcdir=$srcdir$ac_dir_suffix;
1668 ac_top_srcdir=$srcdir
1669 ac_abs_top_srcdir=$srcdir ;;
1670 *) # Relative name.
1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1674 esac
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677 cd "$ac_dir" || { ac_status=$?; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure" --help=recursive
1685 else
1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1687 fi || ac_status=$?
1688 cd "$ac_pwd" || { ac_status=$?; break; }
1689 done
1690 fi
1691
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1694 cat <<\_ACEOF
1695 configure
1696 generated by GNU Autoconf 2.64
1697
1698 Copyright (C) 2009 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1701 _ACEOF
1702 exit
1703 fi
1704
1705 ## ------------------------ ##
1706 ## Autoconf initialization. ##
1707 ## ------------------------ ##
1708
1709 # ac_fn_c_try_compile LINENO
1710 # --------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_compile ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 return $ac_retval
1744
1745 } # ac_fn_c_try_compile
1746
1747 # ac_fn_cxx_try_compile LINENO
1748 # ----------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_cxx_try_compile ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext
1754 if { { ac_try="$ac_compile"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_compile") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_cxx_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest.$ac_objext; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779 fi
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 return $ac_retval
1782
1783 } # ac_fn_cxx_try_compile
1784
1785 # ac_fn_cxx_try_link LINENO
1786 # -------------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_cxx_try_link ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest$ac_exeext
1792 if { { ac_try="$ac_link"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1805 fi
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_cxx_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest$ac_exeext && {
1811 test "$cross_compiling" = yes ||
1812 $as_test_x conftest$ac_exeext
1813 }; then :
1814 ac_retval=0
1815 else
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=1
1820 fi
1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1823 # interfere with the next link command; also delete a directory that is
1824 # left behind by Apple's compiler. We do this before executing the actions.
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 return $ac_retval
1828
1829 } # ac_fn_cxx_try_link
1830
1831 # ac_fn_c_try_link LINENO
1832 # -----------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_link ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext conftest$ac_exeext
1838 if { { ac_try="$ac_link"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1851 fi
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_c_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest$ac_exeext && {
1857 test "$cross_compiling" = yes ||
1858 $as_test_x conftest$ac_exeext
1859 }; then :
1860 ac_retval=0
1861 else
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865 ac_retval=1
1866 fi
1867 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1868 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1869 # interfere with the next link command; also delete a directory that is
1870 # left behind by Apple's compiler. We do this before executing the actions.
1871 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 return $ac_retval
1874
1875 } # ac_fn_c_try_link
1876 cat >config.log <<_ACEOF
1877 This file contains any messages produced by compilers while
1878 running configure, to aid debugging if configure makes a mistake.
1879
1880 It was created by $as_me, which was
1881 generated by GNU Autoconf 2.64. Invocation command line was
1882
1883 $ $0 $@
1884
1885 _ACEOF
1886 exec 5>>config.log
1887 {
1888 cat <<_ASUNAME
1889 ## --------- ##
1890 ## Platform. ##
1891 ## --------- ##
1892
1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1898
1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1901
1902 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1903 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1906 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1907 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1908 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1909
1910 _ASUNAME
1911
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 $as_echo "PATH: $as_dir"
1918 done
1919 IFS=$as_save_IFS
1920
1921 } >&5
1922
1923 cat >&5 <<_ACEOF
1924
1925
1926 ## ----------- ##
1927 ## Core tests. ##
1928 ## ----------- ##
1929
1930 _ACEOF
1931
1932
1933 # Keep a trace of the command line.
1934 # Strip out --no-create and --no-recursion so they do not pile up.
1935 # Strip out --silent because we don't want to record it for future runs.
1936 # Also quote any args containing shell meta-characters.
1937 # Make two passes to allow for proper duplicate-argument suppression.
1938 ac_configure_args=
1939 ac_configure_args0=
1940 ac_configure_args1=
1941 ac_must_keep_next=false
1942 for ac_pass in 1 2
1943 do
1944 for ac_arg
1945 do
1946 case $ac_arg in
1947 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949 | -silent | --silent | --silen | --sile | --sil)
1950 continue ;;
1951 *\'*)
1952 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1953 esac
1954 case $ac_pass in
1955 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956 2)
1957 as_fn_append ac_configure_args1 " '$ac_arg'"
1958 if test $ac_must_keep_next = true; then
1959 ac_must_keep_next=false # Got value, back to normal.
1960 else
1961 case $ac_arg in
1962 *=* | --config-cache | -C | -disable-* | --disable-* \
1963 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965 | -with-* | --with-* | -without-* | --without-* | --x)
1966 case "$ac_configure_args0 " in
1967 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1968 esac
1969 ;;
1970 -* ) ac_must_keep_next=true ;;
1971 esac
1972 fi
1973 as_fn_append ac_configure_args " '$ac_arg'"
1974 ;;
1975 esac
1976 done
1977 done
1978 { ac_configure_args0=; unset ac_configure_args0;}
1979 { ac_configure_args1=; unset ac_configure_args1;}
1980
1981 # When interrupted or exit'd, cleanup temporary files, and complete
1982 # config.log. We remove comments because anyway the quotes in there
1983 # would cause problems or look ugly.
1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986 trap 'exit_status=$?
1987 # Save into config.log some information that might help in debugging.
1988 {
1989 echo
1990
1991 cat <<\_ASBOX
1992 ## ---------------- ##
1993 ## Cache variables. ##
1994 ## ---------------- ##
1995 _ASBOX
1996 echo
1997 # The following way of writing the cache mishandles newlines in values,
1998 (
1999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2000 eval ac_val=\$$ac_var
2001 case $ac_val in #(
2002 *${as_nl}*)
2003 case $ac_var in #(
2004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006 esac
2007 case $ac_var in #(
2008 _ | IFS | as_nl) ;; #(
2009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2010 *) { eval $ac_var=; unset $ac_var;} ;;
2011 esac ;;
2012 esac
2013 done
2014 (set) 2>&1 |
2015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016 *${as_nl}ac_space=\ *)
2017 sed -n \
2018 "s/'\''/'\''\\\\'\'''\''/g;
2019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020 ;; #(
2021 *)
2022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2023 ;;
2024 esac |
2025 sort
2026 )
2027 echo
2028
2029 cat <<\_ASBOX
2030 ## ----------------- ##
2031 ## Output variables. ##
2032 ## ----------------- ##
2033 _ASBOX
2034 echo
2035 for ac_var in $ac_subst_vars
2036 do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in
2039 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040 esac
2041 $as_echo "$ac_var='\''$ac_val'\''"
2042 done | sort
2043 echo
2044
2045 if test -n "$ac_subst_files"; then
2046 cat <<\_ASBOX
2047 ## ------------------- ##
2048 ## File substitutions. ##
2049 ## ------------------- ##
2050 _ASBOX
2051 echo
2052 for ac_var in $ac_subst_files
2053 do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 $as_echo "$ac_var='\''$ac_val'\''"
2059 done | sort
2060 echo
2061 fi
2062
2063 if test -s confdefs.h; then
2064 cat <<\_ASBOX
2065 ## ----------- ##
2066 ## confdefs.h. ##
2067 ## ----------- ##
2068 _ASBOX
2069 echo
2070 cat confdefs.h
2071 echo
2072 fi
2073 test "$ac_signal" != 0 &&
2074 $as_echo "$as_me: caught signal $ac_signal"
2075 $as_echo "$as_me: exit $exit_status"
2076 } >&5
2077 rm -f core *.core core.conftest.* &&
2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2079 exit $exit_status
2080 ' 0
2081 for ac_signal in 1 2 13 15; do
2082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2083 done
2084 ac_signal=0
2085
2086 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2087 rm -f -r conftest* confdefs.h
2088
2089 $as_echo "/* confdefs.h */" > confdefs.h
2090
2091 # Predefined preprocessor variables.
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_NAME "$PACKAGE_NAME"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_STRING "$PACKAGE_STRING"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_URL "$PACKAGE_URL"
2115 _ACEOF
2116
2117
2118 # Let the site file select an alternate cache file if it wants to.
2119 # Prefer an explicitly selected file to automatically selected ones.
2120 ac_site_file1=NONE
2121 ac_site_file2=NONE
2122 if test -n "$CONFIG_SITE"; then
2123 ac_site_file1=$CONFIG_SITE
2124 elif test "x$prefix" != xNONE; then
2125 ac_site_file1=$prefix/share/config.site
2126 ac_site_file2=$prefix/etc/config.site
2127 else
2128 ac_site_file1=$ac_default_prefix/share/config.site
2129 ac_site_file2=$ac_default_prefix/etc/config.site
2130 fi
2131 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132 do
2133 test "x$ac_site_file" = xNONE && continue
2134 if test -r "$ac_site_file"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137 sed 's/^/| /' "$ac_site_file" >&5
2138 . "$ac_site_file"
2139 fi
2140 done
2141
2142 if test -r "$cache_file"; then
2143 # Some versions of bash will fail to source /dev/null (special
2144 # files actually), so we avoid doing that.
2145 if test -f "$cache_file"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2147 $as_echo "$as_me: loading cache $cache_file" >&6;}
2148 case $cache_file in
2149 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2150 *) . "./$cache_file";;
2151 esac
2152 fi
2153 else
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2155 $as_echo "$as_me: creating cache $cache_file" >&6;}
2156 >$cache_file
2157 fi
2158
2159 # Check that the precious variables saved in the cache have kept the same
2160 # value.
2161 ac_cache_corrupted=false
2162 for ac_var in $ac_precious_vars; do
2163 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2164 eval ac_new_set=\$ac_env_${ac_var}_set
2165 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2166 eval ac_new_val=\$ac_env_${ac_var}_value
2167 case $ac_old_set,$ac_new_set in
2168 set,)
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2171 ac_cache_corrupted=: ;;
2172 ,set)
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2176 ,);;
2177 *)
2178 if test "x$ac_old_val" != "x$ac_new_val"; then
2179 # differences in whitespace do not lead to failure.
2180 ac_old_val_w=`echo x $ac_old_val`
2181 ac_new_val_w=`echo x $ac_new_val`
2182 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2184 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2185 ac_cache_corrupted=:
2186 else
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2188 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2189 eval $ac_var=\$ac_old_val
2190 fi
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2192 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2194 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2195 fi;;
2196 esac
2197 # Pass precious variables to config.status.
2198 if test "$ac_new_set" = set; then
2199 case $ac_new_val in
2200 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2201 *) ac_arg=$ac_var=$ac_new_val ;;
2202 esac
2203 case " $ac_configure_args " in
2204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2205 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2206 esac
2207 fi
2208 done
2209 if $ac_cache_corrupted; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2213 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2214 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2215 fi
2216 ## -------------------- ##
2217 ## Main body of script. ##
2218 ## -------------------- ##
2219
2220 ac_ext=c
2221 ac_cpp='$CPP $CPPFLAGS'
2222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234 progname=$0
2235 # if PWD already has a value, it is probably wrong.
2236 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2237
2238 # Export original configure arguments for use by sub-configures.
2239 # Quote arguments with shell meta charatcers.
2240 TOPLEVEL_CONFIGURE_ARGUMENTS=
2241 set -- "$progname" "$@"
2242 for ac_arg
2243 do
2244 case "$ac_arg" in
2245 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2246 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2247 # if the argument is of the form -foo=baz, quote the baz part only
2248 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2249 *) ;;
2250 esac
2251 # Add the quoted argument to the list.
2252 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2253 done
2254 if test "$silent" = yes; then
2255 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2256 fi
2257 # Remove the initial space we just introduced and, as these will be
2258 # expanded by make, quote '$'.
2259 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2260
2261
2262 # Find the build, host, and target systems.
2263 ac_aux_dir=
2264 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2265 for ac_t in install-sh install.sh shtool; do
2266 if test -f "$ac_dir/$ac_t"; then
2267 ac_aux_dir=$ac_dir
2268 ac_install_sh="$ac_aux_dir/$ac_t -c"
2269 break 2
2270 fi
2271 done
2272 done
2273 if test -z "$ac_aux_dir"; then
2274 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2275 fi
2276
2277 # These three variables are undocumented and unsupported,
2278 # and are intended to be withdrawn in a future Autoconf release.
2279 # They can cause serious problems if a builder's source tree is in a directory
2280 # whose full name contains unusual characters.
2281 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2282 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2283 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2284
2285
2286 # Make sure we can run config.sub.
2287 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2288 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2289
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2291 $as_echo_n "checking build system type... " >&6; }
2292 if test "${ac_cv_build+set}" = set; then :
2293 $as_echo_n "(cached) " >&6
2294 else
2295 ac_build_alias=$build_alias
2296 test "x$ac_build_alias" = x &&
2297 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2298 test "x$ac_build_alias" = x &&
2299 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2300 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2301 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2302
2303 fi
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2305 $as_echo "$ac_cv_build" >&6; }
2306 case $ac_cv_build in
2307 *-*-*) ;;
2308 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2309 esac
2310 build=$ac_cv_build
2311 ac_save_IFS=$IFS; IFS='-'
2312 set x $ac_cv_build
2313 shift
2314 build_cpu=$1
2315 build_vendor=$2
2316 shift; shift
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2319 build_os=$*
2320 IFS=$ac_save_IFS
2321 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2322
2323
2324 case ${build_alias} in
2325 "") build_noncanonical=${build} ;;
2326 *) build_noncanonical=${build_alias} ;;
2327 esac
2328
2329
2330
2331 case ${host_alias} in
2332 "") host_noncanonical=${build_noncanonical} ;;
2333 *) host_noncanonical=${host_alias} ;;
2334 esac
2335
2336
2337
2338 case ${target_alias} in
2339 "") target_noncanonical=${host_noncanonical} ;;
2340 *) target_noncanonical=${target_alias} ;;
2341 esac
2342
2343
2344
2345
2346 test "$host_noncanonical" = "$target_noncanonical" &&
2347 test "$program_prefix$program_suffix$program_transform_name" = \
2348 NONENONEs,x,x, &&
2349 program_transform_name=s,y,y,
2350
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2352 $as_echo_n "checking host system type... " >&6; }
2353 if test "${ac_cv_host+set}" = set; then :
2354 $as_echo_n "(cached) " >&6
2355 else
2356 if test "x$host_alias" = x; then
2357 ac_cv_host=$ac_cv_build
2358 else
2359 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2360 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2361 fi
2362
2363 fi
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2365 $as_echo "$ac_cv_host" >&6; }
2366 case $ac_cv_host in
2367 *-*-*) ;;
2368 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2369 esac
2370 host=$ac_cv_host
2371 ac_save_IFS=$IFS; IFS='-'
2372 set x $ac_cv_host
2373 shift
2374 host_cpu=$1
2375 host_vendor=$2
2376 shift; shift
2377 # Remember, the first character of IFS is used to create $*,
2378 # except with old shells:
2379 host_os=$*
2380 IFS=$ac_save_IFS
2381 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2382
2383
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2385 $as_echo_n "checking target system type... " >&6; }
2386 if test "${ac_cv_target+set}" = set; then :
2387 $as_echo_n "(cached) " >&6
2388 else
2389 if test "x$target_alias" = x; then
2390 ac_cv_target=$ac_cv_host
2391 else
2392 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2393 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2394 fi
2395
2396 fi
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2398 $as_echo "$ac_cv_target" >&6; }
2399 case $ac_cv_target in
2400 *-*-*) ;;
2401 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2402 esac
2403 target=$ac_cv_target
2404 ac_save_IFS=$IFS; IFS='-'
2405 set x $ac_cv_target
2406 shift
2407 target_cpu=$1
2408 target_vendor=$2
2409 shift; shift
2410 # Remember, the first character of IFS is used to create $*,
2411 # except with old shells:
2412 target_os=$*
2413 IFS=$ac_save_IFS
2414 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2415
2416
2417 # The aliases save the names the user supplied, while $host etc.
2418 # will get canonicalized.
2419 test -n "$target_alias" &&
2420 test "$program_prefix$program_suffix$program_transform_name" = \
2421 NONENONEs,x,x, &&
2422 program_prefix=${target_alias}-
2423
2424 test "$program_prefix" != NONE &&
2425 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2426 # Use a double $ so make ignores it.
2427 test "$program_suffix" != NONE &&
2428 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2429 # Double any \ or $.
2430 # By default was `s,x,x', remove it if useless.
2431 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2432 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2433
2434
2435
2436 # Get 'install' or 'install-sh' and its variants.
2437 # Find a good install program. We prefer a C program (faster),
2438 # so one script is as good as another. But avoid the broken or
2439 # incompatible versions:
2440 # SysV /etc/install, /usr/sbin/install
2441 # SunOS /usr/etc/install
2442 # IRIX /sbin/install
2443 # AIX /bin/install
2444 # AmigaOS /C/install, which installs bootblocks on floppy discs
2445 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2446 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2447 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2448 # OS/2's system install, which has a completely different semantic
2449 # ./install, which can be erroneously created by make from ./install.sh.
2450 # Reject install programs that cannot install multiple files.
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2452 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2453 if test -z "$INSTALL"; then
2454 if test "${ac_cv_path_install+set}" = set; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 # Account for people who put trailing slashes in PATH elements.
2463 case $as_dir/ in #((
2464 ./ | .// | /[cC]/* | \
2465 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2466 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2467 /usr/ucb/* ) ;;
2468 *)
2469 # OSF1 and SCO ODT 3.0 have their own names for install.
2470 # Don't use installbsd from OSF since it installs stuff as root
2471 # by default.
2472 for ac_prog in ginstall scoinst install; do
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2475 if test $ac_prog = install &&
2476 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477 # AIX install. It has an incompatible calling convention.
2478 :
2479 elif test $ac_prog = install &&
2480 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481 # program-specific install script used by HP pwplus--don't use.
2482 :
2483 else
2484 rm -rf conftest.one conftest.two conftest.dir
2485 echo one > conftest.one
2486 echo two > conftest.two
2487 mkdir conftest.dir
2488 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2489 test -s conftest.one && test -s conftest.two &&
2490 test -s conftest.dir/conftest.one &&
2491 test -s conftest.dir/conftest.two
2492 then
2493 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2494 break 3
2495 fi
2496 fi
2497 fi
2498 done
2499 done
2500 ;;
2501 esac
2502
2503 done
2504 IFS=$as_save_IFS
2505
2506 rm -rf conftest.one conftest.two conftest.dir
2507
2508 fi
2509 if test "${ac_cv_path_install+set}" = set; then
2510 INSTALL=$ac_cv_path_install
2511 else
2512 # As a last resort, use the slow shell script. Don't cache a
2513 # value for INSTALL within a source directory, because that will
2514 # break other packages using the cache if that directory is
2515 # removed, or if the value is a relative name.
2516 INSTALL=$ac_install_sh
2517 fi
2518 fi
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2520 $as_echo "$INSTALL" >&6; }
2521
2522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2523 # It thinks the first close brace ends the variable substitution.
2524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2525
2526 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2527
2528 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2529
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2531 $as_echo_n "checking whether ln works... " >&6; }
2532 if test "${acx_cv_prog_LN+set}" = set; then :
2533 $as_echo_n "(cached) " >&6
2534 else
2535 rm -f conftestdata_t
2536 echo >conftestdata_f
2537 if ln conftestdata_f conftestdata_t 2>/dev/null
2538 then
2539 acx_cv_prog_LN=ln
2540 else
2541 acx_cv_prog_LN=no
2542 fi
2543 rm -f conftestdata_f conftestdata_t
2544
2545 fi
2546 if test $acx_cv_prog_LN = no; then
2547 LN="cp"
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2549 $as_echo "no, using $LN" >&6; }
2550 else
2551 LN="$acx_cv_prog_LN"
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2553 $as_echo "yes" >&6; }
2554 fi
2555
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2557 $as_echo_n "checking whether ln -s works... " >&6; }
2558 LN_S=$as_ln_s
2559 if test "$LN_S" = "ln -s"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2561 $as_echo "yes" >&6; }
2562 else
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2564 $as_echo "no, using $LN_S" >&6; }
2565 fi
2566
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2568 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2569 if test "${ac_cv_path_SED+set}" = set; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2573 for ac_i in 1 2 3 4 5 6 7; do
2574 ac_script="$ac_script$as_nl$ac_script"
2575 done
2576 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2577 { ac_script=; unset ac_script;}
2578 if test -z "$SED"; then
2579 ac_path_SED_found=false
2580 # Loop through the user's path and test for each of PROGNAME-LIST
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_prog in sed gsed; do
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2589 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2590 # Check for GNU ac_path_SED and select it if it is found.
2591 # Check for GNU $ac_path_SED
2592 case `"$ac_path_SED" --version 2>&1` in
2593 *GNU*)
2594 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2595 *)
2596 ac_count=0
2597 $as_echo_n 0123456789 >"conftest.in"
2598 while :
2599 do
2600 cat "conftest.in" "conftest.in" >"conftest.tmp"
2601 mv "conftest.tmp" "conftest.in"
2602 cp "conftest.in" "conftest.nl"
2603 $as_echo '' >> "conftest.nl"
2604 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2606 as_fn_arith $ac_count + 1 && ac_count=$as_val
2607 if test $ac_count -gt ${ac_path_SED_max-0}; then
2608 # Best one so far, save it but keep looking for a better one
2609 ac_cv_path_SED="$ac_path_SED"
2610 ac_path_SED_max=$ac_count
2611 fi
2612 # 10*(2^10) chars as input seems more than enough
2613 test $ac_count -gt 10 && break
2614 done
2615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2616 esac
2617
2618 $ac_path_SED_found && break 3
2619 done
2620 done
2621 done
2622 IFS=$as_save_IFS
2623 if test -z "$ac_cv_path_SED"; then
2624 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2625 fi
2626 else
2627 ac_cv_path_SED=$SED
2628 fi
2629
2630 fi
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2632 $as_echo "$ac_cv_path_SED" >&6; }
2633 SED="$ac_cv_path_SED"
2634 rm -f conftest.sed
2635
2636 for ac_prog in gawk mawk nawk awk
2637 do
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_AWK+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 if test -n "$AWK"; then
2646 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_AWK="$ac_prog"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2658 fi
2659 done
2660 done
2661 IFS=$as_save_IFS
2662
2663 fi
2664 fi
2665 AWK=$ac_cv_prog_AWK
2666 if test -n "$AWK"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2668 $as_echo "$AWK" >&6; }
2669 else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2672 fi
2673
2674
2675 test -n "$AWK" && break
2676 done
2677
2678
2679 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2680
2681 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2682 # a relative path.
2683 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2684 INSTALL="${srcpwd}/install-sh -c"
2685 fi
2686
2687 # Set srcdir to "." if that's what it is.
2688 # This is important for multilib support.
2689 pwd=`${PWDCMD-pwd}`
2690 if test "${pwd}" = "${srcpwd}" ; then
2691 srcdir=.
2692 fi
2693
2694 topsrcdir=$srcpwd
2695
2696 extra_host_args=
2697
2698 ### To add a new directory to the tree, first choose whether it is a target
2699 ### or a host dependent tool. Then put it into the appropriate list
2700 ### (library or tools, host or target), doing a dependency sort.
2701
2702 # Subdirs will be configured in the order listed in build_configdirs,
2703 # configdirs, or target_configdirs; see the serialization section below.
2704
2705 # Dependency sorting is only needed when *configuration* must be done in
2706 # a particular order. In all cases a dependency should be specified in
2707 # the Makefile, whether or not it's implicitly specified here.
2708
2709 # Double entries in build_configdirs, configdirs, or target_configdirs may
2710 # cause circular dependencies and break everything horribly.
2711
2712 # these library is used by various programs built for the build
2713 # environment
2714 #
2715 build_libs="build-libiberty build-libcpp"
2716
2717 # these tools are built for the build environment
2718 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2719
2720 # these libraries are used by various programs built for the host environment
2721 #f
2722 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2723
2724 # these tools are built for the host environment
2725 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2726 # know that we are building the simulator.
2727 # binutils, gas and ld appear in that order because it makes sense to run
2728 # "make check" in that particular order.
2729 # If --enable-gold is used, "gold" may replace "ld".
2730 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2731
2732 # these libraries are built for the target environment, and are built after
2733 # the host libraries and the host tools (which may be a cross compiler)
2734 # Note that libiberty is not a target library.
2735 target_libraries="target-libgcc \
2736 target-libbacktrace \
2737 target-libgloss \
2738 target-newlib \
2739 target-libgomp \
2740 target-libcilkrts \
2741 target-liboffloadmic \
2742 target-libatomic \
2743 target-libitm \
2744 target-libstdc++-v3 \
2745 target-libsanitizer \
2746 target-libvtv \
2747 target-libmpx \
2748 target-libssp \
2749 target-libquadmath \
2750 target-libgfortran \
2751 target-libffi \
2752 target-libobjc \
2753 target-libada \
2754 target-libgo"
2755
2756 # these tools are built using the target libraries, and are intended to
2757 # run only in the target environment
2758 #
2759 # note: any program that *uses* libraries that are in the "target_libraries"
2760 # list belongs in this list.
2761 #
2762 target_tools="target-rda"
2763
2764 ################################################################################
2765
2766 ## All tools belong in one of the four categories, and are assigned above
2767 ## We assign ${configdirs} this way to remove all embedded newlines. This
2768 ## is important because configure will choke if they ever get through.
2769 ## ${configdirs} is directories we build using the host tools.
2770 ## ${target_configdirs} is directories we build using the target tools.
2771 configdirs=`echo ${host_libs} ${host_tools}`
2772 target_configdirs=`echo ${target_libraries} ${target_tools}`
2773 build_configdirs=`echo ${build_libs} ${build_tools}`
2774
2775
2776
2777 ################################################################################
2778
2779 srcname="gnu development package"
2780
2781 # This gets set non-empty for some net releases of packages.
2782 appdirs=""
2783
2784 # Define is_cross_compiler to save on calls to 'test'.
2785 is_cross_compiler=
2786 if test x"${host}" = x"${target}" ; then
2787 is_cross_compiler=no
2788 else
2789 is_cross_compiler=yes
2790 fi
2791
2792 # Find the build and target subdir names.
2793
2794 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2795 # have matching libraries, they should use host libraries: Makefile.tpl
2796 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2797 # However, they still use the build modules, because the corresponding
2798 # host modules (e.g. bison) are only built for the host when bootstrap
2799 # finishes. So:
2800 # - build_subdir is where we find build modules, and never changes.
2801 # - build_libsubdir is where we find build libraries, and can be overridden.
2802
2803 # Prefix 'build-' so this never conflicts with target_subdir.
2804 build_subdir="build-${build_noncanonical}"
2805
2806 # Check whether --with-build-libsubdir was given.
2807 if test "${with_build_libsubdir+set}" = set; then :
2808 withval=$with_build_libsubdir; build_libsubdir="$withval"
2809 else
2810 build_libsubdir="$build_subdir"
2811 fi
2812
2813 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2814 if ( test $srcdir = . && test -d gcc ) \
2815 || test -d $srcdir/../host-${host_noncanonical}; then
2816 host_subdir="host-${host_noncanonical}"
2817 else
2818 host_subdir=.
2819 fi
2820 # No prefix.
2821 target_subdir=${target_noncanonical}
2822
2823 # Be sure to cover against remnants of an in-tree build.
2824 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2825 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2826 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2827 fi
2828
2829 # Skipdirs are removed silently.
2830 skipdirs=
2831 # Noconfigdirs are removed loudly.
2832 noconfigdirs=""
2833
2834 use_gnu_ld=
2835 # Make sure we don't let GNU ld be added if we didn't want it.
2836 if test x$with_gnu_ld = xno ; then
2837 use_gnu_ld=no
2838 noconfigdirs="$noconfigdirs ld gold"
2839 fi
2840
2841 use_gnu_as=
2842 # Make sure we don't let GNU as be added if we didn't want it.
2843 if test x$with_gnu_as = xno ; then
2844 use_gnu_as=no
2845 noconfigdirs="$noconfigdirs gas"
2846 fi
2847
2848 use_included_zlib=
2849
2850 # Check whether --with-system-zlib was given.
2851 if test "${with_system_zlib+set}" = set; then :
2852 withval=$with_system_zlib;
2853 fi
2854
2855 # Make sure we don't let ZLIB be added if we didn't want it.
2856 if test x$with_system_zlib = xyes ; then
2857 use_included_zlib=no
2858 noconfigdirs="$noconfigdirs zlib"
2859 fi
2860
2861 # some tools are so dependent upon X11 that if we're not building with X,
2862 # it's not even worth trying to configure, much less build, that tool.
2863
2864 case ${with_x} in
2865 yes | "") ;; # the default value for this tree is that X11 is available
2866 no)
2867 skipdirs="${skipdirs} tk itcl libgui"
2868 # We won't be able to build gdbtk without X.
2869 enable_gdbtk=no
2870 ;;
2871 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2872 esac
2873
2874 # Some are only suitable for cross toolchains.
2875 # Remove these if host=target.
2876 cross_only="target-libgloss target-newlib target-opcodes"
2877
2878 case $is_cross_compiler in
2879 no) skipdirs="${skipdirs} ${cross_only}" ;;
2880 esac
2881
2882 # If both --with-headers and --with-libs are specified, default to
2883 # --without-newlib.
2884 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2885 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2886 if test x"${with_newlib}" = x ; then
2887 with_newlib=no
2888 fi
2889 fi
2890
2891 # Recognize --with-newlib/--without-newlib.
2892 case ${with_newlib} in
2893 no) skipdirs="${skipdirs} target-newlib" ;;
2894 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2895 esac
2896
2897 # Check whether --enable-as-accelerator-for was given.
2898 if test "${enable_as_accelerator_for+set}" = set; then :
2899 enableval=$enable_as_accelerator_for;
2900 fi
2901
2902
2903 # Check whether --enable-offload-targets was given.
2904 if test "${enable_offload_targets+set}" = set; then :
2905 enableval=$enable_offload_targets;
2906 if test x"$enable_offload_targets" = x; then
2907 as_fn_error "no offload targets specified" "$LINENO" 5
2908 fi
2909
2910 else
2911 enable_offload_targets=
2912 fi
2913
2914
2915 # Handle --enable-gold, --enable-ld.
2916 # --disable-gold [--enable-ld]
2917 # Build only ld. Default option.
2918 # --enable-gold [--enable-ld]
2919 # Build both gold and ld. Install gold as "ld.gold", install ld
2920 # as "ld.bfd" and "ld".
2921 # --enable-gold=default [--enable-ld]
2922 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2923 # install ld as "ld.bfd".
2924 # --enable-gold[=default] --disable-ld
2925 # Build only gold, which is then installed as both "ld.gold" and "ld".
2926 # --enable-gold --enable-ld=default
2927 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2928 # and ld.bfd).
2929 # In other words, ld is default
2930 # --enable-gold=default --enable-ld=default
2931 # Error.
2932
2933 default_ld=
2934 # Check whether --enable-gold was given.
2935 if test "${enable_gold+set}" = set; then :
2936 enableval=$enable_gold; ENABLE_GOLD=$enableval
2937 else
2938 ENABLE_GOLD=no
2939 fi
2940
2941 case "${ENABLE_GOLD}" in
2942 yes|default)
2943 # Check for ELF target.
2944 is_elf=no
2945 case "${target}" in
2946 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2947 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2948 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2949 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2950 case "${target}" in
2951 *-*-linux*aout* | *-*-linux*oldld*)
2952 ;;
2953 *)
2954 is_elf=yes
2955 ;;
2956 esac
2957 esac
2958
2959 if test "$is_elf" = "yes"; then
2960 # Check for target supported by gold.
2961 case "${target}" in
2962 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2963 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2964 configdirs="$configdirs gold"
2965 if test x${ENABLE_GOLD} = xdefault; then
2966 default_ld=gold
2967 fi
2968 ENABLE_GOLD=yes
2969 ;;
2970 esac
2971 fi
2972 ;;
2973 no)
2974 ;;
2975 *)
2976 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2977 ;;
2978 esac
2979
2980 # Check whether --enable-ld was given.
2981 if test "${enable_ld+set}" = set; then :
2982 enableval=$enable_ld; ENABLE_LD=$enableval
2983 else
2984 ENABLE_LD=yes
2985 fi
2986
2987
2988 case "${ENABLE_LD}" in
2989 default)
2990 if test x${default_ld} != x; then
2991 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2992 fi
2993 ;;
2994 yes)
2995 ;;
2996 no)
2997 if test x${ENABLE_GOLD} != xyes; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2999 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3000 fi
3001 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3002 ;;
3003 *)
3004 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3005 ;;
3006 esac
3007
3008 # PR gas/19109
3009 # Decide the default method for compressing debug sections.
3010 # Provide a configure time option to override our default.
3011 # Check whether --enable-compressed_debug_sections was given.
3012 if test "${enable_compressed_debug_sections+set}" = set; then :
3013 enableval=$enable_compressed_debug_sections;
3014 if test x"$enable_compressed_debug_sections" = xyes; then
3015 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3016 fi
3017
3018 else
3019 enable_compressed_debug_sections=
3020 fi
3021
3022
3023 # Configure extra directories which are host specific
3024
3025 case "${host}" in
3026 *-cygwin*)
3027 configdirs="$configdirs libtermcap" ;;
3028 esac
3029
3030 # A target can indicate whether a language isn't supported for some reason.
3031 # Only spaces may be used in this macro; not newlines or tabs.
3032 unsupported_languages=
3033
3034 # Remove more programs from consideration, based on the host or
3035 # target this usually means that a port of the program doesn't
3036 # exist yet.
3037
3038 case "${host}" in
3039 i[3456789]86-*-msdosdjgpp*)
3040 noconfigdirs="$noconfigdirs tcl tk itcl"
3041 ;;
3042 esac
3043
3044
3045 # Check whether --enable-libquadmath was given.
3046 if test "${enable_libquadmath+set}" = set; then :
3047 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3048 else
3049 ENABLE_LIBQUADMATH=yes
3050 fi
3051
3052 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3053 noconfigdirs="$noconfigdirs target-libquadmath"
3054 fi
3055
3056
3057 # Check whether --enable-libquadmath-support was given.
3058 if test "${enable_libquadmath_support+set}" = set; then :
3059 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3060 else
3061 ENABLE_LIBQUADMATH_SUPPORT=yes
3062 fi
3063
3064 enable_libquadmath_support=
3065 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3066 enable_libquadmath_support=no
3067 fi
3068
3069
3070 # Check whether --enable-libada was given.
3071 if test "${enable_libada+set}" = set; then :
3072 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3073 else
3074 ENABLE_LIBADA=yes
3075 fi
3076
3077 if test "${ENABLE_LIBADA}" != "yes" ; then
3078 noconfigdirs="$noconfigdirs gnattools"
3079 fi
3080
3081 # Check whether --enable-libssp was given.
3082 if test "${enable_libssp+set}" = set; then :
3083 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3084 else
3085 ENABLE_LIBSSP=yes
3086 fi
3087
3088
3089 # Check whether --enable-libstdcxx was given.
3090 if test "${enable_libstdcxx+set}" = set; then :
3091 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3092 else
3093 ENABLE_LIBSTDCXX=default
3094 fi
3095
3096 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3097 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3098 fi
3099
3100 # If this is accelerator compiler and its target is intelmic we enable
3101 # target liboffloadmic by default. If this is compiler with offloading
3102 # for intelmic we enable host liboffloadmic by default. Otherwise
3103 # liboffloadmic is disabled by default.
3104 # Check whether --enable-liboffloadmic was given.
3105 if test "${enable_liboffloadmic+set}" = set; then :
3106 enableval=$enable_liboffloadmic; case "$enableval" in
3107 no | host | target)
3108 enable_liboffloadmic=$enableval ;;
3109 *)
3110 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3111 esac
3112 else
3113 if test x"$enable_as_accelerator_for" != x; then
3114 case "${target}" in
3115 *-intelmic-* | *-intelmicemul-*)
3116 enable_liboffloadmic=target
3117 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3118 ;;
3119 *)
3120 enable_liboffloadmic=no
3121 ;;
3122 esac
3123 else
3124 case "${enable_offload_targets}" in
3125 *-intelmic-* | *-intelmicemul-*)
3126 enable_liboffloadmic=host
3127 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3128 ;;
3129 *)
3130 enable_liboffloadmic=no
3131 ;;
3132 esac
3133 fi
3134 fi
3135
3136
3137
3138 # Enable libgomp by default on hosted POSIX systems, and a few others.
3139 if test x$enable_libgomp = x ; then
3140 case "${target}" in
3141 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3142 ;;
3143 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3144 ;;
3145 *-*-solaris2* | *-*-hpux11*)
3146 ;;
3147 *-*-darwin* | *-*-aix*)
3148 ;;
3149 nvptx*-*-*)
3150 ;;
3151 *)
3152 noconfigdirs="$noconfigdirs target-libgomp"
3153 ;;
3154 esac
3155 fi
3156
3157 # Disable libatomic on unsupported systems.
3158 if test -d ${srcdir}/libatomic; then
3159 if test x$enable_libatomic = x; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3161 $as_echo_n "checking for libatomic support... " >&6; }
3162 if (srcdir=${srcdir}/libatomic; \
3163 . ${srcdir}/configure.tgt; \
3164 test -n "$UNSUPPORTED")
3165 then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 noconfigdirs="$noconfigdirs target-libatomic"
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171 $as_echo "yes" >&6; }
3172 fi
3173 fi
3174 fi
3175
3176 # Disable libcilkrts on unsupported systems.
3177 if test -d ${srcdir}/libcilkrts; then
3178 if test x$enable_libcilkrts = x; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3180 $as_echo_n "checking for libcilkrts support... " >&6; }
3181 if (srcdir=${srcdir}/libcilkrts; \
3182 . ${srcdir}/configure.tgt; \
3183 test -n "$UNSUPPORTED")
3184 then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3187 noconfigdirs="$noconfigdirs target-libcilkrts"
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3190 $as_echo "yes" >&6; }
3191 fi
3192 fi
3193 fi
3194
3195 # Disable liboffloadmic on unsupported systems.
3196 if test -d ${srcdir}/liboffloadmic; then
3197 if test x$enable_liboffloadmic != xno; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3199 $as_echo_n "checking for liboffloadmic support... " >&6; }
3200 if (srcdir=${srcdir}/liboffloadmic; \
3201 . ${srcdir}/configure.tgt; \
3202 test -n "$UNSUPPORTED")
3203 then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 noconfigdirs="$noconfigdirs target-liboffloadmic"
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209 $as_echo "yes" >&6; }
3210 fi
3211 fi
3212 fi
3213
3214 # Disable libitm on unsupported systems.
3215 if test -d ${srcdir}/libitm; then
3216 if test x$enable_libitm = x; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3218 $as_echo_n "checking for libitm support... " >&6; }
3219 if (srcdir=${srcdir}/libitm; \
3220 . ${srcdir}/configure.tgt; \
3221 test -n "$UNSUPPORTED")
3222 then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 noconfigdirs="$noconfigdirs target-libitm"
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 $as_echo "yes" >&6; }
3229 fi
3230 fi
3231 fi
3232
3233 # Disable libsanitizer on unsupported systems.
3234 if test -d ${srcdir}/libsanitizer; then
3235 if test x$enable_libsanitizer = x; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3237 $as_echo_n "checking for libsanitizer support... " >&6; }
3238 if (srcdir=${srcdir}/libsanitizer; \
3239 . ${srcdir}/configure.tgt; \
3240 test -n "$UNSUPPORTED")
3241 then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 noconfigdirs="$noconfigdirs target-libsanitizer"
3245 else
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 $as_echo "yes" >&6; }
3248 fi
3249 fi
3250 fi
3251
3252 # Disable libvtv on unsupported systems.
3253 if test -d ${srcdir}/libvtv; then
3254 if test x$enable_libvtv = x; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3256 $as_echo_n "checking for libvtv support... " >&6; }
3257 if (srcdir=${srcdir}/libvtv; \
3258 . ${srcdir}/configure.tgt; \
3259 test "$VTV_SUPPORTED" != "yes")
3260 then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 noconfigdirs="$noconfigdirs target-libvtv"
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3266 $as_echo "yes" >&6; }
3267 fi
3268 fi
3269 fi
3270
3271
3272 # Enable libmpx on supported systems by request.
3273 if test -d ${srcdir}/libmpx; then
3274 if test x$enable_libmpx = x; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3276 $as_echo_n "checking for libmpx support... " >&6; }
3277 if (srcdir=${srcdir}/libmpx; \
3278 . ${srcdir}/configure.tgt; \
3279 test "$LIBMPX_SUPPORTED" != "yes")
3280 then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 noconfigdirs="$noconfigdirs target-libmpx"
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3287 fi
3288 fi
3289 fi
3290
3291
3292
3293 # Disable libquadmath for some systems.
3294 case "${target}" in
3295 avr-*-*)
3296 noconfigdirs="$noconfigdirs target-libquadmath"
3297 ;;
3298 # libquadmath is unused on AIX and libquadmath build process use of
3299 # LD_LIBRARY_PATH can break AIX bootstrap.
3300 powerpc-*-aix* | rs6000-*-aix*)
3301 noconfigdirs="$noconfigdirs target-libquadmath"
3302 ;;
3303 esac
3304
3305 # Disable libssp for some systems.
3306 case "${target}" in
3307 avr-*-*)
3308 # No hosted I/O support.
3309 noconfigdirs="$noconfigdirs target-libssp"
3310 ;;
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 noconfigdirs="$noconfigdirs target-libssp"
3313 ;;
3314 rl78-*-*)
3315 # libssp uses a misaligned load to trigger a fault, but the RL78
3316 # doesn't fault for those - instead, it gives a build-time error
3317 # for explicit misaligned loads.
3318 noconfigdirs="$noconfigdirs target-libssp"
3319 ;;
3320 visium-*-*)
3321 # No hosted I/O support.
3322 noconfigdirs="$noconfigdirs target-libssp"
3323 ;;
3324 esac
3325
3326 # Disable libstdc++-v3 for some systems.
3327 # Allow user to override this if they pass --enable-libstdc++-v3
3328 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3329 case "${target}" in
3330 *-*-vxworks*)
3331 # VxWorks uses the Dinkumware C++ library.
3332 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3333 ;;
3334 arm*-wince-pe*)
3335 # the C++ libraries don't build on top of CE's C libraries
3336 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3337 ;;
3338 avr-*-*)
3339 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3340 ;;
3341 ft32-*-*)
3342 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3343 ;;
3344 esac
3345 fi
3346
3347 # Disable Fortran for some systems.
3348 case "${target}" in
3349 mmix-*-*)
3350 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3351 unsupported_languages="$unsupported_languages fortran"
3352 ;;
3353 esac
3354
3355 # Disable libffi for some systems.
3356 case "${target}" in
3357 powerpc-*-darwin*)
3358 ;;
3359 i[3456789]86-*-darwin*)
3360 ;;
3361 x86_64-*-darwin[912]*)
3362 ;;
3363 *-*-darwin*)
3364 noconfigdirs="$noconfigdirs target-libffi"
3365 ;;
3366 *-*-netware*)
3367 noconfigdirs="$noconfigdirs target-libffi"
3368 ;;
3369 *-*-phoenix*)
3370 noconfigdirs="$noconfigdirs target-libffi"
3371 ;;
3372 *-*-rtems*)
3373 noconfigdirs="$noconfigdirs target-libffi"
3374 ;;
3375 *-*-tpf*)
3376 noconfigdirs="$noconfigdirs target-libffi"
3377 ;;
3378 *-*-uclinux*)
3379 noconfigdirs="$noconfigdirs target-libffi"
3380 ;;
3381 *-*-vxworks*)
3382 noconfigdirs="$noconfigdirs target-libffi"
3383 ;;
3384 alpha*-*-*vms*)
3385 noconfigdirs="$noconfigdirs target-libffi"
3386 ;;
3387 arm*-*-freebsd*)
3388 noconfigdirs="$noconfigdirs target-libffi"
3389 ;;
3390 arm-wince-pe)
3391 noconfigdirs="$noconfigdirs target-libffi"
3392 ;;
3393 arm*-*-symbianelf*)
3394 noconfigdirs="$noconfigdirs target-libffi"
3395 ;;
3396 cris-*-* | crisv32-*-*)
3397 case "${target}" in
3398 *-*-linux*)
3399 ;;
3400 *) # See PR46792 regarding target-libffi.
3401 noconfigdirs="$noconfigdirs target-libffi";;
3402 esac
3403 ;;
3404 hppa*64*-*-hpux*)
3405 noconfigdirs="$noconfigdirs target-libffi"
3406 ;;
3407 hppa*-hp-hpux11*)
3408 ;;
3409 hppa*-*-hpux*)
3410 noconfigdirs="$noconfigdirs target-libffi"
3411 ;;
3412 ia64*-*-*vms*)
3413 noconfigdirs="$noconfigdirs target-libffi"
3414 ;;
3415 i[3456789]86-w64-mingw*)
3416 noconfigdirs="$noconfigdirs target-libffi"
3417 ;;
3418 i[3456789]86-*-mingw*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3420 ;;
3421 x86_64-*-mingw*)
3422 noconfigdirs="$noconfigdirs target-libffi"
3423 ;;
3424 mmix-*-*)
3425 noconfigdirs="$noconfigdirs target-libffi"
3426 ;;
3427 powerpc-*-aix*)
3428 # copied from rs6000-*-* entry
3429 noconfigdirs="$noconfigdirs target-libffi"
3430 ;;
3431 rs6000-*-aix*)
3432 noconfigdirs="$noconfigdirs target-libffi"
3433 ;;
3434 ft32-*-*)
3435 noconfigdirs="$noconfigdirs target-libffi"
3436 ;;
3437 *-*-lynxos*)
3438 noconfigdirs="$noconfigdirs target-libffi"
3439 ;;
3440 esac
3441
3442 # Disable the go frontend on systems where it is known to not work. Please keep
3443 # this in sync with contrib/config-list.mk.
3444 case "${target}" in
3445 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3446 unsupported_languages="$unsupported_languages go"
3447 ;;
3448 esac
3449
3450 # Disable libgo for some systems where it is known to not work.
3451 # For testing, you can easily override this with --enable-libgo.
3452 if test x$enable_libgo = x; then
3453 case "${target}" in
3454 *-*-darwin*)
3455 # PR 46986
3456 noconfigdirs="$noconfigdirs target-libgo"
3457 ;;
3458 *-*-cygwin* | *-*-mingw*)
3459 noconfigdirs="$noconfigdirs target-libgo"
3460 ;;
3461 *-*-aix*)
3462 noconfigdirs="$noconfigdirs target-libgo"
3463 ;;
3464 esac
3465 fi
3466
3467 # Default libgloss CPU subdirectory.
3468 libgloss_dir="$target_cpu"
3469
3470 case "${target}" in
3471 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3472 libgloss_dir=wince
3473 ;;
3474 aarch64*-*-* )
3475 libgloss_dir=aarch64
3476 ;;
3477 arm*-*-*)
3478 libgloss_dir=arm
3479 ;;
3480 cris-*-* | crisv32-*-*)
3481 libgloss_dir=cris
3482 ;;
3483 hppa*-*-*)
3484 libgloss_dir=pa
3485 ;;
3486 i[3456789]86-*-*)
3487 libgloss_dir=i386
3488 ;;
3489 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3490 libgloss_dir=m68hc11
3491 ;;
3492 m68*-*-* | fido-*-*)
3493 libgloss_dir=m68k
3494 ;;
3495 mips*-*-*)
3496 libgloss_dir=mips
3497 ;;
3498 powerpc*-*-*)
3499 libgloss_dir=rs6000
3500 ;;
3501 sparc*-*-*)
3502 libgloss_dir=sparc
3503 ;;
3504 esac
3505
3506 # Disable newlib and libgloss for various target OSes.
3507 case "${target}" in
3508 alpha*-dec-osf*)
3509 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3510 ;;
3511 i[3456789]86-*-linux*)
3512 # This section makes it possible to build newlib natively on linux.
3513 # If we are using a cross compiler then don't configure newlib.
3514 if test x${is_cross_compiler} != xno ; then
3515 noconfigdirs="$noconfigdirs target-newlib"
3516 fi
3517 noconfigdirs="$noconfigdirs target-libgloss"
3518 # If we are not using a cross compiler, do configure newlib.
3519 # Note however, that newlib will only be configured in this situation
3520 # if the --with-newlib option has been given, because otherwise
3521 # 'target-newlib' will appear in skipdirs.
3522 ;;
3523 i[3456789]86-*-rdos*)
3524 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3525 ;;
3526 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3527 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3528 ;;
3529 sparc-*-sunos4*)
3530 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3531 ;;
3532 *-*-aix*)
3533 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3534 ;;
3535 *-*-beos*)
3536 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3537 ;;
3538 *-*-chorusos)
3539 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3540 ;;
3541 *-*-dragonfly*)
3542 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3543 ;;
3544 *-*-freebsd*)
3545 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3546 ;;
3547 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3548 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3549 ;;
3550 *-*-lynxos*)
3551 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3552 ;;
3553 *-*-mingw*)
3554 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3555 ;;
3556 *-*-netbsd*)
3557 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3558 ;;
3559 *-*-netware*)
3560 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3561 ;;
3562 *-*-tpf*)
3563 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3564 ;;
3565 *-*-uclinux*)
3566 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3567 ;;
3568 *-*-vxworks*)
3569 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3570 ;;
3571 esac
3572
3573 case "${target}" in
3574 *-*-chorusos)
3575 ;;
3576 aarch64-*-darwin*)
3577 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3578 noconfigdirs="$noconfigdirs sim target-rda"
3579 ;;
3580 arm-*-darwin*)
3581 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3582 noconfigdirs="$noconfigdirs sim target-rda"
3583 ;;
3584 powerpc-*-darwin*)
3585 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3586 noconfigdirs="$noconfigdirs sim target-rda"
3587 ;;
3588 i[3456789]86-*-darwin*)
3589 noconfigdirs="$noconfigdirs ld gprof"
3590 noconfigdirs="$noconfigdirs sim target-rda"
3591 ;;
3592 x86_64-*-darwin[912]*)
3593 noconfigdirs="$noconfigdirs ld gas gprof"
3594 noconfigdirs="$noconfigdirs sim target-rda"
3595 ;;
3596 *-*-darwin*)
3597 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3598 noconfigdirs="$noconfigdirs sim target-rda"
3599 ;;
3600 *-*-dragonfly*)
3601 ;;
3602 *-*-freebsd*)
3603 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3604 && test -f /usr/local/include/gmp.h; then
3605 with_gmp=/usr/local
3606 fi
3607 ;;
3608 *-*-kaos*)
3609 # Remove unsupported stuff on all kaOS configurations.
3610 noconfigdirs="$noconfigdirs target-libgloss"
3611 ;;
3612 *-*-netbsd*)
3613 ;;
3614 *-*-netware*)
3615 ;;
3616 *-*-phoenix*)
3617 noconfigdirs="$noconfigdirs target-libgloss"
3618 ;;
3619 *-*-rtems*)
3620 noconfigdirs="$noconfigdirs target-libgloss"
3621 # this is not caught below because this stanza matches earlier
3622 case $target in
3623 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3624 esac
3625 ;;
3626 # The tpf target doesn't support gdb yet.
3627 *-*-tpf*)
3628 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3629 ;;
3630 *-*-uclinux*)
3631 noconfigdirs="$noconfigdirs target-rda"
3632 ;;
3633 *-*-vxworks*)
3634 ;;
3635 alpha*-dec-osf*)
3636 # ld works, but does not support shared libraries.
3637 # gas doesn't generate exception information.
3638 noconfigdirs="$noconfigdirs gas ld"
3639 ;;
3640 alpha*-*-*vms*)
3641 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3642 ;;
3643 alpha*-*-*)
3644 # newlib is not 64 bit ready
3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 ;;
3647 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3648 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3649 ;;
3650 arc*-*-*)
3651 noconfigdirs="$noconfigdirs sim"
3652 ;;
3653 arm-*-pe*)
3654 noconfigdirs="$noconfigdirs target-libgloss"
3655 ;;
3656 arm-*-riscix*)
3657 noconfigdirs="$noconfigdirs ld target-libgloss"
3658 ;;
3659 avr-*-*)
3660 if test x${with_avrlibc} != xno; then
3661 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 fi
3663 ;;
3664 c4x-*-* | tic4x-*-*)
3665 noconfigdirs="$noconfigdirs target-libgloss"
3666 ;;
3667 tic54x-*-*)
3668 noconfigdirs="$noconfigdirs target-libgloss gdb"
3669 ;;
3670 d10v-*-*)
3671 noconfigdirs="$noconfigdirs target-libgloss"
3672 ;;
3673 d30v-*-*)
3674 noconfigdirs="$noconfigdirs gdb"
3675 ;;
3676 fr30-*-elf*)
3677 noconfigdirs="$noconfigdirs gdb"
3678 ;;
3679 ft32-*-*)
3680 noconfigdirs="$noconfigdirs target-rda gprof"
3681 ;;
3682 moxie-*-*)
3683 noconfigdirs="$noconfigdirs"
3684 ;;
3685 h8300*-*-*)
3686 noconfigdirs="$noconfigdirs target-libgloss"
3687 ;;
3688 h8500-*-*)
3689 noconfigdirs="$noconfigdirs target-libgloss"
3690 ;;
3691 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3692 ;;
3693 hppa*64*-*-hpux*)
3694 noconfigdirs="$noconfigdirs gdb"
3695 ;;
3696 hppa*-*-hpux11*)
3697 noconfigdirs="$noconfigdirs gdb ld"
3698 ;;
3699 hppa*64*-*-linux*)
3700 ;;
3701 hppa*-*-linux*)
3702 ;;
3703 hppa*-*-*elf* | \
3704 hppa*-*-lites* | \
3705 hppa*-*-openbsd* | \
3706 hppa*64*-*-*)
3707 ;;
3708 hppa*-*-pro*)
3709 ;;
3710 hppa*-*-*)
3711 noconfigdirs="$noconfigdirs ld"
3712 ;;
3713 i960-*-*)
3714 noconfigdirs="$noconfigdirs gdb"
3715 ;;
3716 ia64*-*-elf*)
3717 # No gdb support yet.
3718 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3719 ;;
3720 ia64*-**-hpux*)
3721 # No ld support yet.
3722 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3723 ;;
3724 ia64*-*-*vms*)
3725 # No ld support yet.
3726 noconfigdirs="$noconfigdirs libgui itcl ld"
3727 ;;
3728 i[3456789]86-w64-mingw*)
3729 ;;
3730 i[3456789]86-*-mingw*)
3731 target_configdirs="$target_configdirs target-winsup"
3732 ;;
3733 *-*-cygwin*)
3734 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3735 noconfigdirs="$noconfigdirs target-libgloss"
3736 # always build newlib if winsup directory is present.
3737 if test -d "$srcdir/winsup/cygwin"; then
3738 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3739 elif test -d "$srcdir/newlib"; then
3740 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3741 fi
3742 ;;
3743 i[3456789]86-*-pe)
3744 noconfigdirs="$noconfigdirs target-libgloss"
3745 ;;
3746 i[3456789]86-*-sco3.2v5*)
3747 # The linker does not yet know about weak symbols in COFF,
3748 # and is not configured to handle mixed ELF and COFF.
3749 noconfigdirs="$noconfigdirs ld target-libgloss"
3750 ;;
3751 i[3456789]86-*-sco*)
3752 noconfigdirs="$noconfigdirs gprof target-libgloss"
3753 ;;
3754 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3755 noconfigdirs="$noconfigdirs target-libgloss"
3756 ;;
3757 i[3456789]86-*-sysv4*)
3758 noconfigdirs="$noconfigdirs target-libgloss"
3759 ;;
3760 i[3456789]86-*-beos*)
3761 noconfigdirs="$noconfigdirs gdb"
3762 ;;
3763 i[3456789]86-*-rdos*)
3764 noconfigdirs="$noconfigdirs gdb"
3765 ;;
3766 mmix-*-*)
3767 noconfigdirs="$noconfigdirs gdb"
3768 ;;
3769 mt-*-*)
3770 noconfigdirs="$noconfigdirs sim"
3771 ;;
3772 powerpc-*-aix*)
3773 # copied from rs6000-*-* entry
3774 noconfigdirs="$noconfigdirs gprof"
3775 ;;
3776 powerpc*-*-winnt* | powerpc*-*-pe*)
3777 target_configdirs="$target_configdirs target-winsup"
3778 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3779 # always build newlib.
3780 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3781 ;;
3782 # This is temporary until we can link against shared libraries
3783 powerpcle-*-solaris*)
3784 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3785 ;;
3786 powerpc-*-beos*)
3787 noconfigdirs="$noconfigdirs gdb"
3788 ;;
3789 rs6000-*-lynxos*)
3790 noconfigdirs="$noconfigdirs gprof"
3791 ;;
3792 rs6000-*-aix*)
3793 noconfigdirs="$noconfigdirs gprof"
3794 ;;
3795 rs6000-*-*)
3796 noconfigdirs="$noconfigdirs gprof"
3797 ;;
3798 m68k-apollo-*)
3799 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3800 ;;
3801 microblaze*)
3802 noconfigdirs="$noconfigdirs gprof"
3803 ;;
3804 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3805 if test x$with_newlib = xyes; then
3806 noconfigdirs="$noconfigdirs gprof"
3807 fi
3808 ;;
3809 mips*-*-irix5*)
3810 noconfigdirs="$noconfigdirs gprof target-libgloss"
3811 ;;
3812 mips*-*-irix6*)
3813 noconfigdirs="$noconfigdirs gprof target-libgloss"
3814 ;;
3815 mips*-*-bsd*)
3816 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3817 ;;
3818 mips*-*-linux*)
3819 ;;
3820 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3821 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3822 noconfigdirs="$noconfigdirs ld gas gprof"
3823 ;;
3824 mips*-*-*)
3825 noconfigdirs="$noconfigdirs gprof"
3826 ;;
3827 nvptx*-*-*)
3828 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3829 ;;
3830 or1k*-*-*)
3831 noconfigdirs="$noconfigdirs gdb"
3832 ;;
3833 sh-*-*)
3834 case "${target}" in
3835 sh*-*-elf)
3836 ;;
3837 *)
3838 noconfigdirs="$noconfigdirs target-libgloss" ;;
3839 esac
3840 ;;
3841 sparc-*-sunos4*)
3842 if test x${is_cross_compiler} = xno ; then
3843 use_gnu_ld=no
3844 fi
3845 ;;
3846 tic6x-*-*)
3847 noconfigdirs="$noconfigdirs sim"
3848 ;;
3849 tilepro*-*-* | tilegx*-*-*)
3850 noconfigdirs="$noconfigdirs sim"
3851 ;;
3852 v810-*-*)
3853 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3854 ;;
3855 vax-*-*)
3856 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3857 ;;
3858 esac
3859
3860 # If we aren't building newlib, then don't build libgloss, since libgloss
3861 # depends upon some newlib header files.
3862 case "${noconfigdirs}" in
3863 *target-libgloss*) ;;
3864 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3865 esac
3866
3867 # Work in distributions that contain no compiler tools, like Autoconf.
3868 host_makefile_frag=/dev/null
3869 if test -d ${srcdir}/config ; then
3870 case "${host}" in
3871 i[3456789]86-*-msdosdjgpp*)
3872 host_makefile_frag="config/mh-djgpp"
3873 ;;
3874 *-cygwin*)
3875
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3877 $as_echo_n "checking to see if cat works as expected... " >&6; }
3878 echo a >cygwin-cat-check
3879 if test `cat cygwin-cat-check` = a ; then
3880 rm cygwin-cat-check
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3882 $as_echo "yes" >&6; }
3883 else
3884 rm cygwin-cat-check
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3887 as_fn_error "The cat command does not ignore carriage return characters.
3888 Please either mount the build directory in binary mode or run the following
3889 commands before running any configure script:
3890 set -o igncr
3891 export SHELLOPTS
3892 " "$LINENO" 5
3893 fi
3894
3895 host_makefile_frag="config/mh-cygwin"
3896 ;;
3897 *-mingw*)
3898 host_makefile_frag="config/mh-mingw"
3899 ;;
3900 alpha*-linux*)
3901 host_makefile_frag="config/mh-alpha-linux"
3902 ;;
3903 hppa*-hp-hpux10*)
3904 host_makefile_frag="config/mh-pa-hpux10"
3905 ;;
3906 hppa*-hp-hpux*)
3907 host_makefile_frag="config/mh-pa"
3908 ;;
3909 hppa*-*)
3910 host_makefile_frag="config/mh-pa"
3911 ;;
3912 *-*-darwin*)
3913 host_makefile_frag="config/mh-darwin"
3914 ;;
3915 powerpc-*-aix*)
3916 host_makefile_frag="config/mh-ppc-aix"
3917 ;;
3918 rs6000-*-aix*)
3919 host_makefile_frag="config/mh-ppc-aix"
3920 ;;
3921 esac
3922 fi
3923
3924 if test "${build}" != "${host}" ; then
3925 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3926 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3927 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3928 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3929 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3930 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3931 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3932 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3933 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3934 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3935 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3936 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3937 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3938 else
3939 AR_FOR_BUILD="\$(AR)"
3940 AS_FOR_BUILD="\$(AS)"
3941 CC_FOR_BUILD="\$(CC)"
3942 CXX_FOR_BUILD="\$(CXX)"
3943 GCJ_FOR_BUILD="\$(GCJ)"
3944 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3945 GOC_FOR_BUILD="\$(GOC)"
3946 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3947 LD_FOR_BUILD="\$(LD)"
3948 NM_FOR_BUILD="\$(NM)"
3949 RANLIB_FOR_BUILD="\$(RANLIB)"
3950 WINDRES_FOR_BUILD="\$(WINDRES)"
3951 WINDMC_FOR_BUILD="\$(WINDMC)"
3952 fi
3953
3954 ac_ext=c
3955 ac_cpp='$CPP $CPPFLAGS'
3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 if test -n "$ac_tool_prefix"; then
3960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3961 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if test "${ac_cv_prog_CC+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 if test -n "$CC"; then
3968 ac_cv_prog_CC="$CC" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3977 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981 done
3982 done
3983 IFS=$as_save_IFS
3984
3985 fi
3986 fi
3987 CC=$ac_cv_prog_CC
3988 if test -n "$CC"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3990 $as_echo "$CC" >&6; }
3991 else
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3994 fi
3995
3996
3997 fi
3998 if test -z "$ac_cv_prog_CC"; then
3999 ac_ct_CC=$CC
4000 # Extract the first word of "gcc", so it can be a program name with args.
4001 set dummy gcc; ac_word=$2
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 $as_echo_n "checking for $ac_word... " >&6; }
4004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 if test -n "$ac_ct_CC"; then
4008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4009 else
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4012 do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4017 ac_cv_prog_ac_ct_CC="gcc"
4018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4020 fi
4021 done
4022 done
4023 IFS=$as_save_IFS
4024
4025 fi
4026 fi
4027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4028 if test -n "$ac_ct_CC"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4030 $as_echo "$ac_ct_CC" >&6; }
4031 else
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4034 fi
4035
4036 if test "x$ac_ct_CC" = x; then
4037 CC=""
4038 else
4039 case $cross_compiling:$ac_tool_warned in
4040 yes:)
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4043 ac_tool_warned=yes ;;
4044 esac
4045 CC=$ac_ct_CC
4046 fi
4047 else
4048 CC="$ac_cv_prog_CC"
4049 fi
4050
4051 if test -z "$CC"; then
4052 if test -n "$ac_tool_prefix"; then
4053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4054 set dummy ${ac_tool_prefix}cc; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if test "${ac_cv_prog_CC+set}" = set; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 if test -n "$CC"; then
4061 ac_cv_prog_CC="$CC" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4070 ac_cv_prog_CC="${ac_tool_prefix}cc"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 break 2
4073 fi
4074 done
4075 done
4076 IFS=$as_save_IFS
4077
4078 fi
4079 fi
4080 CC=$ac_cv_prog_CC
4081 if test -n "$CC"; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083 $as_echo "$CC" >&6; }
4084 else
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4087 fi
4088
4089
4090 fi
4091 fi
4092 if test -z "$CC"; then
4093 # Extract the first word of "cc", so it can be a program name with args.
4094 set dummy cc; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if test "${ac_cv_prog_CC+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 if test -n "$CC"; then
4101 ac_cv_prog_CC="$CC" # Let the user override the test.
4102 else
4103 ac_prog_rejected=no
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4112 ac_prog_rejected=yes
4113 continue
4114 fi
4115 ac_cv_prog_CC="cc"
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4118 fi
4119 done
4120 done
4121 IFS=$as_save_IFS
4122
4123 if test $ac_prog_rejected = yes; then
4124 # We found a bogon in the path, so make sure we never use it.
4125 set dummy $ac_cv_prog_CC
4126 shift
4127 if test $# != 0; then
4128 # We chose a different compiler from the bogus one.
4129 # However, it has the same basename, so the bogon will be chosen
4130 # first if we set CC to just the basename; use the full file name.
4131 shift
4132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4133 fi
4134 fi
4135 fi
4136 fi
4137 CC=$ac_cv_prog_CC
4138 if test -n "$CC"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4140 $as_echo "$CC" >&6; }
4141 else
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4144 fi
4145
4146
4147 fi
4148 if test -z "$CC"; then
4149 if test -n "$ac_tool_prefix"; then
4150 for ac_prog in cl.exe
4151 do
4152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if test "${ac_cv_prog_CC+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 if test -n "$CC"; then
4160 ac_cv_prog_CC="$CC" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4172 fi
4173 done
4174 done
4175 IFS=$as_save_IFS
4176
4177 fi
4178 fi
4179 CC=$ac_cv_prog_CC
4180 if test -n "$CC"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4182 $as_echo "$CC" >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4186 fi
4187
4188
4189 test -n "$CC" && break
4190 done
4191 fi
4192 if test -z "$CC"; then
4193 ac_ct_CC=$CC
4194 for ac_prog in cl.exe
4195 do
4196 # Extract the first word of "$ac_prog", so it can be a program name with args.
4197 set dummy $ac_prog; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if test -n "$ac_ct_CC"; then
4204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_ac_ct_CC="$ac_prog"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4216 fi
4217 done
4218 done
4219 IFS=$as_save_IFS
4220
4221 fi
4222 fi
4223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4224 if test -n "$ac_ct_CC"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4226 $as_echo "$ac_ct_CC" >&6; }
4227 else
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4230 fi
4231
4232
4233 test -n "$ac_ct_CC" && break
4234 done
4235
4236 if test "x$ac_ct_CC" = x; then
4237 CC=""
4238 else
4239 case $cross_compiling:$ac_tool_warned in
4240 yes:)
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243 ac_tool_warned=yes ;;
4244 esac
4245 CC=$ac_ct_CC
4246 fi
4247 fi
4248
4249 fi
4250
4251
4252 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4254 as_fn_error "no acceptable C compiler found in \$PATH
4255 See \`config.log' for more details." "$LINENO" 5; }
4256
4257 # Provide some information about the compiler.
4258 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4259 set X $ac_compile
4260 ac_compiler=$2
4261 for ac_option in --version -v -V -qversion; do
4262 { { ac_try="$ac_compiler $ac_option >&5"
4263 case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266 esac
4267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4268 $as_echo "$ac_try_echo"; } >&5
4269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4270 ac_status=$?
4271 if test -s conftest.err; then
4272 sed '10a\
4273 ... rest of stderr output deleted ...
4274 10q' conftest.err >conftest.er1
4275 cat conftest.er1 >&5
4276 rm -f conftest.er1 conftest.err
4277 fi
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; }
4280 done
4281
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284
4285 int
4286 main ()
4287 {
4288
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 ac_clean_files_save=$ac_clean_files
4294 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4295 # Try to create an executable without -o first, disregard a.out.
4296 # It will help us diagnose broken compilers, and finding out an intuition
4297 # of exeext.
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4299 $as_echo_n "checking for C compiler default output file name... " >&6; }
4300 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4301
4302 # The possible output files:
4303 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4304
4305 ac_rmfiles=
4306 for ac_file in $ac_files
4307 do
4308 case $ac_file in
4309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4310 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4311 esac
4312 done
4313 rm -f $ac_rmfiles
4314
4315 if { { ac_try="$ac_link_default"
4316 case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319 esac
4320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_link_default") 2>&5
4323 ac_status=$?
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; }; then :
4326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4328 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4329 # so that the user can short-circuit this test for compilers unknown to
4330 # Autoconf.
4331 for ac_file in $ac_files ''
4332 do
4333 test -f "$ac_file" || continue
4334 case $ac_file in
4335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4336 ;;
4337 [ab].out )
4338 # We found the default executable, but exeext='' is most
4339 # certainly right.
4340 break;;
4341 *.* )
4342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4343 then :; else
4344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4345 fi
4346 # We set ac_cv_exeext here because the later test for it is not
4347 # safe: cross compilers may not add the suffix if given an `-o'
4348 # argument, so we may need to know it at that point already.
4349 # Even if this section looks crufty: it has the advantage of
4350 # actually working.
4351 break;;
4352 * )
4353 break;;
4354 esac
4355 done
4356 test "$ac_cv_exeext" = no && ac_cv_exeext=
4357
4358 else
4359 ac_file=''
4360 fi
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4362 $as_echo "$ac_file" >&6; }
4363 if test -z "$ac_file"; then :
4364 $as_echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4366
4367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4369 { as_fn_set_status 77
4370 as_fn_error "C compiler cannot create executables
4371 See \`config.log' for more details." "$LINENO" 5; }; }
4372 fi
4373 ac_exeext=$ac_cv_exeext
4374
4375 # Check that the compiler produces executables we can run. If not, either
4376 # the compiler is broken, or we cross compile.
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4378 $as_echo_n "checking whether the C compiler works... " >&6; }
4379 # If not cross compiling, check that we can run a simple program.
4380 if test "$cross_compiling" != yes; then
4381 if { ac_try='./$ac_file'
4382 { { case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_try") 2>&5
4389 ac_status=$?
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }; }; then
4392 cross_compiling=no
4393 else
4394 if test "$cross_compiling" = maybe; then
4395 cross_compiling=yes
4396 else
4397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4399 as_fn_error "cannot run C compiled programs.
4400 If you meant to cross compile, use \`--host'.
4401 See \`config.log' for more details." "$LINENO" 5; }
4402 fi
4403 fi
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4406 $as_echo "yes" >&6; }
4407
4408 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4409 ac_clean_files=$ac_clean_files_save
4410 # Check that the compiler produces executables we can run. If not, either
4411 # the compiler is broken, or we cross compile.
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4413 $as_echo_n "checking whether we are cross compiling... " >&6; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4415 $as_echo "$cross_compiling" >&6; }
4416
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4418 $as_echo_n "checking for suffix of executables... " >&6; }
4419 if { { ac_try="$ac_link"
4420 case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_link") 2>&5
4427 ac_status=$?
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }; then :
4430 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4431 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4432 # work properly (i.e., refer to `conftest.exe'), while it won't with
4433 # `rm'.
4434 for ac_file in conftest.exe conftest conftest.*; do
4435 test -f "$ac_file" || continue
4436 case $ac_file in
4437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4438 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4439 break;;
4440 * ) break;;
4441 esac
4442 done
4443 else
4444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4446 as_fn_error "cannot compute suffix of executables: cannot compile and link
4447 See \`config.log' for more details." "$LINENO" 5; }
4448 fi
4449 rm -f conftest$ac_cv_exeext
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4451 $as_echo "$ac_cv_exeext" >&6; }
4452
4453 rm -f conftest.$ac_ext
4454 EXEEXT=$ac_cv_exeext
4455 ac_exeext=$EXEEXT
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4457 $as_echo_n "checking for suffix of object files... " >&6; }
4458 if test "${ac_cv_objext+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463
4464 int
4465 main ()
4466 {
4467
4468 ;
4469 return 0;
4470 }
4471 _ACEOF
4472 rm -f conftest.o conftest.obj
4473 if { { ac_try="$ac_compile"
4474 case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477 esac
4478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4479 $as_echo "$ac_try_echo"; } >&5
4480 (eval "$ac_compile") 2>&5
4481 ac_status=$?
4482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4483 test $ac_status = 0; }; then :
4484 for ac_file in conftest.o conftest.obj conftest.*; do
4485 test -f "$ac_file" || continue;
4486 case $ac_file in
4487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4488 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4489 break;;
4490 esac
4491 done
4492 else
4493 $as_echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4498 as_fn_error "cannot compute suffix of object files: cannot compile
4499 See \`config.log' for more details." "$LINENO" 5; }
4500 fi
4501 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4502 fi
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4504 $as_echo "$ac_cv_objext" >&6; }
4505 OBJEXT=$ac_cv_objext
4506 ac_objext=$OBJEXT
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4508 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4509 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514
4515 int
4516 main ()
4517 {
4518 #ifndef __GNUC__
4519 choke me
4520 #endif
4521
4522 ;
4523 return 0;
4524 }
4525 _ACEOF
4526 if ac_fn_c_try_compile "$LINENO"; then :
4527 ac_compiler_gnu=yes
4528 else
4529 ac_compiler_gnu=no
4530 fi
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4533
4534 fi
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4536 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4537 if test $ac_compiler_gnu = yes; then
4538 GCC=yes
4539 else
4540 GCC=
4541 fi
4542 ac_test_CFLAGS=${CFLAGS+set}
4543 ac_save_CFLAGS=$CFLAGS
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4545 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4546 if test "${ac_cv_prog_cc_g+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 ac_save_c_werror_flag=$ac_c_werror_flag
4550 ac_c_werror_flag=yes
4551 ac_cv_prog_cc_g=no
4552 CFLAGS="-g"
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555
4556 int
4557 main ()
4558 {
4559
4560 ;
4561 return 0;
4562 }
4563 _ACEOF
4564 if ac_fn_c_try_compile "$LINENO"; then :
4565 ac_cv_prog_cc_g=yes
4566 else
4567 CFLAGS=""
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570
4571 int
4572 main ()
4573 {
4574
4575 ;
4576 return 0;
4577 }
4578 _ACEOF
4579 if ac_fn_c_try_compile "$LINENO"; then :
4580
4581 else
4582 ac_c_werror_flag=$ac_save_c_werror_flag
4583 CFLAGS="-g"
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586
4587 int
4588 main ()
4589 {
4590
4591 ;
4592 return 0;
4593 }
4594 _ACEOF
4595 if ac_fn_c_try_compile "$LINENO"; then :
4596 ac_cv_prog_cc_g=yes
4597 fi
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 fi
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 ac_c_werror_flag=$ac_save_c_werror_flag
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4606 $as_echo "$ac_cv_prog_cc_g" >&6; }
4607 if test "$ac_test_CFLAGS" = set; then
4608 CFLAGS=$ac_save_CFLAGS
4609 elif test $ac_cv_prog_cc_g = yes; then
4610 if test "$GCC" = yes; then
4611 CFLAGS="-g -O2"
4612 else
4613 CFLAGS="-g"
4614 fi
4615 else
4616 if test "$GCC" = yes; then
4617 CFLAGS="-O2"
4618 else
4619 CFLAGS=
4620 fi
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4623 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4624 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 ac_cv_prog_cc_c89=no
4628 ac_save_CC=$CC
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631 #include <stdarg.h>
4632 #include <stdio.h>
4633 #include <sys/types.h>
4634 #include <sys/stat.h>
4635 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4636 struct buf { int x; };
4637 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4638 static char *e (p, i)
4639 char **p;
4640 int i;
4641 {
4642 return p[i];
4643 }
4644 static char *f (char * (*g) (char **, int), char **p, ...)
4645 {
4646 char *s;
4647 va_list v;
4648 va_start (v,p);
4649 s = g (p, va_arg (v,int));
4650 va_end (v);
4651 return s;
4652 }
4653
4654 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4655 function prototypes and stuff, but not '\xHH' hex character constants.
4656 These don't provoke an error unfortunately, instead are silently treated
4657 as 'x'. The following induces an error, until -std is added to get
4658 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4659 array size at least. It's necessary to write '\x00'==0 to get something
4660 that's true only with -std. */
4661 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4662
4663 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4664 inside strings and character constants. */
4665 #define FOO(x) 'x'
4666 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4667
4668 int test (int i, double x);
4669 struct s1 {int (*f) (int a);};
4670 struct s2 {int (*f) (double a);};
4671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4672 int argc;
4673 char **argv;
4674 int
4675 main ()
4676 {
4677 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4678 ;
4679 return 0;
4680 }
4681 _ACEOF
4682 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4683 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4684 do
4685 CC="$ac_save_CC $ac_arg"
4686 if ac_fn_c_try_compile "$LINENO"; then :
4687 ac_cv_prog_cc_c89=$ac_arg
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext
4690 test "x$ac_cv_prog_cc_c89" != "xno" && break
4691 done
4692 rm -f conftest.$ac_ext
4693 CC=$ac_save_CC
4694
4695 fi
4696 # AC_CACHE_VAL
4697 case "x$ac_cv_prog_cc_c89" in
4698 x)
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4700 $as_echo "none needed" >&6; } ;;
4701 xno)
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4703 $as_echo "unsupported" >&6; } ;;
4704 *)
4705 CC="$CC $ac_cv_prog_cc_c89"
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4707 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4708 esac
4709 if test "x$ac_cv_prog_cc_c89" != xno; then :
4710
4711 fi
4712
4713 ac_ext=c
4714 ac_cpp='$CPP $CPPFLAGS'
4715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4718
4719 ac_ext=cpp
4720 ac_cpp='$CXXCPP $CPPFLAGS'
4721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4724 if test -z "$CXX"; then
4725 if test -n "$CCC"; then
4726 CXX=$CCC
4727 else
4728 if test -n "$ac_tool_prefix"; then
4729 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4730 do
4731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_CXX+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -n "$CXX"; then
4739 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4751 fi
4752 done
4753 done
4754 IFS=$as_save_IFS
4755
4756 fi
4757 fi
4758 CXX=$ac_cv_prog_CXX
4759 if test -n "$CXX"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4761 $as_echo "$CXX" >&6; }
4762 else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4765 fi
4766
4767
4768 test -n "$CXX" && break
4769 done
4770 fi
4771 if test -z "$CXX"; then
4772 ac_ct_CXX=$CXX
4773 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4774 do
4775 # Extract the first word of "$ac_prog", so it can be a program name with args.
4776 set dummy $ac_prog; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$ac_ct_CXX"; then
4783 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_ac_ct_CXX="$ac_prog"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796 done
4797 done
4798 IFS=$as_save_IFS
4799
4800 fi
4801 fi
4802 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4803 if test -n "$ac_ct_CXX"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4805 $as_echo "$ac_ct_CXX" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811
4812 test -n "$ac_ct_CXX" && break
4813 done
4814
4815 if test "x$ac_ct_CXX" = x; then
4816 CXX="g++"
4817 else
4818 case $cross_compiling:$ac_tool_warned in
4819 yes:)
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822 ac_tool_warned=yes ;;
4823 esac
4824 CXX=$ac_ct_CXX
4825 fi
4826 fi
4827
4828 fi
4829 fi
4830 # Provide some information about the compiler.
4831 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4832 set X $ac_compile
4833 ac_compiler=$2
4834 for ac_option in --version -v -V -qversion; do
4835 { { ac_try="$ac_compiler $ac_option >&5"
4836 case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839 esac
4840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4841 $as_echo "$ac_try_echo"; } >&5
4842 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4843 ac_status=$?
4844 if test -s conftest.err; then
4845 sed '10a\
4846 ... rest of stderr output deleted ...
4847 10q' conftest.err >conftest.er1
4848 cat conftest.er1 >&5
4849 rm -f conftest.er1 conftest.err
4850 fi
4851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4852 test $ac_status = 0; }
4853 done
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4856 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4857 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862
4863 int
4864 main ()
4865 {
4866 #ifndef __GNUC__
4867 choke me
4868 #endif
4869
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 if ac_fn_cxx_try_compile "$LINENO"; then :
4875 ac_compiler_gnu=yes
4876 else
4877 ac_compiler_gnu=no
4878 fi
4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4881
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4884 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4885 if test $ac_compiler_gnu = yes; then
4886 GXX=yes
4887 else
4888 GXX=
4889 fi
4890 ac_test_CXXFLAGS=${CXXFLAGS+set}
4891 ac_save_CXXFLAGS=$CXXFLAGS
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4893 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4894 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4898 ac_cxx_werror_flag=yes
4899 ac_cv_prog_cxx_g=no
4900 CXXFLAGS="-g"
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903
4904 int
4905 main ()
4906 {
4907
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 if ac_fn_cxx_try_compile "$LINENO"; then :
4913 ac_cv_prog_cxx_g=yes
4914 else
4915 CXXFLAGS=""
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918
4919 int
4920 main ()
4921 {
4922
4923 ;
4924 return 0;
4925 }
4926 _ACEOF
4927 if ac_fn_cxx_try_compile "$LINENO"; then :
4928
4929 else
4930 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4931 CXXFLAGS="-g"
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934
4935 int
4936 main ()
4937 {
4938
4939 ;
4940 return 0;
4941 }
4942 _ACEOF
4943 if ac_fn_cxx_try_compile "$LINENO"; then :
4944 ac_cv_prog_cxx_g=yes
4945 fi
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947 fi
4948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 fi
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4952 fi
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4954 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4955 if test "$ac_test_CXXFLAGS" = set; then
4956 CXXFLAGS=$ac_save_CXXFLAGS
4957 elif test $ac_cv_prog_cxx_g = yes; then
4958 if test "$GXX" = yes; then
4959 CXXFLAGS="-g -O2"
4960 else
4961 CXXFLAGS="-g"
4962 fi
4963 else
4964 if test "$GXX" = yes; then
4965 CXXFLAGS="-O2"
4966 else
4967 CXXFLAGS=
4968 fi
4969 fi
4970 ac_ext=c
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975
4976
4977 # We must set the default linker to the linker used by gcc for the correct
4978 # operation of libtool. If LD is not defined and we are using gcc, try to
4979 # set the LD default to the ld used by gcc.
4980 if test -z "$LD"; then
4981 if test "$GCC" = yes; then
4982 case $build in
4983 *-*-mingw*)
4984 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4985 *)
4986 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4987 esac
4988 case $gcc_prog_ld in
4989 # Accept absolute paths.
4990 [\\/]* | [A-Za-z]:[\\/]*)
4991 LD="$gcc_prog_ld" ;;
4992 esac
4993 fi
4994 fi
4995
4996 # Check whether -static-libstdc++ -static-libgcc is supported.
4997 have_static_libs=no
4998 if test "$GCC" = yes; then
4999 saved_LDFLAGS="$LDFLAGS"
5000
5001 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5003 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5004 ac_ext=cpp
5005 ac_cpp='$CXXCPP $CPPFLAGS'
5006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5009
5010
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013
5014 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5015 #error -static-libstdc++ not implemented
5016 #endif
5017 int main() {}
5018 _ACEOF
5019 if ac_fn_cxx_try_link "$LINENO"; then :
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5021 $as_echo "yes" >&6; }; have_static_libs=yes
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026 rm -f core conftest.err conftest.$ac_objext \
5027 conftest$ac_exeext conftest.$ac_ext
5028 ac_ext=c
5029 ac_cpp='$CPP $CPPFLAGS'
5030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033
5034
5035 LDFLAGS="$saved_LDFLAGS"
5036 fi
5037
5038
5039
5040
5041 if test -n "$ac_tool_prefix"; then
5042 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5043 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$GNATBIND"; then
5050 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5054 do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063 done
5064 done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 GNATBIND=$ac_cv_prog_GNATBIND
5070 if test -n "$GNATBIND"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5072 $as_echo "$GNATBIND" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5076 fi
5077
5078
5079 fi
5080 if test -z "$ac_cv_prog_GNATBIND"; then
5081 ac_ct_GNATBIND=$GNATBIND
5082 # Extract the first word of "gnatbind", so it can be a program name with args.
5083 set dummy gnatbind; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 if test -n "$ac_ct_GNATBIND"; then
5090 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
5102 fi
5103 done
5104 done
5105 IFS=$as_save_IFS
5106
5107 fi
5108 fi
5109 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5110 if test -n "$ac_ct_GNATBIND"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5112 $as_echo "$ac_ct_GNATBIND" >&6; }
5113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5116 fi
5117
5118 if test "x$ac_ct_GNATBIND" = x; then
5119 GNATBIND="no"
5120 else
5121 case $cross_compiling:$ac_tool_warned in
5122 yes:)
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5125 ac_tool_warned=yes ;;
5126 esac
5127 GNATBIND=$ac_ct_GNATBIND
5128 fi
5129 else
5130 GNATBIND="$ac_cv_prog_GNATBIND"
5131 fi
5132
5133 if test -n "$ac_tool_prefix"; then
5134 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5135 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 if test -n "$GNATMAKE"; then
5142 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5146 do
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5154 fi
5155 done
5156 done
5157 IFS=$as_save_IFS
5158
5159 fi
5160 fi
5161 GNATMAKE=$ac_cv_prog_GNATMAKE
5162 if test -n "$GNATMAKE"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5164 $as_echo "$GNATMAKE" >&6; }
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5168 fi
5169
5170
5171 fi
5172 if test -z "$ac_cv_prog_GNATMAKE"; then
5173 ac_ct_GNATMAKE=$GNATMAKE
5174 # Extract the first word of "gnatmake", so it can be a program name with args.
5175 set dummy gnatmake; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$ac_ct_GNATMAKE"; then
5182 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5186 do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5194 fi
5195 done
5196 done
5197 IFS=$as_save_IFS
5198
5199 fi
5200 fi
5201 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5202 if test -n "$ac_ct_GNATMAKE"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5204 $as_echo "$ac_ct_GNATMAKE" >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5208 fi
5209
5210 if test "x$ac_ct_GNATMAKE" = x; then
5211 GNATMAKE="no"
5212 else
5213 case $cross_compiling:$ac_tool_warned in
5214 yes:)
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5217 ac_tool_warned=yes ;;
5218 esac
5219 GNATMAKE=$ac_ct_GNATMAKE
5220 fi
5221 else
5222 GNATMAKE="$ac_cv_prog_GNATMAKE"
5223 fi
5224
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5226 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5227 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 cat >conftest.adb <<EOF
5231 procedure conftest is begin null; end conftest;
5232 EOF
5233 acx_cv_cc_gcc_supports_ada=no
5234 # There is a bug in old released versions of GCC which causes the
5235 # driver to exit successfully when the appropriate language module
5236 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5237 # Therefore we must check for the error message as well as an
5238 # unsuccessful exit.
5239 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5240 # given a .adb file, but produce no object file. So we must check
5241 # if an object file was really produced to guard against this.
5242 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5243 if test x"$errors" = x && test -f conftest.$ac_objext; then
5244 acx_cv_cc_gcc_supports_ada=yes
5245 fi
5246 rm -f conftest.*
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5249 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5250
5251 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5252 have_gnat=yes
5253 else
5254 have_gnat=no
5255 fi
5256
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5258 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5259 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 echo abfoo >t1
5263 echo cdfoo >t2
5264 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5265 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5266 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5267 :
5268 else
5269 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5270 fi
5271 fi
5272 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5273 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5274 :
5275 else
5276 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5277 fi
5278 fi
5279 rm t1 t2
5280
5281 fi
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5283 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5284 do_compare="$gcc_cv_prog_cmp_skip"
5285
5286
5287
5288 # Check whether --enable-bootstrap was given.
5289 if test "${enable_bootstrap+set}" = set; then :
5290 enableval=$enable_bootstrap;
5291 else
5292 enable_bootstrap=default
5293 fi
5294
5295
5296 # Issue errors and warnings for invalid/strange bootstrap combinations.
5297 if test -r $srcdir/gcc/configure; then
5298 have_compiler=yes
5299 else
5300 have_compiler=no
5301 fi
5302
5303 case "$have_compiler:$host:$target:$enable_bootstrap" in
5304 *:*:*:no) ;;
5305
5306 # Default behavior. Enable bootstrap if we have a compiler
5307 # and we are in a native configuration.
5308 yes:$build:$build:default)
5309 enable_bootstrap=yes ;;
5310
5311 *:*:*:default)
5312 enable_bootstrap=no ;;
5313
5314 # We have a compiler and we are in a native configuration, bootstrap is ok
5315 yes:$build:$build:yes)
5316 ;;
5317
5318 # Other configurations, but we have a compiler. Assume the user knows
5319 # what he's doing.
5320 yes:*:*:yes)
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5322 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5323 ;;
5324
5325 # No compiler: if they passed --enable-bootstrap explicitly, fail
5326 no:*:*:yes)
5327 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5328
5329 # Fail if wrong command line
5330 *)
5331 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5332 ;;
5333 esac
5334
5335 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5336 # C++98 compiler can still start the bootstrap.
5337 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5338 CXX="$CXX -std=gnu++98"
5339 fi
5340
5341 # Used for setting $lt_cv_objdir
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5343 $as_echo_n "checking for objdir... " >&6; }
5344 if test "${lt_cv_objdir+set}" = set; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 rm -f .libs 2>/dev/null
5348 mkdir .libs 2>/dev/null
5349 if test -d .libs; then
5350 lt_cv_objdir=.libs
5351 else
5352 # MS-DOS does not allow filenames that begin with a dot.
5353 lt_cv_objdir=_libs
5354 fi
5355 rmdir .libs 2>/dev/null
5356 fi
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5358 $as_echo "$lt_cv_objdir" >&6; }
5359 objdir=$lt_cv_objdir
5360
5361
5362
5363
5364
5365 cat >>confdefs.h <<_ACEOF
5366 #define LT_OBJDIR "$lt_cv_objdir/"
5367 _ACEOF
5368
5369
5370
5371 # Check for GMP, MPFR and MPC
5372 gmplibs="-lmpc -lmpfr -lgmp"
5373 gmpinc=
5374 have_gmp=no
5375
5376 # Specify a location for mpc
5377 # check for this first so it ends up on the link line before mpfr.
5378
5379 # Check whether --with-mpc was given.
5380 if test "${with_mpc+set}" = set; then :
5381 withval=$with_mpc;
5382 fi
5383
5384
5385 # Check whether --with-mpc-include was given.
5386 if test "${with_mpc_include+set}" = set; then :
5387 withval=$with_mpc_include;
5388 fi
5389
5390
5391 # Check whether --with-mpc-lib was given.
5392 if test "${with_mpc_lib+set}" = set; then :
5393 withval=$with_mpc_lib;
5394 fi
5395
5396
5397 if test "x$with_mpc" != x; then
5398 gmplibs="-L$with_mpc/lib $gmplibs"
5399 gmpinc="-I$with_mpc/include $gmpinc"
5400 fi
5401 if test "x$with_mpc_include" != x; then
5402 gmpinc="-I$with_mpc_include $gmpinc"
5403 fi
5404 if test "x$with_mpc_lib" != x; then
5405 gmplibs="-L$with_mpc_lib $gmplibs"
5406 fi
5407 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5408 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5409 gmpinc='-I$$s/mpc/src '"$gmpinc"
5410 # Do not test the mpc version. Assume that it is sufficient, since
5411 # it is in the source tree, and the library has not been built yet
5412 # but it would be included on the link line in the version check below
5413 # hence making the test fail.
5414 have_gmp=yes
5415 fi
5416
5417 # Specify a location for mpfr
5418 # check for this first so it ends up on the link line before gmp.
5419
5420 # Check whether --with-mpfr-dir was given.
5421 if test "${with_mpfr_dir+set}" = set; then :
5422 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5423 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5424 fi
5425
5426
5427
5428 # Check whether --with-mpfr was given.
5429 if test "${with_mpfr+set}" = set; then :
5430 withval=$with_mpfr;
5431 fi
5432
5433
5434 # Check whether --with-mpfr-include was given.
5435 if test "${with_mpfr_include+set}" = set; then :
5436 withval=$with_mpfr_include;
5437 fi
5438
5439
5440 # Check whether --with-mpfr-lib was given.
5441 if test "${with_mpfr_lib+set}" = set; then :
5442 withval=$with_mpfr_lib;
5443 fi
5444
5445
5446 if test "x$with_mpfr" != x; then
5447 gmplibs="-L$with_mpfr/lib $gmplibs"
5448 gmpinc="-I$with_mpfr/include $gmpinc"
5449 fi
5450 if test "x$with_mpfr_include" != x; then
5451 gmpinc="-I$with_mpfr_include $gmpinc"
5452 fi
5453 if test "x$with_mpfr_lib" != x; then
5454 gmplibs="-L$with_mpfr_lib $gmplibs"
5455 fi
5456 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5457 # MPFR v3.1.0 moved the sources into a src sub-directory.
5458 if ! test -d ${srcdir}/mpfr/src; then
5459 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5460 fi
5461 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5462 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5463 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5464 # Do not test the mpfr version. Assume that it is sufficient, since
5465 # it is in the source tree, and the library has not been built yet
5466 # but it would be included on the link line in the version check below
5467 # hence making the test fail.
5468 have_gmp=yes
5469 fi
5470
5471 # Specify a location for gmp
5472
5473 # Check whether --with-gmp-dir was given.
5474 if test "${with_gmp_dir+set}" = set; then :
5475 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5476 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5477 fi
5478
5479
5480
5481 # Check whether --with-gmp was given.
5482 if test "${with_gmp+set}" = set; then :
5483 withval=$with_gmp;
5484 fi
5485
5486
5487 # Check whether --with-gmp-include was given.
5488 if test "${with_gmp_include+set}" = set; then :
5489 withval=$with_gmp_include;
5490 fi
5491
5492
5493 # Check whether --with-gmp-lib was given.
5494 if test "${with_gmp_lib+set}" = set; then :
5495 withval=$with_gmp_lib;
5496 fi
5497
5498
5499
5500 if test "x$with_gmp" != x; then
5501 gmplibs="-L$with_gmp/lib $gmplibs"
5502 gmpinc="-I$with_gmp/include $gmpinc"
5503 fi
5504 if test "x$with_gmp_include" != x; then
5505 gmpinc="-I$with_gmp_include $gmpinc"
5506 fi
5507 if test "x$with_gmp_lib" != x; then
5508 gmplibs="-L$with_gmp_lib $gmplibs"
5509 fi
5510 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5511 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5512 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5513 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5514 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5515 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5516 # Do not test the gmp version. Assume that it is sufficient, since
5517 # it is in the source tree, and the library has not been built yet
5518 # but it would be included on the link line in the version check below
5519 # hence making the test fail.
5520 have_gmp=yes
5521 fi
5522
5523 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5524 have_gmp=yes
5525 saved_CFLAGS="$CFLAGS"
5526 CFLAGS="$CFLAGS $gmpinc"
5527 # Check for the recommended and required versions of GMP.
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5529 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5530
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5533 #include "gmp.h"
5534 int
5535 main ()
5536 {
5537
5538 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5539 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5540 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5541 choke me
5542 #endif
5543
5544 ;
5545 return 0;
5546 }
5547 _ACEOF
5548 if ac_fn_c_try_compile "$LINENO"; then :
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <gmp.h>
5552 int
5553 main ()
5554 {
5555
5556 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5557 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5558 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5559 choke me
5560 #endif
5561
5562 ;
5563 return 0;
5564 }
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5568 $as_echo "yes" >&6; }
5569 else
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5571 $as_echo "buggy but acceptable" >&6; }
5572 fi
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }; have_gmp=no
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579
5580 # If we have GMP, check the MPFR version.
5581 if test x"$have_gmp" = xyes; then
5582 # Check for the recommended and required versions of MPFR.
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5584 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5587 #include <gmp.h>
5588 #include <mpfr.h>
5589 int
5590 main ()
5591 {
5592
5593 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5594 choke me
5595 #endif
5596
5597 ;
5598 return 0;
5599 }
5600 _ACEOF
5601 if ac_fn_c_try_compile "$LINENO"; then :
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604 #include <gmp.h>
5605 #include <mpfr.h>
5606 int
5607 main ()
5608 {
5609
5610 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5611 choke me
5612 #endif
5613
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 if ac_fn_c_try_compile "$LINENO"; then :
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5620 $as_echo "yes" >&6; }
5621 else
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5623 $as_echo "buggy but acceptable" >&6; }
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628 $as_echo "no" >&6; }; have_gmp=no
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 fi
5632
5633 # Check for the MPC header version.
5634 if test x"$have_gmp" = xyes ; then
5635 # Check for the recommended and required versions of MPC.
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5637 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 #include <mpc.h>
5641 int
5642 main ()
5643 {
5644
5645 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5646 choke me
5647 #endif
5648
5649 ;
5650 return 0;
5651 }
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #include <mpc.h>
5657 int
5658 main ()
5659 {
5660
5661 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5662 choke me
5663 #endif
5664
5665 ;
5666 return 0;
5667 }
5668 _ACEOF
5669 if ac_fn_c_try_compile "$LINENO"; then :
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5671 $as_echo "yes" >&6; }
5672 else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5674 $as_echo "buggy but acceptable" >&6; }
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }; have_gmp=no
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 fi
5683
5684 # Now check the MPFR library.
5685 if test x"$have_gmp" = xyes; then
5686 saved_LIBS="$LIBS"
5687 LIBS="$LIBS $gmplibs"
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5689 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #include <mpc.h>
5693 int
5694 main ()
5695 {
5696
5697 mpfr_t n;
5698 mpfr_t x;
5699 mpc_t c;
5700 int t;
5701 mpfr_init (n);
5702 mpfr_init (x);
5703 mpfr_atan2 (n, n, x, GMP_RNDN);
5704 mpfr_erfc (n, x, GMP_RNDN);
5705 mpfr_subnormalize (x, t, GMP_RNDN);
5706 mpfr_clear(n);
5707 mpfr_clear(x);
5708 mpc_init2 (c, 53);
5709 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5710 mpc_cosh (c, c, MPC_RNDNN);
5711 mpc_pow (c, c, c, MPC_RNDNN);
5712 mpc_acosh (c, c, MPC_RNDNN);
5713 mpc_clear (c);
5714
5715 ;
5716 return 0;
5717 }
5718 _ACEOF
5719 if ac_fn_c_try_link "$LINENO"; then :
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5721 $as_echo "yes" >&6; }
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }; have_gmp=no
5725 fi
5726 rm -f core conftest.err conftest.$ac_objext \
5727 conftest$ac_exeext conftest.$ac_ext
5728 LIBS="$saved_LIBS"
5729 fi
5730
5731 CFLAGS="$saved_CFLAGS"
5732
5733 # The library versions listed in the error message below should match
5734 # the HARD-minimums enforced above.
5735 if test x$have_gmp != xyes; then
5736 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5737 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5738 their locations. Source code for these libraries can be found at
5739 their respective hosting sites as well as at
5740 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5741 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5742 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5743 make sure that you have installed both the libraries and the header
5744 files. They may be located in separate packages." "$LINENO" 5
5745 fi
5746 fi
5747
5748 # Flags needed for both GMP, MPFR and/or MPC.
5749
5750
5751
5752
5753
5754
5755
5756 # Libraries to use for stage1 or when not bootstrapping.
5757
5758 # Check whether --with-stage1-libs was given.
5759 if test "${with_stage1_libs+set}" = set; then :
5760 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5761 stage1_libs=
5762 else
5763 stage1_libs=$withval
5764 fi
5765 else
5766 stage1_libs=
5767 fi
5768
5769
5770
5771 # Linker flags to use for stage1 or when not bootstrapping.
5772
5773 # Check whether --with-stage1-ldflags was given.
5774 if test "${with_stage1_ldflags+set}" = set; then :
5775 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5776 stage1_ldflags=
5777 else
5778 stage1_ldflags=$withval
5779 fi
5780 else
5781 stage1_ldflags=
5782 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5783 # if supported. But if the user explicitly specified the libraries to use,
5784 # trust that they are doing what they want.
5785 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5786 stage1_ldflags="-static-libstdc++ -static-libgcc"
5787 fi
5788 fi
5789
5790
5791
5792 # Libraries to use for stage2 and later builds.
5793
5794 # Check whether --with-boot-libs was given.
5795 if test "${with_boot_libs+set}" = set; then :
5796 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5797 poststage1_libs=
5798 else
5799 poststage1_libs=$withval
5800 fi
5801 else
5802 poststage1_libs=
5803 fi
5804
5805
5806
5807 # Linker flags to use for stage2 and later builds.
5808
5809 # Check whether --with-boot-ldflags was given.
5810 if test "${with_boot_ldflags+set}" = set; then :
5811 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5812 poststage1_ldflags=
5813 else
5814 poststage1_ldflags=$withval
5815 fi
5816 else
5817 poststage1_ldflags=
5818 # In stages 2 and 3, default to linking libstdc++ and libgcc
5819 # statically. But if the user explicitly specified the libraries to
5820 # use, trust that they are doing what they want.
5821 if test "$poststage1_libs" = ""; then
5822 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5823 fi
5824 fi
5825
5826
5827
5828 # GCC GRAPHITE dependency isl.
5829 # Basic setup is inlined here, actual checks are in config/isl.m4
5830
5831
5832 # Check whether --with-isl was given.
5833 if test "${with_isl+set}" = set; then :
5834 withval=$with_isl;
5835 fi
5836
5837
5838 # Treat --without-isl as a request to disable
5839 # GRAPHITE support and skip all following checks.
5840 if test "x$with_isl" != "xno"; then
5841 # Check for isl
5842
5843
5844 # Check whether --with-isl-include was given.
5845 if test "${with_isl_include+set}" = set; then :
5846 withval=$with_isl_include;
5847 fi
5848
5849
5850 # Check whether --with-isl-lib was given.
5851 if test "${with_isl_lib+set}" = set; then :
5852 withval=$with_isl_lib;
5853 fi
5854
5855
5856 # Check whether --enable-isl-version-check was given.
5857 if test "${enable_isl_version_check+set}" = set; then :
5858 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5859 else
5860 ENABLE_ISL_CHECK=yes
5861 fi
5862
5863
5864 # Initialize isllibs and islinc.
5865 case $with_isl in
5866 no)
5867 isllibs=
5868 islinc=
5869 ;;
5870 "" | yes)
5871 ;;
5872 *)
5873 isllibs="-L$with_isl/lib"
5874 islinc="-I$with_isl/include"
5875 ;;
5876 esac
5877 if test "x${with_isl_include}" != x ; then
5878 islinc="-I$with_isl_include"
5879 fi
5880 if test "x${with_isl_lib}" != x; then
5881 isllibs="-L$with_isl_lib"
5882 fi
5883 if test "x${islinc}" = x && test "x${isllibs}" = x \
5884 && test -d ${srcdir}/isl; then
5885 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5886 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5887 ENABLE_ISL_CHECK=no
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5889 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5890 fi
5891
5892 isllibs="${isllibs} -lisl"
5893
5894
5895
5896 if test "${ENABLE_ISL_CHECK}" = yes ; then
5897 _isl_saved_CFLAGS=$CFLAGS
5898 _isl_saved_LDFLAGS=$LDFLAGS
5899 _isl_saved_LIBS=$LIBS
5900
5901 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5902 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5903 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5904
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5906 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 #include <isl/ctx.h>
5910 int
5911 main ()
5912 {
5913 isl_ctx_get_max_operations (isl_ctx_alloc ());
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 if ac_fn_c_try_link "$LINENO"; then :
5919 gcc_cv_isl=yes
5920 else
5921 gcc_cv_isl=no
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext \
5924 conftest$ac_exeext conftest.$ac_ext
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5926 $as_echo "$gcc_cv_isl" >&6; }
5927
5928 if test "${gcc_cv_isl}" = no ; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5930 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5931 fi
5932
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5934 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 #include <isl/schedule.h>
5938 int
5939 main ()
5940 {
5941 isl_options_set_schedule_serialize_sccs (NULL, 0);
5942 ;
5943 return 0;
5944 }
5945 _ACEOF
5946 if ac_fn_c_try_link "$LINENO"; then :
5947 ac_has_isl_options_set_schedule_serialize_sccs=yes
5948 else
5949 ac_has_isl_options_set_schedule_serialize_sccs=no
5950 fi
5951 rm -f core conftest.err conftest.$ac_objext \
5952 conftest$ac_exeext conftest.$ac_ext
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5954 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5955
5956 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5957 islver="0.15"
5958
5959 fi
5960
5961 CFLAGS=$_isl_saved_CFLAGS
5962 LDFLAGS=$_isl_saved_LDFLAGS
5963 LIBS=$_isl_saved_LIBS
5964 fi
5965
5966
5967
5968
5969
5970
5971 if test "x${with_isl}" = xno; then
5972 graphite_requested=no
5973 elif test "x${with_isl}" != x \
5974 || test "x${with_isl_include}" != x \
5975 || test "x${with_isl_lib}" != x ; then
5976 graphite_requested=yes
5977 else
5978 graphite_requested=no
5979 fi
5980
5981
5982
5983 if test "${gcc_cv_isl}" = no ; then
5984 isllibs=
5985 islinc=
5986 fi
5987
5988 if test "${graphite_requested}" = yes \
5989 && test "x${isllibs}" = x \
5990 && test "x${islinc}" = x ; then
5991
5992 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
5993 fi
5994
5995
5996 fi
5997
5998 # If the isl check failed, disable builds of in-tree variant of isl
5999 if test "x$with_isl" = xno ||
6000 test "x$gcc_cv_isl" = xno; then
6001 noconfigdirs="$noconfigdirs isl"
6002 islinc=
6003 fi
6004
6005
6006
6007
6008 # Check for LTO support.
6009 # Check whether --enable-lto was given.
6010 if test "${enable_lto+set}" = set; then :
6011 enableval=$enable_lto; enable_lto=$enableval
6012 else
6013 enable_lto=yes; default_enable_lto=yes
6014 fi
6015
6016
6017
6018
6019
6020 target_elf=no
6021 case $target in
6022 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6023 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6024 alpha*-dec-osf* | hppa[12]*-*-hpux* | \
6025 nvptx-*-none)
6026 target_elf=no
6027 ;;
6028 *)
6029 target_elf=yes
6030 ;;
6031 esac
6032
6033 if test $target_elf = yes; then :
6034 # ELF platforms build the lto-plugin always.
6035 build_lto_plugin=yes
6036
6037 else
6038 if test x"$default_enable_lto" = x"yes" ; then
6039 case $target in
6040 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6041 # On other non-ELF platforms, LTO has yet to be validated.
6042 *) enable_lto=no ;;
6043 esac
6044 else
6045 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6046 # It would also be nice to check the binutils support, but we don't
6047 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6048 # warn during gcc/ subconfigure; unless you're bootstrapping with
6049 # -flto it won't be needed until after installation anyway.
6050 case $target in
6051 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6052 *) if test x"$enable_lto" = x"yes"; then
6053 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6054 fi
6055 ;;
6056 esac
6057 fi
6058 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6059 # Build it unless LTO was explicitly disabled.
6060 case $target in
6061 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6062 *) ;;
6063 esac
6064
6065 fi
6066
6067
6068 # Check whether --enable-linker-plugin-configure-flags was given.
6069 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6070 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6071 else
6072 extra_linker_plugin_configure_flags=
6073 fi
6074
6075
6076 # Check whether --enable-linker-plugin-flags was given.
6077 if test "${enable_linker_plugin_flags+set}" = set; then :
6078 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6079 else
6080 extra_linker_plugin_flags=
6081 fi
6082
6083
6084
6085
6086 # By default, C and C++ are the only stage 1 languages.
6087 stage1_languages=,c,
6088
6089 # Target libraries that we bootstrap.
6090 bootstrap_target_libs=,target-libgcc,
6091
6092 # Figure out what language subdirectories are present.
6093 # Look if the user specified --enable-languages="..."; if not, use
6094 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6095 # go away some day.
6096 # NB: embedded tabs in this IF block -- do not untabify
6097 if test -d ${srcdir}/gcc; then
6098 if test x"${enable_languages+set}" != xset; then
6099 if test x"${LANGUAGES+set}" = xset; then
6100 enable_languages="${LANGUAGES}"
6101 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6102 else
6103 enable_languages=all
6104 fi
6105 else
6106 if test x"${enable_languages}" = x ||
6107 test x"${enable_languages}" = xyes;
6108 then
6109 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6110 exit 1
6111 fi
6112 fi
6113 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6114
6115 # 'f95' is the old name for the 'fortran' language. We issue a warning
6116 # and make the substitution.
6117 case ,${enable_languages}, in
6118 *,f95,*)
6119 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6120 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6121 ;;
6122 esac
6123
6124 # If bootstrapping, C++ must be enabled.
6125 case ",$enable_languages,:$enable_bootstrap" in
6126 *,c++,*:*) ;;
6127 *:yes)
6128 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6129 enable_languages="${enable_languages},c++"
6130 else
6131 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6132 fi
6133 ;;
6134 esac
6135
6136 # First scan to see if an enabled language requires some other language.
6137 # We assume that a given config-lang.in will list all the language
6138 # front ends it requires, even if some are required indirectly.
6139 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6140 case ${lang_frag} in
6141 ..) ;;
6142 # The odd quoting in the next line works around
6143 # an apparent bug in bash 1.12 on linux.
6144 ${srcdir}/gcc/[*]/config-lang.in) ;;
6145 *)
6146 # From the config-lang.in, get $language, $lang_requires, and
6147 # $lang_requires_boot_languages.
6148 language=
6149 lang_requires=
6150 lang_requires_boot_languages=
6151 . ${lang_frag}
6152 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6153 case ,${enable_languages}, in
6154 *,$other,*) ;;
6155 *,all,*) ;;
6156 *,$language,*)
6157 echo " \`$other' language required by \`$language'; enabling" 1>&2
6158 enable_languages="${enable_languages},${other}"
6159 ;;
6160 esac
6161 done
6162 for other in ${lang_requires_boot_languages} ; do
6163 if test "$other" != "c"; then
6164 case ,${enable_stage1_languages}, in
6165 *,$other,*) ;;
6166 *,all,*) ;;
6167 *)
6168 case ,${enable_languages}, in
6169 *,$language,*)
6170 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6171 enable_stage1_languages="$enable_stage1_languages,${other}"
6172 ;;
6173 esac
6174 ;;
6175 esac
6176 fi
6177 done
6178 ;;
6179 esac
6180 done
6181
6182 new_enable_languages=,c,
6183
6184 # If LTO is enabled, add the LTO front end.
6185 if test "$enable_lto" = "yes" ; then
6186 case ,${enable_languages}, in
6187 *,lto,*) ;;
6188 *) enable_languages="${enable_languages},lto" ;;
6189 esac
6190 if test "${build_lto_plugin}" = "yes" ; then
6191 configdirs="$configdirs lto-plugin"
6192 fi
6193 fi
6194
6195 # If we're building an offloading compiler, add the LTO front end.
6196 if test x"$enable_as_accelerator_for" != x ; then
6197 case ,${enable_languages}, in
6198 *,lto,*) ;;
6199 *) enable_languages="${enable_languages},lto" ;;
6200 esac
6201 fi
6202
6203 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6204 potential_languages=,c,
6205
6206 enabled_target_libs=
6207 disabled_target_libs=
6208
6209 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6210 case ${lang_frag} in
6211 ..) ;;
6212 # The odd quoting in the next line works around
6213 # an apparent bug in bash 1.12 on linux.
6214 ${srcdir}/gcc/[*]/config-lang.in) ;;
6215 *)
6216 # From the config-lang.in, get $language, $target_libs,
6217 # $lang_dirs, $boot_language, and $build_by_default
6218 language=
6219 target_libs=
6220 lang_dirs=
6221 subdir_requires=
6222 boot_language=no
6223 build_by_default=yes
6224 . ${lang_frag}
6225 if test x${language} = x; then
6226 echo "${lang_frag} doesn't set \$language." 1>&2
6227 exit 1
6228 fi
6229
6230 if test "$language" = "c++"; then
6231 boot_language=yes
6232 fi
6233
6234 add_this_lang=no
6235 case ,${enable_languages}, in
6236 *,${language},*)
6237 # Language was explicitly selected; include it
6238 # unless it is C, which is enabled by default.
6239 if test "$language" != "c"; then
6240 add_this_lang=yes
6241 fi
6242 ;;
6243 *,all,*)
6244 # 'all' was selected, select it if it is a default language
6245 if test "$language" != "c"; then
6246 add_this_lang=${build_by_default}
6247 fi
6248 ;;
6249 esac
6250
6251 # Disable languages that need other directories if these aren't available.
6252 for i in $subdir_requires; do
6253 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6254 case ,${enable_languages}, in
6255 *,${language},*)
6256 # Specifically requested language; tell them.
6257 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6258 ;;
6259 *)
6260 # Silently disable.
6261 add_this_lang=unsupported
6262 ;;
6263 esac
6264 done
6265
6266 # Disable Ada if no preexisting GNAT is available.
6267 case ,${enable_languages},:${language}:${have_gnat} in
6268 *,${language},*:ada:no)
6269 # Specifically requested language; tell them.
6270 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6271 ;;
6272 *:ada:no)
6273 # Silently disable.
6274 add_this_lang=unsupported
6275 ;;
6276 esac
6277
6278 # Disable a language that is unsupported by the target.
6279 case " $unsupported_languages " in
6280 *" $language "*)
6281 add_this_lang=unsupported
6282 ;;
6283 esac
6284
6285 case $add_this_lang in
6286 unsupported)
6287 # Remove language-dependent dirs.
6288 disabled_target_libs="$disabled_target_libs $target_libs"
6289 noconfigdirs="$noconfigdirs $lang_dirs"
6290 ;;
6291 no)
6292 # Remove language-dependent dirs; still show language as supported.
6293 disabled_target_libs="$disabled_target_libs $target_libs"
6294 noconfigdirs="$noconfigdirs $lang_dirs"
6295 potential_languages="${potential_languages}${language},"
6296 ;;
6297 yes)
6298 new_enable_languages="${new_enable_languages}${language},"
6299 potential_languages="${potential_languages}${language},"
6300 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6301 enabled_target_libs="$enabled_target_libs $target_libs"
6302 case "${boot_language}:,$enable_stage1_languages," in
6303 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6304 # Add to (comma-separated) list of stage 1 languages.
6305 case ",$stage1_languages," in
6306 *,$language,* | ,yes, | ,all,) ;;
6307 *) stage1_languages="${stage1_languages}${language}," ;;
6308 esac
6309 # We need to bootstrap any supporting libraries.
6310 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6311 ;;
6312 esac
6313 ;;
6314 esac
6315 ;;
6316 esac
6317 done
6318
6319 # Add target libraries which are only needed for disabled languages
6320 # to noconfigdirs.
6321 if test -n "$disabled_target_libs"; then
6322 for dir in $disabled_target_libs; do
6323 case " $enabled_target_libs " in
6324 *" ${dir} "*) ;;
6325 *) noconfigdirs="$noconfigdirs $dir" ;;
6326 esac
6327 done
6328 fi
6329
6330 # Check whether --enable-stage1-languages was given.
6331 if test "${enable_stage1_languages+set}" = set; then :
6332 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6333 ,no,|,,)
6334 # Set it to something that will have no effect in the loop below
6335 enable_stage1_languages=c ;;
6336 ,yes,)
6337 enable_stage1_languages=`echo $new_enable_languages | \
6338 sed -e "s/^,//" -e "s/,$//" ` ;;
6339 *,all,*)
6340 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6341 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6342 esac
6343
6344 # Add "good" languages from enable_stage1_languages to stage1_languages,
6345 # while "bad" languages go in missing_languages. Leave no duplicates.
6346 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6347 case $potential_languages in
6348 *,$i,*)
6349 case $stage1_languages in
6350 *,$i,*) ;;
6351 *) stage1_languages="$stage1_languages$i," ;;
6352 esac ;;
6353 *)
6354 case $missing_languages in
6355 *,$i,*) ;;
6356 *) missing_languages="$missing_languages$i," ;;
6357 esac ;;
6358 esac
6359 done
6360 fi
6361
6362
6363 # Remove leading/trailing commas that were added for simplicity
6364 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6365 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6366 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6367 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6368
6369 if test "x$missing_languages" != x; then
6370 as_fn_error "
6371 The following requested languages could not be built: ${missing_languages}
6372 Supported languages are: ${potential_languages}" "$LINENO" 5
6373 fi
6374 if test "x$new_enable_languages" != "x$enable_languages"; then
6375 echo The following languages will be built: ${new_enable_languages}
6376 enable_languages="$new_enable_languages"
6377 fi
6378
6379
6380 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6381 fi
6382
6383 # Handle --disable-<component> generically.
6384 for dir in $configdirs $build_configdirs $target_configdirs ; do
6385 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6386 varname=`echo $dirname | sed -e s/+/_/g`
6387 if eval test x\${enable_${varname}} "=" xno ; then
6388 noconfigdirs="$noconfigdirs $dir"
6389 fi
6390 done
6391
6392 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6393 case ,${enable_languages}, in
6394 *,c++,*)
6395 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6396 case "${noconfigdirs}" in
6397 *target-libstdc++-v3*)
6398 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6399 ;;
6400 *) ;;
6401 esac
6402 ;;
6403 *)
6404 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6405 ;;
6406 esac
6407
6408 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6409 # $build_configdirs and $target_configdirs.
6410 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6411
6412 notsupp=""
6413 for dir in . $skipdirs $noconfigdirs ; do
6414 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6415 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6416 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6417 if test -r $srcdir/$dirname/configure ; then
6418 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6419 true
6420 else
6421 notsupp="$notsupp $dir"
6422 fi
6423 fi
6424 fi
6425 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6426 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6427 if test -r $srcdir/$dirname/configure ; then
6428 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6429 true
6430 else
6431 notsupp="$notsupp $dir"
6432 fi
6433 fi
6434 fi
6435 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6436 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6437 if test -r $srcdir/$dirname/configure ; then
6438 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6439 true
6440 else
6441 notsupp="$notsupp $dir"
6442 fi
6443 fi
6444 fi
6445 done
6446
6447 # Quietly strip out all directories which aren't configurable in this tree.
6448 # This relies on all configurable subdirectories being autoconfiscated, which
6449 # is now the case.
6450 build_configdirs_all="$build_configdirs"
6451 build_configdirs=
6452 for i in ${build_configdirs_all} ; do
6453 j=`echo $i | sed -e s/build-//g`
6454 if test -f ${srcdir}/$j/configure ; then
6455 build_configdirs="${build_configdirs} $i"
6456 fi
6457 done
6458
6459 configdirs_all="$configdirs"
6460 configdirs=
6461 for i in ${configdirs_all} ; do
6462 if test -f ${srcdir}/$i/configure ; then
6463 configdirs="${configdirs} $i"
6464 fi
6465 done
6466
6467 target_configdirs_all="$target_configdirs"
6468 target_configdirs=
6469 for i in ${target_configdirs_all} ; do
6470 j=`echo $i | sed -e s/target-//g`
6471 if test -f ${srcdir}/$j/configure ; then
6472 target_configdirs="${target_configdirs} $i"
6473 fi
6474 done
6475
6476 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6477 # so we have to add it after the preceding checks.
6478 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6479 then
6480 case " $configdirs " in
6481 *" libiberty "*)
6482 # If we can build libiberty, we can also build libiberty-linker-plugin.
6483 configdirs="$configdirs libiberty-linker-plugin"
6484 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6485 --with-libiberty=../libiberty-linker-plugin";;
6486 *)
6487 as_fn_error "libiberty missing" "$LINENO" 5;;
6488 esac
6489 fi
6490
6491 # Sometimes we have special requirements for the host libiberty.
6492 extra_host_libiberty_configure_flags=
6493 extra_host_zlib_configure_flags=
6494 case " $configdirs " in
6495 *" lto-plugin "* | *" libcc1 "*)
6496 # When these are to be built as shared libraries, the same applies to
6497 # libiberty.
6498 extra_host_libiberty_configure_flags=--enable-shared
6499 ;;
6500 *" bfd "*)
6501 # When bfd is to be built as a shared library, the same applies to
6502 # zlib.
6503 if test "$enable_shared" = "yes"; then
6504 extra_host_zlib_configure_flags=--enable-host-shared
6505 fi
6506 ;;
6507 esac
6508
6509
6510
6511 # Produce a warning message for the subdirs we can't configure.
6512 # This isn't especially interesting in the Cygnus tree, but in the individual
6513 # FSF releases, it's important to let people know when their machine isn't
6514 # supported by the one or two programs in a package.
6515
6516 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6517 # If $appdirs is non-empty, at least one of those directories must still
6518 # be configured, or we error out. (E.g., if the gas release supports a
6519 # specified target in some subdirs but not the gas subdir, we shouldn't
6520 # pretend that all is well.)
6521 if test -n "$appdirs" ; then
6522 for dir in $appdirs ; do
6523 if test -r $dir/Makefile.in ; then
6524 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6525 appdirs=""
6526 break
6527 fi
6528 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6529 appdirs=""
6530 break
6531 fi
6532 fi
6533 done
6534 if test -n "$appdirs" ; then
6535 echo "*** This configuration is not supported by this package." 1>&2
6536 exit 1
6537 fi
6538 fi
6539 # Okay, some application will build, or we don't care to check. Still
6540 # notify of subdirs not getting built.
6541 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6542 echo " ${notsupp}" 1>&2
6543 echo " (Any other directories should still work fine.)" 1>&2
6544 fi
6545
6546 case "$host" in
6547 *msdosdjgpp*)
6548 enable_gdbtk=no ;;
6549 esac
6550
6551 # To find our prefix, in gcc_cv_tool_prefix.
6552
6553 # The user is always right.
6554 if test "${PATH_SEPARATOR+set}" != set; then
6555 echo "#! /bin/sh" >conf$$.sh
6556 echo "exit 0" >>conf$$.sh
6557 chmod +x conf$$.sh
6558 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6559 PATH_SEPARATOR=';'
6560 else
6561 PATH_SEPARATOR=:
6562 fi
6563 rm -f conf$$.sh
6564 fi
6565
6566
6567
6568 if test "x$exec_prefix" = xNONE; then
6569 if test "x$prefix" = xNONE; then
6570 gcc_cv_tool_prefix=$ac_default_prefix
6571 else
6572 gcc_cv_tool_prefix=$prefix
6573 fi
6574 else
6575 gcc_cv_tool_prefix=$exec_prefix
6576 fi
6577
6578 # If there is no compiler in the tree, use the PATH only. In any
6579 # case, if there is no compiler in the tree nobody should use
6580 # AS_FOR_TARGET and LD_FOR_TARGET.
6581 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6582 gcc_version=`cat $srcdir/gcc/BASE-VER`
6583 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6584 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6585 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6586 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6587 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6588 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6589 else
6590 gcc_cv_tool_dirs=
6591 fi
6592
6593 if test x$build = x$target && test -n "$md_exec_prefix"; then
6594 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6595 fi
6596
6597
6598
6599 copy_dirs=
6600
6601
6602 # Check whether --with-build-sysroot was given.
6603 if test "${with_build_sysroot+set}" = set; then :
6604 withval=$with_build_sysroot; if test x"$withval" != x ; then
6605 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6606 fi
6607 else
6608 SYSROOT_CFLAGS_FOR_TARGET=
6609 fi
6610
6611
6612
6613
6614 # Check whether --with-debug-prefix-map was given.
6615 if test "${with_debug_prefix_map+set}" = set; then :
6616 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6617 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6618 for debug_map in $withval; do
6619 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6620 done
6621 fi
6622 else
6623 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6624 fi
6625
6626
6627
6628 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6629 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6630 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6631 # We want to ensure that TARGET libraries (which we know are built with
6632 # gcc) are built with "-O2 -g", so include those options when setting
6633 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6634 if test "x$CFLAGS_FOR_TARGET" = x; then
6635 if test "x${is_cross_compiler}" = xyes; then
6636 CFLAGS_FOR_TARGET="-g -O2"
6637 else
6638 CFLAGS_FOR_TARGET=$CFLAGS
6639 case " $CFLAGS " in
6640 *" -O2 "*) ;;
6641 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6642 esac
6643 case " $CFLAGS " in
6644 *" -g "* | *" -g3 "*) ;;
6645 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6646 esac
6647 fi
6648 fi
6649
6650
6651 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6652 if test "x${is_cross_compiler}" = xyes; then
6653 CXXFLAGS_FOR_TARGET="-g -O2"
6654 else
6655 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6656 case " $CXXFLAGS " in
6657 *" -O2 "*) ;;
6658 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6659 esac
6660 case " $CXXFLAGS " in
6661 *" -g "* | *" -g3 "*) ;;
6662 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6663 esac
6664 fi
6665 fi
6666
6667
6668
6669
6670 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6671 # the named directory are copied to $(tooldir)/sys-include.
6672 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6673 if test x${is_cross_compiler} = xno ; then
6674 echo 1>&2 '***' --with-headers is only supported when cross compiling
6675 exit 1
6676 fi
6677 if test x"${with_headers}" != xyes ; then
6678 x=${gcc_cv_tool_prefix}
6679 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6680 fi
6681 fi
6682
6683 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6684 # the name directories are copied to $(tooldir)/lib. Multiple directories
6685 # are permitted.
6686 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6687 if test x${is_cross_compiler} = xno ; then
6688 echo 1>&2 '***' --with-libs is only supported when cross compiling
6689 exit 1
6690 fi
6691 if test x"${with_libs}" != xyes ; then
6692 # Copy the libraries in reverse order, so that files in the first named
6693 # library override files in subsequent libraries.
6694 x=${gcc_cv_tool_prefix}
6695 for l in ${with_libs}; do
6696 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6697 done
6698 fi
6699 fi
6700
6701 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6702 #
6703 # This is done by determining whether or not the appropriate directory
6704 # is available, and by checking whether or not specific configurations
6705 # have requested that this magic not happen.
6706 #
6707 # The command line options always override the explicit settings in
6708 # configure.ac, and the settings in configure.ac override this magic.
6709 #
6710 # If the default for a toolchain is to use GNU as and ld, and you don't
6711 # want to do that, then you should use the --without-gnu-as and
6712 # --without-gnu-ld options for the configure script. Similarly, if
6713 # the default is to use the included zlib and you don't want to do that,
6714 # you should use the --with-system-zlib option for the configure script.
6715
6716 if test x${use_gnu_as} = x &&
6717 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6718 with_gnu_as=yes
6719 extra_host_args="$extra_host_args --with-gnu-as"
6720 fi
6721
6722 if test x${use_gnu_ld} = x &&
6723 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6724 with_gnu_ld=yes
6725 extra_host_args="$extra_host_args --with-gnu-ld"
6726 fi
6727
6728 if test x${use_included_zlib} = x &&
6729 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6730 :
6731 else
6732 with_system_zlib=yes
6733 extra_host_args="$extra_host_args --with-system-zlib"
6734 fi
6735
6736 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6737 # can detect this case.
6738
6739 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6740 with_newlib=yes
6741 extra_host_args="$extra_host_args --with-newlib"
6742 fi
6743
6744 # Handle ${copy_dirs}
6745 set fnord ${copy_dirs}
6746 shift
6747 while test $# != 0 ; do
6748 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6749 :
6750 else
6751 echo Copying $1 to $2
6752
6753 # Use the install script to create the directory and all required
6754 # parent directories.
6755 if test -d $2 ; then
6756 :
6757 else
6758 echo >config.temp
6759 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6760 fi
6761
6762 # Copy the directory, assuming we have tar.
6763 # FIXME: Should we use B in the second tar? Not all systems support it.
6764 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6765
6766 # It is the responsibility of the user to correctly adjust all
6767 # symlinks. If somebody can figure out how to handle them correctly
6768 # here, feel free to add the code.
6769
6770 echo $1 > $2/COPIED
6771 fi
6772 shift; shift
6773 done
6774
6775 # Determine a target-dependent exec_prefix that the installed
6776 # gcc will search in. Keep this list sorted by triplet, with
6777 # the *-*-osname triplets last.
6778 md_exec_prefix=
6779 case "${target}" in
6780 i[34567]86-pc-msdosdjgpp*)
6781 md_exec_prefix=/dev/env/DJDIR/bin
6782 ;;
6783 *-*-hpux* | \
6784 *-*-nto-qnx* | \
6785 *-*-solaris2*)
6786 md_exec_prefix=/usr/ccs/bin
6787 ;;
6788 esac
6789
6790 extra_arflags_for_target=
6791 extra_nmflags_for_target=
6792 extra_ranlibflags_for_target=
6793 target_makefile_frag=/dev/null
6794 case "${target}" in
6795 spu-*-*)
6796 target_makefile_frag="config/mt-spu"
6797 ;;
6798 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6799 target_makefile_frag="config/mt-sde"
6800 ;;
6801 mipsisa*-*-elfoabi*)
6802 target_makefile_frag="config/mt-mips-elfoabi"
6803 ;;
6804 mips*-*-*linux* | mips*-*-gnu*)
6805 target_makefile_frag="config/mt-mips-gnu"
6806 ;;
6807 nios2-*-elf*)
6808 target_makefile_frag="config/mt-nios2-elf"
6809 ;;
6810 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6811 target_makefile_frag="config/mt-gnu"
6812 ;;
6813 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6814 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6815 # commands to handle both 32-bit and 64-bit objects. These flags are
6816 # harmless if we're using GNU nm or ar.
6817 extra_arflags_for_target=" -X32_64"
6818 extra_nmflags_for_target=" -B -X32_64"
6819 ;;
6820 esac
6821
6822 alphaieee_frag=/dev/null
6823 case $target in
6824 alpha*-*-*)
6825 # This just makes sure to use the -mieee option to build target libs.
6826 # This should probably be set individually by each library.
6827 alphaieee_frag="config/mt-alphaieee"
6828 ;;
6829 esac
6830
6831 # If --enable-target-optspace always use -Os instead of -O2 to build
6832 # the target libraries, similarly if it is not specified, use -Os
6833 # on selected platforms.
6834 ospace_frag=/dev/null
6835 case "${enable_target_optspace}:${target}" in
6836 yes:*)
6837 ospace_frag="config/mt-ospace"
6838 ;;
6839 :d30v-*)
6840 ospace_frag="config/mt-d30v"
6841 ;;
6842 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6843 ospace_frag="config/mt-ospace"
6844 ;;
6845 no:* | :*)
6846 ;;
6847 *)
6848 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6849 ;;
6850 esac
6851
6852 # Some systems (e.g., one of the i386-aix systems the gas testers are
6853 # using) don't handle "\$" correctly, so don't use it here.
6854 tooldir='${exec_prefix}'/${target_noncanonical}
6855 build_tooldir=${tooldir}
6856
6857 # Create a .gdbinit file which runs the one in srcdir
6858 # and tells GDB to look there for source files.
6859
6860 if test -r ${srcdir}/.gdbinit ; then
6861 case ${srcdir} in
6862 .) ;;
6863 *) cat > ./.gdbinit <<EOF
6864 # ${NO_EDIT}
6865 dir ${srcdir}
6866 dir .
6867 source ${srcdir}/.gdbinit
6868 EOF
6869 ;;
6870 esac
6871 fi
6872
6873 # Make sure that the compiler is able to generate an executable. If it
6874 # can't, we are probably in trouble. We don't care whether we can run the
6875 # executable--we might be using a cross compiler--we only care whether it
6876 # can be created. At this point the main configure script has set CC.
6877 we_are_ok=no
6878 echo "int main () { return 0; }" > conftest.c
6879 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6880 if test $? = 0 ; then
6881 if test -s conftest || test -s conftest.exe ; then
6882 we_are_ok=yes
6883 fi
6884 fi
6885 case $we_are_ok in
6886 no)
6887 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6888 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6889 rm -f conftest*
6890 exit 1
6891 ;;
6892 esac
6893 rm -f conftest*
6894
6895 # Decide which environment variable is used to find dynamic libraries.
6896 case "${host}" in
6897 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6898 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6899 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6900 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6901 esac
6902
6903 # On systems where the dynamic library environment variable is PATH,
6904 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6905 # built executables to PATH.
6906 if test "$RPATH_ENVVAR" = PATH; then
6907 GCC_SHLIB_SUBDIR=/shlib
6908 else
6909 GCC_SHLIB_SUBDIR=
6910 fi
6911
6912 # Adjust the toplevel makefile according to whether bootstrap was selected.
6913 case $enable_bootstrap in
6914 yes)
6915 bootstrap_suffix=bootstrap
6916 BUILD_CONFIG=bootstrap-debug
6917 ;;
6918 no)
6919 bootstrap_suffix=no-bootstrap
6920 BUILD_CONFIG=
6921 ;;
6922 esac
6923
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6925 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6926
6927
6928 # Check whether --with-build-config was given.
6929 if test "${with_build_config+set}" = set; then :
6930 withval=$with_build_config; case $with_build_config in
6931 yes) with_build_config= ;;
6932 no) with_build_config= BUILD_CONFIG= ;;
6933 esac
6934 fi
6935
6936
6937 if test "x${with_build_config}" != x; then
6938 BUILD_CONFIG=$with_build_config
6939 else
6940 case $BUILD_CONFIG in
6941 bootstrap-debug)
6942 if echo "int f (void) { return 0; }" > conftest.c &&
6943 ${CC} -c conftest.c &&
6944 mv conftest.o conftest.o.g0 &&
6945 ${CC} -c -g conftest.c &&
6946 mv conftest.o conftest.o.g &&
6947 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6948 :
6949 else
6950 BUILD_CONFIG=
6951 fi
6952 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6953 ;;
6954 esac
6955 fi
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6957 $as_echo "$BUILD_CONFIG" >&6; }
6958
6959
6960 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6962 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
6963 # Check whether --enable-vtable-verify was given.
6964 if test "${enable_vtable_verify+set}" = set; then :
6965 enableval=$enable_vtable_verify; case "$enableval" in
6966 yes) enable_vtable_verify=yes ;;
6967 no) enable_vtable_verify=no ;;
6968 *) enable_vtable_verify=no;;
6969 esac
6970 else
6971 enable_vtable_verify=no
6972 fi
6973
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
6975 $as_echo "$enable_vtable_verify" >&6; }
6976
6977 # Record target_configdirs and the configure arguments for target and
6978 # build configuration in Makefile.
6979 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6980 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6981 bootstrap_fixincludes=no
6982
6983 # If we are building libgomp, bootstrap it.
6984 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6985 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6986 fi
6987
6988 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
6989 # or bootstrap-ubsan, bootstrap it.
6990 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
6991 case "$BUILD_CONFIG" in
6992 *bootstrap-asan* | *bootstrap-ubsan* )
6993 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
6994 bootstrap_fixincludes=yes
6995 ;;
6996 esac
6997 fi
6998
6999 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7000 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7001 test "$enable_vtable_verify" != no; then
7002 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7003 fi
7004
7005 # If we are building libmpx, bootstrap it.
7006 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7007 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7008 fi
7009
7010 # Determine whether gdb needs tk/tcl or not.
7011 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7012 # and in that case we want gdb to be built without tk. Ugh!
7013 # In fact I believe gdb is the *only* package directly dependent on tk,
7014 # so we should be able to put the 'maybe's in unconditionally and
7015 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7016 # 100% sure that that's safe though.
7017
7018 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7019 case "$enable_gdbtk" in
7020 no)
7021 GDB_TK="" ;;
7022 yes)
7023 GDB_TK="${gdb_tk}" ;;
7024 *)
7025 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7026 # distro. Eventually someone will fix this and move Insight, nee
7027 # gdbtk to a separate directory.
7028 if test -d ${srcdir}/gdb/gdbtk ; then
7029 GDB_TK="${gdb_tk}"
7030 else
7031 GDB_TK=""
7032 fi
7033 ;;
7034 esac
7035 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7036 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7037
7038 # Strip out unwanted targets.
7039
7040 # While at that, we remove Makefiles if we were started for recursive
7041 # configuration, so that the top-level Makefile reconfigures them,
7042 # like we used to do when configure itself was recursive.
7043
7044 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7045 # but now we're fixing up the Makefile ourselves with the additional
7046 # commands passed to AC_CONFIG_FILES. Use separate variables
7047 # extrasub-{build,host,target} not because there is any reason to split
7048 # the substitutions up that way, but only to remain below the limit of
7049 # 99 commands in a script, for HP-UX sed.
7050 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7051
7052 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7053 yes:yes:*\ gold\ *:*,c++,*) ;;
7054 yes:yes:*\ gold\ *:*)
7055 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7056 ;;
7057 esac
7058
7059 extrasub_build=
7060 for module in ${build_configdirs} ; do
7061 if test -z "${no_recursion}" \
7062 && test -f ${build_subdir}/${module}/Makefile; then
7063 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7064 rm -f ${build_subdir}/${module}/Makefile
7065 fi
7066 extrasub_build="$extrasub_build
7067 /^@if build-$module\$/d
7068 /^@endif build-$module\$/d
7069 /^@if build-$module-$bootstrap_suffix\$/d
7070 /^@endif build-$module-$bootstrap_suffix\$/d"
7071 done
7072 extrasub_host=
7073 for module in ${configdirs} ; do
7074 if test -z "${no_recursion}"; then
7075 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7076 if test -f ${file}; then
7077 echo 1>&2 "*** removing ${file} to force reconfigure"
7078 rm -f ${file}
7079 fi
7080 done
7081 fi
7082 case ${module},${bootstrap_fixincludes} in
7083 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7084 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7085 esac
7086 extrasub_host="$extrasub_host
7087 /^@if $module\$/d
7088 /^@endif $module\$/d
7089 /^@if $module-$host_bootstrap_suffix\$/d
7090 /^@endif $module-$host_bootstrap_suffix\$/d"
7091 done
7092 extrasub_target=
7093 for module in ${target_configdirs} ; do
7094 if test -z "${no_recursion}" \
7095 && test -f ${target_subdir}/${module}/Makefile; then
7096 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7097 rm -f ${target_subdir}/${module}/Makefile
7098 fi
7099
7100 # We only bootstrap target libraries listed in bootstrap_target_libs.
7101 case $bootstrap_target_libs in
7102 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7103 *) target_bootstrap_suffix=no-bootstrap ;;
7104 esac
7105
7106 extrasub_target="$extrasub_target
7107 /^@if target-$module\$/d
7108 /^@endif target-$module\$/d
7109 /^@if target-$module-$target_bootstrap_suffix\$/d
7110 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7111 done
7112
7113 # Do the final fixup along with target modules.
7114 extrasub_target="$extrasub_target
7115 /^@if /,/^@endif /d"
7116
7117 # Create the serialization dependencies. This uses a temporary file.
7118
7119 # Check whether --enable-serial-configure was given.
7120 if test "${enable_serial_configure+set}" = set; then :
7121 enableval=$enable_serial_configure;
7122 fi
7123
7124
7125 case ${enable_serial_configure} in
7126 yes)
7127 enable_serial_build_configure=yes
7128 enable_serial_host_configure=yes
7129 enable_serial_target_configure=yes
7130 ;;
7131 esac
7132
7133 # These force 'configure's to be done one at a time, to avoid problems
7134 # with contention over a shared config.cache.
7135 rm -f serdep.tmp
7136 echo '# serdep.tmp' > serdep.tmp
7137 olditem=
7138 test "x${enable_serial_build_configure}" = xyes &&
7139 for item in ${build_configdirs} ; do
7140 case ${olditem} in
7141 "") ;;
7142 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7143 esac
7144 olditem=${item}
7145 done
7146 olditem=
7147 test "x${enable_serial_host_configure}" = xyes &&
7148 for item in ${configdirs} ; do
7149 case ${olditem} in
7150 "") ;;
7151 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7152 esac
7153 olditem=${item}
7154 done
7155 olditem=
7156 test "x${enable_serial_target_configure}" = xyes &&
7157 for item in ${target_configdirs} ; do
7158 case ${olditem} in
7159 "") ;;
7160 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7161 esac
7162 olditem=${item}
7163 done
7164 serialization_dependencies=serdep.tmp
7165
7166
7167 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7168 # target, nonopt, and variable assignments. These are the ones we
7169 # might not want to pass down to subconfigures. The exception being
7170 # --cache-file=/dev/null, which is used to turn off the use of cache
7171 # files altogether, and which should be passed on to subconfigures.
7172 # Also strip program-prefix, program-suffix, and program-transform-name,
7173 # so that we can pass down a consistent program-transform-name.
7174 baseargs=
7175 tbaseargs=
7176 keep_next=no
7177 skip_next=no
7178 eval "set -- $ac_configure_args"
7179 for ac_arg
7180 do
7181 if test X"$skip_next" = X"yes"; then
7182 skip_next=no
7183 continue
7184 fi
7185 if test X"$keep_next" = X"yes"; then
7186 case $ac_arg in
7187 *\'*)
7188 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7189 esac
7190 baseargs="$baseargs '$ac_arg'"
7191 tbaseargs="$tbaseargs '$ac_arg'"
7192 keep_next=no
7193 continue
7194 fi
7195
7196 # Handle separated arguments. Based on the logic generated by
7197 # autoconf 2.59.
7198 case $ac_arg in
7199 *=* | --config-cache | -C | -disable-* | --disable-* \
7200 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7201 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7202 | -with-* | --with-* | -without-* | --without-* | --x)
7203 separate_arg=no
7204 ;;
7205 -*)
7206 separate_arg=yes
7207 ;;
7208 *)
7209 separate_arg=no
7210 ;;
7211 esac
7212
7213 skip_targ=no
7214 case $ac_arg in
7215
7216 --with-* | --without-*)
7217 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7218
7219 case $libopt in
7220 *[-_]include)
7221 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7222 ;;
7223 *[-_]lib)
7224 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7225 ;;
7226 *)
7227 lib=$libopt
7228 ;;
7229 esac
7230
7231
7232 case $lib in
7233 mpc | mpfr | gmp | isl)
7234 # If we're processing --with-$lib, --with-$lib-include or
7235 # --with-$lib-lib, for one of the libs above, and target is
7236 # different from host, don't pass the current argument to any
7237 # target library's configure.
7238 if test x$is_cross_compiler = xyes; then
7239 skip_targ=yes
7240 fi
7241 ;;
7242 esac
7243 ;;
7244 esac
7245
7246 case "$ac_arg" in
7247 --cache-file=/dev/null | \
7248 -cache-file=/dev/null )
7249 # Handled here to avoid the test to skip args below.
7250 baseargs="$baseargs '$ac_arg'"
7251 tbaseargs="$tbaseargs '$ac_arg'"
7252 # Assert: $separate_arg should always be no.
7253 keep_next=$separate_arg
7254 ;;
7255 --no*)
7256 continue
7257 ;;
7258 --c* | \
7259 --sr* | \
7260 --ho* | \
7261 --bu* | \
7262 --t* | \
7263 --program-* | \
7264 -cache_file* | \
7265 -srcdir* | \
7266 -host* | \
7267 -build* | \
7268 -target* | \
7269 -program-prefix* | \
7270 -program-suffix* | \
7271 -program-transform-name* )
7272 skip_next=$separate_arg
7273 continue
7274 ;;
7275 -*)
7276 # An option. Add it.
7277 case $ac_arg in
7278 *\'*)
7279 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7280 esac
7281 baseargs="$baseargs '$ac_arg'"
7282 if test X"$skip_targ" = Xno; then
7283 tbaseargs="$tbaseargs '$ac_arg'"
7284 fi
7285 keep_next=$separate_arg
7286 ;;
7287 *)
7288 # Either a variable assignment, or a nonopt (triplet). Don't
7289 # pass it down; let the Makefile handle this.
7290 continue
7291 ;;
7292 esac
7293 done
7294 # Remove the initial space we just introduced and, as these will be
7295 # expanded by make, quote '$'.
7296 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7297
7298 # Add in --program-transform-name, after --program-prefix and
7299 # --program-suffix have been applied to it. Autoconf has already
7300 # doubled dollar signs and backslashes in program_transform_name; we want
7301 # the backslashes un-doubled, and then the entire thing wrapped in single
7302 # quotes, because this will be expanded first by make and then by the shell.
7303 # Also, because we want to override the logic in subdir configure scripts to
7304 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7305 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7306 ${program_transform_name}
7307 EOF_SED
7308 gcc_transform_name=`cat conftestsed.out`
7309 rm -f conftestsed.out
7310 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7311 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7312 if test "$silent" = yes; then
7313 baseargs="$baseargs --silent"
7314 tbaseargs="$tbaseargs --silent"
7315 fi
7316 baseargs="$baseargs --disable-option-checking"
7317 tbaseargs="$tbaseargs --disable-option-checking"
7318
7319 # Record and document user additions to sub configure arguments.
7320
7321
7322
7323
7324 # For the build-side libraries, we just need to pretend we're native,
7325 # and not use the same cache file. Multilibs are neither needed nor
7326 # desired. We can't even use the same cache file for all build-side
7327 # libraries, as they're compiled differently; some with C, some with
7328 # C++ or with different feature-enabling options.
7329 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7330
7331 # For host modules, accept cache file option, or specification as blank.
7332 case "${cache_file}" in
7333 "") # empty
7334 cache_file_option="" ;;
7335 /* | [A-Za-z]:[\\/]* ) # absolute path
7336 cache_file_option="--cache-file=${cache_file}" ;;
7337 *) # relative path
7338 cache_file_option="--cache-file=../${cache_file}" ;;
7339 esac
7340
7341 # Host dirs don't like to share a cache file either, horribly enough.
7342 # This seems to be due to autoconf 2.5x stupidity.
7343 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7344
7345 target_configargs="$target_configargs ${tbaseargs}"
7346
7347 # Passing a --with-cross-host argument lets the target libraries know
7348 # whether they are being built with a cross-compiler or being built
7349 # native. However, it would be better to use other mechanisms to make the
7350 # sorts of decisions they want to make on this basis. Please consider
7351 # this option to be deprecated. FIXME.
7352 if test x${is_cross_compiler} = xyes ; then
7353 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7354 fi
7355
7356 # Special user-friendly check for native x86_64-linux build, if
7357 # multilib is not explicitly enabled.
7358 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7359 x86_64-*linux*:yes:$build:$build:)
7360 # Make sure we have a development environment that handles 32-bit
7361 dev64=no
7362 echo "int main () { return 0; }" > conftest.c
7363 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7364 if test $? = 0 ; then
7365 if test -s conftest || test -s conftest.exe ; then
7366 dev64=yes
7367 fi
7368 fi
7369 rm -f conftest*
7370 if test x${dev64} != xyes ; then
7371 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
7372 fi
7373 ;;
7374 esac
7375
7376 # Default to --enable-multilib.
7377 if test x${enable_multilib} = x ; then
7378 target_configargs="--enable-multilib ${target_configargs}"
7379 fi
7380
7381 # Pass --with-newlib if appropriate. Note that target_configdirs has
7382 # changed from the earlier setting of with_newlib.
7383 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7384 target_configargs="--with-newlib ${target_configargs}"
7385 fi
7386
7387 # Different target subdirs use different values of certain variables
7388 # (notably CXX). Worse, multilibs use *lots* of different values.
7389 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7390 # it doesn't automatically accept command-line overrides of them.
7391 # This means it's not safe for target subdirs to share a cache file,
7392 # which is disgusting, but there you have it. Hopefully this can be
7393 # fixed in future. It's still worthwhile to use a cache file for each
7394 # directory. I think.
7395
7396 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7397 # We need to pass --target, as newer autoconf's requires consistency
7398 # for target_alias and gcc doesn't manage it consistently.
7399 target_configargs="--cache-file=./config.cache ${target_configargs}"
7400
7401 FLAGS_FOR_TARGET=
7402 case " $target_configdirs " in
7403 *" newlib "*)
7404 case " $target_configargs " in
7405 *" --with-newlib "*)
7406 case "$target" in
7407 *-cygwin*)
7408 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7409 ;;
7410 esac
7411
7412 # If we're not building GCC, don't discard standard headers.
7413 if test -d ${srcdir}/gcc; then
7414 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7415
7416 if test "${build}" != "${host}"; then
7417 # On Canadian crosses, CC_FOR_TARGET will have already been set
7418 # by `configure', so we won't have an opportunity to add -Bgcc/
7419 # to it. This is right: we don't want to search that directory
7420 # for binaries, but we want the header files in there, so add
7421 # them explicitly.
7422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7423
7424 # Someone might think of using the pre-installed headers on
7425 # Canadian crosses, in case the installed compiler is not fully
7426 # compatible with the compiler being built. In this case, it
7427 # would be better to flag an error than risking having
7428 # incompatible object files being constructed. We can't
7429 # guarantee that an error will be flagged, but let's hope the
7430 # compiler will do it, when presented with incompatible header
7431 # files.
7432 fi
7433 fi
7434
7435 case "${target}-${is_cross_compiler}" in
7436 i[3456789]86-*-linux*-no)
7437 # Here host == target, so we don't need to build gcc,
7438 # so we don't want to discard standard headers.
7439 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7440 ;;
7441 *)
7442 # If we're building newlib, use its generic headers last, but search
7443 # for any libc-related directories first (so make it the last -B
7444 # switch).
7445 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7446
7447 # If we're building libgloss, find the startup file, simulator library
7448 # and linker script.
7449 case " $target_configdirs " in
7450 *" libgloss "*)
7451 # Look for startup file, simulator library and maybe linker script.
7452 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7453 # Look for libnosys.a in case the target needs it.
7454 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7455 # Most targets have the linker script in the source directory.
7456 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7457 ;;
7458 esac
7459 ;;
7460 esac
7461 ;;
7462 esac
7463 ;;
7464 esac
7465
7466 case "$target" in
7467 x86_64-*mingw* | *-w64-mingw*)
7468 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7469 # however, use a symlink named 'mingw' in ${prefix} .
7470 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7471 ;;
7472 *-mingw*)
7473 # MinGW can't be handled as Cygwin above since it does not use newlib.
7474 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'
7475 ;;
7476 esac
7477
7478 # Allow the user to override the flags for
7479 # our build compiler if desired.
7480 if test x"${build}" = x"${host}" ; then
7481 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7482 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7483 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7484 fi
7485
7486 # On Canadian crosses, we'll be searching the right directories for
7487 # the previously-installed cross compiler, so don't bother to add
7488 # flags for directories within the install tree of the compiler
7489 # being built; programs in there won't even run.
7490 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7491 # Search for pre-installed headers if nothing else fits.
7492 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7493 fi
7494
7495 if test "x${use_gnu_ld}" = x &&
7496 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7497 # Arrange for us to find uninstalled linker scripts.
7498 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7499 fi
7500
7501 # Search for other target-specific linker scripts and such.
7502 case "${target}" in
7503 mep*)
7504 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7505 ;;
7506 esac
7507
7508 # Makefile fragments.
7509 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7510 do
7511 eval fragval=\$$frag
7512 if test $fragval != /dev/null; then
7513 eval $frag=${srcdir}/$fragval
7514 fi
7515 done
7516
7517
7518
7519
7520
7521 # Miscellanea: directories, flags, etc.
7522
7523
7524
7525
7526
7527
7528
7529
7530 # Build module lists & subconfigure args.
7531
7532
7533
7534 # Host module lists & subconfigure args.
7535
7536
7537
7538
7539 # Target module lists & subconfigure args.
7540
7541
7542
7543 # Build tools.
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561 # Generate default definitions for YACC, M4, LEX and other programs that run
7562 # on the build machine. These are used if the Makefile can't locate these
7563 # programs in objdir.
7564 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7565
7566 for ac_prog in 'bison -y' byacc yacc
7567 do
7568 # Extract the first word of "$ac_prog", so it can be a program name with args.
7569 set dummy $ac_prog; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if test "${ac_cv_prog_YACC+set}" = set; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 if test -n "$YACC"; then
7576 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581 IFS=$as_save_IFS
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 ac_cv_prog_YACC="$ac_prog"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 break 2
7588 fi
7589 done
7590 done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 YACC=$ac_cv_prog_YACC
7596 if test -n "$YACC"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7598 $as_echo "$YACC" >&6; }
7599 else
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 fi
7603
7604
7605 test -n "$YACC" && break
7606 done
7607 test -n "$YACC" || YACC="$MISSING bison -y"
7608
7609 case " $build_configdirs " in
7610 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7611 esac
7612
7613 for ac_prog in bison
7614 do
7615 # Extract the first word of "$ac_prog", so it can be a program name with args.
7616 set dummy $ac_prog; ac_word=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if test "${ac_cv_prog_BISON+set}" = set; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 if test -n "$BISON"; then
7623 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7624 else
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7632 ac_cv_prog_BISON="$ac_prog"
7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7635 fi
7636 done
7637 done
7638 IFS=$as_save_IFS
7639
7640 fi
7641 fi
7642 BISON=$ac_cv_prog_BISON
7643 if test -n "$BISON"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7645 $as_echo "$BISON" >&6; }
7646 else
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7649 fi
7650
7651
7652 test -n "$BISON" && break
7653 done
7654 test -n "$BISON" || BISON="$MISSING bison"
7655
7656 case " $build_configdirs " in
7657 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7658 esac
7659
7660 for ac_prog in gm4 gnum4 m4
7661 do
7662 # Extract the first word of "$ac_prog", so it can be a program name with args.
7663 set dummy $ac_prog; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if test "${ac_cv_prog_M4+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 if test -n "$M4"; then
7670 ac_cv_prog_M4="$M4" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_prog_M4="$ac_prog"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 break 2
7682 fi
7683 done
7684 done
7685 IFS=$as_save_IFS
7686
7687 fi
7688 fi
7689 M4=$ac_cv_prog_M4
7690 if test -n "$M4"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7692 $as_echo "$M4" >&6; }
7693 else
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7696 fi
7697
7698
7699 test -n "$M4" && break
7700 done
7701 test -n "$M4" || M4="$MISSING m4"
7702
7703 case " $build_configdirs " in
7704 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7705 esac
7706
7707 for ac_prog in flex lex
7708 do
7709 # Extract the first word of "$ac_prog", so it can be a program name with args.
7710 set dummy $ac_prog; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if test "${ac_cv_prog_LEX+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 if test -n "$LEX"; then
7717 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7726 ac_cv_prog_LEX="$ac_prog"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734 fi
7735 fi
7736 LEX=$ac_cv_prog_LEX
7737 if test -n "$LEX"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7739 $as_echo "$LEX" >&6; }
7740 else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745
7746 test -n "$LEX" && break
7747 done
7748 test -n "$LEX" || LEX="$MISSING flex"
7749
7750 case " $build_configdirs " in
7751 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7752 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7753 esac
7754
7755 for ac_prog in flex
7756 do
7757 # Extract the first word of "$ac_prog", so it can be a program name with args.
7758 set dummy $ac_prog; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if test "${ac_cv_prog_FLEX+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$FLEX"; then
7765 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_prog_FLEX="$ac_prog"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778 done
7779 done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 FLEX=$ac_cv_prog_FLEX
7785 if test -n "$FLEX"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7787 $as_echo "$FLEX" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793
7794 test -n "$FLEX" && break
7795 done
7796 test -n "$FLEX" || FLEX="$MISSING flex"
7797
7798 case " $build_configdirs " in
7799 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7800 esac
7801
7802 for ac_prog in makeinfo
7803 do
7804 # Extract the first word of "$ac_prog", so it can be a program name with args.
7805 set dummy $ac_prog; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 if test -n "$MAKEINFO"; then
7812 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7816 do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_prog_MAKEINFO="$ac_prog"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825 done
7826 done
7827 IFS=$as_save_IFS
7828
7829 fi
7830 fi
7831 MAKEINFO=$ac_cv_prog_MAKEINFO
7832 if test -n "$MAKEINFO"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7834 $as_echo "$MAKEINFO" >&6; }
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 fi
7839
7840
7841 test -n "$MAKEINFO" && break
7842 done
7843 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7844
7845 case " $build_configdirs " in
7846 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7847 *)
7848
7849 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7850 # higher, else we use the "missing" dummy.
7851 if ${MAKEINFO} --version \
7852 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7853 :
7854 else
7855 MAKEINFO="$MISSING makeinfo"
7856 fi
7857 ;;
7858
7859 esac
7860
7861 # FIXME: expect and dejagnu may become build tools?
7862
7863 for ac_prog in expect
7864 do
7865 # Extract the first word of "$ac_prog", so it can be a program name with args.
7866 set dummy $ac_prog; ac_word=$2
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868 $as_echo_n "checking for $ac_word... " >&6; }
7869 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 if test -n "$EXPECT"; then
7873 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7874 else
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7877 do
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7882 ac_cv_prog_EXPECT="$ac_prog"
7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7885 fi
7886 done
7887 done
7888 IFS=$as_save_IFS
7889
7890 fi
7891 fi
7892 EXPECT=$ac_cv_prog_EXPECT
7893 if test -n "$EXPECT"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7895 $as_echo "$EXPECT" >&6; }
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7899 fi
7900
7901
7902 test -n "$EXPECT" && break
7903 done
7904 test -n "$EXPECT" || EXPECT="expect"
7905
7906 case " $configdirs " in
7907 *" expect "*)
7908 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7909 ;;
7910 esac
7911
7912 for ac_prog in runtest
7913 do
7914 # Extract the first word of "$ac_prog", so it can be a program name with args.
7915 set dummy $ac_prog; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test -n "$RUNTEST"; then
7922 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_RUNTEST="$ac_prog"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935 done
7936 done
7937 IFS=$as_save_IFS
7938
7939 fi
7940 fi
7941 RUNTEST=$ac_cv_prog_RUNTEST
7942 if test -n "$RUNTEST"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7944 $as_echo "$RUNTEST" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949
7950
7951 test -n "$RUNTEST" && break
7952 done
7953 test -n "$RUNTEST" || RUNTEST="runtest"
7954
7955 case " $configdirs " in
7956 *" dejagnu "*)
7957 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7958 ;;
7959 esac
7960
7961
7962 # Host tools.
7963 ncn_tool_prefix=
7964 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7965 ncn_target_tool_prefix=
7966 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7967
7968
7969
7970 if test -n "$AR"; then
7971 ac_cv_prog_AR=$AR
7972 elif test -n "$ac_cv_prog_AR"; then
7973 AR=$ac_cv_prog_AR
7974 fi
7975
7976 if test -n "$ac_cv_prog_AR"; then
7977 for ncn_progname in ar; do
7978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7979 set dummy ${ncn_progname}; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_AR+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 if test -n "$AR"; then
7986 ac_cv_prog_AR="$AR" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_AR="${ncn_progname}"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7998 fi
7999 done
8000 done
8001 IFS=$as_save_IFS
8002
8003 fi
8004 fi
8005 AR=$ac_cv_prog_AR
8006 if test -n "$AR"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8008 $as_echo "$AR" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014
8015 done
8016 fi
8017
8018 for ncn_progname in ar; do
8019 if test -n "$ncn_tool_prefix"; then
8020 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8021 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if test "${ac_cv_prog_AR+set}" = set; then :
8025 $as_echo_n "(cached) " >&6
8026 else
8027 if test -n "$AR"; then
8028 ac_cv_prog_AR="$AR" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 break 2
8040 fi
8041 done
8042 done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 AR=$ac_cv_prog_AR
8048 if test -n "$AR"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8050 $as_echo "$AR" >&6; }
8051 else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055
8056
8057 fi
8058 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8060 set dummy ${ncn_progname}; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if test "${ac_cv_prog_AR+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 if test -n "$AR"; then
8067 ac_cv_prog_AR="$AR" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8071 do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_prog_AR="${ncn_progname}"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8079 fi
8080 done
8081 done
8082 IFS=$as_save_IFS
8083
8084 fi
8085 fi
8086 AR=$ac_cv_prog_AR
8087 if test -n "$AR"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8089 $as_echo "$AR" >&6; }
8090 else
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8093 fi
8094
8095
8096 fi
8097 test -n "$ac_cv_prog_AR" && break
8098 done
8099
8100 if test -z "$ac_cv_prog_AR" ; then
8101 set dummy ar
8102 if test $build = $host ; then
8103 AR="$2"
8104 else
8105 AR="${ncn_tool_prefix}$2"
8106 fi
8107 fi
8108
8109
8110
8111 if test -n "$AS"; then
8112 ac_cv_prog_AS=$AS
8113 elif test -n "$ac_cv_prog_AS"; then
8114 AS=$ac_cv_prog_AS
8115 fi
8116
8117 if test -n "$ac_cv_prog_AS"; then
8118 for ncn_progname in as; do
8119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8120 set dummy ${ncn_progname}; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if test "${ac_cv_prog_AS+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 if test -n "$AS"; then
8127 ac_cv_prog_AS="$AS" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 for ac_exec_ext in '' $ac_executable_extensions; do
8135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8136 ac_cv_prog_AS="${ncn_progname}"
8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8138 break 2
8139 fi
8140 done
8141 done
8142 IFS=$as_save_IFS
8143
8144 fi
8145 fi
8146 AS=$ac_cv_prog_AS
8147 if test -n "$AS"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8149 $as_echo "$AS" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 fi
8154
8155
8156 done
8157 fi
8158
8159 for ncn_progname in as; do
8160 if test -n "$ncn_tool_prefix"; then
8161 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8162 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if test "${ac_cv_prog_AS+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 if test -n "$AS"; then
8169 ac_cv_prog_AS="$AS" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8173 do
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182 done
8183 done
8184 IFS=$as_save_IFS
8185
8186 fi
8187 fi
8188 AS=$ac_cv_prog_AS
8189 if test -n "$AS"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8191 $as_echo "$AS" >&6; }
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8195 fi
8196
8197
8198 fi
8199 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8201 set dummy ${ncn_progname}; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if test "${ac_cv_prog_AS+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 if test -n "$AS"; then
8208 ac_cv_prog_AS="$AS" # Let the user override the test.
8209 else
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8212 do
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8217 ac_cv_prog_AS="${ncn_progname}"
8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 break 2
8220 fi
8221 done
8222 done
8223 IFS=$as_save_IFS
8224
8225 fi
8226 fi
8227 AS=$ac_cv_prog_AS
8228 if test -n "$AS"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8230 $as_echo "$AS" >&6; }
8231 else
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 $as_echo "no" >&6; }
8234 fi
8235
8236
8237 fi
8238 test -n "$ac_cv_prog_AS" && break
8239 done
8240
8241 if test -z "$ac_cv_prog_AS" ; then
8242 set dummy as
8243 if test $build = $host ; then
8244 AS="$2"
8245 else
8246 AS="${ncn_tool_prefix}$2"
8247 fi
8248 fi
8249
8250
8251
8252 if test -n "$DLLTOOL"; then
8253 ac_cv_prog_DLLTOOL=$DLLTOOL
8254 elif test -n "$ac_cv_prog_DLLTOOL"; then
8255 DLLTOOL=$ac_cv_prog_DLLTOOL
8256 fi
8257
8258 if test -n "$ac_cv_prog_DLLTOOL"; then
8259 for ncn_progname in dlltool; do
8260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8261 set dummy ${ncn_progname}; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 if test -n "$DLLTOOL"; then
8268 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277 ac_cv_prog_DLLTOOL="${ncn_progname}"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 break 2
8280 fi
8281 done
8282 done
8283 IFS=$as_save_IFS
8284
8285 fi
8286 fi
8287 DLLTOOL=$ac_cv_prog_DLLTOOL
8288 if test -n "$DLLTOOL"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8290 $as_echo "$DLLTOOL" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294 fi
8295
8296
8297 done
8298 fi
8299
8300 for ncn_progname in dlltool; do
8301 if test -n "$ncn_tool_prefix"; then
8302 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8303 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 if test -n "$DLLTOOL"; then
8310 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8311 else
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8314 do
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8319 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8322 fi
8323 done
8324 done
8325 IFS=$as_save_IFS
8326
8327 fi
8328 fi
8329 DLLTOOL=$ac_cv_prog_DLLTOOL
8330 if test -n "$DLLTOOL"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8332 $as_echo "$DLLTOOL" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8336 fi
8337
8338
8339 fi
8340 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8342 set dummy ${ncn_progname}; ac_word=$2
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 $as_echo_n "checking for $ac_word... " >&6; }
8345 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 if test -n "$DLLTOOL"; then
8349 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8350 else
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8353 do
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8358 ac_cv_prog_DLLTOOL="${ncn_progname}"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 break 2
8361 fi
8362 done
8363 done
8364 IFS=$as_save_IFS
8365
8366 fi
8367 fi
8368 DLLTOOL=$ac_cv_prog_DLLTOOL
8369 if test -n "$DLLTOOL"; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8371 $as_echo "$DLLTOOL" >&6; }
8372 else
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8375 fi
8376
8377
8378 fi
8379 test -n "$ac_cv_prog_DLLTOOL" && break
8380 done
8381
8382 if test -z "$ac_cv_prog_DLLTOOL" ; then
8383 set dummy dlltool
8384 if test $build = $host ; then
8385 DLLTOOL="$2"
8386 else
8387 DLLTOOL="${ncn_tool_prefix}$2"
8388 fi
8389 fi
8390
8391
8392
8393 if test -n "$LD"; then
8394 ac_cv_prog_LD=$LD
8395 elif test -n "$ac_cv_prog_LD"; then
8396 LD=$ac_cv_prog_LD
8397 fi
8398
8399 if test -n "$ac_cv_prog_LD"; then
8400 for ncn_progname in ld; do
8401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8402 set dummy ${ncn_progname}; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if test "${ac_cv_prog_LD+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
8407 else
8408 if test -n "$LD"; then
8409 ac_cv_prog_LD="$LD" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418 ac_cv_prog_LD="${ncn_progname}"
8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8421 fi
8422 done
8423 done
8424 IFS=$as_save_IFS
8425
8426 fi
8427 fi
8428 LD=$ac_cv_prog_LD
8429 if test -n "$LD"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8431 $as_echo "$LD" >&6; }
8432 else
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8435 fi
8436
8437
8438 done
8439 fi
8440
8441 for ncn_progname in ld; do
8442 if test -n "$ncn_tool_prefix"; then
8443 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8444 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if test "${ac_cv_prog_LD+set}" = set; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 if test -n "$LD"; then
8451 ac_cv_prog_LD="$LD" # Let the user override the test.
8452 else
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8455 do
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8460 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 break 2
8463 fi
8464 done
8465 done
8466 IFS=$as_save_IFS
8467
8468 fi
8469 fi
8470 LD=$ac_cv_prog_LD
8471 if test -n "$LD"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8473 $as_echo "$LD" >&6; }
8474 else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8477 fi
8478
8479
8480 fi
8481 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8482 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8483 set dummy ${ncn_progname}; ac_word=$2
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485 $as_echo_n "checking for $ac_word... " >&6; }
8486 if test "${ac_cv_prog_LD+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 if test -n "$LD"; then
8490 ac_cv_prog_LD="$LD" # Let the user override the test.
8491 else
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 for as_dir in $PATH
8494 do
8495 IFS=$as_save_IFS
8496 test -z "$as_dir" && as_dir=.
8497 for ac_exec_ext in '' $ac_executable_extensions; do
8498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8499 ac_cv_prog_LD="${ncn_progname}"
8500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 break 2
8502 fi
8503 done
8504 done
8505 IFS=$as_save_IFS
8506
8507 fi
8508 fi
8509 LD=$ac_cv_prog_LD
8510 if test -n "$LD"; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8512 $as_echo "$LD" >&6; }
8513 else
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 $as_echo "no" >&6; }
8516 fi
8517
8518
8519 fi
8520 test -n "$ac_cv_prog_LD" && break
8521 done
8522
8523 if test -z "$ac_cv_prog_LD" ; then
8524 set dummy ld
8525 if test $build = $host ; then
8526 LD="$2"
8527 else
8528 LD="${ncn_tool_prefix}$2"
8529 fi
8530 fi
8531
8532
8533
8534 if test -n "$LIPO"; then
8535 ac_cv_prog_LIPO=$LIPO
8536 elif test -n "$ac_cv_prog_LIPO"; then
8537 LIPO=$ac_cv_prog_LIPO
8538 fi
8539
8540 if test -n "$ac_cv_prog_LIPO"; then
8541 for ncn_progname in lipo; do
8542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8543 set dummy ${ncn_progname}; ac_word=$2
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545 $as_echo_n "checking for $ac_word... " >&6; }
8546 if test "${ac_cv_prog_LIPO+set}" = set; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 if test -n "$LIPO"; then
8550 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8551 else
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 for as_dir in $PATH
8554 do
8555 IFS=$as_save_IFS
8556 test -z "$as_dir" && as_dir=.
8557 for ac_exec_ext in '' $ac_executable_extensions; do
8558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8559 ac_cv_prog_LIPO="${ncn_progname}"
8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561 break 2
8562 fi
8563 done
8564 done
8565 IFS=$as_save_IFS
8566
8567 fi
8568 fi
8569 LIPO=$ac_cv_prog_LIPO
8570 if test -n "$LIPO"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8572 $as_echo "$LIPO" >&6; }
8573 else
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8576 fi
8577
8578
8579 done
8580 fi
8581
8582 for ncn_progname in lipo; do
8583 if test -n "$ncn_tool_prefix"; then
8584 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8585 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if test "${ac_cv_prog_LIPO+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 if test -n "$LIPO"; then
8592 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8593 else
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8596 do
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8601 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8604 fi
8605 done
8606 done
8607 IFS=$as_save_IFS
8608
8609 fi
8610 fi
8611 LIPO=$ac_cv_prog_LIPO
8612 if test -n "$LIPO"; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8614 $as_echo "$LIPO" >&6; }
8615 else
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8618 fi
8619
8620
8621 fi
8622 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8624 set dummy ${ncn_progname}; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if test "${ac_cv_prog_LIPO+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 if test -n "$LIPO"; then
8631 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8635 do
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8640 ac_cv_prog_LIPO="${ncn_progname}"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8643 fi
8644 done
8645 done
8646 IFS=$as_save_IFS
8647
8648 fi
8649 fi
8650 LIPO=$ac_cv_prog_LIPO
8651 if test -n "$LIPO"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8653 $as_echo "$LIPO" >&6; }
8654 else
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8657 fi
8658
8659
8660 fi
8661 test -n "$ac_cv_prog_LIPO" && break
8662 done
8663
8664 if test -z "$ac_cv_prog_LIPO" ; then
8665 set dummy lipo
8666 if test $build = $host ; then
8667 LIPO="$2"
8668 else
8669 LIPO="${ncn_tool_prefix}$2"
8670 fi
8671 fi
8672
8673
8674
8675 if test -n "$NM"; then
8676 ac_cv_prog_NM=$NM
8677 elif test -n "$ac_cv_prog_NM"; then
8678 NM=$ac_cv_prog_NM
8679 fi
8680
8681 if test -n "$ac_cv_prog_NM"; then
8682 for ncn_progname in nm; do
8683 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8684 set dummy ${ncn_progname}; ac_word=$2
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686 $as_echo_n "checking for $ac_word... " >&6; }
8687 if test "${ac_cv_prog_NM+set}" = set; then :
8688 $as_echo_n "(cached) " >&6
8689 else
8690 if test -n "$NM"; then
8691 ac_cv_prog_NM="$NM" # Let the user override the test.
8692 else
8693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694 for as_dir in $PATH
8695 do
8696 IFS=$as_save_IFS
8697 test -z "$as_dir" && as_dir=.
8698 for ac_exec_ext in '' $ac_executable_extensions; do
8699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8700 ac_cv_prog_NM="${ncn_progname}"
8701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 break 2
8703 fi
8704 done
8705 done
8706 IFS=$as_save_IFS
8707
8708 fi
8709 fi
8710 NM=$ac_cv_prog_NM
8711 if test -n "$NM"; then
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8713 $as_echo "$NM" >&6; }
8714 else
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716 $as_echo "no" >&6; }
8717 fi
8718
8719
8720 done
8721 fi
8722
8723 for ncn_progname in nm; do
8724 if test -n "$ncn_tool_prefix"; then
8725 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8726 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if test "${ac_cv_prog_NM+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 if test -n "$NM"; then
8733 ac_cv_prog_NM="$NM" # Let the user override the test.
8734 else
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8737 do
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8742 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 break 2
8745 fi
8746 done
8747 done
8748 IFS=$as_save_IFS
8749
8750 fi
8751 fi
8752 NM=$ac_cv_prog_NM
8753 if test -n "$NM"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8755 $as_echo "$NM" >&6; }
8756 else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8759 fi
8760
8761
8762 fi
8763 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8765 set dummy ${ncn_progname}; ac_word=$2
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 $as_echo_n "checking for $ac_word... " >&6; }
8768 if test "${ac_cv_prog_NM+set}" = set; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 if test -n "$NM"; then
8772 ac_cv_prog_NM="$NM" # Let the user override the test.
8773 else
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8776 do
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8781 ac_cv_prog_NM="${ncn_progname}"
8782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 break 2
8784 fi
8785 done
8786 done
8787 IFS=$as_save_IFS
8788
8789 fi
8790 fi
8791 NM=$ac_cv_prog_NM
8792 if test -n "$NM"; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8794 $as_echo "$NM" >&6; }
8795 else
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8798 fi
8799
8800
8801 fi
8802 test -n "$ac_cv_prog_NM" && break
8803 done
8804
8805 if test -z "$ac_cv_prog_NM" ; then
8806 set dummy nm
8807 if test $build = $host ; then
8808 NM="$2"
8809 else
8810 NM="${ncn_tool_prefix}$2"
8811 fi
8812 fi
8813
8814
8815
8816 if test -n "$RANLIB"; then
8817 ac_cv_prog_RANLIB=$RANLIB
8818 elif test -n "$ac_cv_prog_RANLIB"; then
8819 RANLIB=$ac_cv_prog_RANLIB
8820 fi
8821
8822 if test -n "$ac_cv_prog_RANLIB"; then
8823 for ncn_progname in ranlib; do
8824 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8825 set dummy ${ncn_progname}; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 if test -n "$RANLIB"; then
8832 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8833 else
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in $PATH
8836 do
8837 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8841 ac_cv_prog_RANLIB="${ncn_progname}"
8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2
8844 fi
8845 done
8846 done
8847 IFS=$as_save_IFS
8848
8849 fi
8850 fi
8851 RANLIB=$ac_cv_prog_RANLIB
8852 if test -n "$RANLIB"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8854 $as_echo "$RANLIB" >&6; }
8855 else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8858 fi
8859
8860
8861 done
8862 fi
8863
8864 for ncn_progname in ranlib; do
8865 if test -n "$ncn_tool_prefix"; then
8866 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8867 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869 $as_echo_n "checking for $ac_word... " >&6; }
8870 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 if test -n "$RANLIB"; then
8874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8875 else
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8878 do
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8886 fi
8887 done
8888 done
8889 IFS=$as_save_IFS
8890
8891 fi
8892 fi
8893 RANLIB=$ac_cv_prog_RANLIB
8894 if test -n "$RANLIB"; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8896 $as_echo "$RANLIB" >&6; }
8897 else
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8900 fi
8901
8902
8903 fi
8904 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8906 set dummy ${ncn_progname}; ac_word=$2
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908 $as_echo_n "checking for $ac_word... " >&6; }
8909 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 if test -n "$RANLIB"; then
8913 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8914 else
8915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916 for as_dir in $PATH
8917 do
8918 IFS=$as_save_IFS
8919 test -z "$as_dir" && as_dir=.
8920 for ac_exec_ext in '' $ac_executable_extensions; do
8921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8922 ac_cv_prog_RANLIB="${ncn_progname}"
8923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8924 break 2
8925 fi
8926 done
8927 done
8928 IFS=$as_save_IFS
8929
8930 fi
8931 fi
8932 RANLIB=$ac_cv_prog_RANLIB
8933 if test -n "$RANLIB"; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8935 $as_echo "$RANLIB" >&6; }
8936 else
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938 $as_echo "no" >&6; }
8939 fi
8940
8941
8942 fi
8943 test -n "$ac_cv_prog_RANLIB" && break
8944 done
8945
8946 if test -z "$ac_cv_prog_RANLIB" ; then
8947 RANLIB="true"
8948 fi
8949
8950
8951
8952 if test -n "$STRIP"; then
8953 ac_cv_prog_STRIP=$STRIP
8954 elif test -n "$ac_cv_prog_STRIP"; then
8955 STRIP=$ac_cv_prog_STRIP
8956 fi
8957
8958 if test -n "$ac_cv_prog_STRIP"; then
8959 for ncn_progname in strip; do
8960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8961 set dummy ${ncn_progname}; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if test "${ac_cv_prog_STRIP+set}" = set; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 if test -n "$STRIP"; then
8968 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8969 else
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971 for as_dir in $PATH
8972 do
8973 IFS=$as_save_IFS
8974 test -z "$as_dir" && as_dir=.
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8977 ac_cv_prog_STRIP="${ncn_progname}"
8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8979 break 2
8980 fi
8981 done
8982 done
8983 IFS=$as_save_IFS
8984
8985 fi
8986 fi
8987 STRIP=$ac_cv_prog_STRIP
8988 if test -n "$STRIP"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8990 $as_echo "$STRIP" >&6; }
8991 else
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
8994 fi
8995
8996
8997 done
8998 fi
8999
9000 for ncn_progname in strip; do
9001 if test -n "$ncn_tool_prefix"; then
9002 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9003 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005 $as_echo_n "checking for $ac_word... " >&6; }
9006 if test "${ac_cv_prog_STRIP+set}" = set; then :
9007 $as_echo_n "(cached) " >&6
9008 else
9009 if test -n "$STRIP"; then
9010 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9011 else
9012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013 for as_dir in $PATH
9014 do
9015 IFS=$as_save_IFS
9016 test -z "$as_dir" && as_dir=.
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9019 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021 break 2
9022 fi
9023 done
9024 done
9025 IFS=$as_save_IFS
9026
9027 fi
9028 fi
9029 STRIP=$ac_cv_prog_STRIP
9030 if test -n "$STRIP"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9032 $as_echo "$STRIP" >&6; }
9033 else
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 $as_echo "no" >&6; }
9036 fi
9037
9038
9039 fi
9040 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9042 set dummy ${ncn_progname}; ac_word=$2
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044 $as_echo_n "checking for $ac_word... " >&6; }
9045 if test "${ac_cv_prog_STRIP+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 if test -n "$STRIP"; then
9049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9050 else
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 for as_dir in $PATH
9053 do
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9058 ac_cv_prog_STRIP="${ncn_progname}"
9059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 break 2
9061 fi
9062 done
9063 done
9064 IFS=$as_save_IFS
9065
9066 fi
9067 fi
9068 STRIP=$ac_cv_prog_STRIP
9069 if test -n "$STRIP"; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9071 $as_echo "$STRIP" >&6; }
9072 else
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9075 fi
9076
9077
9078 fi
9079 test -n "$ac_cv_prog_STRIP" && break
9080 done
9081
9082 if test -z "$ac_cv_prog_STRIP" ; then
9083 STRIP="true"
9084 fi
9085
9086
9087
9088 if test -n "$WINDRES"; then
9089 ac_cv_prog_WINDRES=$WINDRES
9090 elif test -n "$ac_cv_prog_WINDRES"; then
9091 WINDRES=$ac_cv_prog_WINDRES
9092 fi
9093
9094 if test -n "$ac_cv_prog_WINDRES"; then
9095 for ncn_progname in windres; do
9096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9097 set dummy ${ncn_progname}; ac_word=$2
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 $as_echo_n "checking for $ac_word... " >&6; }
9100 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 if test -n "$WINDRES"; then
9104 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9105 else
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9108 do
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9113 ac_cv_prog_WINDRES="${ncn_progname}"
9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 break 2
9116 fi
9117 done
9118 done
9119 IFS=$as_save_IFS
9120
9121 fi
9122 fi
9123 WINDRES=$ac_cv_prog_WINDRES
9124 if test -n "$WINDRES"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9126 $as_echo "$WINDRES" >&6; }
9127 else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9130 fi
9131
9132
9133 done
9134 fi
9135
9136 for ncn_progname in windres; do
9137 if test -n "$ncn_tool_prefix"; then
9138 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9139 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9141 $as_echo_n "checking for $ac_word... " >&6; }
9142 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 if test -n "$WINDRES"; then
9146 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9147 else
9148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9149 for as_dir in $PATH
9150 do
9151 IFS=$as_save_IFS
9152 test -z "$as_dir" && as_dir=.
9153 for ac_exec_ext in '' $ac_executable_extensions; do
9154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9155 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9157 break 2
9158 fi
9159 done
9160 done
9161 IFS=$as_save_IFS
9162
9163 fi
9164 fi
9165 WINDRES=$ac_cv_prog_WINDRES
9166 if test -n "$WINDRES"; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9168 $as_echo "$WINDRES" >&6; }
9169 else
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171 $as_echo "no" >&6; }
9172 fi
9173
9174
9175 fi
9176 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9178 set dummy ${ncn_progname}; ac_word=$2
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180 $as_echo_n "checking for $ac_word... " >&6; }
9181 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 if test -n "$WINDRES"; then
9185 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9186 else
9187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 for as_dir in $PATH
9189 do
9190 IFS=$as_save_IFS
9191 test -z "$as_dir" && as_dir=.
9192 for ac_exec_ext in '' $ac_executable_extensions; do
9193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9194 ac_cv_prog_WINDRES="${ncn_progname}"
9195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9196 break 2
9197 fi
9198 done
9199 done
9200 IFS=$as_save_IFS
9201
9202 fi
9203 fi
9204 WINDRES=$ac_cv_prog_WINDRES
9205 if test -n "$WINDRES"; then
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9207 $as_echo "$WINDRES" >&6; }
9208 else
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9210 $as_echo "no" >&6; }
9211 fi
9212
9213
9214 fi
9215 test -n "$ac_cv_prog_WINDRES" && break
9216 done
9217
9218 if test -z "$ac_cv_prog_WINDRES" ; then
9219 set dummy windres
9220 if test $build = $host ; then
9221 WINDRES="$2"
9222 else
9223 WINDRES="${ncn_tool_prefix}$2"
9224 fi
9225 fi
9226
9227
9228
9229 if test -n "$WINDMC"; then
9230 ac_cv_prog_WINDMC=$WINDMC
9231 elif test -n "$ac_cv_prog_WINDMC"; then
9232 WINDMC=$ac_cv_prog_WINDMC
9233 fi
9234
9235 if test -n "$ac_cv_prog_WINDMC"; then
9236 for ncn_progname in windmc; do
9237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9238 set dummy ${ncn_progname}; ac_word=$2
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9240 $as_echo_n "checking for $ac_word... " >&6; }
9241 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 if test -n "$WINDMC"; then
9245 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9246 else
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 for as_dir in $PATH
9249 do
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254 ac_cv_prog_WINDMC="${ncn_progname}"
9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9257 fi
9258 done
9259 done
9260 IFS=$as_save_IFS
9261
9262 fi
9263 fi
9264 WINDMC=$ac_cv_prog_WINDMC
9265 if test -n "$WINDMC"; then
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9267 $as_echo "$WINDMC" >&6; }
9268 else
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9271 fi
9272
9273
9274 done
9275 fi
9276
9277 for ncn_progname in windmc; do
9278 if test -n "$ncn_tool_prefix"; then
9279 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9280 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 $as_echo_n "checking for $ac_word... " >&6; }
9283 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 if test -n "$WINDMC"; then
9287 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9288 else
9289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290 for as_dir in $PATH
9291 do
9292 IFS=$as_save_IFS
9293 test -z "$as_dir" && as_dir=.
9294 for ac_exec_ext in '' $ac_executable_extensions; do
9295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9296 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9298 break 2
9299 fi
9300 done
9301 done
9302 IFS=$as_save_IFS
9303
9304 fi
9305 fi
9306 WINDMC=$ac_cv_prog_WINDMC
9307 if test -n "$WINDMC"; then
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9309 $as_echo "$WINDMC" >&6; }
9310 else
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312 $as_echo "no" >&6; }
9313 fi
9314
9315
9316 fi
9317 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9319 set dummy ${ncn_progname}; ac_word=$2
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 $as_echo_n "checking for $ac_word... " >&6; }
9322 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 if test -n "$WINDMC"; then
9326 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9327 else
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329 for as_dir in $PATH
9330 do
9331 IFS=$as_save_IFS
9332 test -z "$as_dir" && as_dir=.
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9335 ac_cv_prog_WINDMC="${ncn_progname}"
9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9337 break 2
9338 fi
9339 done
9340 done
9341 IFS=$as_save_IFS
9342
9343 fi
9344 fi
9345 WINDMC=$ac_cv_prog_WINDMC
9346 if test -n "$WINDMC"; then
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9348 $as_echo "$WINDMC" >&6; }
9349 else
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351 $as_echo "no" >&6; }
9352 fi
9353
9354
9355 fi
9356 test -n "$ac_cv_prog_WINDMC" && break
9357 done
9358
9359 if test -z "$ac_cv_prog_WINDMC" ; then
9360 set dummy windmc
9361 if test $build = $host ; then
9362 WINDMC="$2"
9363 else
9364 WINDMC="${ncn_tool_prefix}$2"
9365 fi
9366 fi
9367
9368
9369
9370 if test -n "$OBJCOPY"; then
9371 ac_cv_prog_OBJCOPY=$OBJCOPY
9372 elif test -n "$ac_cv_prog_OBJCOPY"; then
9373 OBJCOPY=$ac_cv_prog_OBJCOPY
9374 fi
9375
9376 if test -n "$ac_cv_prog_OBJCOPY"; then
9377 for ncn_progname in objcopy; do
9378 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9379 set dummy ${ncn_progname}; ac_word=$2
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 $as_echo_n "checking for $ac_word... " >&6; }
9382 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9383 $as_echo_n "(cached) " >&6
9384 else
9385 if test -n "$OBJCOPY"; then
9386 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9387 else
9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 for as_dir in $PATH
9390 do
9391 IFS=$as_save_IFS
9392 test -z "$as_dir" && as_dir=.
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9395 ac_cv_prog_OBJCOPY="${ncn_progname}"
9396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 break 2
9398 fi
9399 done
9400 done
9401 IFS=$as_save_IFS
9402
9403 fi
9404 fi
9405 OBJCOPY=$ac_cv_prog_OBJCOPY
9406 if test -n "$OBJCOPY"; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9408 $as_echo "$OBJCOPY" >&6; }
9409 else
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411 $as_echo "no" >&6; }
9412 fi
9413
9414
9415 done
9416 fi
9417
9418 for ncn_progname in objcopy; do
9419 if test -n "$ncn_tool_prefix"; then
9420 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9421 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423 $as_echo_n "checking for $ac_word... " >&6; }
9424 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
9426 else
9427 if test -n "$OBJCOPY"; then
9428 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9429 else
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9432 do
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9440 fi
9441 done
9442 done
9443 IFS=$as_save_IFS
9444
9445 fi
9446 fi
9447 OBJCOPY=$ac_cv_prog_OBJCOPY
9448 if test -n "$OBJCOPY"; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9450 $as_echo "$OBJCOPY" >&6; }
9451 else
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9454 fi
9455
9456
9457 fi
9458 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9460 set dummy ${ncn_progname}; ac_word=$2
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462 $as_echo_n "checking for $ac_word... " >&6; }
9463 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 if test -n "$OBJCOPY"; then
9467 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9468 else
9469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470 for as_dir in $PATH
9471 do
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
9474 for ac_exec_ext in '' $ac_executable_extensions; do
9475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9476 ac_cv_prog_OBJCOPY="${ncn_progname}"
9477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 break 2
9479 fi
9480 done
9481 done
9482 IFS=$as_save_IFS
9483
9484 fi
9485 fi
9486 OBJCOPY=$ac_cv_prog_OBJCOPY
9487 if test -n "$OBJCOPY"; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9489 $as_echo "$OBJCOPY" >&6; }
9490 else
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9492 $as_echo "no" >&6; }
9493 fi
9494
9495
9496 fi
9497 test -n "$ac_cv_prog_OBJCOPY" && break
9498 done
9499
9500 if test -z "$ac_cv_prog_OBJCOPY" ; then
9501 set dummy objcopy
9502 if test $build = $host ; then
9503 OBJCOPY="$2"
9504 else
9505 OBJCOPY="${ncn_tool_prefix}$2"
9506 fi
9507 fi
9508
9509
9510
9511 if test -n "$OBJDUMP"; then
9512 ac_cv_prog_OBJDUMP=$OBJDUMP
9513 elif test -n "$ac_cv_prog_OBJDUMP"; then
9514 OBJDUMP=$ac_cv_prog_OBJDUMP
9515 fi
9516
9517 if test -n "$ac_cv_prog_OBJDUMP"; then
9518 for ncn_progname in objdump; do
9519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9520 set dummy ${ncn_progname}; ac_word=$2
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9522 $as_echo_n "checking for $ac_word... " >&6; }
9523 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 if test -n "$OBJDUMP"; then
9527 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9528 else
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $PATH
9531 do
9532 IFS=$as_save_IFS
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9536 ac_cv_prog_OBJDUMP="${ncn_progname}"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538 break 2
9539 fi
9540 done
9541 done
9542 IFS=$as_save_IFS
9543
9544 fi
9545 fi
9546 OBJDUMP=$ac_cv_prog_OBJDUMP
9547 if test -n "$OBJDUMP"; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9549 $as_echo "$OBJDUMP" >&6; }
9550 else
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9553 fi
9554
9555
9556 done
9557 fi
9558
9559 for ncn_progname in objdump; do
9560 if test -n "$ncn_tool_prefix"; then
9561 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9562 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 if test -n "$OBJDUMP"; then
9569 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9570 else
9571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572 for as_dir in $PATH
9573 do
9574 IFS=$as_save_IFS
9575 test -z "$as_dir" && as_dir=.
9576 for ac_exec_ext in '' $ac_executable_extensions; do
9577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9578 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9580 break 2
9581 fi
9582 done
9583 done
9584 IFS=$as_save_IFS
9585
9586 fi
9587 fi
9588 OBJDUMP=$ac_cv_prog_OBJDUMP
9589 if test -n "$OBJDUMP"; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9591 $as_echo "$OBJDUMP" >&6; }
9592 else
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9595 fi
9596
9597
9598 fi
9599 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9601 set dummy ${ncn_progname}; ac_word=$2
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603 $as_echo_n "checking for $ac_word... " >&6; }
9604 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 if test -n "$OBJDUMP"; then
9608 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9609 else
9610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611 for as_dir in $PATH
9612 do
9613 IFS=$as_save_IFS
9614 test -z "$as_dir" && as_dir=.
9615 for ac_exec_ext in '' $ac_executable_extensions; do
9616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9617 ac_cv_prog_OBJDUMP="${ncn_progname}"
9618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 break 2
9620 fi
9621 done
9622 done
9623 IFS=$as_save_IFS
9624
9625 fi
9626 fi
9627 OBJDUMP=$ac_cv_prog_OBJDUMP
9628 if test -n "$OBJDUMP"; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9630 $as_echo "$OBJDUMP" >&6; }
9631 else
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9634 fi
9635
9636
9637 fi
9638 test -n "$ac_cv_prog_OBJDUMP" && break
9639 done
9640
9641 if test -z "$ac_cv_prog_OBJDUMP" ; then
9642 set dummy objdump
9643 if test $build = $host ; then
9644 OBJDUMP="$2"
9645 else
9646 OBJDUMP="${ncn_tool_prefix}$2"
9647 fi
9648 fi
9649
9650
9651
9652 if test -n "$READELF"; then
9653 ac_cv_prog_READELF=$READELF
9654 elif test -n "$ac_cv_prog_READELF"; then
9655 READELF=$ac_cv_prog_READELF
9656 fi
9657
9658 if test -n "$ac_cv_prog_READELF"; then
9659 for ncn_progname in readelf; do
9660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9661 set dummy ${ncn_progname}; ac_word=$2
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663 $as_echo_n "checking for $ac_word... " >&6; }
9664 if test "${ac_cv_prog_READELF+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666 else
9667 if test -n "$READELF"; then
9668 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9669 else
9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671 for as_dir in $PATH
9672 do
9673 IFS=$as_save_IFS
9674 test -z "$as_dir" && as_dir=.
9675 for ac_exec_ext in '' $ac_executable_extensions; do
9676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9677 ac_cv_prog_READELF="${ncn_progname}"
9678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 break 2
9680 fi
9681 done
9682 done
9683 IFS=$as_save_IFS
9684
9685 fi
9686 fi
9687 READELF=$ac_cv_prog_READELF
9688 if test -n "$READELF"; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9690 $as_echo "$READELF" >&6; }
9691 else
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693 $as_echo "no" >&6; }
9694 fi
9695
9696
9697 done
9698 fi
9699
9700 for ncn_progname in readelf; do
9701 if test -n "$ncn_tool_prefix"; then
9702 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9703 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if test "${ac_cv_prog_READELF+set}" = set; then :
9707 $as_echo_n "(cached) " >&6
9708 else
9709 if test -n "$READELF"; then
9710 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9711 else
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 for as_dir in $PATH
9714 do
9715 IFS=$as_save_IFS
9716 test -z "$as_dir" && as_dir=.
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9719 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721 break 2
9722 fi
9723 done
9724 done
9725 IFS=$as_save_IFS
9726
9727 fi
9728 fi
9729 READELF=$ac_cv_prog_READELF
9730 if test -n "$READELF"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9732 $as_echo "$READELF" >&6; }
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9736 fi
9737
9738
9739 fi
9740 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9742 set dummy ${ncn_progname}; ac_word=$2
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9744 $as_echo_n "checking for $ac_word... " >&6; }
9745 if test "${ac_cv_prog_READELF+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 if test -n "$READELF"; then
9749 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9750 else
9751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 for as_dir in $PATH
9753 do
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9758 ac_cv_prog_READELF="${ncn_progname}"
9759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 break 2
9761 fi
9762 done
9763 done
9764 IFS=$as_save_IFS
9765
9766 fi
9767 fi
9768 READELF=$ac_cv_prog_READELF
9769 if test -n "$READELF"; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9771 $as_echo "$READELF" >&6; }
9772 else
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774 $as_echo "no" >&6; }
9775 fi
9776
9777
9778 fi
9779 test -n "$ac_cv_prog_READELF" && break
9780 done
9781
9782 if test -z "$ac_cv_prog_READELF" ; then
9783 set dummy readelf
9784 if test $build = $host ; then
9785 READELF="$2"
9786 else
9787 READELF="${ncn_tool_prefix}$2"
9788 fi
9789 fi
9790
9791
9792
9793
9794
9795
9796 # Target tools.
9797
9798 # Check whether --with-build-time-tools was given.
9799 if test "${with_build_time_tools+set}" = set; then :
9800 withval=$with_build_time_tools; case x"$withval" in
9801 x/*) ;;
9802 *)
9803 with_build_time_tools=
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9805 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9806 ;;
9807 esac
9808 else
9809 with_build_time_tools=
9810 fi
9811
9812
9813
9814
9815 if test -n "$CC_FOR_TARGET"; then
9816 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9817 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9818 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9819 fi
9820
9821 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9822 for ncn_progname in cc gcc; do
9823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9824 set dummy ${ncn_progname}; ac_word=$2
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826 $as_echo_n "checking for $ac_word... " >&6; }
9827 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9828 $as_echo_n "(cached) " >&6
9829 else
9830 if test -n "$CC_FOR_TARGET"; then
9831 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9832 else
9833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9834 for as_dir in $PATH
9835 do
9836 IFS=$as_save_IFS
9837 test -z "$as_dir" && as_dir=.
9838 for ac_exec_ext in '' $ac_executable_extensions; do
9839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9840 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9842 break 2
9843 fi
9844 done
9845 done
9846 IFS=$as_save_IFS
9847
9848 fi
9849 fi
9850 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9851 if test -n "$CC_FOR_TARGET"; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9853 $as_echo "$CC_FOR_TARGET" >&6; }
9854 else
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; }
9857 fi
9858
9859
9860 done
9861 fi
9862
9863 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9864 for ncn_progname in cc gcc; do
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9866 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9867 if test -x $with_build_time_tools/${ncn_progname}; then
9868 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9870 $as_echo "yes" >&6; }
9871 break
9872 else
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9874 $as_echo "no" >&6; }
9875 fi
9876 done
9877 fi
9878
9879 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9880 for ncn_progname in cc gcc; do
9881 if test -n "$ncn_target_tool_prefix"; then
9882 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9883 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9888 else
9889 if test -n "$CC_FOR_TARGET"; then
9890 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9891 else
9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 for as_dir in $PATH
9894 do
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
9897 for ac_exec_ext in '' $ac_executable_extensions; do
9898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9899 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9901 break 2
9902 fi
9903 done
9904 done
9905 IFS=$as_save_IFS
9906
9907 fi
9908 fi
9909 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9910 if test -n "$CC_FOR_TARGET"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9912 $as_echo "$CC_FOR_TARGET" >&6; }
9913 else
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9916 fi
9917
9918
9919 fi
9920 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9922 set dummy ${ncn_progname}; ac_word=$2
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9924 $as_echo_n "checking for $ac_word... " >&6; }
9925 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9926 $as_echo_n "(cached) " >&6
9927 else
9928 if test -n "$CC_FOR_TARGET"; then
9929 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9930 else
9931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932 for as_dir in $PATH
9933 do
9934 IFS=$as_save_IFS
9935 test -z "$as_dir" && as_dir=.
9936 for ac_exec_ext in '' $ac_executable_extensions; do
9937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9938 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 break 2
9941 fi
9942 done
9943 done
9944 IFS=$as_save_IFS
9945
9946 fi
9947 fi
9948 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9949 if test -n "$CC_FOR_TARGET"; then
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9951 $as_echo "$CC_FOR_TARGET" >&6; }
9952 else
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9954 $as_echo "no" >&6; }
9955 fi
9956
9957
9958 fi
9959 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9960 done
9961 fi
9962
9963 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9964 set dummy cc gcc
9965 if test $build = $target ; then
9966 CC_FOR_TARGET="$2"
9967 else
9968 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9969 fi
9970 else
9971 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9972 fi
9973
9974
9975
9976 if test -n "$CXX_FOR_TARGET"; then
9977 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9978 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9979 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9980 fi
9981
9982 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9983 for ncn_progname in c++ g++ cxx gxx; do
9984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9985 set dummy ${ncn_progname}; ac_word=$2
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9987 $as_echo_n "checking for $ac_word... " >&6; }
9988 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 if test -n "$CXX_FOR_TARGET"; then
9992 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9993 else
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9996 do
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10001 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10004 fi
10005 done
10006 done
10007 IFS=$as_save_IFS
10008
10009 fi
10010 fi
10011 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10012 if test -n "$CXX_FOR_TARGET"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10014 $as_echo "$CXX_FOR_TARGET" >&6; }
10015 else
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10018 fi
10019
10020
10021 done
10022 fi
10023
10024 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10025 for ncn_progname in c++ g++ cxx gxx; do
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10027 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10028 if test -x $with_build_time_tools/${ncn_progname}; then
10029 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10031 $as_echo "yes" >&6; }
10032 break
10033 else
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035 $as_echo "no" >&6; }
10036 fi
10037 done
10038 fi
10039
10040 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10041 for ncn_progname in c++ g++ cxx gxx; do
10042 if test -n "$ncn_target_tool_prefix"; then
10043 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10044 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 if test -n "$CXX_FOR_TARGET"; then
10051 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10052 else
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10055 do
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10060 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10063 fi
10064 done
10065 done
10066 IFS=$as_save_IFS
10067
10068 fi
10069 fi
10070 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10071 if test -n "$CXX_FOR_TARGET"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10073 $as_echo "$CXX_FOR_TARGET" >&6; }
10074 else
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10077 fi
10078
10079
10080 fi
10081 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10083 set dummy ${ncn_progname}; ac_word=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 if test -n "$CXX_FOR_TARGET"; then
10090 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10091 else
10092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093 for as_dir in $PATH
10094 do
10095 IFS=$as_save_IFS
10096 test -z "$as_dir" && as_dir=.
10097 for ac_exec_ext in '' $ac_executable_extensions; do
10098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10099 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10101 break 2
10102 fi
10103 done
10104 done
10105 IFS=$as_save_IFS
10106
10107 fi
10108 fi
10109 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10110 if test -n "$CXX_FOR_TARGET"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10112 $as_echo "$CXX_FOR_TARGET" >&6; }
10113 else
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10116 fi
10117
10118
10119 fi
10120 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10121 done
10122 fi
10123
10124 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10125 set dummy c++ g++ cxx gxx
10126 if test $build = $target ; then
10127 CXX_FOR_TARGET="$2"
10128 else
10129 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10130 fi
10131 else
10132 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10133 fi
10134
10135
10136
10137 if test -n "$GCC_FOR_TARGET"; then
10138 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10139 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10140 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10141 fi
10142
10143 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10144 for ncn_progname in gcc; do
10145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10146 set dummy ${ncn_progname}; ac_word=$2
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10148 $as_echo_n "checking for $ac_word... " >&6; }
10149 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10150 $as_echo_n "(cached) " >&6
10151 else
10152 if test -n "$GCC_FOR_TARGET"; then
10153 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10154 else
10155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156 for as_dir in $PATH
10157 do
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10162 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10165 fi
10166 done
10167 done
10168 IFS=$as_save_IFS
10169
10170 fi
10171 fi
10172 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10173 if test -n "$GCC_FOR_TARGET"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10175 $as_echo "$GCC_FOR_TARGET" >&6; }
10176 else
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10179 fi
10180
10181
10182 done
10183 fi
10184
10185 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10186 for ncn_progname in gcc; do
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10188 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10189 if test -x $with_build_time_tools/${ncn_progname}; then
10190 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10192 $as_echo "yes" >&6; }
10193 break
10194 else
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196 $as_echo "no" >&6; }
10197 fi
10198 done
10199 fi
10200
10201 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10202 for ncn_progname in gcc; do
10203 if test -n "$ncn_target_tool_prefix"; then
10204 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10205 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207 $as_echo_n "checking for $ac_word... " >&6; }
10208 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 if test -n "$GCC_FOR_TARGET"; then
10212 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10213 else
10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215 for as_dir in $PATH
10216 do
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10221 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10223 break 2
10224 fi
10225 done
10226 done
10227 IFS=$as_save_IFS
10228
10229 fi
10230 fi
10231 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10232 if test -n "$GCC_FOR_TARGET"; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10234 $as_echo "$GCC_FOR_TARGET" >&6; }
10235 else
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237 $as_echo "no" >&6; }
10238 fi
10239
10240
10241 fi
10242 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10244 set dummy ${ncn_progname}; ac_word=$2
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10246 $as_echo_n "checking for $ac_word... " >&6; }
10247 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 if test -n "$GCC_FOR_TARGET"; then
10251 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10252 else
10253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10254 for as_dir in $PATH
10255 do
10256 IFS=$as_save_IFS
10257 test -z "$as_dir" && as_dir=.
10258 for ac_exec_ext in '' $ac_executable_extensions; do
10259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10260 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10262 break 2
10263 fi
10264 done
10265 done
10266 IFS=$as_save_IFS
10267
10268 fi
10269 fi
10270 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10271 if test -n "$GCC_FOR_TARGET"; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10273 $as_echo "$GCC_FOR_TARGET" >&6; }
10274 else
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276 $as_echo "no" >&6; }
10277 fi
10278
10279
10280 fi
10281 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10282 done
10283 fi
10284
10285 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10286 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10287 else
10288 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10289 fi
10290
10291
10292
10293 if test -n "$GCJ_FOR_TARGET"; then
10294 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10295 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10296 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10297 fi
10298
10299 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10300 for ncn_progname in gcj; do
10301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10302 set dummy ${ncn_progname}; ac_word=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 $as_echo_n "checking for $ac_word... " >&6; }
10305 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10306 $as_echo_n "(cached) " >&6
10307 else
10308 if test -n "$GCJ_FOR_TARGET"; then
10309 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10310 else
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10313 do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10318 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10320 break 2
10321 fi
10322 done
10323 done
10324 IFS=$as_save_IFS
10325
10326 fi
10327 fi
10328 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10329 if test -n "$GCJ_FOR_TARGET"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10331 $as_echo "$GCJ_FOR_TARGET" >&6; }
10332 else
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10335 fi
10336
10337
10338 done
10339 fi
10340
10341 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10342 for ncn_progname in gcj; do
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10344 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10345 if test -x $with_build_time_tools/${ncn_progname}; then
10346 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10348 $as_echo "yes" >&6; }
10349 break
10350 else
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10353 fi
10354 done
10355 fi
10356
10357 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10358 for ncn_progname in gcj; do
10359 if test -n "$ncn_target_tool_prefix"; then
10360 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10361 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10365 $as_echo_n "(cached) " >&6
10366 else
10367 if test -n "$GCJ_FOR_TARGET"; then
10368 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10369 else
10370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10372 do
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10377 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 break 2
10380 fi
10381 done
10382 done
10383 IFS=$as_save_IFS
10384
10385 fi
10386 fi
10387 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10388 if test -n "$GCJ_FOR_TARGET"; then
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10390 $as_echo "$GCJ_FOR_TARGET" >&6; }
10391 else
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10394 fi
10395
10396
10397 fi
10398 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10400 set dummy ${ncn_progname}; ac_word=$2
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10402 $as_echo_n "checking for $ac_word... " >&6; }
10403 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10404 $as_echo_n "(cached) " >&6
10405 else
10406 if test -n "$GCJ_FOR_TARGET"; then
10407 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10408 else
10409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410 for as_dir in $PATH
10411 do
10412 IFS=$as_save_IFS
10413 test -z "$as_dir" && as_dir=.
10414 for ac_exec_ext in '' $ac_executable_extensions; do
10415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10416 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10418 break 2
10419 fi
10420 done
10421 done
10422 IFS=$as_save_IFS
10423
10424 fi
10425 fi
10426 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10427 if test -n "$GCJ_FOR_TARGET"; then
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10429 $as_echo "$GCJ_FOR_TARGET" >&6; }
10430 else
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432 $as_echo "no" >&6; }
10433 fi
10434
10435
10436 fi
10437 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10438 done
10439 fi
10440
10441 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10442 set dummy gcj
10443 if test $build = $target ; then
10444 GCJ_FOR_TARGET="$2"
10445 else
10446 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10447 fi
10448 else
10449 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10450 fi
10451
10452
10453
10454 if test -n "$GFORTRAN_FOR_TARGET"; then
10455 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10456 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10457 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10458 fi
10459
10460 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10461 for ncn_progname in gfortran; do
10462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10463 set dummy ${ncn_progname}; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 if test -n "$GFORTRAN_FOR_TARGET"; then
10470 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10471 else
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10474 do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 break 2
10482 fi
10483 done
10484 done
10485 IFS=$as_save_IFS
10486
10487 fi
10488 fi
10489 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10490 if test -n "$GFORTRAN_FOR_TARGET"; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10492 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10493 else
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10496 fi
10497
10498
10499 done
10500 fi
10501
10502 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10503 for ncn_progname in gfortran; do
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10505 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10506 if test -x $with_build_time_tools/${ncn_progname}; then
10507 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10509 $as_echo "yes" >&6; }
10510 break
10511 else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10514 fi
10515 done
10516 fi
10517
10518 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10519 for ncn_progname in gfortran; do
10520 if test -n "$ncn_target_tool_prefix"; then
10521 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10522 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 if test -n "$GFORTRAN_FOR_TARGET"; then
10529 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10530 else
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10533 do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10538 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10541 fi
10542 done
10543 done
10544 IFS=$as_save_IFS
10545
10546 fi
10547 fi
10548 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10549 if test -n "$GFORTRAN_FOR_TARGET"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10551 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10552 else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10555 fi
10556
10557
10558 fi
10559 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10561 set dummy ${ncn_progname}; ac_word=$2
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563 $as_echo_n "checking for $ac_word... " >&6; }
10564 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 if test -n "$GFORTRAN_FOR_TARGET"; then
10568 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10569 else
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10572 do
10573 IFS=$as_save_IFS
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10577 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10579 break 2
10580 fi
10581 done
10582 done
10583 IFS=$as_save_IFS
10584
10585 fi
10586 fi
10587 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10588 if test -n "$GFORTRAN_FOR_TARGET"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10590 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10591 else
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10594 fi
10595
10596
10597 fi
10598 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10599 done
10600 fi
10601
10602 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10603 set dummy gfortran
10604 if test $build = $target ; then
10605 GFORTRAN_FOR_TARGET="$2"
10606 else
10607 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10608 fi
10609 else
10610 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10611 fi
10612
10613
10614
10615 if test -n "$GOC_FOR_TARGET"; then
10616 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10617 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10618 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10619 fi
10620
10621 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10622 for ncn_progname in gccgo; do
10623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10624 set dummy ${ncn_progname}; ac_word=$2
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626 $as_echo_n "checking for $ac_word... " >&6; }
10627 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10628 $as_echo_n "(cached) " >&6
10629 else
10630 if test -n "$GOC_FOR_TARGET"; then
10631 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10632 else
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10635 do
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10640 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10643 fi
10644 done
10645 done
10646 IFS=$as_save_IFS
10647
10648 fi
10649 fi
10650 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10651 if test -n "$GOC_FOR_TARGET"; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10653 $as_echo "$GOC_FOR_TARGET" >&6; }
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10657 fi
10658
10659
10660 done
10661 fi
10662
10663 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10664 for ncn_progname in gccgo; do
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10666 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10667 if test -x $with_build_time_tools/${ncn_progname}; then
10668 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10670 $as_echo "yes" >&6; }
10671 break
10672 else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674 $as_echo "no" >&6; }
10675 fi
10676 done
10677 fi
10678
10679 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10680 for ncn_progname in gccgo; do
10681 if test -n "$ncn_target_tool_prefix"; then
10682 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10683 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10685 $as_echo_n "checking for $ac_word... " >&6; }
10686 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 if test -n "$GOC_FOR_TARGET"; then
10690 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10691 else
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $PATH
10694 do
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10699 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701 break 2
10702 fi
10703 done
10704 done
10705 IFS=$as_save_IFS
10706
10707 fi
10708 fi
10709 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10710 if test -n "$GOC_FOR_TARGET"; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10712 $as_echo "$GOC_FOR_TARGET" >&6; }
10713 else
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715 $as_echo "no" >&6; }
10716 fi
10717
10718
10719 fi
10720 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10722 set dummy ${ncn_progname}; ac_word=$2
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10724 $as_echo_n "checking for $ac_word... " >&6; }
10725 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10726 $as_echo_n "(cached) " >&6
10727 else
10728 if test -n "$GOC_FOR_TARGET"; then
10729 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10730 else
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH
10733 do
10734 IFS=$as_save_IFS
10735 test -z "$as_dir" && as_dir=.
10736 for ac_exec_ext in '' $ac_executable_extensions; do
10737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10738 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10740 break 2
10741 fi
10742 done
10743 done
10744 IFS=$as_save_IFS
10745
10746 fi
10747 fi
10748 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10749 if test -n "$GOC_FOR_TARGET"; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10751 $as_echo "$GOC_FOR_TARGET" >&6; }
10752 else
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10754 $as_echo "no" >&6; }
10755 fi
10756
10757
10758 fi
10759 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10760 done
10761 fi
10762
10763 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10764 set dummy gccgo
10765 if test $build = $target ; then
10766 GOC_FOR_TARGET="$2"
10767 else
10768 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10769 fi
10770 else
10771 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10772 fi
10773
10774
10775
10776 cat > conftest.c << \EOF
10777 #ifdef __GNUC__
10778 gcc_yay;
10779 #endif
10780 EOF
10781 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10782 have_gcc_for_target=yes
10783 else
10784 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10785 have_gcc_for_target=no
10786 fi
10787 rm conftest.c
10788
10789
10790
10791
10792 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10793 if test -n "$with_build_time_tools"; then
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10795 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10796 if test -x $with_build_time_tools/ar; then
10797 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10798 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10800 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10801 else
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10803 $as_echo "no" >&6; }
10804 fi
10805 elif test $build != $host && test $have_gcc_for_target = yes; then
10806 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10807 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10808 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10809 fi
10810 fi
10811 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10812 # Extract the first word of "ar", so it can be a program name with args.
10813 set dummy ar; ac_word=$2
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10815 $as_echo_n "checking for $ac_word... " >&6; }
10816 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10817 $as_echo_n "(cached) " >&6
10818 else
10819 case $AR_FOR_TARGET in
10820 [\\/]* | ?:[\\/]*)
10821 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10822 ;;
10823 *)
10824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825 for as_dir in $gcc_cv_tool_dirs
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10831 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
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 ;;
10840 esac
10841 fi
10842 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10843 if test -n "$AR_FOR_TARGET"; then
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10845 $as_echo "$AR_FOR_TARGET" >&6; }
10846 else
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848 $as_echo "no" >&6; }
10849 fi
10850
10851
10852 fi
10853 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10854
10855
10856 if test -n "$AR_FOR_TARGET"; then
10857 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10858 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10859 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10860 fi
10861
10862 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10863 for ncn_progname in ar; do
10864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10865 set dummy ${ncn_progname}; ac_word=$2
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10867 $as_echo_n "checking for $ac_word... " >&6; }
10868 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10869 $as_echo_n "(cached) " >&6
10870 else
10871 if test -n "$AR_FOR_TARGET"; then
10872 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10873 else
10874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875 for as_dir in $PATH
10876 do
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10881 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 break 2
10884 fi
10885 done
10886 done
10887 IFS=$as_save_IFS
10888
10889 fi
10890 fi
10891 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10892 if test -n "$AR_FOR_TARGET"; then
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10894 $as_echo "$AR_FOR_TARGET" >&6; }
10895 else
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10897 $as_echo "no" >&6; }
10898 fi
10899
10900
10901 done
10902 fi
10903
10904 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10905 for ncn_progname in ar; do
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10907 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10908 if test -x $with_build_time_tools/${ncn_progname}; then
10909 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10911 $as_echo "yes" >&6; }
10912 break
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10916 fi
10917 done
10918 fi
10919
10920 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10921 for ncn_progname in ar; do
10922 if test -n "$ncn_target_tool_prefix"; then
10923 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10924 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10926 $as_echo_n "checking for $ac_word... " >&6; }
10927 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10928 $as_echo_n "(cached) " >&6
10929 else
10930 if test -n "$AR_FOR_TARGET"; then
10931 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10932 else
10933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10934 for as_dir in $PATH
10935 do
10936 IFS=$as_save_IFS
10937 test -z "$as_dir" && as_dir=.
10938 for ac_exec_ext in '' $ac_executable_extensions; do
10939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10940 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10942 break 2
10943 fi
10944 done
10945 done
10946 IFS=$as_save_IFS
10947
10948 fi
10949 fi
10950 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10951 if test -n "$AR_FOR_TARGET"; then
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10953 $as_echo "$AR_FOR_TARGET" >&6; }
10954 else
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956 $as_echo "no" >&6; }
10957 fi
10958
10959
10960 fi
10961 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10963 set dummy ${ncn_progname}; ac_word=$2
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965 $as_echo_n "checking for $ac_word... " >&6; }
10966 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
10968 else
10969 if test -n "$AR_FOR_TARGET"; then
10970 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10971 else
10972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in $PATH
10974 do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10979 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10981 break 2
10982 fi
10983 done
10984 done
10985 IFS=$as_save_IFS
10986
10987 fi
10988 fi
10989 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10990 if test -n "$AR_FOR_TARGET"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10992 $as_echo "$AR_FOR_TARGET" >&6; }
10993 else
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10996 fi
10997
10998
10999 fi
11000 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11001 done
11002 fi
11003
11004 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11005 set dummy ar
11006 if test $build = $target ; then
11007 AR_FOR_TARGET="$2"
11008 else
11009 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11010 fi
11011 else
11012 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11013 fi
11014
11015 else
11016 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11017 fi
11018
11019
11020
11021
11022 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11023 if test -n "$with_build_time_tools"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11025 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11026 if test -x $with_build_time_tools/as; then
11027 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11028 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11030 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11031 else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11034 fi
11035 elif test $build != $host && test $have_gcc_for_target = yes; then
11036 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11037 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11038 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11039 fi
11040 fi
11041 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11042 # Extract the first word of "as", so it can be a program name with args.
11043 set dummy as; ac_word=$2
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045 $as_echo_n "checking for $ac_word... " >&6; }
11046 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11047 $as_echo_n "(cached) " >&6
11048 else
11049 case $AS_FOR_TARGET in
11050 [\\/]* | ?:[\\/]*)
11051 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11052 ;;
11053 *)
11054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055 for as_dir in $gcc_cv_tool_dirs
11056 do
11057 IFS=$as_save_IFS
11058 test -z "$as_dir" && as_dir=.
11059 for ac_exec_ext in '' $ac_executable_extensions; do
11060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11061 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11063 break 2
11064 fi
11065 done
11066 done
11067 IFS=$as_save_IFS
11068
11069 ;;
11070 esac
11071 fi
11072 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11073 if test -n "$AS_FOR_TARGET"; then
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11075 $as_echo "$AS_FOR_TARGET" >&6; }
11076 else
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11078 $as_echo "no" >&6; }
11079 fi
11080
11081
11082 fi
11083 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11084
11085
11086 if test -n "$AS_FOR_TARGET"; then
11087 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11088 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11089 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11090 fi
11091
11092 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11093 for ncn_progname in as; do
11094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11095 set dummy ${ncn_progname}; ac_word=$2
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097 $as_echo_n "checking for $ac_word... " >&6; }
11098 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 if test -n "$AS_FOR_TARGET"; then
11102 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11103 else
11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11106 do
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
11110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11111 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 break 2
11114 fi
11115 done
11116 done
11117 IFS=$as_save_IFS
11118
11119 fi
11120 fi
11121 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11122 if test -n "$AS_FOR_TARGET"; then
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11124 $as_echo "$AS_FOR_TARGET" >&6; }
11125 else
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127 $as_echo "no" >&6; }
11128 fi
11129
11130
11131 done
11132 fi
11133
11134 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11135 for ncn_progname in as; do
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11137 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11138 if test -x $with_build_time_tools/${ncn_progname}; then
11139 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11141 $as_echo "yes" >&6; }
11142 break
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11146 fi
11147 done
11148 fi
11149
11150 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11151 for ncn_progname in as; do
11152 if test -n "$ncn_target_tool_prefix"; then
11153 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11154 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156 $as_echo_n "checking for $ac_word... " >&6; }
11157 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 if test -n "$AS_FOR_TARGET"; then
11161 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11162 else
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11165 do
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11173 fi
11174 done
11175 done
11176 IFS=$as_save_IFS
11177
11178 fi
11179 fi
11180 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11181 if test -n "$AS_FOR_TARGET"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11183 $as_echo "$AS_FOR_TARGET" >&6; }
11184 else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11187 fi
11188
11189
11190 fi
11191 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11193 set dummy ${ncn_progname}; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
11198 else
11199 if test -n "$AS_FOR_TARGET"; then
11200 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11201 else
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11204 do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11209 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 break 2
11212 fi
11213 done
11214 done
11215 IFS=$as_save_IFS
11216
11217 fi
11218 fi
11219 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11220 if test -n "$AS_FOR_TARGET"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11222 $as_echo "$AS_FOR_TARGET" >&6; }
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11226 fi
11227
11228
11229 fi
11230 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11231 done
11232 fi
11233
11234 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11235 set dummy as
11236 if test $build = $target ; then
11237 AS_FOR_TARGET="$2"
11238 else
11239 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11240 fi
11241 else
11242 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11243 fi
11244
11245 else
11246 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11247 fi
11248
11249
11250
11251
11252 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11253 if test -n "$with_build_time_tools"; then
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11255 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11256 if test -x $with_build_time_tools/dlltool; then
11257 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11258 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11260 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; }
11264 fi
11265 elif test $build != $host && test $have_gcc_for_target = yes; then
11266 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11267 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11268 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11269 fi
11270 fi
11271 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11272 # Extract the first word of "dlltool", so it can be a program name with args.
11273 set dummy dlltool; ac_word=$2
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275 $as_echo_n "checking for $ac_word... " >&6; }
11276 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 case $DLLTOOL_FOR_TARGET in
11280 [\\/]* | ?:[\\/]*)
11281 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11282 ;;
11283 *)
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $gcc_cv_tool_dirs
11286 do
11287 IFS=$as_save_IFS
11288 test -z "$as_dir" && as_dir=.
11289 for ac_exec_ext in '' $ac_executable_extensions; do
11290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11291 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11293 break 2
11294 fi
11295 done
11296 done
11297 IFS=$as_save_IFS
11298
11299 ;;
11300 esac
11301 fi
11302 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11303 if test -n "$DLLTOOL_FOR_TARGET"; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11305 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11306 else
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11308 $as_echo "no" >&6; }
11309 fi
11310
11311
11312 fi
11313 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11314
11315
11316 if test -n "$DLLTOOL_FOR_TARGET"; then
11317 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11318 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11319 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11320 fi
11321
11322 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11323 for ncn_progname in dlltool; do
11324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11325 set dummy ${ncn_progname}; ac_word=$2
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11327 $as_echo_n "checking for $ac_word... " >&6; }
11328 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11329 $as_echo_n "(cached) " >&6
11330 else
11331 if test -n "$DLLTOOL_FOR_TARGET"; then
11332 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11333 else
11334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335 for as_dir in $PATH
11336 do
11337 IFS=$as_save_IFS
11338 test -z "$as_dir" && as_dir=.
11339 for ac_exec_ext in '' $ac_executable_extensions; do
11340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11341 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11343 break 2
11344 fi
11345 done
11346 done
11347 IFS=$as_save_IFS
11348
11349 fi
11350 fi
11351 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11352 if test -n "$DLLTOOL_FOR_TARGET"; then
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11354 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11355 else
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11358 fi
11359
11360
11361 done
11362 fi
11363
11364 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11365 for ncn_progname in dlltool; do
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11367 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11368 if test -x $with_build_time_tools/${ncn_progname}; then
11369 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11371 $as_echo "yes" >&6; }
11372 break
11373 else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11376 fi
11377 done
11378 fi
11379
11380 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11381 for ncn_progname in dlltool; do
11382 if test -n "$ncn_target_tool_prefix"; then
11383 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11384 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11386 $as_echo_n "checking for $ac_word... " >&6; }
11387 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 if test -n "$DLLTOOL_FOR_TARGET"; then
11391 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11392 else
11393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394 for as_dir in $PATH
11395 do
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11400 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 break 2
11403 fi
11404 done
11405 done
11406 IFS=$as_save_IFS
11407
11408 fi
11409 fi
11410 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11411 if test -n "$DLLTOOL_FOR_TARGET"; then
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11413 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11414 else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 $as_echo "no" >&6; }
11417 fi
11418
11419
11420 fi
11421 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11423 set dummy ${ncn_progname}; ac_word=$2
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425 $as_echo_n "checking for $ac_word... " >&6; }
11426 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11429 if test -n "$DLLTOOL_FOR_TARGET"; then
11430 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11431 else
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11434 do
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11439 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11441 break 2
11442 fi
11443 done
11444 done
11445 IFS=$as_save_IFS
11446
11447 fi
11448 fi
11449 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11450 if test -n "$DLLTOOL_FOR_TARGET"; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11452 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; }
11456 fi
11457
11458
11459 fi
11460 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11461 done
11462 fi
11463
11464 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11465 set dummy dlltool
11466 if test $build = $target ; then
11467 DLLTOOL_FOR_TARGET="$2"
11468 else
11469 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11470 fi
11471 else
11472 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11473 fi
11474
11475 else
11476 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11477 fi
11478
11479
11480
11481
11482 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11483 if test -n "$with_build_time_tools"; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11485 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11486 if test -x $with_build_time_tools/ld; then
11487 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11488 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11490 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11491 else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 $as_echo "no" >&6; }
11494 fi
11495 elif test $build != $host && test $have_gcc_for_target = yes; then
11496 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11497 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11498 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11499 fi
11500 fi
11501 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11502 # Extract the first word of "ld", so it can be a program name with args.
11503 set dummy ld; ac_word=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
11508 else
11509 case $LD_FOR_TARGET in
11510 [\\/]* | ?:[\\/]*)
11511 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11512 ;;
11513 *)
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $gcc_cv_tool_dirs
11516 do
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11521 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 break 2
11524 fi
11525 done
11526 done
11527 IFS=$as_save_IFS
11528
11529 ;;
11530 esac
11531 fi
11532 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11533 if test -n "$LD_FOR_TARGET"; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11535 $as_echo "$LD_FOR_TARGET" >&6; }
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11538 $as_echo "no" >&6; }
11539 fi
11540
11541
11542 fi
11543 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11544
11545
11546 if test -n "$LD_FOR_TARGET"; then
11547 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11548 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11549 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11550 fi
11551
11552 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11553 for ncn_progname in ld; do
11554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11555 set dummy ${ncn_progname}; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 if test -n "$LD_FOR_TARGET"; then
11562 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11563 else
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11566 do
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11574 fi
11575 done
11576 done
11577 IFS=$as_save_IFS
11578
11579 fi
11580 fi
11581 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11582 if test -n "$LD_FOR_TARGET"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11584 $as_echo "$LD_FOR_TARGET" >&6; }
11585 else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11587 $as_echo "no" >&6; }
11588 fi
11589
11590
11591 done
11592 fi
11593
11594 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11595 for ncn_progname in ld; do
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11597 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11598 if test -x $with_build_time_tools/${ncn_progname}; then
11599 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11601 $as_echo "yes" >&6; }
11602 break
11603 else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11606 fi
11607 done
11608 fi
11609
11610 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11611 for ncn_progname in ld; do
11612 if test -n "$ncn_target_tool_prefix"; then
11613 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11614 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616 $as_echo_n "checking for $ac_word... " >&6; }
11617 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 if test -n "$LD_FOR_TARGET"; then
11621 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11622 else
11623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624 for as_dir in $PATH
11625 do
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 break 2
11633 fi
11634 done
11635 done
11636 IFS=$as_save_IFS
11637
11638 fi
11639 fi
11640 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11641 if test -n "$LD_FOR_TARGET"; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11643 $as_echo "$LD_FOR_TARGET" >&6; }
11644 else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646 $as_echo "no" >&6; }
11647 fi
11648
11649
11650 fi
11651 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11653 set dummy ${ncn_progname}; ac_word=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 if test -n "$LD_FOR_TARGET"; then
11660 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11661 else
11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663 for as_dir in $PATH
11664 do
11665 IFS=$as_save_IFS
11666 test -z "$as_dir" && as_dir=.
11667 for ac_exec_ext in '' $ac_executable_extensions; do
11668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11669 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11671 break 2
11672 fi
11673 done
11674 done
11675 IFS=$as_save_IFS
11676
11677 fi
11678 fi
11679 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11680 if test -n "$LD_FOR_TARGET"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11682 $as_echo "$LD_FOR_TARGET" >&6; }
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11686 fi
11687
11688
11689 fi
11690 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11691 done
11692 fi
11693
11694 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11695 set dummy ld
11696 if test $build = $target ; then
11697 LD_FOR_TARGET="$2"
11698 else
11699 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11700 fi
11701 else
11702 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11703 fi
11704
11705 else
11706 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11707 fi
11708
11709
11710
11711
11712 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11713 if test -n "$with_build_time_tools"; then
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11715 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11716 if test -x $with_build_time_tools/lipo; then
11717 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11718 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11720 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11724 fi
11725 elif test $build != $host && test $have_gcc_for_target = yes; then
11726 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11727 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11728 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11729 fi
11730 fi
11731 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11732 # Extract the first word of "lipo", so it can be a program name with args.
11733 set dummy lipo; ac_word=$2
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735 $as_echo_n "checking for $ac_word... " >&6; }
11736 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 case $LIPO_FOR_TARGET in
11740 [\\/]* | ?:[\\/]*)
11741 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11742 ;;
11743 *)
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 for as_dir in $gcc_cv_tool_dirs
11746 do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11751 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11754 fi
11755 done
11756 done
11757 IFS=$as_save_IFS
11758
11759 ;;
11760 esac
11761 fi
11762 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11763 if test -n "$LIPO_FOR_TARGET"; then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11765 $as_echo "$LIPO_FOR_TARGET" >&6; }
11766 else
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768 $as_echo "no" >&6; }
11769 fi
11770
11771
11772 fi
11773 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11774
11775
11776 if test -n "$LIPO_FOR_TARGET"; then
11777 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11778 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11779 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11780 fi
11781
11782 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11783 for ncn_progname in lipo; do
11784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11785 set dummy ${ncn_progname}; ac_word=$2
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787 $as_echo_n "checking for $ac_word... " >&6; }
11788 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11789 $as_echo_n "(cached) " >&6
11790 else
11791 if test -n "$LIPO_FOR_TARGET"; then
11792 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11793 else
11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11796 do
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11801 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 break 2
11804 fi
11805 done
11806 done
11807 IFS=$as_save_IFS
11808
11809 fi
11810 fi
11811 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11812 if test -n "$LIPO_FOR_TARGET"; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11814 $as_echo "$LIPO_FOR_TARGET" >&6; }
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11818 fi
11819
11820
11821 done
11822 fi
11823
11824 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11825 for ncn_progname in lipo; do
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11827 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11828 if test -x $with_build_time_tools/${ncn_progname}; then
11829 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11831 $as_echo "yes" >&6; }
11832 break
11833 else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11836 fi
11837 done
11838 fi
11839
11840 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11841 for ncn_progname in lipo; do
11842 if test -n "$ncn_target_tool_prefix"; then
11843 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11844 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11846 $as_echo_n "checking for $ac_word... " >&6; }
11847 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11848 $as_echo_n "(cached) " >&6
11849 else
11850 if test -n "$LIPO_FOR_TARGET"; then
11851 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11852 else
11853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854 for as_dir in $PATH
11855 do
11856 IFS=$as_save_IFS
11857 test -z "$as_dir" && as_dir=.
11858 for ac_exec_ext in '' $ac_executable_extensions; do
11859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11860 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862 break 2
11863 fi
11864 done
11865 done
11866 IFS=$as_save_IFS
11867
11868 fi
11869 fi
11870 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11871 if test -n "$LIPO_FOR_TARGET"; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11873 $as_echo "$LIPO_FOR_TARGET" >&6; }
11874 else
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876 $as_echo "no" >&6; }
11877 fi
11878
11879
11880 fi
11881 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11883 set dummy ${ncn_progname}; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 if test -n "$LIPO_FOR_TARGET"; then
11890 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11891 else
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11894 do
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11899 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901 break 2
11902 fi
11903 done
11904 done
11905 IFS=$as_save_IFS
11906
11907 fi
11908 fi
11909 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11910 if test -n "$LIPO_FOR_TARGET"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11912 $as_echo "$LIPO_FOR_TARGET" >&6; }
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11916 fi
11917
11918
11919 fi
11920 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11921 done
11922 fi
11923
11924 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11925 set dummy lipo
11926 if test $build = $target ; then
11927 LIPO_FOR_TARGET="$2"
11928 else
11929 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11930 fi
11931 else
11932 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11933 fi
11934
11935 else
11936 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11937 fi
11938
11939
11940
11941
11942 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11943 if test -n "$with_build_time_tools"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11945 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11946 if test -x $with_build_time_tools/nm; then
11947 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11948 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11950 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11951 else
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953 $as_echo "no" >&6; }
11954 fi
11955 elif test $build != $host && test $have_gcc_for_target = yes; then
11956 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11957 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11958 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11959 fi
11960 fi
11961 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11962 # Extract the first word of "nm", so it can be a program name with args.
11963 set dummy nm; ac_word=$2
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965 $as_echo_n "checking for $ac_word... " >&6; }
11966 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11969 case $NM_FOR_TARGET in
11970 [\\/]* | ?:[\\/]*)
11971 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11972 ;;
11973 *)
11974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $gcc_cv_tool_dirs
11976 do
11977 IFS=$as_save_IFS
11978 test -z "$as_dir" && as_dir=.
11979 for ac_exec_ext in '' $ac_executable_extensions; do
11980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11981 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11983 break 2
11984 fi
11985 done
11986 done
11987 IFS=$as_save_IFS
11988
11989 ;;
11990 esac
11991 fi
11992 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11993 if test -n "$NM_FOR_TARGET"; then
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11995 $as_echo "$NM_FOR_TARGET" >&6; }
11996 else
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998 $as_echo "no" >&6; }
11999 fi
12000
12001
12002 fi
12003 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12004
12005
12006 if test -n "$NM_FOR_TARGET"; then
12007 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12008 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12009 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12010 fi
12011
12012 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12013 for ncn_progname in nm; do
12014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12015 set dummy ${ncn_progname}; ac_word=$2
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017 $as_echo_n "checking for $ac_word... " >&6; }
12018 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 if test -n "$NM_FOR_TARGET"; then
12022 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12023 else
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12026 do
12027 IFS=$as_save_IFS
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12031 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12033 break 2
12034 fi
12035 done
12036 done
12037 IFS=$as_save_IFS
12038
12039 fi
12040 fi
12041 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12042 if test -n "$NM_FOR_TARGET"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12044 $as_echo "$NM_FOR_TARGET" >&6; }
12045 else
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12048 fi
12049
12050
12051 done
12052 fi
12053
12054 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12055 for ncn_progname in nm; do
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12057 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12058 if test -x $with_build_time_tools/${ncn_progname}; then
12059 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12061 $as_echo "yes" >&6; }
12062 break
12063 else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12066 fi
12067 done
12068 fi
12069
12070 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12071 for ncn_progname in nm; do
12072 if test -n "$ncn_target_tool_prefix"; then
12073 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12074 set dummy ${ncn_target_tool_prefix}${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 test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12078 $as_echo_n "(cached) " >&6
12079 else
12080 if test -n "$NM_FOR_TARGET"; then
12081 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12090 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${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 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12101 if test -n "$NM_FOR_TARGET"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12103 $as_echo "$NM_FOR_TARGET" >&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 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12113 set dummy ${ncn_progname}; ac_word=$2
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115 $as_echo_n "checking for $ac_word... " >&6; }
12116 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 if test -n "$NM_FOR_TARGET"; then
12120 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12121 else
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH
12124 do
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12129 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12131 break 2
12132 fi
12133 done
12134 done
12135 IFS=$as_save_IFS
12136
12137 fi
12138 fi
12139 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12140 if test -n "$NM_FOR_TARGET"; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12142 $as_echo "$NM_FOR_TARGET" >&6; }
12143 else
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145 $as_echo "no" >&6; }
12146 fi
12147
12148
12149 fi
12150 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12151 done
12152 fi
12153
12154 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12155 set dummy nm
12156 if test $build = $target ; then
12157 NM_FOR_TARGET="$2"
12158 else
12159 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12160 fi
12161 else
12162 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12163 fi
12164
12165 else
12166 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12167 fi
12168
12169
12170
12171
12172 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12173 if test -n "$with_build_time_tools"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12175 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12176 if test -x $with_build_time_tools/objcopy; then
12177 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12178 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12180 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12181 else
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12184 fi
12185 elif test $build != $host && test $have_gcc_for_target = yes; then
12186 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12187 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12188 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12189 fi
12190 fi
12191 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12192 # Extract the first word of "objcopy", so it can be a program name with args.
12193 set dummy objcopy; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 case $OBJCOPY_FOR_TARGET in
12200 [\\/]* | ?:[\\/]*)
12201 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12202 ;;
12203 *)
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $gcc_cv_tool_dirs
12206 do
12207 IFS=$as_save_IFS
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12211 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213 break 2
12214 fi
12215 done
12216 done
12217 IFS=$as_save_IFS
12218
12219 ;;
12220 esac
12221 fi
12222 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12223 if test -n "$OBJCOPY_FOR_TARGET"; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12225 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12226 else
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12229 fi
12230
12231
12232 fi
12233 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12234
12235
12236 if test -n "$OBJCOPY_FOR_TARGET"; then
12237 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12238 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12239 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12240 fi
12241
12242 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12243 for ncn_progname in objcopy; do
12244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12245 set dummy ${ncn_progname}; ac_word=$2
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12247 $as_echo_n "checking for $ac_word... " >&6; }
12248 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251 if test -n "$OBJCOPY_FOR_TARGET"; then
12252 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12253 else
12254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12256 do
12257 IFS=$as_save_IFS
12258 test -z "$as_dir" && as_dir=.
12259 for ac_exec_ext in '' $ac_executable_extensions; do
12260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12261 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263 break 2
12264 fi
12265 done
12266 done
12267 IFS=$as_save_IFS
12268
12269 fi
12270 fi
12271 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12272 if test -n "$OBJCOPY_FOR_TARGET"; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12274 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12275 else
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; }
12278 fi
12279
12280
12281 done
12282 fi
12283
12284 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12285 for ncn_progname in objcopy; do
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12287 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12288 if test -x $with_build_time_tools/${ncn_progname}; then
12289 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12291 $as_echo "yes" >&6; }
12292 break
12293 else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296 fi
12297 done
12298 fi
12299
12300 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12301 for ncn_progname in objcopy; do
12302 if test -n "$ncn_target_tool_prefix"; then
12303 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12304 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306 $as_echo_n "checking for $ac_word... " >&6; }
12307 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 if test -n "$OBJCOPY_FOR_TARGET"; then
12311 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12312 else
12313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314 for as_dir in $PATH
12315 do
12316 IFS=$as_save_IFS
12317 test -z "$as_dir" && as_dir=.
12318 for ac_exec_ext in '' $ac_executable_extensions; do
12319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12320 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 break 2
12323 fi
12324 done
12325 done
12326 IFS=$as_save_IFS
12327
12328 fi
12329 fi
12330 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12331 if test -n "$OBJCOPY_FOR_TARGET"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12333 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12334 else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336 $as_echo "no" >&6; }
12337 fi
12338
12339
12340 fi
12341 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12343 set dummy ${ncn_progname}; ac_word=$2
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345 $as_echo_n "checking for $ac_word... " >&6; }
12346 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 if test -n "$OBJCOPY_FOR_TARGET"; then
12350 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12351 else
12352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353 for as_dir in $PATH
12354 do
12355 IFS=$as_save_IFS
12356 test -z "$as_dir" && as_dir=.
12357 for ac_exec_ext in '' $ac_executable_extensions; do
12358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12359 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361 break 2
12362 fi
12363 done
12364 done
12365 IFS=$as_save_IFS
12366
12367 fi
12368 fi
12369 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12370 if test -n "$OBJCOPY_FOR_TARGET"; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12372 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12373 else
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 $as_echo "no" >&6; }
12376 fi
12377
12378
12379 fi
12380 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12381 done
12382 fi
12383
12384 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12385 set dummy objcopy
12386 if test $build = $target ; then
12387 OBJCOPY_FOR_TARGET="$2"
12388 else
12389 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12390 fi
12391 else
12392 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12393 fi
12394
12395 else
12396 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12397 fi
12398
12399
12400
12401
12402 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12403 if test -n "$with_build_time_tools"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12405 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12406 if test -x $with_build_time_tools/objdump; then
12407 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12408 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12410 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12411 else
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 $as_echo "no" >&6; }
12414 fi
12415 elif test $build != $host && test $have_gcc_for_target = yes; then
12416 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12417 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12418 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12419 fi
12420 fi
12421 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12422 # Extract the first word of "objdump", so it can be a program name with args.
12423 set dummy objdump; ac_word=$2
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12425 $as_echo_n "checking for $ac_word... " >&6; }
12426 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 case $OBJDUMP_FOR_TARGET in
12430 [\\/]* | ?:[\\/]*)
12431 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12432 ;;
12433 *)
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $gcc_cv_tool_dirs
12436 do
12437 IFS=$as_save_IFS
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12441 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 break 2
12444 fi
12445 done
12446 done
12447 IFS=$as_save_IFS
12448
12449 ;;
12450 esac
12451 fi
12452 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12453 if test -n "$OBJDUMP_FOR_TARGET"; then
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12455 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12456 else
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12459 fi
12460
12461
12462 fi
12463 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12464
12465
12466 if test -n "$OBJDUMP_FOR_TARGET"; then
12467 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12468 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12469 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12470 fi
12471
12472 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12473 for ncn_progname in objdump; do
12474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12475 set dummy ${ncn_progname}; ac_word=$2
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12477 $as_echo_n "checking for $ac_word... " >&6; }
12478 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 if test -n "$OBJDUMP_FOR_TARGET"; then
12482 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12483 else
12484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485 for as_dir in $PATH
12486 do
12487 IFS=$as_save_IFS
12488 test -z "$as_dir" && as_dir=.
12489 for ac_exec_ext in '' $ac_executable_extensions; do
12490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12491 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12493 break 2
12494 fi
12495 done
12496 done
12497 IFS=$as_save_IFS
12498
12499 fi
12500 fi
12501 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12502 if test -n "$OBJDUMP_FOR_TARGET"; then
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12504 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12505 else
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507 $as_echo "no" >&6; }
12508 fi
12509
12510
12511 done
12512 fi
12513
12514 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12515 for ncn_progname in objdump; do
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12517 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12518 if test -x $with_build_time_tools/${ncn_progname}; then
12519 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12521 $as_echo "yes" >&6; }
12522 break
12523 else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12526 fi
12527 done
12528 fi
12529
12530 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12531 for ncn_progname in objdump; do
12532 if test -n "$ncn_target_tool_prefix"; then
12533 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12534 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536 $as_echo_n "checking for $ac_word... " >&6; }
12537 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12540 if test -n "$OBJDUMP_FOR_TARGET"; then
12541 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12542 else
12543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544 for as_dir in $PATH
12545 do
12546 IFS=$as_save_IFS
12547 test -z "$as_dir" && as_dir=.
12548 for ac_exec_ext in '' $ac_executable_extensions; do
12549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12550 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552 break 2
12553 fi
12554 done
12555 done
12556 IFS=$as_save_IFS
12557
12558 fi
12559 fi
12560 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12561 if test -n "$OBJDUMP_FOR_TARGET"; then
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12563 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12564 else
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566 $as_echo "no" >&6; }
12567 fi
12568
12569
12570 fi
12571 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12573 set dummy ${ncn_progname}; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575 $as_echo_n "checking for $ac_word... " >&6; }
12576 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 if test -n "$OBJDUMP_FOR_TARGET"; then
12580 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12581 else
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12584 do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12589 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12592 fi
12593 done
12594 done
12595 IFS=$as_save_IFS
12596
12597 fi
12598 fi
12599 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12600 if test -n "$OBJDUMP_FOR_TARGET"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12602 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12606 fi
12607
12608
12609 fi
12610 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12611 done
12612 fi
12613
12614 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12615 set dummy objdump
12616 if test $build = $target ; then
12617 OBJDUMP_FOR_TARGET="$2"
12618 else
12619 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12620 fi
12621 else
12622 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12623 fi
12624
12625 else
12626 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12627 fi
12628
12629
12630
12631
12632 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12633 if test -n "$with_build_time_tools"; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12635 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12636 if test -x $with_build_time_tools/ranlib; then
12637 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12638 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12640 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12641 else
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643 $as_echo "no" >&6; }
12644 fi
12645 elif test $build != $host && test $have_gcc_for_target = yes; then
12646 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12647 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12648 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12649 fi
12650 fi
12651 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12652 # Extract the first word of "ranlib", so it can be a program name with args.
12653 set dummy ranlib; ac_word=$2
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655 $as_echo_n "checking for $ac_word... " >&6; }
12656 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 case $RANLIB_FOR_TARGET in
12660 [\\/]* | ?:[\\/]*)
12661 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12662 ;;
12663 *)
12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665 for as_dir in $gcc_cv_tool_dirs
12666 do
12667 IFS=$as_save_IFS
12668 test -z "$as_dir" && as_dir=.
12669 for ac_exec_ext in '' $ac_executable_extensions; do
12670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12671 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12673 break 2
12674 fi
12675 done
12676 done
12677 IFS=$as_save_IFS
12678
12679 ;;
12680 esac
12681 fi
12682 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12683 if test -n "$RANLIB_FOR_TARGET"; then
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12685 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12686 else
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 $as_echo "no" >&6; }
12689 fi
12690
12691
12692 fi
12693 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12694
12695
12696 if test -n "$RANLIB_FOR_TARGET"; then
12697 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12698 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12699 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12700 fi
12701
12702 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12703 for ncn_progname in ranlib; do
12704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12705 set dummy ${ncn_progname}; ac_word=$2
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12707 $as_echo_n "checking for $ac_word... " >&6; }
12708 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12711 if test -n "$RANLIB_FOR_TARGET"; then
12712 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12713 else
12714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715 for as_dir in $PATH
12716 do
12717 IFS=$as_save_IFS
12718 test -z "$as_dir" && as_dir=.
12719 for ac_exec_ext in '' $ac_executable_extensions; do
12720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12721 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12723 break 2
12724 fi
12725 done
12726 done
12727 IFS=$as_save_IFS
12728
12729 fi
12730 fi
12731 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12732 if test -n "$RANLIB_FOR_TARGET"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12734 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12735 else
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12738 fi
12739
12740
12741 done
12742 fi
12743
12744 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12745 for ncn_progname in ranlib; do
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12747 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12748 if test -x $with_build_time_tools/${ncn_progname}; then
12749 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12751 $as_echo "yes" >&6; }
12752 break
12753 else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755 $as_echo "no" >&6; }
12756 fi
12757 done
12758 fi
12759
12760 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12761 for ncn_progname in ranlib; do
12762 if test -n "$ncn_target_tool_prefix"; then
12763 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12764 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766 $as_echo_n "checking for $ac_word... " >&6; }
12767 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 if test -n "$RANLIB_FOR_TARGET"; then
12771 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12772 else
12773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774 for as_dir in $PATH
12775 do
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12780 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12782 break 2
12783 fi
12784 done
12785 done
12786 IFS=$as_save_IFS
12787
12788 fi
12789 fi
12790 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12791 if test -n "$RANLIB_FOR_TARGET"; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12793 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12794 else
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12797 fi
12798
12799
12800 fi
12801 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12803 set dummy ${ncn_progname}; ac_word=$2
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805 $as_echo_n "checking for $ac_word... " >&6; }
12806 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 if test -n "$RANLIB_FOR_TARGET"; then
12810 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12811 else
12812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813 for as_dir in $PATH
12814 do
12815 IFS=$as_save_IFS
12816 test -z "$as_dir" && as_dir=.
12817 for ac_exec_ext in '' $ac_executable_extensions; do
12818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12819 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12821 break 2
12822 fi
12823 done
12824 done
12825 IFS=$as_save_IFS
12826
12827 fi
12828 fi
12829 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12830 if test -n "$RANLIB_FOR_TARGET"; then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12832 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12833 else
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12836 fi
12837
12838
12839 fi
12840 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12841 done
12842 fi
12843
12844 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12845 set dummy ranlib
12846 if test $build = $target ; then
12847 RANLIB_FOR_TARGET="$2"
12848 else
12849 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12850 fi
12851 else
12852 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12853 fi
12854
12855 else
12856 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12857 fi
12858
12859
12860
12861
12862 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12863 if test -n "$with_build_time_tools"; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12865 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12866 if test -x $with_build_time_tools/readelf; then
12867 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12868 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12870 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12871 else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12874 fi
12875 elif test $build != $host && test $have_gcc_for_target = yes; then
12876 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12877 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12878 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12879 fi
12880 fi
12881 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12882 # Extract the first word of "readelf", so it can be a program name with args.
12883 set dummy readelf; ac_word=$2
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12885 $as_echo_n "checking for $ac_word... " >&6; }
12886 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12887 $as_echo_n "(cached) " >&6
12888 else
12889 case $READELF_FOR_TARGET in
12890 [\\/]* | ?:[\\/]*)
12891 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12892 ;;
12893 *)
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $gcc_cv_tool_dirs
12896 do
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12904 fi
12905 done
12906 done
12907 IFS=$as_save_IFS
12908
12909 ;;
12910 esac
12911 fi
12912 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12913 if test -n "$READELF_FOR_TARGET"; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12915 $as_echo "$READELF_FOR_TARGET" >&6; }
12916 else
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 $as_echo "no" >&6; }
12919 fi
12920
12921
12922 fi
12923 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12924
12925
12926 if test -n "$READELF_FOR_TARGET"; then
12927 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12928 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12929 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12930 fi
12931
12932 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12933 for ncn_progname in readelf; do
12934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12935 set dummy ${ncn_progname}; ac_word=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937 $as_echo_n "checking for $ac_word... " >&6; }
12938 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 if test -n "$READELF_FOR_TARGET"; then
12942 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12943 else
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12946 do
12947 IFS=$as_save_IFS
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12951 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12953 break 2
12954 fi
12955 done
12956 done
12957 IFS=$as_save_IFS
12958
12959 fi
12960 fi
12961 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12962 if test -n "$READELF_FOR_TARGET"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12964 $as_echo "$READELF_FOR_TARGET" >&6; }
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12968 fi
12969
12970
12971 done
12972 fi
12973
12974 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12975 for ncn_progname in readelf; do
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12977 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12978 if test -x $with_build_time_tools/${ncn_progname}; then
12979 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12981 $as_echo "yes" >&6; }
12982 break
12983 else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12986 fi
12987 done
12988 fi
12989
12990 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12991 for ncn_progname in readelf; do
12992 if test -n "$ncn_target_tool_prefix"; then
12993 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12994 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996 $as_echo_n "checking for $ac_word... " >&6; }
12997 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 if test -n "$READELF_FOR_TARGET"; then
13001 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13002 else
13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004 for as_dir in $PATH
13005 do
13006 IFS=$as_save_IFS
13007 test -z "$as_dir" && as_dir=.
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13010 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 break 2
13013 fi
13014 done
13015 done
13016 IFS=$as_save_IFS
13017
13018 fi
13019 fi
13020 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13021 if test -n "$READELF_FOR_TARGET"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13023 $as_echo "$READELF_FOR_TARGET" >&6; }
13024 else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13027 fi
13028
13029
13030 fi
13031 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13033 set dummy ${ncn_progname}; ac_word=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 if test -n "$READELF_FOR_TARGET"; then
13040 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13041 else
13042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043 for as_dir in $PATH
13044 do
13045 IFS=$as_save_IFS
13046 test -z "$as_dir" && as_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
13048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13049 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 break 2
13052 fi
13053 done
13054 done
13055 IFS=$as_save_IFS
13056
13057 fi
13058 fi
13059 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13060 if test -n "$READELF_FOR_TARGET"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13062 $as_echo "$READELF_FOR_TARGET" >&6; }
13063 else
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13066 fi
13067
13068
13069 fi
13070 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13071 done
13072 fi
13073
13074 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13075 set dummy readelf
13076 if test $build = $target ; then
13077 READELF_FOR_TARGET="$2"
13078 else
13079 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13080 fi
13081 else
13082 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13083 fi
13084
13085 else
13086 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13087 fi
13088
13089
13090
13091
13092 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13093 if test -n "$with_build_time_tools"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13095 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13096 if test -x $with_build_time_tools/strip; then
13097 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13098 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13100 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13101 else
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13103 $as_echo "no" >&6; }
13104 fi
13105 elif test $build != $host && test $have_gcc_for_target = yes; then
13106 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13107 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13108 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13109 fi
13110 fi
13111 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13112 # Extract the first word of "strip", so it can be a program name with args.
13113 set dummy strip; ac_word=$2
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13115 $as_echo_n "checking for $ac_word... " >&6; }
13116 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 case $STRIP_FOR_TARGET in
13120 [\\/]* | ?:[\\/]*)
13121 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13122 ;;
13123 *)
13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13125 for as_dir in $gcc_cv_tool_dirs
13126 do
13127 IFS=$as_save_IFS
13128 test -z "$as_dir" && as_dir=.
13129 for ac_exec_ext in '' $ac_executable_extensions; do
13130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13131 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13133 break 2
13134 fi
13135 done
13136 done
13137 IFS=$as_save_IFS
13138
13139 ;;
13140 esac
13141 fi
13142 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13143 if test -n "$STRIP_FOR_TARGET"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13145 $as_echo "$STRIP_FOR_TARGET" >&6; }
13146 else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13149 fi
13150
13151
13152 fi
13153 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13154
13155
13156 if test -n "$STRIP_FOR_TARGET"; then
13157 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13158 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13159 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13160 fi
13161
13162 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13163 for ncn_progname in strip; do
13164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13165 set dummy ${ncn_progname}; ac_word=$2
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167 $as_echo_n "checking for $ac_word... " >&6; }
13168 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 if test -n "$STRIP_FOR_TARGET"; then
13172 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13173 else
13174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $PATH
13176 do
13177 IFS=$as_save_IFS
13178 test -z "$as_dir" && as_dir=.
13179 for ac_exec_ext in '' $ac_executable_extensions; do
13180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13181 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13183 break 2
13184 fi
13185 done
13186 done
13187 IFS=$as_save_IFS
13188
13189 fi
13190 fi
13191 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13192 if test -n "$STRIP_FOR_TARGET"; then
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13194 $as_echo "$STRIP_FOR_TARGET" >&6; }
13195 else
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13198 fi
13199
13200
13201 done
13202 fi
13203
13204 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13205 for ncn_progname in strip; do
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13207 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13208 if test -x $with_build_time_tools/${ncn_progname}; then
13209 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13211 $as_echo "yes" >&6; }
13212 break
13213 else
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215 $as_echo "no" >&6; }
13216 fi
13217 done
13218 fi
13219
13220 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13221 for ncn_progname in strip; do
13222 if test -n "$ncn_target_tool_prefix"; then
13223 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13224 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226 $as_echo_n "checking for $ac_word... " >&6; }
13227 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 if test -n "$STRIP_FOR_TARGET"; then
13231 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13232 else
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234 for as_dir in $PATH
13235 do
13236 IFS=$as_save_IFS
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13240 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 break 2
13243 fi
13244 done
13245 done
13246 IFS=$as_save_IFS
13247
13248 fi
13249 fi
13250 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13251 if test -n "$STRIP_FOR_TARGET"; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13253 $as_echo "$STRIP_FOR_TARGET" >&6; }
13254 else
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 $as_echo "no" >&6; }
13257 fi
13258
13259
13260 fi
13261 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13263 set dummy ${ncn_progname}; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265 $as_echo_n "checking for $ac_word... " >&6; }
13266 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 if test -n "$STRIP_FOR_TARGET"; then
13270 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13271 else
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13274 do
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13279 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13282 fi
13283 done
13284 done
13285 IFS=$as_save_IFS
13286
13287 fi
13288 fi
13289 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13290 if test -n "$STRIP_FOR_TARGET"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13292 $as_echo "$STRIP_FOR_TARGET" >&6; }
13293 else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13296 fi
13297
13298
13299 fi
13300 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13301 done
13302 fi
13303
13304 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13305 set dummy strip
13306 if test $build = $target ; then
13307 STRIP_FOR_TARGET="$2"
13308 else
13309 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13310 fi
13311 else
13312 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13313 fi
13314
13315 else
13316 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13317 fi
13318
13319
13320
13321
13322 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13323 if test -n "$with_build_time_tools"; then
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13325 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13326 if test -x $with_build_time_tools/windres; then
13327 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13328 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13330 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13331 else
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13334 fi
13335 elif test $build != $host && test $have_gcc_for_target = yes; then
13336 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13337 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13338 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13339 fi
13340 fi
13341 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13342 # Extract the first word of "windres", so it can be a program name with args.
13343 set dummy windres; ac_word=$2
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345 $as_echo_n "checking for $ac_word... " >&6; }
13346 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13347 $as_echo_n "(cached) " >&6
13348 else
13349 case $WINDRES_FOR_TARGET in
13350 [\\/]* | ?:[\\/]*)
13351 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13352 ;;
13353 *)
13354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13355 for as_dir in $gcc_cv_tool_dirs
13356 do
13357 IFS=$as_save_IFS
13358 test -z "$as_dir" && as_dir=.
13359 for ac_exec_ext in '' $ac_executable_extensions; do
13360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13361 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13363 break 2
13364 fi
13365 done
13366 done
13367 IFS=$as_save_IFS
13368
13369 ;;
13370 esac
13371 fi
13372 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13373 if test -n "$WINDRES_FOR_TARGET"; then
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13375 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13376 else
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378 $as_echo "no" >&6; }
13379 fi
13380
13381
13382 fi
13383 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13384
13385
13386 if test -n "$WINDRES_FOR_TARGET"; then
13387 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13388 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13389 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13390 fi
13391
13392 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13393 for ncn_progname in windres; do
13394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13395 set dummy ${ncn_progname}; ac_word=$2
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397 $as_echo_n "checking for $ac_word... " >&6; }
13398 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13399 $as_echo_n "(cached) " >&6
13400 else
13401 if test -n "$WINDRES_FOR_TARGET"; then
13402 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13403 else
13404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405 for as_dir in $PATH
13406 do
13407 IFS=$as_save_IFS
13408 test -z "$as_dir" && as_dir=.
13409 for ac_exec_ext in '' $ac_executable_extensions; do
13410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13411 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413 break 2
13414 fi
13415 done
13416 done
13417 IFS=$as_save_IFS
13418
13419 fi
13420 fi
13421 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13422 if test -n "$WINDRES_FOR_TARGET"; then
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13424 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13425 else
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427 $as_echo "no" >&6; }
13428 fi
13429
13430
13431 done
13432 fi
13433
13434 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13435 for ncn_progname in windres; do
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13437 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13438 if test -x $with_build_time_tools/${ncn_progname}; then
13439 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13441 $as_echo "yes" >&6; }
13442 break
13443 else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13446 fi
13447 done
13448 fi
13449
13450 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13451 for ncn_progname in windres; do
13452 if test -n "$ncn_target_tool_prefix"; then
13453 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13454 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456 $as_echo_n "checking for $ac_word... " >&6; }
13457 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13458 $as_echo_n "(cached) " >&6
13459 else
13460 if test -n "$WINDRES_FOR_TARGET"; then
13461 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13462 else
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in $PATH
13465 do
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
13469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13470 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472 break 2
13473 fi
13474 done
13475 done
13476 IFS=$as_save_IFS
13477
13478 fi
13479 fi
13480 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13481 if test -n "$WINDRES_FOR_TARGET"; then
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13483 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13484 else
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486 $as_echo "no" >&6; }
13487 fi
13488
13489
13490 fi
13491 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13493 set dummy ${ncn_progname}; ac_word=$2
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 $as_echo_n "checking for $ac_word... " >&6; }
13496 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13497 $as_echo_n "(cached) " >&6
13498 else
13499 if test -n "$WINDRES_FOR_TARGET"; then
13500 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13501 else
13502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13503 for as_dir in $PATH
13504 do
13505 IFS=$as_save_IFS
13506 test -z "$as_dir" && as_dir=.
13507 for ac_exec_ext in '' $ac_executable_extensions; do
13508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13509 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13511 break 2
13512 fi
13513 done
13514 done
13515 IFS=$as_save_IFS
13516
13517 fi
13518 fi
13519 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13520 if test -n "$WINDRES_FOR_TARGET"; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13522 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13523 else
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525 $as_echo "no" >&6; }
13526 fi
13527
13528
13529 fi
13530 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13531 done
13532 fi
13533
13534 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13535 set dummy windres
13536 if test $build = $target ; then
13537 WINDRES_FOR_TARGET="$2"
13538 else
13539 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13540 fi
13541 else
13542 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13543 fi
13544
13545 else
13546 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13547 fi
13548
13549
13550
13551
13552 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13553 if test -n "$with_build_time_tools"; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13555 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13556 if test -x $with_build_time_tools/windmc; then
13557 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13558 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13560 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13561 else
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563 $as_echo "no" >&6; }
13564 fi
13565 elif test $build != $host && test $have_gcc_for_target = yes; then
13566 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13567 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13568 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13569 fi
13570 fi
13571 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13572 # Extract the first word of "windmc", so it can be a program name with args.
13573 set dummy windmc; ac_word=$2
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13575 $as_echo_n "checking for $ac_word... " >&6; }
13576 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 case $WINDMC_FOR_TARGET in
13580 [\\/]* | ?:[\\/]*)
13581 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13582 ;;
13583 *)
13584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13585 for as_dir in $gcc_cv_tool_dirs
13586 do
13587 IFS=$as_save_IFS
13588 test -z "$as_dir" && as_dir=.
13589 for ac_exec_ext in '' $ac_executable_extensions; do
13590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13591 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13593 break 2
13594 fi
13595 done
13596 done
13597 IFS=$as_save_IFS
13598
13599 ;;
13600 esac
13601 fi
13602 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13603 if test -n "$WINDMC_FOR_TARGET"; then
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13605 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13606 else
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13608 $as_echo "no" >&6; }
13609 fi
13610
13611
13612 fi
13613 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13614
13615
13616 if test -n "$WINDMC_FOR_TARGET"; then
13617 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13618 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13619 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13620 fi
13621
13622 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13623 for ncn_progname in windmc; do
13624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13625 set dummy ${ncn_progname}; ac_word=$2
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627 $as_echo_n "checking for $ac_word... " >&6; }
13628 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13629 $as_echo_n "(cached) " >&6
13630 else
13631 if test -n "$WINDMC_FOR_TARGET"; then
13632 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13633 else
13634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13636 do
13637 IFS=$as_save_IFS
13638 test -z "$as_dir" && as_dir=.
13639 for ac_exec_ext in '' $ac_executable_extensions; do
13640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13641 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13643 break 2
13644 fi
13645 done
13646 done
13647 IFS=$as_save_IFS
13648
13649 fi
13650 fi
13651 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13652 if test -n "$WINDMC_FOR_TARGET"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13654 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13655 else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13658 fi
13659
13660
13661 done
13662 fi
13663
13664 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13665 for ncn_progname in windmc; do
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13667 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13668 if test -x $with_build_time_tools/${ncn_progname}; then
13669 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13671 $as_echo "yes" >&6; }
13672 break
13673 else
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13676 fi
13677 done
13678 fi
13679
13680 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13681 for ncn_progname in windmc; do
13682 if test -n "$ncn_target_tool_prefix"; then
13683 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13684 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13686 $as_echo_n "checking for $ac_word... " >&6; }
13687 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
13689 else
13690 if test -n "$WINDMC_FOR_TARGET"; then
13691 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13692 else
13693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694 for as_dir in $PATH
13695 do
13696 IFS=$as_save_IFS
13697 test -z "$as_dir" && as_dir=.
13698 for ac_exec_ext in '' $ac_executable_extensions; do
13699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13700 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13702 break 2
13703 fi
13704 done
13705 done
13706 IFS=$as_save_IFS
13707
13708 fi
13709 fi
13710 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13711 if test -n "$WINDMC_FOR_TARGET"; then
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13713 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13714 else
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716 $as_echo "no" >&6; }
13717 fi
13718
13719
13720 fi
13721 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13723 set dummy ${ncn_progname}; ac_word=$2
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13725 $as_echo_n "checking for $ac_word... " >&6; }
13726 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 if test -n "$WINDMC_FOR_TARGET"; then
13730 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13731 else
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13734 do
13735 IFS=$as_save_IFS
13736 test -z "$as_dir" && as_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13739 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13741 break 2
13742 fi
13743 done
13744 done
13745 IFS=$as_save_IFS
13746
13747 fi
13748 fi
13749 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13750 if test -n "$WINDMC_FOR_TARGET"; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13752 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13753 else
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13756 fi
13757
13758
13759 fi
13760 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13761 done
13762 fi
13763
13764 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13765 set dummy windmc
13766 if test $build = $target ; then
13767 WINDMC_FOR_TARGET="$2"
13768 else
13769 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13770 fi
13771 else
13772 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13773 fi
13774
13775 else
13776 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13777 fi
13778
13779
13780 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13781
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13783 $as_echo_n "checking where to find the target ar... " >&6; }
13784 if test "x${build}" != "x${host}" ; then
13785 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13786 # We already found the complete path
13787 ac_dir=`dirname $AR_FOR_TARGET`
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13789 $as_echo "pre-installed in $ac_dir" >&6; }
13790 else
13791 # Canadian cross, just use what we found
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13793 $as_echo "pre-installed" >&6; }
13794 fi
13795 else
13796 ok=yes
13797 case " ${configdirs} " in
13798 *" binutils "*) ;;
13799 *) ok=no ;;
13800 esac
13801
13802 if test $ok = yes; then
13803 # An in-tree tool is available and we can use it
13804 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13806 $as_echo "just compiled" >&6; }
13807 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13808 # We already found the complete path
13809 ac_dir=`dirname $AR_FOR_TARGET`
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13811 $as_echo "pre-installed in $ac_dir" >&6; }
13812 elif test "x$target" = "x$host"; then
13813 # We can use an host tool
13814 AR_FOR_TARGET='$(AR)'
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13816 $as_echo "host tool" >&6; }
13817 else
13818 # We need a cross tool
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13820 $as_echo "pre-installed" >&6; }
13821 fi
13822 fi
13823
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13825 $as_echo_n "checking where to find the target as... " >&6; }
13826 if test "x${build}" != "x${host}" ; then
13827 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13828 # We already found the complete path
13829 ac_dir=`dirname $AS_FOR_TARGET`
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13831 $as_echo "pre-installed in $ac_dir" >&6; }
13832 else
13833 # Canadian cross, just use what we found
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13835 $as_echo "pre-installed" >&6; }
13836 fi
13837 else
13838 ok=yes
13839 case " ${configdirs} " in
13840 *" gas "*) ;;
13841 *) ok=no ;;
13842 esac
13843
13844 if test $ok = yes; then
13845 # An in-tree tool is available and we can use it
13846 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13848 $as_echo "just compiled" >&6; }
13849 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13850 # We already found the complete path
13851 ac_dir=`dirname $AS_FOR_TARGET`
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13853 $as_echo "pre-installed in $ac_dir" >&6; }
13854 elif test "x$target" = "x$host"; then
13855 # We can use an host tool
13856 AS_FOR_TARGET='$(AS)'
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13858 $as_echo "host tool" >&6; }
13859 else
13860 # We need a cross tool
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13862 $as_echo "pre-installed" >&6; }
13863 fi
13864 fi
13865
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13867 $as_echo_n "checking where to find the target cc... " >&6; }
13868 if test "x${build}" != "x${host}" ; then
13869 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13870 # We already found the complete path
13871 ac_dir=`dirname $CC_FOR_TARGET`
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13873 $as_echo "pre-installed in $ac_dir" >&6; }
13874 else
13875 # Canadian cross, just use what we found
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13877 $as_echo "pre-installed" >&6; }
13878 fi
13879 else
13880 ok=yes
13881 case " ${configdirs} " in
13882 *" gcc "*) ;;
13883 *) ok=no ;;
13884 esac
13885
13886 if test $ok = yes; then
13887 # An in-tree tool is available and we can use it
13888 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13890 $as_echo "just compiled" >&6; }
13891 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13892 # We already found the complete path
13893 ac_dir=`dirname $CC_FOR_TARGET`
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13895 $as_echo "pre-installed in $ac_dir" >&6; }
13896 elif test "x$target" = "x$host"; then
13897 # We can use an host tool
13898 CC_FOR_TARGET='$(CC)'
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13900 $as_echo "host tool" >&6; }
13901 else
13902 # We need a cross tool
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13904 $as_echo "pre-installed" >&6; }
13905 fi
13906 fi
13907
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13909 $as_echo_n "checking where to find the target c++... " >&6; }
13910 if test "x${build}" != "x${host}" ; then
13911 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13912 # We already found the complete path
13913 ac_dir=`dirname $CXX_FOR_TARGET`
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13915 $as_echo "pre-installed in $ac_dir" >&6; }
13916 else
13917 # Canadian cross, just use what we found
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13919 $as_echo "pre-installed" >&6; }
13920 fi
13921 else
13922 ok=yes
13923 case " ${configdirs} " in
13924 *" gcc "*) ;;
13925 *) ok=no ;;
13926 esac
13927 case ,${enable_languages}, in
13928 *,c++,*) ;;
13929 *) ok=no ;;
13930 esac
13931 if test $ok = yes; then
13932 # An in-tree tool is available and we can use it
13933 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'
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13935 $as_echo "just compiled" >&6; }
13936 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13937 # We already found the complete path
13938 ac_dir=`dirname $CXX_FOR_TARGET`
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13940 $as_echo "pre-installed in $ac_dir" >&6; }
13941 elif test "x$target" = "x$host"; then
13942 # We can use an host tool
13943 CXX_FOR_TARGET='$(CXX)'
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13945 $as_echo "host tool" >&6; }
13946 else
13947 # We need a cross tool
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13949 $as_echo "pre-installed" >&6; }
13950 fi
13951 fi
13952
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13954 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13955 if test "x${build}" != "x${host}" ; then
13956 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13957 # We already found the complete path
13958 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13960 $as_echo "pre-installed in $ac_dir" >&6; }
13961 else
13962 # Canadian cross, just use what we found
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13964 $as_echo "pre-installed" >&6; }
13965 fi
13966 else
13967 ok=yes
13968 case " ${configdirs} " in
13969 *" gcc "*) ;;
13970 *) ok=no ;;
13971 esac
13972 case ,${enable_languages}, in
13973 *,c++,*) ;;
13974 *) ok=no ;;
13975 esac
13976 if test $ok = yes; then
13977 # An in-tree tool is available and we can use it
13978 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'
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13980 $as_echo "just compiled" >&6; }
13981 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13982 # We already found the complete path
13983 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13985 $as_echo "pre-installed in $ac_dir" >&6; }
13986 elif test "x$target" = "x$host"; then
13987 # We can use an host tool
13988 RAW_CXX_FOR_TARGET='$(CXX)'
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13990 $as_echo "host tool" >&6; }
13991 else
13992 # We need a cross tool
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13994 $as_echo "pre-installed" >&6; }
13995 fi
13996 fi
13997
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13999 $as_echo_n "checking where to find the target dlltool... " >&6; }
14000 if test "x${build}" != "x${host}" ; then
14001 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14002 # We already found the complete path
14003 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14005 $as_echo "pre-installed in $ac_dir" >&6; }
14006 else
14007 # Canadian cross, just use what we found
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14009 $as_echo "pre-installed" >&6; }
14010 fi
14011 else
14012 ok=yes
14013 case " ${configdirs} " in
14014 *" binutils "*) ;;
14015 *) ok=no ;;
14016 esac
14017
14018 if test $ok = yes; then
14019 # An in-tree tool is available and we can use it
14020 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14022 $as_echo "just compiled" >&6; }
14023 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14024 # We already found the complete path
14025 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14027 $as_echo "pre-installed in $ac_dir" >&6; }
14028 elif test "x$target" = "x$host"; then
14029 # We can use an host tool
14030 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14032 $as_echo "host tool" >&6; }
14033 else
14034 # We need a cross tool
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14036 $as_echo "pre-installed" >&6; }
14037 fi
14038 fi
14039
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14041 $as_echo_n "checking where to find the target gcc... " >&6; }
14042 if test "x${build}" != "x${host}" ; then
14043 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14044 # We already found the complete path
14045 ac_dir=`dirname $GCC_FOR_TARGET`
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14047 $as_echo "pre-installed in $ac_dir" >&6; }
14048 else
14049 # Canadian cross, just use what we found
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14051 $as_echo "pre-installed" >&6; }
14052 fi
14053 else
14054 ok=yes
14055 case " ${configdirs} " in
14056 *" gcc "*) ;;
14057 *) ok=no ;;
14058 esac
14059
14060 if test $ok = yes; then
14061 # An in-tree tool is available and we can use it
14062 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14064 $as_echo "just compiled" >&6; }
14065 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14066 # We already found the complete path
14067 ac_dir=`dirname $GCC_FOR_TARGET`
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14069 $as_echo "pre-installed in $ac_dir" >&6; }
14070 elif test "x$target" = "x$host"; then
14071 # We can use an host tool
14072 GCC_FOR_TARGET='$()'
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14074 $as_echo "host tool" >&6; }
14075 else
14076 # We need a cross tool
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14078 $as_echo "pre-installed" >&6; }
14079 fi
14080 fi
14081
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14083 $as_echo_n "checking where to find the target gfortran... " >&6; }
14084 if test "x${build}" != "x${host}" ; then
14085 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14086 # We already found the complete path
14087 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14089 $as_echo "pre-installed in $ac_dir" >&6; }
14090 else
14091 # Canadian cross, just use what we found
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14093 $as_echo "pre-installed" >&6; }
14094 fi
14095 else
14096 ok=yes
14097 case " ${configdirs} " in
14098 *" gcc "*) ;;
14099 *) ok=no ;;
14100 esac
14101 case ,${enable_languages}, in
14102 *,fortran,*) ;;
14103 *) ok=no ;;
14104 esac
14105 if test $ok = yes; then
14106 # An in-tree tool is available and we can use it
14107 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14109 $as_echo "just compiled" >&6; }
14110 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14111 # We already found the complete path
14112 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14114 $as_echo "pre-installed in $ac_dir" >&6; }
14115 elif test "x$target" = "x$host"; then
14116 # We can use an host tool
14117 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14119 $as_echo "host tool" >&6; }
14120 else
14121 # We need a cross tool
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14123 $as_echo "pre-installed" >&6; }
14124 fi
14125 fi
14126
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14128 $as_echo_n "checking where to find the target gccgo... " >&6; }
14129 if test "x${build}" != "x${host}" ; then
14130 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14131 # We already found the complete path
14132 ac_dir=`dirname $GOC_FOR_TARGET`
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14134 $as_echo "pre-installed in $ac_dir" >&6; }
14135 else
14136 # Canadian cross, just use what we found
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14138 $as_echo "pre-installed" >&6; }
14139 fi
14140 else
14141 ok=yes
14142 case " ${configdirs} " in
14143 *" gcc "*) ;;
14144 *) ok=no ;;
14145 esac
14146 case ,${enable_languages}, in
14147 *,go,*) ;;
14148 *) ok=no ;;
14149 esac
14150 if test $ok = yes; then
14151 # An in-tree tool is available and we can use it
14152 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14154 $as_echo "just compiled" >&6; }
14155 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14156 # We already found the complete path
14157 ac_dir=`dirname $GOC_FOR_TARGET`
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14159 $as_echo "pre-installed in $ac_dir" >&6; }
14160 elif test "x$target" = "x$host"; then
14161 # We can use an host tool
14162 GOC_FOR_TARGET='$(GOC)'
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14164 $as_echo "host tool" >&6; }
14165 else
14166 # We need a cross tool
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14168 $as_echo "pre-installed" >&6; }
14169 fi
14170 fi
14171
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14173 $as_echo_n "checking where to find the target ld... " >&6; }
14174 if test "x${build}" != "x${host}" ; then
14175 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14176 # We already found the complete path
14177 ac_dir=`dirname $LD_FOR_TARGET`
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14179 $as_echo "pre-installed in $ac_dir" >&6; }
14180 else
14181 # Canadian cross, just use what we found
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14183 $as_echo "pre-installed" >&6; }
14184 fi
14185 else
14186 ok=yes
14187 case " ${configdirs} " in
14188 *" ld "*) ;;
14189 *) ok=no ;;
14190 esac
14191
14192 if test $ok = yes; then
14193 # An in-tree tool is available and we can use it
14194 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14196 $as_echo "just compiled" >&6; }
14197 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14198 # We already found the complete path
14199 ac_dir=`dirname $LD_FOR_TARGET`
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14201 $as_echo "pre-installed in $ac_dir" >&6; }
14202 elif test "x$target" = "x$host"; then
14203 # We can use an host tool
14204 LD_FOR_TARGET='$(LD)'
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14206 $as_echo "host tool" >&6; }
14207 else
14208 # We need a cross tool
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14210 $as_echo "pre-installed" >&6; }
14211 fi
14212 fi
14213
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14215 $as_echo_n "checking where to find the target lipo... " >&6; }
14216 if test "x${build}" != "x${host}" ; then
14217 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14218 # We already found the complete path
14219 ac_dir=`dirname $LIPO_FOR_TARGET`
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14221 $as_echo "pre-installed in $ac_dir" >&6; }
14222 else
14223 # Canadian cross, just use what we found
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14225 $as_echo "pre-installed" >&6; }
14226 fi
14227 else
14228 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14229 # We already found the complete path
14230 ac_dir=`dirname $LIPO_FOR_TARGET`
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14232 $as_echo "pre-installed in $ac_dir" >&6; }
14233 elif test "x$target" = "x$host"; then
14234 # We can use an host tool
14235 LIPO_FOR_TARGET='$(LIPO)'
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14237 $as_echo "host tool" >&6; }
14238 else
14239 # We need a cross tool
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14241 $as_echo "pre-installed" >&6; }
14242 fi
14243 fi
14244
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14246 $as_echo_n "checking where to find the target nm... " >&6; }
14247 if test "x${build}" != "x${host}" ; then
14248 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14249 # We already found the complete path
14250 ac_dir=`dirname $NM_FOR_TARGET`
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14252 $as_echo "pre-installed in $ac_dir" >&6; }
14253 else
14254 # Canadian cross, just use what we found
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14256 $as_echo "pre-installed" >&6; }
14257 fi
14258 else
14259 ok=yes
14260 case " ${configdirs} " in
14261 *" binutils "*) ;;
14262 *) ok=no ;;
14263 esac
14264
14265 if test $ok = yes; then
14266 # An in-tree tool is available and we can use it
14267 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14269 $as_echo "just compiled" >&6; }
14270 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14271 # We already found the complete path
14272 ac_dir=`dirname $NM_FOR_TARGET`
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14274 $as_echo "pre-installed in $ac_dir" >&6; }
14275 elif test "x$target" = "x$host"; then
14276 # We can use an host tool
14277 NM_FOR_TARGET='$(NM)'
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14279 $as_echo "host tool" >&6; }
14280 else
14281 # We need a cross tool
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14283 $as_echo "pre-installed" >&6; }
14284 fi
14285 fi
14286
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14288 $as_echo_n "checking where to find the target objcopy... " >&6; }
14289 if test "x${build}" != "x${host}" ; then
14290 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14291 # We already found the complete path
14292 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14294 $as_echo "pre-installed in $ac_dir" >&6; }
14295 else
14296 # Canadian cross, just use what we found
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14298 $as_echo "pre-installed" >&6; }
14299 fi
14300 else
14301 ok=yes
14302 case " ${configdirs} " in
14303 *" binutils "*) ;;
14304 *) ok=no ;;
14305 esac
14306
14307 if test $ok = yes; then
14308 # An in-tree tool is available and we can use it
14309 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14311 $as_echo "just compiled" >&6; }
14312 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14313 # We already found the complete path
14314 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14316 $as_echo "pre-installed in $ac_dir" >&6; }
14317 elif test "x$target" = "x$host"; then
14318 # We can use an host tool
14319 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14321 $as_echo "host tool" >&6; }
14322 else
14323 # We need a cross tool
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14325 $as_echo "pre-installed" >&6; }
14326 fi
14327 fi
14328
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14330 $as_echo_n "checking where to find the target objdump... " >&6; }
14331 if test "x${build}" != "x${host}" ; then
14332 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14333 # We already found the complete path
14334 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14336 $as_echo "pre-installed in $ac_dir" >&6; }
14337 else
14338 # Canadian cross, just use what we found
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14340 $as_echo "pre-installed" >&6; }
14341 fi
14342 else
14343 ok=yes
14344 case " ${configdirs} " in
14345 *" binutils "*) ;;
14346 *) ok=no ;;
14347 esac
14348
14349 if test $ok = yes; then
14350 # An in-tree tool is available and we can use it
14351 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14353 $as_echo "just compiled" >&6; }
14354 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14355 # We already found the complete path
14356 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14358 $as_echo "pre-installed in $ac_dir" >&6; }
14359 elif test "x$target" = "x$host"; then
14360 # We can use an host tool
14361 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14363 $as_echo "host tool" >&6; }
14364 else
14365 # We need a cross tool
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14367 $as_echo "pre-installed" >&6; }
14368 fi
14369 fi
14370
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14372 $as_echo_n "checking where to find the target ranlib... " >&6; }
14373 if test "x${build}" != "x${host}" ; then
14374 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14375 # We already found the complete path
14376 ac_dir=`dirname $RANLIB_FOR_TARGET`
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14378 $as_echo "pre-installed in $ac_dir" >&6; }
14379 else
14380 # Canadian cross, just use what we found
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14382 $as_echo "pre-installed" >&6; }
14383 fi
14384 else
14385 ok=yes
14386 case " ${configdirs} " in
14387 *" binutils "*) ;;
14388 *) ok=no ;;
14389 esac
14390
14391 if test $ok = yes; then
14392 # An in-tree tool is available and we can use it
14393 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14395 $as_echo "just compiled" >&6; }
14396 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14397 # We already found the complete path
14398 ac_dir=`dirname $RANLIB_FOR_TARGET`
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14400 $as_echo "pre-installed in $ac_dir" >&6; }
14401 elif test "x$target" = "x$host"; then
14402 # We can use an host tool
14403 RANLIB_FOR_TARGET='$(RANLIB)'
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14405 $as_echo "host tool" >&6; }
14406 else
14407 # We need a cross tool
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14409 $as_echo "pre-installed" >&6; }
14410 fi
14411 fi
14412
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14414 $as_echo_n "checking where to find the target readelf... " >&6; }
14415 if test "x${build}" != "x${host}" ; then
14416 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14417 # We already found the complete path
14418 ac_dir=`dirname $READELF_FOR_TARGET`
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14420 $as_echo "pre-installed in $ac_dir" >&6; }
14421 else
14422 # Canadian cross, just use what we found
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14424 $as_echo "pre-installed" >&6; }
14425 fi
14426 else
14427 ok=yes
14428 case " ${configdirs} " in
14429 *" binutils "*) ;;
14430 *) ok=no ;;
14431 esac
14432
14433 if test $ok = yes; then
14434 # An in-tree tool is available and we can use it
14435 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14437 $as_echo "just compiled" >&6; }
14438 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14439 # We already found the complete path
14440 ac_dir=`dirname $READELF_FOR_TARGET`
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14442 $as_echo "pre-installed in $ac_dir" >&6; }
14443 elif test "x$target" = "x$host"; then
14444 # We can use an host tool
14445 READELF_FOR_TARGET='$(READELF)'
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14447 $as_echo "host tool" >&6; }
14448 else
14449 # We need a cross tool
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14451 $as_echo "pre-installed" >&6; }
14452 fi
14453 fi
14454
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14456 $as_echo_n "checking where to find the target strip... " >&6; }
14457 if test "x${build}" != "x${host}" ; then
14458 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14459 # We already found the complete path
14460 ac_dir=`dirname $STRIP_FOR_TARGET`
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14462 $as_echo "pre-installed in $ac_dir" >&6; }
14463 else
14464 # Canadian cross, just use what we found
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14466 $as_echo "pre-installed" >&6; }
14467 fi
14468 else
14469 ok=yes
14470 case " ${configdirs} " in
14471 *" binutils "*) ;;
14472 *) ok=no ;;
14473 esac
14474
14475 if test $ok = yes; then
14476 # An in-tree tool is available and we can use it
14477 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14479 $as_echo "just compiled" >&6; }
14480 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14481 # We already found the complete path
14482 ac_dir=`dirname $STRIP_FOR_TARGET`
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14484 $as_echo "pre-installed in $ac_dir" >&6; }
14485 elif test "x$target" = "x$host"; then
14486 # We can use an host tool
14487 STRIP_FOR_TARGET='$(STRIP)'
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14489 $as_echo "host tool" >&6; }
14490 else
14491 # We need a cross tool
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14493 $as_echo "pre-installed" >&6; }
14494 fi
14495 fi
14496
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14498 $as_echo_n "checking where to find the target windres... " >&6; }
14499 if test "x${build}" != "x${host}" ; then
14500 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14501 # We already found the complete path
14502 ac_dir=`dirname $WINDRES_FOR_TARGET`
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14504 $as_echo "pre-installed in $ac_dir" >&6; }
14505 else
14506 # Canadian cross, just use what we found
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14508 $as_echo "pre-installed" >&6; }
14509 fi
14510 else
14511 ok=yes
14512 case " ${configdirs} " in
14513 *" binutils "*) ;;
14514 *) ok=no ;;
14515 esac
14516
14517 if test $ok = yes; then
14518 # An in-tree tool is available and we can use it
14519 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14521 $as_echo "just compiled" >&6; }
14522 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14523 # We already found the complete path
14524 ac_dir=`dirname $WINDRES_FOR_TARGET`
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14526 $as_echo "pre-installed in $ac_dir" >&6; }
14527 elif test "x$target" = "x$host"; then
14528 # We can use an host tool
14529 WINDRES_FOR_TARGET='$(WINDRES)'
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14531 $as_echo "host tool" >&6; }
14532 else
14533 # We need a cross tool
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14535 $as_echo "pre-installed" >&6; }
14536 fi
14537 fi
14538
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14540 $as_echo_n "checking where to find the target windmc... " >&6; }
14541 if test "x${build}" != "x${host}" ; then
14542 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14543 # We already found the complete path
14544 ac_dir=`dirname $WINDMC_FOR_TARGET`
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14546 $as_echo "pre-installed in $ac_dir" >&6; }
14547 else
14548 # Canadian cross, just use what we found
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14550 $as_echo "pre-installed" >&6; }
14551 fi
14552 else
14553 ok=yes
14554 case " ${configdirs} " in
14555 *" binutils "*) ;;
14556 *) ok=no ;;
14557 esac
14558
14559 if test $ok = yes; then
14560 # An in-tree tool is available and we can use it
14561 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14563 $as_echo "just compiled" >&6; }
14564 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14565 # We already found the complete path
14566 ac_dir=`dirname $WINDMC_FOR_TARGET`
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14568 $as_echo "pre-installed in $ac_dir" >&6; }
14569 elif test "x$target" = "x$host"; then
14570 # We can use an host tool
14571 WINDMC_FOR_TARGET='$(WINDMC)'
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14573 $as_echo "host tool" >&6; }
14574 else
14575 # We need a cross tool
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14577 $as_echo "pre-installed" >&6; }
14578 fi
14579 fi
14580
14581
14582
14583
14584
14585 # Certain tools may need extra flags.
14586 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14587 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14588 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14589
14590 # When building target libraries, except in a Canadian cross, we use
14591 # the same toolchain as the compiler we just built.
14592 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14593 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14594 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14595 if test $host = $build; then
14596 case " $configdirs " in
14597 *" gcc "*)
14598 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14599 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14600 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14601 ;;
14602 esac
14603 fi
14604
14605
14606
14607
14608
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14610 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14611 # Check whether --enable-maintainer-mode was given.
14612 if test "${enable_maintainer_mode+set}" = set; then :
14613 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14614 else
14615 USE_MAINTAINER_MODE=no
14616 fi
14617
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14619 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14620
14621
14622 if test "$USE_MAINTAINER_MODE" = yes; then
14623 MAINTAINER_MODE_TRUE=
14624 MAINTAINER_MODE_FALSE='#'
14625 else
14626 MAINTAINER_MODE_TRUE='#'
14627 MAINTAINER_MODE_FALSE=
14628 fi
14629 MAINT=$MAINTAINER_MODE_TRUE
14630
14631 # ---------------------
14632 # GCC bootstrap support
14633 # ---------------------
14634
14635 # Stage specific cflags for build.
14636 stage1_cflags="-g"
14637 case $build in
14638 vax-*-*)
14639 case ${GCC} in
14640 yes) stage1_cflags="-g -Wa,-J" ;;
14641 *) stage1_cflags="-g -J" ;;
14642 esac ;;
14643 esac
14644
14645
14646
14647 # Enable --enable-checking in stage1 of the compiler.
14648 # Check whether --enable-stage1-checking was given.
14649 if test "${enable_stage1_checking+set}" = set; then :
14650 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14651 else
14652 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14653 # For --disable-checking or implicit --enable-checking=release, avoid
14654 # setting --enable-checking=gc in the default stage1 checking for LTO
14655 # bootstraps. See PR62077.
14656 case $BUILD_CONFIG in
14657 *lto*)
14658 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14659 *)
14660 stage1_checking=--enable-checking=yes,types;;
14661 esac
14662 if test "x$enable_checking" = x && \
14663 test -d ${srcdir}/gcc && \
14664 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14665 stage1_checking=--enable-checking=yes,types,extra
14666 fi
14667 else
14668 stage1_checking=--enable-checking=$enable_checking,types
14669 fi
14670 fi
14671
14672
14673
14674 # Enable -Werror in bootstrap stage2 and later.
14675 # Check whether --enable-werror was given.
14676 if test "${enable_werror+set}" = set; then :
14677 enableval=$enable_werror;
14678 else
14679 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14680 enable_werror=yes
14681 else
14682 enable_werror=no
14683 fi
14684 fi
14685
14686 case ${enable_werror} in
14687 yes) stage2_werror_flag="--enable-werror-always" ;;
14688 *) stage2_werror_flag="" ;;
14689 esac
14690
14691
14692 # Enable --enable-host-shared.
14693 # Check whether --enable-host-shared was given.
14694 if test "${enable_host_shared+set}" = set; then :
14695 enableval=$enable_host_shared; host_shared=$enableval
14696 else
14697 host_shared=no
14698 fi
14699
14700
14701
14702 # PR jit/64780: Require the user to explicitly specify
14703 # --enable-host-shared if the jit is enabled, hinting
14704 # that they might want to do a separate configure/build of
14705 # the jit, to avoid users from slowing down the rest of the
14706 # compiler by enabling the jit.
14707 if test ${host_shared} = "no" ; then
14708 case "${enable_languages}" in
14709 *jit*)
14710 as_fn_error "
14711 Enabling language \"jit\" requires --enable-host-shared.
14712
14713 --enable-host-shared typically slows the rest of the compiler down by
14714 a few %, so you must explicitly enable it.
14715
14716 If you want to build both the jit and the regular compiler, it is often
14717 best to do this via two separate configure/builds, in separate
14718 directories, to avoid imposing the performance cost of
14719 --enable-host-shared on the regular compiler." "$LINENO" 5
14720 ;;
14721 *)
14722 ;;
14723 esac
14724 fi
14725
14726 # Specify what files to not compare during bootstrap.
14727
14728 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14729 case "$target" in
14730 hppa*64*-*-hpux*) ;;
14731 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14732 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14733 esac
14734
14735
14736 ac_config_files="$ac_config_files Makefile"
14737
14738 cat >confcache <<\_ACEOF
14739 # This file is a shell script that caches the results of configure
14740 # tests run on this system so they can be shared between configure
14741 # scripts and configure runs, see configure's option --config-cache.
14742 # It is not useful on other systems. If it contains results you don't
14743 # want to keep, you may remove or edit it.
14744 #
14745 # config.status only pays attention to the cache file if you give it
14746 # the --recheck option to rerun configure.
14747 #
14748 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14749 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14750 # following values.
14751
14752 _ACEOF
14753
14754 # The following way of writing the cache mishandles newlines in values,
14755 # but we know of no workaround that is simple, portable, and efficient.
14756 # So, we kill variables containing newlines.
14757 # Ultrix sh set writes to stderr and can't be redirected directly,
14758 # and sets the high bit in the cache file unless we assign to the vars.
14759 (
14760 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14761 eval ac_val=\$$ac_var
14762 case $ac_val in #(
14763 *${as_nl}*)
14764 case $ac_var in #(
14765 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14767 esac
14768 case $ac_var in #(
14769 _ | IFS | as_nl) ;; #(
14770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14771 *) { eval $ac_var=; unset $ac_var;} ;;
14772 esac ;;
14773 esac
14774 done
14775
14776 (set) 2>&1 |
14777 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14778 *${as_nl}ac_space=\ *)
14779 # `set' does not quote correctly, so add quotes: double-quote
14780 # substitution turns \\\\ into \\, and sed turns \\ into \.
14781 sed -n \
14782 "s/'/'\\\\''/g;
14783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14784 ;; #(
14785 *)
14786 # `set' quotes correctly as required by POSIX, so do not add quotes.
14787 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14788 ;;
14789 esac |
14790 sort
14791 ) |
14792 sed '
14793 /^ac_cv_env_/b end
14794 t clear
14795 :clear
14796 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14797 t end
14798 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14799 :end' >>confcache
14800 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14801 if test -w "$cache_file"; then
14802 test "x$cache_file" != "x/dev/null" &&
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14804 $as_echo "$as_me: updating cache $cache_file" >&6;}
14805 cat confcache >$cache_file
14806 else
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14808 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14809 fi
14810 fi
14811 rm -f confcache
14812
14813 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14814 # Let make expand exec_prefix.
14815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14816
14817 # Transform confdefs.h into DEFS.
14818 # Protect against shell expansion while executing Makefile rules.
14819 # Protect against Makefile macro expansion.
14820 #
14821 # If the first sed substitution is executed (which looks for macros that
14822 # take arguments), then branch to the quote section. Otherwise,
14823 # look for a macro that doesn't take arguments.
14824 ac_script='
14825 :mline
14826 /\\$/{
14827 N
14828 s,\\\n,,
14829 b mline
14830 }
14831 t clear
14832 :clear
14833 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14834 t quote
14835 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14836 t quote
14837 b any
14838 :quote
14839 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14840 s/\[/\\&/g
14841 s/\]/\\&/g
14842 s/\$/$$/g
14843 H
14844 :any
14845 ${
14846 g
14847 s/^\n//
14848 s/\n/ /g
14849 p
14850 }
14851 '
14852 DEFS=`sed -n "$ac_script" confdefs.h`
14853
14854
14855 ac_libobjs=
14856 ac_ltlibobjs=
14857 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14858 # 1. Remove the extension, and $U if already installed.
14859 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14860 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14861 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14862 # will be set to the directory where LIBOBJS objects are built.
14863 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14864 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14865 done
14866 LIBOBJS=$ac_libobjs
14867
14868 LTLIBOBJS=$ac_ltlibobjs
14869
14870
14871
14872 : ${CONFIG_STATUS=./config.status}
14873 ac_write_fail=0
14874 ac_clean_files_save=$ac_clean_files
14875 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14877 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14878 as_write_fail=0
14879 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14880 #! $SHELL
14881 # Generated by $as_me.
14882 # Run this file to recreate the current configuration.
14883 # Compiler output produced by configure, useful for debugging
14884 # configure, is in config.log if it exists.
14885
14886 debug=false
14887 ac_cs_recheck=false
14888 ac_cs_silent=false
14889
14890 SHELL=\${CONFIG_SHELL-$SHELL}
14891 export SHELL
14892 _ASEOF
14893 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14894 ## -------------------- ##
14895 ## M4sh Initialization. ##
14896 ## -------------------- ##
14897
14898 # Be more Bourne compatible
14899 DUALCASE=1; export DUALCASE # for MKS sh
14900 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14901 emulate sh
14902 NULLCMD=:
14903 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14904 # is contrary to our usage. Disable this feature.
14905 alias -g '${1+"$@"}'='"$@"'
14906 setopt NO_GLOB_SUBST
14907 else
14908 case `(set -o) 2>/dev/null` in #(
14909 *posix*) :
14910 set -o posix ;; #(
14911 *) :
14912 ;;
14913 esac
14914 fi
14915
14916
14917 as_nl='
14918 '
14919 export as_nl
14920 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14921 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14922 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14923 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14924 # Prefer a ksh shell builtin over an external printf program on Solaris,
14925 # but without wasting forks for bash or zsh.
14926 if test -z "$BASH_VERSION$ZSH_VERSION" \
14927 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14928 as_echo='print -r --'
14929 as_echo_n='print -rn --'
14930 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14931 as_echo='printf %s\n'
14932 as_echo_n='printf %s'
14933 else
14934 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14935 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14936 as_echo_n='/usr/ucb/echo -n'
14937 else
14938 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14939 as_echo_n_body='eval
14940 arg=$1;
14941 case $arg in #(
14942 *"$as_nl"*)
14943 expr "X$arg" : "X\\(.*\\)$as_nl";
14944 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14945 esac;
14946 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14947 '
14948 export as_echo_n_body
14949 as_echo_n='sh -c $as_echo_n_body as_echo'
14950 fi
14951 export as_echo_body
14952 as_echo='sh -c $as_echo_body as_echo'
14953 fi
14954
14955 # The user is always right.
14956 if test "${PATH_SEPARATOR+set}" != set; then
14957 PATH_SEPARATOR=:
14958 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14959 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14960 PATH_SEPARATOR=';'
14961 }
14962 fi
14963
14964
14965 # IFS
14966 # We need space, tab and new line, in precisely that order. Quoting is
14967 # there to prevent editors from complaining about space-tab.
14968 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14969 # splitting by setting IFS to empty value.)
14970 IFS=" "" $as_nl"
14971
14972 # Find who we are. Look in the path if we contain no directory separator.
14973 case $0 in #((
14974 *[\\/]* ) as_myself=$0 ;;
14975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14977 do
14978 IFS=$as_save_IFS
14979 test -z "$as_dir" && as_dir=.
14980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14981 done
14982 IFS=$as_save_IFS
14983
14984 ;;
14985 esac
14986 # We did not find ourselves, most probably we were run as `sh COMMAND'
14987 # in which case we are not to be found in the path.
14988 if test "x$as_myself" = x; then
14989 as_myself=$0
14990 fi
14991 if test ! -f "$as_myself"; then
14992 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14993 exit 1
14994 fi
14995
14996 # Unset variables that we do not need and which cause bugs (e.g. in
14997 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14998 # suppresses any "Segmentation fault" message there. '((' could
14999 # trigger a bug in pdksh 5.2.14.
15000 for as_var in BASH_ENV ENV MAIL MAILPATH
15001 do eval test x\${$as_var+set} = xset \
15002 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15003 done
15004 PS1='$ '
15005 PS2='> '
15006 PS4='+ '
15007
15008 # NLS nuisances.
15009 LC_ALL=C
15010 export LC_ALL
15011 LANGUAGE=C
15012 export LANGUAGE
15013
15014 # CDPATH.
15015 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15016
15017
15018 # as_fn_error ERROR [LINENO LOG_FD]
15019 # ---------------------------------
15020 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15021 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15022 # script with status $?, using 1 if that was 0.
15023 as_fn_error ()
15024 {
15025 as_status=$?; test $as_status -eq 0 && as_status=1
15026 if test "$3"; then
15027 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15028 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15029 fi
15030 $as_echo "$as_me: error: $1" >&2
15031 as_fn_exit $as_status
15032 } # as_fn_error
15033
15034
15035 # as_fn_set_status STATUS
15036 # -----------------------
15037 # Set $? to STATUS, without forking.
15038 as_fn_set_status ()
15039 {
15040 return $1
15041 } # as_fn_set_status
15042
15043 # as_fn_exit STATUS
15044 # -----------------
15045 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15046 as_fn_exit ()
15047 {
15048 set +e
15049 as_fn_set_status $1
15050 exit $1
15051 } # as_fn_exit
15052
15053 # as_fn_unset VAR
15054 # ---------------
15055 # Portably unset VAR.
15056 as_fn_unset ()
15057 {
15058 { eval $1=; unset $1;}
15059 }
15060 as_unset=as_fn_unset
15061 # as_fn_append VAR VALUE
15062 # ----------------------
15063 # Append the text in VALUE to the end of the definition contained in VAR. Take
15064 # advantage of any shell optimizations that allow amortized linear growth over
15065 # repeated appends, instead of the typical quadratic growth present in naive
15066 # implementations.
15067 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15068 eval 'as_fn_append ()
15069 {
15070 eval $1+=\$2
15071 }'
15072 else
15073 as_fn_append ()
15074 {
15075 eval $1=\$$1\$2
15076 }
15077 fi # as_fn_append
15078
15079 # as_fn_arith ARG...
15080 # ------------------
15081 # Perform arithmetic evaluation on the ARGs, and store the result in the
15082 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15083 # must be portable across $(()) and expr.
15084 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15085 eval 'as_fn_arith ()
15086 {
15087 as_val=$(( $* ))
15088 }'
15089 else
15090 as_fn_arith ()
15091 {
15092 as_val=`expr "$@" || test $? -eq 1`
15093 }
15094 fi # as_fn_arith
15095
15096
15097 if expr a : '\(a\)' >/dev/null 2>&1 &&
15098 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15099 as_expr=expr
15100 else
15101 as_expr=false
15102 fi
15103
15104 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15105 as_basename=basename
15106 else
15107 as_basename=false
15108 fi
15109
15110 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15111 as_dirname=dirname
15112 else
15113 as_dirname=false
15114 fi
15115
15116 as_me=`$as_basename -- "$0" ||
15117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15118 X"$0" : 'X\(//\)$' \| \
15119 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15120 $as_echo X/"$0" |
15121 sed '/^.*\/\([^/][^/]*\)\/*$/{
15122 s//\1/
15123 q
15124 }
15125 /^X\/\(\/\/\)$/{
15126 s//\1/
15127 q
15128 }
15129 /^X\/\(\/\).*/{
15130 s//\1/
15131 q
15132 }
15133 s/.*/./; q'`
15134
15135 # Avoid depending upon Character Ranges.
15136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15139 as_cr_digits='0123456789'
15140 as_cr_alnum=$as_cr_Letters$as_cr_digits
15141
15142 ECHO_C= ECHO_N= ECHO_T=
15143 case `echo -n x` in #(((((
15144 -n*)
15145 case `echo 'xy\c'` in
15146 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15147 xy) ECHO_C='\c';;
15148 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15149 ECHO_T=' ';;
15150 esac;;
15151 *)
15152 ECHO_N='-n';;
15153 esac
15154
15155 rm -f conf$$ conf$$.exe conf$$.file
15156 if test -d conf$$.dir; then
15157 rm -f conf$$.dir/conf$$.file
15158 else
15159 rm -f conf$$.dir
15160 mkdir conf$$.dir 2>/dev/null
15161 fi
15162 if (echo >conf$$.file) 2>/dev/null; then
15163 if ln -s conf$$.file conf$$ 2>/dev/null; then
15164 as_ln_s='ln -s'
15165 # ... but there are two gotchas:
15166 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15167 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15168 # In both cases, we have to default to `cp -p'.
15169 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15170 as_ln_s='cp -p'
15171 elif ln conf$$.file conf$$ 2>/dev/null; then
15172 as_ln_s=ln
15173 else
15174 as_ln_s='cp -p'
15175 fi
15176 else
15177 as_ln_s='cp -p'
15178 fi
15179 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15180 rmdir conf$$.dir 2>/dev/null
15181
15182
15183 # as_fn_mkdir_p
15184 # -------------
15185 # Create "$as_dir" as a directory, including parents if necessary.
15186 as_fn_mkdir_p ()
15187 {
15188
15189 case $as_dir in #(
15190 -*) as_dir=./$as_dir;;
15191 esac
15192 test -d "$as_dir" || eval $as_mkdir_p || {
15193 as_dirs=
15194 while :; do
15195 case $as_dir in #(
15196 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15197 *) as_qdir=$as_dir;;
15198 esac
15199 as_dirs="'$as_qdir' $as_dirs"
15200 as_dir=`$as_dirname -- "$as_dir" ||
15201 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15202 X"$as_dir" : 'X\(//\)[^/]' \| \
15203 X"$as_dir" : 'X\(//\)$' \| \
15204 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15205 $as_echo X"$as_dir" |
15206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15207 s//\1/
15208 q
15209 }
15210 /^X\(\/\/\)[^/].*/{
15211 s//\1/
15212 q
15213 }
15214 /^X\(\/\/\)$/{
15215 s//\1/
15216 q
15217 }
15218 /^X\(\/\).*/{
15219 s//\1/
15220 q
15221 }
15222 s/.*/./; q'`
15223 test -d "$as_dir" && break
15224 done
15225 test -z "$as_dirs" || eval "mkdir $as_dirs"
15226 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15227
15228
15229 } # as_fn_mkdir_p
15230 if mkdir -p . 2>/dev/null; then
15231 as_mkdir_p='mkdir -p "$as_dir"'
15232 else
15233 test -d ./-p && rmdir ./-p
15234 as_mkdir_p=false
15235 fi
15236
15237 if test -x / >/dev/null 2>&1; then
15238 as_test_x='test -x'
15239 else
15240 if ls -dL / >/dev/null 2>&1; then
15241 as_ls_L_option=L
15242 else
15243 as_ls_L_option=
15244 fi
15245 as_test_x='
15246 eval sh -c '\''
15247 if test -d "$1"; then
15248 test -d "$1/.";
15249 else
15250 case $1 in #(
15251 -*)set "./$1";;
15252 esac;
15253 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15254 ???[sx]*):;;*)false;;esac;fi
15255 '\'' sh
15256 '
15257 fi
15258 as_executable_p=$as_test_x
15259
15260 # Sed expression to map a string onto a valid CPP name.
15261 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15262
15263 # Sed expression to map a string onto a valid variable name.
15264 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15265
15266
15267 exec 6>&1
15268 ## ----------------------------------- ##
15269 ## Main body of $CONFIG_STATUS script. ##
15270 ## ----------------------------------- ##
15271 _ASEOF
15272 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15273
15274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15275 # Save the log message, to keep $0 and so on meaningful, and to
15276 # report actual input values of CONFIG_FILES etc. instead of their
15277 # values after options handling.
15278 ac_log="
15279 This file was extended by $as_me, which was
15280 generated by GNU Autoconf 2.64. Invocation command line was
15281
15282 CONFIG_FILES = $CONFIG_FILES
15283 CONFIG_HEADERS = $CONFIG_HEADERS
15284 CONFIG_LINKS = $CONFIG_LINKS
15285 CONFIG_COMMANDS = $CONFIG_COMMANDS
15286 $ $0 $@
15287
15288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15289 "
15290
15291 _ACEOF
15292
15293 case $ac_config_files in *"
15294 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15295 esac
15296
15297
15298
15299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15300 # Files that config.status was made for.
15301 config_files="$ac_config_files"
15302
15303 _ACEOF
15304
15305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15306 ac_cs_usage="\
15307 \`$as_me' instantiates files and other configuration actions
15308 from templates according to the current configuration. Unless the files
15309 and actions are specified as TAGs, all are instantiated by default.
15310
15311 Usage: $0 [OPTION]... [TAG]...
15312
15313 -h, --help print this help, then exit
15314 -V, --version print version number and configuration settings, then exit
15315 -q, --quiet, --silent
15316 do not print progress messages
15317 -d, --debug don't remove temporary files
15318 --recheck update $as_me by reconfiguring in the same conditions
15319 --file=FILE[:TEMPLATE]
15320 instantiate the configuration file FILE
15321
15322 Configuration files:
15323 $config_files
15324
15325 Report bugs to the package provider."
15326
15327 _ACEOF
15328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15329 ac_cs_version="\\
15330 config.status
15331 configured by $0, generated by GNU Autoconf 2.64,
15332 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15333
15334 Copyright (C) 2009 Free Software Foundation, Inc.
15335 This config.status script is free software; the Free Software Foundation
15336 gives unlimited permission to copy, distribute and modify it."
15337
15338 ac_pwd='$ac_pwd'
15339 srcdir='$srcdir'
15340 INSTALL='$INSTALL'
15341 AWK='$AWK'
15342 test -n "\$AWK" || AWK=awk
15343 _ACEOF
15344
15345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15346 # The default lists apply if the user does not specify any file.
15347 ac_need_defaults=:
15348 while test $# != 0
15349 do
15350 case $1 in
15351 --*=*)
15352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15354 ac_shift=:
15355 ;;
15356 *)
15357 ac_option=$1
15358 ac_optarg=$2
15359 ac_shift=shift
15360 ;;
15361 esac
15362
15363 case $ac_option in
15364 # Handling of the options.
15365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15366 ac_cs_recheck=: ;;
15367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15368 $as_echo "$ac_cs_version"; exit ;;
15369 --debug | --debu | --deb | --de | --d | -d )
15370 debug=: ;;
15371 --file | --fil | --fi | --f )
15372 $ac_shift
15373 case $ac_optarg in
15374 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15375 esac
15376 as_fn_append CONFIG_FILES " '$ac_optarg'"
15377 ac_need_defaults=false;;
15378 --he | --h | --help | --hel | -h )
15379 $as_echo "$ac_cs_usage"; exit ;;
15380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15381 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15382 ac_cs_silent=: ;;
15383
15384 # This is an error.
15385 -*) as_fn_error "unrecognized option: \`$1'
15386 Try \`$0 --help' for more information." ;;
15387
15388 *) as_fn_append ac_config_targets " $1"
15389 ac_need_defaults=false ;;
15390
15391 esac
15392 shift
15393 done
15394
15395 ac_configure_extra_args=
15396
15397 if $ac_cs_silent; then
15398 exec 6>/dev/null
15399 ac_configure_extra_args="$ac_configure_extra_args --silent"
15400 fi
15401
15402 _ACEOF
15403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15404 if \$ac_cs_recheck; then
15405 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15406 shift
15407 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15408 CONFIG_SHELL='$SHELL'
15409 export CONFIG_SHELL
15410 exec "\$@"
15411 fi
15412
15413 _ACEOF
15414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15415 exec 5>>config.log
15416 {
15417 echo
15418 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15419 ## Running $as_me. ##
15420 _ASBOX
15421 $as_echo "$ac_log"
15422 } >&5
15423
15424 _ACEOF
15425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15426 #
15427 # INIT-COMMANDS
15428 #
15429 extrasub_build="$extrasub_build"
15430 extrasub_host="$extrasub_host"
15431 extrasub_target="$extrasub_target"
15432
15433 _ACEOF
15434
15435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15436
15437 # Handling of arguments.
15438 for ac_config_target in $ac_config_targets
15439 do
15440 case $ac_config_target in
15441 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15442
15443 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15444 esac
15445 done
15446
15447
15448 # If the user did not use the arguments to specify the items to instantiate,
15449 # then the envvar interface is used. Set only those that are not.
15450 # We use the long form for the default assignment because of an extremely
15451 # bizarre bug on SunOS 4.1.3.
15452 if $ac_need_defaults; then
15453 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15454 fi
15455
15456 # Have a temporary directory for convenience. Make it in the build tree
15457 # simply because there is no reason against having it here, and in addition,
15458 # creating and moving files from /tmp can sometimes cause problems.
15459 # Hook for its removal unless debugging.
15460 # Note that there is a small window in which the directory will not be cleaned:
15461 # after its creation but before its name has been assigned to `$tmp'.
15462 $debug ||
15463 {
15464 tmp=
15465 trap 'exit_status=$?
15466 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15467 ' 0
15468 trap 'as_fn_exit 1' 1 2 13 15
15469 }
15470 # Create a (secure) tmp directory for tmp files.
15471
15472 {
15473 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15474 test -n "$tmp" && test -d "$tmp"
15475 } ||
15476 {
15477 tmp=./conf$$-$RANDOM
15478 (umask 077 && mkdir "$tmp")
15479 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15480
15481 # Set up the scripts for CONFIG_FILES section.
15482 # No need to generate them if there are no CONFIG_FILES.
15483 # This happens for instance with `./config.status config.h'.
15484 if test -n "$CONFIG_FILES"; then
15485
15486 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15487 ac_cs_awk_getline=:
15488 ac_cs_awk_pipe_init=
15489 ac_cs_awk_read_file='
15490 while ((getline aline < (F[key])) > 0)
15491 print(aline)
15492 close(F[key])'
15493 ac_cs_awk_pipe_fini=
15494 else
15495 ac_cs_awk_getline=false
15496 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15497 ac_cs_awk_read_file='
15498 print "|#_!!_#|"
15499 print "cat " F[key] " &&"
15500 '$ac_cs_awk_pipe_init
15501 # The final `:' finishes the AND list.
15502 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15503 fi
15504 ac_cr=`echo X | tr X '\015'`
15505 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15506 # But we know of no other shell where ac_cr would be empty at this
15507 # point, so we can use a bashism as a fallback.
15508 if test "x$ac_cr" = x; then
15509 eval ac_cr=\$\'\\r\'
15510 fi
15511 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15512 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15513 ac_cs_awk_cr='\r'
15514 else
15515 ac_cs_awk_cr=$ac_cr
15516 fi
15517
15518 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15519 _ACEOF
15520
15521 # Create commands to substitute file output variables.
15522 {
15523 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15524 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15525 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15526 echo "_ACAWK" &&
15527 echo "_ACEOF"
15528 } >conf$$files.sh &&
15529 . ./conf$$files.sh ||
15530 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15531 rm -f conf$$files.sh
15532
15533 {
15534 echo "cat >conf$$subs.awk <<_ACEOF" &&
15535 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15536 echo "_ACEOF"
15537 } >conf$$subs.sh ||
15538 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15539 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15540 ac_delim='%!_!# '
15541 for ac_last_try in false false false false false :; do
15542 . ./conf$$subs.sh ||
15543 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15544
15545 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15546 if test $ac_delim_n = $ac_delim_num; then
15547 break
15548 elif $ac_last_try; then
15549 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15550 else
15551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15552 fi
15553 done
15554 rm -f conf$$subs.sh
15555
15556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15557 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15558 _ACEOF
15559 sed -n '
15560 h
15561 s/^/S["/; s/!.*/"]=/
15562 p
15563 g
15564 s/^[^!]*!//
15565 :repl
15566 t repl
15567 s/'"$ac_delim"'$//
15568 t delim
15569 :nl
15570 h
15571 s/\(.\{148\}\).*/\1/
15572 t more1
15573 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15574 p
15575 n
15576 b repl
15577 :more1
15578 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15579 p
15580 g
15581 s/.\{148\}//
15582 t nl
15583 :delim
15584 h
15585 s/\(.\{148\}\).*/\1/
15586 t more2
15587 s/["\\]/\\&/g; s/^/"/; s/$/"/
15588 p
15589 b
15590 :more2
15591 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15592 p
15593 g
15594 s/.\{148\}//
15595 t delim
15596 ' <conf$$subs.awk | sed '
15597 /^[^""]/{
15598 N
15599 s/\n//
15600 }
15601 ' >>$CONFIG_STATUS || ac_write_fail=1
15602 rm -f conf$$subs.awk
15603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15604 _ACAWK
15605 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15606 for (key in S) S_is_set[key] = 1
15607 FS = "\a"
15608 \$ac_cs_awk_pipe_init
15609 }
15610 {
15611 line = $ 0
15612 nfields = split(line, field, "@")
15613 substed = 0
15614 len = length(field[1])
15615 for (i = 2; i < nfields; i++) {
15616 key = field[i]
15617 keylen = length(key)
15618 if (S_is_set[key]) {
15619 value = S[key]
15620 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15621 len += length(value) + length(field[++i])
15622 substed = 1
15623 } else
15624 len += 1 + keylen
15625 }
15626 if (nfields == 3 && !substed) {
15627 key = field[2]
15628 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15629 \$ac_cs_awk_read_file
15630 next
15631 }
15632 }
15633 print line
15634 }
15635 \$ac_cs_awk_pipe_fini
15636 _ACAWK
15637 _ACEOF
15638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15639 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15640 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15641 else
15642 cat
15643 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15644 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15645 _ACEOF
15646
15647 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15648 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15649 # trailing colons and then remove the whole line if VPATH becomes empty
15650 # (actually we leave an empty line to preserve line numbers).
15651 if test "x$srcdir" = x.; then
15652 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15653 s/:*\$(srcdir):*/:/
15654 s/:*\${srcdir}:*/:/
15655 s/:*@srcdir@:*/:/
15656 s/^\([^=]*=[ ]*\):*/\1/
15657 s/:*$//
15658 s/^[^=]*=[ ]*$//
15659 }'
15660 fi
15661
15662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15663 fi # test -n "$CONFIG_FILES"
15664
15665
15666 eval set X " :F $CONFIG_FILES "
15667 shift
15668 for ac_tag
15669 do
15670 case $ac_tag in
15671 :[FHLC]) ac_mode=$ac_tag; continue;;
15672 esac
15673 case $ac_mode$ac_tag in
15674 :[FHL]*:*);;
15675 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15676 :[FH]-) ac_tag=-:-;;
15677 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15678 esac
15679 ac_save_IFS=$IFS
15680 IFS=:
15681 set x $ac_tag
15682 IFS=$ac_save_IFS
15683 shift
15684 ac_file=$1
15685 shift
15686
15687 case $ac_mode in
15688 :L) ac_source=$1;;
15689 :[FH])
15690 ac_file_inputs=
15691 for ac_f
15692 do
15693 case $ac_f in
15694 -) ac_f="$tmp/stdin";;
15695 *) # Look for the file first in the build tree, then in the source tree
15696 # (if the path is not absolute). The absolute path cannot be DOS-style,
15697 # because $ac_f cannot contain `:'.
15698 test -f "$ac_f" ||
15699 case $ac_f in
15700 [\\/$]*) false;;
15701 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15702 esac ||
15703 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15704 esac
15705 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15706 as_fn_append ac_file_inputs " '$ac_f'"
15707 done
15708
15709 # Let's still pretend it is `configure' which instantiates (i.e., don't
15710 # use $as_me), people would be surprised to read:
15711 # /* config.h. Generated by config.status. */
15712 configure_input='Generated from '`
15713 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15714 `' by configure.'
15715 if test x"$ac_file" != x-; then
15716 configure_input="$ac_file. $configure_input"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15718 $as_echo "$as_me: creating $ac_file" >&6;}
15719 fi
15720 # Neutralize special characters interpreted by sed in replacement strings.
15721 case $configure_input in #(
15722 *\&* | *\|* | *\\* )
15723 ac_sed_conf_input=`$as_echo "$configure_input" |
15724 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15725 *) ac_sed_conf_input=$configure_input;;
15726 esac
15727
15728 case $ac_tag in
15729 *:-:* | *:-) cat >"$tmp/stdin" \
15730 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15731 esac
15732 ;;
15733 esac
15734
15735 ac_dir=`$as_dirname -- "$ac_file" ||
15736 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15737 X"$ac_file" : 'X\(//\)[^/]' \| \
15738 X"$ac_file" : 'X\(//\)$' \| \
15739 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15740 $as_echo X"$ac_file" |
15741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15742 s//\1/
15743 q
15744 }
15745 /^X\(\/\/\)[^/].*/{
15746 s//\1/
15747 q
15748 }
15749 /^X\(\/\/\)$/{
15750 s//\1/
15751 q
15752 }
15753 /^X\(\/\).*/{
15754 s//\1/
15755 q
15756 }
15757 s/.*/./; q'`
15758 as_dir="$ac_dir"; as_fn_mkdir_p
15759 ac_builddir=.
15760
15761 case "$ac_dir" in
15762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15763 *)
15764 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15765 # A ".." for each directory in $ac_dir_suffix.
15766 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15767 case $ac_top_builddir_sub in
15768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15770 esac ;;
15771 esac
15772 ac_abs_top_builddir=$ac_pwd
15773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15774 # for backward compatibility:
15775 ac_top_builddir=$ac_top_build_prefix
15776
15777 case $srcdir in
15778 .) # We are building in place.
15779 ac_srcdir=.
15780 ac_top_srcdir=$ac_top_builddir_sub
15781 ac_abs_top_srcdir=$ac_pwd ;;
15782 [\\/]* | ?:[\\/]* ) # Absolute name.
15783 ac_srcdir=$srcdir$ac_dir_suffix;
15784 ac_top_srcdir=$srcdir
15785 ac_abs_top_srcdir=$srcdir ;;
15786 *) # Relative name.
15787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15788 ac_top_srcdir=$ac_top_build_prefix$srcdir
15789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15790 esac
15791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15792
15793
15794 case $ac_mode in
15795 :F)
15796 #
15797 # CONFIG_FILE
15798 #
15799
15800 case $INSTALL in
15801 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15802 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15803 esac
15804 _ACEOF
15805
15806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15807 # If the template does not know about datarootdir, expand it.
15808 # FIXME: This hack should be removed a few years after 2.60.
15809 ac_datarootdir_hack=; ac_datarootdir_seen=
15810 ac_sed_dataroot='
15811 /datarootdir/ {
15812 p
15813 q
15814 }
15815 /@datadir@/p
15816 /@docdir@/p
15817 /@infodir@/p
15818 /@localedir@/p
15819 /@mandir@/p'
15820 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15821 *datarootdir*) ac_datarootdir_seen=yes;;
15822 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15824 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15825 _ACEOF
15826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15827 ac_datarootdir_hack='
15828 s&@datadir@&$datadir&g
15829 s&@docdir@&$docdir&g
15830 s&@infodir@&$infodir&g
15831 s&@localedir@&$localedir&g
15832 s&@mandir@&$mandir&g
15833 s&\\\${datarootdir}&$datarootdir&g' ;;
15834 esac
15835 _ACEOF
15836
15837 # Neutralize VPATH when `$srcdir' = `.'.
15838 # Shell code in configure.ac might set extrasub.
15839 # FIXME: do we really want to maintain this feature?
15840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15841 ac_sed_extra="$ac_vpsub
15842 $extrasub
15843 _ACEOF
15844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15845 :t
15846 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15847 s|@configure_input@|$ac_sed_conf_input|;t t
15848 s&@top_builddir@&$ac_top_builddir_sub&;t t
15849 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15850 s&@srcdir@&$ac_srcdir&;t t
15851 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15852 s&@top_srcdir@&$ac_top_srcdir&;t t
15853 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15854 s&@builddir@&$ac_builddir&;t t
15855 s&@abs_builddir@&$ac_abs_builddir&;t t
15856 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15857 s&@INSTALL@&$ac_INSTALL&;t t
15858 $ac_datarootdir_hack
15859 "
15860 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15861 if $ac_cs_awk_getline; then
15862 $AWK -f "$tmp/subs.awk"
15863 else
15864 $AWK -f "$tmp/subs.awk" | $SHELL
15865 fi >$tmp/out \
15866 || as_fn_error "could not create $ac_file" "$LINENO" 5
15867
15868 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15869 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15872 which seems to be undefined. Please make sure it is defined." >&5
15873 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15874 which seems to be undefined. Please make sure it is defined." >&2;}
15875
15876 rm -f "$tmp/stdin"
15877 case $ac_file in
15878 -) cat "$tmp/out" && rm -f "$tmp/out";;
15879 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15880 esac \
15881 || as_fn_error "could not create $ac_file" "$LINENO" 5
15882 ;;
15883
15884
15885
15886 esac
15887
15888
15889 case $ac_file$ac_mode in
15890 "Makefile":F) sed "$extrasub_build" Makefile |
15891 sed "$extrasub_host" |
15892 sed "$extrasub_target" > mf$$
15893 mv -f mf$$ Makefile ;;
15894
15895 esac
15896 done # for ac_tag
15897
15898
15899 as_fn_exit 0
15900 _ACEOF
15901 ac_clean_files=$ac_clean_files_save
15902
15903 test $ac_write_fail = 0 ||
15904 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15905
15906
15907 # configure is writing to config.log, and then calls config.status.
15908 # config.status does its own redirection, appending to config.log.
15909 # Unfortunately, on DOS this fails, as config.log is still kept open
15910 # by configure, so config.status won't be able to write to it; its
15911 # output is simply discarded. So we exec the FD to /dev/null,
15912 # effectively closing config.log, so it can be properly (re)opened and
15913 # appended to by config.status. When coming back to configure, we
15914 # need to make the FD available again.
15915 if test "$no_create" != yes; then
15916 ac_cs_success=:
15917 ac_config_status_args=
15918 test "$silent" = yes &&
15919 ac_config_status_args="$ac_config_status_args --quiet"
15920 exec 5>/dev/null
15921 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15922 exec 5>>config.log
15923 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15924 # would make configure fail if this is the last instruction.
15925 $ac_cs_success || as_fn_exit $?
15926 fi
15927 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15929 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15930 fi
15931