[multiple changes]
[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 POSTSTAGE1_CONFIGURE_FLAGS
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 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
596 NM
597 LIPO
598 LD
599 DLLTOOL
600 AS
601 AR
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
606 LEX
607 M4
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 stage1_languages
646 extra_host_libiberty_configure_flags
647 clooginc
648 clooglibs
649 pplinc
650 ppllibs
651 poststage1_ldflags
652 poststage1_libs
653 stage1_libs
654 stage1_ldflags
655 extra_mpc_mpfr_configure_flags
656 extra_mpc_gmp_configure_flags
657 extra_mpfr_configure_flags
658 gmpinc
659 gmplibs
660 do_compare
661 GNATMAKE
662 GNATBIND
663 ac_ct_CXX
664 CXXFLAGS
665 CXX
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
672 CC
673 EXTRA_CONFIGARGS_LIBJAVA
674 target_subdir
675 host_subdir
676 build_subdir
677 build_libsubdir
678 AWK
679 SED
680 LN_S
681 LN
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 target_os
686 target_vendor
687 target_cpu
688 target
689 host_os
690 host_vendor
691 host_cpu
692 host
693 target_noncanonical
694 host_noncanonical
695 build_noncanonical
696 build_os
697 build_vendor
698 build_cpu
699 build
700 TOPLEVEL_CONFIGURE_ARGUMENTS
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files='serialization_dependencies
740 host_makefile_frag
741 target_makefile_frag
742 alphaieee_frag
743 ospace_frag'
744 ac_user_opts='
745 enable_option_checking
746 with_build_libsubdir
747 enable_gold
748 enable_ld
749 enable_libquadmath
750 enable_libquadmath_support
751 enable_libada
752 enable_libssp
753 enable_static_libjava
754 enable_bootstrap
755 enable_build_with_cxx
756 enable_build_poststage1_with_cxx
757 with_mpc
758 with_mpc_include
759 with_mpc_lib
760 with_mpfr_dir
761 with_mpfr
762 with_mpfr_include
763 with_mpfr_lib
764 with_gmp_dir
765 with_gmp
766 with_gmp_include
767 with_gmp_lib
768 with_host_libstdcxx
769 with_stage1_ldflags
770 with_stage1_libs
771 with_boot_libs
772 with_boot_ldflags
773 with_ppl
774 with_ppl_include
775 with_ppl_lib
776 enable_ppl_version_check
777 with_cloog
778 with_cloog_include
779 with_cloog_lib
780 enable_cloog_version_check
781 enable_lto
782 enable_stage1_languages
783 enable_objc_gc
784 with_build_sysroot
785 with_debug_prefix_map
786 with_build_config
787 enable_serial_configure
788 with_build_time_tools
789 enable_maintainer_mode
790 enable_stage1_checking
791 enable_werror
792 '
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 CXX
802 CXXFLAGS
803 CCC
804 build_configargs
805 host_configargs
806 target_configargs
807 AR
808 AS
809 DLLTOOL
810 LD
811 LIPO
812 NM
813 RANLIB
814 STRIP
815 WINDRES
816 WINDMC
817 OBJCOPY
818 OBJDUMP
819 READELF
820 CC_FOR_TARGET
821 CXX_FOR_TARGET
822 GCC_FOR_TARGET
823 GCJ_FOR_TARGET
824 GFORTRAN_FOR_TARGET
825 GOC_FOR_TARGET
826 AR_FOR_TARGET
827 AS_FOR_TARGET
828 DLLTOOL_FOR_TARGET
829 LD_FOR_TARGET
830 LIPO_FOR_TARGET
831 NM_FOR_TARGET
832 OBJDUMP_FOR_TARGET
833 RANLIB_FOR_TARGET
834 READELF_FOR_TARGET
835 STRIP_FOR_TARGET
836 WINDRES_FOR_TARGET
837 WINDMC_FOR_TARGET'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
897 fi
898
899 case $ac_option in
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *) ac_optarg=yes ;;
902 esac
903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
914
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
929
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
934
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
967
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1003
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1008
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1038
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1112
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1131 sbindir=$ac_optarg ;;
1132
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1142 sharedstatedir=$ac_optarg ;;
1143
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1147 site=$ac_optarg ;;
1148
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1153
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1160
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1165
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1168
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1171
1172 -with-* | --with-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=\$ac_optarg ;;
1187
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1221
1222 -*) as_fn_error "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information."
1224 ;;
1225
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1235
1236 *)
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1242 ;;
1243
1244 esac
1245 done
1246
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error "missing argument to $ac_option"
1250 fi
1251
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 esac
1258 fi
1259
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1265 do
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
1274 case $ac_val in
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277 esac
1278 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error "pwd does not report name of working directory"
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1343 fi
1344 else
1345 ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1350 fi
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1354 pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 case $srcdir in
1366 *" "*)
1367 as_fn_error "path to source, $srcdir, contains spaces"
1368 ;;
1369 esac
1370 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1371
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 \`configure' configures this package to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1411
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1440
1441 cat <<\_ACEOF
1442
1443 Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 --target=TARGET configure for building compilers for TARGET [HOST]
1452 _ACEOF
1453 fi
1454
1455 if test -n "$ac_init_help"; then
1456
1457 cat <<\_ACEOF
1458
1459 Optional Features:
1460 --disable-option-checking ignore unrecognized --enable/--with options
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1464 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1465 --disable-libquadmath do not build libquadmath directory
1466 --disable-libquadmath-support
1467 disable libquadmath support for Fortran
1468 --enable-libada build libada directory
1469 --enable-libssp build libssp directory
1470 --enable-static-libjava[=ARG]
1471 build static libjava [default=no]
1472 --enable-bootstrap enable bootstrapping [yes if native build]
1473 --enable-build-with-cxx build with C++ compiler instead of C compiler
1474 --enable-build-poststage1-with-cxx
1475 build stages 2 and 3 with C++, not C
1476 --disable-ppl-version-check
1477 disable check for PPL version
1478 --disable-cloog-version-check
1479 disable check for CLooG version
1480 --enable-lto enable link time optimization support
1481 --enable-stage1-languages[=all]
1482 choose additional languages to build during stage1.
1483 Mostly useful for compiler development
1484 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1485 Objective-C runtime
1486 --enable-serial-[{host,target,build}-]configure
1487 force sequential configuration of sub-packages for
1488 the host, target or build machine, or all
1489 sub-packages
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-stage1-checking[=all]
1494 choose additional checking for stage1 of the
1495 compiler
1496 --enable-werror enable -Werror in bootstrap stage2 and later
1497
1498 Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-build-libsubdir=DIR Directory where to find libraries for build system
1502 --with-mpc=PATH specify prefix directory for installed MPC package.
1503 Equivalent to --with-mpc-include=PATH/include plus
1504 --with-mpc-lib=PATH/lib
1505 --with-mpc-include=PATH specify directory for installed MPC include files
1506 --with-mpc-lib=PATH specify directory for the installed MPC library
1507 --with-mpfr-dir=PATH this option has been REMOVED
1508 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1509 Equivalent to --with-mpfr-include=PATH/include plus
1510 --with-mpfr-lib=PATH/lib
1511 --with-mpfr-include=PATH
1512 specify directory for installed MPFR include files
1513 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1514 --with-gmp-dir=PATH this option has been REMOVED
1515 --with-gmp=PATH specify prefix directory for the installed GMP
1516 package. Equivalent to
1517 --with-gmp-include=PATH/include plus
1518 --with-gmp-lib=PATH/lib
1519 --with-gmp-include=PATH specify directory for installed GMP include files
1520 --with-gmp-lib=PATH specify directory for the installed GMP library
1521 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1522 linking with PPL
1523 --with-stage1-ldflags=FLAGS
1524 linker flags for stage1
1525 --with-stage1-libs=LIBS libraries for stage1
1526 --with-boot-libs=LIBS libraries for stage2 and later
1527 --with-boot-ldflags=FLAGS
1528 linker flags for stage2 and later
1529 --with-ppl=PATH specify prefix directory for the installed PPL
1530 package. Equivalent to
1531 --with-ppl-include=PATH/include plus
1532 --with-ppl-lib=PATH/lib
1533 --with-ppl-include=PATH specify directory for installed PPL include files
1534 --with-ppl-lib=PATH specify directory for the installed PPL library
1535 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1536 package. Equivalent to
1537 --with-cloog-include=PATH/include plus
1538 --with-cloog-lib=PATH/lib
1539 --with-cloog-include=PATH
1540 Specify directory for installed CLooG include files
1541 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1542 library
1543 --with-build-sysroot=SYSROOT
1544 use sysroot as the system root during the build
1545 --with-debug-prefix-map='A=B C=D ...'
1546 map A to B, C to D ... in debug information
1547 --with-build-config='NAME NAME2...'
1548 use config/NAME.mk build configuration
1549 --with-build-time-tools=PATH
1550 use given path to find target tools during the build
1551
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1560 CXX C++ compiler command
1561 CXXFLAGS C++ compiler flags
1562 build_configargs
1563 additional configure arguments for build directories
1564 host_configargs
1565 additional configure arguments for host directories
1566 target_configargs
1567 additional configure arguments for target directories
1568 AR AR for the host
1569 AS AS for the host
1570 DLLTOOL DLLTOOL for the host
1571 LD LD for the host
1572 LIPO LIPO for the host
1573 NM NM for the host
1574 RANLIB RANLIB for the host
1575 STRIP STRIP for the host
1576 WINDRES WINDRES for the host
1577 WINDMC WINDMC for the host
1578 OBJCOPY OBJCOPY for the host
1579 OBJDUMP OBJDUMP for the host
1580 READELF READELF for the host
1581 CC_FOR_TARGET
1582 CC for the target
1583 CXX_FOR_TARGET
1584 CXX for the target
1585 GCC_FOR_TARGET
1586 GCC for the target
1587 GCJ_FOR_TARGET
1588 GCJ for the target
1589 GFORTRAN_FOR_TARGET
1590 GFORTRAN for the target
1591 GOC_FOR_TARGET
1592 GOC for the target
1593 AR_FOR_TARGET
1594 AR for the target
1595 AS_FOR_TARGET
1596 AS for the target
1597 DLLTOOL_FOR_TARGET
1598 DLLTOOL for the target
1599 LD_FOR_TARGET
1600 LD for the target
1601 LIPO_FOR_TARGET
1602 LIPO for the target
1603 NM_FOR_TARGET
1604 NM for the target
1605 OBJDUMP_FOR_TARGET
1606 OBJDUMP for the target
1607 RANLIB_FOR_TARGET
1608 RANLIB for the target
1609 READELF_FOR_TARGET
1610 READELF for the target
1611 STRIP_FOR_TARGET
1612 STRIP for the target
1613 WINDRES_FOR_TARGET
1614 WINDRES for the target
1615 WINDMC_FOR_TARGET
1616 WINDMC for the target
1617
1618 Use these variables to override the choices made by `configure' or to help
1619 it to find libraries and programs with nonstandard names/locations.
1620
1621 Report bugs to the package provider.
1622 _ACEOF
1623 ac_status=$?
1624 fi
1625
1626 if test "$ac_init_help" = "recursive"; then
1627 # If there are subdirs, report their specific --help.
1628 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1629 test -d "$ac_dir" ||
1630 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1631 continue
1632 ac_builddir=.
1633
1634 case "$ac_dir" in
1635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *)
1637 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1638 # A ".." for each directory in $ac_dir_suffix.
1639 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 esac ;;
1644 esac
1645 ac_abs_top_builddir=$ac_pwd
1646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647 # for backward compatibility:
1648 ac_top_builddir=$ac_top_build_prefix
1649
1650 case $srcdir in
1651 .) # We are building in place.
1652 ac_srcdir=.
1653 ac_top_srcdir=$ac_top_builddir_sub
1654 ac_abs_top_srcdir=$ac_pwd ;;
1655 [\\/]* | ?:[\\/]* ) # Absolute name.
1656 ac_srcdir=$srcdir$ac_dir_suffix;
1657 ac_top_srcdir=$srcdir
1658 ac_abs_top_srcdir=$srcdir ;;
1659 *) # Relative name.
1660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663 esac
1664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665
1666 cd "$ac_dir" || { ac_status=$?; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure" --help=recursive
1674 else
1675 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676 fi || ac_status=$?
1677 cd "$ac_pwd" || { ac_status=$?; break; }
1678 done
1679 fi
1680
1681 test -n "$ac_init_help" && exit $ac_status
1682 if $ac_init_version; then
1683 cat <<\_ACEOF
1684 configure
1685 generated by GNU Autoconf 2.64
1686
1687 Copyright (C) 2009 Free Software Foundation, Inc.
1688 This configure script is free software; the Free Software Foundation
1689 gives unlimited permission to copy, distribute and modify it.
1690 _ACEOF
1691 exit
1692 fi
1693
1694 ## ------------------------ ##
1695 ## Autoconf initialization. ##
1696 ## ------------------------ ##
1697
1698 # ac_fn_c_try_compile LINENO
1699 # --------------------------
1700 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_c_try_compile ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 rm -f conftest.$ac_objext
1705 if { { ac_try="$ac_compile"
1706 case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_compile") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && {
1721 test -z "$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 } && test -s conftest.$ac_objext; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730 fi
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1733
1734 } # ac_fn_c_try_compile
1735
1736 # ac_fn_cxx_try_compile LINENO
1737 # ----------------------------
1738 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_cxx_try_compile ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 rm -f conftest.$ac_objext
1743 if { { ac_try="$ac_compile"
1744 case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_compile") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1756 fi
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && {
1759 test -z "$ac_cxx_werror_flag" ||
1760 test ! -s conftest.err
1761 } && test -s conftest.$ac_objext; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=1
1768 fi
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 return $ac_retval
1771
1772 } # ac_fn_cxx_try_compile
1773
1774 # ac_fn_c_try_link LINENO
1775 # -----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_link ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext conftest$ac_exeext
1781 if { { ac_try="$ac_link"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest$ac_exeext && {
1800 test "$cross_compiling" = yes ||
1801 $as_test_x conftest$ac_exeext
1802 }; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809 fi
1810 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1811 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1812 # interfere with the next link command; also delete a directory that is
1813 # left behind by Apple's compiler. We do this before executing the actions.
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
1817
1818 } # ac_fn_c_try_link
1819 cat >config.log <<_ACEOF
1820 This file contains any messages produced by compilers while
1821 running configure, to aid debugging if configure makes a mistake.
1822
1823 It was created by $as_me, which was
1824 generated by GNU Autoconf 2.64. Invocation command line was
1825
1826 $ $0 $@
1827
1828 _ACEOF
1829 exec 5>>config.log
1830 {
1831 cat <<_ASUNAME
1832 ## --------- ##
1833 ## Platform. ##
1834 ## --------- ##
1835
1836 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1837 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1838 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1839 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1840 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1841
1842 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1843 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1844
1845 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1846 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1847 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1848 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1849 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1850 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1851 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1852
1853 _ASUNAME
1854
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 $as_echo "PATH: $as_dir"
1861 done
1862 IFS=$as_save_IFS
1863
1864 } >&5
1865
1866 cat >&5 <<_ACEOF
1867
1868
1869 ## ----------- ##
1870 ## Core tests. ##
1871 ## ----------- ##
1872
1873 _ACEOF
1874
1875
1876 # Keep a trace of the command line.
1877 # Strip out --no-create and --no-recursion so they do not pile up.
1878 # Strip out --silent because we don't want to record it for future runs.
1879 # Also quote any args containing shell meta-characters.
1880 # Make two passes to allow for proper duplicate-argument suppression.
1881 ac_configure_args=
1882 ac_configure_args0=
1883 ac_configure_args1=
1884 ac_must_keep_next=false
1885 for ac_pass in 1 2
1886 do
1887 for ac_arg
1888 do
1889 case $ac_arg in
1890 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1891 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1892 | -silent | --silent | --silen | --sile | --sil)
1893 continue ;;
1894 *\'*)
1895 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1896 esac
1897 case $ac_pass in
1898 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1899 2)
1900 as_fn_append ac_configure_args1 " '$ac_arg'"
1901 if test $ac_must_keep_next = true; then
1902 ac_must_keep_next=false # Got value, back to normal.
1903 else
1904 case $ac_arg in
1905 *=* | --config-cache | -C | -disable-* | --disable-* \
1906 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1907 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1908 | -with-* | --with-* | -without-* | --without-* | --x)
1909 case "$ac_configure_args0 " in
1910 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1911 esac
1912 ;;
1913 -* ) ac_must_keep_next=true ;;
1914 esac
1915 fi
1916 as_fn_append ac_configure_args " '$ac_arg'"
1917 ;;
1918 esac
1919 done
1920 done
1921 { ac_configure_args0=; unset ac_configure_args0;}
1922 { ac_configure_args1=; unset ac_configure_args1;}
1923
1924 # When interrupted or exit'd, cleanup temporary files, and complete
1925 # config.log. We remove comments because anyway the quotes in there
1926 # would cause problems or look ugly.
1927 # WARNING: Use '\'' to represent an apostrophe within the trap.
1928 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1929 trap 'exit_status=$?
1930 # Save into config.log some information that might help in debugging.
1931 {
1932 echo
1933
1934 cat <<\_ASBOX
1935 ## ---------------- ##
1936 ## Cache variables. ##
1937 ## ---------------- ##
1938 _ASBOX
1939 echo
1940 # The following way of writing the cache mishandles newlines in values,
1941 (
1942 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1943 eval ac_val=\$$ac_var
1944 case $ac_val in #(
1945 *${as_nl}*)
1946 case $ac_var in #(
1947 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1948 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1949 esac
1950 case $ac_var in #(
1951 _ | IFS | as_nl) ;; #(
1952 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1953 *) { eval $ac_var=; unset $ac_var;} ;;
1954 esac ;;
1955 esac
1956 done
1957 (set) 2>&1 |
1958 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1959 *${as_nl}ac_space=\ *)
1960 sed -n \
1961 "s/'\''/'\''\\\\'\'''\''/g;
1962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1963 ;; #(
1964 *)
1965 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1966 ;;
1967 esac |
1968 sort
1969 )
1970 echo
1971
1972 cat <<\_ASBOX
1973 ## ----------------- ##
1974 ## Output variables. ##
1975 ## ----------------- ##
1976 _ASBOX
1977 echo
1978 for ac_var in $ac_subst_vars
1979 do
1980 eval ac_val=\$$ac_var
1981 case $ac_val in
1982 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1983 esac
1984 $as_echo "$ac_var='\''$ac_val'\''"
1985 done | sort
1986 echo
1987
1988 if test -n "$ac_subst_files"; then
1989 cat <<\_ASBOX
1990 ## ------------------- ##
1991 ## File substitutions. ##
1992 ## ------------------- ##
1993 _ASBOX
1994 echo
1995 for ac_var in $ac_subst_files
1996 do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in
1999 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 esac
2001 $as_echo "$ac_var='\''$ac_val'\''"
2002 done | sort
2003 echo
2004 fi
2005
2006 if test -s confdefs.h; then
2007 cat <<\_ASBOX
2008 ## ----------- ##
2009 ## confdefs.h. ##
2010 ## ----------- ##
2011 _ASBOX
2012 echo
2013 cat confdefs.h
2014 echo
2015 fi
2016 test "$ac_signal" != 0 &&
2017 $as_echo "$as_me: caught signal $ac_signal"
2018 $as_echo "$as_me: exit $exit_status"
2019 } >&5
2020 rm -f core *.core core.conftest.* &&
2021 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2022 exit $exit_status
2023 ' 0
2024 for ac_signal in 1 2 13 15; do
2025 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2026 done
2027 ac_signal=0
2028
2029 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2030 rm -f -r conftest* confdefs.h
2031
2032 $as_echo "/* confdefs.h */" > confdefs.h
2033
2034 # Predefined preprocessor variables.
2035
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_NAME "$PACKAGE_NAME"
2038 _ACEOF
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_STRING "$PACKAGE_STRING"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_URL "$PACKAGE_URL"
2058 _ACEOF
2059
2060
2061 # Let the site file select an alternate cache file if it wants to.
2062 # Prefer an explicitly selected file to automatically selected ones.
2063 ac_site_file1=NONE
2064 ac_site_file2=NONE
2065 if test -n "$CONFIG_SITE"; then
2066 ac_site_file1=$CONFIG_SITE
2067 elif test "x$prefix" != xNONE; then
2068 ac_site_file1=$prefix/share/config.site
2069 ac_site_file2=$prefix/etc/config.site
2070 else
2071 ac_site_file1=$ac_default_prefix/share/config.site
2072 ac_site_file2=$ac_default_prefix/etc/config.site
2073 fi
2074 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2075 do
2076 test "x$ac_site_file" = xNONE && continue
2077 if test -r "$ac_site_file"; then
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2079 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2080 sed 's/^/| /' "$ac_site_file" >&5
2081 . "$ac_site_file"
2082 fi
2083 done
2084
2085 if test -r "$cache_file"; then
2086 # Some versions of bash will fail to source /dev/null (special
2087 # files actually), so we avoid doing that.
2088 if test -f "$cache_file"; then
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2090 $as_echo "$as_me: loading cache $cache_file" >&6;}
2091 case $cache_file in
2092 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2093 *) . "./$cache_file";;
2094 esac
2095 fi
2096 else
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2098 $as_echo "$as_me: creating cache $cache_file" >&6;}
2099 >$cache_file
2100 fi
2101
2102 # Check that the precious variables saved in the cache have kept the same
2103 # value.
2104 ac_cache_corrupted=false
2105 for ac_var in $ac_precious_vars; do
2106 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2107 eval ac_new_set=\$ac_env_${ac_var}_set
2108 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2109 eval ac_new_val=\$ac_env_${ac_var}_value
2110 case $ac_old_set,$ac_new_set in
2111 set,)
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2113 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2114 ac_cache_corrupted=: ;;
2115 ,set)
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2117 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2118 ac_cache_corrupted=: ;;
2119 ,);;
2120 *)
2121 if test "x$ac_old_val" != "x$ac_new_val"; then
2122 # differences in whitespace do not lead to failure.
2123 ac_old_val_w=`echo x $ac_old_val`
2124 ac_new_val_w=`echo x $ac_new_val`
2125 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2127 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2128 ac_cache_corrupted=:
2129 else
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2131 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2132 eval $ac_var=\$ac_old_val
2133 fi
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2135 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2137 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2138 fi;;
2139 esac
2140 # Pass precious variables to config.status.
2141 if test "$ac_new_set" = set; then
2142 case $ac_new_val in
2143 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2144 *) ac_arg=$ac_var=$ac_new_val ;;
2145 esac
2146 case " $ac_configure_args " in
2147 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2148 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2149 esac
2150 fi
2151 done
2152 if $ac_cache_corrupted; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2156 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2158 fi
2159 ## -------------------- ##
2160 ## Main body of script. ##
2161 ## -------------------- ##
2162
2163 ac_ext=c
2164 ac_cpp='$CPP $CPPFLAGS'
2165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177 progname=$0
2178 # if PWD already has a value, it is probably wrong.
2179 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2180
2181 # Export original configure arguments for use by sub-configures.
2182 # Quote arguments with shell meta charatcers.
2183 TOPLEVEL_CONFIGURE_ARGUMENTS=
2184 set -- "$progname" "$@"
2185 for ac_arg
2186 do
2187 case "$ac_arg" in
2188 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2189 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2190 # if the argument is of the form -foo=baz, quote the baz part only
2191 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2192 *) ;;
2193 esac
2194 # Add the quoted argument to the list.
2195 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2196 done
2197 if test "$silent" = yes; then
2198 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2199 fi
2200 # Remove the initial space we just introduced and, as these will be
2201 # expanded by make, quote '$'.
2202 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2203
2204
2205 # Find the build, host, and target systems.
2206 ac_aux_dir=
2207 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2208 for ac_t in install-sh install.sh shtool; do
2209 if test -f "$ac_dir/$ac_t"; then
2210 ac_aux_dir=$ac_dir
2211 ac_install_sh="$ac_aux_dir/$ac_t -c"
2212 break 2
2213 fi
2214 done
2215 done
2216 if test -z "$ac_aux_dir"; then
2217 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2218 fi
2219
2220 # These three variables are undocumented and unsupported,
2221 # and are intended to be withdrawn in a future Autoconf release.
2222 # They can cause serious problems if a builder's source tree is in a directory
2223 # whose full name contains unusual characters.
2224 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2225 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2226 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2227
2228
2229 # Make sure we can run config.sub.
2230 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2231 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2232
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2234 $as_echo_n "checking build system type... " >&6; }
2235 if test "${ac_cv_build+set}" = set; then :
2236 $as_echo_n "(cached) " >&6
2237 else
2238 ac_build_alias=$build_alias
2239 test "x$ac_build_alias" = x &&
2240 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2241 test "x$ac_build_alias" = x &&
2242 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2243 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2244 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2245
2246 fi
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2248 $as_echo "$ac_cv_build" >&6; }
2249 case $ac_cv_build in
2250 *-*-*) ;;
2251 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2252 esac
2253 build=$ac_cv_build
2254 ac_save_IFS=$IFS; IFS='-'
2255 set x $ac_cv_build
2256 shift
2257 build_cpu=$1
2258 build_vendor=$2
2259 shift; shift
2260 # Remember, the first character of IFS is used to create $*,
2261 # except with old shells:
2262 build_os=$*
2263 IFS=$ac_save_IFS
2264 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2265
2266
2267 case ${build_alias} in
2268 "") build_noncanonical=${build} ;;
2269 *) build_noncanonical=${build_alias} ;;
2270 esac
2271
2272
2273
2274 case ${host_alias} in
2275 "") host_noncanonical=${build_noncanonical} ;;
2276 *) host_noncanonical=${host_alias} ;;
2277 esac
2278
2279
2280
2281 case ${target_alias} in
2282 "") target_noncanonical=${host_noncanonical} ;;
2283 *) target_noncanonical=${target_alias} ;;
2284 esac
2285
2286
2287
2288
2289 test "$host_noncanonical" = "$target_noncanonical" &&
2290 test "$program_prefix$program_suffix$program_transform_name" = \
2291 NONENONEs,x,x, &&
2292 program_transform_name=s,y,y,
2293
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2295 $as_echo_n "checking host system type... " >&6; }
2296 if test "${ac_cv_host+set}" = set; then :
2297 $as_echo_n "(cached) " >&6
2298 else
2299 if test "x$host_alias" = x; then
2300 ac_cv_host=$ac_cv_build
2301 else
2302 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2303 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2304 fi
2305
2306 fi
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2308 $as_echo "$ac_cv_host" >&6; }
2309 case $ac_cv_host in
2310 *-*-*) ;;
2311 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2312 esac
2313 host=$ac_cv_host
2314 ac_save_IFS=$IFS; IFS='-'
2315 set x $ac_cv_host
2316 shift
2317 host_cpu=$1
2318 host_vendor=$2
2319 shift; shift
2320 # Remember, the first character of IFS is used to create $*,
2321 # except with old shells:
2322 host_os=$*
2323 IFS=$ac_save_IFS
2324 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2325
2326
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2328 $as_echo_n "checking target system type... " >&6; }
2329 if test "${ac_cv_target+set}" = set; then :
2330 $as_echo_n "(cached) " >&6
2331 else
2332 if test "x$target_alias" = x; then
2333 ac_cv_target=$ac_cv_host
2334 else
2335 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2336 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2337 fi
2338
2339 fi
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2341 $as_echo "$ac_cv_target" >&6; }
2342 case $ac_cv_target in
2343 *-*-*) ;;
2344 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2345 esac
2346 target=$ac_cv_target
2347 ac_save_IFS=$IFS; IFS='-'
2348 set x $ac_cv_target
2349 shift
2350 target_cpu=$1
2351 target_vendor=$2
2352 shift; shift
2353 # Remember, the first character of IFS is used to create $*,
2354 # except with old shells:
2355 target_os=$*
2356 IFS=$ac_save_IFS
2357 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2358
2359
2360 # The aliases save the names the user supplied, while $host etc.
2361 # will get canonicalized.
2362 test -n "$target_alias" &&
2363 test "$program_prefix$program_suffix$program_transform_name" = \
2364 NONENONEs,x,x, &&
2365 program_prefix=${target_alias}-
2366
2367 test "$program_prefix" != NONE &&
2368 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2369 # Use a double $ so make ignores it.
2370 test "$program_suffix" != NONE &&
2371 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2372 # Double any \ or $.
2373 # By default was `s,x,x', remove it if useless.
2374 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2375 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2376
2377
2378
2379 # Get 'install' or 'install-sh' and its variants.
2380 # Find a good install program. We prefer a C program (faster),
2381 # so one script is as good as another. But avoid the broken or
2382 # incompatible versions:
2383 # SysV /etc/install, /usr/sbin/install
2384 # SunOS /usr/etc/install
2385 # IRIX /sbin/install
2386 # AIX /bin/install
2387 # AmigaOS /C/install, which installs bootblocks on floppy discs
2388 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2389 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2390 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2391 # OS/2's system install, which has a completely different semantic
2392 # ./install, which can be erroneously created by make from ./install.sh.
2393 # Reject install programs that cannot install multiple files.
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2395 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2396 if test -z "$INSTALL"; then
2397 if test "${ac_cv_path_install+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 # Account for people who put trailing slashes in PATH elements.
2406 case $as_dir/ in #((
2407 ./ | .// | /[cC]/* | \
2408 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2409 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2410 /usr/ucb/* ) ;;
2411 *)
2412 # OSF1 and SCO ODT 3.0 have their own names for install.
2413 # Don't use installbsd from OSF since it installs stuff as root
2414 # by default.
2415 for ac_prog in ginstall scoinst install; do
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2418 if test $ac_prog = install &&
2419 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2420 # AIX install. It has an incompatible calling convention.
2421 :
2422 elif test $ac_prog = install &&
2423 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2424 # program-specific install script used by HP pwplus--don't use.
2425 :
2426 else
2427 rm -rf conftest.one conftest.two conftest.dir
2428 echo one > conftest.one
2429 echo two > conftest.two
2430 mkdir conftest.dir
2431 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2432 test -s conftest.one && test -s conftest.two &&
2433 test -s conftest.dir/conftest.one &&
2434 test -s conftest.dir/conftest.two
2435 then
2436 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2437 break 3
2438 fi
2439 fi
2440 fi
2441 done
2442 done
2443 ;;
2444 esac
2445
2446 done
2447 IFS=$as_save_IFS
2448
2449 rm -rf conftest.one conftest.two conftest.dir
2450
2451 fi
2452 if test "${ac_cv_path_install+set}" = set; then
2453 INSTALL=$ac_cv_path_install
2454 else
2455 # As a last resort, use the slow shell script. Don't cache a
2456 # value for INSTALL within a source directory, because that will
2457 # break other packages using the cache if that directory is
2458 # removed, or if the value is a relative name.
2459 INSTALL=$ac_install_sh
2460 fi
2461 fi
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2463 $as_echo "$INSTALL" >&6; }
2464
2465 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2466 # It thinks the first close brace ends the variable substitution.
2467 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2468
2469 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2470
2471 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2472
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2474 $as_echo_n "checking whether ln works... " >&6; }
2475 if test "${acx_cv_prog_LN+set}" = set; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 rm -f conftestdata_t
2479 echo >conftestdata_f
2480 if ln conftestdata_f conftestdata_t 2>/dev/null
2481 then
2482 acx_cv_prog_LN=ln
2483 else
2484 acx_cv_prog_LN=no
2485 fi
2486 rm -f conftestdata_f conftestdata_t
2487
2488 fi
2489 if test $acx_cv_prog_LN = no; then
2490 LN="cp"
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2492 $as_echo "no, using $LN" >&6; }
2493 else
2494 LN="$acx_cv_prog_LN"
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2496 $as_echo "yes" >&6; }
2497 fi
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2500 $as_echo_n "checking whether ln -s works... " >&6; }
2501 LN_S=$as_ln_s
2502 if test "$LN_S" = "ln -s"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2504 $as_echo "yes" >&6; }
2505 else
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2507 $as_echo "no, using $LN_S" >&6; }
2508 fi
2509
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2511 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2512 if test "${ac_cv_path_SED+set}" = set; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2516 for ac_i in 1 2 3 4 5 6 7; do
2517 ac_script="$ac_script$as_nl$ac_script"
2518 done
2519 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2520 { ac_script=; unset ac_script;}
2521 if test -z "$SED"; then
2522 ac_path_SED_found=false
2523 # Loop through the user's path and test for each of PROGNAME-LIST
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_prog in sed gsed; do
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2532 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2533 # Check for GNU ac_path_SED and select it if it is found.
2534 # Check for GNU $ac_path_SED
2535 case `"$ac_path_SED" --version 2>&1` in
2536 *GNU*)
2537 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2538 *)
2539 ac_count=0
2540 $as_echo_n 0123456789 >"conftest.in"
2541 while :
2542 do
2543 cat "conftest.in" "conftest.in" >"conftest.tmp"
2544 mv "conftest.tmp" "conftest.in"
2545 cp "conftest.in" "conftest.nl"
2546 $as_echo '' >> "conftest.nl"
2547 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2549 as_fn_arith $ac_count + 1 && ac_count=$as_val
2550 if test $ac_count -gt ${ac_path_SED_max-0}; then
2551 # Best one so far, save it but keep looking for a better one
2552 ac_cv_path_SED="$ac_path_SED"
2553 ac_path_SED_max=$ac_count
2554 fi
2555 # 10*(2^10) chars as input seems more than enough
2556 test $ac_count -gt 10 && break
2557 done
2558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2559 esac
2560
2561 $ac_path_SED_found && break 3
2562 done
2563 done
2564 done
2565 IFS=$as_save_IFS
2566 if test -z "$ac_cv_path_SED"; then
2567 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2568 fi
2569 else
2570 ac_cv_path_SED=$SED
2571 fi
2572
2573 fi
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2575 $as_echo "$ac_cv_path_SED" >&6; }
2576 SED="$ac_cv_path_SED"
2577 rm -f conftest.sed
2578
2579 for ac_prog in gawk mawk nawk awk
2580 do
2581 # Extract the first word of "$ac_prog", so it can be a program name with args.
2582 set dummy $ac_prog; ac_word=$2
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584 $as_echo_n "checking for $ac_word... " >&6; }
2585 if test "${ac_cv_prog_AWK+set}" = set; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 if test -n "$AWK"; then
2589 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2593 do
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_AWK="$ac_prog"
2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2601 fi
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 fi
2607 fi
2608 AWK=$ac_cv_prog_AWK
2609 if test -n "$AWK"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2611 $as_echo "$AWK" >&6; }
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2615 fi
2616
2617
2618 test -n "$AWK" && break
2619 done
2620
2621
2622 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2623
2624 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2625 # a relative path.
2626 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2627 INSTALL="${srcpwd}/install-sh -c"
2628 fi
2629
2630 # Set srcdir to "." if that's what it is.
2631 # This is important for multilib support.
2632 pwd=`${PWDCMD-pwd}`
2633 if test "${pwd}" = "${srcpwd}" ; then
2634 srcdir=.
2635 fi
2636
2637 topsrcdir=$srcpwd
2638
2639 extra_host_args=
2640
2641 ### To add a new directory to the tree, first choose whether it is a target
2642 ### or a host dependent tool. Then put it into the appropriate list
2643 ### (library or tools, host or target), doing a dependency sort.
2644
2645 # Subdirs will be configured in the order listed in build_configdirs,
2646 # configdirs, or target_configdirs; see the serialization section below.
2647
2648 # Dependency sorting is only needed when *configuration* must be done in
2649 # a particular order. In all cases a dependency should be specified in
2650 # the Makefile, whether or not it's implicitly specified here.
2651
2652 # Double entries in build_configdirs, configdirs, or target_configdirs may
2653 # cause circular dependencies and break everything horribly.
2654
2655 # these library is used by various programs built for the build
2656 # environment
2657 #
2658 build_libs="build-libiberty"
2659
2660 # these tools are built for the build environment
2661 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2662
2663 # these libraries are used by various programs built for the host environment
2664 #
2665 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2666
2667 # these tools are built for the host environment
2668 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2669 # know that we are building the simulator.
2670 # binutils, gas and ld appear in that order because it makes sense to run
2671 # "make check" in that particular order.
2672 # If --enable-gold is used, "gold" may replace "ld".
2673 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2674
2675 # libgcj represents the runtime libraries only used by gcj.
2676 libgcj="target-libffi \
2677 target-zlib \
2678 target-libjava"
2679
2680 # these libraries are built for the target environment, and are built after
2681 # the host libraries and the host tools (which may be a cross compiler)
2682 # Note that libiberty is not a target library.
2683 target_libraries="target-libgcc \
2684 target-libgloss \
2685 target-newlib \
2686 target-libgomp \
2687 target-libatomic \
2688 target-libitm \
2689 target-libstdc++-v3 \
2690 target-libmudflap \
2691 target-libssp \
2692 target-libquadmath \
2693 target-libgfortran \
2694 target-boehm-gc \
2695 ${libgcj} \
2696 target-libobjc \
2697 target-libada \
2698 target-libgo"
2699
2700 # these tools are built using the target libraries, and are intended to
2701 # run only in the target environment
2702 #
2703 # note: any program that *uses* libraries that are in the "target_libraries"
2704 # list belongs in this list.
2705 #
2706 target_tools="target-rda"
2707
2708 ################################################################################
2709
2710 ## All tools belong in one of the four categories, and are assigned above
2711 ## We assign ${configdirs} this way to remove all embedded newlines. This
2712 ## is important because configure will choke if they ever get through.
2713 ## ${configdirs} is directories we build using the host tools.
2714 ## ${target_configdirs} is directories we build using the target tools.
2715 configdirs=`echo ${host_libs} ${host_tools}`
2716 target_configdirs=`echo ${target_libraries} ${target_tools}`
2717 build_configdirs=`echo ${build_libs} ${build_tools}`
2718
2719
2720
2721 ################################################################################
2722
2723 srcname="gnu development package"
2724
2725 # This gets set non-empty for some net releases of packages.
2726 appdirs=""
2727
2728 # Define is_cross_compiler to save on calls to 'test'.
2729 is_cross_compiler=
2730 if test x"${host}" = x"${target}" ; then
2731 is_cross_compiler=no
2732 else
2733 is_cross_compiler=yes
2734 fi
2735
2736 # Find the build and target subdir names.
2737
2738 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2739 # have matching libraries, they should use host libraries: Makefile.tpl
2740 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2741 # However, they still use the build modules, because the corresponding
2742 # host modules (e.g. bison) are only built for the host when bootstrap
2743 # finishes. So:
2744 # - build_subdir is where we find build modules, and never changes.
2745 # - build_libsubdir is where we find build libraries, and can be overridden.
2746
2747 # Prefix 'build-' so this never conflicts with target_subdir.
2748 build_subdir="build-${build_noncanonical}"
2749
2750 # Check whether --with-build-libsubdir was given.
2751 if test "${with_build_libsubdir+set}" = set; then :
2752 withval=$with_build_libsubdir; build_libsubdir="$withval"
2753 else
2754 build_libsubdir="$build_subdir"
2755 fi
2756
2757 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2758 if ( test $srcdir = . && test -d gcc ) \
2759 || test -d $srcdir/../host-${host_noncanonical}; then
2760 host_subdir="host-${host_noncanonical}"
2761 else
2762 host_subdir=.
2763 fi
2764 # No prefix.
2765 target_subdir=${target_noncanonical}
2766
2767 # Be sure to cover against remnants of an in-tree build.
2768 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2769 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2770 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2771 fi
2772
2773 # Skipdirs are removed silently.
2774 skipdirs=
2775 # Noconfigdirs are removed loudly.
2776 noconfigdirs=""
2777
2778 use_gnu_ld=
2779 # Make sure we don't let GNU ld be added if we didn't want it.
2780 if test x$with_gnu_ld = xno ; then
2781 use_gnu_ld=no
2782 noconfigdirs="$noconfigdirs ld gold"
2783 fi
2784
2785 use_gnu_as=
2786 # Make sure we don't let GNU as be added if we didn't want it.
2787 if test x$with_gnu_as = xno ; then
2788 use_gnu_as=no
2789 noconfigdirs="$noconfigdirs gas"
2790 fi
2791
2792 use_included_zlib=
2793 # Make sure we don't let ZLIB be added if we didn't want it.
2794 if test x$with_system_zlib = xyes ; then
2795 use_included_zlib=no
2796 noconfigdirs="$noconfigdirs zlib"
2797 fi
2798
2799 # some tools are so dependent upon X11 that if we're not building with X,
2800 # it's not even worth trying to configure, much less build, that tool.
2801
2802 case ${with_x} in
2803 yes | "") ;; # the default value for this tree is that X11 is available
2804 no)
2805 skipdirs="${skipdirs} tk itcl libgui"
2806 # We won't be able to build gdbtk without X.
2807 enable_gdbtk=no
2808 ;;
2809 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2810 esac
2811
2812 # Some are only suitable for cross toolchains.
2813 # Remove these if host=target.
2814 cross_only="target-libgloss target-newlib target-opcodes"
2815
2816 case $is_cross_compiler in
2817 no) skipdirs="${skipdirs} ${cross_only}" ;;
2818 esac
2819
2820 # If both --with-headers and --with-libs are specified, default to
2821 # --without-newlib.
2822 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2823 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2824 if test x"${with_newlib}" = x ; then
2825 with_newlib=no
2826 fi
2827 fi
2828
2829 # Recognize --with-newlib/--without-newlib.
2830 case ${with_newlib} in
2831 no) skipdirs="${skipdirs} target-newlib" ;;
2832 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2833 esac
2834
2835 # Handle --enable-gold, --enable-ld.
2836 # --disable-gold [--enable-ld]
2837 # Build only ld. Default option.
2838 # --enable-gold [--enable-ld]
2839 # Build both gold and ld. Install gold as "ld.gold", install ld
2840 # as "ld.bfd" and "ld".
2841 # --enable-gold=default [--enable-ld]
2842 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2843 # install ld as "ld.bfd".
2844 # --enable-gold[=default] --disable-ld
2845 # Build only gold, which is then installed as both "ld.gold" and "ld".
2846 # --enable-gold --enable-ld=default
2847 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2848 # and ld.bfd).
2849 # In other words, ld is default
2850 # --enable-gold=default --enable-ld=default
2851 # Error.
2852
2853 default_ld=
2854 # Check whether --enable-gold was given.
2855 if test "${enable_gold+set}" = set; then :
2856 enableval=$enable_gold; ENABLE_GOLD=$enableval
2857 else
2858 ENABLE_GOLD=no
2859 fi
2860
2861 case "${ENABLE_GOLD}" in
2862 yes|default)
2863 # Check for ELF target.
2864 is_elf=no
2865 case "${target}" in
2866 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2867 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2868 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2869 | *-*-solaris2* | *-*-nto*)
2870 case "${target}" in
2871 *-*-linux*aout* | *-*-linux*oldld*)
2872 ;;
2873 *)
2874 is_elf=yes
2875 ;;
2876 esac
2877 esac
2878
2879 if test "$is_elf" = "yes"; then
2880 # Check for target supported by gold.
2881 case "${target}" in
2882 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2883 configdirs="$configdirs gold"
2884 if test x${ENABLE_GOLD} = xdefault; then
2885 default_ld=gold
2886 fi
2887 ENABLE_GOLD=yes
2888 ;;
2889 esac
2890 fi
2891 ;;
2892 no)
2893 ;;
2894 *)
2895 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2896 ;;
2897 esac
2898
2899 # Check whether --enable-ld was given.
2900 if test "${enable_ld+set}" = set; then :
2901 enableval=$enable_ld; ENABLE_LD=$enableval
2902 else
2903 ENABLE_LD=yes
2904 fi
2905
2906
2907 case "${ENABLE_LD}" in
2908 default)
2909 if test x${default_ld} != x; then
2910 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2911 fi
2912 ;;
2913 yes)
2914 ;;
2915 no)
2916 if test x${ENABLE_GOLD} != xyes; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2918 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2919 fi
2920 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2921 ;;
2922 *)
2923 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2924 ;;
2925 esac
2926
2927 # Configure extra directories which are host specific
2928
2929 case "${host}" in
2930 *-cygwin*)
2931 configdirs="$configdirs libtermcap" ;;
2932 esac
2933
2934 # A target can indicate whether a language isn't supported for some reason.
2935 # Only spaces may be used in this macro; not newlines or tabs.
2936 unsupported_languages=
2937
2938 # Remove more programs from consideration, based on the host or
2939 # target this usually means that a port of the program doesn't
2940 # exist yet.
2941
2942 case "${host}" in
2943 i[3456789]86-*-msdosdjgpp*)
2944 noconfigdirs="$noconfigdirs tcl tk itcl"
2945 ;;
2946 esac
2947
2948
2949 # Check whether --enable-libquadmath was given.
2950 if test "${enable_libquadmath+set}" = set; then :
2951 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2952 else
2953 ENABLE_LIBQUADMATH=yes
2954 fi
2955
2956 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2957 noconfigdirs="$noconfigdirs target-libquadmath"
2958 fi
2959
2960
2961 # Check whether --enable-libquadmath-support was given.
2962 if test "${enable_libquadmath_support+set}" = set; then :
2963 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2964 else
2965 ENABLE_LIBQUADMATH_SUPPORT=yes
2966 fi
2967
2968 enable_libquadmath_support=
2969 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2970 enable_libquadmath_support=no
2971 fi
2972
2973
2974 # Check whether --enable-libada was given.
2975 if test "${enable_libada+set}" = set; then :
2976 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2977 else
2978 ENABLE_LIBADA=yes
2979 fi
2980
2981 if test "${ENABLE_LIBADA}" != "yes" ; then
2982 noconfigdirs="$noconfigdirs gnattools"
2983 fi
2984
2985 # Check whether --enable-libssp was given.
2986 if test "${enable_libssp+set}" = set; then :
2987 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2988 else
2989 ENABLE_LIBSSP=yes
2990 fi
2991
2992
2993 # Save it here so that, even in case of --enable-libgcj, if the Java
2994 # front-end isn't enabled, we still get libgcj disabled.
2995 libgcj_saved=$libgcj
2996 case $enable_libgcj in
2997 yes)
2998 # If we reset it here, it won't get added to noconfigdirs in the
2999 # target-specific build rules, so it will be forcibly enabled
3000 # (unless the Java language itself isn't enabled).
3001 libgcj=
3002 ;;
3003 no)
3004 # Make sure we get it printed in the list of not supported target libs.
3005 # Don't disable libffi, though, other languages use it.
3006 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3007 # Clear libgcj_saved so that even if java is enabled libffi won't be
3008 # built.
3009 libgcj_saved=
3010 ;;
3011 esac
3012
3013 # Check whether --enable-static-libjava was given.
3014 if test "${enable_static_libjava+set}" = set; then :
3015 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3016 else
3017 ENABLE_STATIC_LIBJAVA=no
3018 fi
3019
3020 enable_static_libjava=
3021 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3022 enable_static_libjava=yes
3023 fi
3024
3025 if test x$enable_static_libjava != xyes ; then
3026 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3027 fi
3028
3029
3030 # Disable libmudflap on some systems.
3031 if test x$enable_libmudflap = x ; then
3032 case "${target}" in
3033 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3034 # Enable libmudflap by default in GNU and friends.
3035 ;;
3036 *-*-freebsd*)
3037 # Enable libmudflap by default in FreeBSD.
3038 ;;
3039 *)
3040 # Disable it by default everywhere else.
3041 noconfigdirs="$noconfigdirs target-libmudflap"
3042 ;;
3043 esac
3044 fi
3045
3046 # Disable libgomp on non POSIX hosted systems.
3047 if test x$enable_libgomp = x ; then
3048 # Enable libgomp by default on hosted POSIX systems.
3049 case "${target}" in
3050 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3051 ;;
3052 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3053 ;;
3054 *-*-solaris2* | *-*-hpux11*)
3055 ;;
3056 *-*-darwin* | *-*-aix*)
3057 ;;
3058 *)
3059 noconfigdirs="$noconfigdirs target-libgomp"
3060 ;;
3061 esac
3062 fi
3063
3064 # Disable libatomic on unsupported systems.
3065 if test -d ${srcdir}/libatomic; then
3066 if test x$enable_libatomic = x; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3068 $as_echo_n "checking for libatomic support... " >&6; }
3069 if (srcdir=${srcdir}/libatomic; \
3070 . ${srcdir}/configure.tgt; \
3071 test -n "$UNSUPPORTED")
3072 then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 noconfigdirs="$noconfigdirs target-libatomic"
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3078 $as_echo "yes" >&6; }
3079 fi
3080 fi
3081 fi
3082
3083 # Disable libitm on unsupported systems.
3084 if test -d ${srcdir}/libitm; then
3085 if test x$enable_libitm = x; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3087 $as_echo_n "checking for libitm support... " >&6; }
3088 if (srcdir=${srcdir}/libitm; \
3089 . ${srcdir}/configure.tgt; \
3090 test -n "$UNSUPPORTED")
3091 then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 noconfigdirs="$noconfigdirs target-libitm"
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3097 $as_echo "yes" >&6; }
3098 fi
3099 fi
3100 fi
3101
3102 # Disable libssp for some systems.
3103 case "${target}" in
3104 avr-*-*)
3105 # No hosted I/O support.
3106 noconfigdirs="$noconfigdirs target-libssp"
3107 ;;
3108 powerpc-*-aix* | rs6000-*-aix*)
3109 noconfigdirs="$noconfigdirs target-libssp"
3110 ;;
3111 rl78-*-*)
3112 # libssp uses a misaligned load to trigger a fault, but the RL78
3113 # doesn't fault for those - instead, it gives a build-time error
3114 # for explicit misaligned loads.
3115 noconfigdirs="$noconfigdirs target-libssp"
3116 ;;
3117 esac
3118
3119 # Disable libstdc++-v3 for some systems.
3120 case "${target}" in
3121 *-*-vxworks*)
3122 # VxWorks uses the Dinkumware C++ library.
3123 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3124 ;;
3125 arm*-wince-pe*)
3126 # the C++ libraries don't build on top of CE's C libraries
3127 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3128 ;;
3129 avr-*-*)
3130 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3131 ;;
3132 esac
3133
3134 # Disable Fortran for some systems.
3135 case "${target}" in
3136 mmix-*-*)
3137 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3138 unsupported_languages="$unsupported_languages fortran"
3139 ;;
3140 esac
3141
3142 # Disable Java if libffi is not supported.
3143 case "${target}" in
3144 alpha*-*-*)
3145 ;;
3146 arm*-*-*)
3147 ;;
3148 cris-*-*)
3149 ;;
3150 frv-*-*)
3151 ;;
3152 hppa*-*-linux*)
3153 ;;
3154 hppa*-*-hpux*)
3155 ;;
3156 i?86-*-*)
3157 ;;
3158 ia64*-*-*)
3159 ;;
3160 m32r*-*-*)
3161 ;;
3162 m68k-*-*)
3163 ;;
3164 mips*-*-rtems*)
3165 ;;
3166 mips*-*-linux*)
3167 ;;
3168 powerpc*-*-linux*)
3169 ;;
3170 powerpc-*-darwin*)
3171 ;;
3172 powerpc-*-aix* | rs6000-*-aix*)
3173 ;;
3174 powerpc-*-freebsd*)
3175 ;;
3176 powerpc64-*-freebsd*)
3177 ;;
3178 powerpc*-*-rtems*)
3179 ;;
3180 s390-*-* | s390x-*-*)
3181 ;;
3182 sh-*-* | sh[34]*-*-*)
3183 ;;
3184 sh64-*-* | sh5*-*-*)
3185 ;;
3186 sparc*-*-*)
3187 ;;
3188 x86_64-*-*)
3189 ;;
3190 *-*-*)
3191 unsupported_languages="$unsupported_languages java"
3192 ;;
3193 esac
3194
3195 # Disable Java, libgcj or related libraries for some systems.
3196 case "${target}" in
3197 powerpc-*-darwin*)
3198 ;;
3199 i[3456789]86-*-darwin*)
3200 ;;
3201 x86_64-*-darwin[912]*)
3202 ;;
3203 *-*-darwin*)
3204 noconfigdirs="$noconfigdirs ${libgcj}"
3205 ;;
3206 *-*-netware*)
3207 noconfigdirs="$noconfigdirs ${libgcj}"
3208 ;;
3209 *-*-rtems*)
3210 noconfigdirs="$noconfigdirs ${libgcj}"
3211 ;;
3212 *-*-tpf*)
3213 noconfigdirs="$noconfigdirs ${libgcj}"
3214 ;;
3215 *-*-uclinux*)
3216 noconfigdirs="$noconfigdirs ${libgcj}"
3217 ;;
3218 *-*-vxworks*)
3219 noconfigdirs="$noconfigdirs ${libgcj}"
3220 ;;
3221 alpha*-*-*vms*)
3222 noconfigdirs="$noconfigdirs ${libgcj}"
3223 ;;
3224 arm-wince-pe)
3225 noconfigdirs="$noconfigdirs ${libgcj}"
3226 ;;
3227 arm*-*-symbianelf*)
3228 noconfigdirs="$noconfigdirs ${libgcj}"
3229 ;;
3230 bfin-*-*)
3231 noconfigdirs="$noconfigdirs target-boehm-gc"
3232 ;;
3233 cris-*-* | crisv32-*-*)
3234 unsupported_languages="$unsupported_languages java"
3235 case "${target}" in
3236 *-*-linux*)
3237 ;;
3238 *) # See PR46792 regarding target-libffi.
3239 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3240 esac
3241 ;;
3242 hppa*64*-*-linux*)
3243 # In this case, it's because the hppa64-linux target is for
3244 # the kernel only at this point and has no libc, and thus no
3245 # headers, crt*.o, etc., all of which are needed by these.
3246 unsupported_languages="$unsupported_languages java"
3247 ;;
3248 hppa*64*-*-hpux*)
3249 noconfigdirs="$noconfigdirs ${libgcj}"
3250 ;;
3251 hppa*-hp-hpux11*)
3252 ;;
3253 hppa*-*-hpux*)
3254 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3255 # build on HP-UX 10.20.
3256 noconfigdirs="$noconfigdirs ${libgcj}"
3257 ;;
3258 ia64*-*-*vms*)
3259 noconfigdirs="$noconfigdirs ${libgcj}"
3260 ;;
3261 i[3456789]86-w64-mingw*)
3262 noconfigdirs="$noconfigdirs ${libgcj}"
3263 ;;
3264 i[3456789]86-*-mingw*)
3265 noconfigdirs="$noconfigdirs ${libgcj}"
3266 ;;
3267 x86_64-*-mingw*)
3268 noconfigdirs="$noconfigdirs ${libgcj}"
3269 ;;
3270 mmix-*-*)
3271 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3272 ;;
3273 powerpc-*-aix*)
3274 # copied from rs6000-*-* entry
3275 noconfigdirs="$noconfigdirs ${libgcj}"
3276 ;;
3277 rs6000-*-aix*)
3278 noconfigdirs="$noconfigdirs ${libgcj}"
3279 ;;
3280 *-*-lynxos*)
3281 noconfigdirs="$noconfigdirs ${libgcj}"
3282 ;;
3283 esac
3284
3285 # Default libgloss CPU subdirectory.
3286 libgloss_dir="$target_cpu"
3287
3288 case "${target}" in
3289 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3290 libgloss_dir=wince
3291 ;;
3292 arm*-*-*)
3293 libgloss_dir=arm
3294 ;;
3295 cris-*-* | crisv32-*-*)
3296 libgloss_dir=cris
3297 ;;
3298 hppa*-*-*)
3299 libgloss_dir=pa
3300 ;;
3301 i[3456789]86-*-*)
3302 libgloss_dir=i386
3303 ;;
3304 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3305 libgloss_dir=m68hc11
3306 ;;
3307 m68*-*-* | fido-*-*)
3308 libgloss_dir=m68k
3309 ;;
3310 mips*-*-*)
3311 libgloss_dir=mips
3312 ;;
3313 powerpc*-*-*)
3314 libgloss_dir=rs6000
3315 ;;
3316 sparc*-*-*)
3317 libgloss_dir=sparc
3318 ;;
3319 esac
3320
3321 # Disable newlib and libgloss for various target OSes.
3322 case "${target}" in
3323 alpha*-dec-osf*)
3324 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3325 ;;
3326 i[3456789]86-*-linux*)
3327 # This section makes it possible to build newlib natively on linux.
3328 # If we are using a cross compiler then don't configure newlib.
3329 if test x${is_cross_compiler} != xno ; then
3330 noconfigdirs="$noconfigdirs target-newlib"
3331 fi
3332 noconfigdirs="$noconfigdirs target-libgloss"
3333 # If we are not using a cross compiler, do configure newlib.
3334 # Note however, that newlib will only be configured in this situation
3335 # if the --with-newlib option has been given, because otherwise
3336 # 'target-newlib' will appear in skipdirs.
3337 ;;
3338 i[3456789]86-*-rdos*)
3339 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3340 ;;
3341 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3342 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3343 ;;
3344 sparc-*-sunos4*)
3345 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3346 ;;
3347 *-*-aix*)
3348 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3349 ;;
3350 *-*-beos*)
3351 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3352 ;;
3353 *-*-chorusos)
3354 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3355 ;;
3356 *-*-dragonfly*)
3357 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3358 ;;
3359 *-*-freebsd*)
3360 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3361 ;;
3362 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3363 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3364 ;;
3365 *-*-lynxos*)
3366 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3367 ;;
3368 *-*-mingw*)
3369 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3370 ;;
3371 *-*-netbsd*)
3372 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3373 ;;
3374 *-*-netware*)
3375 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3376 ;;
3377 *-*-tpf*)
3378 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3379 ;;
3380 *-*-uclinux*)
3381 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3382 ;;
3383 *-*-vxworks*)
3384 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3385 ;;
3386 esac
3387
3388 case "${target}" in
3389 *-*-chorusos)
3390 ;;
3391 powerpc-*-darwin*)
3392 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3393 noconfigdirs="$noconfigdirs sim target-rda"
3394 ;;
3395 i[3456789]86-*-darwin*)
3396 noconfigdirs="$noconfigdirs ld gprof"
3397 noconfigdirs="$noconfigdirs sim target-rda"
3398 ;;
3399 x86_64-*-darwin[912]*)
3400 noconfigdirs="$noconfigdirs ld gas gprof"
3401 noconfigdirs="$noconfigdirs sim target-rda"
3402 ;;
3403 *-*-darwin*)
3404 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3405 noconfigdirs="$noconfigdirs sim target-rda"
3406 ;;
3407 *-*-dragonfly*)
3408 ;;
3409 *-*-freebsd*)
3410 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3411 && test -f /usr/local/include/gmp.h; then
3412 with_gmp=/usr/local
3413 fi
3414 ;;
3415 *-*-kaos*)
3416 # Remove unsupported stuff on all kaOS configurations.
3417 noconfigdirs="$noconfigdirs target-libgloss"
3418 ;;
3419 *-*-netbsd*)
3420 ;;
3421 *-*-netware*)
3422 ;;
3423 *-*-rtems*)
3424 noconfigdirs="$noconfigdirs target-libgloss"
3425 ;;
3426 # The tpf target doesn't support gdb yet.
3427 *-*-tpf*)
3428 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3429 ;;
3430 *-*-uclinux*)
3431 noconfigdirs="$noconfigdirs target-rda"
3432 ;;
3433 *-*-vxworks*)
3434 ;;
3435 alpha*-dec-osf*)
3436 # ld works, but does not support shared libraries.
3437 # gas doesn't generate exception information.
3438 noconfigdirs="$noconfigdirs gas ld"
3439 ;;
3440 alpha*-*-*vms*)
3441 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3442 ;;
3443 alpha*-*-*)
3444 # newlib is not 64 bit ready
3445 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3446 ;;
3447 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3448 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3449 ;;
3450 arc-*-*)
3451 noconfigdirs="$noconfigdirs target-libgloss"
3452 ;;
3453 arm-*-pe*)
3454 noconfigdirs="$noconfigdirs target-libgloss"
3455 ;;
3456 arm-*-riscix*)
3457 noconfigdirs="$noconfigdirs ld target-libgloss"
3458 ;;
3459 c4x-*-* | tic4x-*-*)
3460 noconfigdirs="$noconfigdirs target-libgloss"
3461 ;;
3462 tic54x-*-*)
3463 noconfigdirs="$noconfigdirs target-libgloss gdb"
3464 ;;
3465 d10v-*-*)
3466 noconfigdirs="$noconfigdirs target-libgloss"
3467 ;;
3468 d30v-*-*)
3469 noconfigdirs="$noconfigdirs gdb"
3470 ;;
3471 fr30-*-elf*)
3472 noconfigdirs="$noconfigdirs gdb"
3473 ;;
3474 moxie-*-*)
3475 noconfigdirs="$noconfigdirs gprof"
3476 ;;
3477 h8300*-*-*)
3478 noconfigdirs="$noconfigdirs target-libgloss"
3479 ;;
3480 h8500-*-*)
3481 noconfigdirs="$noconfigdirs target-libgloss"
3482 ;;
3483 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3484 ;;
3485 hppa*64*-*-linux*)
3486 ;;
3487 hppa*-*-linux*)
3488 ;;
3489 hppa*-*-*elf* | \
3490 hppa*-*-lites* | \
3491 hppa*-*-openbsd* | \
3492 hppa*64*-*-*)
3493 ;;
3494 hppa*-hp-hpux11*)
3495 noconfigdirs="$noconfigdirs ld"
3496 ;;
3497 hppa*-*-pro*)
3498 ;;
3499 hppa*-*-*)
3500 noconfigdirs="$noconfigdirs ld"
3501 ;;
3502 i960-*-*)
3503 noconfigdirs="$noconfigdirs gdb"
3504 ;;
3505 ia64*-*-elf*)
3506 # No gdb support yet.
3507 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3508 ;;
3509 ia64*-**-hpux*)
3510 # No ld support yet.
3511 noconfigdirs="$noconfigdirs libgui itcl ld"
3512 ;;
3513 ia64*-*-*vms*)
3514 # No ld support yet.
3515 noconfigdirs="$noconfigdirs libgui itcl ld"
3516 ;;
3517 i[3456789]86-w64-mingw*)
3518 ;;
3519 i[3456789]86-*-mingw*)
3520 target_configdirs="$target_configdirs target-winsup"
3521 ;;
3522 *-*-cygwin*)
3523 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3524 noconfigdirs="$noconfigdirs target-libgloss"
3525 # always build newlib if winsup directory is present.
3526 if test -d "$srcdir/winsup/cygwin"; then
3527 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3528 elif test -d "$srcdir/newlib"; then
3529 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3530 fi
3531 ;;
3532 i[3456789]86-*-pe)
3533 noconfigdirs="$noconfigdirs target-libgloss"
3534 ;;
3535 i[3456789]86-*-sco3.2v5*)
3536 # The linker does not yet know about weak symbols in COFF,
3537 # and is not configured to handle mixed ELF and COFF.
3538 noconfigdirs="$noconfigdirs ld target-libgloss"
3539 ;;
3540 i[3456789]86-*-sco*)
3541 noconfigdirs="$noconfigdirs gprof target-libgloss"
3542 ;;
3543 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3544 noconfigdirs="$noconfigdirs target-libgloss"
3545 ;;
3546 i[3456789]86-*-sysv4*)
3547 noconfigdirs="$noconfigdirs target-libgloss"
3548 ;;
3549 i[3456789]86-*-beos*)
3550 noconfigdirs="$noconfigdirs gdb"
3551 ;;
3552 i[3456789]86-*-rdos*)
3553 noconfigdirs="$noconfigdirs gdb"
3554 ;;
3555 mmix-*-*)
3556 noconfigdirs="$noconfigdirs gdb"
3557 ;;
3558 mt-*-*)
3559 noconfigdirs="$noconfigdirs sim"
3560 ;;
3561 powerpc-*-aix*)
3562 # copied from rs6000-*-* entry
3563 noconfigdirs="$noconfigdirs gprof"
3564 ;;
3565 powerpc*-*-winnt* | powerpc*-*-pe*)
3566 target_configdirs="$target_configdirs target-winsup"
3567 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3568 # always build newlib.
3569 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3570 ;;
3571 # This is temporary until we can link against shared libraries
3572 powerpcle-*-solaris*)
3573 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3574 ;;
3575 powerpc-*-beos*)
3576 noconfigdirs="$noconfigdirs gdb"
3577 ;;
3578 rs6000-*-lynxos*)
3579 noconfigdirs="$noconfigdirs gprof"
3580 ;;
3581 rs6000-*-aix*)
3582 noconfigdirs="$noconfigdirs gprof"
3583 ;;
3584 rs6000-*-*)
3585 noconfigdirs="$noconfigdirs gprof"
3586 ;;
3587 m68k-apollo-*)
3588 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3589 ;;
3590 microblaze*)
3591 noconfigdirs="$noconfigdirs gprof"
3592 ;;
3593 mips*-sde-elf*)
3594 if test x$with_newlib = xyes; then
3595 noconfigdirs="$noconfigdirs gprof"
3596 fi
3597 ;;
3598 mips*-*-irix5*)
3599 noconfigdirs="$noconfigdirs gprof target-libgloss"
3600 ;;
3601 mips*-*-irix6*)
3602 noconfigdirs="$noconfigdirs gprof target-libgloss"
3603 ;;
3604 mips*-*-bsd*)
3605 noconfigdirs="$noconfigdirs gprof target-libgloss"
3606 ;;
3607 mips*-*-linux*)
3608 ;;
3609 mips*-*-*)
3610 noconfigdirs="$noconfigdirs gprof"
3611 ;;
3612 sh-*-* | sh64-*-*)
3613 case "${target}" in
3614 sh*-*-elf)
3615 ;;
3616 *)
3617 noconfigdirs="$noconfigdirs target-libgloss" ;;
3618 esac
3619 ;;
3620 sparc-*-sunos4*)
3621 if test x${is_cross_compiler} = xno ; then
3622 use_gnu_ld=no
3623 fi
3624 ;;
3625 tic6x-*-*)
3626 noconfigdirs="$noconfigdirs sim"
3627 ;;
3628 tilepro-*-* | tilegx-*-*)
3629 noconfigdirs="$noconfigdirs sim"
3630 ;;
3631 v810-*-*)
3632 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3633 ;;
3634 vax-*-*)
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 ;;
3637 esac
3638
3639 # If we aren't building newlib, then don't build libgloss, since libgloss
3640 # depends upon some newlib header files.
3641 case "${noconfigdirs}" in
3642 *target-libgloss*) ;;
3643 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3644 esac
3645
3646 # Work in distributions that contain no compiler tools, like Autoconf.
3647 host_makefile_frag=/dev/null
3648 if test -d ${srcdir}/config ; then
3649 case "${host}" in
3650 i[3456789]86-*-msdosdjgpp*)
3651 host_makefile_frag="config/mh-djgpp"
3652 ;;
3653 *-cygwin*)
3654
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3656 $as_echo_n "checking to see if cat works as expected... " >&6; }
3657 echo a >cygwin-cat-check
3658 if test `cat cygwin-cat-check` = a ; then
3659 rm cygwin-cat-check
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3661 $as_echo "yes" >&6; }
3662 else
3663 rm cygwin-cat-check
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3666 as_fn_error "The cat command does not ignore carriage return characters.
3667 Please either mount the build directory in binary mode or run the following
3668 commands before running any configure script:
3669 set -o igncr
3670 export SHELLOPTS
3671 " "$LINENO" 5
3672 fi
3673
3674 host_makefile_frag="config/mh-cygwin"
3675 ;;
3676 *-mingw*)
3677 host_makefile_frag="config/mh-mingw"
3678 ;;
3679 hppa*-hp-hpux10*)
3680 host_makefile_frag="config/mh-pa-hpux10"
3681 ;;
3682 hppa*-hp-hpux*)
3683 host_makefile_frag="config/mh-pa"
3684 ;;
3685 hppa*-*)
3686 host_makefile_frag="config/mh-pa"
3687 ;;
3688 *-*-darwin*)
3689 host_makefile_frag="config/mh-darwin"
3690 ;;
3691 powerpc-*-aix*)
3692 host_makefile_frag="config/mh-ppc-aix"
3693 ;;
3694 rs6000-*-aix*)
3695 host_makefile_frag="config/mh-ppc-aix"
3696 ;;
3697 esac
3698 fi
3699
3700 if test "${build}" != "${host}" ; then
3701 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3702 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3703 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3704 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3705 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3706 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3707 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3708 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3709 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3710 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3711 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3712 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3713 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3714 else
3715 AR_FOR_BUILD="\$(AR)"
3716 AS_FOR_BUILD="\$(AS)"
3717 CC_FOR_BUILD="\$(CC)"
3718 CXX_FOR_BUILD="\$(CXX)"
3719 GCJ_FOR_BUILD="\$(GCJ)"
3720 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3721 GOC_FOR_BUILD="\$(GOC)"
3722 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3723 LD_FOR_BUILD="\$(LD)"
3724 NM_FOR_BUILD="\$(NM)"
3725 RANLIB_FOR_BUILD="\$(RANLIB)"
3726 WINDRES_FOR_BUILD="\$(WINDRES)"
3727 WINDMC_FOR_BUILD="\$(WINDMC)"
3728 fi
3729
3730 ac_ext=c
3731 ac_cpp='$CPP $CPPFLAGS'
3732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735 if test -n "$ac_tool_prefix"; then
3736 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3737 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if test "${ac_cv_prog_CC+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 if test -n "$CC"; then
3744 ac_cv_prog_CC="$CC" # Let the user override the test.
3745 else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3748 do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3756 fi
3757 done
3758 done
3759 IFS=$as_save_IFS
3760
3761 fi
3762 fi
3763 CC=$ac_cv_prog_CC
3764 if test -n "$CC"; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3766 $as_echo "$CC" >&6; }
3767 else
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3770 fi
3771
3772
3773 fi
3774 if test -z "$ac_cv_prog_CC"; then
3775 ac_ct_CC=$CC
3776 # Extract the first word of "gcc", so it can be a program name with args.
3777 set dummy gcc; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if test -n "$ac_ct_CC"; then
3784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3788 do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3793 ac_cv_prog_ac_ct_CC="gcc"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3796 fi
3797 done
3798 done
3799 IFS=$as_save_IFS
3800
3801 fi
3802 fi
3803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3804 if test -n "$ac_ct_CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3806 $as_echo "$ac_ct_CC" >&6; }
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3810 fi
3811
3812 if test "x$ac_ct_CC" = x; then
3813 CC=""
3814 else
3815 case $cross_compiling:$ac_tool_warned in
3816 yes:)
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3819 ac_tool_warned=yes ;;
3820 esac
3821 CC=$ac_ct_CC
3822 fi
3823 else
3824 CC="$ac_cv_prog_CC"
3825 fi
3826
3827 if test -z "$CC"; then
3828 if test -n "$ac_tool_prefix"; then
3829 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3830 set dummy ${ac_tool_prefix}cc; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if test "${ac_cv_prog_CC+set}" = set; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 if test -n "$CC"; then
3837 ac_cv_prog_CC="$CC" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3846 ac_cv_prog_CC="${ac_tool_prefix}cc"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 break 2
3849 fi
3850 done
3851 done
3852 IFS=$as_save_IFS
3853
3854 fi
3855 fi
3856 CC=$ac_cv_prog_CC
3857 if test -n "$CC"; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3859 $as_echo "$CC" >&6; }
3860 else
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 fi
3864
3865
3866 fi
3867 fi
3868 if test -z "$CC"; then
3869 # Extract the first word of "cc", so it can be a program name with args.
3870 set dummy cc; ac_word=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if test "${ac_cv_prog_CC+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3875 else
3876 if test -n "$CC"; then
3877 ac_cv_prog_CC="$CC" # Let the user override the test.
3878 else
3879 ac_prog_rejected=no
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH
3882 do
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3887 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3888 ac_prog_rejected=yes
3889 continue
3890 fi
3891 ac_cv_prog_CC="cc"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3894 fi
3895 done
3896 done
3897 IFS=$as_save_IFS
3898
3899 if test $ac_prog_rejected = yes; then
3900 # We found a bogon in the path, so make sure we never use it.
3901 set dummy $ac_cv_prog_CC
3902 shift
3903 if test $# != 0; then
3904 # We chose a different compiler from the bogus one.
3905 # However, it has the same basename, so the bogon will be chosen
3906 # first if we set CC to just the basename; use the full file name.
3907 shift
3908 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3909 fi
3910 fi
3911 fi
3912 fi
3913 CC=$ac_cv_prog_CC
3914 if test -n "$CC"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3916 $as_echo "$CC" >&6; }
3917 else
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3920 fi
3921
3922
3923 fi
3924 if test -z "$CC"; then
3925 if test -n "$ac_tool_prefix"; then
3926 for ac_prog in cl.exe
3927 do
3928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3929 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931 $as_echo_n "checking for $ac_word... " >&6; }
3932 if test "${ac_cv_prog_CC+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 if test -n "$CC"; then
3936 ac_cv_prog_CC="$CC" # Let the user override the test.
3937 else
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH
3940 do
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3945 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 break 2
3948 fi
3949 done
3950 done
3951 IFS=$as_save_IFS
3952
3953 fi
3954 fi
3955 CC=$ac_cv_prog_CC
3956 if test -n "$CC"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3958 $as_echo "$CC" >&6; }
3959 else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3962 fi
3963
3964
3965 test -n "$CC" && break
3966 done
3967 fi
3968 if test -z "$CC"; then
3969 ac_ct_CC=$CC
3970 for ac_prog in cl.exe
3971 do
3972 # Extract the first word of "$ac_prog", so it can be a program name with args.
3973 set dummy $ac_prog; ac_word=$2
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 $as_echo_n "checking for $ac_word... " >&6; }
3976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if test -n "$ac_ct_CC"; then
3980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3984 do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989 ac_cv_prog_ac_ct_CC="$ac_prog"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993 done
3994 done
3995 IFS=$as_save_IFS
3996
3997 fi
3998 fi
3999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4000 if test -n "$ac_ct_CC"; then
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4002 $as_echo "$ac_ct_CC" >&6; }
4003 else
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4006 fi
4007
4008
4009 test -n "$ac_ct_CC" && break
4010 done
4011
4012 if test "x$ac_ct_CC" = x; then
4013 CC=""
4014 else
4015 case $cross_compiling:$ac_tool_warned in
4016 yes:)
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4019 ac_tool_warned=yes ;;
4020 esac
4021 CC=$ac_ct_CC
4022 fi
4023 fi
4024
4025 fi
4026
4027
4028 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030 as_fn_error "no acceptable C compiler found in \$PATH
4031 See \`config.log' for more details." "$LINENO" 5; }
4032
4033 # Provide some information about the compiler.
4034 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4035 set X $ac_compile
4036 ac_compiler=$2
4037 for ac_option in --version -v -V -qversion; do
4038 { { ac_try="$ac_compiler $ac_option >&5"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4044 $as_echo "$ac_try_echo"; } >&5
4045 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4046 ac_status=$?
4047 if test -s conftest.err; then
4048 sed '10a\
4049 ... rest of stderr output deleted ...
4050 10q' conftest.err >conftest.er1
4051 cat conftest.er1 >&5
4052 rm -f conftest.er1 conftest.err
4053 fi
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }
4056 done
4057
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060
4061 int
4062 main ()
4063 {
4064
4065 ;
4066 return 0;
4067 }
4068 _ACEOF
4069 ac_clean_files_save=$ac_clean_files
4070 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4071 # Try to create an executable without -o first, disregard a.out.
4072 # It will help us diagnose broken compilers, and finding out an intuition
4073 # of exeext.
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4075 $as_echo_n "checking for C compiler default output file name... " >&6; }
4076 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4077
4078 # The possible output files:
4079 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4080
4081 ac_rmfiles=
4082 for ac_file in $ac_files
4083 do
4084 case $ac_file in
4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4086 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4087 esac
4088 done
4089 rm -f $ac_rmfiles
4090
4091 if { { ac_try="$ac_link_default"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097 $as_echo "$ac_try_echo"; } >&5
4098 (eval "$ac_link_default") 2>&5
4099 ac_status=$?
4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }; then :
4102 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4103 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4104 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4105 # so that the user can short-circuit this test for compilers unknown to
4106 # Autoconf.
4107 for ac_file in $ac_files ''
4108 do
4109 test -f "$ac_file" || continue
4110 case $ac_file in
4111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4112 ;;
4113 [ab].out )
4114 # We found the default executable, but exeext='' is most
4115 # certainly right.
4116 break;;
4117 *.* )
4118 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4119 then :; else
4120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4121 fi
4122 # We set ac_cv_exeext here because the later test for it is not
4123 # safe: cross compilers may not add the suffix if given an `-o'
4124 # argument, so we may need to know it at that point already.
4125 # Even if this section looks crufty: it has the advantage of
4126 # actually working.
4127 break;;
4128 * )
4129 break;;
4130 esac
4131 done
4132 test "$ac_cv_exeext" = no && ac_cv_exeext=
4133
4134 else
4135 ac_file=''
4136 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4138 $as_echo "$ac_file" >&6; }
4139 if test -z "$ac_file"; then :
4140 $as_echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4142
4143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4145 { as_fn_set_status 77
4146 as_fn_error "C compiler cannot create executables
4147 See \`config.log' for more details." "$LINENO" 5; }; }
4148 fi
4149 ac_exeext=$ac_cv_exeext
4150
4151 # Check that the compiler produces executables we can run. If not, either
4152 # the compiler is broken, or we cross compile.
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4154 $as_echo_n "checking whether the C compiler works... " >&6; }
4155 # If not cross compiling, check that we can run a simple program.
4156 if test "$cross_compiling" != yes; then
4157 if { ac_try='./$ac_file'
4158 { { case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161 esac
4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163 $as_echo "$ac_try_echo"; } >&5
4164 (eval "$ac_try") 2>&5
4165 ac_status=$?
4166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4167 test $ac_status = 0; }; }; then
4168 cross_compiling=no
4169 else
4170 if test "$cross_compiling" = maybe; then
4171 cross_compiling=yes
4172 else
4173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4175 as_fn_error "cannot run C compiled programs.
4176 If you meant to cross compile, use \`--host'.
4177 See \`config.log' for more details." "$LINENO" 5; }
4178 fi
4179 fi
4180 fi
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4182 $as_echo "yes" >&6; }
4183
4184 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4185 ac_clean_files=$ac_clean_files_save
4186 # Check that the compiler produces executables we can run. If not, either
4187 # the compiler is broken, or we cross compile.
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4189 $as_echo_n "checking whether we are cross compiling... " >&6; }
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4191 $as_echo "$cross_compiling" >&6; }
4192
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4194 $as_echo_n "checking for suffix of executables... " >&6; }
4195 if { { ac_try="$ac_link"
4196 case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199 esac
4200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201 $as_echo "$ac_try_echo"; } >&5
4202 (eval "$ac_link") 2>&5
4203 ac_status=$?
4204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4205 test $ac_status = 0; }; then :
4206 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4207 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4208 # work properly (i.e., refer to `conftest.exe'), while it won't with
4209 # `rm'.
4210 for ac_file in conftest.exe conftest conftest.*; do
4211 test -f "$ac_file" || continue
4212 case $ac_file in
4213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4214 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4215 break;;
4216 * ) break;;
4217 esac
4218 done
4219 else
4220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4222 as_fn_error "cannot compute suffix of executables: cannot compile and link
4223 See \`config.log' for more details." "$LINENO" 5; }
4224 fi
4225 rm -f conftest$ac_cv_exeext
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4227 $as_echo "$ac_cv_exeext" >&6; }
4228
4229 rm -f conftest.$ac_ext
4230 EXEEXT=$ac_cv_exeext
4231 ac_exeext=$EXEEXT
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4233 $as_echo_n "checking for suffix of object files... " >&6; }
4234 if test "${ac_cv_objext+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239
4240 int
4241 main ()
4242 {
4243
4244 ;
4245 return 0;
4246 }
4247 _ACEOF
4248 rm -f conftest.o conftest.obj
4249 if { { ac_try="$ac_compile"
4250 case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253 esac
4254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4255 $as_echo "$ac_try_echo"; } >&5
4256 (eval "$ac_compile") 2>&5
4257 ac_status=$?
4258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4259 test $ac_status = 0; }; then :
4260 for ac_file in conftest.o conftest.obj conftest.*; do
4261 test -f "$ac_file" || continue;
4262 case $ac_file in
4263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4264 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4265 break;;
4266 esac
4267 done
4268 else
4269 $as_echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4271
4272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4274 as_fn_error "cannot compute suffix of object files: cannot compile
4275 See \`config.log' for more details." "$LINENO" 5; }
4276 fi
4277 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4278 fi
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4280 $as_echo "$ac_cv_objext" >&6; }
4281 OBJEXT=$ac_cv_objext
4282 ac_objext=$OBJEXT
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4284 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4285 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290
4291 int
4292 main ()
4293 {
4294 #ifndef __GNUC__
4295 choke me
4296 #endif
4297
4298 ;
4299 return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_c_try_compile "$LINENO"; then :
4303 ac_compiler_gnu=yes
4304 else
4305 ac_compiler_gnu=no
4306 fi
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4309
4310 fi
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4312 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4313 if test $ac_compiler_gnu = yes; then
4314 GCC=yes
4315 else
4316 GCC=
4317 fi
4318 ac_test_CFLAGS=${CFLAGS+set}
4319 ac_save_CFLAGS=$CFLAGS
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4321 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4322 if test "${ac_cv_prog_cc_g+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 ac_save_c_werror_flag=$ac_c_werror_flag
4326 ac_c_werror_flag=yes
4327 ac_cv_prog_cc_g=no
4328 CFLAGS="-g"
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4331
4332 int
4333 main ()
4334 {
4335
4336 ;
4337 return 0;
4338 }
4339 _ACEOF
4340 if ac_fn_c_try_compile "$LINENO"; then :
4341 ac_cv_prog_cc_g=yes
4342 else
4343 CFLAGS=""
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4346
4347 int
4348 main ()
4349 {
4350
4351 ;
4352 return 0;
4353 }
4354 _ACEOF
4355 if ac_fn_c_try_compile "$LINENO"; then :
4356
4357 else
4358 ac_c_werror_flag=$ac_save_c_werror_flag
4359 CFLAGS="-g"
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4362
4363 int
4364 main ()
4365 {
4366
4367 ;
4368 return 0;
4369 }
4370 _ACEOF
4371 if ac_fn_c_try_compile "$LINENO"; then :
4372 ac_cv_prog_cc_g=yes
4373 fi
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 fi
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 fi
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 ac_c_werror_flag=$ac_save_c_werror_flag
4380 fi
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4382 $as_echo "$ac_cv_prog_cc_g" >&6; }
4383 if test "$ac_test_CFLAGS" = set; then
4384 CFLAGS=$ac_save_CFLAGS
4385 elif test $ac_cv_prog_cc_g = yes; then
4386 if test "$GCC" = yes; then
4387 CFLAGS="-g -O2"
4388 else
4389 CFLAGS="-g"
4390 fi
4391 else
4392 if test "$GCC" = yes; then
4393 CFLAGS="-O2"
4394 else
4395 CFLAGS=
4396 fi
4397 fi
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4399 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4400 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 ac_cv_prog_cc_c89=no
4404 ac_save_CC=$CC
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407 #include <stdarg.h>
4408 #include <stdio.h>
4409 #include <sys/types.h>
4410 #include <sys/stat.h>
4411 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4412 struct buf { int x; };
4413 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4414 static char *e (p, i)
4415 char **p;
4416 int i;
4417 {
4418 return p[i];
4419 }
4420 static char *f (char * (*g) (char **, int), char **p, ...)
4421 {
4422 char *s;
4423 va_list v;
4424 va_start (v,p);
4425 s = g (p, va_arg (v,int));
4426 va_end (v);
4427 return s;
4428 }
4429
4430 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4431 function prototypes and stuff, but not '\xHH' hex character constants.
4432 These don't provoke an error unfortunately, instead are silently treated
4433 as 'x'. The following induces an error, until -std is added to get
4434 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4435 array size at least. It's necessary to write '\x00'==0 to get something
4436 that's true only with -std. */
4437 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4438
4439 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4440 inside strings and character constants. */
4441 #define FOO(x) 'x'
4442 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4443
4444 int test (int i, double x);
4445 struct s1 {int (*f) (int a);};
4446 struct s2 {int (*f) (double a);};
4447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4448 int argc;
4449 char **argv;
4450 int
4451 main ()
4452 {
4453 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4454 ;
4455 return 0;
4456 }
4457 _ACEOF
4458 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4459 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4460 do
4461 CC="$ac_save_CC $ac_arg"
4462 if ac_fn_c_try_compile "$LINENO"; then :
4463 ac_cv_prog_cc_c89=$ac_arg
4464 fi
4465 rm -f core conftest.err conftest.$ac_objext
4466 test "x$ac_cv_prog_cc_c89" != "xno" && break
4467 done
4468 rm -f conftest.$ac_ext
4469 CC=$ac_save_CC
4470
4471 fi
4472 # AC_CACHE_VAL
4473 case "x$ac_cv_prog_cc_c89" in
4474 x)
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4476 $as_echo "none needed" >&6; } ;;
4477 xno)
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4479 $as_echo "unsupported" >&6; } ;;
4480 *)
4481 CC="$CC $ac_cv_prog_cc_c89"
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4483 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4484 esac
4485 if test "x$ac_cv_prog_cc_c89" != xno; then :
4486
4487 fi
4488
4489 ac_ext=c
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494
4495 ac_ext=cpp
4496 ac_cpp='$CXXCPP $CPPFLAGS'
4497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4500 if test -z "$CXX"; then
4501 if test -n "$CCC"; then
4502 CXX=$CCC
4503 else
4504 if test -n "$ac_tool_prefix"; then
4505 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4506 do
4507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if test "${ac_cv_prog_CXX+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$CXX"; then
4515 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528 done
4529 done
4530 IFS=$as_save_IFS
4531
4532 fi
4533 fi
4534 CXX=$ac_cv_prog_CXX
4535 if test -n "$CXX"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4537 $as_echo "$CXX" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 fi
4542
4543
4544 test -n "$CXX" && break
4545 done
4546 fi
4547 if test -z "$CXX"; then
4548 ac_ct_CXX=$CXX
4549 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4550 do
4551 # Extract the first word of "$ac_prog", so it can be a program name with args.
4552 set dummy $ac_prog; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$ac_ct_CXX"; then
4559 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_ac_ct_CXX="$ac_prog"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4579 if test -n "$ac_ct_CXX"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4581 $as_echo "$ac_ct_CXX" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586
4587
4588 test -n "$ac_ct_CXX" && break
4589 done
4590
4591 if test "x$ac_ct_CXX" = x; then
4592 CXX="g++"
4593 else
4594 case $cross_compiling:$ac_tool_warned in
4595 yes:)
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598 ac_tool_warned=yes ;;
4599 esac
4600 CXX=$ac_ct_CXX
4601 fi
4602 fi
4603
4604 fi
4605 fi
4606 # Provide some information about the compiler.
4607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4608 set X $ac_compile
4609 ac_compiler=$2
4610 for ac_option in --version -v -V -qversion; do
4611 { { ac_try="$ac_compiler $ac_option >&5"
4612 case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615 esac
4616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617 $as_echo "$ac_try_echo"; } >&5
4618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4619 ac_status=$?
4620 if test -s conftest.err; then
4621 sed '10a\
4622 ... rest of stderr output deleted ...
4623 10q' conftest.err >conftest.er1
4624 cat conftest.er1 >&5
4625 rm -f conftest.er1 conftest.err
4626 fi
4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }
4629 done
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4632 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4633 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638
4639 int
4640 main ()
4641 {
4642 #ifndef __GNUC__
4643 choke me
4644 #endif
4645
4646 ;
4647 return 0;
4648 }
4649 _ACEOF
4650 if ac_fn_cxx_try_compile "$LINENO"; then :
4651 ac_compiler_gnu=yes
4652 else
4653 ac_compiler_gnu=no
4654 fi
4655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4657
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4660 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4661 if test $ac_compiler_gnu = yes; then
4662 GXX=yes
4663 else
4664 GXX=
4665 fi
4666 ac_test_CXXFLAGS=${CXXFLAGS+set}
4667 ac_save_CXXFLAGS=$CXXFLAGS
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4669 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4670 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4674 ac_cxx_werror_flag=yes
4675 ac_cv_prog_cxx_g=no
4676 CXXFLAGS="-g"
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679
4680 int
4681 main ()
4682 {
4683
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 if ac_fn_cxx_try_compile "$LINENO"; then :
4689 ac_cv_prog_cxx_g=yes
4690 else
4691 CXXFLAGS=""
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694
4695 int
4696 main ()
4697 {
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 if ac_fn_cxx_try_compile "$LINENO"; then :
4704
4705 else
4706 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4707 CXXFLAGS="-g"
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4710
4711 int
4712 main ()
4713 {
4714
4715 ;
4716 return 0;
4717 }
4718 _ACEOF
4719 if ac_fn_cxx_try_compile "$LINENO"; then :
4720 ac_cv_prog_cxx_g=yes
4721 fi
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 fi
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 fi
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4730 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4731 if test "$ac_test_CXXFLAGS" = set; then
4732 CXXFLAGS=$ac_save_CXXFLAGS
4733 elif test $ac_cv_prog_cxx_g = yes; then
4734 if test "$GXX" = yes; then
4735 CXXFLAGS="-g -O2"
4736 else
4737 CXXFLAGS="-g"
4738 fi
4739 else
4740 if test "$GXX" = yes; then
4741 CXXFLAGS="-O2"
4742 else
4743 CXXFLAGS=
4744 fi
4745 fi
4746 ac_ext=c
4747 ac_cpp='$CPP $CPPFLAGS'
4748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751
4752
4753 # We must set the default linker to the linker used by gcc for the correct
4754 # operation of libtool. If LD is not defined and we are using gcc, try to
4755 # set the LD default to the ld used by gcc.
4756 if test -z "$LD"; then
4757 if test "$GCC" = yes; then
4758 case $build in
4759 *-*-mingw*)
4760 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4761 *)
4762 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4763 esac
4764 case $gcc_prog_ld in
4765 # Accept absolute paths.
4766 [\\/]* | [A-Za-z]:[\\/]*)
4767 LD="$gcc_prog_ld" ;;
4768 esac
4769 fi
4770 fi
4771
4772
4773
4774
4775 if test -n "$ac_tool_prefix"; then
4776 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4777 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -n "$GNATBIND"; then
4784 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797 done
4798 done
4799 IFS=$as_save_IFS
4800
4801 fi
4802 fi
4803 GNATBIND=$ac_cv_prog_GNATBIND
4804 if test -n "$GNATBIND"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4806 $as_echo "$GNATBIND" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811
4812
4813 fi
4814 if test -z "$ac_cv_prog_GNATBIND"; then
4815 ac_ct_GNATBIND=$GNATBIND
4816 # Extract the first word of "gnatbind", so it can be a program name with args.
4817 set dummy gnatbind; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 if test -n "$ac_ct_GNATBIND"; then
4824 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4844 if test -n "$ac_ct_GNATBIND"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4846 $as_echo "$ac_ct_GNATBIND" >&6; }
4847 else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4850 fi
4851
4852 if test "x$ac_ct_GNATBIND" = x; then
4853 GNATBIND="no"
4854 else
4855 case $cross_compiling:$ac_tool_warned in
4856 yes:)
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4859 ac_tool_warned=yes ;;
4860 esac
4861 GNATBIND=$ac_ct_GNATBIND
4862 fi
4863 else
4864 GNATBIND="$ac_cv_prog_GNATBIND"
4865 fi
4866
4867 if test -n "$ac_tool_prefix"; then
4868 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4869 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -n "$GNATMAKE"; then
4876 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4888 fi
4889 done
4890 done
4891 IFS=$as_save_IFS
4892
4893 fi
4894 fi
4895 GNATMAKE=$ac_cv_prog_GNATMAKE
4896 if test -n "$GNATMAKE"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4898 $as_echo "$GNATMAKE" >&6; }
4899 else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4902 fi
4903
4904
4905 fi
4906 if test -z "$ac_cv_prog_GNATMAKE"; then
4907 ac_ct_GNATMAKE=$GNATMAKE
4908 # Extract the first word of "gnatmake", so it can be a program name with args.
4909 set dummy gnatmake; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 if test -n "$ac_ct_GNATMAKE"; then
4916 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4928 fi
4929 done
4930 done
4931 IFS=$as_save_IFS
4932
4933 fi
4934 fi
4935 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4936 if test -n "$ac_ct_GNATMAKE"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4938 $as_echo "$ac_ct_GNATMAKE" >&6; }
4939 else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4942 fi
4943
4944 if test "x$ac_ct_GNATMAKE" = x; then
4945 GNATMAKE="no"
4946 else
4947 case $cross_compiling:$ac_tool_warned in
4948 yes:)
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4951 ac_tool_warned=yes ;;
4952 esac
4953 GNATMAKE=$ac_ct_GNATMAKE
4954 fi
4955 else
4956 GNATMAKE="$ac_cv_prog_GNATMAKE"
4957 fi
4958
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4960 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4961 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 cat >conftest.adb <<EOF
4965 procedure conftest is begin null; end conftest;
4966 EOF
4967 acx_cv_cc_gcc_supports_ada=no
4968 # There is a bug in old released versions of GCC which causes the
4969 # driver to exit successfully when the appropriate language module
4970 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4971 # Therefore we must check for the error message as well as an
4972 # unsuccessful exit.
4973 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4974 # given a .adb file, but produce no object file. So we must check
4975 # if an object file was really produced to guard against this.
4976 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4977 if test x"$errors" = x && test -f conftest.$ac_objext; then
4978 acx_cv_cc_gcc_supports_ada=yes
4979 fi
4980 rm -f conftest.*
4981 fi
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4983 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4984
4985 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4986 have_gnat=yes
4987 else
4988 have_gnat=no
4989 fi
4990
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4992 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4993 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 echo abfoo >t1
4997 echo cdfoo >t2
4998 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4999 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5000 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5001 :
5002 else
5003 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5004 fi
5005 fi
5006 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5007 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5008 :
5009 else
5010 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5011 fi
5012 fi
5013 rm t1 t2
5014
5015 fi
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5017 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5018 do_compare="$gcc_cv_prog_cmp_skip"
5019
5020
5021
5022 # Check whether --enable-bootstrap was given.
5023 if test "${enable_bootstrap+set}" = set; then :
5024 enableval=$enable_bootstrap;
5025 else
5026 enable_bootstrap=default
5027 fi
5028
5029
5030 # Issue errors and warnings for invalid/strange bootstrap combinations.
5031 if test -r $srcdir/gcc/configure; then
5032 have_compiler=yes
5033 else
5034 have_compiler=no
5035 fi
5036
5037 case "$have_compiler:$host:$target:$enable_bootstrap" in
5038 *:*:*:no) ;;
5039
5040 # Default behavior. Enable bootstrap if we have a compiler
5041 # and we are in a native configuration.
5042 yes:$build:$build:default)
5043 enable_bootstrap=yes ;;
5044
5045 *:*:*:default)
5046 enable_bootstrap=no ;;
5047
5048 # We have a compiler and we are in a native configuration, bootstrap is ok
5049 yes:$build:$build:yes)
5050 ;;
5051
5052 # Other configurations, but we have a compiler. Assume the user knows
5053 # what he's doing.
5054 yes:*:*:yes)
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5056 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5057 ;;
5058
5059 # No compiler: if they passed --enable-bootstrap explicitly, fail
5060 no:*:*:yes)
5061 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5062
5063 # Fail if wrong command line
5064 *)
5065 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5066 ;;
5067 esac
5068
5069 # See if we are building gcc with C++.
5070 # Check whether --enable-build-with-cxx was given.
5071 if test "${enable_build_with_cxx+set}" = set; then :
5072 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5073 else
5074 ENABLE_BUILD_WITH_CXX=no
5075 fi
5076
5077
5078 # Build stage1 with C and build stages 2 and 3 with C++.
5079 # Check whether --enable-build-poststage1-with-cxx was given.
5080 if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5081 enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5082 else
5083 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5084 fi
5085
5086
5087 # Used for setting $lt_cv_objdir
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5089 $as_echo_n "checking for objdir... " >&6; }
5090 if test "${lt_cv_objdir+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 rm -f .libs 2>/dev/null
5094 mkdir .libs 2>/dev/null
5095 if test -d .libs; then
5096 lt_cv_objdir=.libs
5097 else
5098 # MS-DOS does not allow filenames that begin with a dot.
5099 lt_cv_objdir=_libs
5100 fi
5101 rmdir .libs 2>/dev/null
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5104 $as_echo "$lt_cv_objdir" >&6; }
5105 objdir=$lt_cv_objdir
5106
5107
5108
5109
5110
5111 cat >>confdefs.h <<_ACEOF
5112 #define LT_OBJDIR "$lt_cv_objdir/"
5113 _ACEOF
5114
5115
5116
5117 # Check for GMP, MPFR and MPC
5118 gmplibs="-lmpc -lmpfr -lgmp"
5119 gmpinc=
5120 have_gmp=no
5121
5122 # Specify a location for mpc
5123 # check for this first so it ends up on the link line before mpfr.
5124
5125 # Check whether --with-mpc was given.
5126 if test "${with_mpc+set}" = set; then :
5127 withval=$with_mpc;
5128 fi
5129
5130
5131 # Check whether --with-mpc-include was given.
5132 if test "${with_mpc_include+set}" = set; then :
5133 withval=$with_mpc_include;
5134 fi
5135
5136
5137 # Check whether --with-mpc-lib was given.
5138 if test "${with_mpc_lib+set}" = set; then :
5139 withval=$with_mpc_lib;
5140 fi
5141
5142
5143 if test "x$with_mpc" != x; then
5144 gmplibs="-L$with_mpc/lib $gmplibs"
5145 gmpinc="-I$with_mpc/include $gmpinc"
5146 fi
5147 if test "x$with_mpc_include" != x; then
5148 gmpinc="-I$with_mpc_include $gmpinc"
5149 fi
5150 if test "x$with_mpc_lib" != x; then
5151 gmplibs="-L$with_mpc_lib $gmplibs"
5152 fi
5153 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5154 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5155 gmpinc='-I$$s/mpc/src '"$gmpinc"
5156 # Do not test the mpc version. Assume that it is sufficient, since
5157 # it is in the source tree, and the library has not been built yet
5158 # but it would be included on the link line in the version check below
5159 # hence making the test fail.
5160 have_gmp=yes
5161 fi
5162
5163 # Specify a location for mpfr
5164 # check for this first so it ends up on the link line before gmp.
5165
5166 # Check whether --with-mpfr-dir was given.
5167 if test "${with_mpfr_dir+set}" = set; then :
5168 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5169 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5170 fi
5171
5172
5173
5174 # Check whether --with-mpfr was given.
5175 if test "${with_mpfr+set}" = set; then :
5176 withval=$with_mpfr;
5177 fi
5178
5179
5180 # Check whether --with-mpfr-include was given.
5181 if test "${with_mpfr_include+set}" = set; then :
5182 withval=$with_mpfr_include;
5183 fi
5184
5185
5186 # Check whether --with-mpfr-lib was given.
5187 if test "${with_mpfr_lib+set}" = set; then :
5188 withval=$with_mpfr_lib;
5189 fi
5190
5191
5192 if test "x$with_mpfr" != x; then
5193 gmplibs="-L$with_mpfr/lib $gmplibs"
5194 gmpinc="-I$with_mpfr/include $gmpinc"
5195 fi
5196 if test "x$with_mpfr_include" != x; then
5197 gmpinc="-I$with_mpfr_include $gmpinc"
5198 fi
5199 if test "x$with_mpfr_lib" != x; then
5200 gmplibs="-L$with_mpfr_lib $gmplibs"
5201 fi
5202 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5203 # MPFR v3.1.0 moved the sources into a src sub-directory.
5204 if test -d ${srcdir}/mpfr/src; then
5205 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5206 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5207 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5208 else
5209 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5210 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5211 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5212 fi
5213 # Do not test the mpfr version. Assume that it is sufficient, since
5214 # it is in the source tree, and the library has not been built yet
5215 # but it would be included on the link line in the version check below
5216 # hence making the test fail.
5217 have_gmp=yes
5218 fi
5219
5220 # Specify a location for gmp
5221
5222 # Check whether --with-gmp-dir was given.
5223 if test "${with_gmp_dir+set}" = set; then :
5224 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5225 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5226 fi
5227
5228
5229
5230 # Check whether --with-gmp was given.
5231 if test "${with_gmp+set}" = set; then :
5232 withval=$with_gmp;
5233 fi
5234
5235
5236 # Check whether --with-gmp-include was given.
5237 if test "${with_gmp_include+set}" = set; then :
5238 withval=$with_gmp_include;
5239 fi
5240
5241
5242 # Check whether --with-gmp-lib was given.
5243 if test "${with_gmp_lib+set}" = set; then :
5244 withval=$with_gmp_lib;
5245 fi
5246
5247
5248
5249 if test "x$with_gmp" != x; then
5250 gmplibs="-L$with_gmp/lib $gmplibs"
5251 gmpinc="-I$with_gmp/include $gmpinc"
5252 fi
5253 if test "x$with_gmp_include" != x; then
5254 gmpinc="-I$with_gmp_include $gmpinc"
5255 fi
5256 if test "x$with_gmp_lib" != x; then
5257 gmplibs="-L$with_gmp_lib $gmplibs"
5258 fi
5259 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5260 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5261 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5262 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5263 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5264 # Do not test the gmp version. Assume that it is sufficient, since
5265 # it is in the source tree, and the library has not been built yet
5266 # but it would be included on the link line in the version check below
5267 # hence making the test fail.
5268 have_gmp=yes
5269 fi
5270
5271 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5272 have_gmp=yes
5273 saved_CFLAGS="$CFLAGS"
5274 CFLAGS="$CFLAGS $gmpinc"
5275 # Check for the recommended and required versions of GMP.
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5277 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5278
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5281 #include "gmp.h"
5282 int
5283 main ()
5284 {
5285
5286 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5287 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5288 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5289 choke me
5290 #endif
5291
5292 ;
5293 return 0;
5294 }
5295 _ACEOF
5296 if ac_fn_c_try_compile "$LINENO"; then :
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #include <gmp.h>
5300 int
5301 main ()
5302 {
5303
5304 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5305 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5306 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5307 choke me
5308 #endif
5309
5310 ;
5311 return 0;
5312 }
5313 _ACEOF
5314 if ac_fn_c_try_compile "$LINENO"; then :
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5316 $as_echo "yes" >&6; }
5317 else
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5319 $as_echo "buggy but acceptable" >&6; }
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }; have_gmp=no
5325 fi
5326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327
5328 # If we have GMP, check the MPFR version.
5329 if test x"$have_gmp" = xyes; then
5330 # Check for the recommended and required versions of MPFR.
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5332 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #include <gmp.h>
5336 #include <mpfr.h>
5337 int
5338 main ()
5339 {
5340
5341 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5342 choke me
5343 #endif
5344
5345 ;
5346 return 0;
5347 }
5348 _ACEOF
5349 if ac_fn_c_try_compile "$LINENO"; then :
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #include <gmp.h>
5353 #include <mpfr.h>
5354 int
5355 main ()
5356 {
5357
5358 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5359 choke me
5360 #endif
5361
5362 ;
5363 return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_compile "$LINENO"; then :
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5368 $as_echo "yes" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5371 $as_echo "buggy but acceptable" >&6; }
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 else
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }; have_gmp=no
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 fi
5380
5381 # Check for the MPC header version.
5382 if test x"$have_gmp" = xyes ; then
5383 # Check for the recommended and required versions of MPC.
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5385 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #include <mpc.h>
5389 int
5390 main ()
5391 {
5392
5393 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5394 choke me
5395 #endif
5396
5397 ;
5398 return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"; then :
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <mpc.h>
5405 int
5406 main ()
5407 {
5408
5409 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5410 choke me
5411 #endif
5412
5413 ;
5414 return 0;
5415 }
5416 _ACEOF
5417 if ac_fn_c_try_compile "$LINENO"; then :
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5419 $as_echo "yes" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5422 $as_echo "buggy but acceptable" >&6; }
5423 fi
5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }; have_gmp=no
5428 fi
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 fi
5431
5432 # Now check the MPFR library.
5433 if test x"$have_gmp" = xyes; then
5434 saved_LIBS="$LIBS"
5435 LIBS="$LIBS $gmplibs"
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5437 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5440 #include <mpc.h>
5441 int
5442 main ()
5443 {
5444
5445 mpfr_t n;
5446 mpfr_t x;
5447 mpc_t c;
5448 int t;
5449 mpfr_init (n);
5450 mpfr_init (x);
5451 mpfr_atan2 (n, n, x, GMP_RNDN);
5452 mpfr_erfc (n, x, GMP_RNDN);
5453 mpfr_subnormalize (x, t, GMP_RNDN);
5454 mpfr_clear(n);
5455 mpfr_clear(x);
5456 mpc_init2 (c, 53);
5457 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5458 mpc_cosh (c, c, MPC_RNDNN);
5459 mpc_pow (c, c, c, MPC_RNDNN);
5460 mpc_acosh (c, c, MPC_RNDNN);
5461 mpc_clear (c);
5462
5463 ;
5464 return 0;
5465 }
5466 _ACEOF
5467 if ac_fn_c_try_link "$LINENO"; then :
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5469 $as_echo "yes" >&6; }
5470 else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }; have_gmp=no
5473 fi
5474 rm -f core conftest.err conftest.$ac_objext \
5475 conftest$ac_exeext conftest.$ac_ext
5476 LIBS="$saved_LIBS"
5477 fi
5478
5479 CFLAGS="$saved_CFLAGS"
5480
5481 # The library versions listed in the error message below should match
5482 # the HARD-minimums enforced above.
5483 if test x$have_gmp != xyes; then
5484 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5485 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5486 their locations. Source code for these libraries can be found at
5487 their respective hosting sites as well as at
5488 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5489 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5490 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5491 make sure that you have installed both the libraries and the header
5492 files. They may be located in separate packages." "$LINENO" 5
5493 fi
5494 fi
5495
5496 # Flags needed for both GMP, MPFR and/or MPC.
5497
5498
5499
5500
5501
5502
5503 # Allow host libstdc++ to be specified for static linking with PPL.
5504
5505 # Check whether --with-host-libstdcxx was given.
5506 if test "${with_host_libstdcxx+set}" = set; then :
5507 withval=$with_host_libstdcxx;
5508 fi
5509
5510
5511 case $with_host_libstdcxx in
5512 no|yes)
5513 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5514 ;;
5515 esac
5516
5517 # Linker flags to use for stage1 or when not boostrapping.
5518
5519 # Check whether --with-stage1-ldflags was given.
5520 if test "${with_stage1_ldflags+set}" = set; then :
5521 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5522 stage1_ldflags=
5523 else
5524 stage1_ldflags=$withval
5525 fi
5526 else
5527 stage1_ldflags=
5528 fi
5529
5530
5531
5532 # Libraries to use for stage1 or when not bootstrapping.
5533
5534 # Check whether --with-stage1-libs was given.
5535 if test "${with_stage1_libs+set}" = set; then :
5536 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5537 stage1_libs=
5538 else
5539 stage1_libs=$withval
5540 fi
5541 else
5542 stage1_libs=$with_host_libstdcxx
5543 fi
5544
5545
5546
5547 # Libraries to use for stage2 and later builds. This defaults to the
5548 # argument passed to --with-host-libstdcxx.
5549
5550 # Check whether --with-boot-libs was given.
5551 if test "${with_boot_libs+set}" = set; then :
5552 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5553 poststage1_libs=
5554 else
5555 poststage1_libs=$withval
5556 fi
5557 else
5558 poststage1_libs=$with_host_libstdcxx
5559 fi
5560
5561
5562
5563 # Linker flags to use for stage2 and later builds.
5564
5565 # Check whether --with-boot-ldflags was given.
5566 if test "${with_boot_ldflags+set}" = set; then :
5567 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5568 poststage1_ldflags=
5569 else
5570 poststage1_ldflags=$withval
5571 fi
5572 else
5573 poststage1_ldflags=
5574 # In stages 2 and 3, default to linking libstdc++ and libgcc
5575 # statically. But if the user explicitly specified the libraries to
5576 # use, trust that they are doing what they want.
5577 if test "$poststage1_libs" = ""; then
5578 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5579 fi
5580 fi
5581
5582
5583
5584 # Check for PPL
5585 ppllibs=
5586 pplinc=
5587 pwllib=
5588
5589
5590 # Check whether --with-ppl was given.
5591 if test "${with_ppl+set}" = set; then :
5592 withval=$with_ppl;
5593 fi
5594
5595
5596 # Check whether --with-ppl-include was given.
5597 if test "${with_ppl_include+set}" = set; then :
5598 withval=$with_ppl_include;
5599 fi
5600
5601
5602 # Check whether --with-ppl-lib was given.
5603 if test "${with_ppl_lib+set}" = set; then :
5604 withval=$with_ppl_lib;
5605 fi
5606
5607
5608 # Check whether --enable-ppl-version-check was given.
5609 if test "${enable_ppl_version_check+set}" = set; then :
5610 enableval=$enable_ppl_version_check;
5611 fi
5612
5613
5614 case $with_ppl in
5615 yes | no | "")
5616 ;;
5617 *)
5618 ppllibs="-L$with_ppl/lib"
5619 pplinc="-I$with_ppl/include $pplinc"
5620 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5621 with_ppl=yes
5622 else
5623 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5624 fi
5625 ;;
5626 esac
5627
5628 if test x"$with_ppl_include" != x; then
5629 pplinc="-I$with_ppl_include $pplinc"
5630 with_ppl=yes
5631 fi
5632
5633 if test "x$with_ppl_lib" != x; then
5634 ppllibs="-L$with_ppl_lib"
5635 with_ppl=yes
5636 fi
5637
5638 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5639 if test x"$enable_watchdog" = xyes; then
5640 pwllib="-lpwl"
5641 fi
5642 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
5643 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5644 enable_ppl_version_check=no
5645 with_ppl=yes
5646 fi
5647
5648 if test "x$with_ppl" != xno; then
5649 if test "x$pwllib" = x; then
5650 saved_LIBS="$LIBS"
5651 LIBS="$LIBS $ppllibs -lstdc++ -lm"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5653 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5654 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 ac_check_lib_save_LIBS=$LIBS
5658 LIBS="-lpwl $LIBS"
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661
5662 /* Override any GCC internal prototype to avoid an error.
5663 Use char because int might match the return type of a GCC
5664 builtin and then its argument prototype would still apply. */
5665 #ifdef __cplusplus
5666 extern "C"
5667 #endif
5668 char PWL_handle_timeout ();
5669 int
5670 main ()
5671 {
5672 return PWL_handle_timeout ();
5673 ;
5674 return 0;
5675 }
5676 _ACEOF
5677 if ac_fn_c_try_link "$LINENO"; then :
5678 ac_cv_lib_pwl_PWL_handle_timeout=yes
5679 else
5680 ac_cv_lib_pwl_PWL_handle_timeout=no
5681 fi
5682 rm -f core conftest.err conftest.$ac_objext \
5683 conftest$ac_exeext conftest.$ac_ext
5684 LIBS=$ac_check_lib_save_LIBS
5685 fi
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5687 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5688 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5689 pwllib="-lpwl"
5690 fi
5691
5692 LIBS="$saved_LIBS"
5693 fi
5694
5695 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5696
5697 if test "$enable_ppl_version_check" != no; then
5698 saved_CFLAGS="$CFLAGS"
5699 CFLAGS="$CFLAGS $pplinc $gmpinc"
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5701 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include "ppl_c.h"
5705 int
5706 main ()
5707 {
5708
5709 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5710 choke me
5711 #endif
5712
5713 ;
5714 return 0;
5715 }
5716 _ACEOF
5717 if ac_fn_c_try_compile "$LINENO"; then :
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5719 $as_echo "yes" >&6; }
5720 else
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5723 fi
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 CFLAGS="$saved_CFLAGS"
5726 fi
5727 fi
5728
5729 # Flags needed for PPL
5730
5731
5732
5733
5734 # Check for CLOOG
5735
5736
5737
5738 # Check whether --with-cloog was given.
5739 if test "${with_cloog+set}" = set; then :
5740 withval=$with_cloog;
5741 fi
5742
5743
5744 # Check whether --with-cloog-include was given.
5745 if test "${with_cloog_include+set}" = set; then :
5746 withval=$with_cloog_include;
5747 fi
5748
5749
5750 # Check whether --with-cloog-lib was given.
5751 if test "${with_cloog_lib+set}" = set; then :
5752 withval=$with_cloog_lib;
5753 fi
5754
5755
5756 # Check whether --enable-cloog-version-check was given.
5757 if test "${enable_cloog_version_check+set}" = set; then :
5758 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5759 else
5760 ENABLE_CLOOG_CHECK=yes
5761 fi
5762
5763
5764 # Initialize clooglibs and clooginc.
5765 case $with_cloog in
5766 no)
5767 clooglibs=
5768 clooginc=
5769 ;;
5770 "" | yes)
5771 ;;
5772 *)
5773 clooglibs="-L$with_cloog/lib"
5774 clooginc="-I$with_cloog/include"
5775 ;;
5776 esac
5777 if test "x${with_cloog_include}" != x ; then
5778 clooginc="-I$with_cloog_include"
5779 fi
5780 if test "x${with_cloog_lib}" != x; then
5781 clooglibs="-L$with_cloog_lib"
5782 fi
5783
5784
5785
5786
5787
5788 if test "x$with_ppl" = "xno"; then
5789
5790
5791
5792 if test "x${with_cloog}" = xno; then
5793 graphite_requested=no
5794 elif test "x${with_cloog}" != x \
5795 || test "x${with_cloog_include}" != x \
5796 || test "x${with_cloog_lib}" != x ; then
5797 graphite_requested=yes
5798 else
5799 graphite_requested=no
5800 fi
5801
5802
5803 if test "${graphite_requested}" = yes; then
5804 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5805 fi
5806 with_cloog=no
5807 fi
5808 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5809 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5810 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5811 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5812 fi
5813 if test "x$with_cloog" != "xno"; then
5814
5815
5816
5817 _cloog_saved_CFLAGS=$CFLAGS
5818 _cloog_saved_CPPFLAGS=$CPPFLAGS
5819 _cloog_saved_LDFLAGS=$LDFLAGS
5820 _cloog_saved_LIBS=$LIBS
5821
5822 _cloogorginc="-DCLOOG_INT_GMP"
5823
5824 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5825 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5826 LDFLAGS="${LDFLAGS} ${clooglibs}"
5827
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5829 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5830 if test "${gcc_cv_cloog_type+set}" = set; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 #include "cloog/cloog.h"
5837 int
5838 main ()
5839 {
5840 cloog_version ()
5841 ;
5842 return 0;
5843 }
5844 _ACEOF
5845 if ac_fn_c_try_link "$LINENO"; then :
5846 gcc_cv_cloog_type="ISL"
5847 else
5848 gcc_cv_cloog_type=no
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext \
5851 conftest$ac_exeext conftest.$ac_ext
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5854 $as_echo "$gcc_cv_cloog_type" >&6; }
5855
5856 case $gcc_cv_cloog_type in
5857 "ISL")
5858 clooginc="${clooginc} ${_cloogorginc}"
5859 clooglibs="${clooglibs} -lcloog-isl -lisl"
5860 cloog_org=yes
5861 ;;
5862 *)
5863 clooglibs=
5864 clooginc=
5865 cloog_org=
5866 ;;
5867 esac
5868
5869 LIBS=$_cloog_saved_LIBS
5870 CFLAGS=$_cloog_saved_CFLAGS
5871 CPPFLAGS=$_cloog_saved_CPPFLAGS
5872 LDFLAGS=$_cloog_saved_LDFLAGS
5873
5874
5875
5876
5877
5878 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5879 _cloog_saved_CFLAGS=$CFLAGS
5880 _cloog_saved_LDFLAGS=$LDFLAGS
5881
5882 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5883 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5884
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5886 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5887 if test "${gcc_cv_cloog+set}" = set; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h. */
5892 #include "cloog/cloog.h"
5893 int
5894 main ()
5895 {
5896 #if CLOOG_VERSION_MAJOR != 0 \
5897 || CLOOG_VERSION_MINOR != 17 \
5898 || CLOOG_VERSION_REVISION < 0
5899 choke me
5900 #endif
5901 ;
5902 return 0;
5903 }
5904 _ACEOF
5905 if ac_fn_c_try_compile "$LINENO"; then :
5906 gcc_cv_cloog=yes
5907 else
5908 gcc_cv_cloog=no
5909 fi
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 fi
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5913 $as_echo "$gcc_cv_cloog" >&6; }
5914
5915 CFLAGS=$_cloog_saved_CFLAGS
5916 LDFLAGS=$_cloog_saved_LDFLAGS
5917 fi
5918
5919
5920
5921
5922
5923
5924
5925 if test "x${with_cloog}" = xno; then
5926 graphite_requested=no
5927 elif test "x${with_cloog}" != x \
5928 || test "x${with_cloog_include}" != x \
5929 || test "x${with_cloog_lib}" != x ; then
5930 graphite_requested=yes
5931 else
5932 graphite_requested=no
5933 fi
5934
5935
5936
5937 if test "${gcc_cv_cloog}" = no ; then
5938 clooglibs=
5939 clooginc=
5940 fi
5941
5942 if test "${graphite_requested}" = yes \
5943 && test "x${clooglibs}" = x \
5944 && test "x${clooginc}" = x ; then
5945
5946 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5947 fi
5948
5949
5950 fi
5951
5952 # Check for LTO support.
5953 # Check whether --enable-lto was given.
5954 if test "${enable_lto+set}" = set; then :
5955 enableval=$enable_lto; enable_lto=$enableval
5956 else
5957 enable_lto=yes; default_enable_lto=yes
5958 fi
5959
5960
5961
5962
5963
5964 target_elf=no
5965 case $target in
5966 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5967 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5968 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5969 target_elf=no
5970 ;;
5971 *)
5972 target_elf=yes
5973 ;;
5974 esac
5975
5976 if test $target_elf = yes; then :
5977 # ELF platforms build the lto-plugin always.
5978 build_lto_plugin=yes
5979
5980 else
5981 if test x"$default_enable_lto" = x"yes" ; then
5982 case $target in
5983 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
5984 # On other non-ELF platforms, LTO has yet to be validated.
5985 *) enable_lto=no ;;
5986 esac
5987 else
5988 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5989 # It would also be nice to check the binutils support, but we don't
5990 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5991 # warn during gcc/ subconfigure; unless you're bootstrapping with
5992 # -flto it won't be needed until after installation anyway.
5993 case $target in
5994 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5995 *) if test x"$enable_lto" = x"yes"; then
5996 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5997 fi
5998 ;;
5999 esac
6000 fi
6001 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6002 # Build it unless LTO was explicitly disabled.
6003 case $target in
6004 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6005 *) ;;
6006 esac
6007
6008 fi
6009
6010
6011
6012 # By default, C is the only stage 1 language.
6013 stage1_languages=,c,
6014
6015 # Target libraries that we bootstrap.
6016 bootstrap_target_libs=,target-libgcc,
6017
6018 # Figure out what language subdirectories are present.
6019 # Look if the user specified --enable-languages="..."; if not, use
6020 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6021 # go away some day.
6022 # NB: embedded tabs in this IF block -- do not untabify
6023 if test -d ${srcdir}/gcc; then
6024 if test x"${enable_languages+set}" != xset; then
6025 if test x"${LANGUAGES+set}" = xset; then
6026 enable_languages="${LANGUAGES}"
6027 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6028 else
6029 enable_languages=all
6030 fi
6031 else
6032 if test x"${enable_languages}" = x ||
6033 test x"${enable_languages}" = xyes;
6034 then
6035 echo configure.in: --enable-languages needs at least one language argument 1>&2
6036 exit 1
6037 fi
6038 fi
6039 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6040
6041 # 'f95' is the old name for the 'fortran' language. We issue a warning
6042 # and make the substitution.
6043 case ,${enable_languages}, in
6044 *,f95,*)
6045 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6046 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6047 ;;
6048 esac
6049
6050 # If bootstrapping, then using --enable-build-with-cxx or
6051 # --enable-build-poststage1-with-cxx requires enabling C++.
6052 case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6053 *,c++,*:*:*) ;;
6054 *:*,yes,*:yes)
6055 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6056 enable_languages="${enable_languages},c++"
6057 else
6058 as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6059 fi
6060 ;;
6061 esac
6062
6063 # First scan to see if an enabled language requires some other language.
6064 # We assume that a given config-lang.in will list all the language
6065 # front ends it requires, even if some are required indirectly.
6066 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6067 case ${lang_frag} in
6068 ..) ;;
6069 # The odd quoting in the next line works around
6070 # an apparent bug in bash 1.12 on linux.
6071 ${srcdir}/gcc/[*]/config-lang.in) ;;
6072 *)
6073 # From the config-lang.in, get $language, $lang_requires, and
6074 # $lang_requires_boot_languages.
6075 language=
6076 lang_requires=
6077 lang_requires_boot_languages=
6078 . ${lang_frag}
6079 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6080 case ,${enable_languages}, in
6081 *,$other,*) ;;
6082 *,all,*) ;;
6083 *,$language,*)
6084 echo " \`$other' language required by \`$language'; enabling" 1>&2
6085 enable_languages="${enable_languages},${other}"
6086 ;;
6087 esac
6088 done
6089 for other in ${lang_requires_boot_languages} ; do
6090 if test "$other" != "c"; then
6091 case ,${enable_stage1_languages}, in
6092 *,$other,*) ;;
6093 *,all,*) ;;
6094 *)
6095 case ,${enable_languages}, in
6096 *,$language,*)
6097 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6098 enable_stage1_languages="$enable_stage1_languages,${other}"
6099 ;;
6100 esac
6101 ;;
6102 esac
6103 fi
6104 done
6105 ;;
6106 esac
6107 done
6108
6109 new_enable_languages=,c,
6110
6111 # If LTO is enabled, add the LTO front end.
6112 extra_host_libiberty_configure_flags=
6113 if test "$enable_lto" = "yes" ; then
6114 case ,${enable_languages}, in
6115 *,lto,*) ;;
6116 *) enable_languages="${enable_languages},lto" ;;
6117 esac
6118 if test "${build_lto_plugin}" = "yes" ; then
6119 configdirs="$configdirs lto-plugin"
6120 extra_host_libiberty_configure_flags=--enable-shared
6121 fi
6122 fi
6123
6124
6125 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6126 potential_languages=,c,
6127
6128 enabled_target_libs=
6129 disabled_target_libs=
6130
6131 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6132 case ${lang_frag} in
6133 ..) ;;
6134 # The odd quoting in the next line works around
6135 # an apparent bug in bash 1.12 on linux.
6136 ${srcdir}/gcc/[*]/config-lang.in) ;;
6137 *)
6138 # From the config-lang.in, get $language, $target_libs,
6139 # $lang_dirs, $boot_language, and $build_by_default
6140 language=
6141 target_libs=
6142 lang_dirs=
6143 subdir_requires=
6144 boot_language=no
6145 build_by_default=yes
6146 . ${lang_frag}
6147 if test x${language} = x; then
6148 echo "${lang_frag} doesn't set \$language." 1>&2
6149 exit 1
6150 fi
6151
6152 if test "$language" = "c++"; then
6153 if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6154 || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6155 boot_language=yes
6156 fi
6157 fi
6158
6159 case ,${enable_languages}, in
6160 *,${language},*)
6161 # Language was explicitly selected; include it
6162 # unless it is C, which is enabled by default.
6163 if test "$language" != "c"; then
6164 add_this_lang=yes
6165 fi
6166 ;;
6167 *,all,*)
6168 # 'all' was selected, select it if it is a default language
6169 add_this_lang=${build_by_default}
6170 ;;
6171 *)
6172 add_this_lang=no
6173 ;;
6174 esac
6175
6176 # Disable languages that need other directories if these aren't available.
6177 for i in $subdir_requires; do
6178 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6179 case ,${enable_languages}, in
6180 *,${language},*)
6181 # Specifically requested language; tell them.
6182 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6183 ;;
6184 *)
6185 # Silently disable.
6186 add_this_lang=unsupported
6187 ;;
6188 esac
6189 done
6190
6191 # Disable Ada if no preexisting GNAT is available.
6192 case ,${enable_languages},:${language}:${have_gnat} in
6193 *,${language},*:ada:no)
6194 # Specifically requested language; tell them.
6195 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6196 ;;
6197 *:ada:no)
6198 # Silently disable.
6199 add_this_lang=unsupported
6200 ;;
6201 esac
6202
6203 # Disable a language that is unsupported by the target.
6204 case " $unsupported_languages " in
6205 *" $language "*)
6206 add_this_lang=unsupported
6207 ;;
6208 esac
6209
6210 case $add_this_lang in
6211 unsupported)
6212 # Remove language-dependent dirs.
6213 disabled_target_libs="$disabled_target_libs $target_libs"
6214 noconfigdirs="$noconfigdirs $lang_dirs"
6215 ;;
6216 no)
6217 # Remove language-dependent dirs; still show language as supported.
6218 disabled_target_libs="$disabled_target_libs $target_libs"
6219 noconfigdirs="$noconfigdirs $lang_dirs"
6220 potential_languages="${potential_languages}${language},"
6221 ;;
6222 yes)
6223 new_enable_languages="${new_enable_languages}${language},"
6224 potential_languages="${potential_languages}${language},"
6225 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6226 enabled_target_libs="$enabled_target_libs $target_libs"
6227 case "${boot_language}:,$enable_stage1_languages," in
6228 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6229 # Add to (comma-separated) list of stage 1 languages.
6230 case ",$stage1_languages," in
6231 *,$language,* | ,yes, | ,all,) ;;
6232 *) stage1_languages="${stage1_languages}${language}," ;;
6233 esac
6234 # We need to bootstrap any supporting libraries.
6235 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6236 ;;
6237 esac
6238 ;;
6239 esac
6240 ;;
6241 esac
6242 done
6243
6244 # Add target libraries which are only needed for disabled languages
6245 # to noconfigdirs.
6246 if test -n "$disabled_target_libs"; then
6247 for dir in $disabled_target_libs; do
6248 case " $enabled_target_libs " in
6249 *" ${dir} "*) ;;
6250 *) noconfigdirs="$noconfigdirs $dir" ;;
6251 esac
6252 done
6253 fi
6254
6255 # Check whether --enable-stage1-languages was given.
6256 if test "${enable_stage1_languages+set}" = set; then :
6257 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6258 ,no,|,,)
6259 # Set it to something that will have no effect in the loop below
6260 enable_stage1_languages=c ;;
6261 ,yes,)
6262 enable_stage1_languages=`echo $new_enable_languages | \
6263 sed -e "s/^,//" -e "s/,$//" ` ;;
6264 *,all,*)
6265 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6266 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6267 esac
6268
6269 # Add "good" languages from enable_stage1_languages to stage1_languages,
6270 # while "bad" languages go in missing_languages. Leave no duplicates.
6271 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6272 case $potential_languages in
6273 *,$i,*)
6274 case $stage1_languages in
6275 *,$i,*) ;;
6276 *) stage1_languages="$stage1_languages$i," ;;
6277 esac ;;
6278 *)
6279 case $missing_languages in
6280 *,$i,*) ;;
6281 *) missing_languages="$missing_languages$i," ;;
6282 esac ;;
6283 esac
6284 done
6285 fi
6286
6287
6288 # Remove leading/trailing commas that were added for simplicity
6289 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6290 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6291 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6292 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6293
6294 if test "x$missing_languages" != x; then
6295 as_fn_error "
6296 The following requested languages could not be built: ${missing_languages}
6297 Supported languages are: ${potential_languages}" "$LINENO" 5
6298 fi
6299 if test "x$new_enable_languages" != "x$enable_languages"; then
6300 echo The following languages will be built: ${new_enable_languages}
6301 enable_languages="$new_enable_languages"
6302 fi
6303
6304
6305 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6306 fi
6307
6308 # Handle --disable-<component> generically.
6309 for dir in $configdirs $build_configdirs $target_configdirs ; do
6310 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6311 varname=`echo $dirname | sed -e s/+/_/g`
6312 if eval test x\${enable_${varname}} "=" xno ; then
6313 noconfigdirs="$noconfigdirs $dir"
6314 fi
6315 done
6316
6317 # Check for Boehm's garbage collector
6318 # Check whether --enable-objc-gc was given.
6319 if test "${enable_objc_gc+set}" = set; then :
6320 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6321 *,objc,*:*:yes:*target-boehm-gc*)
6322 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6323 ;;
6324 esac
6325 fi
6326
6327
6328 # Make sure we only build Boehm's garbage collector if required.
6329 case ,${enable_languages},:${enable_objc_gc} in
6330 *,objc,*:yes)
6331 # Keep target-boehm-gc if requested for Objective-C.
6332 ;;
6333 *)
6334 # Otherwise remove target-boehm-gc depending on target-libjava.
6335 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6336 noconfigdirs="$noconfigdirs target-boehm-gc"
6337 fi
6338 ;;
6339 esac
6340
6341 # Disable libitm if we're not building C++
6342 case ,${enable_languages}, in
6343 *,c++,*) ;;
6344 *)
6345 noconfigdirs="$noconfigdirs target-libitm"
6346 ;;
6347 esac
6348
6349 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6350 # $build_configdirs and $target_configdirs.
6351 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6352
6353 notsupp=""
6354 for dir in . $skipdirs $noconfigdirs ; do
6355 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6356 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6357 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6358 if test -r $srcdir/$dirname/configure ; then
6359 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6360 true
6361 else
6362 notsupp="$notsupp $dir"
6363 fi
6364 fi
6365 fi
6366 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6367 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6368 if test -r $srcdir/$dirname/configure ; then
6369 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6370 true
6371 else
6372 notsupp="$notsupp $dir"
6373 fi
6374 fi
6375 fi
6376 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6377 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6378 if test -r $srcdir/$dirname/configure ; then
6379 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6380 true
6381 else
6382 notsupp="$notsupp $dir"
6383 fi
6384 fi
6385 fi
6386 done
6387
6388 # Quietly strip out all directories which aren't configurable in this tree.
6389 # This relies on all configurable subdirectories being autoconfiscated, which
6390 # is now the case.
6391 build_configdirs_all="$build_configdirs"
6392 build_configdirs=
6393 for i in ${build_configdirs_all} ; do
6394 j=`echo $i | sed -e s/build-//g`
6395 if test -f ${srcdir}/$j/configure ; then
6396 build_configdirs="${build_configdirs} $i"
6397 fi
6398 done
6399
6400 configdirs_all="$configdirs"
6401 configdirs=
6402 for i in ${configdirs_all} ; do
6403 if test -f ${srcdir}/$i/configure ; then
6404 configdirs="${configdirs} $i"
6405 fi
6406 done
6407
6408 target_configdirs_all="$target_configdirs"
6409 target_configdirs=
6410 for i in ${target_configdirs_all} ; do
6411 j=`echo $i | sed -e s/target-//g`
6412 if test -f ${srcdir}/$j/configure ; then
6413 target_configdirs="${target_configdirs} $i"
6414 fi
6415 done
6416
6417 # Produce a warning message for the subdirs we can't configure.
6418 # This isn't especially interesting in the Cygnus tree, but in the individual
6419 # FSF releases, it's important to let people know when their machine isn't
6420 # supported by the one or two programs in a package.
6421
6422 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6423 # If $appdirs is non-empty, at least one of those directories must still
6424 # be configured, or we error out. (E.g., if the gas release supports a
6425 # specified target in some subdirs but not the gas subdir, we shouldn't
6426 # pretend that all is well.)
6427 if test -n "$appdirs" ; then
6428 for dir in $appdirs ; do
6429 if test -r $dir/Makefile.in ; then
6430 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6431 appdirs=""
6432 break
6433 fi
6434 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6435 appdirs=""
6436 break
6437 fi
6438 fi
6439 done
6440 if test -n "$appdirs" ; then
6441 echo "*** This configuration is not supported by this package." 1>&2
6442 exit 1
6443 fi
6444 fi
6445 # Okay, some application will build, or we don't care to check. Still
6446 # notify of subdirs not getting built.
6447 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6448 echo " ${notsupp}" 1>&2
6449 echo " (Any other directories should still work fine.)" 1>&2
6450 fi
6451
6452 case "$host" in
6453 *msdosdjgpp*)
6454 enable_gdbtk=no ;;
6455 esac
6456
6457 # To find our prefix, in gcc_cv_tool_prefix.
6458
6459 # The user is always right.
6460 if test "${PATH_SEPARATOR+set}" != set; then
6461 echo "#! /bin/sh" >conf$$.sh
6462 echo "exit 0" >>conf$$.sh
6463 chmod +x conf$$.sh
6464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6465 PATH_SEPARATOR=';'
6466 else
6467 PATH_SEPARATOR=:
6468 fi
6469 rm -f conf$$.sh
6470 fi
6471
6472
6473
6474 if test "x$exec_prefix" = xNONE; then
6475 if test "x$prefix" = xNONE; then
6476 gcc_cv_tool_prefix=$ac_default_prefix
6477 else
6478 gcc_cv_tool_prefix=$prefix
6479 fi
6480 else
6481 gcc_cv_tool_prefix=$exec_prefix
6482 fi
6483
6484 # If there is no compiler in the tree, use the PATH only. In any
6485 # case, if there is no compiler in the tree nobody should use
6486 # AS_FOR_TARGET and LD_FOR_TARGET.
6487 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6488 gcc_version=`cat $srcdir/gcc/BASE-VER`
6489 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6490 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6491 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6492 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6493 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6494 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6495 else
6496 gcc_cv_tool_dirs=
6497 fi
6498
6499 if test x$build = x$target && test -n "$md_exec_prefix"; then
6500 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6501 fi
6502
6503
6504
6505 copy_dirs=
6506
6507
6508 # Check whether --with-build-sysroot was given.
6509 if test "${with_build_sysroot+set}" = set; then :
6510 withval=$with_build_sysroot; if test x"$withval" != x ; then
6511 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6512 fi
6513 else
6514 SYSROOT_CFLAGS_FOR_TARGET=
6515 fi
6516
6517
6518
6519
6520 # Check whether --with-debug-prefix-map was given.
6521 if test "${with_debug_prefix_map+set}" = set; then :
6522 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6523 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6524 for debug_map in $withval; do
6525 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6526 done
6527 fi
6528 else
6529 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6530 fi
6531
6532
6533
6534 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6535 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6536 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6537 # We want to ensure that TARGET libraries (which we know are built with
6538 # gcc) are built with "-O2 -g", so include those options when setting
6539 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6540 if test "x$CFLAGS_FOR_TARGET" = x; then
6541 CFLAGS_FOR_TARGET=$CFLAGS
6542 case " $CFLAGS " in
6543 *" -O2 "*) ;;
6544 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6545 esac
6546 case " $CFLAGS " in
6547 *" -g "* | *" -g3 "*) ;;
6548 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6549 esac
6550 fi
6551
6552
6553 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6554 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6555 case " $CXXFLAGS " in
6556 *" -O2 "*) ;;
6557 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6558 esac
6559 case " $CXXFLAGS " in
6560 *" -g "* | *" -g3 "*) ;;
6561 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6562 esac
6563 fi
6564
6565
6566
6567
6568 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6569 # the named directory are copied to $(tooldir)/sys-include.
6570 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6571 if test x${is_cross_compiler} = xno ; then
6572 echo 1>&2 '***' --with-headers is only supported when cross compiling
6573 exit 1
6574 fi
6575 if test x"${with_headers}" != xyes ; then
6576 x=${gcc_cv_tool_prefix}
6577 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6578 fi
6579 fi
6580
6581 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6582 # the name directories are copied to $(tooldir)/lib. Multiple directories
6583 # are permitted.
6584 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6585 if test x${is_cross_compiler} = xno ; then
6586 echo 1>&2 '***' --with-libs is only supported when cross compiling
6587 exit 1
6588 fi
6589 if test x"${with_libs}" != xyes ; then
6590 # Copy the libraries in reverse order, so that files in the first named
6591 # library override files in subsequent libraries.
6592 x=${gcc_cv_tool_prefix}
6593 for l in ${with_libs}; do
6594 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6595 done
6596 fi
6597 fi
6598
6599 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6600 #
6601 # This is done by determining whether or not the appropriate directory
6602 # is available, and by checking whether or not specific configurations
6603 # have requested that this magic not happen.
6604 #
6605 # The command line options always override the explicit settings in
6606 # configure.in, and the settings in configure.in override this magic.
6607 #
6608 # If the default for a toolchain is to use GNU as and ld, and you don't
6609 # want to do that, then you should use the --without-gnu-as and
6610 # --without-gnu-ld options for the configure script. Similarly, if
6611 # the default is to use the included zlib and you don't want to do that,
6612 # you should use the --with-system-zlib option for the configure script.
6613
6614 if test x${use_gnu_as} = x &&
6615 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6616 with_gnu_as=yes
6617 extra_host_args="$extra_host_args --with-gnu-as"
6618 fi
6619
6620 if test x${use_gnu_ld} = x &&
6621 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6622 with_gnu_ld=yes
6623 extra_host_args="$extra_host_args --with-gnu-ld"
6624 fi
6625
6626 if test x${use_included_zlib} = x &&
6627 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6628 :
6629 else
6630 with_system_zlib=yes
6631 extra_host_args="$extra_host_args --with-system-zlib"
6632 fi
6633
6634 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6635 # can detect this case.
6636
6637 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6638 with_newlib=yes
6639 extra_host_args="$extra_host_args --with-newlib"
6640 fi
6641
6642 # Handle ${copy_dirs}
6643 set fnord ${copy_dirs}
6644 shift
6645 while test $# != 0 ; do
6646 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6647 :
6648 else
6649 echo Copying $1 to $2
6650
6651 # Use the install script to create the directory and all required
6652 # parent directories.
6653 if test -d $2 ; then
6654 :
6655 else
6656 echo >config.temp
6657 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6658 fi
6659
6660 # Copy the directory, assuming we have tar.
6661 # FIXME: Should we use B in the second tar? Not all systems support it.
6662 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6663
6664 # It is the responsibility of the user to correctly adjust all
6665 # symlinks. If somebody can figure out how to handle them correctly
6666 # here, feel free to add the code.
6667
6668 echo $1 > $2/COPIED
6669 fi
6670 shift; shift
6671 done
6672
6673 # Determine a target-dependent exec_prefix that the installed
6674 # gcc will search in. Keep this list sorted by triplet, with
6675 # the *-*-osname triplets last.
6676 md_exec_prefix=
6677 case "${target}" in
6678 i[34567]86-pc-msdosdjgpp*)
6679 md_exec_prefix=/dev/env/DJDIR/bin
6680 ;;
6681 *-*-hpux* | \
6682 *-*-nto-qnx* | \
6683 *-*-solaris2*)
6684 md_exec_prefix=/usr/ccs/bin
6685 ;;
6686 esac
6687
6688 extra_arflags_for_target=
6689 extra_nmflags_for_target=
6690 extra_ranlibflags_for_target=
6691 target_makefile_frag=/dev/null
6692 case "${target}" in
6693 spu-*-*)
6694 target_makefile_frag="config/mt-spu"
6695 ;;
6696 mips*-sde-elf*)
6697 target_makefile_frag="config/mt-sde"
6698 ;;
6699 mipsisa*-*-elfoabi*)
6700 target_makefile_frag="config/mt-mips-elfoabi"
6701 ;;
6702 mips*-*-*linux* | mips*-*-gnu*)
6703 target_makefile_frag="config/mt-mips-gnu"
6704 ;;
6705 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6706 target_makefile_frag="config/mt-gnu"
6707 ;;
6708 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6709 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6710 # commands to handle both 32-bit and 64-bit objects. These flags are
6711 # harmless if we're using GNU nm or ar.
6712 extra_arflags_for_target=" -X32_64"
6713 extra_nmflags_for_target=" -B -X32_64"
6714 ;;
6715 esac
6716
6717 alphaieee_frag=/dev/null
6718 case $target in
6719 alpha*-*-*)
6720 # This just makes sure to use the -mieee option to build target libs.
6721 # This should probably be set individually by each library.
6722 alphaieee_frag="config/mt-alphaieee"
6723 ;;
6724 esac
6725
6726 # If --enable-target-optspace always use -Os instead of -O2 to build
6727 # the target libraries, similarly if it is not specified, use -Os
6728 # on selected platforms.
6729 ospace_frag=/dev/null
6730 case "${enable_target_optspace}:${target}" in
6731 yes:*)
6732 ospace_frag="config/mt-ospace"
6733 ;;
6734 :d30v-*)
6735 ospace_frag="config/mt-d30v"
6736 ;;
6737 :m32r-* | :d10v-* | :fr30-*)
6738 ospace_frag="config/mt-ospace"
6739 ;;
6740 no:* | :*)
6741 ;;
6742 *)
6743 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6744 ;;
6745 esac
6746
6747 # Some systems (e.g., one of the i386-aix systems the gas testers are
6748 # using) don't handle "\$" correctly, so don't use it here.
6749 tooldir='${exec_prefix}'/${target_noncanonical}
6750 build_tooldir=${tooldir}
6751
6752 # Create a .gdbinit file which runs the one in srcdir
6753 # and tells GDB to look there for source files.
6754
6755 if test -r ${srcdir}/.gdbinit ; then
6756 case ${srcdir} in
6757 .) ;;
6758 *) cat > ./.gdbinit <<EOF
6759 # ${NO_EDIT}
6760 dir ${srcdir}
6761 dir .
6762 source ${srcdir}/.gdbinit
6763 EOF
6764 ;;
6765 esac
6766 fi
6767
6768 # Make sure that the compiler is able to generate an executable. If it
6769 # can't, we are probably in trouble. We don't care whether we can run the
6770 # executable--we might be using a cross compiler--we only care whether it
6771 # can be created. At this point the main configure script has set CC.
6772 we_are_ok=no
6773 echo "int main () { return 0; }" > conftest.c
6774 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6775 if test $? = 0 ; then
6776 if test -s conftest || test -s conftest.exe ; then
6777 we_are_ok=yes
6778 fi
6779 fi
6780 case $we_are_ok in
6781 no)
6782 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6783 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6784 rm -f conftest*
6785 exit 1
6786 ;;
6787 esac
6788 rm -f conftest*
6789
6790 # Decide which environment variable is used to find dynamic libraries.
6791 case "${host}" in
6792 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6793 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6794 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6795 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6796 esac
6797
6798 # On systems where the dynamic library environment variable is PATH,
6799 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6800 # built executables to PATH.
6801 if test "$RPATH_ENVVAR" = PATH; then
6802 GCC_SHLIB_SUBDIR=/shlib
6803 else
6804 GCC_SHLIB_SUBDIR=
6805 fi
6806
6807 # Record target_configdirs and the configure arguments for target and
6808 # build configuration in Makefile.
6809 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6810 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6811
6812 # If we are building libgomp, bootstrap it.
6813 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6814 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6815 fi
6816
6817 # Determine whether gdb needs tk/tcl or not.
6818 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6819 # and in that case we want gdb to be built without tk. Ugh!
6820 # In fact I believe gdb is the *only* package directly dependent on tk,
6821 # so we should be able to put the 'maybe's in unconditionally and
6822 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6823 # 100% sure that that's safe though.
6824
6825 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6826 case "$enable_gdbtk" in
6827 no)
6828 GDB_TK="" ;;
6829 yes)
6830 GDB_TK="${gdb_tk}" ;;
6831 *)
6832 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6833 # distro. Eventually someone will fix this and move Insight, nee
6834 # gdbtk to a separate directory.
6835 if test -d ${srcdir}/gdb/gdbtk ; then
6836 GDB_TK="${gdb_tk}"
6837 else
6838 GDB_TK=""
6839 fi
6840 ;;
6841 esac
6842 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6843 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6844
6845 # Strip out unwanted targets.
6846
6847 # While at that, we remove Makefiles if we were started for recursive
6848 # configuration, so that the top-level Makefile reconfigures them,
6849 # like we used to do when configure itself was recursive.
6850
6851 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6852 # but now we're fixing up the Makefile ourselves with the additional
6853 # commands passed to AC_CONFIG_FILES. Use separate variables
6854 # extrasub-{build,host,target} not because there is any reason to split
6855 # the substitutions up that way, but only to remain below the limit of
6856 # 99 commands in a script, for HP-UX sed.
6857 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6858
6859 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6860 yes:yes:*\ gold\ *:*,c++,*) ;;
6861 yes:yes:*\ gold\ *:*)
6862 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6863 ;;
6864 esac
6865
6866 # Adjust the toplevel makefile according to whether bootstrap was selected.
6867 case $enable_bootstrap in
6868 yes)
6869 bootstrap_suffix=bootstrap
6870 BUILD_CONFIG=bootstrap-debug
6871 ;;
6872 no)
6873 bootstrap_suffix=no-bootstrap
6874 BUILD_CONFIG=
6875 ;;
6876 esac
6877
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6879 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6880
6881
6882 # Check whether --with-build-config was given.
6883 if test "${with_build_config+set}" = set; then :
6884 withval=$with_build_config; case $with_build_config in
6885 yes) with_build_config= ;;
6886 no) with_build_config= BUILD_CONFIG= ;;
6887 esac
6888 fi
6889
6890
6891 if test "x${with_build_config}" != x; then
6892 BUILD_CONFIG=$with_build_config
6893 else
6894 case $BUILD_CONFIG in
6895 bootstrap-debug)
6896 if echo "int f (void) { return 0; }" > conftest.c &&
6897 ${CC} -c conftest.c &&
6898 mv conftest.o conftest.o.g0 &&
6899 ${CC} -c -g conftest.c &&
6900 mv conftest.o conftest.o.g &&
6901 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6902 :
6903 else
6904 BUILD_CONFIG=
6905 fi
6906 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6907 ;;
6908 esac
6909 fi
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6911 $as_echo "$BUILD_CONFIG" >&6; }
6912
6913
6914 extrasub_build=
6915 for module in ${build_configdirs} ; do
6916 if test -z "${no_recursion}" \
6917 && test -f ${build_subdir}/${module}/Makefile; then
6918 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6919 rm -f ${build_subdir}/${module}/Makefile
6920 fi
6921 extrasub_build="$extrasub_build
6922 /^@if build-$module\$/d
6923 /^@endif build-$module\$/d
6924 /^@if build-$module-$bootstrap_suffix\$/d
6925 /^@endif build-$module-$bootstrap_suffix\$/d"
6926 done
6927 extrasub_host=
6928 for module in ${configdirs} ; do
6929 if test -z "${no_recursion}"; then
6930 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6931 if test -f ${file}; then
6932 echo 1>&2 "*** removing ${file} to force reconfigure"
6933 rm -f ${file}
6934 fi
6935 done
6936 fi
6937 extrasub_host="$extrasub_host
6938 /^@if $module\$/d
6939 /^@endif $module\$/d
6940 /^@if $module-$bootstrap_suffix\$/d
6941 /^@endif $module-$bootstrap_suffix\$/d"
6942 done
6943 extrasub_target=
6944 for module in ${target_configdirs} ; do
6945 if test -z "${no_recursion}" \
6946 && test -f ${target_subdir}/${module}/Makefile; then
6947 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6948 rm -f ${target_subdir}/${module}/Makefile
6949 fi
6950
6951 # We only bootstrap target libraries listed in bootstrap_target_libs.
6952 case $bootstrap_target_libs in
6953 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6954 *) target_bootstrap_suffix=no-bootstrap ;;
6955 esac
6956
6957 extrasub_target="$extrasub_target
6958 /^@if target-$module\$/d
6959 /^@endif target-$module\$/d
6960 /^@if target-$module-$target_bootstrap_suffix\$/d
6961 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6962 done
6963
6964 # Do the final fixup along with target modules.
6965 extrasub_target="$extrasub_target
6966 /^@if /,/^@endif /d"
6967
6968 # Create the serialization dependencies. This uses a temporary file.
6969
6970 # Check whether --enable-serial-configure was given.
6971 if test "${enable_serial_configure+set}" = set; then :
6972 enableval=$enable_serial_configure;
6973 fi
6974
6975
6976 case ${enable_serial_configure} in
6977 yes)
6978 enable_serial_build_configure=yes
6979 enable_serial_host_configure=yes
6980 enable_serial_target_configure=yes
6981 ;;
6982 esac
6983
6984 # These force 'configure's to be done one at a time, to avoid problems
6985 # with contention over a shared config.cache.
6986 rm -f serdep.tmp
6987 echo '# serdep.tmp' > serdep.tmp
6988 olditem=
6989 test "x${enable_serial_build_configure}" = xyes &&
6990 for item in ${build_configdirs} ; do
6991 case ${olditem} in
6992 "") ;;
6993 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6994 esac
6995 olditem=${item}
6996 done
6997 olditem=
6998 test "x${enable_serial_host_configure}" = xyes &&
6999 for item in ${configdirs} ; do
7000 case ${olditem} in
7001 "") ;;
7002 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7003 esac
7004 olditem=${item}
7005 done
7006 olditem=
7007 test "x${enable_serial_target_configure}" = xyes &&
7008 for item in ${target_configdirs} ; do
7009 case ${olditem} in
7010 "") ;;
7011 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7012 esac
7013 olditem=${item}
7014 done
7015 serialization_dependencies=serdep.tmp
7016
7017
7018 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7019 # target, nonopt, and variable assignments. These are the ones we
7020 # might not want to pass down to subconfigures. The exception being
7021 # --cache-file=/dev/null, which is used to turn off the use of cache
7022 # files altogether, and which should be passed on to subconfigures.
7023 # Also strip program-prefix, program-suffix, and program-transform-name,
7024 # so that we can pass down a consistent program-transform-name.
7025 baseargs=
7026 tbaseargs=
7027 keep_next=no
7028 skip_next=no
7029 eval "set -- $ac_configure_args"
7030 for ac_arg
7031 do
7032 if test X"$skip_next" = X"yes"; then
7033 skip_next=no
7034 continue
7035 fi
7036 if test X"$keep_next" = X"yes"; then
7037 case $ac_arg in
7038 *\'*)
7039 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7040 esac
7041 baseargs="$baseargs '$ac_arg'"
7042 tbaseargs="$tbaseargs '$ac_arg'"
7043 keep_next=no
7044 continue
7045 fi
7046
7047 # Handle separated arguments. Based on the logic generated by
7048 # autoconf 2.59.
7049 case $ac_arg in
7050 *=* | --config-cache | -C | -disable-* | --disable-* \
7051 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7052 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7053 | -with-* | --with-* | -without-* | --without-* | --x)
7054 separate_arg=no
7055 ;;
7056 -*)
7057 separate_arg=yes
7058 ;;
7059 *)
7060 separate_arg=no
7061 ;;
7062 esac
7063
7064 skip_targ=no
7065 case $ac_arg in
7066
7067 --with-* | --without-*)
7068 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7069
7070 case $libopt in
7071 *[-_]include)
7072 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7073 ;;
7074 *[-_]lib)
7075 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7076 ;;
7077 *)
7078 lib=$libopt
7079 ;;
7080 esac
7081
7082
7083 case $lib in
7084 mpc | mpfr | gmp | ppl | cloog)
7085 # If we're processing --with-$lib, --with-$lib-include or
7086 # --with-$lib-lib, for one of the libs above, and target is
7087 # different from host, don't pass the current argument to any
7088 # target library's configure.
7089 if test x$is_cross_compiler = xyes; then
7090 skip_targ=yes
7091 fi
7092 ;;
7093 esac
7094 ;;
7095 esac
7096
7097 case "$ac_arg" in
7098 --cache-file=/dev/null | \
7099 -cache-file=/dev/null )
7100 # Handled here to avoid the test to skip args below.
7101 baseargs="$baseargs '$ac_arg'"
7102 tbaseargs="$tbaseargs '$ac_arg'"
7103 # Assert: $separate_arg should always be no.
7104 keep_next=$separate_arg
7105 ;;
7106 --no*)
7107 continue
7108 ;;
7109 --c* | \
7110 --sr* | \
7111 --ho* | \
7112 --bu* | \
7113 --t* | \
7114 --program-* | \
7115 -cache_file* | \
7116 -srcdir* | \
7117 -host* | \
7118 -build* | \
7119 -target* | \
7120 -program-prefix* | \
7121 -program-suffix* | \
7122 -program-transform-name* )
7123 skip_next=$separate_arg
7124 continue
7125 ;;
7126 -*)
7127 # An option. Add it.
7128 case $ac_arg in
7129 *\'*)
7130 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7131 esac
7132 baseargs="$baseargs '$ac_arg'"
7133 if test X"$skip_targ" = Xno; then
7134 tbaseargs="$tbaseargs '$ac_arg'"
7135 fi
7136 keep_next=$separate_arg
7137 ;;
7138 *)
7139 # Either a variable assignment, or a nonopt (triplet). Don't
7140 # pass it down; let the Makefile handle this.
7141 continue
7142 ;;
7143 esac
7144 done
7145 # Remove the initial space we just introduced and, as these will be
7146 # expanded by make, quote '$'.
7147 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7148
7149 # Add in --program-transform-name, after --program-prefix and
7150 # --program-suffix have been applied to it. Autoconf has already
7151 # doubled dollar signs and backslashes in program_transform_name; we want
7152 # the backslashes un-doubled, and then the entire thing wrapped in single
7153 # quotes, because this will be expanded first by make and then by the shell.
7154 # Also, because we want to override the logic in subdir configure scripts to
7155 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7156 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7157 ${program_transform_name}
7158 EOF_SED
7159 gcc_transform_name=`cat conftestsed.out`
7160 rm -f conftestsed.out
7161 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7162 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7163 if test "$silent" = yes; then
7164 baseargs="$baseargs --silent"
7165 tbaseargs="$tbaseargs --silent"
7166 fi
7167 baseargs="$baseargs --disable-option-checking"
7168 tbaseargs="$tbaseargs --disable-option-checking"
7169
7170 # Record and document user additions to sub configure arguments.
7171
7172
7173
7174
7175 # For the build-side libraries, we just need to pretend we're native,
7176 # and not use the same cache file. Multilibs are neither needed nor
7177 # desired.
7178 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7179
7180 # For host modules, accept cache file option, or specification as blank.
7181 case "${cache_file}" in
7182 "") # empty
7183 cache_file_option="" ;;
7184 /* | [A-Za-z]:[\\/]* ) # absolute path
7185 cache_file_option="--cache-file=${cache_file}" ;;
7186 *) # relative path
7187 cache_file_option="--cache-file=../${cache_file}" ;;
7188 esac
7189
7190 # Host dirs don't like to share a cache file either, horribly enough.
7191 # This seems to be due to autoconf 2.5x stupidity.
7192 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7193
7194 target_configargs="$target_configargs ${tbaseargs}"
7195
7196 # Passing a --with-cross-host argument lets the target libraries know
7197 # whether they are being built with a cross-compiler or being built
7198 # native. However, it would be better to use other mechanisms to make the
7199 # sorts of decisions they want to make on this basis. Please consider
7200 # this option to be deprecated. FIXME.
7201 if test x${is_cross_compiler} = xyes ; then
7202 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7203 fi
7204
7205 # Default to --enable-multilib.
7206 if test x${enable_multilib} = x ; then
7207 target_configargs="--enable-multilib ${target_configargs}"
7208 fi
7209
7210 # Pass --with-newlib if appropriate. Note that target_configdirs has
7211 # changed from the earlier setting of with_newlib.
7212 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7213 target_configargs="--with-newlib ${target_configargs}"
7214 fi
7215
7216 # Different target subdirs use different values of certain variables
7217 # (notably CXX). Worse, multilibs use *lots* of different values.
7218 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7219 # it doesn't automatically accept command-line overrides of them.
7220 # This means it's not safe for target subdirs to share a cache file,
7221 # which is disgusting, but there you have it. Hopefully this can be
7222 # fixed in future. It's still worthwhile to use a cache file for each
7223 # directory. I think.
7224
7225 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7226 # We need to pass --target, as newer autoconf's requires consistency
7227 # for target_alias and gcc doesn't manage it consistently.
7228 target_configargs="--cache-file=./config.cache ${target_configargs}"
7229
7230 FLAGS_FOR_TARGET=
7231 case " $target_configdirs " in
7232 *" newlib "*)
7233 case " $target_configargs " in
7234 *" --with-newlib "*)
7235 case "$target" in
7236 *-cygwin*)
7237 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7238 ;;
7239 esac
7240
7241 # If we're not building GCC, don't discard standard headers.
7242 if test -d ${srcdir}/gcc; then
7243 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7244
7245 if test "${build}" != "${host}"; then
7246 # On Canadian crosses, CC_FOR_TARGET will have already been set
7247 # by `configure', so we won't have an opportunity to add -Bgcc/
7248 # to it. This is right: we don't want to search that directory
7249 # for binaries, but we want the header files in there, so add
7250 # them explicitly.
7251 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7252
7253 # Someone might think of using the pre-installed headers on
7254 # Canadian crosses, in case the installed compiler is not fully
7255 # compatible with the compiler being built. In this case, it
7256 # would be better to flag an error than risking having
7257 # incompatible object files being constructed. We can't
7258 # guarantee that an error will be flagged, but let's hope the
7259 # compiler will do it, when presented with incompatible header
7260 # files.
7261 fi
7262 fi
7263
7264 case "${target}-${is_cross_compiler}" in
7265 i[3456789]86-*-linux*-no)
7266 # Here host == target, so we don't need to build gcc,
7267 # so we don't want to discard standard headers.
7268 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7269 ;;
7270 *)
7271 # If we're building newlib, use its generic headers last, but search
7272 # for any libc-related directories first (so make it the last -B
7273 # switch).
7274 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7275
7276 # If we're building libgloss, find the startup file, simulator library
7277 # and linker script.
7278 case " $target_configdirs " in
7279 *" libgloss "*)
7280 # Look for startup file, simulator library and maybe linker script.
7281 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7282 # Look for libnosys.a in case the target needs it.
7283 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7284 # Most targets have the linker script in the source directory.
7285 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7286 ;;
7287 esac
7288 ;;
7289 esac
7290 ;;
7291 esac
7292 ;;
7293 esac
7294
7295 case "$target" in
7296 x86_64-*mingw* | *-w64-mingw*)
7297 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7298 # however, use a symlink named 'mingw' in ${prefix} .
7299 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7300 ;;
7301 *-mingw*)
7302 # MinGW can't be handled as Cygwin above since it does not use newlib.
7303 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'
7304 ;;
7305 esac
7306
7307 # Allow the user to override the flags for
7308 # our build compiler if desired.
7309 if test x"${build}" = x"${host}" ; then
7310 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7311 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7312 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7313 fi
7314
7315 # On Canadian crosses, we'll be searching the right directories for
7316 # the previously-installed cross compiler, so don't bother to add
7317 # flags for directories within the install tree of the compiler
7318 # being built; programs in there won't even run.
7319 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7320 # Search for pre-installed headers if nothing else fits.
7321 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7322 fi
7323
7324 if test "x${use_gnu_ld}" = x &&
7325 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7326 # Arrange for us to find uninstalled linker scripts.
7327 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7328 fi
7329
7330 # Search for other target-specific linker scripts and such.
7331 case "${target}" in
7332 mep*)
7333 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7334 ;;
7335 esac
7336
7337 # Makefile fragments.
7338 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7339 do
7340 eval fragval=\$$frag
7341 if test $fragval != /dev/null; then
7342 eval $frag=${srcdir}/$fragval
7343 fi
7344 done
7345
7346
7347
7348
7349
7350 # Miscellanea: directories, flags, etc.
7351
7352
7353
7354
7355
7356
7357
7358
7359 # Build module lists & subconfigure args.
7360
7361
7362
7363 # Host module lists & subconfigure args.
7364
7365
7366
7367
7368 # Target module lists & subconfigure args.
7369
7370
7371
7372 # Build tools.
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390 # Generate default definitions for YACC, M4, LEX and other programs that run
7391 # on the build machine. These are used if the Makefile can't locate these
7392 # programs in objdir.
7393 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7394
7395 for ac_prog in 'bison -y' byacc yacc
7396 do
7397 # Extract the first word of "$ac_prog", so it can be a program name with args.
7398 set dummy $ac_prog; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if test "${ac_cv_prog_YACC+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 if test -n "$YACC"; then
7405 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414 ac_cv_prog_YACC="$ac_prog"
7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 break 2
7417 fi
7418 done
7419 done
7420 IFS=$as_save_IFS
7421
7422 fi
7423 fi
7424 YACC=$ac_cv_prog_YACC
7425 if test -n "$YACC"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7427 $as_echo "$YACC" >&6; }
7428 else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7431 fi
7432
7433
7434 test -n "$YACC" && break
7435 done
7436 test -n "$YACC" || YACC="$MISSING bison -y"
7437
7438 case " $build_configdirs " in
7439 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7440 esac
7441
7442 for ac_prog in bison
7443 do
7444 # Extract the first word of "$ac_prog", so it can be a program name with args.
7445 set dummy $ac_prog; ac_word=$2
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 $as_echo_n "checking for $ac_word... " >&6; }
7448 if test "${ac_cv_prog_BISON+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 if test -n "$BISON"; then
7452 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7453 else
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 for as_dir in $PATH
7456 do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_prog_BISON="$ac_prog"
7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465 done
7466 done
7467 IFS=$as_save_IFS
7468
7469 fi
7470 fi
7471 BISON=$ac_cv_prog_BISON
7472 if test -n "$BISON"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7474 $as_echo "$BISON" >&6; }
7475 else
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477 $as_echo "no" >&6; }
7478 fi
7479
7480
7481 test -n "$BISON" && break
7482 done
7483 test -n "$BISON" || BISON="$MISSING bison"
7484
7485 case " $build_configdirs " in
7486 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7487 esac
7488
7489 for ac_prog in gm4 gnum4 m4
7490 do
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if test "${ac_cv_prog_M4+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 if test -n "$M4"; then
7499 ac_cv_prog_M4="$M4" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_prog_M4="$ac_prog"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7511 fi
7512 done
7513 done
7514 IFS=$as_save_IFS
7515
7516 fi
7517 fi
7518 M4=$ac_cv_prog_M4
7519 if test -n "$M4"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7521 $as_echo "$M4" >&6; }
7522 else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7525 fi
7526
7527
7528 test -n "$M4" && break
7529 done
7530 test -n "$M4" || M4="$MISSING m4"
7531
7532 case " $build_configdirs " in
7533 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7534 esac
7535
7536 for ac_prog in flex lex
7537 do
7538 # Extract the first word of "$ac_prog", so it can be a program name with args.
7539 set dummy $ac_prog; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if test "${ac_cv_prog_LEX+set}" = set; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 if test -n "$LEX"; then
7546 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7547 else
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_prog_LEX="$ac_prog"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7558 fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563 fi
7564 fi
7565 LEX=$ac_cv_prog_LEX
7566 if test -n "$LEX"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7568 $as_echo "$LEX" >&6; }
7569 else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574
7575 test -n "$LEX" && break
7576 done
7577 test -n "$LEX" || LEX="$MISSING flex"
7578
7579 case " $build_configdirs " in
7580 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7581 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7582 esac
7583
7584 for ac_prog in flex
7585 do
7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
7587 set dummy $ac_prog; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if test "${ac_cv_prog_FLEX+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 if test -n "$FLEX"; then
7594 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_FLEX="$ac_prog"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 FLEX=$ac_cv_prog_FLEX
7614 if test -n "$FLEX"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7616 $as_echo "$FLEX" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622
7623 test -n "$FLEX" && break
7624 done
7625 test -n "$FLEX" || FLEX="$MISSING flex"
7626
7627 case " $build_configdirs " in
7628 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7629 esac
7630
7631 for ac_prog in makeinfo
7632 do
7633 # Extract the first word of "$ac_prog", so it can be a program name with args.
7634 set dummy $ac_prog; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 if test -n "$MAKEINFO"; then
7641 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_prog_MAKEINFO="$ac_prog"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 MAKEINFO=$ac_cv_prog_MAKEINFO
7661 if test -n "$MAKEINFO"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7663 $as_echo "$MAKEINFO" >&6; }
7664 else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7667 fi
7668
7669
7670 test -n "$MAKEINFO" && break
7671 done
7672 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7673
7674 case " $build_configdirs " in
7675 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7676 *)
7677
7678 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7679 # higher, else we use the "missing" dummy.
7680 if ${MAKEINFO} --version \
7681 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7682 :
7683 else
7684 MAKEINFO="$MISSING makeinfo"
7685 fi
7686 ;;
7687
7688 esac
7689
7690 # FIXME: expect and dejagnu may become build tools?
7691
7692 for ac_prog in expect
7693 do
7694 # Extract the first word of "$ac_prog", so it can be a program name with args.
7695 set dummy $ac_prog; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7699 $as_echo_n "(cached) " >&6
7700 else
7701 if test -n "$EXPECT"; then
7702 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7703 else
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707 IFS=$as_save_IFS
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7711 ac_cv_prog_EXPECT="$ac_prog"
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 break 2
7714 fi
7715 done
7716 done
7717 IFS=$as_save_IFS
7718
7719 fi
7720 fi
7721 EXPECT=$ac_cv_prog_EXPECT
7722 if test -n "$EXPECT"; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7724 $as_echo "$EXPECT" >&6; }
7725 else
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7728 fi
7729
7730
7731 test -n "$EXPECT" && break
7732 done
7733 test -n "$EXPECT" || EXPECT="expect"
7734
7735 case " $configdirs " in
7736 *" expect "*)
7737 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7738 ;;
7739 esac
7740
7741 for ac_prog in runtest
7742 do
7743 # Extract the first word of "$ac_prog", so it can be a program name with args.
7744 set dummy $ac_prog; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 if test -n "$RUNTEST"; then
7751 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_prog_RUNTEST="$ac_prog"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764 done
7765 done
7766 IFS=$as_save_IFS
7767
7768 fi
7769 fi
7770 RUNTEST=$ac_cv_prog_RUNTEST
7771 if test -n "$RUNTEST"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7773 $as_echo "$RUNTEST" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7777 fi
7778
7779
7780 test -n "$RUNTEST" && break
7781 done
7782 test -n "$RUNTEST" || RUNTEST="runtest"
7783
7784 case " $configdirs " in
7785 *" dejagnu "*)
7786 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7787 ;;
7788 esac
7789
7790
7791 # Host tools.
7792 ncn_tool_prefix=
7793 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7794 ncn_target_tool_prefix=
7795 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7796
7797
7798
7799 if test -n "$AR"; then
7800 ac_cv_prog_AR=$AR
7801 elif test -n "$ac_cv_prog_AR"; then
7802 AR=$ac_cv_prog_AR
7803 fi
7804
7805 if test -n "$ac_cv_prog_AR"; then
7806 for ncn_progname in ar; do
7807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7808 set dummy ${ncn_progname}; ac_word=$2
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810 $as_echo_n "checking for $ac_word... " >&6; }
7811 if test "${ac_cv_prog_AR+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 if test -n "$AR"; then
7815 ac_cv_prog_AR="$AR" # Let the user override the test.
7816 else
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 for as_dir in $PATH
7819 do
7820 IFS=$as_save_IFS
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7824 ac_cv_prog_AR="${ncn_progname}"
7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 break 2
7827 fi
7828 done
7829 done
7830 IFS=$as_save_IFS
7831
7832 fi
7833 fi
7834 AR=$ac_cv_prog_AR
7835 if test -n "$AR"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7837 $as_echo "$AR" >&6; }
7838 else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7841 fi
7842
7843
7844 done
7845 fi
7846
7847 for ncn_progname in ar; do
7848 if test -n "$ncn_tool_prefix"; then
7849 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7850 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if test "${ac_cv_prog_AR+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 if test -n "$AR"; then
7857 ac_cv_prog_AR="$AR" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7866 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7869 fi
7870 done
7871 done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 AR=$ac_cv_prog_AR
7877 if test -n "$AR"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7879 $as_echo "$AR" >&6; }
7880 else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885
7886 fi
7887 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7889 set dummy ${ncn_progname}; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if test "${ac_cv_prog_AR+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 if test -n "$AR"; then
7896 ac_cv_prog_AR="$AR" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905 ac_cv_prog_AR="${ncn_progname}"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7908 fi
7909 done
7910 done
7911 IFS=$as_save_IFS
7912
7913 fi
7914 fi
7915 AR=$ac_cv_prog_AR
7916 if test -n "$AR"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7918 $as_echo "$AR" >&6; }
7919 else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7922 fi
7923
7924
7925 fi
7926 test -n "$ac_cv_prog_AR" && break
7927 done
7928
7929 if test -z "$ac_cv_prog_AR" ; then
7930 set dummy ar
7931 if test $build = $host ; then
7932 AR="$2"
7933 else
7934 AR="${ncn_tool_prefix}$2"
7935 fi
7936 fi
7937
7938
7939
7940 if test -n "$AS"; then
7941 ac_cv_prog_AS=$AS
7942 elif test -n "$ac_cv_prog_AS"; then
7943 AS=$ac_cv_prog_AS
7944 fi
7945
7946 if test -n "$ac_cv_prog_AS"; then
7947 for ncn_progname in as; do
7948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7949 set dummy ${ncn_progname}; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if test "${ac_cv_prog_AS+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 if test -n "$AS"; then
7956 ac_cv_prog_AS="$AS" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_prog_AS="${ncn_progname}"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7968 fi
7969 done
7970 done
7971 IFS=$as_save_IFS
7972
7973 fi
7974 fi
7975 AS=$ac_cv_prog_AS
7976 if test -n "$AS"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7978 $as_echo "$AS" >&6; }
7979 else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982 fi
7983
7984
7985 done
7986 fi
7987
7988 for ncn_progname in as; do
7989 if test -n "$ncn_tool_prefix"; then
7990 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7991 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if test "${ac_cv_prog_AS+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 if test -n "$AS"; then
7998 ac_cv_prog_AS="$AS" # Let the user override the test.
7999 else
8000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 for as_dir in $PATH
8002 do
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8007 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 break 2
8010 fi
8011 done
8012 done
8013 IFS=$as_save_IFS
8014
8015 fi
8016 fi
8017 AS=$ac_cv_prog_AS
8018 if test -n "$AS"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8020 $as_echo "$AS" >&6; }
8021 else
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8024 fi
8025
8026
8027 fi
8028 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8030 set dummy ${ncn_progname}; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if test "${ac_cv_prog_AS+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test -n "$AS"; then
8037 ac_cv_prog_AS="$AS" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046 ac_cv_prog_AS="${ncn_progname}"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8049 fi
8050 done
8051 done
8052 IFS=$as_save_IFS
8053
8054 fi
8055 fi
8056 AS=$ac_cv_prog_AS
8057 if test -n "$AS"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8059 $as_echo "$AS" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063 fi
8064
8065
8066 fi
8067 test -n "$ac_cv_prog_AS" && break
8068 done
8069
8070 if test -z "$ac_cv_prog_AS" ; then
8071 set dummy as
8072 if test $build = $host ; then
8073 AS="$2"
8074 else
8075 AS="${ncn_tool_prefix}$2"
8076 fi
8077 fi
8078
8079
8080
8081 if test -n "$DLLTOOL"; then
8082 ac_cv_prog_DLLTOOL=$DLLTOOL
8083 elif test -n "$ac_cv_prog_DLLTOOL"; then
8084 DLLTOOL=$ac_cv_prog_DLLTOOL
8085 fi
8086
8087 if test -n "$ac_cv_prog_DLLTOOL"; then
8088 for ncn_progname in dlltool; do
8089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8090 set dummy ${ncn_progname}; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 if test -n "$DLLTOOL"; then
8097 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8098 else
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8101 do
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8106 ac_cv_prog_DLLTOOL="${ncn_progname}"
8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 break 2
8109 fi
8110 done
8111 done
8112 IFS=$as_save_IFS
8113
8114 fi
8115 fi
8116 DLLTOOL=$ac_cv_prog_DLLTOOL
8117 if test -n "$DLLTOOL"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8119 $as_echo "$DLLTOOL" >&6; }
8120 else
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8123 fi
8124
8125
8126 done
8127 fi
8128
8129 for ncn_progname in dlltool; do
8130 if test -n "$ncn_tool_prefix"; then
8131 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8132 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8138 if test -n "$DLLTOOL"; then
8139 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8148 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8151 fi
8152 done
8153 done
8154 IFS=$as_save_IFS
8155
8156 fi
8157 fi
8158 DLLTOOL=$ac_cv_prog_DLLTOOL
8159 if test -n "$DLLTOOL"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8161 $as_echo "$DLLTOOL" >&6; }
8162 else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167
8168 fi
8169 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8171 set dummy ${ncn_progname}; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 if test -n "$DLLTOOL"; then
8178 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8179 else
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8182 do
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_prog_DLLTOOL="${ncn_progname}"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8190 fi
8191 done
8192 done
8193 IFS=$as_save_IFS
8194
8195 fi
8196 fi
8197 DLLTOOL=$ac_cv_prog_DLLTOOL
8198 if test -n "$DLLTOOL"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8200 $as_echo "$DLLTOOL" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8204 fi
8205
8206
8207 fi
8208 test -n "$ac_cv_prog_DLLTOOL" && break
8209 done
8210
8211 if test -z "$ac_cv_prog_DLLTOOL" ; then
8212 set dummy dlltool
8213 if test $build = $host ; then
8214 DLLTOOL="$2"
8215 else
8216 DLLTOOL="${ncn_tool_prefix}$2"
8217 fi
8218 fi
8219
8220
8221
8222 if test -n "$LD"; then
8223 ac_cv_prog_LD=$LD
8224 elif test -n "$ac_cv_prog_LD"; then
8225 LD=$ac_cv_prog_LD
8226 fi
8227
8228 if test -n "$ac_cv_prog_LD"; then
8229 for ncn_progname in ld; do
8230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8231 set dummy ${ncn_progname}; ac_word=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if test "${ac_cv_prog_LD+set}" = set; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 if test -n "$LD"; then
8238 ac_cv_prog_LD="$LD" # Let the user override the test.
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8242 do
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8247 ac_cv_prog_LD="${ncn_progname}"
8248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 break 2
8250 fi
8251 done
8252 done
8253 IFS=$as_save_IFS
8254
8255 fi
8256 fi
8257 LD=$ac_cv_prog_LD
8258 if test -n "$LD"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8260 $as_echo "$LD" >&6; }
8261 else
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8264 fi
8265
8266
8267 done
8268 fi
8269
8270 for ncn_progname in ld; do
8271 if test -n "$ncn_tool_prefix"; then
8272 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8273 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if test "${ac_cv_prog_LD+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 if test -n "$LD"; then
8280 ac_cv_prog_LD="$LD" # Let the user override the test.
8281 else
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8284 do
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8289 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8292 fi
8293 done
8294 done
8295 IFS=$as_save_IFS
8296
8297 fi
8298 fi
8299 LD=$ac_cv_prog_LD
8300 if test -n "$LD"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8302 $as_echo "$LD" >&6; }
8303 else
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8306 fi
8307
8308
8309 fi
8310 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8312 set dummy ${ncn_progname}; ac_word=$2
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 $as_echo_n "checking for $ac_word... " >&6; }
8315 if test "${ac_cv_prog_LD+set}" = set; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318 if test -n "$LD"; then
8319 ac_cv_prog_LD="$LD" # Let the user override the test.
8320 else
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8323 do
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328 ac_cv_prog_LD="${ncn_progname}"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8331 fi
8332 done
8333 done
8334 IFS=$as_save_IFS
8335
8336 fi
8337 fi
8338 LD=$ac_cv_prog_LD
8339 if test -n "$LD"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8341 $as_echo "$LD" >&6; }
8342 else
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8345 fi
8346
8347
8348 fi
8349 test -n "$ac_cv_prog_LD" && break
8350 done
8351
8352 if test -z "$ac_cv_prog_LD" ; then
8353 set dummy ld
8354 if test $build = $host ; then
8355 LD="$2"
8356 else
8357 LD="${ncn_tool_prefix}$2"
8358 fi
8359 fi
8360
8361
8362
8363 if test -n "$LIPO"; then
8364 ac_cv_prog_LIPO=$LIPO
8365 elif test -n "$ac_cv_prog_LIPO"; then
8366 LIPO=$ac_cv_prog_LIPO
8367 fi
8368
8369 if test -n "$ac_cv_prog_LIPO"; then
8370 for ncn_progname in lipo; do
8371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8372 set dummy ${ncn_progname}; ac_word=$2
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374 $as_echo_n "checking for $ac_word... " >&6; }
8375 if test "${ac_cv_prog_LIPO+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 if test -n "$LIPO"; then
8379 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8380 else
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 for as_dir in $PATH
8383 do
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8388 ac_cv_prog_LIPO="${ncn_progname}"
8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390 break 2
8391 fi
8392 done
8393 done
8394 IFS=$as_save_IFS
8395
8396 fi
8397 fi
8398 LIPO=$ac_cv_prog_LIPO
8399 if test -n "$LIPO"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8401 $as_echo "$LIPO" >&6; }
8402 else
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8405 fi
8406
8407
8408 done
8409 fi
8410
8411 for ncn_progname in lipo; do
8412 if test -n "$ncn_tool_prefix"; then
8413 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8414 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416 $as_echo_n "checking for $ac_word... " >&6; }
8417 if test "${ac_cv_prog_LIPO+set}" = set; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 if test -n "$LIPO"; then
8421 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8422 else
8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424 for as_dir in $PATH
8425 do
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8430 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 break 2
8433 fi
8434 done
8435 done
8436 IFS=$as_save_IFS
8437
8438 fi
8439 fi
8440 LIPO=$ac_cv_prog_LIPO
8441 if test -n "$LIPO"; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8443 $as_echo "$LIPO" >&6; }
8444 else
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 $as_echo "no" >&6; }
8447 fi
8448
8449
8450 fi
8451 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8453 set dummy ${ncn_progname}; ac_word=$2
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8455 $as_echo_n "checking for $ac_word... " >&6; }
8456 if test "${ac_cv_prog_LIPO+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 if test -n "$LIPO"; then
8460 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8461 else
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8464 do
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8469 ac_cv_prog_LIPO="${ncn_progname}"
8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 break 2
8472 fi
8473 done
8474 done
8475 IFS=$as_save_IFS
8476
8477 fi
8478 fi
8479 LIPO=$ac_cv_prog_LIPO
8480 if test -n "$LIPO"; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8482 $as_echo "$LIPO" >&6; }
8483 else
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8486 fi
8487
8488
8489 fi
8490 test -n "$ac_cv_prog_LIPO" && break
8491 done
8492
8493 if test -z "$ac_cv_prog_LIPO" ; then
8494 set dummy lipo
8495 if test $build = $host ; then
8496 LIPO="$2"
8497 else
8498 LIPO="${ncn_tool_prefix}$2"
8499 fi
8500 fi
8501
8502
8503
8504 if test -n "$NM"; then
8505 ac_cv_prog_NM=$NM
8506 elif test -n "$ac_cv_prog_NM"; then
8507 NM=$ac_cv_prog_NM
8508 fi
8509
8510 if test -n "$ac_cv_prog_NM"; then
8511 for ncn_progname in nm; do
8512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8513 set dummy ${ncn_progname}; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if test "${ac_cv_prog_NM+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 if test -n "$NM"; then
8520 ac_cv_prog_NM="$NM" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529 ac_cv_prog_NM="${ncn_progname}"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8532 fi
8533 done
8534 done
8535 IFS=$as_save_IFS
8536
8537 fi
8538 fi
8539 NM=$ac_cv_prog_NM
8540 if test -n "$NM"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8542 $as_echo "$NM" >&6; }
8543 else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8546 fi
8547
8548
8549 done
8550 fi
8551
8552 for ncn_progname in nm; do
8553 if test -n "$ncn_tool_prefix"; then
8554 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8555 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557 $as_echo_n "checking for $ac_word... " >&6; }
8558 if test "${ac_cv_prog_NM+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 if test -n "$NM"; then
8562 ac_cv_prog_NM="$NM" # Let the user override the test.
8563 else
8564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 for as_dir in $PATH
8566 do
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8571 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 break 2
8574 fi
8575 done
8576 done
8577 IFS=$as_save_IFS
8578
8579 fi
8580 fi
8581 NM=$ac_cv_prog_NM
8582 if test -n "$NM"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8584 $as_echo "$NM" >&6; }
8585 else
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587 $as_echo "no" >&6; }
8588 fi
8589
8590
8591 fi
8592 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8594 set dummy ${ncn_progname}; ac_word=$2
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596 $as_echo_n "checking for $ac_word... " >&6; }
8597 if test "${ac_cv_prog_NM+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 if test -n "$NM"; then
8601 ac_cv_prog_NM="$NM" # Let the user override the test.
8602 else
8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 for as_dir in $PATH
8605 do
8606 IFS=$as_save_IFS
8607 test -z "$as_dir" && as_dir=.
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8610 ac_cv_prog_NM="${ncn_progname}"
8611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612 break 2
8613 fi
8614 done
8615 done
8616 IFS=$as_save_IFS
8617
8618 fi
8619 fi
8620 NM=$ac_cv_prog_NM
8621 if test -n "$NM"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8623 $as_echo "$NM" >&6; }
8624 else
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8627 fi
8628
8629
8630 fi
8631 test -n "$ac_cv_prog_NM" && break
8632 done
8633
8634 if test -z "$ac_cv_prog_NM" ; then
8635 set dummy nm
8636 if test $build = $host ; then
8637 NM="$2"
8638 else
8639 NM="${ncn_tool_prefix}$2"
8640 fi
8641 fi
8642
8643
8644
8645 if test -n "$RANLIB"; then
8646 ac_cv_prog_RANLIB=$RANLIB
8647 elif test -n "$ac_cv_prog_RANLIB"; then
8648 RANLIB=$ac_cv_prog_RANLIB
8649 fi
8650
8651 if test -n "$ac_cv_prog_RANLIB"; then
8652 for ncn_progname in ranlib; do
8653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8654 set dummy ${ncn_progname}; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 if test -n "$RANLIB"; then
8661 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8662 else
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664 for as_dir in $PATH
8665 do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8670 ac_cv_prog_RANLIB="${ncn_progname}"
8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 break 2
8673 fi
8674 done
8675 done
8676 IFS=$as_save_IFS
8677
8678 fi
8679 fi
8680 RANLIB=$ac_cv_prog_RANLIB
8681 if test -n "$RANLIB"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8683 $as_echo "$RANLIB" >&6; }
8684 else
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8687 fi
8688
8689
8690 done
8691 fi
8692
8693 for ncn_progname in ranlib; do
8694 if test -n "$ncn_tool_prefix"; then
8695 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8696 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 if test -n "$RANLIB"; then
8703 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8704 else
8705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706 for as_dir in $PATH
8707 do
8708 IFS=$as_save_IFS
8709 test -z "$as_dir" && as_dir=.
8710 for ac_exec_ext in '' $ac_executable_extensions; do
8711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8712 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8714 break 2
8715 fi
8716 done
8717 done
8718 IFS=$as_save_IFS
8719
8720 fi
8721 fi
8722 RANLIB=$ac_cv_prog_RANLIB
8723 if test -n "$RANLIB"; then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8725 $as_echo "$RANLIB" >&6; }
8726 else
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728 $as_echo "no" >&6; }
8729 fi
8730
8731
8732 fi
8733 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8735 set dummy ${ncn_progname}; ac_word=$2
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737 $as_echo_n "checking for $ac_word... " >&6; }
8738 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8740 else
8741 if test -n "$RANLIB"; then
8742 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8743 else
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $PATH
8746 do
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8751 ac_cv_prog_RANLIB="${ncn_progname}"
8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 break 2
8754 fi
8755 done
8756 done
8757 IFS=$as_save_IFS
8758
8759 fi
8760 fi
8761 RANLIB=$ac_cv_prog_RANLIB
8762 if test -n "$RANLIB"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8764 $as_echo "$RANLIB" >&6; }
8765 else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8768 fi
8769
8770
8771 fi
8772 test -n "$ac_cv_prog_RANLIB" && break
8773 done
8774
8775 if test -z "$ac_cv_prog_RANLIB" ; then
8776 RANLIB="true"
8777 fi
8778
8779
8780
8781 if test -n "$STRIP"; then
8782 ac_cv_prog_STRIP=$STRIP
8783 elif test -n "$ac_cv_prog_STRIP"; then
8784 STRIP=$ac_cv_prog_STRIP
8785 fi
8786
8787 if test -n "$ac_cv_prog_STRIP"; then
8788 for ncn_progname in strip; do
8789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8790 set dummy ${ncn_progname}; ac_word=$2
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792 $as_echo_n "checking for $ac_word... " >&6; }
8793 if test "${ac_cv_prog_STRIP+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 if test -n "$STRIP"; then
8797 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8798 else
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8801 do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8806 ac_cv_prog_STRIP="${ncn_progname}"
8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808 break 2
8809 fi
8810 done
8811 done
8812 IFS=$as_save_IFS
8813
8814 fi
8815 fi
8816 STRIP=$ac_cv_prog_STRIP
8817 if test -n "$STRIP"; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8819 $as_echo "$STRIP" >&6; }
8820 else
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 $as_echo "no" >&6; }
8823 fi
8824
8825
8826 done
8827 fi
8828
8829 for ncn_progname in strip; do
8830 if test -n "$ncn_tool_prefix"; then
8831 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8832 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if test "${ac_cv_prog_STRIP+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 if test -n "$STRIP"; then
8839 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8840 else
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8843 do
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850 break 2
8851 fi
8852 done
8853 done
8854 IFS=$as_save_IFS
8855
8856 fi
8857 fi
8858 STRIP=$ac_cv_prog_STRIP
8859 if test -n "$STRIP"; then
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8861 $as_echo "$STRIP" >&6; }
8862 else
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8865 fi
8866
8867
8868 fi
8869 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8871 set dummy ${ncn_progname}; ac_word=$2
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873 $as_echo_n "checking for $ac_word... " >&6; }
8874 if test "${ac_cv_prog_STRIP+set}" = set; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 if test -n "$STRIP"; then
8878 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8879 else
8880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881 for as_dir in $PATH
8882 do
8883 IFS=$as_save_IFS
8884 test -z "$as_dir" && as_dir=.
8885 for ac_exec_ext in '' $ac_executable_extensions; do
8886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8887 ac_cv_prog_STRIP="${ncn_progname}"
8888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8889 break 2
8890 fi
8891 done
8892 done
8893 IFS=$as_save_IFS
8894
8895 fi
8896 fi
8897 STRIP=$ac_cv_prog_STRIP
8898 if test -n "$STRIP"; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8900 $as_echo "$STRIP" >&6; }
8901 else
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903 $as_echo "no" >&6; }
8904 fi
8905
8906
8907 fi
8908 test -n "$ac_cv_prog_STRIP" && break
8909 done
8910
8911 if test -z "$ac_cv_prog_STRIP" ; then
8912 STRIP="true"
8913 fi
8914
8915
8916
8917 if test -n "$WINDRES"; then
8918 ac_cv_prog_WINDRES=$WINDRES
8919 elif test -n "$ac_cv_prog_WINDRES"; then
8920 WINDRES=$ac_cv_prog_WINDRES
8921 fi
8922
8923 if test -n "$ac_cv_prog_WINDRES"; then
8924 for ncn_progname in windres; do
8925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8926 set dummy ${ncn_progname}; ac_word=$2
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928 $as_echo_n "checking for $ac_word... " >&6; }
8929 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8930 $as_echo_n "(cached) " >&6
8931 else
8932 if test -n "$WINDRES"; then
8933 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8934 else
8935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 for as_dir in $PATH
8937 do
8938 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=.
8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8942 ac_cv_prog_WINDRES="${ncn_progname}"
8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 break 2
8945 fi
8946 done
8947 done
8948 IFS=$as_save_IFS
8949
8950 fi
8951 fi
8952 WINDRES=$ac_cv_prog_WINDRES
8953 if test -n "$WINDRES"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8955 $as_echo "$WINDRES" >&6; }
8956 else
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958 $as_echo "no" >&6; }
8959 fi
8960
8961
8962 done
8963 fi
8964
8965 for ncn_progname in windres; do
8966 if test -n "$ncn_tool_prefix"; then
8967 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8968 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970 $as_echo_n "checking for $ac_word... " >&6; }
8971 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 if test -n "$WINDRES"; then
8975 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8976 else
8977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978 for as_dir in $PATH
8979 do
8980 IFS=$as_save_IFS
8981 test -z "$as_dir" && as_dir=.
8982 for ac_exec_ext in '' $ac_executable_extensions; do
8983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8984 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 break 2
8987 fi
8988 done
8989 done
8990 IFS=$as_save_IFS
8991
8992 fi
8993 fi
8994 WINDRES=$ac_cv_prog_WINDRES
8995 if test -n "$WINDRES"; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8997 $as_echo "$WINDRES" >&6; }
8998 else
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000 $as_echo "no" >&6; }
9001 fi
9002
9003
9004 fi
9005 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9006 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9007 set dummy ${ncn_progname}; ac_word=$2
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9009 $as_echo_n "checking for $ac_word... " >&6; }
9010 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 if test -n "$WINDRES"; then
9014 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9015 else
9016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 for as_dir in $PATH
9018 do
9019 IFS=$as_save_IFS
9020 test -z "$as_dir" && as_dir=.
9021 for ac_exec_ext in '' $ac_executable_extensions; do
9022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9023 ac_cv_prog_WINDRES="${ncn_progname}"
9024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9025 break 2
9026 fi
9027 done
9028 done
9029 IFS=$as_save_IFS
9030
9031 fi
9032 fi
9033 WINDRES=$ac_cv_prog_WINDRES
9034 if test -n "$WINDRES"; then
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9036 $as_echo "$WINDRES" >&6; }
9037 else
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9039 $as_echo "no" >&6; }
9040 fi
9041
9042
9043 fi
9044 test -n "$ac_cv_prog_WINDRES" && break
9045 done
9046
9047 if test -z "$ac_cv_prog_WINDRES" ; then
9048 set dummy windres
9049 if test $build = $host ; then
9050 WINDRES="$2"
9051 else
9052 WINDRES="${ncn_tool_prefix}$2"
9053 fi
9054 fi
9055
9056
9057
9058 if test -n "$WINDMC"; then
9059 ac_cv_prog_WINDMC=$WINDMC
9060 elif test -n "$ac_cv_prog_WINDMC"; then
9061 WINDMC=$ac_cv_prog_WINDMC
9062 fi
9063
9064 if test -n "$ac_cv_prog_WINDMC"; then
9065 for ncn_progname in windmc; do
9066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9067 set dummy ${ncn_progname}; ac_word=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 if test -n "$WINDMC"; then
9074 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9075 else
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 for as_dir in $PATH
9078 do
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9083 ac_cv_prog_WINDMC="${ncn_progname}"
9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085 break 2
9086 fi
9087 done
9088 done
9089 IFS=$as_save_IFS
9090
9091 fi
9092 fi
9093 WINDMC=$ac_cv_prog_WINDMC
9094 if test -n "$WINDMC"; then
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9096 $as_echo "$WINDMC" >&6; }
9097 else
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 $as_echo "no" >&6; }
9100 fi
9101
9102
9103 done
9104 fi
9105
9106 for ncn_progname in windmc; do
9107 if test -n "$ncn_tool_prefix"; then
9108 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9109 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 if test -n "$WINDMC"; then
9116 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9117 else
9118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119 for as_dir in $PATH
9120 do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9125 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9128 fi
9129 done
9130 done
9131 IFS=$as_save_IFS
9132
9133 fi
9134 fi
9135 WINDMC=$ac_cv_prog_WINDMC
9136 if test -n "$WINDMC"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9138 $as_echo "$WINDMC" >&6; }
9139 else
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9142 fi
9143
9144
9145 fi
9146 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9148 set dummy ${ncn_progname}; ac_word=$2
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9150 $as_echo_n "checking for $ac_word... " >&6; }
9151 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9152 $as_echo_n "(cached) " >&6
9153 else
9154 if test -n "$WINDMC"; then
9155 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9156 else
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9159 do
9160 IFS=$as_save_IFS
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9164 ac_cv_prog_WINDMC="${ncn_progname}"
9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9166 break 2
9167 fi
9168 done
9169 done
9170 IFS=$as_save_IFS
9171
9172 fi
9173 fi
9174 WINDMC=$ac_cv_prog_WINDMC
9175 if test -n "$WINDMC"; then
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9177 $as_echo "$WINDMC" >&6; }
9178 else
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180 $as_echo "no" >&6; }
9181 fi
9182
9183
9184 fi
9185 test -n "$ac_cv_prog_WINDMC" && break
9186 done
9187
9188 if test -z "$ac_cv_prog_WINDMC" ; then
9189 set dummy windmc
9190 if test $build = $host ; then
9191 WINDMC="$2"
9192 else
9193 WINDMC="${ncn_tool_prefix}$2"
9194 fi
9195 fi
9196
9197
9198
9199 if test -n "$OBJCOPY"; then
9200 ac_cv_prog_OBJCOPY=$OBJCOPY
9201 elif test -n "$ac_cv_prog_OBJCOPY"; then
9202 OBJCOPY=$ac_cv_prog_OBJCOPY
9203 fi
9204
9205 if test -n "$ac_cv_prog_OBJCOPY"; then
9206 for ncn_progname in objcopy; do
9207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9208 set dummy ${ncn_progname}; ac_word=$2
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210 $as_echo_n "checking for $ac_word... " >&6; }
9211 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 if test -n "$OBJCOPY"; then
9215 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9216 else
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 for as_dir in $PATH
9219 do
9220 IFS=$as_save_IFS
9221 test -z "$as_dir" && as_dir=.
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9224 ac_cv_prog_OBJCOPY="${ncn_progname}"
9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 break 2
9227 fi
9228 done
9229 done
9230 IFS=$as_save_IFS
9231
9232 fi
9233 fi
9234 OBJCOPY=$ac_cv_prog_OBJCOPY
9235 if test -n "$OBJCOPY"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9237 $as_echo "$OBJCOPY" >&6; }
9238 else
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9241 fi
9242
9243
9244 done
9245 fi
9246
9247 for ncn_progname in objcopy; do
9248 if test -n "$ncn_tool_prefix"; then
9249 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9250 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252 $as_echo_n "checking for $ac_word... " >&6; }
9253 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
9255 else
9256 if test -n "$OBJCOPY"; then
9257 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9258 else
9259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260 for as_dir in $PATH
9261 do
9262 IFS=$as_save_IFS
9263 test -z "$as_dir" && as_dir=.
9264 for ac_exec_ext in '' $ac_executable_extensions; do
9265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9266 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9268 break 2
9269 fi
9270 done
9271 done
9272 IFS=$as_save_IFS
9273
9274 fi
9275 fi
9276 OBJCOPY=$ac_cv_prog_OBJCOPY
9277 if test -n "$OBJCOPY"; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9279 $as_echo "$OBJCOPY" >&6; }
9280 else
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282 $as_echo "no" >&6; }
9283 fi
9284
9285
9286 fi
9287 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9289 set dummy ${ncn_progname}; ac_word=$2
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9291 $as_echo_n "checking for $ac_word... " >&6; }
9292 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9293 $as_echo_n "(cached) " >&6
9294 else
9295 if test -n "$OBJCOPY"; then
9296 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9297 else
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 for as_dir in $PATH
9300 do
9301 IFS=$as_save_IFS
9302 test -z "$as_dir" && as_dir=.
9303 for ac_exec_ext in '' $ac_executable_extensions; do
9304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9305 ac_cv_prog_OBJCOPY="${ncn_progname}"
9306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9307 break 2
9308 fi
9309 done
9310 done
9311 IFS=$as_save_IFS
9312
9313 fi
9314 fi
9315 OBJCOPY=$ac_cv_prog_OBJCOPY
9316 if test -n "$OBJCOPY"; then
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9318 $as_echo "$OBJCOPY" >&6; }
9319 else
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9322 fi
9323
9324
9325 fi
9326 test -n "$ac_cv_prog_OBJCOPY" && break
9327 done
9328
9329 if test -z "$ac_cv_prog_OBJCOPY" ; then
9330 set dummy objcopy
9331 if test $build = $host ; then
9332 OBJCOPY="$2"
9333 else
9334 OBJCOPY="${ncn_tool_prefix}$2"
9335 fi
9336 fi
9337
9338
9339
9340 if test -n "$OBJDUMP"; then
9341 ac_cv_prog_OBJDUMP=$OBJDUMP
9342 elif test -n "$ac_cv_prog_OBJDUMP"; then
9343 OBJDUMP=$ac_cv_prog_OBJDUMP
9344 fi
9345
9346 if test -n "$ac_cv_prog_OBJDUMP"; then
9347 for ncn_progname in objdump; do
9348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9349 set dummy ${ncn_progname}; ac_word=$2
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9351 $as_echo_n "checking for $ac_word... " >&6; }
9352 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 if test -n "$OBJDUMP"; then
9356 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9357 else
9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 for as_dir in $PATH
9360 do
9361 IFS=$as_save_IFS
9362 test -z "$as_dir" && as_dir=.
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9365 ac_cv_prog_OBJDUMP="${ncn_progname}"
9366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 break 2
9368 fi
9369 done
9370 done
9371 IFS=$as_save_IFS
9372
9373 fi
9374 fi
9375 OBJDUMP=$ac_cv_prog_OBJDUMP
9376 if test -n "$OBJDUMP"; then
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9378 $as_echo "$OBJDUMP" >&6; }
9379 else
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381 $as_echo "no" >&6; }
9382 fi
9383
9384
9385 done
9386 fi
9387
9388 for ncn_progname in objdump; do
9389 if test -n "$ncn_tool_prefix"; then
9390 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9391 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9393 $as_echo_n "checking for $ac_word... " >&6; }
9394 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9395 $as_echo_n "(cached) " >&6
9396 else
9397 if test -n "$OBJDUMP"; then
9398 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9399 else
9400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9401 for as_dir in $PATH
9402 do
9403 IFS=$as_save_IFS
9404 test -z "$as_dir" && as_dir=.
9405 for ac_exec_ext in '' $ac_executable_extensions; do
9406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9407 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9409 break 2
9410 fi
9411 done
9412 done
9413 IFS=$as_save_IFS
9414
9415 fi
9416 fi
9417 OBJDUMP=$ac_cv_prog_OBJDUMP
9418 if test -n "$OBJDUMP"; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9420 $as_echo "$OBJDUMP" >&6; }
9421 else
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 $as_echo "no" >&6; }
9424 fi
9425
9426
9427 fi
9428 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9430 set dummy ${ncn_progname}; ac_word=$2
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9432 $as_echo_n "checking for $ac_word... " >&6; }
9433 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 if test -n "$OBJDUMP"; then
9437 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9438 else
9439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9440 for as_dir in $PATH
9441 do
9442 IFS=$as_save_IFS
9443 test -z "$as_dir" && as_dir=.
9444 for ac_exec_ext in '' $ac_executable_extensions; do
9445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9446 ac_cv_prog_OBJDUMP="${ncn_progname}"
9447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9448 break 2
9449 fi
9450 done
9451 done
9452 IFS=$as_save_IFS
9453
9454 fi
9455 fi
9456 OBJDUMP=$ac_cv_prog_OBJDUMP
9457 if test -n "$OBJDUMP"; then
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9459 $as_echo "$OBJDUMP" >&6; }
9460 else
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9462 $as_echo "no" >&6; }
9463 fi
9464
9465
9466 fi
9467 test -n "$ac_cv_prog_OBJDUMP" && break
9468 done
9469
9470 if test -z "$ac_cv_prog_OBJDUMP" ; then
9471 set dummy objdump
9472 if test $build = $host ; then
9473 OBJDUMP="$2"
9474 else
9475 OBJDUMP="${ncn_tool_prefix}$2"
9476 fi
9477 fi
9478
9479
9480
9481 if test -n "$READELF"; then
9482 ac_cv_prog_READELF=$READELF
9483 elif test -n "$ac_cv_prog_READELF"; then
9484 READELF=$ac_cv_prog_READELF
9485 fi
9486
9487 if test -n "$ac_cv_prog_READELF"; then
9488 for ncn_progname in readelf; do
9489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9490 set dummy ${ncn_progname}; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if test "${ac_cv_prog_READELF+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 if test -n "$READELF"; then
9497 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9498 else
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9501 do
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506 ac_cv_prog_READELF="${ncn_progname}"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9509 fi
9510 done
9511 done
9512 IFS=$as_save_IFS
9513
9514 fi
9515 fi
9516 READELF=$ac_cv_prog_READELF
9517 if test -n "$READELF"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9519 $as_echo "$READELF" >&6; }
9520 else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9523 fi
9524
9525
9526 done
9527 fi
9528
9529 for ncn_progname in readelf; do
9530 if test -n "$ncn_tool_prefix"; then
9531 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9532 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if test "${ac_cv_prog_READELF+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 if test -n "$READELF"; then
9539 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9540 else
9541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 for as_dir in $PATH
9543 do
9544 IFS=$as_save_IFS
9545 test -z "$as_dir" && as_dir=.
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9548 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 break 2
9551 fi
9552 done
9553 done
9554 IFS=$as_save_IFS
9555
9556 fi
9557 fi
9558 READELF=$ac_cv_prog_READELF
9559 if test -n "$READELF"; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9561 $as_echo "$READELF" >&6; }
9562 else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9565 fi
9566
9567
9568 fi
9569 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9571 set dummy ${ncn_progname}; ac_word=$2
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9573 $as_echo_n "checking for $ac_word... " >&6; }
9574 if test "${ac_cv_prog_READELF+set}" = set; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 if test -n "$READELF"; then
9578 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9579 else
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 for as_dir in $PATH
9582 do
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9587 ac_cv_prog_READELF="${ncn_progname}"
9588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9589 break 2
9590 fi
9591 done
9592 done
9593 IFS=$as_save_IFS
9594
9595 fi
9596 fi
9597 READELF=$ac_cv_prog_READELF
9598 if test -n "$READELF"; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9600 $as_echo "$READELF" >&6; }
9601 else
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9603 $as_echo "no" >&6; }
9604 fi
9605
9606
9607 fi
9608 test -n "$ac_cv_prog_READELF" && break
9609 done
9610
9611 if test -z "$ac_cv_prog_READELF" ; then
9612 set dummy readelf
9613 if test $build = $host ; then
9614 READELF="$2"
9615 else
9616 READELF="${ncn_tool_prefix}$2"
9617 fi
9618 fi
9619
9620
9621
9622
9623
9624
9625 # Target tools.
9626
9627 # Check whether --with-build-time-tools was given.
9628 if test "${with_build_time_tools+set}" = set; then :
9629 withval=$with_build_time_tools; case x"$withval" in
9630 x/*) ;;
9631 *)
9632 with_build_time_tools=
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9634 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9635 ;;
9636 esac
9637 else
9638 with_build_time_tools=
9639 fi
9640
9641
9642
9643
9644 if test -n "$CC_FOR_TARGET"; then
9645 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9646 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9647 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9648 fi
9649
9650 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9651 for ncn_progname in cc gcc; do
9652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9653 set dummy ${ncn_progname}; ac_word=$2
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655 $as_echo_n "checking for $ac_word... " >&6; }
9656 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 if test -n "$CC_FOR_TARGET"; then
9660 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9661 else
9662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 for as_dir in $PATH
9664 do
9665 IFS=$as_save_IFS
9666 test -z "$as_dir" && as_dir=.
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9669 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671 break 2
9672 fi
9673 done
9674 done
9675 IFS=$as_save_IFS
9676
9677 fi
9678 fi
9679 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9680 if test -n "$CC_FOR_TARGET"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9682 $as_echo "$CC_FOR_TARGET" >&6; }
9683 else
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 $as_echo "no" >&6; }
9686 fi
9687
9688
9689 done
9690 fi
9691
9692 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9693 for ncn_progname in cc gcc; do
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9695 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9696 if test -x $with_build_time_tools/${ncn_progname}; then
9697 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9699 $as_echo "yes" >&6; }
9700 break
9701 else
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703 $as_echo "no" >&6; }
9704 fi
9705 done
9706 fi
9707
9708 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9709 for ncn_progname in cc gcc; do
9710 if test -n "$ncn_target_tool_prefix"; then
9711 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9712 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714 $as_echo_n "checking for $ac_word... " >&6; }
9715 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 if test -n "$CC_FOR_TARGET"; then
9719 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9720 else
9721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722 for as_dir in $PATH
9723 do
9724 IFS=$as_save_IFS
9725 test -z "$as_dir" && as_dir=.
9726 for ac_exec_ext in '' $ac_executable_extensions; do
9727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9728 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9730 break 2
9731 fi
9732 done
9733 done
9734 IFS=$as_save_IFS
9735
9736 fi
9737 fi
9738 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9739 if test -n "$CC_FOR_TARGET"; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9741 $as_echo "$CC_FOR_TARGET" >&6; }
9742 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9745 fi
9746
9747
9748 fi
9749 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9751 set dummy ${ncn_progname}; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 if test -n "$CC_FOR_TARGET"; then
9758 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9759 else
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9762 do
9763 IFS=$as_save_IFS
9764 test -z "$as_dir" && as_dir=.
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9767 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769 break 2
9770 fi
9771 done
9772 done
9773 IFS=$as_save_IFS
9774
9775 fi
9776 fi
9777 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9778 if test -n "$CC_FOR_TARGET"; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9780 $as_echo "$CC_FOR_TARGET" >&6; }
9781 else
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9784 fi
9785
9786
9787 fi
9788 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9789 done
9790 fi
9791
9792 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9793 set dummy cc gcc
9794 if test $build = $target ; then
9795 CC_FOR_TARGET="$2"
9796 else
9797 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9798 fi
9799 else
9800 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9801 fi
9802
9803
9804
9805 if test -n "$CXX_FOR_TARGET"; then
9806 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9807 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9808 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9809 fi
9810
9811 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9812 for ncn_progname in c++ g++ cxx gxx; do
9813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9814 set dummy ${ncn_progname}; ac_word=$2
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816 $as_echo_n "checking for $ac_word... " >&6; }
9817 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 if test -n "$CXX_FOR_TARGET"; then
9821 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9822 else
9823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824 for as_dir in $PATH
9825 do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9830 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 break 2
9833 fi
9834 done
9835 done
9836 IFS=$as_save_IFS
9837
9838 fi
9839 fi
9840 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9841 if test -n "$CXX_FOR_TARGET"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9843 $as_echo "$CXX_FOR_TARGET" >&6; }
9844 else
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846 $as_echo "no" >&6; }
9847 fi
9848
9849
9850 done
9851 fi
9852
9853 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9854 for ncn_progname in c++ g++ cxx gxx; do
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9856 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9857 if test -x $with_build_time_tools/${ncn_progname}; then
9858 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9860 $as_echo "yes" >&6; }
9861 break
9862 else
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9865 fi
9866 done
9867 fi
9868
9869 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9870 for ncn_progname in c++ g++ cxx gxx; do
9871 if test -n "$ncn_target_tool_prefix"; then
9872 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9873 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9875 $as_echo_n "checking for $ac_word... " >&6; }
9876 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9879 if test -n "$CXX_FOR_TARGET"; then
9880 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9881 else
9882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883 for as_dir in $PATH
9884 do
9885 IFS=$as_save_IFS
9886 test -z "$as_dir" && as_dir=.
9887 for ac_exec_ext in '' $ac_executable_extensions; do
9888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9889 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9891 break 2
9892 fi
9893 done
9894 done
9895 IFS=$as_save_IFS
9896
9897 fi
9898 fi
9899 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9900 if test -n "$CXX_FOR_TARGET"; then
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9902 $as_echo "$CXX_FOR_TARGET" >&6; }
9903 else
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905 $as_echo "no" >&6; }
9906 fi
9907
9908
9909 fi
9910 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9912 set dummy ${ncn_progname}; ac_word=$2
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914 $as_echo_n "checking for $ac_word... " >&6; }
9915 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9916 $as_echo_n "(cached) " >&6
9917 else
9918 if test -n "$CXX_FOR_TARGET"; then
9919 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9920 else
9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 for as_dir in $PATH
9923 do
9924 IFS=$as_save_IFS
9925 test -z "$as_dir" && as_dir=.
9926 for ac_exec_ext in '' $ac_executable_extensions; do
9927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9928 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9930 break 2
9931 fi
9932 done
9933 done
9934 IFS=$as_save_IFS
9935
9936 fi
9937 fi
9938 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9939 if test -n "$CXX_FOR_TARGET"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9941 $as_echo "$CXX_FOR_TARGET" >&6; }
9942 else
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9945 fi
9946
9947
9948 fi
9949 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9950 done
9951 fi
9952
9953 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9954 set dummy c++ g++ cxx gxx
9955 if test $build = $target ; then
9956 CXX_FOR_TARGET="$2"
9957 else
9958 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9959 fi
9960 else
9961 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9962 fi
9963
9964
9965
9966 if test -n "$GCC_FOR_TARGET"; then
9967 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9968 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9969 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9970 fi
9971
9972 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9973 for ncn_progname in gcc; do
9974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9975 set dummy ${ncn_progname}; ac_word=$2
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977 $as_echo_n "checking for $ac_word... " >&6; }
9978 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 if test -n "$GCC_FOR_TARGET"; then
9982 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9983 else
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in $PATH
9986 do
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9991 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9994 fi
9995 done
9996 done
9997 IFS=$as_save_IFS
9998
9999 fi
10000 fi
10001 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10002 if test -n "$GCC_FOR_TARGET"; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10004 $as_echo "$GCC_FOR_TARGET" >&6; }
10005 else
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007 $as_echo "no" >&6; }
10008 fi
10009
10010
10011 done
10012 fi
10013
10014 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10015 for ncn_progname in gcc; do
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10017 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10018 if test -x $with_build_time_tools/${ncn_progname}; then
10019 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10021 $as_echo "yes" >&6; }
10022 break
10023 else
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10026 fi
10027 done
10028 fi
10029
10030 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10031 for ncn_progname in gcc; do
10032 if test -n "$ncn_target_tool_prefix"; then
10033 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10034 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10036 $as_echo_n "checking for $ac_word... " >&6; }
10037 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10038 $as_echo_n "(cached) " >&6
10039 else
10040 if test -n "$GCC_FOR_TARGET"; then
10041 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10042 else
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10045 do
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10050 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 break 2
10053 fi
10054 done
10055 done
10056 IFS=$as_save_IFS
10057
10058 fi
10059 fi
10060 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10061 if test -n "$GCC_FOR_TARGET"; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10063 $as_echo "$GCC_FOR_TARGET" >&6; }
10064 else
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 $as_echo "no" >&6; }
10067 fi
10068
10069
10070 fi
10071 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10073 set dummy ${ncn_progname}; ac_word=$2
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 $as_echo_n "checking for $ac_word... " >&6; }
10076 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 if test -n "$GCC_FOR_TARGET"; then
10080 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10081 else
10082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083 for as_dir in $PATH
10084 do
10085 IFS=$as_save_IFS
10086 test -z "$as_dir" && as_dir=.
10087 for ac_exec_ext in '' $ac_executable_extensions; do
10088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10089 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10091 break 2
10092 fi
10093 done
10094 done
10095 IFS=$as_save_IFS
10096
10097 fi
10098 fi
10099 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10100 if test -n "$GCC_FOR_TARGET"; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10102 $as_echo "$GCC_FOR_TARGET" >&6; }
10103 else
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105 $as_echo "no" >&6; }
10106 fi
10107
10108
10109 fi
10110 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10111 done
10112 fi
10113
10114 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10115 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10116 else
10117 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10118 fi
10119
10120
10121
10122 if test -n "$GCJ_FOR_TARGET"; then
10123 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10124 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10125 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10126 fi
10127
10128 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10129 for ncn_progname in gcj; do
10130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10131 set dummy ${ncn_progname}; ac_word=$2
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10133 $as_echo_n "checking for $ac_word... " >&6; }
10134 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
10136 else
10137 if test -n "$GCJ_FOR_TARGET"; then
10138 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10139 else
10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141 for as_dir in $PATH
10142 do
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10147 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 break 2
10150 fi
10151 done
10152 done
10153 IFS=$as_save_IFS
10154
10155 fi
10156 fi
10157 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10158 if test -n "$GCJ_FOR_TARGET"; then
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10160 $as_echo "$GCJ_FOR_TARGET" >&6; }
10161 else
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163 $as_echo "no" >&6; }
10164 fi
10165
10166
10167 done
10168 fi
10169
10170 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10171 for ncn_progname in gcj; do
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10173 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10174 if test -x $with_build_time_tools/${ncn_progname}; then
10175 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10177 $as_echo "yes" >&6; }
10178 break
10179 else
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10182 fi
10183 done
10184 fi
10185
10186 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10187 for ncn_progname in gcj; do
10188 if test -n "$ncn_target_tool_prefix"; then
10189 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10190 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192 $as_echo_n "checking for $ac_word... " >&6; }
10193 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 if test -n "$GCJ_FOR_TARGET"; then
10197 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10198 else
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10201 do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10206 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10209 fi
10210 done
10211 done
10212 IFS=$as_save_IFS
10213
10214 fi
10215 fi
10216 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10217 if test -n "$GCJ_FOR_TARGET"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10219 $as_echo "$GCJ_FOR_TARGET" >&6; }
10220 else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10223 fi
10224
10225
10226 fi
10227 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10229 set dummy ${ncn_progname}; ac_word=$2
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10231 $as_echo_n "checking for $ac_word... " >&6; }
10232 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10233 $as_echo_n "(cached) " >&6
10234 else
10235 if test -n "$GCJ_FOR_TARGET"; then
10236 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10237 else
10238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in $PATH
10240 do
10241 IFS=$as_save_IFS
10242 test -z "$as_dir" && as_dir=.
10243 for ac_exec_ext in '' $ac_executable_extensions; do
10244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10245 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247 break 2
10248 fi
10249 done
10250 done
10251 IFS=$as_save_IFS
10252
10253 fi
10254 fi
10255 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10256 if test -n "$GCJ_FOR_TARGET"; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10258 $as_echo "$GCJ_FOR_TARGET" >&6; }
10259 else
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261 $as_echo "no" >&6; }
10262 fi
10263
10264
10265 fi
10266 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10267 done
10268 fi
10269
10270 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10271 set dummy gcj
10272 if test $build = $target ; then
10273 GCJ_FOR_TARGET="$2"
10274 else
10275 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10276 fi
10277 else
10278 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10279 fi
10280
10281
10282
10283 if test -n "$GFORTRAN_FOR_TARGET"; then
10284 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10285 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10286 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10287 fi
10288
10289 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10290 for ncn_progname in gfortran; do
10291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10292 set dummy ${ncn_progname}; ac_word=$2
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294 $as_echo_n "checking for $ac_word... " >&6; }
10295 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 if test -n "$GFORTRAN_FOR_TARGET"; then
10299 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10300 else
10301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302 for as_dir in $PATH
10303 do
10304 IFS=$as_save_IFS
10305 test -z "$as_dir" && as_dir=.
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10308 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10310 break 2
10311 fi
10312 done
10313 done
10314 IFS=$as_save_IFS
10315
10316 fi
10317 fi
10318 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10319 if test -n "$GFORTRAN_FOR_TARGET"; then
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10321 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10322 else
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324 $as_echo "no" >&6; }
10325 fi
10326
10327
10328 done
10329 fi
10330
10331 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10332 for ncn_progname in gfortran; do
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10334 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10335 if test -x $with_build_time_tools/${ncn_progname}; then
10336 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10338 $as_echo "yes" >&6; }
10339 break
10340 else
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 $as_echo "no" >&6; }
10343 fi
10344 done
10345 fi
10346
10347 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10348 for ncn_progname in gfortran; do
10349 if test -n "$ncn_target_tool_prefix"; then
10350 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10351 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 if test -n "$GFORTRAN_FOR_TARGET"; then
10358 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10359 else
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10362 do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10367 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10370 fi
10371 done
10372 done
10373 IFS=$as_save_IFS
10374
10375 fi
10376 fi
10377 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10378 if test -n "$GFORTRAN_FOR_TARGET"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10380 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10381 else
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10384 fi
10385
10386
10387 fi
10388 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10390 set dummy ${ncn_progname}; ac_word=$2
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392 $as_echo_n "checking for $ac_word... " >&6; }
10393 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 if test -n "$GFORTRAN_FOR_TARGET"; then
10397 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10398 else
10399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400 for as_dir in $PATH
10401 do
10402 IFS=$as_save_IFS
10403 test -z "$as_dir" && as_dir=.
10404 for ac_exec_ext in '' $ac_executable_extensions; do
10405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10406 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10408 break 2
10409 fi
10410 done
10411 done
10412 IFS=$as_save_IFS
10413
10414 fi
10415 fi
10416 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10417 if test -n "$GFORTRAN_FOR_TARGET"; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10419 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10420 else
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422 $as_echo "no" >&6; }
10423 fi
10424
10425
10426 fi
10427 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10428 done
10429 fi
10430
10431 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10432 set dummy gfortran
10433 if test $build = $target ; then
10434 GFORTRAN_FOR_TARGET="$2"
10435 else
10436 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10437 fi
10438 else
10439 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10440 fi
10441
10442
10443
10444 if test -n "$GOC_FOR_TARGET"; then
10445 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10446 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10447 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10448 fi
10449
10450 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10451 for ncn_progname in gccgo; do
10452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10453 set dummy ${ncn_progname}; ac_word=$2
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10455 $as_echo_n "checking for $ac_word... " >&6; }
10456 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 if test -n "$GOC_FOR_TARGET"; then
10460 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10461 else
10462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463 for as_dir in $PATH
10464 do
10465 IFS=$as_save_IFS
10466 test -z "$as_dir" && as_dir=.
10467 for ac_exec_ext in '' $ac_executable_extensions; do
10468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10469 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10471 break 2
10472 fi
10473 done
10474 done
10475 IFS=$as_save_IFS
10476
10477 fi
10478 fi
10479 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10480 if test -n "$GOC_FOR_TARGET"; then
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10482 $as_echo "$GOC_FOR_TARGET" >&6; }
10483 else
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 $as_echo "no" >&6; }
10486 fi
10487
10488
10489 done
10490 fi
10491
10492 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10493 for ncn_progname in gccgo; do
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10495 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10496 if test -x $with_build_time_tools/${ncn_progname}; then
10497 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10499 $as_echo "yes" >&6; }
10500 break
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10504 fi
10505 done
10506 fi
10507
10508 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10509 for ncn_progname in gccgo; do
10510 if test -n "$ncn_target_tool_prefix"; then
10511 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10512 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10514 $as_echo_n "checking for $ac_word... " >&6; }
10515 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10516 $as_echo_n "(cached) " >&6
10517 else
10518 if test -n "$GOC_FOR_TARGET"; then
10519 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10520 else
10521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10522 for as_dir in $PATH
10523 do
10524 IFS=$as_save_IFS
10525 test -z "$as_dir" && as_dir=.
10526 for ac_exec_ext in '' $ac_executable_extensions; do
10527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10528 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10530 break 2
10531 fi
10532 done
10533 done
10534 IFS=$as_save_IFS
10535
10536 fi
10537 fi
10538 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10539 if test -n "$GOC_FOR_TARGET"; then
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10541 $as_echo "$GOC_FOR_TARGET" >&6; }
10542 else
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544 $as_echo "no" >&6; }
10545 fi
10546
10547
10548 fi
10549 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10551 set dummy ${ncn_progname}; ac_word=$2
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553 $as_echo_n "checking for $ac_word... " >&6; }
10554 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10555 $as_echo_n "(cached) " >&6
10556 else
10557 if test -n "$GOC_FOR_TARGET"; then
10558 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10559 else
10560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561 for as_dir in $PATH
10562 do
10563 IFS=$as_save_IFS
10564 test -z "$as_dir" && as_dir=.
10565 for ac_exec_ext in '' $ac_executable_extensions; do
10566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10567 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10569 break 2
10570 fi
10571 done
10572 done
10573 IFS=$as_save_IFS
10574
10575 fi
10576 fi
10577 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10578 if test -n "$GOC_FOR_TARGET"; then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10580 $as_echo "$GOC_FOR_TARGET" >&6; }
10581 else
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10584 fi
10585
10586
10587 fi
10588 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10589 done
10590 fi
10591
10592 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10593 set dummy gccgo
10594 if test $build = $target ; then
10595 GOC_FOR_TARGET="$2"
10596 else
10597 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10598 fi
10599 else
10600 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10601 fi
10602
10603
10604
10605 cat > conftest.c << \EOF
10606 #ifdef __GNUC__
10607 gcc_yay;
10608 #endif
10609 EOF
10610 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10611 have_gcc_for_target=yes
10612 else
10613 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10614 have_gcc_for_target=no
10615 fi
10616 rm conftest.c
10617
10618
10619
10620
10621 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10622 if test -n "$with_build_time_tools"; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10624 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10625 if test -x $with_build_time_tools/ar; then
10626 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10627 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10629 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10630 else
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; }
10633 fi
10634 elif test $build != $host && test $have_gcc_for_target = yes; then
10635 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10636 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10637 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10638 fi
10639 fi
10640 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10641 # Extract the first word of "ar", so it can be a program name with args.
10642 set dummy ar; ac_word=$2
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644 $as_echo_n "checking for $ac_word... " >&6; }
10645 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 case $AR_FOR_TARGET in
10649 [\\/]* | ?:[\\/]*)
10650 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10651 ;;
10652 *)
10653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654 for as_dir in $gcc_cv_tool_dirs
10655 do
10656 IFS=$as_save_IFS
10657 test -z "$as_dir" && as_dir=.
10658 for ac_exec_ext in '' $ac_executable_extensions; do
10659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10660 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10662 break 2
10663 fi
10664 done
10665 done
10666 IFS=$as_save_IFS
10667
10668 ;;
10669 esac
10670 fi
10671 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10672 if test -n "$AR_FOR_TARGET"; then
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10674 $as_echo "$AR_FOR_TARGET" >&6; }
10675 else
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10677 $as_echo "no" >&6; }
10678 fi
10679
10680
10681 fi
10682 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10683
10684
10685 if test -n "$AR_FOR_TARGET"; then
10686 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10687 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10688 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10689 fi
10690
10691 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10692 for ncn_progname in ar; do
10693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10694 set dummy ${ncn_progname}; ac_word=$2
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10696 $as_echo_n "checking for $ac_word... " >&6; }
10697 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10700 if test -n "$AR_FOR_TARGET"; then
10701 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10702 else
10703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704 for as_dir in $PATH
10705 do
10706 IFS=$as_save_IFS
10707 test -z "$as_dir" && as_dir=.
10708 for ac_exec_ext in '' $ac_executable_extensions; do
10709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10710 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10712 break 2
10713 fi
10714 done
10715 done
10716 IFS=$as_save_IFS
10717
10718 fi
10719 fi
10720 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10721 if test -n "$AR_FOR_TARGET"; then
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10723 $as_echo "$AR_FOR_TARGET" >&6; }
10724 else
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726 $as_echo "no" >&6; }
10727 fi
10728
10729
10730 done
10731 fi
10732
10733 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10734 for ncn_progname in ar; do
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10736 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10737 if test -x $with_build_time_tools/${ncn_progname}; then
10738 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10740 $as_echo "yes" >&6; }
10741 break
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; }
10745 fi
10746 done
10747 fi
10748
10749 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10750 for ncn_progname in ar; do
10751 if test -n "$ncn_target_tool_prefix"; then
10752 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10753 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10755 $as_echo_n "checking for $ac_word... " >&6; }
10756 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 if test -n "$AR_FOR_TARGET"; then
10760 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10761 else
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in $PATH
10764 do
10765 IFS=$as_save_IFS
10766 test -z "$as_dir" && as_dir=.
10767 for ac_exec_ext in '' $ac_executable_extensions; do
10768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10769 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10771 break 2
10772 fi
10773 done
10774 done
10775 IFS=$as_save_IFS
10776
10777 fi
10778 fi
10779 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10780 if test -n "$AR_FOR_TARGET"; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10782 $as_echo "$AR_FOR_TARGET" >&6; }
10783 else
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }
10786 fi
10787
10788
10789 fi
10790 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10792 set dummy ${ncn_progname}; ac_word=$2
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10794 $as_echo_n "checking for $ac_word... " >&6; }
10795 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10798 if test -n "$AR_FOR_TARGET"; then
10799 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10800 else
10801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802 for as_dir in $PATH
10803 do
10804 IFS=$as_save_IFS
10805 test -z "$as_dir" && as_dir=.
10806 for ac_exec_ext in '' $ac_executable_extensions; do
10807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10808 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10810 break 2
10811 fi
10812 done
10813 done
10814 IFS=$as_save_IFS
10815
10816 fi
10817 fi
10818 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10819 if test -n "$AR_FOR_TARGET"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10821 $as_echo "$AR_FOR_TARGET" >&6; }
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10825 fi
10826
10827
10828 fi
10829 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10830 done
10831 fi
10832
10833 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10834 set dummy ar
10835 if test $build = $target ; then
10836 AR_FOR_TARGET="$2"
10837 else
10838 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10839 fi
10840 else
10841 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10842 fi
10843
10844 else
10845 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10846 fi
10847
10848
10849
10850
10851 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10852 if test -n "$with_build_time_tools"; then
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10854 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10855 if test -x $with_build_time_tools/as; then
10856 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10857 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10859 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10860 else
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10863 fi
10864 elif test $build != $host && test $have_gcc_for_target = yes; then
10865 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10866 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10867 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10868 fi
10869 fi
10870 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10871 # Extract the first word of "as", so it can be a program name with args.
10872 set dummy as; ac_word=$2
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10874 $as_echo_n "checking for $ac_word... " >&6; }
10875 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 case $AS_FOR_TARGET in
10879 [\\/]* | ?:[\\/]*)
10880 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10881 ;;
10882 *)
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in $gcc_cv_tool_dirs
10885 do
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10890 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10893 fi
10894 done
10895 done
10896 IFS=$as_save_IFS
10897
10898 ;;
10899 esac
10900 fi
10901 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10902 if test -n "$AS_FOR_TARGET"; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10904 $as_echo "$AS_FOR_TARGET" >&6; }
10905 else
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10908 fi
10909
10910
10911 fi
10912 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10913
10914
10915 if test -n "$AS_FOR_TARGET"; then
10916 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10917 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10918 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10919 fi
10920
10921 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10922 for ncn_progname in as; do
10923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10924 set dummy ${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_AS_FOR_TARGET+set}" = set; then :
10928 $as_echo_n "(cached) " >&6
10929 else
10930 if test -n "$AS_FOR_TARGET"; then
10931 ac_cv_prog_AS_FOR_TARGET="$AS_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_AS_FOR_TARGET="${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 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10951 if test -n "$AS_FOR_TARGET"; then
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10953 $as_echo "$AS_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 done
10961 fi
10962
10963 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10964 for ncn_progname in as; do
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10966 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10967 if test -x $with_build_time_tools/${ncn_progname}; then
10968 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10970 $as_echo "yes" >&6; }
10971 break
10972 else
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974 $as_echo "no" >&6; }
10975 fi
10976 done
10977 fi
10978
10979 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10980 for ncn_progname in as; do
10981 if test -n "$ncn_target_tool_prefix"; then
10982 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10983 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985 $as_echo_n "checking for $ac_word... " >&6; }
10986 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 if test -n "$AS_FOR_TARGET"; then
10990 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10991 else
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993 for as_dir in $PATH
10994 do
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
10997 for ac_exec_ext in '' $ac_executable_extensions; do
10998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10999 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11001 break 2
11002 fi
11003 done
11004 done
11005 IFS=$as_save_IFS
11006
11007 fi
11008 fi
11009 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11010 if test -n "$AS_FOR_TARGET"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11012 $as_echo "$AS_FOR_TARGET" >&6; }
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015 $as_echo "no" >&6; }
11016 fi
11017
11018
11019 fi
11020 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11022 set dummy ${ncn_progname}; ac_word=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024 $as_echo_n "checking for $ac_word... " >&6; }
11025 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 if test -n "$AS_FOR_TARGET"; then
11029 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11030 else
11031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032 for as_dir in $PATH
11033 do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11038 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11041 fi
11042 done
11043 done
11044 IFS=$as_save_IFS
11045
11046 fi
11047 fi
11048 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11049 if test -n "$AS_FOR_TARGET"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11051 $as_echo "$AS_FOR_TARGET" >&6; }
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11055 fi
11056
11057
11058 fi
11059 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11060 done
11061 fi
11062
11063 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11064 set dummy as
11065 if test $build = $target ; then
11066 AS_FOR_TARGET="$2"
11067 else
11068 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11069 fi
11070 else
11071 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11072 fi
11073
11074 else
11075 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11076 fi
11077
11078
11079
11080
11081 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11082 if test -n "$with_build_time_tools"; then
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11084 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11085 if test -x $with_build_time_tools/dlltool; then
11086 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11087 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11089 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11090 else
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 $as_echo "no" >&6; }
11093 fi
11094 elif test $build != $host && test $have_gcc_for_target = yes; then
11095 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11096 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11097 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11098 fi
11099 fi
11100 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11101 # Extract the first word of "dlltool", so it can be a program name with args.
11102 set dummy dlltool; ac_word=$2
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 case $DLLTOOL_FOR_TARGET in
11109 [\\/]* | ?:[\\/]*)
11110 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11111 ;;
11112 *)
11113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114 for as_dir in $gcc_cv_tool_dirs
11115 do
11116 IFS=$as_save_IFS
11117 test -z "$as_dir" && as_dir=.
11118 for ac_exec_ext in '' $ac_executable_extensions; do
11119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11120 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122 break 2
11123 fi
11124 done
11125 done
11126 IFS=$as_save_IFS
11127
11128 ;;
11129 esac
11130 fi
11131 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11132 if test -n "$DLLTOOL_FOR_TARGET"; then
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11134 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11135 else
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11138 fi
11139
11140
11141 fi
11142 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11143
11144
11145 if test -n "$DLLTOOL_FOR_TARGET"; then
11146 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11147 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11148 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11149 fi
11150
11151 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11152 for ncn_progname in dlltool; do
11153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11154 set dummy ${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_DLLTOOL_FOR_TARGET+set}" = set; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 if test -n "$DLLTOOL_FOR_TARGET"; then
11161 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_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_DLLTOOL_FOR_TARGET="${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 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11181 if test -n "$DLLTOOL_FOR_TARGET"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11183 $as_echo "$DLLTOOL_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 done
11191 fi
11192
11193 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11194 for ncn_progname in dlltool; do
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11196 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11197 if test -x $with_build_time_tools/${ncn_progname}; then
11198 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11200 $as_echo "yes" >&6; }
11201 break
11202 else
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11204 $as_echo "no" >&6; }
11205 fi
11206 done
11207 fi
11208
11209 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11210 for ncn_progname in dlltool; do
11211 if test -n "$ncn_target_tool_prefix"; then
11212 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11213 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11215 $as_echo_n "checking for $ac_word... " >&6; }
11216 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 if test -n "$DLLTOOL_FOR_TARGET"; then
11220 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11221 else
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH
11224 do
11225 IFS=$as_save_IFS
11226 test -z "$as_dir" && as_dir=.
11227 for ac_exec_ext in '' $ac_executable_extensions; do
11228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11229 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11231 break 2
11232 fi
11233 done
11234 done
11235 IFS=$as_save_IFS
11236
11237 fi
11238 fi
11239 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11240 if test -n "$DLLTOOL_FOR_TARGET"; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11242 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11243 else
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245 $as_echo "no" >&6; }
11246 fi
11247
11248
11249 fi
11250 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11252 set dummy ${ncn_progname}; ac_word=$2
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11254 $as_echo_n "checking for $ac_word... " >&6; }
11255 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11256 $as_echo_n "(cached) " >&6
11257 else
11258 if test -n "$DLLTOOL_FOR_TARGET"; then
11259 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11260 else
11261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262 for as_dir in $PATH
11263 do
11264 IFS=$as_save_IFS
11265 test -z "$as_dir" && as_dir=.
11266 for ac_exec_ext in '' $ac_executable_extensions; do
11267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11268 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11270 break 2
11271 fi
11272 done
11273 done
11274 IFS=$as_save_IFS
11275
11276 fi
11277 fi
11278 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11279 if test -n "$DLLTOOL_FOR_TARGET"; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11281 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11282 else
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11284 $as_echo "no" >&6; }
11285 fi
11286
11287
11288 fi
11289 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11290 done
11291 fi
11292
11293 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11294 set dummy dlltool
11295 if test $build = $target ; then
11296 DLLTOOL_FOR_TARGET="$2"
11297 else
11298 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11299 fi
11300 else
11301 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11302 fi
11303
11304 else
11305 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11306 fi
11307
11308
11309
11310
11311 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11312 if test -n "$with_build_time_tools"; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11314 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11315 if test -x $with_build_time_tools/ld; then
11316 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11317 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11319 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11320 else
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 $as_echo "no" >&6; }
11323 fi
11324 elif test $build != $host && test $have_gcc_for_target = yes; then
11325 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11326 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11327 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11328 fi
11329 fi
11330 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11331 # Extract the first word of "ld", so it can be a program name with args.
11332 set dummy ld; ac_word=$2
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11334 $as_echo_n "checking for $ac_word... " >&6; }
11335 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11338 case $LD_FOR_TARGET in
11339 [\\/]* | ?:[\\/]*)
11340 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11341 ;;
11342 *)
11343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11344 for as_dir in $gcc_cv_tool_dirs
11345 do
11346 IFS=$as_save_IFS
11347 test -z "$as_dir" && as_dir=.
11348 for ac_exec_ext in '' $ac_executable_extensions; do
11349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11350 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11352 break 2
11353 fi
11354 done
11355 done
11356 IFS=$as_save_IFS
11357
11358 ;;
11359 esac
11360 fi
11361 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11362 if test -n "$LD_FOR_TARGET"; then
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11364 $as_echo "$LD_FOR_TARGET" >&6; }
11365 else
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11368 fi
11369
11370
11371 fi
11372 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11373
11374
11375 if test -n "$LD_FOR_TARGET"; then
11376 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11377 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11378 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11379 fi
11380
11381 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11382 for ncn_progname in ld; do
11383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11384 set dummy ${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_LD_FOR_TARGET+set}" = set; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 if test -n "$LD_FOR_TARGET"; then
11391 ac_cv_prog_LD_FOR_TARGET="$LD_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_LD_FOR_TARGET="${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 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11411 if test -n "$LD_FOR_TARGET"; then
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11413 $as_echo "$LD_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 done
11421 fi
11422
11423 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11424 for ncn_progname in ld; do
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11426 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11427 if test -x $with_build_time_tools/${ncn_progname}; then
11428 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11430 $as_echo "yes" >&6; }
11431 break
11432 else
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434 $as_echo "no" >&6; }
11435 fi
11436 done
11437 fi
11438
11439 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11440 for ncn_progname in ld; do
11441 if test -n "$ncn_target_tool_prefix"; then
11442 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11443 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11445 $as_echo_n "checking for $ac_word... " >&6; }
11446 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 if test -n "$LD_FOR_TARGET"; then
11450 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11451 else
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11454 do
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11459 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 break 2
11462 fi
11463 done
11464 done
11465 IFS=$as_save_IFS
11466
11467 fi
11468 fi
11469 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11470 if test -n "$LD_FOR_TARGET"; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11472 $as_echo "$LD_FOR_TARGET" >&6; }
11473 else
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11476 fi
11477
11478
11479 fi
11480 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11482 set dummy ${ncn_progname}; ac_word=$2
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11484 $as_echo_n "checking for $ac_word... " >&6; }
11485 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 if test -n "$LD_FOR_TARGET"; then
11489 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11490 else
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in $PATH
11493 do
11494 IFS=$as_save_IFS
11495 test -z "$as_dir" && as_dir=.
11496 for ac_exec_ext in '' $ac_executable_extensions; do
11497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11498 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11500 break 2
11501 fi
11502 done
11503 done
11504 IFS=$as_save_IFS
11505
11506 fi
11507 fi
11508 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11509 if test -n "$LD_FOR_TARGET"; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11511 $as_echo "$LD_FOR_TARGET" >&6; }
11512 else
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11515 fi
11516
11517
11518 fi
11519 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11520 done
11521 fi
11522
11523 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11524 set dummy ld
11525 if test $build = $target ; then
11526 LD_FOR_TARGET="$2"
11527 else
11528 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11529 fi
11530 else
11531 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11532 fi
11533
11534 else
11535 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11536 fi
11537
11538
11539
11540
11541 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11542 if test -n "$with_build_time_tools"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11544 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11545 if test -x $with_build_time_tools/lipo; then
11546 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11547 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11549 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11550 else
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11552 $as_echo "no" >&6; }
11553 fi
11554 elif test $build != $host && test $have_gcc_for_target = yes; then
11555 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11556 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11557 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11558 fi
11559 fi
11560 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11561 # Extract the first word of "lipo", so it can be a program name with args.
11562 set dummy lipo; ac_word=$2
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11564 $as_echo_n "checking for $ac_word... " >&6; }
11565 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11568 case $LIPO_FOR_TARGET in
11569 [\\/]* | ?:[\\/]*)
11570 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11571 ;;
11572 *)
11573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $gcc_cv_tool_dirs
11575 do
11576 IFS=$as_save_IFS
11577 test -z "$as_dir" && as_dir=.
11578 for ac_exec_ext in '' $ac_executable_extensions; do
11579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11580 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11582 break 2
11583 fi
11584 done
11585 done
11586 IFS=$as_save_IFS
11587
11588 ;;
11589 esac
11590 fi
11591 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11592 if test -n "$LIPO_FOR_TARGET"; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11594 $as_echo "$LIPO_FOR_TARGET" >&6; }
11595 else
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; }
11598 fi
11599
11600
11601 fi
11602 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11603
11604
11605 if test -n "$LIPO_FOR_TARGET"; then
11606 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11607 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11608 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11609 fi
11610
11611 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11612 for ncn_progname in lipo; do
11613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11614 set dummy ${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_LIPO_FOR_TARGET+set}" = set; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 if test -n "$LIPO_FOR_TARGET"; then
11621 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_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_LIPO_FOR_TARGET="${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 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11641 if test -n "$LIPO_FOR_TARGET"; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11643 $as_echo "$LIPO_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 done
11651 fi
11652
11653 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11654 for ncn_progname in lipo; do
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11656 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11657 if test -x $with_build_time_tools/${ncn_progname}; then
11658 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11660 $as_echo "yes" >&6; }
11661 break
11662 else
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11665 fi
11666 done
11667 fi
11668
11669 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11670 for ncn_progname in lipo; do
11671 if test -n "$ncn_target_tool_prefix"; then
11672 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11673 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11675 $as_echo_n "checking for $ac_word... " >&6; }
11676 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 if test -n "$LIPO_FOR_TARGET"; then
11680 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11681 else
11682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683 for as_dir in $PATH
11684 do
11685 IFS=$as_save_IFS
11686 test -z "$as_dir" && as_dir=.
11687 for ac_exec_ext in '' $ac_executable_extensions; do
11688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11689 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 break 2
11692 fi
11693 done
11694 done
11695 IFS=$as_save_IFS
11696
11697 fi
11698 fi
11699 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11700 if test -n "$LIPO_FOR_TARGET"; then
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11702 $as_echo "$LIPO_FOR_TARGET" >&6; }
11703 else
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705 $as_echo "no" >&6; }
11706 fi
11707
11708
11709 fi
11710 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11712 set dummy ${ncn_progname}; ac_word=$2
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11714 $as_echo_n "checking for $ac_word... " >&6; }
11715 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 if test -n "$LIPO_FOR_TARGET"; then
11719 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11720 else
11721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722 for as_dir in $PATH
11723 do
11724 IFS=$as_save_IFS
11725 test -z "$as_dir" && as_dir=.
11726 for ac_exec_ext in '' $ac_executable_extensions; do
11727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11728 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 break 2
11731 fi
11732 done
11733 done
11734 IFS=$as_save_IFS
11735
11736 fi
11737 fi
11738 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11739 if test -n "$LIPO_FOR_TARGET"; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11741 $as_echo "$LIPO_FOR_TARGET" >&6; }
11742 else
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11745 fi
11746
11747
11748 fi
11749 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11750 done
11751 fi
11752
11753 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11754 set dummy lipo
11755 if test $build = $target ; then
11756 LIPO_FOR_TARGET="$2"
11757 else
11758 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11759 fi
11760 else
11761 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11762 fi
11763
11764 else
11765 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11766 fi
11767
11768
11769
11770
11771 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11772 if test -n "$with_build_time_tools"; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11774 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11775 if test -x $with_build_time_tools/nm; then
11776 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11777 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11779 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11780 else
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782 $as_echo "no" >&6; }
11783 fi
11784 elif test $build != $host && test $have_gcc_for_target = yes; then
11785 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11786 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11787 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11788 fi
11789 fi
11790 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11791 # Extract the first word of "nm", so it can be a program name with args.
11792 set dummy nm; ac_word=$2
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11794 $as_echo_n "checking for $ac_word... " >&6; }
11795 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11796 $as_echo_n "(cached) " >&6
11797 else
11798 case $NM_FOR_TARGET in
11799 [\\/]* | ?:[\\/]*)
11800 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11801 ;;
11802 *)
11803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11804 for as_dir in $gcc_cv_tool_dirs
11805 do
11806 IFS=$as_save_IFS
11807 test -z "$as_dir" && as_dir=.
11808 for ac_exec_ext in '' $ac_executable_extensions; do
11809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11810 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11812 break 2
11813 fi
11814 done
11815 done
11816 IFS=$as_save_IFS
11817
11818 ;;
11819 esac
11820 fi
11821 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11822 if test -n "$NM_FOR_TARGET"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11824 $as_echo "$NM_FOR_TARGET" >&6; }
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11828 fi
11829
11830
11831 fi
11832 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11833
11834
11835 if test -n "$NM_FOR_TARGET"; then
11836 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11837 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11838 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11839 fi
11840
11841 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11842 for ncn_progname in nm; do
11843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11844 set dummy ${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_NM_FOR_TARGET+set}" = set; then :
11848 $as_echo_n "(cached) " >&6
11849 else
11850 if test -n "$NM_FOR_TARGET"; then
11851 ac_cv_prog_NM_FOR_TARGET="$NM_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_NM_FOR_TARGET="${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 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11871 if test -n "$NM_FOR_TARGET"; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11873 $as_echo "$NM_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 done
11881 fi
11882
11883 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11884 for ncn_progname in nm; do
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11886 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11887 if test -x $with_build_time_tools/${ncn_progname}; then
11888 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11890 $as_echo "yes" >&6; }
11891 break
11892 else
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894 $as_echo "no" >&6; }
11895 fi
11896 done
11897 fi
11898
11899 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11900 for ncn_progname in nm; do
11901 if test -n "$ncn_target_tool_prefix"; then
11902 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11903 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11905 $as_echo_n "checking for $ac_word... " >&6; }
11906 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11907 $as_echo_n "(cached) " >&6
11908 else
11909 if test -n "$NM_FOR_TARGET"; then
11910 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11911 else
11912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913 for as_dir in $PATH
11914 do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11919 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 break 2
11922 fi
11923 done
11924 done
11925 IFS=$as_save_IFS
11926
11927 fi
11928 fi
11929 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11930 if test -n "$NM_FOR_TARGET"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11932 $as_echo "$NM_FOR_TARGET" >&6; }
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11936 fi
11937
11938
11939 fi
11940 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11942 set dummy ${ncn_progname}; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 if test -n "$NM_FOR_TARGET"; then
11949 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11950 else
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11953 do
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960 break 2
11961 fi
11962 done
11963 done
11964 IFS=$as_save_IFS
11965
11966 fi
11967 fi
11968 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11969 if test -n "$NM_FOR_TARGET"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11971 $as_echo "$NM_FOR_TARGET" >&6; }
11972 else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11975 fi
11976
11977
11978 fi
11979 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11980 done
11981 fi
11982
11983 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11984 set dummy nm
11985 if test $build = $target ; then
11986 NM_FOR_TARGET="$2"
11987 else
11988 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11989 fi
11990 else
11991 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11992 fi
11993
11994 else
11995 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11996 fi
11997
11998
11999
12000
12001 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12002 if test -n "$with_build_time_tools"; then
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12004 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12005 if test -x $with_build_time_tools/objdump; then
12006 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12007 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12009 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12010 else
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12013 fi
12014 elif test $build != $host && test $have_gcc_for_target = yes; then
12015 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12016 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12017 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12018 fi
12019 fi
12020 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12021 # Extract the first word of "objdump", so it can be a program name with args.
12022 set dummy objdump; ac_word=$2
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12024 $as_echo_n "checking for $ac_word... " >&6; }
12025 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12026 $as_echo_n "(cached) " >&6
12027 else
12028 case $OBJDUMP_FOR_TARGET in
12029 [\\/]* | ?:[\\/]*)
12030 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12031 ;;
12032 *)
12033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12034 for as_dir in $gcc_cv_tool_dirs
12035 do
12036 IFS=$as_save_IFS
12037 test -z "$as_dir" && as_dir=.
12038 for ac_exec_ext in '' $ac_executable_extensions; do
12039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12040 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12042 break 2
12043 fi
12044 done
12045 done
12046 IFS=$as_save_IFS
12047
12048 ;;
12049 esac
12050 fi
12051 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12052 if test -n "$OBJDUMP_FOR_TARGET"; then
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12054 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12055 else
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057 $as_echo "no" >&6; }
12058 fi
12059
12060
12061 fi
12062 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12063
12064
12065 if test -n "$OBJDUMP_FOR_TARGET"; then
12066 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12067 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12068 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12069 fi
12070
12071 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12072 for ncn_progname in objdump; do
12073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12074 set dummy ${ncn_progname}; ac_word=$2
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12076 $as_echo_n "checking for $ac_word... " >&6; }
12077 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12078 $as_echo_n "(cached) " >&6
12079 else
12080 if test -n "$OBJDUMP_FOR_TARGET"; then
12081 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_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_OBJDUMP_FOR_TARGET="${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 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12101 if test -n "$OBJDUMP_FOR_TARGET"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12103 $as_echo "$OBJDUMP_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 done
12111 fi
12112
12113 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12114 for ncn_progname in objdump; do
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12116 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12117 if test -x $with_build_time_tools/${ncn_progname}; then
12118 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12120 $as_echo "yes" >&6; }
12121 break
12122 else
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12125 fi
12126 done
12127 fi
12128
12129 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12130 for ncn_progname in objdump; do
12131 if test -n "$ncn_target_tool_prefix"; then
12132 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12133 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12135 $as_echo_n "checking for $ac_word... " >&6; }
12136 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12137 $as_echo_n "(cached) " >&6
12138 else
12139 if test -n "$OBJDUMP_FOR_TARGET"; then
12140 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12141 else
12142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12143 for as_dir in $PATH
12144 do
12145 IFS=$as_save_IFS
12146 test -z "$as_dir" && as_dir=.
12147 for ac_exec_ext in '' $ac_executable_extensions; do
12148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12149 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12151 break 2
12152 fi
12153 done
12154 done
12155 IFS=$as_save_IFS
12156
12157 fi
12158 fi
12159 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12160 if test -n "$OBJDUMP_FOR_TARGET"; then
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12162 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12163 else
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12165 $as_echo "no" >&6; }
12166 fi
12167
12168
12169 fi
12170 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12172 set dummy ${ncn_progname}; ac_word=$2
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12174 $as_echo_n "checking for $ac_word... " >&6; }
12175 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 if test -n "$OBJDUMP_FOR_TARGET"; then
12179 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12180 else
12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182 for as_dir in $PATH
12183 do
12184 IFS=$as_save_IFS
12185 test -z "$as_dir" && as_dir=.
12186 for ac_exec_ext in '' $ac_executable_extensions; do
12187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12188 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12190 break 2
12191 fi
12192 done
12193 done
12194 IFS=$as_save_IFS
12195
12196 fi
12197 fi
12198 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12199 if test -n "$OBJDUMP_FOR_TARGET"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12201 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12202 else
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12205 fi
12206
12207
12208 fi
12209 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12210 done
12211 fi
12212
12213 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12214 set dummy objdump
12215 if test $build = $target ; then
12216 OBJDUMP_FOR_TARGET="$2"
12217 else
12218 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12219 fi
12220 else
12221 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12222 fi
12223
12224 else
12225 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12226 fi
12227
12228
12229
12230
12231 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12232 if test -n "$with_build_time_tools"; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12234 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12235 if test -x $with_build_time_tools/ranlib; then
12236 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12237 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12239 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12240 else
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242 $as_echo "no" >&6; }
12243 fi
12244 elif test $build != $host && test $have_gcc_for_target = yes; then
12245 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12246 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12247 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12248 fi
12249 fi
12250 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12251 # Extract the first word of "ranlib", so it can be a program name with args.
12252 set dummy ranlib; ac_word=$2
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12254 $as_echo_n "checking for $ac_word... " >&6; }
12255 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12256 $as_echo_n "(cached) " >&6
12257 else
12258 case $RANLIB_FOR_TARGET in
12259 [\\/]* | ?:[\\/]*)
12260 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12261 ;;
12262 *)
12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264 for as_dir in $gcc_cv_tool_dirs
12265 do
12266 IFS=$as_save_IFS
12267 test -z "$as_dir" && as_dir=.
12268 for ac_exec_ext in '' $ac_executable_extensions; do
12269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12270 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12272 break 2
12273 fi
12274 done
12275 done
12276 IFS=$as_save_IFS
12277
12278 ;;
12279 esac
12280 fi
12281 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12282 if test -n "$RANLIB_FOR_TARGET"; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12284 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12285 else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12288 fi
12289
12290
12291 fi
12292 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12293
12294
12295 if test -n "$RANLIB_FOR_TARGET"; then
12296 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12297 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12298 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12299 fi
12300
12301 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12302 for ncn_progname in ranlib; do
12303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12304 set dummy ${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_RANLIB_FOR_TARGET+set}" = set; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 if test -n "$RANLIB_FOR_TARGET"; then
12311 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_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_RANLIB_FOR_TARGET="${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 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12331 if test -n "$RANLIB_FOR_TARGET"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12333 $as_echo "$RANLIB_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 done
12341 fi
12342
12343 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12344 for ncn_progname in ranlib; do
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12346 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12347 if test -x $with_build_time_tools/${ncn_progname}; then
12348 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12350 $as_echo "yes" >&6; }
12351 break
12352 else
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12355 fi
12356 done
12357 fi
12358
12359 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12360 for ncn_progname in ranlib; do
12361 if test -n "$ncn_target_tool_prefix"; then
12362 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12363 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365 $as_echo_n "checking for $ac_word... " >&6; }
12366 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 if test -n "$RANLIB_FOR_TARGET"; then
12370 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12371 else
12372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12373 for as_dir in $PATH
12374 do
12375 IFS=$as_save_IFS
12376 test -z "$as_dir" && as_dir=.
12377 for ac_exec_ext in '' $ac_executable_extensions; do
12378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12379 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12381 break 2
12382 fi
12383 done
12384 done
12385 IFS=$as_save_IFS
12386
12387 fi
12388 fi
12389 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12390 if test -n "$RANLIB_FOR_TARGET"; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12392 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12393 else
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12396 fi
12397
12398
12399 fi
12400 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12402 set dummy ${ncn_progname}; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 if test -n "$RANLIB_FOR_TARGET"; then
12409 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12410 else
12411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412 for as_dir in $PATH
12413 do
12414 IFS=$as_save_IFS
12415 test -z "$as_dir" && as_dir=.
12416 for ac_exec_ext in '' $ac_executable_extensions; do
12417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12418 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12420 break 2
12421 fi
12422 done
12423 done
12424 IFS=$as_save_IFS
12425
12426 fi
12427 fi
12428 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12429 if test -n "$RANLIB_FOR_TARGET"; then
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12431 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12432 else
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434 $as_echo "no" >&6; }
12435 fi
12436
12437
12438 fi
12439 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12440 done
12441 fi
12442
12443 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12444 set dummy ranlib
12445 if test $build = $target ; then
12446 RANLIB_FOR_TARGET="$2"
12447 else
12448 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12449 fi
12450 else
12451 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12452 fi
12453
12454 else
12455 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12456 fi
12457
12458
12459
12460
12461 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12462 if test -n "$with_build_time_tools"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12464 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12465 if test -x $with_build_time_tools/readelf; then
12466 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12467 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12469 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12470 else
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12473 fi
12474 elif test $build != $host && test $have_gcc_for_target = yes; then
12475 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12476 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12477 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12478 fi
12479 fi
12480 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12481 # Extract the first word of "readelf", so it can be a program name with args.
12482 set dummy readelf; ac_word=$2
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12484 $as_echo_n "checking for $ac_word... " >&6; }
12485 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12486 $as_echo_n "(cached) " >&6
12487 else
12488 case $READELF_FOR_TARGET in
12489 [\\/]* | ?:[\\/]*)
12490 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12491 ;;
12492 *)
12493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494 for as_dir in $gcc_cv_tool_dirs
12495 do
12496 IFS=$as_save_IFS
12497 test -z "$as_dir" && as_dir=.
12498 for ac_exec_ext in '' $ac_executable_extensions; do
12499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12500 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12502 break 2
12503 fi
12504 done
12505 done
12506 IFS=$as_save_IFS
12507
12508 ;;
12509 esac
12510 fi
12511 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12512 if test -n "$READELF_FOR_TARGET"; then
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12514 $as_echo "$READELF_FOR_TARGET" >&6; }
12515 else
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12518 fi
12519
12520
12521 fi
12522 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12523
12524
12525 if test -n "$READELF_FOR_TARGET"; then
12526 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12527 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12528 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12529 fi
12530
12531 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12532 for ncn_progname in readelf; do
12533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12534 set dummy ${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_READELF_FOR_TARGET+set}" = set; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12540 if test -n "$READELF_FOR_TARGET"; then
12541 ac_cv_prog_READELF_FOR_TARGET="$READELF_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_READELF_FOR_TARGET="${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 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12561 if test -n "$READELF_FOR_TARGET"; then
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12563 $as_echo "$READELF_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 done
12571 fi
12572
12573 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12574 for ncn_progname in readelf; do
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12576 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12577 if test -x $with_build_time_tools/${ncn_progname}; then
12578 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12580 $as_echo "yes" >&6; }
12581 break
12582 else
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584 $as_echo "no" >&6; }
12585 fi
12586 done
12587 fi
12588
12589 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12590 for ncn_progname in readelf; do
12591 if test -n "$ncn_target_tool_prefix"; then
12592 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12593 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 $as_echo_n "checking for $ac_word... " >&6; }
12596 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 if test -n "$READELF_FOR_TARGET"; then
12600 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12601 else
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12604 do
12605 IFS=$as_save_IFS
12606 test -z "$as_dir" && as_dir=.
12607 for ac_exec_ext in '' $ac_executable_extensions; do
12608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12609 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12611 break 2
12612 fi
12613 done
12614 done
12615 IFS=$as_save_IFS
12616
12617 fi
12618 fi
12619 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12620 if test -n "$READELF_FOR_TARGET"; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12622 $as_echo "$READELF_FOR_TARGET" >&6; }
12623 else
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626 fi
12627
12628
12629 fi
12630 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12632 set dummy ${ncn_progname}; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 if test -n "$READELF_FOR_TARGET"; then
12639 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12640 else
12641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12642 for as_dir in $PATH
12643 do
12644 IFS=$as_save_IFS
12645 test -z "$as_dir" && as_dir=.
12646 for ac_exec_ext in '' $ac_executable_extensions; do
12647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12648 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12650 break 2
12651 fi
12652 done
12653 done
12654 IFS=$as_save_IFS
12655
12656 fi
12657 fi
12658 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12659 if test -n "$READELF_FOR_TARGET"; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12661 $as_echo "$READELF_FOR_TARGET" >&6; }
12662 else
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664 $as_echo "no" >&6; }
12665 fi
12666
12667
12668 fi
12669 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12670 done
12671 fi
12672
12673 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12674 set dummy readelf
12675 if test $build = $target ; then
12676 READELF_FOR_TARGET="$2"
12677 else
12678 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12679 fi
12680 else
12681 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12682 fi
12683
12684 else
12685 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12686 fi
12687
12688
12689
12690
12691 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12692 if test -n "$with_build_time_tools"; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12694 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12695 if test -x $with_build_time_tools/strip; then
12696 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12697 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12699 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12700 else
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702 $as_echo "no" >&6; }
12703 fi
12704 elif test $build != $host && test $have_gcc_for_target = yes; then
12705 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12706 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12707 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12708 fi
12709 fi
12710 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12711 # Extract the first word of "strip", so it can be a program name with args.
12712 set dummy strip; ac_word=$2
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12714 $as_echo_n "checking for $ac_word... " >&6; }
12715 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 case $STRIP_FOR_TARGET in
12719 [\\/]* | ?:[\\/]*)
12720 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12721 ;;
12722 *)
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $gcc_cv_tool_dirs
12725 do
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12730 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12733 fi
12734 done
12735 done
12736 IFS=$as_save_IFS
12737
12738 ;;
12739 esac
12740 fi
12741 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12742 if test -n "$STRIP_FOR_TARGET"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12744 $as_echo "$STRIP_FOR_TARGET" >&6; }
12745 else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747 $as_echo "no" >&6; }
12748 fi
12749
12750
12751 fi
12752 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12753
12754
12755 if test -n "$STRIP_FOR_TARGET"; then
12756 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12757 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12758 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12759 fi
12760
12761 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12762 for ncn_progname in strip; do
12763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12764 set dummy ${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_STRIP_FOR_TARGET+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 if test -n "$STRIP_FOR_TARGET"; then
12771 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_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_STRIP_FOR_TARGET="${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 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12791 if test -n "$STRIP_FOR_TARGET"; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12793 $as_echo "$STRIP_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 done
12801 fi
12802
12803 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12804 for ncn_progname in strip; do
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12806 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12807 if test -x $with_build_time_tools/${ncn_progname}; then
12808 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12810 $as_echo "yes" >&6; }
12811 break
12812 else
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12815 fi
12816 done
12817 fi
12818
12819 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12820 for ncn_progname in strip; do
12821 if test -n "$ncn_target_tool_prefix"; then
12822 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12823 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12825 $as_echo_n "checking for $ac_word... " >&6; }
12826 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12827 $as_echo_n "(cached) " >&6
12828 else
12829 if test -n "$STRIP_FOR_TARGET"; then
12830 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12831 else
12832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12833 for as_dir in $PATH
12834 do
12835 IFS=$as_save_IFS
12836 test -z "$as_dir" && as_dir=.
12837 for ac_exec_ext in '' $ac_executable_extensions; do
12838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12839 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12841 break 2
12842 fi
12843 done
12844 done
12845 IFS=$as_save_IFS
12846
12847 fi
12848 fi
12849 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12850 if test -n "$STRIP_FOR_TARGET"; then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12852 $as_echo "$STRIP_FOR_TARGET" >&6; }
12853 else
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12855 $as_echo "no" >&6; }
12856 fi
12857
12858
12859 fi
12860 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12862 set dummy ${ncn_progname}; ac_word=$2
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12864 $as_echo_n "checking for $ac_word... " >&6; }
12865 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12866 $as_echo_n "(cached) " >&6
12867 else
12868 if test -n "$STRIP_FOR_TARGET"; then
12869 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12870 else
12871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12873 do
12874 IFS=$as_save_IFS
12875 test -z "$as_dir" && as_dir=.
12876 for ac_exec_ext in '' $ac_executable_extensions; do
12877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12878 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12880 break 2
12881 fi
12882 done
12883 done
12884 IFS=$as_save_IFS
12885
12886 fi
12887 fi
12888 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12889 if test -n "$STRIP_FOR_TARGET"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12891 $as_echo "$STRIP_FOR_TARGET" >&6; }
12892 else
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12895 fi
12896
12897
12898 fi
12899 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12900 done
12901 fi
12902
12903 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12904 set dummy strip
12905 if test $build = $target ; then
12906 STRIP_FOR_TARGET="$2"
12907 else
12908 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12909 fi
12910 else
12911 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12912 fi
12913
12914 else
12915 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12916 fi
12917
12918
12919
12920
12921 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12922 if test -n "$with_build_time_tools"; then
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12924 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12925 if test -x $with_build_time_tools/windres; then
12926 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12927 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12929 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12930 else
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12933 fi
12934 elif test $build != $host && test $have_gcc_for_target = yes; then
12935 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12936 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12937 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12938 fi
12939 fi
12940 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12941 # Extract the first word of "windres", so it can be a program name with args.
12942 set dummy windres; ac_word=$2
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12944 $as_echo_n "checking for $ac_word... " >&6; }
12945 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12946 $as_echo_n "(cached) " >&6
12947 else
12948 case $WINDRES_FOR_TARGET in
12949 [\\/]* | ?:[\\/]*)
12950 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12951 ;;
12952 *)
12953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12954 for as_dir in $gcc_cv_tool_dirs
12955 do
12956 IFS=$as_save_IFS
12957 test -z "$as_dir" && as_dir=.
12958 for ac_exec_ext in '' $ac_executable_extensions; do
12959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12960 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12962 break 2
12963 fi
12964 done
12965 done
12966 IFS=$as_save_IFS
12967
12968 ;;
12969 esac
12970 fi
12971 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12972 if test -n "$WINDRES_FOR_TARGET"; then
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12974 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12975 else
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12977 $as_echo "no" >&6; }
12978 fi
12979
12980
12981 fi
12982 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12983
12984
12985 if test -n "$WINDRES_FOR_TARGET"; then
12986 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12987 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12988 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12989 fi
12990
12991 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12992 for ncn_progname in windres; do
12993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12994 set dummy ${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_WINDRES_FOR_TARGET+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 if test -n "$WINDRES_FOR_TARGET"; then
13001 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_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_WINDRES_FOR_TARGET="${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 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13021 if test -n "$WINDRES_FOR_TARGET"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13023 $as_echo "$WINDRES_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 done
13031 fi
13032
13033 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13034 for ncn_progname in windres; do
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13036 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13037 if test -x $with_build_time_tools/${ncn_progname}; then
13038 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13040 $as_echo "yes" >&6; }
13041 break
13042 else
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044 $as_echo "no" >&6; }
13045 fi
13046 done
13047 fi
13048
13049 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13050 for ncn_progname in windres; do
13051 if test -n "$ncn_target_tool_prefix"; then
13052 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13053 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13055 $as_echo_n "checking for $ac_word... " >&6; }
13056 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059 if test -n "$WINDRES_FOR_TARGET"; then
13060 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13061 else
13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063 for as_dir in $PATH
13064 do
13065 IFS=$as_save_IFS
13066 test -z "$as_dir" && as_dir=.
13067 for ac_exec_ext in '' $ac_executable_extensions; do
13068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13069 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13071 break 2
13072 fi
13073 done
13074 done
13075 IFS=$as_save_IFS
13076
13077 fi
13078 fi
13079 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13080 if test -n "$WINDRES_FOR_TARGET"; then
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13082 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13083 else
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085 $as_echo "no" >&6; }
13086 fi
13087
13088
13089 fi
13090 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13092 set dummy ${ncn_progname}; ac_word=$2
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094 $as_echo_n "checking for $ac_word... " >&6; }
13095 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 if test -n "$WINDRES_FOR_TARGET"; then
13099 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13100 else
13101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102 for as_dir in $PATH
13103 do
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13108 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112 done
13113 done
13114 IFS=$as_save_IFS
13115
13116 fi
13117 fi
13118 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13119 if test -n "$WINDRES_FOR_TARGET"; then
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13121 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13122 else
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
13125 fi
13126
13127
13128 fi
13129 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13130 done
13131 fi
13132
13133 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13134 set dummy windres
13135 if test $build = $target ; then
13136 WINDRES_FOR_TARGET="$2"
13137 else
13138 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13139 fi
13140 else
13141 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13142 fi
13143
13144 else
13145 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13146 fi
13147
13148
13149
13150
13151 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13152 if test -n "$with_build_time_tools"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13154 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13155 if test -x $with_build_time_tools/windmc; then
13156 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13157 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13159 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13160 else
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13163 fi
13164 elif test $build != $host && test $have_gcc_for_target = yes; then
13165 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13166 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13167 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13168 fi
13169 fi
13170 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13171 # Extract the first word of "windmc", so it can be a program name with args.
13172 set dummy windmc; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13174 $as_echo_n "checking for $ac_word... " >&6; }
13175 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 case $WINDMC_FOR_TARGET in
13179 [\\/]* | ?:[\\/]*)
13180 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13181 ;;
13182 *)
13183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 for as_dir in $gcc_cv_tool_dirs
13185 do
13186 IFS=$as_save_IFS
13187 test -z "$as_dir" && as_dir=.
13188 for ac_exec_ext in '' $ac_executable_extensions; do
13189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13190 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13192 break 2
13193 fi
13194 done
13195 done
13196 IFS=$as_save_IFS
13197
13198 ;;
13199 esac
13200 fi
13201 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13202 if test -n "$WINDMC_FOR_TARGET"; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13204 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13205 else
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13208 fi
13209
13210
13211 fi
13212 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13213
13214
13215 if test -n "$WINDMC_FOR_TARGET"; then
13216 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13217 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13218 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13219 fi
13220
13221 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13222 for ncn_progname in windmc; do
13223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13224 set dummy ${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_WINDMC_FOR_TARGET+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 if test -n "$WINDMC_FOR_TARGET"; then
13231 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_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_WINDMC_FOR_TARGET="${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 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13251 if test -n "$WINDMC_FOR_TARGET"; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13253 $as_echo "$WINDMC_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 done
13261 fi
13262
13263 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13264 for ncn_progname in windmc; do
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13266 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13267 if test -x $with_build_time_tools/${ncn_progname}; then
13268 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13270 $as_echo "yes" >&6; }
13271 break
13272 else
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274 $as_echo "no" >&6; }
13275 fi
13276 done
13277 fi
13278
13279 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13280 for ncn_progname in windmc; do
13281 if test -n "$ncn_target_tool_prefix"; then
13282 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13283 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13285 $as_echo_n "checking for $ac_word... " >&6; }
13286 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13287 $as_echo_n "(cached) " >&6
13288 else
13289 if test -n "$WINDMC_FOR_TARGET"; then
13290 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13291 else
13292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13293 for as_dir in $PATH
13294 do
13295 IFS=$as_save_IFS
13296 test -z "$as_dir" && as_dir=.
13297 for ac_exec_ext in '' $ac_executable_extensions; do
13298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13299 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13301 break 2
13302 fi
13303 done
13304 done
13305 IFS=$as_save_IFS
13306
13307 fi
13308 fi
13309 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13310 if test -n "$WINDMC_FOR_TARGET"; then
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13312 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13313 else
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13316 fi
13317
13318
13319 fi
13320 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13322 set dummy ${ncn_progname}; ac_word=$2
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13324 $as_echo_n "checking for $ac_word... " >&6; }
13325 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 if test -n "$WINDMC_FOR_TARGET"; then
13329 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13330 else
13331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13332 for as_dir in $PATH
13333 do
13334 IFS=$as_save_IFS
13335 test -z "$as_dir" && as_dir=.
13336 for ac_exec_ext in '' $ac_executable_extensions; do
13337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13338 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13340 break 2
13341 fi
13342 done
13343 done
13344 IFS=$as_save_IFS
13345
13346 fi
13347 fi
13348 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13349 if test -n "$WINDMC_FOR_TARGET"; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13351 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13352 else
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13355 fi
13356
13357
13358 fi
13359 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13360 done
13361 fi
13362
13363 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13364 set dummy windmc
13365 if test $build = $target ; then
13366 WINDMC_FOR_TARGET="$2"
13367 else
13368 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13369 fi
13370 else
13371 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13372 fi
13373
13374 else
13375 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13376 fi
13377
13378
13379 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13380
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13382 $as_echo_n "checking where to find the target ar... " >&6; }
13383 if test "x${build}" != "x${host}" ; then
13384 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13385 # We already found the complete path
13386 ac_dir=`dirname $AR_FOR_TARGET`
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13388 $as_echo "pre-installed in $ac_dir" >&6; }
13389 else
13390 # Canadian cross, just use what we found
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13392 $as_echo "pre-installed" >&6; }
13393 fi
13394 else
13395 ok=yes
13396 case " ${configdirs} " in
13397 *" binutils "*) ;;
13398 *) ok=no ;;
13399 esac
13400
13401 if test $ok = yes; then
13402 # An in-tree tool is available and we can use it
13403 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13405 $as_echo "just compiled" >&6; }
13406 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13407 # We already found the complete path
13408 ac_dir=`dirname $AR_FOR_TARGET`
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13410 $as_echo "pre-installed in $ac_dir" >&6; }
13411 elif test "x$target" = "x$host"; then
13412 # We can use an host tool
13413 AR_FOR_TARGET='$(AR)'
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13415 $as_echo "host tool" >&6; }
13416 else
13417 # We need a cross tool
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13419 $as_echo "pre-installed" >&6; }
13420 fi
13421 fi
13422
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13424 $as_echo_n "checking where to find the target as... " >&6; }
13425 if test "x${build}" != "x${host}" ; then
13426 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13427 # We already found the complete path
13428 ac_dir=`dirname $AS_FOR_TARGET`
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13430 $as_echo "pre-installed in $ac_dir" >&6; }
13431 else
13432 # Canadian cross, just use what we found
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13434 $as_echo "pre-installed" >&6; }
13435 fi
13436 else
13437 ok=yes
13438 case " ${configdirs} " in
13439 *" gas "*) ;;
13440 *) ok=no ;;
13441 esac
13442
13443 if test $ok = yes; then
13444 # An in-tree tool is available and we can use it
13445 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13447 $as_echo "just compiled" >&6; }
13448 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13449 # We already found the complete path
13450 ac_dir=`dirname $AS_FOR_TARGET`
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13452 $as_echo "pre-installed in $ac_dir" >&6; }
13453 elif test "x$target" = "x$host"; then
13454 # We can use an host tool
13455 AS_FOR_TARGET='$(AS)'
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13457 $as_echo "host tool" >&6; }
13458 else
13459 # We need a cross tool
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13461 $as_echo "pre-installed" >&6; }
13462 fi
13463 fi
13464
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13466 $as_echo_n "checking where to find the target cc... " >&6; }
13467 if test "x${build}" != "x${host}" ; then
13468 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13469 # We already found the complete path
13470 ac_dir=`dirname $CC_FOR_TARGET`
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13472 $as_echo "pre-installed in $ac_dir" >&6; }
13473 else
13474 # Canadian cross, just use what we found
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13476 $as_echo "pre-installed" >&6; }
13477 fi
13478 else
13479 ok=yes
13480 case " ${configdirs} " in
13481 *" gcc "*) ;;
13482 *) ok=no ;;
13483 esac
13484
13485 if test $ok = yes; then
13486 # An in-tree tool is available and we can use it
13487 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13489 $as_echo "just compiled" >&6; }
13490 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13491 # We already found the complete path
13492 ac_dir=`dirname $CC_FOR_TARGET`
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13494 $as_echo "pre-installed in $ac_dir" >&6; }
13495 elif test "x$target" = "x$host"; then
13496 # We can use an host tool
13497 CC_FOR_TARGET='$(CC)'
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13499 $as_echo "host tool" >&6; }
13500 else
13501 # We need a cross tool
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13503 $as_echo "pre-installed" >&6; }
13504 fi
13505 fi
13506
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13508 $as_echo_n "checking where to find the target c++... " >&6; }
13509 if test "x${build}" != "x${host}" ; then
13510 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13511 # We already found the complete path
13512 ac_dir=`dirname $CXX_FOR_TARGET`
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13514 $as_echo "pre-installed in $ac_dir" >&6; }
13515 else
13516 # Canadian cross, just use what we found
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13518 $as_echo "pre-installed" >&6; }
13519 fi
13520 else
13521 ok=yes
13522 case " ${configdirs} " in
13523 *" gcc "*) ;;
13524 *) ok=no ;;
13525 esac
13526 case ,${enable_languages}, in
13527 *,c++,*) ;;
13528 *) ok=no ;;
13529 esac
13530 if test $ok = yes; then
13531 # An in-tree tool is available and we can use it
13532 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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'
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13534 $as_echo "just compiled" >&6; }
13535 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13536 # We already found the complete path
13537 ac_dir=`dirname $CXX_FOR_TARGET`
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13539 $as_echo "pre-installed in $ac_dir" >&6; }
13540 elif test "x$target" = "x$host"; then
13541 # We can use an host tool
13542 CXX_FOR_TARGET='$(CXX)'
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13544 $as_echo "host tool" >&6; }
13545 else
13546 # We need a cross tool
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13548 $as_echo "pre-installed" >&6; }
13549 fi
13550 fi
13551
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13553 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13554 if test "x${build}" != "x${host}" ; then
13555 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13556 # We already found the complete path
13557 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13559 $as_echo "pre-installed in $ac_dir" >&6; }
13560 else
13561 # Canadian cross, just use what we found
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13563 $as_echo "pre-installed" >&6; }
13564 fi
13565 else
13566 ok=yes
13567 case " ${configdirs} " in
13568 *" gcc "*) ;;
13569 *) ok=no ;;
13570 esac
13571 case ,${enable_languages}, in
13572 *,c++,*) ;;
13573 *) ok=no ;;
13574 esac
13575 if test $ok = yes; then
13576 # An in-tree tool is available and we can use it
13577 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'
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13579 $as_echo "just compiled" >&6; }
13580 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13581 # We already found the complete path
13582 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13584 $as_echo "pre-installed in $ac_dir" >&6; }
13585 elif test "x$target" = "x$host"; then
13586 # We can use an host tool
13587 RAW_CXX_FOR_TARGET='$(CXX)'
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13589 $as_echo "host tool" >&6; }
13590 else
13591 # We need a cross tool
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13593 $as_echo "pre-installed" >&6; }
13594 fi
13595 fi
13596
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13598 $as_echo_n "checking where to find the target dlltool... " >&6; }
13599 if test "x${build}" != "x${host}" ; then
13600 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13601 # We already found the complete path
13602 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13604 $as_echo "pre-installed in $ac_dir" >&6; }
13605 else
13606 # Canadian cross, just use what we found
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13608 $as_echo "pre-installed" >&6; }
13609 fi
13610 else
13611 ok=yes
13612 case " ${configdirs} " in
13613 *" binutils "*) ;;
13614 *) ok=no ;;
13615 esac
13616
13617 if test $ok = yes; then
13618 # An in-tree tool is available and we can use it
13619 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13621 $as_echo "just compiled" >&6; }
13622 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13623 # We already found the complete path
13624 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13626 $as_echo "pre-installed in $ac_dir" >&6; }
13627 elif test "x$target" = "x$host"; then
13628 # We can use an host tool
13629 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13631 $as_echo "host tool" >&6; }
13632 else
13633 # We need a cross tool
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13635 $as_echo "pre-installed" >&6; }
13636 fi
13637 fi
13638
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13640 $as_echo_n "checking where to find the target gcc... " >&6; }
13641 if test "x${build}" != "x${host}" ; then
13642 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13643 # We already found the complete path
13644 ac_dir=`dirname $GCC_FOR_TARGET`
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13646 $as_echo "pre-installed in $ac_dir" >&6; }
13647 else
13648 # Canadian cross, just use what we found
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13650 $as_echo "pre-installed" >&6; }
13651 fi
13652 else
13653 ok=yes
13654 case " ${configdirs} " in
13655 *" gcc "*) ;;
13656 *) ok=no ;;
13657 esac
13658
13659 if test $ok = yes; then
13660 # An in-tree tool is available and we can use it
13661 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13663 $as_echo "just compiled" >&6; }
13664 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13665 # We already found the complete path
13666 ac_dir=`dirname $GCC_FOR_TARGET`
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13668 $as_echo "pre-installed in $ac_dir" >&6; }
13669 elif test "x$target" = "x$host"; then
13670 # We can use an host tool
13671 GCC_FOR_TARGET='$()'
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13673 $as_echo "host tool" >&6; }
13674 else
13675 # We need a cross tool
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13677 $as_echo "pre-installed" >&6; }
13678 fi
13679 fi
13680
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13682 $as_echo_n "checking where to find the target gcj... " >&6; }
13683 if test "x${build}" != "x${host}" ; then
13684 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13685 # We already found the complete path
13686 ac_dir=`dirname $GCJ_FOR_TARGET`
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13688 $as_echo "pre-installed in $ac_dir" >&6; }
13689 else
13690 # Canadian cross, just use what we found
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13692 $as_echo "pre-installed" >&6; }
13693 fi
13694 else
13695 ok=yes
13696 case " ${configdirs} " in
13697 *" gcc "*) ;;
13698 *) ok=no ;;
13699 esac
13700 case ,${enable_languages}, in
13701 *,java,*) ;;
13702 *) ok=no ;;
13703 esac
13704 if test $ok = yes; then
13705 # An in-tree tool is available and we can use it
13706 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13708 $as_echo "just compiled" >&6; }
13709 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13710 # We already found the complete path
13711 ac_dir=`dirname $GCJ_FOR_TARGET`
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13713 $as_echo "pre-installed in $ac_dir" >&6; }
13714 elif test "x$target" = "x$host"; then
13715 # We can use an host tool
13716 GCJ_FOR_TARGET='$(GCJ)'
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13718 $as_echo "host tool" >&6; }
13719 else
13720 # We need a cross tool
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13722 $as_echo "pre-installed" >&6; }
13723 fi
13724 fi
13725
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13727 $as_echo_n "checking where to find the target gfortran... " >&6; }
13728 if test "x${build}" != "x${host}" ; then
13729 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13730 # We already found the complete path
13731 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13733 $as_echo "pre-installed in $ac_dir" >&6; }
13734 else
13735 # Canadian cross, just use what we found
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13737 $as_echo "pre-installed" >&6; }
13738 fi
13739 else
13740 ok=yes
13741 case " ${configdirs} " in
13742 *" gcc "*) ;;
13743 *) ok=no ;;
13744 esac
13745 case ,${enable_languages}, in
13746 *,fortran,*) ;;
13747 *) ok=no ;;
13748 esac
13749 if test $ok = yes; then
13750 # An in-tree tool is available and we can use it
13751 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13753 $as_echo "just compiled" >&6; }
13754 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13755 # We already found the complete path
13756 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13758 $as_echo "pre-installed in $ac_dir" >&6; }
13759 elif test "x$target" = "x$host"; then
13760 # We can use an host tool
13761 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13763 $as_echo "host tool" >&6; }
13764 else
13765 # We need a cross tool
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13767 $as_echo "pre-installed" >&6; }
13768 fi
13769 fi
13770
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13772 $as_echo_n "checking where to find the target gccgo... " >&6; }
13773 if test "x${build}" != "x${host}" ; then
13774 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13775 # We already found the complete path
13776 ac_dir=`dirname $GOC_FOR_TARGET`
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13778 $as_echo "pre-installed in $ac_dir" >&6; }
13779 else
13780 # Canadian cross, just use what we found
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13782 $as_echo "pre-installed" >&6; }
13783 fi
13784 else
13785 ok=yes
13786 case " ${configdirs} " in
13787 *" gcc "*) ;;
13788 *) ok=no ;;
13789 esac
13790 case ,${enable_languages}, in
13791 *,go,*) ;;
13792 *) ok=no ;;
13793 esac
13794 if test $ok = yes; then
13795 # An in-tree tool is available and we can use it
13796 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13798 $as_echo "just compiled" >&6; }
13799 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13800 # We already found the complete path
13801 ac_dir=`dirname $GOC_FOR_TARGET`
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13803 $as_echo "pre-installed in $ac_dir" >&6; }
13804 elif test "x$target" = "x$host"; then
13805 # We can use an host tool
13806 GOC_FOR_TARGET='$(GOC)'
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13808 $as_echo "host tool" >&6; }
13809 else
13810 # We need a cross tool
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13812 $as_echo "pre-installed" >&6; }
13813 fi
13814 fi
13815
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13817 $as_echo_n "checking where to find the target ld... " >&6; }
13818 if test "x${build}" != "x${host}" ; then
13819 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13820 # We already found the complete path
13821 ac_dir=`dirname $LD_FOR_TARGET`
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13823 $as_echo "pre-installed in $ac_dir" >&6; }
13824 else
13825 # Canadian cross, just use what we found
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13827 $as_echo "pre-installed" >&6; }
13828 fi
13829 else
13830 ok=yes
13831 case " ${configdirs} " in
13832 *" ld "*) ;;
13833 *) ok=no ;;
13834 esac
13835
13836 if test $ok = yes; then
13837 # An in-tree tool is available and we can use it
13838 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13840 $as_echo "just compiled" >&6; }
13841 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13842 # We already found the complete path
13843 ac_dir=`dirname $LD_FOR_TARGET`
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13845 $as_echo "pre-installed in $ac_dir" >&6; }
13846 elif test "x$target" = "x$host"; then
13847 # We can use an host tool
13848 LD_FOR_TARGET='$(LD)'
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13850 $as_echo "host tool" >&6; }
13851 else
13852 # We need a cross tool
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13854 $as_echo "pre-installed" >&6; }
13855 fi
13856 fi
13857
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13859 $as_echo_n "checking where to find the target lipo... " >&6; }
13860 if test "x${build}" != "x${host}" ; then
13861 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13862 # We already found the complete path
13863 ac_dir=`dirname $LIPO_FOR_TARGET`
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13865 $as_echo "pre-installed in $ac_dir" >&6; }
13866 else
13867 # Canadian cross, just use what we found
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13869 $as_echo "pre-installed" >&6; }
13870 fi
13871 else
13872 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13873 # We already found the complete path
13874 ac_dir=`dirname $LIPO_FOR_TARGET`
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13876 $as_echo "pre-installed in $ac_dir" >&6; }
13877 elif test "x$target" = "x$host"; then
13878 # We can use an host tool
13879 LIPO_FOR_TARGET='$(LIPO)'
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13881 $as_echo "host tool" >&6; }
13882 else
13883 # We need a cross tool
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13885 $as_echo "pre-installed" >&6; }
13886 fi
13887 fi
13888
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13890 $as_echo_n "checking where to find the target nm... " >&6; }
13891 if test "x${build}" != "x${host}" ; then
13892 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13893 # We already found the complete path
13894 ac_dir=`dirname $NM_FOR_TARGET`
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13896 $as_echo "pre-installed in $ac_dir" >&6; }
13897 else
13898 # Canadian cross, just use what we found
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13900 $as_echo "pre-installed" >&6; }
13901 fi
13902 else
13903 ok=yes
13904 case " ${configdirs} " in
13905 *" binutils "*) ;;
13906 *) ok=no ;;
13907 esac
13908
13909 if test $ok = yes; then
13910 # An in-tree tool is available and we can use it
13911 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13913 $as_echo "just compiled" >&6; }
13914 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13915 # We already found the complete path
13916 ac_dir=`dirname $NM_FOR_TARGET`
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13918 $as_echo "pre-installed in $ac_dir" >&6; }
13919 elif test "x$target" = "x$host"; then
13920 # We can use an host tool
13921 NM_FOR_TARGET='$(NM)'
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13923 $as_echo "host tool" >&6; }
13924 else
13925 # We need a cross tool
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13927 $as_echo "pre-installed" >&6; }
13928 fi
13929 fi
13930
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13932 $as_echo_n "checking where to find the target objdump... " >&6; }
13933 if test "x${build}" != "x${host}" ; then
13934 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13935 # We already found the complete path
13936 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13938 $as_echo "pre-installed in $ac_dir" >&6; }
13939 else
13940 # Canadian cross, just use what we found
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13942 $as_echo "pre-installed" >&6; }
13943 fi
13944 else
13945 ok=yes
13946 case " ${configdirs} " in
13947 *" binutils "*) ;;
13948 *) ok=no ;;
13949 esac
13950
13951 if test $ok = yes; then
13952 # An in-tree tool is available and we can use it
13953 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13955 $as_echo "just compiled" >&6; }
13956 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13957 # We already found the complete path
13958 ac_dir=`dirname $OBJDUMP_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 elif test "x$target" = "x$host"; then
13962 # We can use an host tool
13963 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13965 $as_echo "host tool" >&6; }
13966 else
13967 # We need a cross tool
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13969 $as_echo "pre-installed" >&6; }
13970 fi
13971 fi
13972
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13974 $as_echo_n "checking where to find the target ranlib... " >&6; }
13975 if test "x${build}" != "x${host}" ; then
13976 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13977 # We already found the complete path
13978 ac_dir=`dirname $RANLIB_FOR_TARGET`
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13980 $as_echo "pre-installed in $ac_dir" >&6; }
13981 else
13982 # Canadian cross, just use what we found
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13984 $as_echo "pre-installed" >&6; }
13985 fi
13986 else
13987 ok=yes
13988 case " ${configdirs} " in
13989 *" binutils "*) ;;
13990 *) ok=no ;;
13991 esac
13992
13993 if test $ok = yes; then
13994 # An in-tree tool is available and we can use it
13995 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13997 $as_echo "just compiled" >&6; }
13998 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13999 # We already found the complete path
14000 ac_dir=`dirname $RANLIB_FOR_TARGET`
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14002 $as_echo "pre-installed in $ac_dir" >&6; }
14003 elif test "x$target" = "x$host"; then
14004 # We can use an host tool
14005 RANLIB_FOR_TARGET='$(RANLIB)'
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14007 $as_echo "host tool" >&6; }
14008 else
14009 # We need a cross tool
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14011 $as_echo "pre-installed" >&6; }
14012 fi
14013 fi
14014
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14016 $as_echo_n "checking where to find the target readelf... " >&6; }
14017 if test "x${build}" != "x${host}" ; then
14018 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14019 # We already found the complete path
14020 ac_dir=`dirname $READELF_FOR_TARGET`
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14022 $as_echo "pre-installed in $ac_dir" >&6; }
14023 else
14024 # Canadian cross, just use what we found
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14026 $as_echo "pre-installed" >&6; }
14027 fi
14028 else
14029 ok=yes
14030 case " ${configdirs} " in
14031 *" binutils "*) ;;
14032 *) ok=no ;;
14033 esac
14034
14035 if test $ok = yes; then
14036 # An in-tree tool is available and we can use it
14037 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14039 $as_echo "just compiled" >&6; }
14040 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14041 # We already found the complete path
14042 ac_dir=`dirname $READELF_FOR_TARGET`
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14044 $as_echo "pre-installed in $ac_dir" >&6; }
14045 elif test "x$target" = "x$host"; then
14046 # We can use an host tool
14047 READELF_FOR_TARGET='$(READELF)'
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14049 $as_echo "host tool" >&6; }
14050 else
14051 # We need a cross tool
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14053 $as_echo "pre-installed" >&6; }
14054 fi
14055 fi
14056
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14058 $as_echo_n "checking where to find the target strip... " >&6; }
14059 if test "x${build}" != "x${host}" ; then
14060 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14061 # We already found the complete path
14062 ac_dir=`dirname $STRIP_FOR_TARGET`
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14064 $as_echo "pre-installed in $ac_dir" >&6; }
14065 else
14066 # Canadian cross, just use what we found
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14068 $as_echo "pre-installed" >&6; }
14069 fi
14070 else
14071 ok=yes
14072 case " ${configdirs} " in
14073 *" binutils "*) ;;
14074 *) ok=no ;;
14075 esac
14076
14077 if test $ok = yes; then
14078 # An in-tree tool is available and we can use it
14079 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14081 $as_echo "just compiled" >&6; }
14082 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14083 # We already found the complete path
14084 ac_dir=`dirname $STRIP_FOR_TARGET`
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14086 $as_echo "pre-installed in $ac_dir" >&6; }
14087 elif test "x$target" = "x$host"; then
14088 # We can use an host tool
14089 STRIP_FOR_TARGET='$(STRIP)'
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14091 $as_echo "host tool" >&6; }
14092 else
14093 # We need a cross tool
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14095 $as_echo "pre-installed" >&6; }
14096 fi
14097 fi
14098
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14100 $as_echo_n "checking where to find the target windres... " >&6; }
14101 if test "x${build}" != "x${host}" ; then
14102 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14103 # We already found the complete path
14104 ac_dir=`dirname $WINDRES_FOR_TARGET`
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14106 $as_echo "pre-installed in $ac_dir" >&6; }
14107 else
14108 # Canadian cross, just use what we found
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14110 $as_echo "pre-installed" >&6; }
14111 fi
14112 else
14113 ok=yes
14114 case " ${configdirs} " in
14115 *" binutils "*) ;;
14116 *) ok=no ;;
14117 esac
14118
14119 if test $ok = yes; then
14120 # An in-tree tool is available and we can use it
14121 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14123 $as_echo "just compiled" >&6; }
14124 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14125 # We already found the complete path
14126 ac_dir=`dirname $WINDRES_FOR_TARGET`
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14128 $as_echo "pre-installed in $ac_dir" >&6; }
14129 elif test "x$target" = "x$host"; then
14130 # We can use an host tool
14131 WINDRES_FOR_TARGET='$(WINDRES)'
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14133 $as_echo "host tool" >&6; }
14134 else
14135 # We need a cross tool
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14137 $as_echo "pre-installed" >&6; }
14138 fi
14139 fi
14140
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14142 $as_echo_n "checking where to find the target windmc... " >&6; }
14143 if test "x${build}" != "x${host}" ; then
14144 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14145 # We already found the complete path
14146 ac_dir=`dirname $WINDMC_FOR_TARGET`
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14148 $as_echo "pre-installed in $ac_dir" >&6; }
14149 else
14150 # Canadian cross, just use what we found
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14152 $as_echo "pre-installed" >&6; }
14153 fi
14154 else
14155 ok=yes
14156 case " ${configdirs} " in
14157 *" binutils "*) ;;
14158 *) ok=no ;;
14159 esac
14160
14161 if test $ok = yes; then
14162 # An in-tree tool is available and we can use it
14163 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14165 $as_echo "just compiled" >&6; }
14166 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14167 # We already found the complete path
14168 ac_dir=`dirname $WINDMC_FOR_TARGET`
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14170 $as_echo "pre-installed in $ac_dir" >&6; }
14171 elif test "x$target" = "x$host"; then
14172 # We can use an host tool
14173 WINDMC_FOR_TARGET='$(WINDMC)'
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14175 $as_echo "host tool" >&6; }
14176 else
14177 # We need a cross tool
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14179 $as_echo "pre-installed" >&6; }
14180 fi
14181 fi
14182
14183
14184
14185
14186
14187 # Certain tools may need extra flags.
14188 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14189 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14190 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14191
14192 # When building target libraries, except in a Canadian cross, we use
14193 # the same toolchain as the compiler we just built.
14194 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14195 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14196 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14197 if test $host = $build; then
14198 case " $configdirs " in
14199 *" gcc "*)
14200 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14201 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14202 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14203 ;;
14204 esac
14205 fi
14206
14207
14208
14209
14210
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14212 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14213 # Check whether --enable-maintainer-mode was given.
14214 if test "${enable_maintainer_mode+set}" = set; then :
14215 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14216 else
14217 USE_MAINTAINER_MODE=no
14218 fi
14219
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14221 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14222
14223
14224 if test "$USE_MAINTAINER_MODE" = yes; then
14225 MAINTAINER_MODE_TRUE=
14226 MAINTAINER_MODE_FALSE='#'
14227 else
14228 MAINTAINER_MODE_TRUE='#'
14229 MAINTAINER_MODE_FALSE=
14230 fi
14231 MAINT=$MAINTAINER_MODE_TRUE
14232
14233 # ---------------------
14234 # GCC bootstrap support
14235 # ---------------------
14236
14237 # Stage specific cflags for build.
14238 stage1_cflags="-g"
14239 case $build in
14240 vax-*-*)
14241 case ${GCC} in
14242 yes) stage1_cflags="-g -Wa,-J" ;;
14243 *) stage1_cflags="-g -J" ;;
14244 esac ;;
14245 esac
14246
14247 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14248 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14249 saved_CFLAGS="$CFLAGS"
14250
14251 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14252 CFLAGS="$CFLAGS -fkeep-inline-functions"
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14254 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257
14258 #if (__GNUC__ < 3) \
14259 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14260 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14261 #error http://gcc.gnu.org/PR29382
14262 #endif
14263
14264 int
14265 main ()
14266 {
14267
14268 ;
14269 return 0;
14270 }
14271 _ACEOF
14272 if ac_fn_c_try_compile "$LINENO"; then :
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14274 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14275 else
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277 $as_echo "no" >&6; }
14278 fi
14279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280
14281 CFLAGS="$saved_CFLAGS"
14282 fi
14283
14284
14285
14286 # Enable --enable-checking in stage1 of the compiler.
14287 # Check whether --enable-stage1-checking was given.
14288 if test "${enable_stage1_checking+set}" = set; then :
14289 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14290 else
14291 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14292 stage1_checking=--enable-checking=yes,types
14293 else
14294 stage1_checking=--enable-checking=$enable_checking,types
14295 fi
14296 fi
14297
14298
14299
14300 # Enable -Werror in bootstrap stage2 and later.
14301 # Check whether --enable-werror was given.
14302 if test "${enable_werror+set}" = set; then :
14303 enableval=$enable_werror;
14304 else
14305 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14306 enable_werror=yes
14307 else
14308 enable_werror=no
14309 fi
14310 fi
14311
14312 case ${enable_werror} in
14313 yes) stage2_werror_flag="--enable-werror-always" ;;
14314 *) stage2_werror_flag="" ;;
14315 esac
14316
14317
14318 # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14319 # --enable-build-with-cxx after stage1.
14320 if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14321 POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14322 else
14323 POSTSTAGE1_CONFIGURE_FLAGS=
14324 fi
14325
14326
14327 # Specify what files to not compare during bootstrap.
14328
14329 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14330 case "$target" in
14331 hppa*64*-*-hpux*) ;;
14332 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14333 esac
14334 case " $configdirs " in
14335 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14336 esac
14337
14338
14339 ac_config_files="$ac_config_files Makefile"
14340
14341 cat >confcache <<\_ACEOF
14342 # This file is a shell script that caches the results of configure
14343 # tests run on this system so they can be shared between configure
14344 # scripts and configure runs, see configure's option --config-cache.
14345 # It is not useful on other systems. If it contains results you don't
14346 # want to keep, you may remove or edit it.
14347 #
14348 # config.status only pays attention to the cache file if you give it
14349 # the --recheck option to rerun configure.
14350 #
14351 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14352 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14353 # following values.
14354
14355 _ACEOF
14356
14357 # The following way of writing the cache mishandles newlines in values,
14358 # but we know of no workaround that is simple, portable, and efficient.
14359 # So, we kill variables containing newlines.
14360 # Ultrix sh set writes to stderr and can't be redirected directly,
14361 # and sets the high bit in the cache file unless we assign to the vars.
14362 (
14363 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14364 eval ac_val=\$$ac_var
14365 case $ac_val in #(
14366 *${as_nl}*)
14367 case $ac_var in #(
14368 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14369 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14370 esac
14371 case $ac_var in #(
14372 _ | IFS | as_nl) ;; #(
14373 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14374 *) { eval $ac_var=; unset $ac_var;} ;;
14375 esac ;;
14376 esac
14377 done
14378
14379 (set) 2>&1 |
14380 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14381 *${as_nl}ac_space=\ *)
14382 # `set' does not quote correctly, so add quotes: double-quote
14383 # substitution turns \\\\ into \\, and sed turns \\ into \.
14384 sed -n \
14385 "s/'/'\\\\''/g;
14386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14387 ;; #(
14388 *)
14389 # `set' quotes correctly as required by POSIX, so do not add quotes.
14390 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14391 ;;
14392 esac |
14393 sort
14394 ) |
14395 sed '
14396 /^ac_cv_env_/b end
14397 t clear
14398 :clear
14399 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14400 t end
14401 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14402 :end' >>confcache
14403 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14404 if test -w "$cache_file"; then
14405 test "x$cache_file" != "x/dev/null" &&
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14407 $as_echo "$as_me: updating cache $cache_file" >&6;}
14408 cat confcache >$cache_file
14409 else
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14411 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14412 fi
14413 fi
14414 rm -f confcache
14415
14416 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14417 # Let make expand exec_prefix.
14418 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14419
14420 # Transform confdefs.h into DEFS.
14421 # Protect against shell expansion while executing Makefile rules.
14422 # Protect against Makefile macro expansion.
14423 #
14424 # If the first sed substitution is executed (which looks for macros that
14425 # take arguments), then branch to the quote section. Otherwise,
14426 # look for a macro that doesn't take arguments.
14427 ac_script='
14428 :mline
14429 /\\$/{
14430 N
14431 s,\\\n,,
14432 b mline
14433 }
14434 t clear
14435 :clear
14436 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14437 t quote
14438 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14439 t quote
14440 b any
14441 :quote
14442 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14443 s/\[/\\&/g
14444 s/\]/\\&/g
14445 s/\$/$$/g
14446 H
14447 :any
14448 ${
14449 g
14450 s/^\n//
14451 s/\n/ /g
14452 p
14453 }
14454 '
14455 DEFS=`sed -n "$ac_script" confdefs.h`
14456
14457
14458 ac_libobjs=
14459 ac_ltlibobjs=
14460 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14461 # 1. Remove the extension, and $U if already installed.
14462 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14463 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14464 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14465 # will be set to the directory where LIBOBJS objects are built.
14466 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14467 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14468 done
14469 LIBOBJS=$ac_libobjs
14470
14471 LTLIBOBJS=$ac_ltlibobjs
14472
14473
14474
14475 : ${CONFIG_STATUS=./config.status}
14476 ac_write_fail=0
14477 ac_clean_files_save=$ac_clean_files
14478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14480 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14481 as_write_fail=0
14482 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14483 #! $SHELL
14484 # Generated by $as_me.
14485 # Run this file to recreate the current configuration.
14486 # Compiler output produced by configure, useful for debugging
14487 # configure, is in config.log if it exists.
14488
14489 debug=false
14490 ac_cs_recheck=false
14491 ac_cs_silent=false
14492
14493 SHELL=\${CONFIG_SHELL-$SHELL}
14494 export SHELL
14495 _ASEOF
14496 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14497 ## -------------------- ##
14498 ## M4sh Initialization. ##
14499 ## -------------------- ##
14500
14501 # Be more Bourne compatible
14502 DUALCASE=1; export DUALCASE # for MKS sh
14503 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14504 emulate sh
14505 NULLCMD=:
14506 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14507 # is contrary to our usage. Disable this feature.
14508 alias -g '${1+"$@"}'='"$@"'
14509 setopt NO_GLOB_SUBST
14510 else
14511 case `(set -o) 2>/dev/null` in #(
14512 *posix*) :
14513 set -o posix ;; #(
14514 *) :
14515 ;;
14516 esac
14517 fi
14518
14519
14520 as_nl='
14521 '
14522 export as_nl
14523 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14524 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14525 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14526 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14527 # Prefer a ksh shell builtin over an external printf program on Solaris,
14528 # but without wasting forks for bash or zsh.
14529 if test -z "$BASH_VERSION$ZSH_VERSION" \
14530 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14531 as_echo='print -r --'
14532 as_echo_n='print -rn --'
14533 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14534 as_echo='printf %s\n'
14535 as_echo_n='printf %s'
14536 else
14537 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14538 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14539 as_echo_n='/usr/ucb/echo -n'
14540 else
14541 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14542 as_echo_n_body='eval
14543 arg=$1;
14544 case $arg in #(
14545 *"$as_nl"*)
14546 expr "X$arg" : "X\\(.*\\)$as_nl";
14547 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14548 esac;
14549 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14550 '
14551 export as_echo_n_body
14552 as_echo_n='sh -c $as_echo_n_body as_echo'
14553 fi
14554 export as_echo_body
14555 as_echo='sh -c $as_echo_body as_echo'
14556 fi
14557
14558 # The user is always right.
14559 if test "${PATH_SEPARATOR+set}" != set; then
14560 PATH_SEPARATOR=:
14561 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14562 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14563 PATH_SEPARATOR=';'
14564 }
14565 fi
14566
14567
14568 # IFS
14569 # We need space, tab and new line, in precisely that order. Quoting is
14570 # there to prevent editors from complaining about space-tab.
14571 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14572 # splitting by setting IFS to empty value.)
14573 IFS=" "" $as_nl"
14574
14575 # Find who we are. Look in the path if we contain no directory separator.
14576 case $0 in #((
14577 *[\\/]* ) as_myself=$0 ;;
14578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14579 for as_dir in $PATH
14580 do
14581 IFS=$as_save_IFS
14582 test -z "$as_dir" && as_dir=.
14583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14584 done
14585 IFS=$as_save_IFS
14586
14587 ;;
14588 esac
14589 # We did not find ourselves, most probably we were run as `sh COMMAND'
14590 # in which case we are not to be found in the path.
14591 if test "x$as_myself" = x; then
14592 as_myself=$0
14593 fi
14594 if test ! -f "$as_myself"; then
14595 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14596 exit 1
14597 fi
14598
14599 # Unset variables that we do not need and which cause bugs (e.g. in
14600 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14601 # suppresses any "Segmentation fault" message there. '((' could
14602 # trigger a bug in pdksh 5.2.14.
14603 for as_var in BASH_ENV ENV MAIL MAILPATH
14604 do eval test x\${$as_var+set} = xset \
14605 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14606 done
14607 PS1='$ '
14608 PS2='> '
14609 PS4='+ '
14610
14611 # NLS nuisances.
14612 LC_ALL=C
14613 export LC_ALL
14614 LANGUAGE=C
14615 export LANGUAGE
14616
14617 # CDPATH.
14618 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14619
14620
14621 # as_fn_error ERROR [LINENO LOG_FD]
14622 # ---------------------------------
14623 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14624 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14625 # script with status $?, using 1 if that was 0.
14626 as_fn_error ()
14627 {
14628 as_status=$?; test $as_status -eq 0 && as_status=1
14629 if test "$3"; then
14630 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14631 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14632 fi
14633 $as_echo "$as_me: error: $1" >&2
14634 as_fn_exit $as_status
14635 } # as_fn_error
14636
14637
14638 # as_fn_set_status STATUS
14639 # -----------------------
14640 # Set $? to STATUS, without forking.
14641 as_fn_set_status ()
14642 {
14643 return $1
14644 } # as_fn_set_status
14645
14646 # as_fn_exit STATUS
14647 # -----------------
14648 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14649 as_fn_exit ()
14650 {
14651 set +e
14652 as_fn_set_status $1
14653 exit $1
14654 } # as_fn_exit
14655
14656 # as_fn_unset VAR
14657 # ---------------
14658 # Portably unset VAR.
14659 as_fn_unset ()
14660 {
14661 { eval $1=; unset $1;}
14662 }
14663 as_unset=as_fn_unset
14664 # as_fn_append VAR VALUE
14665 # ----------------------
14666 # Append the text in VALUE to the end of the definition contained in VAR. Take
14667 # advantage of any shell optimizations that allow amortized linear growth over
14668 # repeated appends, instead of the typical quadratic growth present in naive
14669 # implementations.
14670 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14671 eval 'as_fn_append ()
14672 {
14673 eval $1+=\$2
14674 }'
14675 else
14676 as_fn_append ()
14677 {
14678 eval $1=\$$1\$2
14679 }
14680 fi # as_fn_append
14681
14682 # as_fn_arith ARG...
14683 # ------------------
14684 # Perform arithmetic evaluation on the ARGs, and store the result in the
14685 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14686 # must be portable across $(()) and expr.
14687 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14688 eval 'as_fn_arith ()
14689 {
14690 as_val=$(( $* ))
14691 }'
14692 else
14693 as_fn_arith ()
14694 {
14695 as_val=`expr "$@" || test $? -eq 1`
14696 }
14697 fi # as_fn_arith
14698
14699
14700 if expr a : '\(a\)' >/dev/null 2>&1 &&
14701 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14702 as_expr=expr
14703 else
14704 as_expr=false
14705 fi
14706
14707 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14708 as_basename=basename
14709 else
14710 as_basename=false
14711 fi
14712
14713 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14714 as_dirname=dirname
14715 else
14716 as_dirname=false
14717 fi
14718
14719 as_me=`$as_basename -- "$0" ||
14720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14721 X"$0" : 'X\(//\)$' \| \
14722 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14723 $as_echo X/"$0" |
14724 sed '/^.*\/\([^/][^/]*\)\/*$/{
14725 s//\1/
14726 q
14727 }
14728 /^X\/\(\/\/\)$/{
14729 s//\1/
14730 q
14731 }
14732 /^X\/\(\/\).*/{
14733 s//\1/
14734 q
14735 }
14736 s/.*/./; q'`
14737
14738 # Avoid depending upon Character Ranges.
14739 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14740 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14741 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14742 as_cr_digits='0123456789'
14743 as_cr_alnum=$as_cr_Letters$as_cr_digits
14744
14745 ECHO_C= ECHO_N= ECHO_T=
14746 case `echo -n x` in #(((((
14747 -n*)
14748 case `echo 'xy\c'` in
14749 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14750 xy) ECHO_C='\c';;
14751 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14752 ECHO_T=' ';;
14753 esac;;
14754 *)
14755 ECHO_N='-n';;
14756 esac
14757
14758 rm -f conf$$ conf$$.exe conf$$.file
14759 if test -d conf$$.dir; then
14760 rm -f conf$$.dir/conf$$.file
14761 else
14762 rm -f conf$$.dir
14763 mkdir conf$$.dir 2>/dev/null
14764 fi
14765 if (echo >conf$$.file) 2>/dev/null; then
14766 if ln -s conf$$.file conf$$ 2>/dev/null; then
14767 as_ln_s='ln -s'
14768 # ... but there are two gotchas:
14769 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14770 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14771 # In both cases, we have to default to `cp -p'.
14772 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14773 as_ln_s='cp -p'
14774 elif ln conf$$.file conf$$ 2>/dev/null; then
14775 as_ln_s=ln
14776 else
14777 as_ln_s='cp -p'
14778 fi
14779 else
14780 as_ln_s='cp -p'
14781 fi
14782 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14783 rmdir conf$$.dir 2>/dev/null
14784
14785
14786 # as_fn_mkdir_p
14787 # -------------
14788 # Create "$as_dir" as a directory, including parents if necessary.
14789 as_fn_mkdir_p ()
14790 {
14791
14792 case $as_dir in #(
14793 -*) as_dir=./$as_dir;;
14794 esac
14795 test -d "$as_dir" || eval $as_mkdir_p || {
14796 as_dirs=
14797 while :; do
14798 case $as_dir in #(
14799 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14800 *) as_qdir=$as_dir;;
14801 esac
14802 as_dirs="'$as_qdir' $as_dirs"
14803 as_dir=`$as_dirname -- "$as_dir" ||
14804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14805 X"$as_dir" : 'X\(//\)[^/]' \| \
14806 X"$as_dir" : 'X\(//\)$' \| \
14807 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14808 $as_echo X"$as_dir" |
14809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14810 s//\1/
14811 q
14812 }
14813 /^X\(\/\/\)[^/].*/{
14814 s//\1/
14815 q
14816 }
14817 /^X\(\/\/\)$/{
14818 s//\1/
14819 q
14820 }
14821 /^X\(\/\).*/{
14822 s//\1/
14823 q
14824 }
14825 s/.*/./; q'`
14826 test -d "$as_dir" && break
14827 done
14828 test -z "$as_dirs" || eval "mkdir $as_dirs"
14829 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14830
14831
14832 } # as_fn_mkdir_p
14833 if mkdir -p . 2>/dev/null; then
14834 as_mkdir_p='mkdir -p "$as_dir"'
14835 else
14836 test -d ./-p && rmdir ./-p
14837 as_mkdir_p=false
14838 fi
14839
14840 if test -x / >/dev/null 2>&1; then
14841 as_test_x='test -x'
14842 else
14843 if ls -dL / >/dev/null 2>&1; then
14844 as_ls_L_option=L
14845 else
14846 as_ls_L_option=
14847 fi
14848 as_test_x='
14849 eval sh -c '\''
14850 if test -d "$1"; then
14851 test -d "$1/.";
14852 else
14853 case $1 in #(
14854 -*)set "./$1";;
14855 esac;
14856 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14857 ???[sx]*):;;*)false;;esac;fi
14858 '\'' sh
14859 '
14860 fi
14861 as_executable_p=$as_test_x
14862
14863 # Sed expression to map a string onto a valid CPP name.
14864 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14865
14866 # Sed expression to map a string onto a valid variable name.
14867 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14868
14869
14870 exec 6>&1
14871 ## ----------------------------------- ##
14872 ## Main body of $CONFIG_STATUS script. ##
14873 ## ----------------------------------- ##
14874 _ASEOF
14875 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14876
14877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14878 # Save the log message, to keep $0 and so on meaningful, and to
14879 # report actual input values of CONFIG_FILES etc. instead of their
14880 # values after options handling.
14881 ac_log="
14882 This file was extended by $as_me, which was
14883 generated by GNU Autoconf 2.64. Invocation command line was
14884
14885 CONFIG_FILES = $CONFIG_FILES
14886 CONFIG_HEADERS = $CONFIG_HEADERS
14887 CONFIG_LINKS = $CONFIG_LINKS
14888 CONFIG_COMMANDS = $CONFIG_COMMANDS
14889 $ $0 $@
14890
14891 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14892 "
14893
14894 _ACEOF
14895
14896 case $ac_config_files in *"
14897 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14898 esac
14899
14900
14901
14902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14903 # Files that config.status was made for.
14904 config_files="$ac_config_files"
14905
14906 _ACEOF
14907
14908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14909 ac_cs_usage="\
14910 \`$as_me' instantiates files and other configuration actions
14911 from templates according to the current configuration. Unless the files
14912 and actions are specified as TAGs, all are instantiated by default.
14913
14914 Usage: $0 [OPTION]... [TAG]...
14915
14916 -h, --help print this help, then exit
14917 -V, --version print version number and configuration settings, then exit
14918 -q, --quiet, --silent
14919 do not print progress messages
14920 -d, --debug don't remove temporary files
14921 --recheck update $as_me by reconfiguring in the same conditions
14922 --file=FILE[:TEMPLATE]
14923 instantiate the configuration file FILE
14924
14925 Configuration files:
14926 $config_files
14927
14928 Report bugs to the package provider."
14929
14930 _ACEOF
14931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14932 ac_cs_version="\\
14933 config.status
14934 configured by $0, generated by GNU Autoconf 2.64,
14935 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14936
14937 Copyright (C) 2009 Free Software Foundation, Inc.
14938 This config.status script is free software; the Free Software Foundation
14939 gives unlimited permission to copy, distribute and modify it."
14940
14941 ac_pwd='$ac_pwd'
14942 srcdir='$srcdir'
14943 INSTALL='$INSTALL'
14944 AWK='$AWK'
14945 test -n "\$AWK" || AWK=awk
14946 _ACEOF
14947
14948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14949 # The default lists apply if the user does not specify any file.
14950 ac_need_defaults=:
14951 while test $# != 0
14952 do
14953 case $1 in
14954 --*=*)
14955 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14956 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14957 ac_shift=:
14958 ;;
14959 *)
14960 ac_option=$1
14961 ac_optarg=$2
14962 ac_shift=shift
14963 ;;
14964 esac
14965
14966 case $ac_option in
14967 # Handling of the options.
14968 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14969 ac_cs_recheck=: ;;
14970 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14971 $as_echo "$ac_cs_version"; exit ;;
14972 --debug | --debu | --deb | --de | --d | -d )
14973 debug=: ;;
14974 --file | --fil | --fi | --f )
14975 $ac_shift
14976 case $ac_optarg in
14977 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14978 esac
14979 as_fn_append CONFIG_FILES " '$ac_optarg'"
14980 ac_need_defaults=false;;
14981 --he | --h | --help | --hel | -h )
14982 $as_echo "$ac_cs_usage"; exit ;;
14983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14984 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14985 ac_cs_silent=: ;;
14986
14987 # This is an error.
14988 -*) as_fn_error "unrecognized option: \`$1'
14989 Try \`$0 --help' for more information." ;;
14990
14991 *) as_fn_append ac_config_targets " $1"
14992 ac_need_defaults=false ;;
14993
14994 esac
14995 shift
14996 done
14997
14998 ac_configure_extra_args=
14999
15000 if $ac_cs_silent; then
15001 exec 6>/dev/null
15002 ac_configure_extra_args="$ac_configure_extra_args --silent"
15003 fi
15004
15005 _ACEOF
15006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15007 if \$ac_cs_recheck; then
15008 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15009 shift
15010 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15011 CONFIG_SHELL='$SHELL'
15012 export CONFIG_SHELL
15013 exec "\$@"
15014 fi
15015
15016 _ACEOF
15017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15018 exec 5>>config.log
15019 {
15020 echo
15021 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15022 ## Running $as_me. ##
15023 _ASBOX
15024 $as_echo "$ac_log"
15025 } >&5
15026
15027 _ACEOF
15028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15029 #
15030 # INIT-COMMANDS
15031 #
15032 extrasub_build="$extrasub_build"
15033 extrasub_host="$extrasub_host"
15034 extrasub_target="$extrasub_target"
15035
15036 _ACEOF
15037
15038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15039
15040 # Handling of arguments.
15041 for ac_config_target in $ac_config_targets
15042 do
15043 case $ac_config_target in
15044 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15045
15046 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15047 esac
15048 done
15049
15050
15051 # If the user did not use the arguments to specify the items to instantiate,
15052 # then the envvar interface is used. Set only those that are not.
15053 # We use the long form for the default assignment because of an extremely
15054 # bizarre bug on SunOS 4.1.3.
15055 if $ac_need_defaults; then
15056 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15057 fi
15058
15059 # Have a temporary directory for convenience. Make it in the build tree
15060 # simply because there is no reason against having it here, and in addition,
15061 # creating and moving files from /tmp can sometimes cause problems.
15062 # Hook for its removal unless debugging.
15063 # Note that there is a small window in which the directory will not be cleaned:
15064 # after its creation but before its name has been assigned to `$tmp'.
15065 $debug ||
15066 {
15067 tmp=
15068 trap 'exit_status=$?
15069 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15070 ' 0
15071 trap 'as_fn_exit 1' 1 2 13 15
15072 }
15073 # Create a (secure) tmp directory for tmp files.
15074
15075 {
15076 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15077 test -n "$tmp" && test -d "$tmp"
15078 } ||
15079 {
15080 tmp=./conf$$-$RANDOM
15081 (umask 077 && mkdir "$tmp")
15082 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15083
15084 # Set up the scripts for CONFIG_FILES section.
15085 # No need to generate them if there are no CONFIG_FILES.
15086 # This happens for instance with `./config.status config.h'.
15087 if test -n "$CONFIG_FILES"; then
15088
15089 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15090 ac_cs_awk_getline=:
15091 ac_cs_awk_pipe_init=
15092 ac_cs_awk_read_file='
15093 while ((getline aline < (F[key])) > 0)
15094 print(aline)
15095 close(F[key])'
15096 ac_cs_awk_pipe_fini=
15097 else
15098 ac_cs_awk_getline=false
15099 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15100 ac_cs_awk_read_file='
15101 print "|#_!!_#|"
15102 print "cat " F[key] " &&"
15103 '$ac_cs_awk_pipe_init
15104 # The final `:' finishes the AND list.
15105 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15106 fi
15107 ac_cr=`echo X | tr X '\015'`
15108 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15109 # But we know of no other shell where ac_cr would be empty at this
15110 # point, so we can use a bashism as a fallback.
15111 if test "x$ac_cr" = x; then
15112 eval ac_cr=\$\'\\r\'
15113 fi
15114 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15115 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15116 ac_cs_awk_cr='\r'
15117 else
15118 ac_cs_awk_cr=$ac_cr
15119 fi
15120
15121 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15122 _ACEOF
15123
15124 # Create commands to substitute file output variables.
15125 {
15126 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15127 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15128 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15129 echo "_ACAWK" &&
15130 echo "_ACEOF"
15131 } >conf$$files.sh &&
15132 . ./conf$$files.sh ||
15133 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15134 rm -f conf$$files.sh
15135
15136 {
15137 echo "cat >conf$$subs.awk <<_ACEOF" &&
15138 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15139 echo "_ACEOF"
15140 } >conf$$subs.sh ||
15141 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15142 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15143 ac_delim='%!_!# '
15144 for ac_last_try in false false false false false :; do
15145 . ./conf$$subs.sh ||
15146 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15147
15148 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15149 if test $ac_delim_n = $ac_delim_num; then
15150 break
15151 elif $ac_last_try; then
15152 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15153 else
15154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15155 fi
15156 done
15157 rm -f conf$$subs.sh
15158
15159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15160 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15161 _ACEOF
15162 sed -n '
15163 h
15164 s/^/S["/; s/!.*/"]=/
15165 p
15166 g
15167 s/^[^!]*!//
15168 :repl
15169 t repl
15170 s/'"$ac_delim"'$//
15171 t delim
15172 :nl
15173 h
15174 s/\(.\{148\}\).*/\1/
15175 t more1
15176 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15177 p
15178 n
15179 b repl
15180 :more1
15181 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15182 p
15183 g
15184 s/.\{148\}//
15185 t nl
15186 :delim
15187 h
15188 s/\(.\{148\}\).*/\1/
15189 t more2
15190 s/["\\]/\\&/g; s/^/"/; s/$/"/
15191 p
15192 b
15193 :more2
15194 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15195 p
15196 g
15197 s/.\{148\}//
15198 t delim
15199 ' <conf$$subs.awk | sed '
15200 /^[^""]/{
15201 N
15202 s/\n//
15203 }
15204 ' >>$CONFIG_STATUS || ac_write_fail=1
15205 rm -f conf$$subs.awk
15206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15207 _ACAWK
15208 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15209 for (key in S) S_is_set[key] = 1
15210 FS = "\a"
15211 \$ac_cs_awk_pipe_init
15212 }
15213 {
15214 line = $ 0
15215 nfields = split(line, field, "@")
15216 substed = 0
15217 len = length(field[1])
15218 for (i = 2; i < nfields; i++) {
15219 key = field[i]
15220 keylen = length(key)
15221 if (S_is_set[key]) {
15222 value = S[key]
15223 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15224 len += length(value) + length(field[++i])
15225 substed = 1
15226 } else
15227 len += 1 + keylen
15228 }
15229 if (nfields == 3 && !substed) {
15230 key = field[2]
15231 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15232 \$ac_cs_awk_read_file
15233 next
15234 }
15235 }
15236 print line
15237 }
15238 \$ac_cs_awk_pipe_fini
15239 _ACAWK
15240 _ACEOF
15241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15242 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15243 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15244 else
15245 cat
15246 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15247 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15248 _ACEOF
15249
15250 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15251 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15252 # trailing colons and then remove the whole line if VPATH becomes empty
15253 # (actually we leave an empty line to preserve line numbers).
15254 if test "x$srcdir" = x.; then
15255 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15256 s/:*\$(srcdir):*/:/
15257 s/:*\${srcdir}:*/:/
15258 s/:*@srcdir@:*/:/
15259 s/^\([^=]*=[ ]*\):*/\1/
15260 s/:*$//
15261 s/^[^=]*=[ ]*$//
15262 }'
15263 fi
15264
15265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15266 fi # test -n "$CONFIG_FILES"
15267
15268
15269 eval set X " :F $CONFIG_FILES "
15270 shift
15271 for ac_tag
15272 do
15273 case $ac_tag in
15274 :[FHLC]) ac_mode=$ac_tag; continue;;
15275 esac
15276 case $ac_mode$ac_tag in
15277 :[FHL]*:*);;
15278 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15279 :[FH]-) ac_tag=-:-;;
15280 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15281 esac
15282 ac_save_IFS=$IFS
15283 IFS=:
15284 set x $ac_tag
15285 IFS=$ac_save_IFS
15286 shift
15287 ac_file=$1
15288 shift
15289
15290 case $ac_mode in
15291 :L) ac_source=$1;;
15292 :[FH])
15293 ac_file_inputs=
15294 for ac_f
15295 do
15296 case $ac_f in
15297 -) ac_f="$tmp/stdin";;
15298 *) # Look for the file first in the build tree, then in the source tree
15299 # (if the path is not absolute). The absolute path cannot be DOS-style,
15300 # because $ac_f cannot contain `:'.
15301 test -f "$ac_f" ||
15302 case $ac_f in
15303 [\\/$]*) false;;
15304 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15305 esac ||
15306 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15307 esac
15308 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15309 as_fn_append ac_file_inputs " '$ac_f'"
15310 done
15311
15312 # Let's still pretend it is `configure' which instantiates (i.e., don't
15313 # use $as_me), people would be surprised to read:
15314 # /* config.h. Generated by config.status. */
15315 configure_input='Generated from '`
15316 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15317 `' by configure.'
15318 if test x"$ac_file" != x-; then
15319 configure_input="$ac_file. $configure_input"
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15321 $as_echo "$as_me: creating $ac_file" >&6;}
15322 fi
15323 # Neutralize special characters interpreted by sed in replacement strings.
15324 case $configure_input in #(
15325 *\&* | *\|* | *\\* )
15326 ac_sed_conf_input=`$as_echo "$configure_input" |
15327 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15328 *) ac_sed_conf_input=$configure_input;;
15329 esac
15330
15331 case $ac_tag in
15332 *:-:* | *:-) cat >"$tmp/stdin" \
15333 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15334 esac
15335 ;;
15336 esac
15337
15338 ac_dir=`$as_dirname -- "$ac_file" ||
15339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15340 X"$ac_file" : 'X\(//\)[^/]' \| \
15341 X"$ac_file" : 'X\(//\)$' \| \
15342 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15343 $as_echo X"$ac_file" |
15344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15345 s//\1/
15346 q
15347 }
15348 /^X\(\/\/\)[^/].*/{
15349 s//\1/
15350 q
15351 }
15352 /^X\(\/\/\)$/{
15353 s//\1/
15354 q
15355 }
15356 /^X\(\/\).*/{
15357 s//\1/
15358 q
15359 }
15360 s/.*/./; q'`
15361 as_dir="$ac_dir"; as_fn_mkdir_p
15362 ac_builddir=.
15363
15364 case "$ac_dir" in
15365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15366 *)
15367 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15368 # A ".." for each directory in $ac_dir_suffix.
15369 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15370 case $ac_top_builddir_sub in
15371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15373 esac ;;
15374 esac
15375 ac_abs_top_builddir=$ac_pwd
15376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15377 # for backward compatibility:
15378 ac_top_builddir=$ac_top_build_prefix
15379
15380 case $srcdir in
15381 .) # We are building in place.
15382 ac_srcdir=.
15383 ac_top_srcdir=$ac_top_builddir_sub
15384 ac_abs_top_srcdir=$ac_pwd ;;
15385 [\\/]* | ?:[\\/]* ) # Absolute name.
15386 ac_srcdir=$srcdir$ac_dir_suffix;
15387 ac_top_srcdir=$srcdir
15388 ac_abs_top_srcdir=$srcdir ;;
15389 *) # Relative name.
15390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15391 ac_top_srcdir=$ac_top_build_prefix$srcdir
15392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15393 esac
15394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15395
15396
15397 case $ac_mode in
15398 :F)
15399 #
15400 # CONFIG_FILE
15401 #
15402
15403 case $INSTALL in
15404 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15405 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15406 esac
15407 _ACEOF
15408
15409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15410 # If the template does not know about datarootdir, expand it.
15411 # FIXME: This hack should be removed a few years after 2.60.
15412 ac_datarootdir_hack=; ac_datarootdir_seen=
15413 ac_sed_dataroot='
15414 /datarootdir/ {
15415 p
15416 q
15417 }
15418 /@datadir@/p
15419 /@docdir@/p
15420 /@infodir@/p
15421 /@localedir@/p
15422 /@mandir@/p'
15423 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15424 *datarootdir*) ac_datarootdir_seen=yes;;
15425 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15427 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15428 _ACEOF
15429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15430 ac_datarootdir_hack='
15431 s&@datadir@&$datadir&g
15432 s&@docdir@&$docdir&g
15433 s&@infodir@&$infodir&g
15434 s&@localedir@&$localedir&g
15435 s&@mandir@&$mandir&g
15436 s&\\\${datarootdir}&$datarootdir&g' ;;
15437 esac
15438 _ACEOF
15439
15440 # Neutralize VPATH when `$srcdir' = `.'.
15441 # Shell code in configure.ac might set extrasub.
15442 # FIXME: do we really want to maintain this feature?
15443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15444 ac_sed_extra="$ac_vpsub
15445 $extrasub
15446 _ACEOF
15447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15448 :t
15449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15450 s|@configure_input@|$ac_sed_conf_input|;t t
15451 s&@top_builddir@&$ac_top_builddir_sub&;t t
15452 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15453 s&@srcdir@&$ac_srcdir&;t t
15454 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15455 s&@top_srcdir@&$ac_top_srcdir&;t t
15456 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15457 s&@builddir@&$ac_builddir&;t t
15458 s&@abs_builddir@&$ac_abs_builddir&;t t
15459 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15460 s&@INSTALL@&$ac_INSTALL&;t t
15461 $ac_datarootdir_hack
15462 "
15463 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15464 if $ac_cs_awk_getline; then
15465 $AWK -f "$tmp/subs.awk"
15466 else
15467 $AWK -f "$tmp/subs.awk" | $SHELL
15468 fi >$tmp/out \
15469 || as_fn_error "could not create $ac_file" "$LINENO" 5
15470
15471 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15472 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15475 which seems to be undefined. Please make sure it is defined." >&5
15476 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15477 which seems to be undefined. Please make sure it is defined." >&2;}
15478
15479 rm -f "$tmp/stdin"
15480 case $ac_file in
15481 -) cat "$tmp/out" && rm -f "$tmp/out";;
15482 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15483 esac \
15484 || as_fn_error "could not create $ac_file" "$LINENO" 5
15485 ;;
15486
15487
15488
15489 esac
15490
15491
15492 case $ac_file$ac_mode in
15493 "Makefile":F) sed "$extrasub_build" Makefile |
15494 sed "$extrasub_host" |
15495 sed "$extrasub_target" > mf$$
15496 mv -f mf$$ Makefile ;;
15497
15498 esac
15499 done # for ac_tag
15500
15501
15502 as_fn_exit 0
15503 _ACEOF
15504 ac_clean_files=$ac_clean_files_save
15505
15506 test $ac_write_fail = 0 ||
15507 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15508
15509
15510 # configure is writing to config.log, and then calls config.status.
15511 # config.status does its own redirection, appending to config.log.
15512 # Unfortunately, on DOS this fails, as config.log is still kept open
15513 # by configure, so config.status won't be able to write to it; its
15514 # output is simply discarded. So we exec the FD to /dev/null,
15515 # effectively closing config.log, so it can be properly (re)opened and
15516 # appended to by config.status. When coming back to configure, we
15517 # need to make the FD available again.
15518 if test "$no_create" != yes; then
15519 ac_cs_success=:
15520 ac_config_status_args=
15521 test "$silent" = yes &&
15522 ac_config_status_args="$ac_config_status_args --quiet"
15523 exec 5>/dev/null
15524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15525 exec 5>>config.log
15526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15527 # would make configure fail if this is the last instruction.
15528 $ac_cs_success || as_fn_exit $?
15529 fi
15530 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15532 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15533 fi
15534