configure.ac (extra_isl_gmp_configure_flags): Initialize and subst.
[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 extra_cloog_isl_configure_flags
650 islinc
651 isllibs
652 poststage1_ldflags
653 poststage1_libs
654 stage1_libs
655 stage1_ldflags
656 extra_isl_gmp_configure_flags
657 extra_mpc_mpfr_configure_flags
658 extra_mpc_gmp_configure_flags
659 extra_mpfr_configure_flags
660 gmpinc
661 gmplibs
662 do_compare
663 GNATMAKE
664 GNATBIND
665 ac_ct_CXX
666 CXXFLAGS
667 CXX
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
674 CC
675 EXTRA_CONFIGARGS_LIBJAVA
676 target_subdir
677 host_subdir
678 build_subdir
679 build_libsubdir
680 AWK
681 SED
682 LN_S
683 LN
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 target_noncanonical
696 host_noncanonical
697 build_noncanonical
698 build_os
699 build_vendor
700 build_cpu
701 build
702 TOPLEVEL_CONFIGURE_ARGUMENTS
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_URL
734 PACKAGE_BUGREPORT
735 PACKAGE_STRING
736 PACKAGE_VERSION
737 PACKAGE_TARNAME
738 PACKAGE_NAME
739 PATH_SEPARATOR
740 SHELL'
741 ac_subst_files='serialization_dependencies
742 host_makefile_frag
743 target_makefile_frag
744 alphaieee_frag
745 ospace_frag'
746 ac_user_opts='
747 enable_option_checking
748 with_build_libsubdir
749 enable_gold
750 enable_ld
751 enable_libquadmath
752 enable_libquadmath_support
753 enable_libada
754 enable_libssp
755 enable_static_libjava
756 enable_bootstrap
757 enable_build_with_cxx
758 enable_build_poststage1_with_cxx
759 with_mpc
760 with_mpc_include
761 with_mpc_lib
762 with_mpfr_dir
763 with_mpfr
764 with_mpfr_include
765 with_mpfr_lib
766 with_gmp_dir
767 with_gmp
768 with_gmp_include
769 with_gmp_lib
770 with_host_libstdcxx
771 with_stage1_ldflags
772 with_stage1_libs
773 with_boot_libs
774 with_boot_ldflags
775 with_isl
776 with_isl_include
777 with_isl_lib
778 enable_isl_version_check
779 with_cloog
780 with_cloog_include
781 with_cloog_lib
782 enable_cloog_version_check
783 enable_lto
784 enable_stage1_languages
785 enable_objc_gc
786 with_build_sysroot
787 with_debug_prefix_map
788 with_build_config
789 enable_serial_configure
790 with_build_time_tools
791 enable_maintainer_mode
792 enable_stage1_checking
793 enable_werror
794 '
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
798 CC
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
803 CXX
804 CXXFLAGS
805 CCC
806 build_configargs
807 host_configargs
808 target_configargs
809 AR
810 AS
811 DLLTOOL
812 LD
813 LIPO
814 NM
815 RANLIB
816 STRIP
817 WINDRES
818 WINDMC
819 OBJCOPY
820 OBJDUMP
821 READELF
822 CC_FOR_TARGET
823 CXX_FOR_TARGET
824 GCC_FOR_TARGET
825 GCJ_FOR_TARGET
826 GFORTRAN_FOR_TARGET
827 GOC_FOR_TARGET
828 AR_FOR_TARGET
829 AS_FOR_TARGET
830 DLLTOOL_FOR_TARGET
831 LD_FOR_TARGET
832 LIPO_FOR_TARGET
833 NM_FOR_TARGET
834 OBJDUMP_FOR_TARGET
835 RANLIB_FOR_TARGET
836 READELF_FOR_TARGET
837 STRIP_FOR_TARGET
838 WINDRES_FOR_TARGET
839 WINDMC_FOR_TARGET'
840
841
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
863
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
889
890 ac_prev=
891 ac_dashdash=
892 for ac_option
893 do
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
899 fi
900
901 case $ac_option in
902 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *) ac_optarg=yes ;;
904 esac
905
906 # Accept the important Cygnus configure options, so we can diagnose typos.
907
908 case $ac_dashdash$ac_option in
909 --)
910 ac_dashdash=yes ;;
911
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
916
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
921
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
928
929 --config-cache | -C)
930 cache_file=config.cache ;;
931
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
936
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
943
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
959
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
964
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
969
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
985
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
994
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
998
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1005
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1010
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1016
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1023
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1028
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1033
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1040
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1045
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1052
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1057
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1061
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1065
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1069
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1078
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1083
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1090
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1097
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1114
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1119
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1124
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1128
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130 ac_prev=sbindir ;;
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132 | --sbi=* | --sb=*)
1133 sbindir=$ac_optarg ;;
1134
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1138 | --sha | --sh)
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143 | --sha=* | --sh=*)
1144 sharedstatedir=$ac_optarg ;;
1145
1146 -site | --site | --sit)
1147 ac_prev=site ;;
1148 -site=* | --site=* | --sit=*)
1149 site=$ac_optarg ;;
1150
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152 ac_prev=srcdir ;;
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1155
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1162
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1167
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 verbose=yes ;;
1170
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1173
1174 -with-* | --with-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=\$ac_optarg ;;
1189
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1198 *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1203 esac
1204 eval with_$ac_useropt=no ;;
1205
1206 --x)
1207 # Obsolete; use --with-x.
1208 with_x=yes ;;
1209
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1216
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1223
1224 -*) as_fn_error "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information."
1226 ;;
1227
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1234 esac
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1237
1238 *)
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244 ;;
1245
1246 esac
1247 done
1248
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error "missing argument to $ac_option"
1252 fi
1253
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1256 no) ;;
1257 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1260 fi
1261
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1267 do
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1282
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1289
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1295 If a cross compiler is detected then cross compile mode will be used." >&2
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1298 fi
1299 fi
1300
1301 ac_tool_prefix=
1302 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303
1304 test "$silent" = yes && exec 6>/dev/null
1305
1306
1307 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308 ac_ls_di=`ls -di .` &&
1309 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310 as_fn_error "working directory cannot be determined"
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 as_fn_error "pwd does not report name of working directory"
1313
1314
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)$/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\).*/{
1338 s//\1/
1339 q
1340 }
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1345 fi
1346 else
1347 ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1352 fi
1353 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 ac_abs_confdir=`(
1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1356 pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1360 fi
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 case $srcdir in
1368 *" "*)
1369 as_fn_error "path to source, $srcdir, contains spaces"
1370 ;;
1371 esac
1372 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1373
1374 for ac_var in $ac_precious_vars; do
1375 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_env_${ac_var}_value=\$${ac_var}
1377 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379 done
1380
1381 #
1382 # Report the --help message.
1383 #
1384 if test "$ac_init_help" = "long"; then
1385 # Omit some internal or obsolete options to make the list less imposing.
1386 # This message is too long to be a string in the A/UX 3.1 sh.
1387 cat <<_ACEOF
1388 \`configure' configures this package to adapt to many kinds of systems.
1389
1390 Usage: $0 [OPTION]... [VAR=VALUE]...
1391
1392 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393 VAR=VALUE. See below for descriptions of some of the useful variables.
1394
1395 Defaults for the options are specified in brackets.
1396
1397 Configuration:
1398 -h, --help display this help and exit
1399 --help=short display options specific to this package
1400 --help=recursive display the short help of all the included packages
1401 -V, --version display version information and exit
1402 -q, --quiet, --silent do not print \`checking...' messages
1403 --cache-file=FILE cache test results in FILE [disabled]
1404 -C, --config-cache alias for \`--cache-file=config.cache'
1405 -n, --no-create do not create output files
1406 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407
1408 Installation directories:
1409 --prefix=PREFIX install architecture-independent files in PREFIX
1410 [$ac_default_prefix]
1411 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 [PREFIX]
1413
1414 By default, \`make install' will install all the files in
1415 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1416 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1417 for instance \`--prefix=\$HOME'.
1418
1419 For better control, use the options below.
1420
1421 Fine tuning of the installation directories:
1422 --bindir=DIR user executables [EPREFIX/bin]
1423 --sbindir=DIR system admin executables [EPREFIX/sbin]
1424 --libexecdir=DIR program executables [EPREFIX/libexec]
1425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1427 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1437 --htmldir=DIR html documentation [DOCDIR]
1438 --dvidir=DIR dvi documentation [DOCDIR]
1439 --pdfdir=DIR pdf documentation [DOCDIR]
1440 --psdir=DIR ps documentation [DOCDIR]
1441 _ACEOF
1442
1443 cat <<\_ACEOF
1444
1445 Program names:
1446 --program-prefix=PREFIX prepend PREFIX to installed program names
1447 --program-suffix=SUFFIX append SUFFIX to installed program names
1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449
1450 System types:
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1453 --target=TARGET configure for building compilers for TARGET [HOST]
1454 _ACEOF
1455 fi
1456
1457 if test -n "$ac_init_help"; then
1458
1459 cat <<\_ACEOF
1460
1461 Optional Features:
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1466 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1467 --disable-libquadmath do not build libquadmath directory
1468 --disable-libquadmath-support
1469 disable libquadmath support for Fortran
1470 --enable-libada build libada directory
1471 --enable-libssp build libssp directory
1472 --enable-static-libjava[=ARG]
1473 build static libjava [default=no]
1474 --enable-bootstrap enable bootstrapping [yes if native build]
1475 --enable-build-with-cxx build with C++ compiler instead of C compiler
1476 --enable-build-poststage1-with-cxx
1477 build stages 2 and 3 with C++, not C
1478 --disable-isl-version-check
1479 disable check for ISL version
1480 --disable-cloog-version-check
1481 disable check for CLooG version
1482 --enable-lto enable link time optimization support
1483 --enable-stage1-languages[=all]
1484 choose additional languages to build during stage1.
1485 Mostly useful for compiler development
1486 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1487 Objective-C runtime
1488 --enable-serial-[{host,target,build}-]configure
1489 force sequential configuration of sub-packages for
1490 the host, target or build machine, or all
1491 sub-packages
1492 --enable-maintainer-mode
1493 enable make rules and dependencies not useful (and
1494 sometimes confusing) to the casual installer
1495 --enable-stage1-checking[=all]
1496 choose additional checking for stage1 of the
1497 compiler
1498 --enable-werror enable -Werror in bootstrap stage2 and later
1499
1500 Optional Packages:
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-build-libsubdir=DIR Directory where to find libraries for build system
1504 --with-mpc=PATH specify prefix directory for installed MPC package.
1505 Equivalent to --with-mpc-include=PATH/include plus
1506 --with-mpc-lib=PATH/lib
1507 --with-mpc-include=PATH specify directory for installed MPC include files
1508 --with-mpc-lib=PATH specify directory for the installed MPC library
1509 --with-mpfr-dir=PATH this option has been REMOVED
1510 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1511 Equivalent to --with-mpfr-include=PATH/include plus
1512 --with-mpfr-lib=PATH/lib
1513 --with-mpfr-include=PATH
1514 specify directory for installed MPFR include files
1515 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1516 --with-gmp-dir=PATH this option has been REMOVED
1517 --with-gmp=PATH specify prefix directory for the installed GMP
1518 package. Equivalent to
1519 --with-gmp-include=PATH/include plus
1520 --with-gmp-lib=PATH/lib
1521 --with-gmp-include=PATH specify directory for installed GMP include files
1522 --with-gmp-lib=PATH specify directory for the installed GMP library
1523 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1524 linking with PPL
1525 --with-stage1-ldflags=FLAGS
1526 linker flags for stage1
1527 --with-stage1-libs=LIBS libraries for stage1
1528 --with-boot-libs=LIBS libraries for stage2 and later
1529 --with-boot-ldflags=FLAGS
1530 linker flags for stage2 and later
1531 --with-isl=PATH Specify prefix directory for the installed ISL
1532 package. Equivalent to
1533 --with-isl-include=PATH/include plus
1534 --with-isl-lib=PATH/lib
1535 --with-isl-include=PATH Specify directory for installed ISL include files
1536 --with-isl-lib=PATH Specify the directory for the installed ISL library
1537 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1538 package. Equivalent to
1539 --with-cloog-include=PATH/include plus
1540 --with-cloog-lib=PATH/lib
1541 --with-cloog-include=PATH
1542 Specify directory for installed CLooG include files
1543 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1544 library
1545 --with-build-sysroot=SYSROOT
1546 use sysroot as the system root during the build
1547 --with-debug-prefix-map='A=B C=D ...'
1548 map A to B, C to D ... in debug information
1549 --with-build-config='NAME NAME2...'
1550 use config/NAME.mk build configuration
1551 --with-build-time-tools=PATH
1552 use given path to find target tools during the build
1553
1554 Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
1559 LIBS libraries to pass to the linker, e.g. -l<library>
1560 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1561 you have headers in a nonstandard directory <include dir>
1562 CXX C++ compiler command
1563 CXXFLAGS C++ compiler flags
1564 build_configargs
1565 additional configure arguments for build directories
1566 host_configargs
1567 additional configure arguments for host directories
1568 target_configargs
1569 additional configure arguments for target directories
1570 AR AR for the host
1571 AS AS for the host
1572 DLLTOOL DLLTOOL for the host
1573 LD LD for the host
1574 LIPO LIPO for the host
1575 NM NM for the host
1576 RANLIB RANLIB for the host
1577 STRIP STRIP for the host
1578 WINDRES WINDRES for the host
1579 WINDMC WINDMC for the host
1580 OBJCOPY OBJCOPY for the host
1581 OBJDUMP OBJDUMP for the host
1582 READELF READELF for the host
1583 CC_FOR_TARGET
1584 CC for the target
1585 CXX_FOR_TARGET
1586 CXX for the target
1587 GCC_FOR_TARGET
1588 GCC for the target
1589 GCJ_FOR_TARGET
1590 GCJ for the target
1591 GFORTRAN_FOR_TARGET
1592 GFORTRAN for the target
1593 GOC_FOR_TARGET
1594 GOC for the target
1595 AR_FOR_TARGET
1596 AR for the target
1597 AS_FOR_TARGET
1598 AS for the target
1599 DLLTOOL_FOR_TARGET
1600 DLLTOOL for the target
1601 LD_FOR_TARGET
1602 LD for the target
1603 LIPO_FOR_TARGET
1604 LIPO for the target
1605 NM_FOR_TARGET
1606 NM for the target
1607 OBJDUMP_FOR_TARGET
1608 OBJDUMP for the target
1609 RANLIB_FOR_TARGET
1610 RANLIB for the target
1611 READELF_FOR_TARGET
1612 READELF for the target
1613 STRIP_FOR_TARGET
1614 STRIP for the target
1615 WINDRES_FOR_TARGET
1616 WINDRES for the target
1617 WINDMC_FOR_TARGET
1618 WINDMC for the target
1619
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1622
1623 Report bugs to the package provider.
1624 _ACEOF
1625 ac_status=$?
1626 fi
1627
1628 if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631 test -d "$ac_dir" ||
1632 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1633 continue
1634 ac_builddir=.
1635
1636 case "$ac_dir" in
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *)
1639 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1640 # A ".." for each directory in $ac_dir_suffix.
1641 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642 case $ac_top_builddir_sub in
1643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645 esac ;;
1646 esac
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1651
1652 case $srcdir in
1653 .) # We are building in place.
1654 ac_srcdir=.
1655 ac_top_srcdir=$ac_top_builddir_sub
1656 ac_abs_top_srcdir=$ac_pwd ;;
1657 [\\/]* | ?:[\\/]* ) # Absolute name.
1658 ac_srcdir=$srcdir$ac_dir_suffix;
1659 ac_top_srcdir=$srcdir
1660 ac_abs_top_srcdir=$srcdir ;;
1661 *) # Relative name.
1662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663 ac_top_srcdir=$ac_top_build_prefix$srcdir
1664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 esac
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
1668 cd "$ac_dir" || { ac_status=$?; continue; }
1669 # Check for guested configure.
1670 if test -f "$ac_srcdir/configure.gnu"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673 elif test -f "$ac_srcdir/configure"; then
1674 echo &&
1675 $SHELL "$ac_srcdir/configure" --help=recursive
1676 else
1677 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 fi || ac_status=$?
1679 cd "$ac_pwd" || { ac_status=$?; break; }
1680 done
1681 fi
1682
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1685 cat <<\_ACEOF
1686 configure
1687 generated by GNU Autoconf 2.64
1688
1689 Copyright (C) 2009 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1692 _ACEOF
1693 exit
1694 fi
1695
1696 ## ------------------------ ##
1697 ## Autoconf initialization. ##
1698 ## ------------------------ ##
1699
1700 # ac_fn_c_try_compile LINENO
1701 # --------------------------
1702 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_compile ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext
1707 if { { ac_try="$ac_compile"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_compile") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest.$ac_objext; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1730
1731 ac_retval=1
1732 fi
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734 return $ac_retval
1735
1736 } # ac_fn_c_try_compile
1737
1738 # ac_fn_cxx_try_compile LINENO
1739 # ----------------------------
1740 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_cxx_try_compile ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext
1745 if { { ac_try="$ac_compile"
1746 case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_compile") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1758 fi
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && {
1761 test -z "$ac_cxx_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest.$ac_objext; then :
1764 ac_retval=0
1765 else
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=1
1770 fi
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772 return $ac_retval
1773
1774 } # ac_fn_cxx_try_compile
1775
1776 # ac_fn_c_try_link LINENO
1777 # -----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded.
1779 ac_fn_c_try_link ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 rm -f conftest.$ac_objext conftest$ac_exeext
1783 if { { ac_try="$ac_link"
1784 case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>conftest.err
1791 ac_status=$?
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1796 fi
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && {
1799 test -z "$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 } && test -s conftest$ac_exeext && {
1802 test "$cross_compiling" = yes ||
1803 $as_test_x conftest$ac_exeext
1804 }; then :
1805 ac_retval=0
1806 else
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=1
1811 fi
1812 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1813 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1814 # interfere with the next link command; also delete a directory that is
1815 # left behind by Apple's compiler. We do this before executing the actions.
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818 return $ac_retval
1819
1820 } # ac_fn_c_try_link
1821
1822 # ac_fn_c_try_run LINENO
1823 # ----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825 # that executables *can* be run.
1826 ac_fn_c_try_run ()
1827 {
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_link"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>&5
1837 ac_status=$?
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840 { { case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_try") 2>&5
1847 ac_status=$?
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; }; }; then :
1850 ac_retval=0
1851 else
1852 $as_echo "$as_me: program exited with status $ac_status" >&5
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 ac_retval=$ac_status
1857 fi
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860 return $ac_retval
1861
1862 } # ac_fn_c_try_run
1863 cat >config.log <<_ACEOF
1864 This file contains any messages produced by compilers while
1865 running configure, to aid debugging if configure makes a mistake.
1866
1867 It was created by $as_me, which was
1868 generated by GNU Autoconf 2.64. Invocation command line was
1869
1870 $ $0 $@
1871
1872 _ACEOF
1873 exec 5>>config.log
1874 {
1875 cat <<_ASUNAME
1876 ## --------- ##
1877 ## Platform. ##
1878 ## --------- ##
1879
1880 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1881 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1882 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1883 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1884 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1885
1886 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1887 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1888
1889 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1890 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1891 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1892 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1893 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1894 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1895 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1896
1897 _ASUNAME
1898
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902 IFS=$as_save_IFS
1903 test -z "$as_dir" && as_dir=.
1904 $as_echo "PATH: $as_dir"
1905 done
1906 IFS=$as_save_IFS
1907
1908 } >&5
1909
1910 cat >&5 <<_ACEOF
1911
1912
1913 ## ----------- ##
1914 ## Core tests. ##
1915 ## ----------- ##
1916
1917 _ACEOF
1918
1919
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_configure_args=
1926 ac_configure_args0=
1927 ac_configure_args1=
1928 ac_must_keep_next=false
1929 for ac_pass in 1 2
1930 do
1931 for ac_arg
1932 do
1933 case $ac_arg in
1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936 | -silent | --silent | --silen | --sile | --sil)
1937 continue ;;
1938 *\'*)
1939 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 esac
1941 case $ac_pass in
1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1943 2)
1944 as_fn_append ac_configure_args1 " '$ac_arg'"
1945 if test $ac_must_keep_next = true; then
1946 ac_must_keep_next=false # Got value, back to normal.
1947 else
1948 case $ac_arg in
1949 *=* | --config-cache | -C | -disable-* | --disable-* \
1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952 | -with-* | --with-* | -without-* | --without-* | --x)
1953 case "$ac_configure_args0 " in
1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955 esac
1956 ;;
1957 -* ) ac_must_keep_next=true ;;
1958 esac
1959 fi
1960 as_fn_append ac_configure_args " '$ac_arg'"
1961 ;;
1962 esac
1963 done
1964 done
1965 { ac_configure_args0=; unset ac_configure_args0;}
1966 { ac_configure_args1=; unset ac_configure_args1;}
1967
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log. We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1974 # Save into config.log some information that might help in debugging.
1975 {
1976 echo
1977
1978 cat <<\_ASBOX
1979 ## ---------------- ##
1980 ## Cache variables. ##
1981 ## ---------------- ##
1982 _ASBOX
1983 echo
1984 # The following way of writing the cache mishandles newlines in values,
1985 (
1986 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in #(
1989 *${as_nl}*)
1990 case $ac_var in #(
1991 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1992 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1993 esac
1994 case $ac_var in #(
1995 _ | IFS | as_nl) ;; #(
1996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1997 *) { eval $ac_var=; unset $ac_var;} ;;
1998 esac ;;
1999 esac
2000 done
2001 (set) 2>&1 |
2002 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2003 *${as_nl}ac_space=\ *)
2004 sed -n \
2005 "s/'\''/'\''\\\\'\'''\''/g;
2006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2007 ;; #(
2008 *)
2009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2010 ;;
2011 esac |
2012 sort
2013 )
2014 echo
2015
2016 cat <<\_ASBOX
2017 ## ----------------- ##
2018 ## Output variables. ##
2019 ## ----------------- ##
2020 _ASBOX
2021 echo
2022 for ac_var in $ac_subst_vars
2023 do
2024 eval ac_val=\$$ac_var
2025 case $ac_val in
2026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 esac
2028 $as_echo "$ac_var='\''$ac_val'\''"
2029 done | sort
2030 echo
2031
2032 if test -n "$ac_subst_files"; then
2033 cat <<\_ASBOX
2034 ## ------------------- ##
2035 ## File substitutions. ##
2036 ## ------------------- ##
2037 _ASBOX
2038 echo
2039 for ac_var in $ac_subst_files
2040 do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in
2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 esac
2045 $as_echo "$ac_var='\''$ac_val'\''"
2046 done | sort
2047 echo
2048 fi
2049
2050 if test -s confdefs.h; then
2051 cat <<\_ASBOX
2052 ## ----------- ##
2053 ## confdefs.h. ##
2054 ## ----------- ##
2055 _ASBOX
2056 echo
2057 cat confdefs.h
2058 echo
2059 fi
2060 test "$ac_signal" != 0 &&
2061 $as_echo "$as_me: caught signal $ac_signal"
2062 $as_echo "$as_me: exit $exit_status"
2063 } >&5
2064 rm -f core *.core core.conftest.* &&
2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066 exit $exit_status
2067 ' 0
2068 for ac_signal in 1 2 13 15; do
2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070 done
2071 ac_signal=0
2072
2073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074 rm -f -r conftest* confdefs.h
2075
2076 $as_echo "/* confdefs.h */" > confdefs.h
2077
2078 # Predefined preprocessor variables.
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_NAME "$PACKAGE_NAME"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_STRING "$PACKAGE_STRING"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_URL "$PACKAGE_URL"
2102 _ACEOF
2103
2104
2105 # Let the site file select an alternate cache file if it wants to.
2106 # Prefer an explicitly selected file to automatically selected ones.
2107 ac_site_file1=NONE
2108 ac_site_file2=NONE
2109 if test -n "$CONFIG_SITE"; then
2110 ac_site_file1=$CONFIG_SITE
2111 elif test "x$prefix" != xNONE; then
2112 ac_site_file1=$prefix/share/config.site
2113 ac_site_file2=$prefix/etc/config.site
2114 else
2115 ac_site_file1=$ac_default_prefix/share/config.site
2116 ac_site_file2=$ac_default_prefix/etc/config.site
2117 fi
2118 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2119 do
2120 test "x$ac_site_file" = xNONE && continue
2121 if test -r "$ac_site_file"; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2123 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2124 sed 's/^/| /' "$ac_site_file" >&5
2125 . "$ac_site_file"
2126 fi
2127 done
2128
2129 if test -r "$cache_file"; then
2130 # Some versions of bash will fail to source /dev/null (special
2131 # files actually), so we avoid doing that.
2132 if test -f "$cache_file"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2134 $as_echo "$as_me: loading cache $cache_file" >&6;}
2135 case $cache_file in
2136 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2137 *) . "./$cache_file";;
2138 esac
2139 fi
2140 else
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2142 $as_echo "$as_me: creating cache $cache_file" >&6;}
2143 >$cache_file
2144 fi
2145
2146 # Check that the precious variables saved in the cache have kept the same
2147 # value.
2148 ac_cache_corrupted=false
2149 for ac_var in $ac_precious_vars; do
2150 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2151 eval ac_new_set=\$ac_env_${ac_var}_set
2152 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2153 eval ac_new_val=\$ac_env_${ac_var}_value
2154 case $ac_old_set,$ac_new_set in
2155 set,)
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2157 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2158 ac_cache_corrupted=: ;;
2159 ,set)
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2161 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2162 ac_cache_corrupted=: ;;
2163 ,);;
2164 *)
2165 if test "x$ac_old_val" != "x$ac_new_val"; then
2166 # differences in whitespace do not lead to failure.
2167 ac_old_val_w=`echo x $ac_old_val`
2168 ac_new_val_w=`echo x $ac_new_val`
2169 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2171 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2172 ac_cache_corrupted=:
2173 else
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2175 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2176 eval $ac_var=\$ac_old_val
2177 fi
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2179 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2181 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2182 fi;;
2183 esac
2184 # Pass precious variables to config.status.
2185 if test "$ac_new_set" = set; then
2186 case $ac_new_val in
2187 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2188 *) ac_arg=$ac_var=$ac_new_val ;;
2189 esac
2190 case " $ac_configure_args " in
2191 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2192 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2193 esac
2194 fi
2195 done
2196 if $ac_cache_corrupted; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2200 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2201 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2202 fi
2203 ## -------------------- ##
2204 ## Main body of script. ##
2205 ## -------------------- ##
2206
2207 ac_ext=c
2208 ac_cpp='$CPP $CPPFLAGS'
2209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221 progname=$0
2222 # if PWD already has a value, it is probably wrong.
2223 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2224
2225 # Export original configure arguments for use by sub-configures.
2226 # Quote arguments with shell meta charatcers.
2227 TOPLEVEL_CONFIGURE_ARGUMENTS=
2228 set -- "$progname" "$@"
2229 for ac_arg
2230 do
2231 case "$ac_arg" in
2232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2233 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2234 # if the argument is of the form -foo=baz, quote the baz part only
2235 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2236 *) ;;
2237 esac
2238 # Add the quoted argument to the list.
2239 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2240 done
2241 if test "$silent" = yes; then
2242 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2243 fi
2244 # Remove the initial space we just introduced and, as these will be
2245 # expanded by make, quote '$'.
2246 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2247
2248
2249 # Find the build, host, and target systems.
2250 ac_aux_dir=
2251 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2252 for ac_t in install-sh install.sh shtool; do
2253 if test -f "$ac_dir/$ac_t"; then
2254 ac_aux_dir=$ac_dir
2255 ac_install_sh="$ac_aux_dir/$ac_t -c"
2256 break 2
2257 fi
2258 done
2259 done
2260 if test -z "$ac_aux_dir"; then
2261 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2262 fi
2263
2264 # These three variables are undocumented and unsupported,
2265 # and are intended to be withdrawn in a future Autoconf release.
2266 # They can cause serious problems if a builder's source tree is in a directory
2267 # whose full name contains unusual characters.
2268 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2269 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2270 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2271
2272
2273 # Make sure we can run config.sub.
2274 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2275 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2276
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2278 $as_echo_n "checking build system type... " >&6; }
2279 if test "${ac_cv_build+set}" = set; then :
2280 $as_echo_n "(cached) " >&6
2281 else
2282 ac_build_alias=$build_alias
2283 test "x$ac_build_alias" = x &&
2284 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2285 test "x$ac_build_alias" = x &&
2286 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2287 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2288 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2289
2290 fi
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2292 $as_echo "$ac_cv_build" >&6; }
2293 case $ac_cv_build in
2294 *-*-*) ;;
2295 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2296 esac
2297 build=$ac_cv_build
2298 ac_save_IFS=$IFS; IFS='-'
2299 set x $ac_cv_build
2300 shift
2301 build_cpu=$1
2302 build_vendor=$2
2303 shift; shift
2304 # Remember, the first character of IFS is used to create $*,
2305 # except with old shells:
2306 build_os=$*
2307 IFS=$ac_save_IFS
2308 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2309
2310
2311 case ${build_alias} in
2312 "") build_noncanonical=${build} ;;
2313 *) build_noncanonical=${build_alias} ;;
2314 esac
2315
2316
2317
2318 case ${host_alias} in
2319 "") host_noncanonical=${build_noncanonical} ;;
2320 *) host_noncanonical=${host_alias} ;;
2321 esac
2322
2323
2324
2325 case ${target_alias} in
2326 "") target_noncanonical=${host_noncanonical} ;;
2327 *) target_noncanonical=${target_alias} ;;
2328 esac
2329
2330
2331
2332
2333 test "$host_noncanonical" = "$target_noncanonical" &&
2334 test "$program_prefix$program_suffix$program_transform_name" = \
2335 NONENONEs,x,x, &&
2336 program_transform_name=s,y,y,
2337
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2339 $as_echo_n "checking host system type... " >&6; }
2340 if test "${ac_cv_host+set}" = set; then :
2341 $as_echo_n "(cached) " >&6
2342 else
2343 if test "x$host_alias" = x; then
2344 ac_cv_host=$ac_cv_build
2345 else
2346 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2347 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2348 fi
2349
2350 fi
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2352 $as_echo "$ac_cv_host" >&6; }
2353 case $ac_cv_host in
2354 *-*-*) ;;
2355 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2356 esac
2357 host=$ac_cv_host
2358 ac_save_IFS=$IFS; IFS='-'
2359 set x $ac_cv_host
2360 shift
2361 host_cpu=$1
2362 host_vendor=$2
2363 shift; shift
2364 # Remember, the first character of IFS is used to create $*,
2365 # except with old shells:
2366 host_os=$*
2367 IFS=$ac_save_IFS
2368 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2369
2370
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2372 $as_echo_n "checking target system type... " >&6; }
2373 if test "${ac_cv_target+set}" = set; then :
2374 $as_echo_n "(cached) " >&6
2375 else
2376 if test "x$target_alias" = x; then
2377 ac_cv_target=$ac_cv_host
2378 else
2379 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2380 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2381 fi
2382
2383 fi
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2385 $as_echo "$ac_cv_target" >&6; }
2386 case $ac_cv_target in
2387 *-*-*) ;;
2388 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2389 esac
2390 target=$ac_cv_target
2391 ac_save_IFS=$IFS; IFS='-'
2392 set x $ac_cv_target
2393 shift
2394 target_cpu=$1
2395 target_vendor=$2
2396 shift; shift
2397 # Remember, the first character of IFS is used to create $*,
2398 # except with old shells:
2399 target_os=$*
2400 IFS=$ac_save_IFS
2401 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2402
2403
2404 # The aliases save the names the user supplied, while $host etc.
2405 # will get canonicalized.
2406 test -n "$target_alias" &&
2407 test "$program_prefix$program_suffix$program_transform_name" = \
2408 NONENONEs,x,x, &&
2409 program_prefix=${target_alias}-
2410
2411 test "$program_prefix" != NONE &&
2412 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2413 # Use a double $ so make ignores it.
2414 test "$program_suffix" != NONE &&
2415 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2416 # Double any \ or $.
2417 # By default was `s,x,x', remove it if useless.
2418 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2419 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2420
2421
2422
2423 # Get 'install' or 'install-sh' and its variants.
2424 # Find a good install program. We prefer a C program (faster),
2425 # so one script is as good as another. But avoid the broken or
2426 # incompatible versions:
2427 # SysV /etc/install, /usr/sbin/install
2428 # SunOS /usr/etc/install
2429 # IRIX /sbin/install
2430 # AIX /bin/install
2431 # AmigaOS /C/install, which installs bootblocks on floppy discs
2432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2435 # OS/2's system install, which has a completely different semantic
2436 # ./install, which can be erroneously created by make from ./install.sh.
2437 # Reject install programs that cannot install multiple files.
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2439 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2440 if test -z "$INSTALL"; then
2441 if test "${ac_cv_path_install+set}" = set; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 # Account for people who put trailing slashes in PATH elements.
2450 case $as_dir/ in #((
2451 ./ | .// | /[cC]/* | \
2452 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2453 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2454 /usr/ucb/* ) ;;
2455 *)
2456 # OSF1 and SCO ODT 3.0 have their own names for install.
2457 # Don't use installbsd from OSF since it installs stuff as root
2458 # by default.
2459 for ac_prog in ginstall scoinst install; do
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2462 if test $ac_prog = install &&
2463 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2464 # AIX install. It has an incompatible calling convention.
2465 :
2466 elif test $ac_prog = install &&
2467 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2468 # program-specific install script used by HP pwplus--don't use.
2469 :
2470 else
2471 rm -rf conftest.one conftest.two conftest.dir
2472 echo one > conftest.one
2473 echo two > conftest.two
2474 mkdir conftest.dir
2475 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2476 test -s conftest.one && test -s conftest.two &&
2477 test -s conftest.dir/conftest.one &&
2478 test -s conftest.dir/conftest.two
2479 then
2480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2481 break 3
2482 fi
2483 fi
2484 fi
2485 done
2486 done
2487 ;;
2488 esac
2489
2490 done
2491 IFS=$as_save_IFS
2492
2493 rm -rf conftest.one conftest.two conftest.dir
2494
2495 fi
2496 if test "${ac_cv_path_install+set}" = set; then
2497 INSTALL=$ac_cv_path_install
2498 else
2499 # As a last resort, use the slow shell script. Don't cache a
2500 # value for INSTALL within a source directory, because that will
2501 # break other packages using the cache if that directory is
2502 # removed, or if the value is a relative name.
2503 INSTALL=$ac_install_sh
2504 fi
2505 fi
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2507 $as_echo "$INSTALL" >&6; }
2508
2509 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2510 # It thinks the first close brace ends the variable substitution.
2511 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2512
2513 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2514
2515 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2516
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2518 $as_echo_n "checking whether ln works... " >&6; }
2519 if test "${acx_cv_prog_LN+set}" = set; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 rm -f conftestdata_t
2523 echo >conftestdata_f
2524 if ln conftestdata_f conftestdata_t 2>/dev/null
2525 then
2526 acx_cv_prog_LN=ln
2527 else
2528 acx_cv_prog_LN=no
2529 fi
2530 rm -f conftestdata_f conftestdata_t
2531
2532 fi
2533 if test $acx_cv_prog_LN = no; then
2534 LN="cp"
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2536 $as_echo "no, using $LN" >&6; }
2537 else
2538 LN="$acx_cv_prog_LN"
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2540 $as_echo "yes" >&6; }
2541 fi
2542
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2544 $as_echo_n "checking whether ln -s works... " >&6; }
2545 LN_S=$as_ln_s
2546 if test "$LN_S" = "ln -s"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2548 $as_echo "yes" >&6; }
2549 else
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2551 $as_echo "no, using $LN_S" >&6; }
2552 fi
2553
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2555 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2556 if test "${ac_cv_path_SED+set}" = set; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2560 for ac_i in 1 2 3 4 5 6 7; do
2561 ac_script="$ac_script$as_nl$ac_script"
2562 done
2563 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2564 { ac_script=; unset ac_script;}
2565 if test -z "$SED"; then
2566 ac_path_SED_found=false
2567 # Loop through the user's path and test for each of PROGNAME-LIST
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2570 do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_prog in sed gsed; do
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2576 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2577 # Check for GNU ac_path_SED and select it if it is found.
2578 # Check for GNU $ac_path_SED
2579 case `"$ac_path_SED" --version 2>&1` in
2580 *GNU*)
2581 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2582 *)
2583 ac_count=0
2584 $as_echo_n 0123456789 >"conftest.in"
2585 while :
2586 do
2587 cat "conftest.in" "conftest.in" >"conftest.tmp"
2588 mv "conftest.tmp" "conftest.in"
2589 cp "conftest.in" "conftest.nl"
2590 $as_echo '' >> "conftest.nl"
2591 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2593 as_fn_arith $ac_count + 1 && ac_count=$as_val
2594 if test $ac_count -gt ${ac_path_SED_max-0}; then
2595 # Best one so far, save it but keep looking for a better one
2596 ac_cv_path_SED="$ac_path_SED"
2597 ac_path_SED_max=$ac_count
2598 fi
2599 # 10*(2^10) chars as input seems more than enough
2600 test $ac_count -gt 10 && break
2601 done
2602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2603 esac
2604
2605 $ac_path_SED_found && break 3
2606 done
2607 done
2608 done
2609 IFS=$as_save_IFS
2610 if test -z "$ac_cv_path_SED"; then
2611 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2612 fi
2613 else
2614 ac_cv_path_SED=$SED
2615 fi
2616
2617 fi
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2619 $as_echo "$ac_cv_path_SED" >&6; }
2620 SED="$ac_cv_path_SED"
2621 rm -f conftest.sed
2622
2623 for ac_prog in gawk mawk nawk awk
2624 do
2625 # Extract the first word of "$ac_prog", so it can be a program name with args.
2626 set dummy $ac_prog; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if test "${ac_cv_prog_AWK+set}" = set; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -n "$AWK"; then
2633 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_AWK="$ac_prog"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2645 fi
2646 done
2647 done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 AWK=$ac_cv_prog_AWK
2653 if test -n "$AWK"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2655 $as_echo "$AWK" >&6; }
2656 else
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2659 fi
2660
2661
2662 test -n "$AWK" && break
2663 done
2664
2665
2666 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2667
2668 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2669 # a relative path.
2670 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2671 INSTALL="${srcpwd}/install-sh -c"
2672 fi
2673
2674 # Set srcdir to "." if that's what it is.
2675 # This is important for multilib support.
2676 pwd=`${PWDCMD-pwd}`
2677 if test "${pwd}" = "${srcpwd}" ; then
2678 srcdir=.
2679 fi
2680
2681 topsrcdir=$srcpwd
2682
2683 extra_host_args=
2684
2685 ### To add a new directory to the tree, first choose whether it is a target
2686 ### or a host dependent tool. Then put it into the appropriate list
2687 ### (library or tools, host or target), doing a dependency sort.
2688
2689 # Subdirs will be configured in the order listed in build_configdirs,
2690 # configdirs, or target_configdirs; see the serialization section below.
2691
2692 # Dependency sorting is only needed when *configuration* must be done in
2693 # a particular order. In all cases a dependency should be specified in
2694 # the Makefile, whether or not it's implicitly specified here.
2695
2696 # Double entries in build_configdirs, configdirs, or target_configdirs may
2697 # cause circular dependencies and break everything horribly.
2698
2699 # these library is used by various programs built for the build
2700 # environment
2701 #
2702 build_libs="build-libiberty"
2703
2704 # these tools are built for the build environment
2705 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2706
2707 # these libraries are used by various programs built for the host environment
2708 #
2709 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2710
2711 # these tools are built for the host environment
2712 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2713 # know that we are building the simulator.
2714 # binutils, gas and ld appear in that order because it makes sense to run
2715 # "make check" in that particular order.
2716 # If --enable-gold is used, "gold" may replace "ld".
2717 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2718
2719 # libgcj represents the runtime libraries only used by gcj.
2720 libgcj="target-libffi \
2721 target-zlib \
2722 target-libjava"
2723
2724 # these libraries are built for the target environment, and are built after
2725 # the host libraries and the host tools (which may be a cross compiler)
2726 # Note that libiberty is not a target library.
2727 target_libraries="target-libgcc \
2728 target-libgloss \
2729 target-newlib \
2730 target-libgomp \
2731 target-libatomic \
2732 target-libitm \
2733 target-libstdc++-v3 \
2734 target-libmudflap \
2735 target-libssp \
2736 target-libquadmath \
2737 target-libgfortran \
2738 target-boehm-gc \
2739 ${libgcj} \
2740 target-libobjc \
2741 target-libada \
2742 target-libgo"
2743
2744 # these tools are built using the target libraries, and are intended to
2745 # run only in the target environment
2746 #
2747 # note: any program that *uses* libraries that are in the "target_libraries"
2748 # list belongs in this list.
2749 #
2750 target_tools="target-rda"
2751
2752 ################################################################################
2753
2754 ## All tools belong in one of the four categories, and are assigned above
2755 ## We assign ${configdirs} this way to remove all embedded newlines. This
2756 ## is important because configure will choke if they ever get through.
2757 ## ${configdirs} is directories we build using the host tools.
2758 ## ${target_configdirs} is directories we build using the target tools.
2759 configdirs=`echo ${host_libs} ${host_tools}`
2760 target_configdirs=`echo ${target_libraries} ${target_tools}`
2761 build_configdirs=`echo ${build_libs} ${build_tools}`
2762
2763
2764
2765 ################################################################################
2766
2767 srcname="gnu development package"
2768
2769 # This gets set non-empty for some net releases of packages.
2770 appdirs=""
2771
2772 # Define is_cross_compiler to save on calls to 'test'.
2773 is_cross_compiler=
2774 if test x"${host}" = x"${target}" ; then
2775 is_cross_compiler=no
2776 else
2777 is_cross_compiler=yes
2778 fi
2779
2780 # Find the build and target subdir names.
2781
2782 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2783 # have matching libraries, they should use host libraries: Makefile.tpl
2784 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2785 # However, they still use the build modules, because the corresponding
2786 # host modules (e.g. bison) are only built for the host when bootstrap
2787 # finishes. So:
2788 # - build_subdir is where we find build modules, and never changes.
2789 # - build_libsubdir is where we find build libraries, and can be overridden.
2790
2791 # Prefix 'build-' so this never conflicts with target_subdir.
2792 build_subdir="build-${build_noncanonical}"
2793
2794 # Check whether --with-build-libsubdir was given.
2795 if test "${with_build_libsubdir+set}" = set; then :
2796 withval=$with_build_libsubdir; build_libsubdir="$withval"
2797 else
2798 build_libsubdir="$build_subdir"
2799 fi
2800
2801 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2802 if ( test $srcdir = . && test -d gcc ) \
2803 || test -d $srcdir/../host-${host_noncanonical}; then
2804 host_subdir="host-${host_noncanonical}"
2805 else
2806 host_subdir=.
2807 fi
2808 # No prefix.
2809 target_subdir=${target_noncanonical}
2810
2811 # Be sure to cover against remnants of an in-tree build.
2812 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2813 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2814 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2815 fi
2816
2817 # Skipdirs are removed silently.
2818 skipdirs=
2819 # Noconfigdirs are removed loudly.
2820 noconfigdirs=""
2821
2822 use_gnu_ld=
2823 # Make sure we don't let GNU ld be added if we didn't want it.
2824 if test x$with_gnu_ld = xno ; then
2825 use_gnu_ld=no
2826 noconfigdirs="$noconfigdirs ld gold"
2827 fi
2828
2829 use_gnu_as=
2830 # Make sure we don't let GNU as be added if we didn't want it.
2831 if test x$with_gnu_as = xno ; then
2832 use_gnu_as=no
2833 noconfigdirs="$noconfigdirs gas"
2834 fi
2835
2836 use_included_zlib=
2837 # Make sure we don't let ZLIB be added if we didn't want it.
2838 if test x$with_system_zlib = xyes ; then
2839 use_included_zlib=no
2840 noconfigdirs="$noconfigdirs zlib"
2841 fi
2842
2843 # some tools are so dependent upon X11 that if we're not building with X,
2844 # it's not even worth trying to configure, much less build, that tool.
2845
2846 case ${with_x} in
2847 yes | "") ;; # the default value for this tree is that X11 is available
2848 no)
2849 skipdirs="${skipdirs} tk itcl libgui"
2850 # We won't be able to build gdbtk without X.
2851 enable_gdbtk=no
2852 ;;
2853 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2854 esac
2855
2856 # Some are only suitable for cross toolchains.
2857 # Remove these if host=target.
2858 cross_only="target-libgloss target-newlib target-opcodes"
2859
2860 case $is_cross_compiler in
2861 no) skipdirs="${skipdirs} ${cross_only}" ;;
2862 esac
2863
2864 # If both --with-headers and --with-libs are specified, default to
2865 # --without-newlib.
2866 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2867 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2868 if test x"${with_newlib}" = x ; then
2869 with_newlib=no
2870 fi
2871 fi
2872
2873 # Recognize --with-newlib/--without-newlib.
2874 case ${with_newlib} in
2875 no) skipdirs="${skipdirs} target-newlib" ;;
2876 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2877 esac
2878
2879 # Handle --enable-gold, --enable-ld.
2880 # --disable-gold [--enable-ld]
2881 # Build only ld. Default option.
2882 # --enable-gold [--enable-ld]
2883 # Build both gold and ld. Install gold as "ld.gold", install ld
2884 # as "ld.bfd" and "ld".
2885 # --enable-gold=default [--enable-ld]
2886 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2887 # install ld as "ld.bfd".
2888 # --enable-gold[=default] --disable-ld
2889 # Build only gold, which is then installed as both "ld.gold" and "ld".
2890 # --enable-gold --enable-ld=default
2891 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2892 # and ld.bfd).
2893 # In other words, ld is default
2894 # --enable-gold=default --enable-ld=default
2895 # Error.
2896
2897 default_ld=
2898 # Check whether --enable-gold was given.
2899 if test "${enable_gold+set}" = set; then :
2900 enableval=$enable_gold; ENABLE_GOLD=$enableval
2901 else
2902 ENABLE_GOLD=no
2903 fi
2904
2905 case "${ENABLE_GOLD}" in
2906 yes|default)
2907 # Check for ELF target.
2908 is_elf=no
2909 case "${target}" in
2910 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2911 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2912 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2913 | *-*-solaris2* | *-*-nto*)
2914 case "${target}" in
2915 *-*-linux*aout* | *-*-linux*oldld*)
2916 ;;
2917 *)
2918 is_elf=yes
2919 ;;
2920 esac
2921 esac
2922
2923 if test "$is_elf" = "yes"; then
2924 # Check for target supported by gold.
2925 case "${target}" in
2926 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2927 configdirs="$configdirs gold"
2928 if test x${ENABLE_GOLD} = xdefault; then
2929 default_ld=gold
2930 fi
2931 ENABLE_GOLD=yes
2932 ;;
2933 esac
2934 fi
2935 ;;
2936 no)
2937 ;;
2938 *)
2939 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2940 ;;
2941 esac
2942
2943 # Check whether --enable-ld was given.
2944 if test "${enable_ld+set}" = set; then :
2945 enableval=$enable_ld; ENABLE_LD=$enableval
2946 else
2947 ENABLE_LD=yes
2948 fi
2949
2950
2951 case "${ENABLE_LD}" in
2952 default)
2953 if test x${default_ld} != x; then
2954 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2955 fi
2956 ;;
2957 yes)
2958 ;;
2959 no)
2960 if test x${ENABLE_GOLD} != xyes; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2962 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2963 fi
2964 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2965 ;;
2966 *)
2967 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2968 ;;
2969 esac
2970
2971 # Configure extra directories which are host specific
2972
2973 case "${host}" in
2974 *-cygwin*)
2975 configdirs="$configdirs libtermcap" ;;
2976 esac
2977
2978 # A target can indicate whether a language isn't supported for some reason.
2979 # Only spaces may be used in this macro; not newlines or tabs.
2980 unsupported_languages=
2981
2982 # Remove more programs from consideration, based on the host or
2983 # target this usually means that a port of the program doesn't
2984 # exist yet.
2985
2986 case "${host}" in
2987 i[3456789]86-*-msdosdjgpp*)
2988 noconfigdirs="$noconfigdirs tcl tk itcl"
2989 ;;
2990 esac
2991
2992
2993 # Check whether --enable-libquadmath was given.
2994 if test "${enable_libquadmath+set}" = set; then :
2995 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2996 else
2997 ENABLE_LIBQUADMATH=yes
2998 fi
2999
3000 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3001 noconfigdirs="$noconfigdirs target-libquadmath"
3002 fi
3003
3004
3005 # Check whether --enable-libquadmath-support was given.
3006 if test "${enable_libquadmath_support+set}" = set; then :
3007 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3008 else
3009 ENABLE_LIBQUADMATH_SUPPORT=yes
3010 fi
3011
3012 enable_libquadmath_support=
3013 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3014 enable_libquadmath_support=no
3015 fi
3016
3017
3018 # Check whether --enable-libada was given.
3019 if test "${enable_libada+set}" = set; then :
3020 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3021 else
3022 ENABLE_LIBADA=yes
3023 fi
3024
3025 if test "${ENABLE_LIBADA}" != "yes" ; then
3026 noconfigdirs="$noconfigdirs gnattools"
3027 fi
3028
3029 # Check whether --enable-libssp was given.
3030 if test "${enable_libssp+set}" = set; then :
3031 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3032 else
3033 ENABLE_LIBSSP=yes
3034 fi
3035
3036
3037 # Save it here so that, even in case of --enable-libgcj, if the Java
3038 # front-end isn't enabled, we still get libgcj disabled.
3039 libgcj_saved=$libgcj
3040 case $enable_libgcj in
3041 yes)
3042 # If we reset it here, it won't get added to noconfigdirs in the
3043 # target-specific build rules, so it will be forcibly enabled
3044 # (unless the Java language itself isn't enabled).
3045 libgcj=
3046 ;;
3047 no)
3048 # Make sure we get it printed in the list of not supported target libs.
3049 # Don't disable libffi, though, other languages use it.
3050 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3051 # Clear libgcj_saved so that even if java is enabled libffi won't be
3052 # built.
3053 libgcj_saved=
3054 ;;
3055 esac
3056
3057 # Check whether --enable-static-libjava was given.
3058 if test "${enable_static_libjava+set}" = set; then :
3059 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3060 else
3061 ENABLE_STATIC_LIBJAVA=no
3062 fi
3063
3064 enable_static_libjava=
3065 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3066 enable_static_libjava=yes
3067 fi
3068
3069 if test x$enable_static_libjava != xyes ; then
3070 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3071 fi
3072
3073
3074 # Disable libmudflap on some systems.
3075 if test x$enable_libmudflap = x ; then
3076 case "${target}" in
3077 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3078 # Enable libmudflap by default in GNU and friends.
3079 ;;
3080 *-*-freebsd*)
3081 # Enable libmudflap by default in FreeBSD.
3082 ;;
3083 *)
3084 # Disable it by default everywhere else.
3085 noconfigdirs="$noconfigdirs target-libmudflap"
3086 ;;
3087 esac
3088 fi
3089
3090 # Disable libgomp on non POSIX hosted systems.
3091 if test x$enable_libgomp = x ; then
3092 # Enable libgomp by default on hosted POSIX systems.
3093 case "${target}" in
3094 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3095 ;;
3096 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3097 ;;
3098 *-*-solaris2* | *-*-hpux11*)
3099 ;;
3100 *-*-darwin* | *-*-aix*)
3101 ;;
3102 *)
3103 noconfigdirs="$noconfigdirs target-libgomp"
3104 ;;
3105 esac
3106 fi
3107
3108 # Disable libatomic on unsupported systems.
3109 if test -d ${srcdir}/libatomic; then
3110 if test x$enable_libatomic = x; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3112 $as_echo_n "checking for libatomic support... " >&6; }
3113 if (srcdir=${srcdir}/libatomic; \
3114 . ${srcdir}/configure.tgt; \
3115 test -n "$UNSUPPORTED")
3116 then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 noconfigdirs="$noconfigdirs target-libatomic"
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3122 $as_echo "yes" >&6; }
3123 fi
3124 fi
3125 fi
3126
3127 # Disable libitm on unsupported systems.
3128 if test -d ${srcdir}/libitm; then
3129 if test x$enable_libitm = x; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3131 $as_echo_n "checking for libitm support... " >&6; }
3132 if (srcdir=${srcdir}/libitm; \
3133 . ${srcdir}/configure.tgt; \
3134 test -n "$UNSUPPORTED")
3135 then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 noconfigdirs="$noconfigdirs target-libitm"
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3141 $as_echo "yes" >&6; }
3142 fi
3143 fi
3144 fi
3145
3146 # Disable libssp for some systems.
3147 case "${target}" in
3148 avr-*-*)
3149 # No hosted I/O support.
3150 noconfigdirs="$noconfigdirs target-libssp"
3151 ;;
3152 powerpc-*-aix* | rs6000-*-aix*)
3153 noconfigdirs="$noconfigdirs target-libssp"
3154 ;;
3155 rl78-*-*)
3156 # libssp uses a misaligned load to trigger a fault, but the RL78
3157 # doesn't fault for those - instead, it gives a build-time error
3158 # for explicit misaligned loads.
3159 noconfigdirs="$noconfigdirs target-libssp"
3160 ;;
3161 esac
3162
3163 # Disable libstdc++-v3 for some systems.
3164 case "${target}" in
3165 *-*-vxworks*)
3166 # VxWorks uses the Dinkumware C++ library.
3167 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3168 ;;
3169 arm*-wince-pe*)
3170 # the C++ libraries don't build on top of CE's C libraries
3171 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3172 ;;
3173 avr-*-*)
3174 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3175 ;;
3176 esac
3177
3178 # Disable Fortran for some systems.
3179 case "${target}" in
3180 mmix-*-*)
3181 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3182 unsupported_languages="$unsupported_languages fortran"
3183 ;;
3184 esac
3185
3186 # Disable Java if libffi is not supported.
3187 case "${target}" in
3188 alpha*-*-*)
3189 ;;
3190 arm*-*-*)
3191 ;;
3192 cris-*-*)
3193 ;;
3194 frv-*-*)
3195 ;;
3196 hppa*-*-linux*)
3197 ;;
3198 hppa*-*-hpux*)
3199 ;;
3200 i?86-*-*)
3201 ;;
3202 ia64*-*-*)
3203 ;;
3204 m32r*-*-*)
3205 ;;
3206 m68k-*-*)
3207 ;;
3208 mips*-*-rtems*)
3209 ;;
3210 mips*-*-linux*)
3211 ;;
3212 powerpc*-*-linux*)
3213 ;;
3214 powerpc-*-darwin*)
3215 ;;
3216 powerpc-*-aix* | rs6000-*-aix*)
3217 ;;
3218 powerpc-*-freebsd*)
3219 ;;
3220 powerpc64-*-freebsd*)
3221 ;;
3222 powerpc*-*-rtems*)
3223 ;;
3224 s390-*-* | s390x-*-*)
3225 ;;
3226 sh-*-* | sh[34]*-*-*)
3227 ;;
3228 sh64-*-* | sh5*-*-*)
3229 ;;
3230 sparc*-*-*)
3231 ;;
3232 x86_64-*-*)
3233 ;;
3234 *-*-*)
3235 unsupported_languages="$unsupported_languages java"
3236 ;;
3237 esac
3238
3239 # Disable Java, libgcj or related libraries for some systems.
3240 case "${target}" in
3241 powerpc-*-darwin*)
3242 ;;
3243 i[3456789]86-*-darwin*)
3244 ;;
3245 x86_64-*-darwin[912]*)
3246 ;;
3247 *-*-darwin*)
3248 noconfigdirs="$noconfigdirs ${libgcj}"
3249 ;;
3250 *-*-netware*)
3251 noconfigdirs="$noconfigdirs ${libgcj}"
3252 ;;
3253 *-*-rtems*)
3254 noconfigdirs="$noconfigdirs ${libgcj}"
3255 ;;
3256 *-*-tpf*)
3257 noconfigdirs="$noconfigdirs ${libgcj}"
3258 ;;
3259 *-*-uclinux*)
3260 noconfigdirs="$noconfigdirs ${libgcj}"
3261 ;;
3262 *-*-vxworks*)
3263 noconfigdirs="$noconfigdirs ${libgcj}"
3264 ;;
3265 alpha*-*-*vms*)
3266 noconfigdirs="$noconfigdirs ${libgcj}"
3267 ;;
3268 arm-wince-pe)
3269 noconfigdirs="$noconfigdirs ${libgcj}"
3270 ;;
3271 arm*-*-symbianelf*)
3272 noconfigdirs="$noconfigdirs ${libgcj}"
3273 ;;
3274 bfin-*-*)
3275 noconfigdirs="$noconfigdirs target-boehm-gc"
3276 ;;
3277 cris-*-* | crisv32-*-*)
3278 unsupported_languages="$unsupported_languages java"
3279 case "${target}" in
3280 *-*-linux*)
3281 ;;
3282 *) # See PR46792 regarding target-libffi.
3283 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3284 esac
3285 ;;
3286 hppa*64*-*-linux*)
3287 # In this case, it's because the hppa64-linux target is for
3288 # the kernel only at this point and has no libc, and thus no
3289 # headers, crt*.o, etc., all of which are needed by these.
3290 unsupported_languages="$unsupported_languages java"
3291 ;;
3292 hppa*64*-*-hpux*)
3293 noconfigdirs="$noconfigdirs ${libgcj}"
3294 ;;
3295 hppa*-hp-hpux11*)
3296 ;;
3297 hppa*-*-hpux*)
3298 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3299 # build on HP-UX 10.20.
3300 noconfigdirs="$noconfigdirs ${libgcj}"
3301 ;;
3302 ia64*-*-*vms*)
3303 noconfigdirs="$noconfigdirs ${libgcj}"
3304 ;;
3305 i[3456789]86-w64-mingw*)
3306 noconfigdirs="$noconfigdirs ${libgcj}"
3307 ;;
3308 i[3456789]86-*-mingw*)
3309 noconfigdirs="$noconfigdirs ${libgcj}"
3310 ;;
3311 x86_64-*-mingw*)
3312 noconfigdirs="$noconfigdirs ${libgcj}"
3313 ;;
3314 mmix-*-*)
3315 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3316 ;;
3317 powerpc-*-aix*)
3318 # copied from rs6000-*-* entry
3319 noconfigdirs="$noconfigdirs ${libgcj}"
3320 ;;
3321 rs6000-*-aix*)
3322 noconfigdirs="$noconfigdirs ${libgcj}"
3323 ;;
3324 *-*-lynxos*)
3325 noconfigdirs="$noconfigdirs ${libgcj}"
3326 ;;
3327 esac
3328
3329 # Default libgloss CPU subdirectory.
3330 libgloss_dir="$target_cpu"
3331
3332 case "${target}" in
3333 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3334 libgloss_dir=wince
3335 ;;
3336 arm*-*-*)
3337 libgloss_dir=arm
3338 ;;
3339 cris-*-* | crisv32-*-*)
3340 libgloss_dir=cris
3341 ;;
3342 hppa*-*-*)
3343 libgloss_dir=pa
3344 ;;
3345 i[3456789]86-*-*)
3346 libgloss_dir=i386
3347 ;;
3348 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3349 libgloss_dir=m68hc11
3350 ;;
3351 m68*-*-* | fido-*-*)
3352 libgloss_dir=m68k
3353 ;;
3354 mips*-*-*)
3355 libgloss_dir=mips
3356 ;;
3357 powerpc*-*-*)
3358 libgloss_dir=rs6000
3359 ;;
3360 sparc*-*-*)
3361 libgloss_dir=sparc
3362 ;;
3363 esac
3364
3365 # Disable newlib and libgloss for various target OSes.
3366 case "${target}" in
3367 alpha*-dec-osf*)
3368 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3369 ;;
3370 i[3456789]86-*-linux*)
3371 # This section makes it possible to build newlib natively on linux.
3372 # If we are using a cross compiler then don't configure newlib.
3373 if test x${is_cross_compiler} != xno ; then
3374 noconfigdirs="$noconfigdirs target-newlib"
3375 fi
3376 noconfigdirs="$noconfigdirs target-libgloss"
3377 # If we are not using a cross compiler, do configure newlib.
3378 # Note however, that newlib will only be configured in this situation
3379 # if the --with-newlib option has been given, because otherwise
3380 # 'target-newlib' will appear in skipdirs.
3381 ;;
3382 i[3456789]86-*-rdos*)
3383 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3384 ;;
3385 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3386 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3387 ;;
3388 sparc-*-sunos4*)
3389 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3390 ;;
3391 *-*-aix*)
3392 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3393 ;;
3394 *-*-beos*)
3395 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3396 ;;
3397 *-*-chorusos)
3398 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3399 ;;
3400 *-*-dragonfly*)
3401 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3402 ;;
3403 *-*-freebsd*)
3404 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3405 ;;
3406 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3407 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3408 ;;
3409 *-*-lynxos*)
3410 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3411 ;;
3412 *-*-mingw*)
3413 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3414 ;;
3415 *-*-netbsd*)
3416 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3417 ;;
3418 *-*-netware*)
3419 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3420 ;;
3421 *-*-tpf*)
3422 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3423 ;;
3424 *-*-uclinux*)
3425 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3426 ;;
3427 *-*-vxworks*)
3428 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3429 ;;
3430 esac
3431
3432 case "${target}" in
3433 *-*-chorusos)
3434 ;;
3435 powerpc-*-darwin*)
3436 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3437 noconfigdirs="$noconfigdirs sim target-rda"
3438 ;;
3439 i[3456789]86-*-darwin*)
3440 noconfigdirs="$noconfigdirs ld gprof"
3441 noconfigdirs="$noconfigdirs sim target-rda"
3442 ;;
3443 x86_64-*-darwin[912]*)
3444 noconfigdirs="$noconfigdirs ld gas gprof"
3445 noconfigdirs="$noconfigdirs sim target-rda"
3446 ;;
3447 *-*-darwin*)
3448 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3449 noconfigdirs="$noconfigdirs sim target-rda"
3450 ;;
3451 *-*-dragonfly*)
3452 ;;
3453 *-*-freebsd*)
3454 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3455 && test -f /usr/local/include/gmp.h; then
3456 with_gmp=/usr/local
3457 fi
3458 ;;
3459 *-*-kaos*)
3460 # Remove unsupported stuff on all kaOS configurations.
3461 noconfigdirs="$noconfigdirs target-libgloss"
3462 ;;
3463 *-*-netbsd*)
3464 ;;
3465 *-*-netware*)
3466 ;;
3467 *-*-rtems*)
3468 noconfigdirs="$noconfigdirs target-libgloss"
3469 ;;
3470 # The tpf target doesn't support gdb yet.
3471 *-*-tpf*)
3472 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3473 ;;
3474 *-*-uclinux*)
3475 noconfigdirs="$noconfigdirs target-rda"
3476 ;;
3477 *-*-vxworks*)
3478 ;;
3479 alpha*-dec-osf*)
3480 # ld works, but does not support shared libraries.
3481 # gas doesn't generate exception information.
3482 noconfigdirs="$noconfigdirs gas ld"
3483 ;;
3484 alpha*-*-*vms*)
3485 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3486 ;;
3487 alpha*-*-*)
3488 # newlib is not 64 bit ready
3489 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3490 ;;
3491 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3492 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3493 ;;
3494 arc-*-*)
3495 noconfigdirs="$noconfigdirs target-libgloss"
3496 ;;
3497 arm-*-pe*)
3498 noconfigdirs="$noconfigdirs target-libgloss"
3499 ;;
3500 arm-*-riscix*)
3501 noconfigdirs="$noconfigdirs ld target-libgloss"
3502 ;;
3503 c4x-*-* | tic4x-*-*)
3504 noconfigdirs="$noconfigdirs target-libgloss"
3505 ;;
3506 tic54x-*-*)
3507 noconfigdirs="$noconfigdirs target-libgloss gdb"
3508 ;;
3509 d10v-*-*)
3510 noconfigdirs="$noconfigdirs target-libgloss"
3511 ;;
3512 d30v-*-*)
3513 noconfigdirs="$noconfigdirs gdb"
3514 ;;
3515 fr30-*-elf*)
3516 noconfigdirs="$noconfigdirs gdb"
3517 ;;
3518 moxie-*-*)
3519 noconfigdirs="$noconfigdirs gprof"
3520 ;;
3521 h8300*-*-*)
3522 noconfigdirs="$noconfigdirs target-libgloss"
3523 ;;
3524 h8500-*-*)
3525 noconfigdirs="$noconfigdirs target-libgloss"
3526 ;;
3527 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3528 ;;
3529 hppa*64*-*-linux*)
3530 ;;
3531 hppa*-*-linux*)
3532 ;;
3533 hppa*-*-*elf* | \
3534 hppa*-*-lites* | \
3535 hppa*-*-openbsd* | \
3536 hppa*64*-*-*)
3537 ;;
3538 hppa*-hp-hpux11*)
3539 noconfigdirs="$noconfigdirs ld"
3540 ;;
3541 hppa*-*-pro*)
3542 ;;
3543 hppa*-*-*)
3544 noconfigdirs="$noconfigdirs ld"
3545 ;;
3546 i960-*-*)
3547 noconfigdirs="$noconfigdirs gdb"
3548 ;;
3549 ia64*-*-elf*)
3550 # No gdb support yet.
3551 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3552 ;;
3553 ia64*-**-hpux*)
3554 # No ld support yet.
3555 noconfigdirs="$noconfigdirs libgui itcl ld"
3556 ;;
3557 ia64*-*-*vms*)
3558 # No ld support yet.
3559 noconfigdirs="$noconfigdirs libgui itcl ld"
3560 ;;
3561 i[3456789]86-w64-mingw*)
3562 ;;
3563 i[3456789]86-*-mingw*)
3564 target_configdirs="$target_configdirs target-winsup"
3565 ;;
3566 *-*-cygwin*)
3567 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3568 noconfigdirs="$noconfigdirs target-libgloss"
3569 # always build newlib if winsup directory is present.
3570 if test -d "$srcdir/winsup/cygwin"; then
3571 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3572 elif test -d "$srcdir/newlib"; then
3573 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3574 fi
3575 ;;
3576 i[3456789]86-*-pe)
3577 noconfigdirs="$noconfigdirs target-libgloss"
3578 ;;
3579 i[3456789]86-*-sco3.2v5*)
3580 # The linker does not yet know about weak symbols in COFF,
3581 # and is not configured to handle mixed ELF and COFF.
3582 noconfigdirs="$noconfigdirs ld target-libgloss"
3583 ;;
3584 i[3456789]86-*-sco*)
3585 noconfigdirs="$noconfigdirs gprof target-libgloss"
3586 ;;
3587 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3588 noconfigdirs="$noconfigdirs target-libgloss"
3589 ;;
3590 i[3456789]86-*-sysv4*)
3591 noconfigdirs="$noconfigdirs target-libgloss"
3592 ;;
3593 i[3456789]86-*-beos*)
3594 noconfigdirs="$noconfigdirs gdb"
3595 ;;
3596 i[3456789]86-*-rdos*)
3597 noconfigdirs="$noconfigdirs gdb"
3598 ;;
3599 mmix-*-*)
3600 noconfigdirs="$noconfigdirs gdb"
3601 ;;
3602 mt-*-*)
3603 noconfigdirs="$noconfigdirs sim"
3604 ;;
3605 powerpc-*-aix*)
3606 # copied from rs6000-*-* entry
3607 noconfigdirs="$noconfigdirs gprof"
3608 ;;
3609 powerpc*-*-winnt* | powerpc*-*-pe*)
3610 target_configdirs="$target_configdirs target-winsup"
3611 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3612 # always build newlib.
3613 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3614 ;;
3615 # This is temporary until we can link against shared libraries
3616 powerpcle-*-solaris*)
3617 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3618 ;;
3619 powerpc-*-beos*)
3620 noconfigdirs="$noconfigdirs gdb"
3621 ;;
3622 rs6000-*-lynxos*)
3623 noconfigdirs="$noconfigdirs gprof"
3624 ;;
3625 rs6000-*-aix*)
3626 noconfigdirs="$noconfigdirs gprof"
3627 ;;
3628 rs6000-*-*)
3629 noconfigdirs="$noconfigdirs gprof"
3630 ;;
3631 m68k-apollo-*)
3632 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3633 ;;
3634 microblaze*)
3635 noconfigdirs="$noconfigdirs gprof"
3636 ;;
3637 mips*-sde-elf*)
3638 if test x$with_newlib = xyes; then
3639 noconfigdirs="$noconfigdirs gprof"
3640 fi
3641 ;;
3642 mips*-*-irix5*)
3643 noconfigdirs="$noconfigdirs gprof target-libgloss"
3644 ;;
3645 mips*-*-irix6*)
3646 noconfigdirs="$noconfigdirs gprof target-libgloss"
3647 ;;
3648 mips*-*-bsd*)
3649 noconfigdirs="$noconfigdirs gprof target-libgloss"
3650 ;;
3651 mips*-*-linux*)
3652 ;;
3653 mips*-*-*)
3654 noconfigdirs="$noconfigdirs gprof"
3655 ;;
3656 sh-*-* | sh64-*-*)
3657 case "${target}" in
3658 sh*-*-elf)
3659 ;;
3660 *)
3661 noconfigdirs="$noconfigdirs target-libgloss" ;;
3662 esac
3663 ;;
3664 sparc-*-sunos4*)
3665 if test x${is_cross_compiler} = xno ; then
3666 use_gnu_ld=no
3667 fi
3668 ;;
3669 tic6x-*-*)
3670 noconfigdirs="$noconfigdirs sim"
3671 ;;
3672 tilepro-*-* | tilegx-*-*)
3673 noconfigdirs="$noconfigdirs sim"
3674 ;;
3675 v810-*-*)
3676 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3677 ;;
3678 vax-*-*)
3679 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 ;;
3681 esac
3682
3683 # If we aren't building newlib, then don't build libgloss, since libgloss
3684 # depends upon some newlib header files.
3685 case "${noconfigdirs}" in
3686 *target-libgloss*) ;;
3687 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3688 esac
3689
3690 # Work in distributions that contain no compiler tools, like Autoconf.
3691 host_makefile_frag=/dev/null
3692 if test -d ${srcdir}/config ; then
3693 case "${host}" in
3694 i[3456789]86-*-msdosdjgpp*)
3695 host_makefile_frag="config/mh-djgpp"
3696 ;;
3697 *-cygwin*)
3698
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3700 $as_echo_n "checking to see if cat works as expected... " >&6; }
3701 echo a >cygwin-cat-check
3702 if test `cat cygwin-cat-check` = a ; then
3703 rm cygwin-cat-check
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3705 $as_echo "yes" >&6; }
3706 else
3707 rm cygwin-cat-check
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3710 as_fn_error "The cat command does not ignore carriage return characters.
3711 Please either mount the build directory in binary mode or run the following
3712 commands before running any configure script:
3713 set -o igncr
3714 export SHELLOPTS
3715 " "$LINENO" 5
3716 fi
3717
3718 host_makefile_frag="config/mh-cygwin"
3719 ;;
3720 *-mingw*)
3721 host_makefile_frag="config/mh-mingw"
3722 ;;
3723 hppa*-hp-hpux10*)
3724 host_makefile_frag="config/mh-pa-hpux10"
3725 ;;
3726 hppa*-hp-hpux*)
3727 host_makefile_frag="config/mh-pa"
3728 ;;
3729 hppa*-*)
3730 host_makefile_frag="config/mh-pa"
3731 ;;
3732 *-*-darwin*)
3733 host_makefile_frag="config/mh-darwin"
3734 ;;
3735 powerpc-*-aix*)
3736 host_makefile_frag="config/mh-ppc-aix"
3737 ;;
3738 rs6000-*-aix*)
3739 host_makefile_frag="config/mh-ppc-aix"
3740 ;;
3741 esac
3742 fi
3743
3744 if test "${build}" != "${host}" ; then
3745 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3746 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3747 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3748 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3749 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3750 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3751 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3752 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3753 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3754 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3755 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3756 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3757 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3758 else
3759 AR_FOR_BUILD="\$(AR)"
3760 AS_FOR_BUILD="\$(AS)"
3761 CC_FOR_BUILD="\$(CC)"
3762 CXX_FOR_BUILD="\$(CXX)"
3763 GCJ_FOR_BUILD="\$(GCJ)"
3764 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3765 GOC_FOR_BUILD="\$(GOC)"
3766 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3767 LD_FOR_BUILD="\$(LD)"
3768 NM_FOR_BUILD="\$(NM)"
3769 RANLIB_FOR_BUILD="\$(RANLIB)"
3770 WINDRES_FOR_BUILD="\$(WINDRES)"
3771 WINDMC_FOR_BUILD="\$(WINDMC)"
3772 fi
3773
3774 ac_ext=c
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 if test -n "$ac_tool_prefix"; then
3780 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3781 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if test "${ac_cv_prog_CC+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 if test -n "$CC"; then
3788 ac_cv_prog_CC="$CC" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3797 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3800 fi
3801 done
3802 done
3803 IFS=$as_save_IFS
3804
3805 fi
3806 fi
3807 CC=$ac_cv_prog_CC
3808 if test -n "$CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3810 $as_echo "$CC" >&6; }
3811 else
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3814 fi
3815
3816
3817 fi
3818 if test -z "$ac_cv_prog_CC"; then
3819 ac_ct_CC=$CC
3820 # Extract the first word of "gcc", so it can be a program name with args.
3821 set dummy gcc; ac_word=$2
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3823 $as_echo_n "checking for $ac_word... " >&6; }
3824 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 if test -n "$ac_ct_CC"; then
3828 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3837 ac_cv_prog_ac_ct_CC="gcc"
3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 break 2
3840 fi
3841 done
3842 done
3843 IFS=$as_save_IFS
3844
3845 fi
3846 fi
3847 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3848 if test -n "$ac_ct_CC"; then
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3850 $as_echo "$ac_ct_CC" >&6; }
3851 else
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 $as_echo "no" >&6; }
3854 fi
3855
3856 if test "x$ac_ct_CC" = x; then
3857 CC=""
3858 else
3859 case $cross_compiling:$ac_tool_warned in
3860 yes:)
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3863 ac_tool_warned=yes ;;
3864 esac
3865 CC=$ac_ct_CC
3866 fi
3867 else
3868 CC="$ac_cv_prog_CC"
3869 fi
3870
3871 if test -z "$CC"; then
3872 if test -n "$ac_tool_prefix"; then
3873 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3874 set dummy ${ac_tool_prefix}cc; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if test "${ac_cv_prog_CC+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -n "$CC"; then
3881 ac_cv_prog_CC="$CC" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3890 ac_cv_prog_CC="${ac_tool_prefix}cc"
3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 break 2
3893 fi
3894 done
3895 done
3896 IFS=$as_save_IFS
3897
3898 fi
3899 fi
3900 CC=$ac_cv_prog_CC
3901 if test -n "$CC"; then
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3903 $as_echo "$CC" >&6; }
3904 else
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "no" >&6; }
3907 fi
3908
3909
3910 fi
3911 fi
3912 if test -z "$CC"; then
3913 # Extract the first word of "cc", so it can be a program name with args.
3914 set dummy cc; ac_word=$2
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if test "${ac_cv_prog_CC+set}" = set; then :
3918 $as_echo_n "(cached) " >&6
3919 else
3920 if test -n "$CC"; then
3921 ac_cv_prog_CC="$CC" # Let the user override the test.
3922 else
3923 ac_prog_rejected=no
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 for as_dir in $PATH
3926 do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3931 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3932 ac_prog_rejected=yes
3933 continue
3934 fi
3935 ac_cv_prog_CC="cc"
3936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 break 2
3938 fi
3939 done
3940 done
3941 IFS=$as_save_IFS
3942
3943 if test $ac_prog_rejected = yes; then
3944 # We found a bogon in the path, so make sure we never use it.
3945 set dummy $ac_cv_prog_CC
3946 shift
3947 if test $# != 0; then
3948 # We chose a different compiler from the bogus one.
3949 # However, it has the same basename, so the bogon will be chosen
3950 # first if we set CC to just the basename; use the full file name.
3951 shift
3952 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3953 fi
3954 fi
3955 fi
3956 fi
3957 CC=$ac_cv_prog_CC
3958 if test -n "$CC"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3960 $as_echo "$CC" >&6; }
3961 else
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 $as_echo "no" >&6; }
3964 fi
3965
3966
3967 fi
3968 if test -z "$CC"; then
3969 if test -n "$ac_tool_prefix"; then
3970 for ac_prog in cl.exe
3971 do
3972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3973 set dummy $ac_tool_prefix$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_CC+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if test -n "$CC"; then
3980 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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 CC=$ac_cv_prog_CC
4000 if test -n "$CC"; then
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4002 $as_echo "$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 "$CC" && break
4010 done
4011 fi
4012 if test -z "$CC"; then
4013 ac_ct_CC=$CC
4014 for ac_prog in cl.exe
4015 do
4016 # Extract the first word of "$ac_prog", so it can be a program name with args.
4017 set dummy $ac_prog; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 if test -n "$ac_ct_CC"; then
4024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_prog_ac_ct_CC="$ac_prog"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4036 fi
4037 done
4038 done
4039 IFS=$as_save_IFS
4040
4041 fi
4042 fi
4043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4044 if test -n "$ac_ct_CC"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4046 $as_echo "$ac_ct_CC" >&6; }
4047 else
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4050 fi
4051
4052
4053 test -n "$ac_ct_CC" && break
4054 done
4055
4056 if test "x$ac_ct_CC" = x; then
4057 CC=""
4058 else
4059 case $cross_compiling:$ac_tool_warned in
4060 yes:)
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4063 ac_tool_warned=yes ;;
4064 esac
4065 CC=$ac_ct_CC
4066 fi
4067 fi
4068
4069 fi
4070
4071
4072 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4074 as_fn_error "no acceptable C compiler found in \$PATH
4075 See \`config.log' for more details." "$LINENO" 5; }
4076
4077 # Provide some information about the compiler.
4078 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4079 set X $ac_compile
4080 ac_compiler=$2
4081 for ac_option in --version -v -V -qversion; do
4082 { { ac_try="$ac_compiler $ac_option >&5"
4083 case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086 esac
4087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088 $as_echo "$ac_try_echo"; } >&5
4089 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4090 ac_status=$?
4091 if test -s conftest.err; then
4092 sed '10a\
4093 ... rest of stderr output deleted ...
4094 10q' conftest.err >conftest.er1
4095 cat conftest.er1 >&5
4096 rm -f conftest.er1 conftest.err
4097 fi
4098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099 test $ac_status = 0; }
4100 done
4101
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104
4105 int
4106 main ()
4107 {
4108
4109 ;
4110 return 0;
4111 }
4112 _ACEOF
4113 ac_clean_files_save=$ac_clean_files
4114 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4115 # Try to create an executable without -o first, disregard a.out.
4116 # It will help us diagnose broken compilers, and finding out an intuition
4117 # of exeext.
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4119 $as_echo_n "checking for C compiler default output file name... " >&6; }
4120 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4121
4122 # The possible output files:
4123 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4124
4125 ac_rmfiles=
4126 for ac_file in $ac_files
4127 do
4128 case $ac_file in
4129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4130 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4131 esac
4132 done
4133 rm -f $ac_rmfiles
4134
4135 if { { ac_try="$ac_link_default"
4136 case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139 esac
4140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4141 $as_echo "$ac_try_echo"; } >&5
4142 (eval "$ac_link_default") 2>&5
4143 ac_status=$?
4144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4145 test $ac_status = 0; }; then :
4146 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4147 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4148 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4149 # so that the user can short-circuit this test for compilers unknown to
4150 # Autoconf.
4151 for ac_file in $ac_files ''
4152 do
4153 test -f "$ac_file" || continue
4154 case $ac_file in
4155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4156 ;;
4157 [ab].out )
4158 # We found the default executable, but exeext='' is most
4159 # certainly right.
4160 break;;
4161 *.* )
4162 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4163 then :; else
4164 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4165 fi
4166 # We set ac_cv_exeext here because the later test for it is not
4167 # safe: cross compilers may not add the suffix if given an `-o'
4168 # argument, so we may need to know it at that point already.
4169 # Even if this section looks crufty: it has the advantage of
4170 # actually working.
4171 break;;
4172 * )
4173 break;;
4174 esac
4175 done
4176 test "$ac_cv_exeext" = no && ac_cv_exeext=
4177
4178 else
4179 ac_file=''
4180 fi
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4182 $as_echo "$ac_file" >&6; }
4183 if test -z "$ac_file"; then :
4184 $as_echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4186
4187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4189 { as_fn_set_status 77
4190 as_fn_error "C compiler cannot create executables
4191 See \`config.log' for more details." "$LINENO" 5; }; }
4192 fi
4193 ac_exeext=$ac_cv_exeext
4194
4195 # Check that the compiler produces executables we can run. If not, either
4196 # the compiler is broken, or we cross compile.
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4198 $as_echo_n "checking whether the C compiler works... " >&6; }
4199 # If not cross compiling, check that we can run a simple program.
4200 if test "$cross_compiling" != yes; then
4201 if { ac_try='./$ac_file'
4202 { { case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205 esac
4206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4207 $as_echo "$ac_try_echo"; } >&5
4208 (eval "$ac_try") 2>&5
4209 ac_status=$?
4210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4211 test $ac_status = 0; }; }; then
4212 cross_compiling=no
4213 else
4214 if test "$cross_compiling" = maybe; then
4215 cross_compiling=yes
4216 else
4217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4219 as_fn_error "cannot run C compiled programs.
4220 If you meant to cross compile, use \`--host'.
4221 See \`config.log' for more details." "$LINENO" 5; }
4222 fi
4223 fi
4224 fi
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4226 $as_echo "yes" >&6; }
4227
4228 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4229 ac_clean_files=$ac_clean_files_save
4230 # Check that the compiler produces executables we can run. If not, either
4231 # the compiler is broken, or we cross compile.
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4233 $as_echo_n "checking whether we are cross compiling... " >&6; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4235 $as_echo "$cross_compiling" >&6; }
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4238 $as_echo_n "checking for suffix of executables... " >&6; }
4239 if { { ac_try="$ac_link"
4240 case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243 esac
4244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4245 $as_echo "$ac_try_echo"; } >&5
4246 (eval "$ac_link") 2>&5
4247 ac_status=$?
4248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4249 test $ac_status = 0; }; then :
4250 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4251 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4252 # work properly (i.e., refer to `conftest.exe'), while it won't with
4253 # `rm'.
4254 for ac_file in conftest.exe conftest conftest.*; do
4255 test -f "$ac_file" || continue
4256 case $ac_file in
4257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4258 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4259 break;;
4260 * ) break;;
4261 esac
4262 done
4263 else
4264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266 as_fn_error "cannot compute suffix of executables: cannot compile and link
4267 See \`config.log' for more details." "$LINENO" 5; }
4268 fi
4269 rm -f conftest$ac_cv_exeext
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4271 $as_echo "$ac_cv_exeext" >&6; }
4272
4273 rm -f conftest.$ac_ext
4274 EXEEXT=$ac_cv_exeext
4275 ac_exeext=$EXEEXT
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4277 $as_echo_n "checking for suffix of object files... " >&6; }
4278 if test "${ac_cv_objext+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283
4284 int
4285 main ()
4286 {
4287
4288 ;
4289 return 0;
4290 }
4291 _ACEOF
4292 rm -f conftest.o conftest.obj
4293 if { { ac_try="$ac_compile"
4294 case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_compile") 2>&5
4301 ac_status=$?
4302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; }; then :
4304 for ac_file in conftest.o conftest.obj conftest.*; do
4305 test -f "$ac_file" || continue;
4306 case $ac_file in
4307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4308 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4309 break;;
4310 esac
4311 done
4312 else
4313 $as_echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4318 as_fn_error "cannot compute suffix of object files: cannot compile
4319 See \`config.log' for more details." "$LINENO" 5; }
4320 fi
4321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4322 fi
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4324 $as_echo "$ac_cv_objext" >&6; }
4325 OBJEXT=$ac_cv_objext
4326 ac_objext=$OBJEXT
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4328 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4329 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334
4335 int
4336 main ()
4337 {
4338 #ifndef __GNUC__
4339 choke me
4340 #endif
4341
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 if ac_fn_c_try_compile "$LINENO"; then :
4347 ac_compiler_gnu=yes
4348 else
4349 ac_compiler_gnu=no
4350 fi
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4353
4354 fi
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4356 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4357 if test $ac_compiler_gnu = yes; then
4358 GCC=yes
4359 else
4360 GCC=
4361 fi
4362 ac_test_CFLAGS=${CFLAGS+set}
4363 ac_save_CFLAGS=$CFLAGS
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4365 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4366 if test "${ac_cv_prog_cc_g+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 ac_save_c_werror_flag=$ac_c_werror_flag
4370 ac_c_werror_flag=yes
4371 ac_cv_prog_cc_g=no
4372 CFLAGS="-g"
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375
4376 int
4377 main ()
4378 {
4379
4380 ;
4381 return 0;
4382 }
4383 _ACEOF
4384 if ac_fn_c_try_compile "$LINENO"; then :
4385 ac_cv_prog_cc_g=yes
4386 else
4387 CFLAGS=""
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390
4391 int
4392 main ()
4393 {
4394
4395 ;
4396 return 0;
4397 }
4398 _ACEOF
4399 if ac_fn_c_try_compile "$LINENO"; then :
4400
4401 else
4402 ac_c_werror_flag=$ac_save_c_werror_flag
4403 CFLAGS="-g"
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406
4407 int
4408 main ()
4409 {
4410
4411 ;
4412 return 0;
4413 }
4414 _ACEOF
4415 if ac_fn_c_try_compile "$LINENO"; then :
4416 ac_cv_prog_cc_g=yes
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 ac_c_werror_flag=$ac_save_c_werror_flag
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4426 $as_echo "$ac_cv_prog_cc_g" >&6; }
4427 if test "$ac_test_CFLAGS" = set; then
4428 CFLAGS=$ac_save_CFLAGS
4429 elif test $ac_cv_prog_cc_g = yes; then
4430 if test "$GCC" = yes; then
4431 CFLAGS="-g -O2"
4432 else
4433 CFLAGS="-g"
4434 fi
4435 else
4436 if test "$GCC" = yes; then
4437 CFLAGS="-O2"
4438 else
4439 CFLAGS=
4440 fi
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4443 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4444 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 ac_cv_prog_cc_c89=no
4448 ac_save_CC=$CC
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 #include <stdarg.h>
4452 #include <stdio.h>
4453 #include <sys/types.h>
4454 #include <sys/stat.h>
4455 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4456 struct buf { int x; };
4457 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4458 static char *e (p, i)
4459 char **p;
4460 int i;
4461 {
4462 return p[i];
4463 }
4464 static char *f (char * (*g) (char **, int), char **p, ...)
4465 {
4466 char *s;
4467 va_list v;
4468 va_start (v,p);
4469 s = g (p, va_arg (v,int));
4470 va_end (v);
4471 return s;
4472 }
4473
4474 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4475 function prototypes and stuff, but not '\xHH' hex character constants.
4476 These don't provoke an error unfortunately, instead are silently treated
4477 as 'x'. The following induces an error, until -std is added to get
4478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4479 array size at least. It's necessary to write '\x00'==0 to get something
4480 that's true only with -std. */
4481 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4482
4483 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4484 inside strings and character constants. */
4485 #define FOO(x) 'x'
4486 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4487
4488 int test (int i, double x);
4489 struct s1 {int (*f) (int a);};
4490 struct s2 {int (*f) (double a);};
4491 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4492 int argc;
4493 char **argv;
4494 int
4495 main ()
4496 {
4497 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4498 ;
4499 return 0;
4500 }
4501 _ACEOF
4502 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4503 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4504 do
4505 CC="$ac_save_CC $ac_arg"
4506 if ac_fn_c_try_compile "$LINENO"; then :
4507 ac_cv_prog_cc_c89=$ac_arg
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext
4510 test "x$ac_cv_prog_cc_c89" != "xno" && break
4511 done
4512 rm -f conftest.$ac_ext
4513 CC=$ac_save_CC
4514
4515 fi
4516 # AC_CACHE_VAL
4517 case "x$ac_cv_prog_cc_c89" in
4518 x)
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4520 $as_echo "none needed" >&6; } ;;
4521 xno)
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4523 $as_echo "unsupported" >&6; } ;;
4524 *)
4525 CC="$CC $ac_cv_prog_cc_c89"
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4527 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4528 esac
4529 if test "x$ac_cv_prog_cc_c89" != xno; then :
4530
4531 fi
4532
4533 ac_ext=c
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538
4539 ac_ext=cpp
4540 ac_cpp='$CXXCPP $CPPFLAGS'
4541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4544 if test -z "$CXX"; then
4545 if test -n "$CCC"; then
4546 CXX=$CCC
4547 else
4548 if test -n "$ac_tool_prefix"; then
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_tool_prefix$ac_prog", so it can be a program name with args.
4552 set dummy $ac_tool_prefix$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_CXX+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$CXX"; then
4559 ac_cv_prog_CXX="$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_CXX="$ac_tool_prefix$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 CXX=$ac_cv_prog_CXX
4579 if test -n "$CXX"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4581 $as_echo "$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 "$CXX" && break
4589 done
4590 fi
4591 if test -z "$CXX"; then
4592 ac_ct_CXX=$CXX
4593 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4594 do
4595 # Extract the first word of "$ac_prog", so it can be a program name with args.
4596 set dummy $ac_prog; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -n "$ac_ct_CXX"; then
4603 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4607 do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_ac_ct_CXX="$ac_prog"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4615 fi
4616 done
4617 done
4618 IFS=$as_save_IFS
4619
4620 fi
4621 fi
4622 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4623 if test -n "$ac_ct_CXX"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4625 $as_echo "$ac_ct_CXX" >&6; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4629 fi
4630
4631
4632 test -n "$ac_ct_CXX" && break
4633 done
4634
4635 if test "x$ac_ct_CXX" = x; then
4636 CXX="g++"
4637 else
4638 case $cross_compiling:$ac_tool_warned in
4639 yes:)
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4642 ac_tool_warned=yes ;;
4643 esac
4644 CXX=$ac_ct_CXX
4645 fi
4646 fi
4647
4648 fi
4649 fi
4650 # Provide some information about the compiler.
4651 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4652 set X $ac_compile
4653 ac_compiler=$2
4654 for ac_option in --version -v -V -qversion; do
4655 { { ac_try="$ac_compiler $ac_option >&5"
4656 case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659 esac
4660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4661 $as_echo "$ac_try_echo"; } >&5
4662 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4663 ac_status=$?
4664 if test -s conftest.err; then
4665 sed '10a\
4666 ... rest of stderr output deleted ...
4667 10q' conftest.err >conftest.er1
4668 cat conftest.er1 >&5
4669 rm -f conftest.er1 conftest.err
4670 fi
4671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4672 test $ac_status = 0; }
4673 done
4674
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4676 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4677 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682
4683 int
4684 main ()
4685 {
4686 #ifndef __GNUC__
4687 choke me
4688 #endif
4689
4690 ;
4691 return 0;
4692 }
4693 _ACEOF
4694 if ac_fn_cxx_try_compile "$LINENO"; then :
4695 ac_compiler_gnu=yes
4696 else
4697 ac_compiler_gnu=no
4698 fi
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4701
4702 fi
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4704 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4705 if test $ac_compiler_gnu = yes; then
4706 GXX=yes
4707 else
4708 GXX=
4709 fi
4710 ac_test_CXXFLAGS=${CXXFLAGS+set}
4711 ac_save_CXXFLAGS=$CXXFLAGS
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4713 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4714 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4718 ac_cxx_werror_flag=yes
4719 ac_cv_prog_cxx_g=no
4720 CXXFLAGS="-g"
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4723
4724 int
4725 main ()
4726 {
4727
4728 ;
4729 return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_cxx_try_compile "$LINENO"; then :
4733 ac_cv_prog_cxx_g=yes
4734 else
4735 CXXFLAGS=""
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738
4739 int
4740 main ()
4741 {
4742
4743 ;
4744 return 0;
4745 }
4746 _ACEOF
4747 if ac_fn_cxx_try_compile "$LINENO"; then :
4748
4749 else
4750 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4751 CXXFLAGS="-g"
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754
4755 int
4756 main ()
4757 {
4758
4759 ;
4760 return 0;
4761 }
4762 _ACEOF
4763 if ac_fn_cxx_try_compile "$LINENO"; then :
4764 ac_cv_prog_cxx_g=yes
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 fi
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 fi
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4774 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4775 if test "$ac_test_CXXFLAGS" = set; then
4776 CXXFLAGS=$ac_save_CXXFLAGS
4777 elif test $ac_cv_prog_cxx_g = yes; then
4778 if test "$GXX" = yes; then
4779 CXXFLAGS="-g -O2"
4780 else
4781 CXXFLAGS="-g"
4782 fi
4783 else
4784 if test "$GXX" = yes; then
4785 CXXFLAGS="-O2"
4786 else
4787 CXXFLAGS=
4788 fi
4789 fi
4790 ac_ext=c
4791 ac_cpp='$CPP $CPPFLAGS'
4792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795
4796
4797 # We must set the default linker to the linker used by gcc for the correct
4798 # operation of libtool. If LD is not defined and we are using gcc, try to
4799 # set the LD default to the ld used by gcc.
4800 if test -z "$LD"; then
4801 if test "$GCC" = yes; then
4802 case $build in
4803 *-*-mingw*)
4804 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4805 *)
4806 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4807 esac
4808 case $gcc_prog_ld in
4809 # Accept absolute paths.
4810 [\\/]* | [A-Za-z]:[\\/]*)
4811 LD="$gcc_prog_ld" ;;
4812 esac
4813 fi
4814 fi
4815
4816
4817
4818
4819 if test -n "$ac_tool_prefix"; then
4820 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4821 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -n "$GNATBIND"; then
4828 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841 done
4842 done
4843 IFS=$as_save_IFS
4844
4845 fi
4846 fi
4847 GNATBIND=$ac_cv_prog_GNATBIND
4848 if test -n "$GNATBIND"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4850 $as_echo "$GNATBIND" >&6; }
4851 else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 fi
4855
4856
4857 fi
4858 if test -z "$ac_cv_prog_GNATBIND"; then
4859 ac_ct_GNATBIND=$GNATBIND
4860 # Extract the first word of "gnatbind", so it can be a program name with args.
4861 set dummy gnatbind; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -n "$ac_ct_GNATBIND"; then
4868 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 fi
4886 fi
4887 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4888 if test -n "$ac_ct_GNATBIND"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4890 $as_echo "$ac_ct_GNATBIND" >&6; }
4891 else
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4894 fi
4895
4896 if test "x$ac_ct_GNATBIND" = x; then
4897 GNATBIND="no"
4898 else
4899 case $cross_compiling:$ac_tool_warned in
4900 yes:)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905 GNATBIND=$ac_ct_GNATBIND
4906 fi
4907 else
4908 GNATBIND="$ac_cv_prog_GNATBIND"
4909 fi
4910
4911 if test -n "$ac_tool_prefix"; then
4912 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -n "$GNATMAKE"; then
4920 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4929 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933 done
4934 done
4935 IFS=$as_save_IFS
4936
4937 fi
4938 fi
4939 GNATMAKE=$ac_cv_prog_GNATMAKE
4940 if test -n "$GNATMAKE"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4942 $as_echo "$GNATMAKE" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 fi
4947
4948
4949 fi
4950 if test -z "$ac_cv_prog_GNATMAKE"; then
4951 ac_ct_GNATMAKE=$GNATMAKE
4952 # Extract the first word of "gnatmake", so it can be a program name with args.
4953 set dummy gnatmake; ac_word=$2
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955 $as_echo_n "checking for $ac_word... " >&6; }
4956 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 if test -n "$ac_ct_GNATMAKE"; then
4960 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4961 else
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4972 fi
4973 done
4974 done
4975 IFS=$as_save_IFS
4976
4977 fi
4978 fi
4979 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4980 if test -n "$ac_ct_GNATMAKE"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4982 $as_echo "$ac_ct_GNATMAKE" >&6; }
4983 else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4986 fi
4987
4988 if test "x$ac_ct_GNATMAKE" = x; then
4989 GNATMAKE="no"
4990 else
4991 case $cross_compiling:$ac_tool_warned in
4992 yes:)
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4995 ac_tool_warned=yes ;;
4996 esac
4997 GNATMAKE=$ac_ct_GNATMAKE
4998 fi
4999 else
5000 GNATMAKE="$ac_cv_prog_GNATMAKE"
5001 fi
5002
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5004 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5005 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 cat >conftest.adb <<EOF
5009 procedure conftest is begin null; end conftest;
5010 EOF
5011 acx_cv_cc_gcc_supports_ada=no
5012 # There is a bug in old released versions of GCC which causes the
5013 # driver to exit successfully when the appropriate language module
5014 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5015 # Therefore we must check for the error message as well as an
5016 # unsuccessful exit.
5017 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5018 # given a .adb file, but produce no object file. So we must check
5019 # if an object file was really produced to guard against this.
5020 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5021 if test x"$errors" = x && test -f conftest.$ac_objext; then
5022 acx_cv_cc_gcc_supports_ada=yes
5023 fi
5024 rm -f conftest.*
5025 fi
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5027 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5028
5029 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5030 have_gnat=yes
5031 else
5032 have_gnat=no
5033 fi
5034
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5036 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5037 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 echo abfoo >t1
5041 echo cdfoo >t2
5042 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5043 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5044 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5045 :
5046 else
5047 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5048 fi
5049 fi
5050 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5051 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5052 :
5053 else
5054 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5055 fi
5056 fi
5057 rm t1 t2
5058
5059 fi
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5061 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5062 do_compare="$gcc_cv_prog_cmp_skip"
5063
5064
5065
5066 # Check whether --enable-bootstrap was given.
5067 if test "${enable_bootstrap+set}" = set; then :
5068 enableval=$enable_bootstrap;
5069 else
5070 enable_bootstrap=default
5071 fi
5072
5073
5074 # Issue errors and warnings for invalid/strange bootstrap combinations.
5075 if test -r $srcdir/gcc/configure; then
5076 have_compiler=yes
5077 else
5078 have_compiler=no
5079 fi
5080
5081 case "$have_compiler:$host:$target:$enable_bootstrap" in
5082 *:*:*:no) ;;
5083
5084 # Default behavior. Enable bootstrap if we have a compiler
5085 # and we are in a native configuration.
5086 yes:$build:$build:default)
5087 enable_bootstrap=yes ;;
5088
5089 *:*:*:default)
5090 enable_bootstrap=no ;;
5091
5092 # We have a compiler and we are in a native configuration, bootstrap is ok
5093 yes:$build:$build:yes)
5094 ;;
5095
5096 # Other configurations, but we have a compiler. Assume the user knows
5097 # what he's doing.
5098 yes:*:*:yes)
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5100 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5101 ;;
5102
5103 # No compiler: if they passed --enable-bootstrap explicitly, fail
5104 no:*:*:yes)
5105 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5106
5107 # Fail if wrong command line
5108 *)
5109 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5110 ;;
5111 esac
5112
5113 # See if we are building gcc with C++.
5114 # Check whether --enable-build-with-cxx was given.
5115 if test "${enable_build_with_cxx+set}" = set; then :
5116 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5117 else
5118 ENABLE_BUILD_WITH_CXX=no
5119 fi
5120
5121
5122 # Build stage1 with C and build stages 2 and 3 with C++.
5123 # Check whether --enable-build-poststage1-with-cxx was given.
5124 if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5125 enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5126 else
5127 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5128 fi
5129
5130
5131 # Used for setting $lt_cv_objdir
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5133 $as_echo_n "checking for objdir... " >&6; }
5134 if test "${lt_cv_objdir+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 rm -f .libs 2>/dev/null
5138 mkdir .libs 2>/dev/null
5139 if test -d .libs; then
5140 lt_cv_objdir=.libs
5141 else
5142 # MS-DOS does not allow filenames that begin with a dot.
5143 lt_cv_objdir=_libs
5144 fi
5145 rmdir .libs 2>/dev/null
5146 fi
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5148 $as_echo "$lt_cv_objdir" >&6; }
5149 objdir=$lt_cv_objdir
5150
5151
5152
5153
5154
5155 cat >>confdefs.h <<_ACEOF
5156 #define LT_OBJDIR "$lt_cv_objdir/"
5157 _ACEOF
5158
5159
5160
5161 # Check for GMP, MPFR and MPC
5162 gmplibs="-lmpc -lmpfr -lgmp"
5163 gmpinc=
5164 have_gmp=no
5165
5166 # Specify a location for mpc
5167 # check for this first so it ends up on the link line before mpfr.
5168
5169 # Check whether --with-mpc was given.
5170 if test "${with_mpc+set}" = set; then :
5171 withval=$with_mpc;
5172 fi
5173
5174
5175 # Check whether --with-mpc-include was given.
5176 if test "${with_mpc_include+set}" = set; then :
5177 withval=$with_mpc_include;
5178 fi
5179
5180
5181 # Check whether --with-mpc-lib was given.
5182 if test "${with_mpc_lib+set}" = set; then :
5183 withval=$with_mpc_lib;
5184 fi
5185
5186
5187 if test "x$with_mpc" != x; then
5188 gmplibs="-L$with_mpc/lib $gmplibs"
5189 gmpinc="-I$with_mpc/include $gmpinc"
5190 fi
5191 if test "x$with_mpc_include" != x; then
5192 gmpinc="-I$with_mpc_include $gmpinc"
5193 fi
5194 if test "x$with_mpc_lib" != x; then
5195 gmplibs="-L$with_mpc_lib $gmplibs"
5196 fi
5197 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5198 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5199 gmpinc='-I$$s/mpc/src '"$gmpinc"
5200 # Do not test the mpc version. Assume that it is sufficient, since
5201 # it is in the source tree, and the library has not been built yet
5202 # but it would be included on the link line in the version check below
5203 # hence making the test fail.
5204 have_gmp=yes
5205 fi
5206
5207 # Specify a location for mpfr
5208 # check for this first so it ends up on the link line before gmp.
5209
5210 # Check whether --with-mpfr-dir was given.
5211 if test "${with_mpfr_dir+set}" = set; then :
5212 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5213 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5214 fi
5215
5216
5217
5218 # Check whether --with-mpfr was given.
5219 if test "${with_mpfr+set}" = set; then :
5220 withval=$with_mpfr;
5221 fi
5222
5223
5224 # Check whether --with-mpfr-include was given.
5225 if test "${with_mpfr_include+set}" = set; then :
5226 withval=$with_mpfr_include;
5227 fi
5228
5229
5230 # Check whether --with-mpfr-lib was given.
5231 if test "${with_mpfr_lib+set}" = set; then :
5232 withval=$with_mpfr_lib;
5233 fi
5234
5235
5236 if test "x$with_mpfr" != x; then
5237 gmplibs="-L$with_mpfr/lib $gmplibs"
5238 gmpinc="-I$with_mpfr/include $gmpinc"
5239 fi
5240 if test "x$with_mpfr_include" != x; then
5241 gmpinc="-I$with_mpfr_include $gmpinc"
5242 fi
5243 if test "x$with_mpfr_lib" != x; then
5244 gmplibs="-L$with_mpfr_lib $gmplibs"
5245 fi
5246 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5247 # MPFR v3.1.0 moved the sources into a src sub-directory.
5248 if test -d ${srcdir}/mpfr/src; then
5249 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5250 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5251 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5252 else
5253 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5254 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5255 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5256 fi
5257 # Do not test the mpfr version. Assume that it is sufficient, since
5258 # it is in the source tree, and the library has not been built yet
5259 # but it would be included on the link line in the version check below
5260 # hence making the test fail.
5261 have_gmp=yes
5262 fi
5263
5264 # Specify a location for gmp
5265
5266 # Check whether --with-gmp-dir was given.
5267 if test "${with_gmp_dir+set}" = set; then :
5268 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5269 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5270 fi
5271
5272
5273
5274 # Check whether --with-gmp was given.
5275 if test "${with_gmp+set}" = set; then :
5276 withval=$with_gmp;
5277 fi
5278
5279
5280 # Check whether --with-gmp-include was given.
5281 if test "${with_gmp_include+set}" = set; then :
5282 withval=$with_gmp_include;
5283 fi
5284
5285
5286 # Check whether --with-gmp-lib was given.
5287 if test "${with_gmp_lib+set}" = set; then :
5288 withval=$with_gmp_lib;
5289 fi
5290
5291
5292
5293 if test "x$with_gmp" != x; then
5294 gmplibs="-L$with_gmp/lib $gmplibs"
5295 gmpinc="-I$with_gmp/include $gmpinc"
5296 fi
5297 if test "x$with_gmp_include" != x; then
5298 gmpinc="-I$with_gmp_include $gmpinc"
5299 fi
5300 if test "x$with_gmp_lib" != x; then
5301 gmplibs="-L$with_gmp_lib $gmplibs"
5302 fi
5303 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5304 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5305 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5306 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5307 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5308 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5309 # Do not test the gmp version. Assume that it is sufficient, since
5310 # it is in the source tree, and the library has not been built yet
5311 # but it would be included on the link line in the version check below
5312 # hence making the test fail.
5313 have_gmp=yes
5314 fi
5315
5316 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5317 have_gmp=yes
5318 saved_CFLAGS="$CFLAGS"
5319 CFLAGS="$CFLAGS $gmpinc"
5320 # Check for the recommended and required versions of GMP.
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5322 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5323
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326 #include "gmp.h"
5327 int
5328 main ()
5329 {
5330
5331 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5332 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5333 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5334 choke me
5335 #endif
5336
5337 ;
5338 return 0;
5339 }
5340 _ACEOF
5341 if ac_fn_c_try_compile "$LINENO"; then :
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <gmp.h>
5345 int
5346 main ()
5347 {
5348
5349 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5350 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5351 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5352 choke me
5353 #endif
5354
5355 ;
5356 return 0;
5357 }
5358 _ACEOF
5359 if ac_fn_c_try_compile "$LINENO"; then :
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5361 $as_echo "yes" >&6; }
5362 else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5364 $as_echo "buggy but acceptable" >&6; }
5365 fi
5366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367 else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }; have_gmp=no
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372
5373 # If we have GMP, check the MPFR version.
5374 if test x"$have_gmp" = xyes; then
5375 # Check for the recommended and required versions of MPFR.
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5377 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5380 #include <gmp.h>
5381 #include <mpfr.h>
5382 int
5383 main ()
5384 {
5385
5386 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5387 choke me
5388 #endif
5389
5390 ;
5391 return 0;
5392 }
5393 _ACEOF
5394 if ac_fn_c_try_compile "$LINENO"; then :
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5397 #include <gmp.h>
5398 #include <mpfr.h>
5399 int
5400 main ()
5401 {
5402
5403 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5404 choke me
5405 #endif
5406
5407 ;
5408 return 0;
5409 }
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5413 $as_echo "yes" >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5416 $as_echo "buggy but acceptable" >&6; }
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 else
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }; have_gmp=no
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 fi
5425
5426 # Check for the MPC header version.
5427 if test x"$have_gmp" = xyes ; then
5428 # Check for the recommended and required versions of MPC.
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5430 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5433 #include <mpc.h>
5434 int
5435 main ()
5436 {
5437
5438 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5439 choke me
5440 #endif
5441
5442 ;
5443 return 0;
5444 }
5445 _ACEOF
5446 if ac_fn_c_try_compile "$LINENO"; then :
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 #include <mpc.h>
5450 int
5451 main ()
5452 {
5453
5454 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5455 choke me
5456 #endif
5457
5458 ;
5459 return 0;
5460 }
5461 _ACEOF
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5464 $as_echo "yes" >&6; }
5465 else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5467 $as_echo "buggy but acceptable" >&6; }
5468 fi
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 conftest.$ac_ext
5475 fi
5476
5477 # Now check the MPFR library.
5478 if test x"$have_gmp" = xyes; then
5479 saved_LIBS="$LIBS"
5480 LIBS="$LIBS $gmplibs"
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5482 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485 #include <mpc.h>
5486 int
5487 main ()
5488 {
5489
5490 mpfr_t n;
5491 mpfr_t x;
5492 mpc_t c;
5493 int t;
5494 mpfr_init (n);
5495 mpfr_init (x);
5496 mpfr_atan2 (n, n, x, GMP_RNDN);
5497 mpfr_erfc (n, x, GMP_RNDN);
5498 mpfr_subnormalize (x, t, GMP_RNDN);
5499 mpfr_clear(n);
5500 mpfr_clear(x);
5501 mpc_init2 (c, 53);
5502 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5503 mpc_cosh (c, c, MPC_RNDNN);
5504 mpc_pow (c, c, c, MPC_RNDNN);
5505 mpc_acosh (c, c, MPC_RNDNN);
5506 mpc_clear (c);
5507
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 if ac_fn_c_try_link "$LINENO"; then :
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5514 $as_echo "yes" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }; have_gmp=no
5518 fi
5519 rm -f core conftest.err conftest.$ac_objext \
5520 conftest$ac_exeext conftest.$ac_ext
5521 LIBS="$saved_LIBS"
5522 fi
5523
5524 CFLAGS="$saved_CFLAGS"
5525
5526 # The library versions listed in the error message below should match
5527 # the HARD-minimums enforced above.
5528 if test x$have_gmp != xyes; then
5529 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5530 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5531 their locations. Source code for these libraries can be found at
5532 their respective hosting sites as well as at
5533 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5534 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5535 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5536 make sure that you have installed both the libraries and the header
5537 files. They may be located in separate packages." "$LINENO" 5
5538 fi
5539 fi
5540
5541 # Flags needed for both GMP, MPFR and/or MPC.
5542
5543
5544
5545
5546
5547
5548
5549 # Allow host libstdc++ to be specified for static linking with PPL.
5550
5551 # Check whether --with-host-libstdcxx was given.
5552 if test "${with_host_libstdcxx+set}" = set; then :
5553 withval=$with_host_libstdcxx;
5554 fi
5555
5556
5557 case $with_host_libstdcxx in
5558 no|yes)
5559 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5560 ;;
5561 esac
5562
5563 # Linker flags to use for stage1 or when not boostrapping.
5564
5565 # Check whether --with-stage1-ldflags was given.
5566 if test "${with_stage1_ldflags+set}" = set; then :
5567 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5568 stage1_ldflags=
5569 else
5570 stage1_ldflags=$withval
5571 fi
5572 else
5573 stage1_ldflags=
5574 fi
5575
5576
5577
5578 # Libraries to use for stage1 or when not bootstrapping.
5579
5580 # Check whether --with-stage1-libs was given.
5581 if test "${with_stage1_libs+set}" = set; then :
5582 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5583 stage1_libs=
5584 else
5585 stage1_libs=$withval
5586 fi
5587 else
5588 stage1_libs=$with_host_libstdcxx
5589 fi
5590
5591
5592
5593 # Libraries to use for stage2 and later builds. This defaults to the
5594 # argument passed to --with-host-libstdcxx.
5595
5596 # Check whether --with-boot-libs was given.
5597 if test "${with_boot_libs+set}" = set; then :
5598 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5599 poststage1_libs=
5600 else
5601 poststage1_libs=$withval
5602 fi
5603 else
5604 poststage1_libs=$with_host_libstdcxx
5605 fi
5606
5607
5608
5609 # Linker flags to use for stage2 and later builds.
5610
5611 # Check whether --with-boot-ldflags was given.
5612 if test "${with_boot_ldflags+set}" = set; then :
5613 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5614 poststage1_ldflags=
5615 else
5616 poststage1_ldflags=$withval
5617 fi
5618 else
5619 poststage1_ldflags=
5620 # In stages 2 and 3, default to linking libstdc++ and libgcc
5621 # statically. But if the user explicitly specified the libraries to
5622 # use, trust that they are doing what they want.
5623 if test "$poststage1_libs" = ""; then
5624 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5625 fi
5626 fi
5627
5628
5629
5630 # Check for ISL
5631
5632
5633 # Check whether --with-isl was given.
5634 if test "${with_isl+set}" = set; then :
5635 withval=$with_isl;
5636 fi
5637
5638
5639 # Check whether --with-isl-include was given.
5640 if test "${with_isl_include+set}" = set; then :
5641 withval=$with_isl_include;
5642 fi
5643
5644
5645 # Check whether --with-isl-lib was given.
5646 if test "${with_isl_lib+set}" = set; then :
5647 withval=$with_isl_lib;
5648 fi
5649
5650
5651 # Check whether --enable-isl-version-check was given.
5652 if test "${enable_isl_version_check+set}" = set; then :
5653 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5654 else
5655 ENABLE_ISL_CHECK=yes
5656 fi
5657
5658
5659 # Initialize isllibs and islinc.
5660 case $with_isl in
5661 no)
5662 isllibs=
5663 islinc=
5664 ;;
5665 "" | yes)
5666 ;;
5667 *)
5668 isllibs="-L$with_isl/lib"
5669 islinc="-I$with_isl/include"
5670 ;;
5671 esac
5672 if test "x${with_isl_include}" != x ; then
5673 islinc="-I$with_isl_include"
5674 fi
5675 if test "x${with_isl_lib}" != x; then
5676 isllibs="-L$with_isl_lib"
5677 fi
5678 extra_cloog_isl_configure_flags='--with-isl=system'
5679 if test "x${islinc}" = x && test "x${isllibs}" = x \
5680 && test -d ${srcdir}/isl; then
5681 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5682 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5683 extra_cloog_isl_configure_flags='--with-isl-builddir=$$r/$(HOST_DIR)/isl'
5684 ENABLE_ISL_CHECK=no
5685 fi
5686
5687 isllibs="${isllibs} -lisl"
5688
5689
5690
5691
5692
5693
5694 if test "x$with_isl" != "xno"; then
5695
5696 if test "${ENABLE_ISL_CHECK}" = yes ; then
5697 _isl_saved_CFLAGS=$CFLAGS
5698 _isl_saved_LDFLAGS=$LDFLAGS
5699 _isl_saved_LIBS=$LIBS
5700
5701 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5702 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5703 LIBS="${_isl_saved_LIBS} -lisl"
5704 echo $CFLAGS
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5707 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5708 if test "${gcc_cv_isl+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 if test "$cross_compiling" = yes; then :
5712 gcc_cv_isl=yes
5713 else
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5716 #include <isl/version.h>
5717 #include <string.h>
5718 int
5719 main ()
5720 {
5721 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5722 return 1;
5723
5724 ;
5725 return 0;
5726 }
5727 _ACEOF
5728 if ac_fn_c_try_run "$LINENO"; then :
5729 gcc_cv_isl=yes
5730 else
5731 gcc_cv_isl=no
5732 fi
5733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5734 conftest.$ac_objext conftest.beam conftest.$ac_ext
5735 fi
5736
5737 fi
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5739 $as_echo "$gcc_cv_isl" >&6; }
5740
5741 CFLAGS=$_isl_saved_CFLAGS
5742 LDFLAGS=$_isl_saved_LDFLAGS
5743 LIBS=$_isl_saved_LIBS
5744 fi
5745
5746
5747
5748
5749
5750
5751
5752 if test "x${with_isl}" = xno; then
5753 graphite_requested=no
5754 elif test "x${with_isl}" != x \
5755 || test "x${with_isl_include}" != x \
5756 || test "x${with_isl_lib}" != x ; then
5757 graphite_requested=yes
5758 else
5759 graphite_requested=no
5760 fi
5761
5762
5763
5764 if test "${gcc_cv_isl}" = no ; then
5765 isllibs=
5766 islinc=
5767 fi
5768
5769 if test "${graphite_requested}" = yes \
5770 && test "x${isllibs}" = x \
5771 && test "x${islinc}" = x ; then
5772
5773 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5774 fi
5775
5776
5777 fi
5778
5779 # Check for CLOOG
5780
5781
5782 # Check whether --with-cloog was given.
5783 if test "${with_cloog+set}" = set; then :
5784 withval=$with_cloog;
5785 fi
5786
5787
5788 # Check whether --with-cloog-include was given.
5789 if test "${with_cloog_include+set}" = set; then :
5790 withval=$with_cloog_include;
5791 fi
5792
5793
5794 # Check whether --with-cloog-lib was given.
5795 if test "${with_cloog_lib+set}" = set; then :
5796 withval=$with_cloog_lib;
5797 fi
5798
5799
5800 # Check whether --enable-cloog-version-check was given.
5801 if test "${enable_cloog_version_check+set}" = set; then :
5802 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5803 else
5804 ENABLE_CLOOG_CHECK=yes
5805 fi
5806
5807
5808 # Initialize clooglibs and clooginc.
5809 case $with_cloog in
5810 no)
5811 clooglibs=
5812 clooginc=
5813 ;;
5814 "" | yes)
5815 ;;
5816 *)
5817 clooglibs="-L$with_cloog/lib"
5818 clooginc="-I$with_cloog/include"
5819 ;;
5820 esac
5821 if test "x${with_cloog_include}" != x ; then
5822 clooginc="-I$with_cloog_include"
5823 fi
5824 if test "x${with_cloog_lib}" != x; then
5825 clooglibs="-L$with_cloog_lib"
5826 fi
5827 if test "x${clooginc}" == x && test "x${clooglibs}" == x \
5828 && test -d ${srcdir}/cloog; then
5829 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5830 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
5831 fi
5832
5833 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5834 clooglibs="${clooglibs} -lcloog-isl ${isllibs}"
5835
5836
5837
5838
5839
5840 if test "x$isllibs" = x && test "x$islinc" = x; then
5841 clooglibs=
5842 clooginc=
5843 elif test "x$with_cloog" != "xno"; then
5844
5845
5846
5847 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5848 _cloog_saved_CFLAGS=$CFLAGS
5849 _cloog_saved_LDFLAGS=$LDFLAGS
5850
5851 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5852 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5853
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5855 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5856 if test "${gcc_cv_cloog+set}" = set; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5861 #include "cloog/version.h"
5862 int
5863 main ()
5864 {
5865 #if CLOOG_VERSION_MAJOR != 0 \
5866 || CLOOG_VERSION_MINOR != 17 \
5867 || CLOOG_VERSION_REVISION < 0
5868 choke me
5869 #endif
5870 ;
5871 return 0;
5872 }
5873 _ACEOF
5874 if ac_fn_c_try_compile "$LINENO"; then :
5875 gcc_cv_cloog=yes
5876 else
5877 gcc_cv_cloog=no
5878 fi
5879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 fi
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5882 $as_echo "$gcc_cv_cloog" >&6; }
5883
5884 CFLAGS=$_cloog_saved_CFLAGS
5885 LDFLAGS=$_cloog_saved_LDFLAGS
5886 fi
5887
5888
5889
5890
5891
5892
5893
5894 if test "x${with_cloog}" = xno; then
5895 graphite_requested=no
5896 elif test "x${with_cloog}" != x \
5897 || test "x${with_cloog_include}" != x \
5898 || test "x${with_cloog_lib}" != x ; then
5899 graphite_requested=yes
5900 else
5901 graphite_requested=no
5902 fi
5903
5904
5905
5906 if test "${gcc_cv_cloog}" = no ; then
5907 clooglibs=
5908 clooginc=
5909 fi
5910
5911 if test "${graphite_requested}" = yes \
5912 && test "x${clooglibs}" = x \
5913 && test "x${clooginc}" = x ; then
5914
5915 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
5916 fi
5917
5918
5919 fi
5920
5921 # If either the ISL or the CLooG check failed, disable builds of in-tree
5922 # variants of both
5923 if test "x$clooglibs" = x && test "x$clooginc" = x; then
5924 noconfigdirs="$noconfigdirs cloog isl"
5925 fi
5926
5927 # Check for LTO support.
5928 # Check whether --enable-lto was given.
5929 if test "${enable_lto+set}" = set; then :
5930 enableval=$enable_lto; enable_lto=$enableval
5931 else
5932 enable_lto=yes; default_enable_lto=yes
5933 fi
5934
5935
5936
5937
5938
5939 target_elf=no
5940 case $target in
5941 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5942 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5943 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5944 target_elf=no
5945 ;;
5946 *)
5947 target_elf=yes
5948 ;;
5949 esac
5950
5951 if test $target_elf = yes; then :
5952 # ELF platforms build the lto-plugin always.
5953 build_lto_plugin=yes
5954
5955 else
5956 if test x"$default_enable_lto" = x"yes" ; then
5957 case $target in
5958 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
5959 # On other non-ELF platforms, LTO has yet to be validated.
5960 *) enable_lto=no ;;
5961 esac
5962 else
5963 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5964 # It would also be nice to check the binutils support, but we don't
5965 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5966 # warn during gcc/ subconfigure; unless you're bootstrapping with
5967 # -flto it won't be needed until after installation anyway.
5968 case $target in
5969 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
5970 *) if test x"$enable_lto" = x"yes"; then
5971 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5972 fi
5973 ;;
5974 esac
5975 fi
5976 # Among non-ELF, only Windows platforms support the lto-plugin so far.
5977 # Build it unless LTO was explicitly disabled.
5978 case $target in
5979 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
5980 *) ;;
5981 esac
5982
5983 fi
5984
5985
5986
5987 # By default, C is the only stage 1 language.
5988 stage1_languages=,c,
5989
5990 # Target libraries that we bootstrap.
5991 bootstrap_target_libs=,target-libgcc,
5992
5993 # Figure out what language subdirectories are present.
5994 # Look if the user specified --enable-languages="..."; if not, use
5995 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5996 # go away some day.
5997 # NB: embedded tabs in this IF block -- do not untabify
5998 if test -d ${srcdir}/gcc; then
5999 if test x"${enable_languages+set}" != xset; then
6000 if test x"${LANGUAGES+set}" = xset; then
6001 enable_languages="${LANGUAGES}"
6002 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6003 else
6004 enable_languages=all
6005 fi
6006 else
6007 if test x"${enable_languages}" = x ||
6008 test x"${enable_languages}" = xyes;
6009 then
6010 echo configure.in: --enable-languages needs at least one language argument 1>&2
6011 exit 1
6012 fi
6013 fi
6014 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6015
6016 # 'f95' is the old name for the 'fortran' language. We issue a warning
6017 # and make the substitution.
6018 case ,${enable_languages}, in
6019 *,f95,*)
6020 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6021 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6022 ;;
6023 esac
6024
6025 # If bootstrapping, then using --enable-build-with-cxx or
6026 # --enable-build-poststage1-with-cxx requires enabling C++.
6027 case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6028 *,c++,*:*:*) ;;
6029 *:*,yes,*:yes)
6030 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6031 enable_languages="${enable_languages},c++"
6032 else
6033 as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6034 fi
6035 ;;
6036 esac
6037
6038 # First scan to see if an enabled language requires some other language.
6039 # We assume that a given config-lang.in will list all the language
6040 # front ends it requires, even if some are required indirectly.
6041 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6042 case ${lang_frag} in
6043 ..) ;;
6044 # The odd quoting in the next line works around
6045 # an apparent bug in bash 1.12 on linux.
6046 ${srcdir}/gcc/[*]/config-lang.in) ;;
6047 *)
6048 # From the config-lang.in, get $language, $lang_requires, and
6049 # $lang_requires_boot_languages.
6050 language=
6051 lang_requires=
6052 lang_requires_boot_languages=
6053 . ${lang_frag}
6054 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6055 case ,${enable_languages}, in
6056 *,$other,*) ;;
6057 *,all,*) ;;
6058 *,$language,*)
6059 echo " \`$other' language required by \`$language'; enabling" 1>&2
6060 enable_languages="${enable_languages},${other}"
6061 ;;
6062 esac
6063 done
6064 for other in ${lang_requires_boot_languages} ; do
6065 if test "$other" != "c"; then
6066 case ,${enable_stage1_languages}, in
6067 *,$other,*) ;;
6068 *,all,*) ;;
6069 *)
6070 case ,${enable_languages}, in
6071 *,$language,*)
6072 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6073 enable_stage1_languages="$enable_stage1_languages,${other}"
6074 ;;
6075 esac
6076 ;;
6077 esac
6078 fi
6079 done
6080 ;;
6081 esac
6082 done
6083
6084 new_enable_languages=,c,
6085
6086 # If LTO is enabled, add the LTO front end.
6087 extra_host_libiberty_configure_flags=
6088 if test "$enable_lto" = "yes" ; then
6089 case ,${enable_languages}, in
6090 *,lto,*) ;;
6091 *) enable_languages="${enable_languages},lto" ;;
6092 esac
6093 if test "${build_lto_plugin}" = "yes" ; then
6094 configdirs="$configdirs lto-plugin"
6095 extra_host_libiberty_configure_flags=--enable-shared
6096 fi
6097 fi
6098
6099
6100 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6101 potential_languages=,c,
6102
6103 enabled_target_libs=
6104 disabled_target_libs=
6105
6106 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6107 case ${lang_frag} in
6108 ..) ;;
6109 # The odd quoting in the next line works around
6110 # an apparent bug in bash 1.12 on linux.
6111 ${srcdir}/gcc/[*]/config-lang.in) ;;
6112 *)
6113 # From the config-lang.in, get $language, $target_libs,
6114 # $lang_dirs, $boot_language, and $build_by_default
6115 language=
6116 target_libs=
6117 lang_dirs=
6118 subdir_requires=
6119 boot_language=no
6120 build_by_default=yes
6121 . ${lang_frag}
6122 if test x${language} = x; then
6123 echo "${lang_frag} doesn't set \$language." 1>&2
6124 exit 1
6125 fi
6126
6127 if test "$language" = "c++"; then
6128 if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6129 || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6130 boot_language=yes
6131 fi
6132 fi
6133
6134 case ,${enable_languages}, in
6135 *,${language},*)
6136 # Language was explicitly selected; include it
6137 # unless it is C, which is enabled by default.
6138 if test "$language" != "c"; then
6139 add_this_lang=yes
6140 fi
6141 ;;
6142 *,all,*)
6143 # 'all' was selected, select it if it is a default language
6144 add_this_lang=${build_by_default}
6145 ;;
6146 *)
6147 add_this_lang=no
6148 ;;
6149 esac
6150
6151 # Disable languages that need other directories if these aren't available.
6152 for i in $subdir_requires; do
6153 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6154 case ,${enable_languages}, in
6155 *,${language},*)
6156 # Specifically requested language; tell them.
6157 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6158 ;;
6159 *)
6160 # Silently disable.
6161 add_this_lang=unsupported
6162 ;;
6163 esac
6164 done
6165
6166 # Disable Ada if no preexisting GNAT is available.
6167 case ,${enable_languages},:${language}:${have_gnat} in
6168 *,${language},*:ada:no)
6169 # Specifically requested language; tell them.
6170 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6171 ;;
6172 *:ada:no)
6173 # Silently disable.
6174 add_this_lang=unsupported
6175 ;;
6176 esac
6177
6178 # Disable a language that is unsupported by the target.
6179 case " $unsupported_languages " in
6180 *" $language "*)
6181 add_this_lang=unsupported
6182 ;;
6183 esac
6184
6185 case $add_this_lang in
6186 unsupported)
6187 # Remove language-dependent dirs.
6188 disabled_target_libs="$disabled_target_libs $target_libs"
6189 noconfigdirs="$noconfigdirs $lang_dirs"
6190 ;;
6191 no)
6192 # Remove language-dependent dirs; still show language as supported.
6193 disabled_target_libs="$disabled_target_libs $target_libs"
6194 noconfigdirs="$noconfigdirs $lang_dirs"
6195 potential_languages="${potential_languages}${language},"
6196 ;;
6197 yes)
6198 new_enable_languages="${new_enable_languages}${language},"
6199 potential_languages="${potential_languages}${language},"
6200 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6201 enabled_target_libs="$enabled_target_libs $target_libs"
6202 case "${boot_language}:,$enable_stage1_languages," in
6203 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6204 # Add to (comma-separated) list of stage 1 languages.
6205 case ",$stage1_languages," in
6206 *,$language,* | ,yes, | ,all,) ;;
6207 *) stage1_languages="${stage1_languages}${language}," ;;
6208 esac
6209 # We need to bootstrap any supporting libraries.
6210 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6211 ;;
6212 esac
6213 ;;
6214 esac
6215 ;;
6216 esac
6217 done
6218
6219 # Add target libraries which are only needed for disabled languages
6220 # to noconfigdirs.
6221 if test -n "$disabled_target_libs"; then
6222 for dir in $disabled_target_libs; do
6223 case " $enabled_target_libs " in
6224 *" ${dir} "*) ;;
6225 *) noconfigdirs="$noconfigdirs $dir" ;;
6226 esac
6227 done
6228 fi
6229
6230 # Check whether --enable-stage1-languages was given.
6231 if test "${enable_stage1_languages+set}" = set; then :
6232 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6233 ,no,|,,)
6234 # Set it to something that will have no effect in the loop below
6235 enable_stage1_languages=c ;;
6236 ,yes,)
6237 enable_stage1_languages=`echo $new_enable_languages | \
6238 sed -e "s/^,//" -e "s/,$//" ` ;;
6239 *,all,*)
6240 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6241 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6242 esac
6243
6244 # Add "good" languages from enable_stage1_languages to stage1_languages,
6245 # while "bad" languages go in missing_languages. Leave no duplicates.
6246 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6247 case $potential_languages in
6248 *,$i,*)
6249 case $stage1_languages in
6250 *,$i,*) ;;
6251 *) stage1_languages="$stage1_languages$i," ;;
6252 esac ;;
6253 *)
6254 case $missing_languages in
6255 *,$i,*) ;;
6256 *) missing_languages="$missing_languages$i," ;;
6257 esac ;;
6258 esac
6259 done
6260 fi
6261
6262
6263 # Remove leading/trailing commas that were added for simplicity
6264 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6265 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6266 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6267 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6268
6269 if test "x$missing_languages" != x; then
6270 as_fn_error "
6271 The following requested languages could not be built: ${missing_languages}
6272 Supported languages are: ${potential_languages}" "$LINENO" 5
6273 fi
6274 if test "x$new_enable_languages" != "x$enable_languages"; then
6275 echo The following languages will be built: ${new_enable_languages}
6276 enable_languages="$new_enable_languages"
6277 fi
6278
6279
6280 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6281 fi
6282
6283 # Handle --disable-<component> generically.
6284 for dir in $configdirs $build_configdirs $target_configdirs ; do
6285 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6286 varname=`echo $dirname | sed -e s/+/_/g`
6287 if eval test x\${enable_${varname}} "=" xno ; then
6288 noconfigdirs="$noconfigdirs $dir"
6289 fi
6290 done
6291
6292 # Check for Boehm's garbage collector
6293 # Check whether --enable-objc-gc was given.
6294 if test "${enable_objc_gc+set}" = set; then :
6295 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6296 *,objc,*:*:yes:*target-boehm-gc*)
6297 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6298 ;;
6299 esac
6300 fi
6301
6302
6303 # Make sure we only build Boehm's garbage collector if required.
6304 case ,${enable_languages},:${enable_objc_gc} in
6305 *,objc,*:yes)
6306 # Keep target-boehm-gc if requested for Objective-C.
6307 ;;
6308 *)
6309 # Otherwise remove target-boehm-gc depending on target-libjava.
6310 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6311 noconfigdirs="$noconfigdirs target-boehm-gc"
6312 fi
6313 ;;
6314 esac
6315
6316 # Disable libitm if we're not building C++
6317 case ,${enable_languages}, in
6318 *,c++,*) ;;
6319 *)
6320 noconfigdirs="$noconfigdirs target-libitm"
6321 ;;
6322 esac
6323
6324 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6325 # $build_configdirs and $target_configdirs.
6326 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6327
6328 notsupp=""
6329 for dir in . $skipdirs $noconfigdirs ; do
6330 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6331 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6332 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6333 if test -r $srcdir/$dirname/configure ; then
6334 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6335 true
6336 else
6337 notsupp="$notsupp $dir"
6338 fi
6339 fi
6340 fi
6341 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6342 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6343 if test -r $srcdir/$dirname/configure ; then
6344 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6345 true
6346 else
6347 notsupp="$notsupp $dir"
6348 fi
6349 fi
6350 fi
6351 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6352 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6353 if test -r $srcdir/$dirname/configure ; then
6354 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6355 true
6356 else
6357 notsupp="$notsupp $dir"
6358 fi
6359 fi
6360 fi
6361 done
6362
6363 # Quietly strip out all directories which aren't configurable in this tree.
6364 # This relies on all configurable subdirectories being autoconfiscated, which
6365 # is now the case.
6366 build_configdirs_all="$build_configdirs"
6367 build_configdirs=
6368 for i in ${build_configdirs_all} ; do
6369 j=`echo $i | sed -e s/build-//g`
6370 if test -f ${srcdir}/$j/configure ; then
6371 build_configdirs="${build_configdirs} $i"
6372 fi
6373 done
6374
6375 configdirs_all="$configdirs"
6376 configdirs=
6377 for i in ${configdirs_all} ; do
6378 if test -f ${srcdir}/$i/configure ; then
6379 configdirs="${configdirs} $i"
6380 fi
6381 done
6382
6383 target_configdirs_all="$target_configdirs"
6384 target_configdirs=
6385 for i in ${target_configdirs_all} ; do
6386 j=`echo $i | sed -e s/target-//g`
6387 if test -f ${srcdir}/$j/configure ; then
6388 target_configdirs="${target_configdirs} $i"
6389 fi
6390 done
6391
6392 # Produce a warning message for the subdirs we can't configure.
6393 # This isn't especially interesting in the Cygnus tree, but in the individual
6394 # FSF releases, it's important to let people know when their machine isn't
6395 # supported by the one or two programs in a package.
6396
6397 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6398 # If $appdirs is non-empty, at least one of those directories must still
6399 # be configured, or we error out. (E.g., if the gas release supports a
6400 # specified target in some subdirs but not the gas subdir, we shouldn't
6401 # pretend that all is well.)
6402 if test -n "$appdirs" ; then
6403 for dir in $appdirs ; do
6404 if test -r $dir/Makefile.in ; then
6405 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6406 appdirs=""
6407 break
6408 fi
6409 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6410 appdirs=""
6411 break
6412 fi
6413 fi
6414 done
6415 if test -n "$appdirs" ; then
6416 echo "*** This configuration is not supported by this package." 1>&2
6417 exit 1
6418 fi
6419 fi
6420 # Okay, some application will build, or we don't care to check. Still
6421 # notify of subdirs not getting built.
6422 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6423 echo " ${notsupp}" 1>&2
6424 echo " (Any other directories should still work fine.)" 1>&2
6425 fi
6426
6427 case "$host" in
6428 *msdosdjgpp*)
6429 enable_gdbtk=no ;;
6430 esac
6431
6432 # To find our prefix, in gcc_cv_tool_prefix.
6433
6434 # The user is always right.
6435 if test "${PATH_SEPARATOR+set}" != set; then
6436 echo "#! /bin/sh" >conf$$.sh
6437 echo "exit 0" >>conf$$.sh
6438 chmod +x conf$$.sh
6439 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6440 PATH_SEPARATOR=';'
6441 else
6442 PATH_SEPARATOR=:
6443 fi
6444 rm -f conf$$.sh
6445 fi
6446
6447
6448
6449 if test "x$exec_prefix" = xNONE; then
6450 if test "x$prefix" = xNONE; then
6451 gcc_cv_tool_prefix=$ac_default_prefix
6452 else
6453 gcc_cv_tool_prefix=$prefix
6454 fi
6455 else
6456 gcc_cv_tool_prefix=$exec_prefix
6457 fi
6458
6459 # If there is no compiler in the tree, use the PATH only. In any
6460 # case, if there is no compiler in the tree nobody should use
6461 # AS_FOR_TARGET and LD_FOR_TARGET.
6462 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6463 gcc_version=`cat $srcdir/gcc/BASE-VER`
6464 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6465 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6466 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6467 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6468 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6469 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6470 else
6471 gcc_cv_tool_dirs=
6472 fi
6473
6474 if test x$build = x$target && test -n "$md_exec_prefix"; then
6475 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6476 fi
6477
6478
6479
6480 copy_dirs=
6481
6482
6483 # Check whether --with-build-sysroot was given.
6484 if test "${with_build_sysroot+set}" = set; then :
6485 withval=$with_build_sysroot; if test x"$withval" != x ; then
6486 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6487 fi
6488 else
6489 SYSROOT_CFLAGS_FOR_TARGET=
6490 fi
6491
6492
6493
6494
6495 # Check whether --with-debug-prefix-map was given.
6496 if test "${with_debug_prefix_map+set}" = set; then :
6497 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6498 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6499 for debug_map in $withval; do
6500 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6501 done
6502 fi
6503 else
6504 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6505 fi
6506
6507
6508
6509 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6510 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6511 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6512 # We want to ensure that TARGET libraries (which we know are built with
6513 # gcc) are built with "-O2 -g", so include those options when setting
6514 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6515 if test "x$CFLAGS_FOR_TARGET" = x; then
6516 CFLAGS_FOR_TARGET=$CFLAGS
6517 case " $CFLAGS " in
6518 *" -O2 "*) ;;
6519 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6520 esac
6521 case " $CFLAGS " in
6522 *" -g "* | *" -g3 "*) ;;
6523 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6524 esac
6525 fi
6526
6527
6528 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6529 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6530 case " $CXXFLAGS " in
6531 *" -O2 "*) ;;
6532 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6533 esac
6534 case " $CXXFLAGS " in
6535 *" -g "* | *" -g3 "*) ;;
6536 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6537 esac
6538 fi
6539
6540
6541
6542
6543 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6544 # the named directory are copied to $(tooldir)/sys-include.
6545 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6546 if test x${is_cross_compiler} = xno ; then
6547 echo 1>&2 '***' --with-headers is only supported when cross compiling
6548 exit 1
6549 fi
6550 if test x"${with_headers}" != xyes ; then
6551 x=${gcc_cv_tool_prefix}
6552 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6553 fi
6554 fi
6555
6556 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6557 # the name directories are copied to $(tooldir)/lib. Multiple directories
6558 # are permitted.
6559 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6560 if test x${is_cross_compiler} = xno ; then
6561 echo 1>&2 '***' --with-libs is only supported when cross compiling
6562 exit 1
6563 fi
6564 if test x"${with_libs}" != xyes ; then
6565 # Copy the libraries in reverse order, so that files in the first named
6566 # library override files in subsequent libraries.
6567 x=${gcc_cv_tool_prefix}
6568 for l in ${with_libs}; do
6569 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6570 done
6571 fi
6572 fi
6573
6574 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6575 #
6576 # This is done by determining whether or not the appropriate directory
6577 # is available, and by checking whether or not specific configurations
6578 # have requested that this magic not happen.
6579 #
6580 # The command line options always override the explicit settings in
6581 # configure.in, and the settings in configure.in override this magic.
6582 #
6583 # If the default for a toolchain is to use GNU as and ld, and you don't
6584 # want to do that, then you should use the --without-gnu-as and
6585 # --without-gnu-ld options for the configure script. Similarly, if
6586 # the default is to use the included zlib and you don't want to do that,
6587 # you should use the --with-system-zlib option for the configure script.
6588
6589 if test x${use_gnu_as} = x &&
6590 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6591 with_gnu_as=yes
6592 extra_host_args="$extra_host_args --with-gnu-as"
6593 fi
6594
6595 if test x${use_gnu_ld} = x &&
6596 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6597 with_gnu_ld=yes
6598 extra_host_args="$extra_host_args --with-gnu-ld"
6599 fi
6600
6601 if test x${use_included_zlib} = x &&
6602 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6603 :
6604 else
6605 with_system_zlib=yes
6606 extra_host_args="$extra_host_args --with-system-zlib"
6607 fi
6608
6609 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6610 # can detect this case.
6611
6612 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6613 with_newlib=yes
6614 extra_host_args="$extra_host_args --with-newlib"
6615 fi
6616
6617 # Handle ${copy_dirs}
6618 set fnord ${copy_dirs}
6619 shift
6620 while test $# != 0 ; do
6621 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6622 :
6623 else
6624 echo Copying $1 to $2
6625
6626 # Use the install script to create the directory and all required
6627 # parent directories.
6628 if test -d $2 ; then
6629 :
6630 else
6631 echo >config.temp
6632 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6633 fi
6634
6635 # Copy the directory, assuming we have tar.
6636 # FIXME: Should we use B in the second tar? Not all systems support it.
6637 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6638
6639 # It is the responsibility of the user to correctly adjust all
6640 # symlinks. If somebody can figure out how to handle them correctly
6641 # here, feel free to add the code.
6642
6643 echo $1 > $2/COPIED
6644 fi
6645 shift; shift
6646 done
6647
6648 # Determine a target-dependent exec_prefix that the installed
6649 # gcc will search in. Keep this list sorted by triplet, with
6650 # the *-*-osname triplets last.
6651 md_exec_prefix=
6652 case "${target}" in
6653 i[34567]86-pc-msdosdjgpp*)
6654 md_exec_prefix=/dev/env/DJDIR/bin
6655 ;;
6656 *-*-hpux* | \
6657 *-*-nto-qnx* | \
6658 *-*-solaris2*)
6659 md_exec_prefix=/usr/ccs/bin
6660 ;;
6661 esac
6662
6663 extra_arflags_for_target=
6664 extra_nmflags_for_target=
6665 extra_ranlibflags_for_target=
6666 target_makefile_frag=/dev/null
6667 case "${target}" in
6668 spu-*-*)
6669 target_makefile_frag="config/mt-spu"
6670 ;;
6671 mips*-sde-elf*)
6672 target_makefile_frag="config/mt-sde"
6673 ;;
6674 mipsisa*-*-elfoabi*)
6675 target_makefile_frag="config/mt-mips-elfoabi"
6676 ;;
6677 mips*-*-*linux* | mips*-*-gnu*)
6678 target_makefile_frag="config/mt-mips-gnu"
6679 ;;
6680 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6681 target_makefile_frag="config/mt-gnu"
6682 ;;
6683 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6684 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6685 # commands to handle both 32-bit and 64-bit objects. These flags are
6686 # harmless if we're using GNU nm or ar.
6687 extra_arflags_for_target=" -X32_64"
6688 extra_nmflags_for_target=" -B -X32_64"
6689 ;;
6690 esac
6691
6692 alphaieee_frag=/dev/null
6693 case $target in
6694 alpha*-*-*)
6695 # This just makes sure to use the -mieee option to build target libs.
6696 # This should probably be set individually by each library.
6697 alphaieee_frag="config/mt-alphaieee"
6698 ;;
6699 esac
6700
6701 # If --enable-target-optspace always use -Os instead of -O2 to build
6702 # the target libraries, similarly if it is not specified, use -Os
6703 # on selected platforms.
6704 ospace_frag=/dev/null
6705 case "${enable_target_optspace}:${target}" in
6706 yes:*)
6707 ospace_frag="config/mt-ospace"
6708 ;;
6709 :d30v-*)
6710 ospace_frag="config/mt-d30v"
6711 ;;
6712 :m32r-* | :d10v-* | :fr30-*)
6713 ospace_frag="config/mt-ospace"
6714 ;;
6715 no:* | :*)
6716 ;;
6717 *)
6718 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6719 ;;
6720 esac
6721
6722 # Some systems (e.g., one of the i386-aix systems the gas testers are
6723 # using) don't handle "\$" correctly, so don't use it here.
6724 tooldir='${exec_prefix}'/${target_noncanonical}
6725 build_tooldir=${tooldir}
6726
6727 # Create a .gdbinit file which runs the one in srcdir
6728 # and tells GDB to look there for source files.
6729
6730 if test -r ${srcdir}/.gdbinit ; then
6731 case ${srcdir} in
6732 .) ;;
6733 *) cat > ./.gdbinit <<EOF
6734 # ${NO_EDIT}
6735 dir ${srcdir}
6736 dir .
6737 source ${srcdir}/.gdbinit
6738 EOF
6739 ;;
6740 esac
6741 fi
6742
6743 # Make sure that the compiler is able to generate an executable. If it
6744 # can't, we are probably in trouble. We don't care whether we can run the
6745 # executable--we might be using a cross compiler--we only care whether it
6746 # can be created. At this point the main configure script has set CC.
6747 we_are_ok=no
6748 echo "int main () { return 0; }" > conftest.c
6749 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6750 if test $? = 0 ; then
6751 if test -s conftest || test -s conftest.exe ; then
6752 we_are_ok=yes
6753 fi
6754 fi
6755 case $we_are_ok in
6756 no)
6757 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6758 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6759 rm -f conftest*
6760 exit 1
6761 ;;
6762 esac
6763 rm -f conftest*
6764
6765 # Decide which environment variable is used to find dynamic libraries.
6766 case "${host}" in
6767 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6768 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6769 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6770 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6771 esac
6772
6773 # On systems where the dynamic library environment variable is PATH,
6774 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6775 # built executables to PATH.
6776 if test "$RPATH_ENVVAR" = PATH; then
6777 GCC_SHLIB_SUBDIR=/shlib
6778 else
6779 GCC_SHLIB_SUBDIR=
6780 fi
6781
6782 # Record target_configdirs and the configure arguments for target and
6783 # build configuration in Makefile.
6784 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6785 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6786
6787 # If we are building libgomp, bootstrap it.
6788 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6789 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6790 fi
6791
6792 # Determine whether gdb needs tk/tcl or not.
6793 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6794 # and in that case we want gdb to be built without tk. Ugh!
6795 # In fact I believe gdb is the *only* package directly dependent on tk,
6796 # so we should be able to put the 'maybe's in unconditionally and
6797 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6798 # 100% sure that that's safe though.
6799
6800 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6801 case "$enable_gdbtk" in
6802 no)
6803 GDB_TK="" ;;
6804 yes)
6805 GDB_TK="${gdb_tk}" ;;
6806 *)
6807 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6808 # distro. Eventually someone will fix this and move Insight, nee
6809 # gdbtk to a separate directory.
6810 if test -d ${srcdir}/gdb/gdbtk ; then
6811 GDB_TK="${gdb_tk}"
6812 else
6813 GDB_TK=""
6814 fi
6815 ;;
6816 esac
6817 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6818 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6819
6820 # Strip out unwanted targets.
6821
6822 # While at that, we remove Makefiles if we were started for recursive
6823 # configuration, so that the top-level Makefile reconfigures them,
6824 # like we used to do when configure itself was recursive.
6825
6826 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6827 # but now we're fixing up the Makefile ourselves with the additional
6828 # commands passed to AC_CONFIG_FILES. Use separate variables
6829 # extrasub-{build,host,target} not because there is any reason to split
6830 # the substitutions up that way, but only to remain below the limit of
6831 # 99 commands in a script, for HP-UX sed.
6832 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6833
6834 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6835 yes:yes:*\ gold\ *:*,c++,*) ;;
6836 yes:yes:*\ gold\ *:*)
6837 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6838 ;;
6839 esac
6840
6841 # Adjust the toplevel makefile according to whether bootstrap was selected.
6842 case $enable_bootstrap in
6843 yes)
6844 bootstrap_suffix=bootstrap
6845 BUILD_CONFIG=bootstrap-debug
6846 ;;
6847 no)
6848 bootstrap_suffix=no-bootstrap
6849 BUILD_CONFIG=
6850 ;;
6851 esac
6852
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6854 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6855
6856
6857 # Check whether --with-build-config was given.
6858 if test "${with_build_config+set}" = set; then :
6859 withval=$with_build_config; case $with_build_config in
6860 yes) with_build_config= ;;
6861 no) with_build_config= BUILD_CONFIG= ;;
6862 esac
6863 fi
6864
6865
6866 if test "x${with_build_config}" != x; then
6867 BUILD_CONFIG=$with_build_config
6868 else
6869 case $BUILD_CONFIG in
6870 bootstrap-debug)
6871 if echo "int f (void) { return 0; }" > conftest.c &&
6872 ${CC} -c conftest.c &&
6873 mv conftest.o conftest.o.g0 &&
6874 ${CC} -c -g conftest.c &&
6875 mv conftest.o conftest.o.g &&
6876 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6877 :
6878 else
6879 BUILD_CONFIG=
6880 fi
6881 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6882 ;;
6883 esac
6884 fi
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6886 $as_echo "$BUILD_CONFIG" >&6; }
6887
6888
6889 extrasub_build=
6890 for module in ${build_configdirs} ; do
6891 if test -z "${no_recursion}" \
6892 && test -f ${build_subdir}/${module}/Makefile; then
6893 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6894 rm -f ${build_subdir}/${module}/Makefile
6895 fi
6896 extrasub_build="$extrasub_build
6897 /^@if build-$module\$/d
6898 /^@endif build-$module\$/d
6899 /^@if build-$module-$bootstrap_suffix\$/d
6900 /^@endif build-$module-$bootstrap_suffix\$/d"
6901 done
6902 extrasub_host=
6903 for module in ${configdirs} ; do
6904 if test -z "${no_recursion}"; then
6905 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6906 if test -f ${file}; then
6907 echo 1>&2 "*** removing ${file} to force reconfigure"
6908 rm -f ${file}
6909 fi
6910 done
6911 fi
6912 extrasub_host="$extrasub_host
6913 /^@if $module\$/d
6914 /^@endif $module\$/d
6915 /^@if $module-$bootstrap_suffix\$/d
6916 /^@endif $module-$bootstrap_suffix\$/d"
6917 done
6918 extrasub_target=
6919 for module in ${target_configdirs} ; do
6920 if test -z "${no_recursion}" \
6921 && test -f ${target_subdir}/${module}/Makefile; then
6922 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6923 rm -f ${target_subdir}/${module}/Makefile
6924 fi
6925
6926 # We only bootstrap target libraries listed in bootstrap_target_libs.
6927 case $bootstrap_target_libs in
6928 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6929 *) target_bootstrap_suffix=no-bootstrap ;;
6930 esac
6931
6932 extrasub_target="$extrasub_target
6933 /^@if target-$module\$/d
6934 /^@endif target-$module\$/d
6935 /^@if target-$module-$target_bootstrap_suffix\$/d
6936 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6937 done
6938
6939 # Do the final fixup along with target modules.
6940 extrasub_target="$extrasub_target
6941 /^@if /,/^@endif /d"
6942
6943 # Create the serialization dependencies. This uses a temporary file.
6944
6945 # Check whether --enable-serial-configure was given.
6946 if test "${enable_serial_configure+set}" = set; then :
6947 enableval=$enable_serial_configure;
6948 fi
6949
6950
6951 case ${enable_serial_configure} in
6952 yes)
6953 enable_serial_build_configure=yes
6954 enable_serial_host_configure=yes
6955 enable_serial_target_configure=yes
6956 ;;
6957 esac
6958
6959 # These force 'configure's to be done one at a time, to avoid problems
6960 # with contention over a shared config.cache.
6961 rm -f serdep.tmp
6962 echo '# serdep.tmp' > serdep.tmp
6963 olditem=
6964 test "x${enable_serial_build_configure}" = xyes &&
6965 for item in ${build_configdirs} ; do
6966 case ${olditem} in
6967 "") ;;
6968 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6969 esac
6970 olditem=${item}
6971 done
6972 olditem=
6973 test "x${enable_serial_host_configure}" = xyes &&
6974 for item in ${configdirs} ; do
6975 case ${olditem} in
6976 "") ;;
6977 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6978 esac
6979 olditem=${item}
6980 done
6981 olditem=
6982 test "x${enable_serial_target_configure}" = xyes &&
6983 for item in ${target_configdirs} ; do
6984 case ${olditem} in
6985 "") ;;
6986 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6987 esac
6988 olditem=${item}
6989 done
6990 serialization_dependencies=serdep.tmp
6991
6992
6993 # Base args. Strip norecursion, cache-file, srcdir, host, build,
6994 # target, nonopt, and variable assignments. These are the ones we
6995 # might not want to pass down to subconfigures. The exception being
6996 # --cache-file=/dev/null, which is used to turn off the use of cache
6997 # files altogether, and which should be passed on to subconfigures.
6998 # Also strip program-prefix, program-suffix, and program-transform-name,
6999 # so that we can pass down a consistent program-transform-name.
7000 baseargs=
7001 tbaseargs=
7002 keep_next=no
7003 skip_next=no
7004 eval "set -- $ac_configure_args"
7005 for ac_arg
7006 do
7007 if test X"$skip_next" = X"yes"; then
7008 skip_next=no
7009 continue
7010 fi
7011 if test X"$keep_next" = X"yes"; then
7012 case $ac_arg in
7013 *\'*)
7014 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7015 esac
7016 baseargs="$baseargs '$ac_arg'"
7017 tbaseargs="$tbaseargs '$ac_arg'"
7018 keep_next=no
7019 continue
7020 fi
7021
7022 # Handle separated arguments. Based on the logic generated by
7023 # autoconf 2.59.
7024 case $ac_arg in
7025 *=* | --config-cache | -C | -disable-* | --disable-* \
7026 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7027 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7028 | -with-* | --with-* | -without-* | --without-* | --x)
7029 separate_arg=no
7030 ;;
7031 -*)
7032 separate_arg=yes
7033 ;;
7034 *)
7035 separate_arg=no
7036 ;;
7037 esac
7038
7039 skip_targ=no
7040 case $ac_arg in
7041
7042 --with-* | --without-*)
7043 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7044
7045 case $libopt in
7046 *[-_]include)
7047 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7048 ;;
7049 *[-_]lib)
7050 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7051 ;;
7052 *)
7053 lib=$libopt
7054 ;;
7055 esac
7056
7057
7058 case $lib in
7059 mpc | mpfr | gmp | cloog)
7060 # If we're processing --with-$lib, --with-$lib-include or
7061 # --with-$lib-lib, for one of the libs above, and target is
7062 # different from host, don't pass the current argument to any
7063 # target library's configure.
7064 if test x$is_cross_compiler = xyes; then
7065 skip_targ=yes
7066 fi
7067 ;;
7068 esac
7069 ;;
7070 esac
7071
7072 case "$ac_arg" in
7073 --cache-file=/dev/null | \
7074 -cache-file=/dev/null )
7075 # Handled here to avoid the test to skip args below.
7076 baseargs="$baseargs '$ac_arg'"
7077 tbaseargs="$tbaseargs '$ac_arg'"
7078 # Assert: $separate_arg should always be no.
7079 keep_next=$separate_arg
7080 ;;
7081 --no*)
7082 continue
7083 ;;
7084 --c* | \
7085 --sr* | \
7086 --ho* | \
7087 --bu* | \
7088 --t* | \
7089 --program-* | \
7090 -cache_file* | \
7091 -srcdir* | \
7092 -host* | \
7093 -build* | \
7094 -target* | \
7095 -program-prefix* | \
7096 -program-suffix* | \
7097 -program-transform-name* )
7098 skip_next=$separate_arg
7099 continue
7100 ;;
7101 -*)
7102 # An option. Add it.
7103 case $ac_arg in
7104 *\'*)
7105 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7106 esac
7107 baseargs="$baseargs '$ac_arg'"
7108 if test X"$skip_targ" = Xno; then
7109 tbaseargs="$tbaseargs '$ac_arg'"
7110 fi
7111 keep_next=$separate_arg
7112 ;;
7113 *)
7114 # Either a variable assignment, or a nonopt (triplet). Don't
7115 # pass it down; let the Makefile handle this.
7116 continue
7117 ;;
7118 esac
7119 done
7120 # Remove the initial space we just introduced and, as these will be
7121 # expanded by make, quote '$'.
7122 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7123
7124 # Add in --program-transform-name, after --program-prefix and
7125 # --program-suffix have been applied to it. Autoconf has already
7126 # doubled dollar signs and backslashes in program_transform_name; we want
7127 # the backslashes un-doubled, and then the entire thing wrapped in single
7128 # quotes, because this will be expanded first by make and then by the shell.
7129 # Also, because we want to override the logic in subdir configure scripts to
7130 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7131 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7132 ${program_transform_name}
7133 EOF_SED
7134 gcc_transform_name=`cat conftestsed.out`
7135 rm -f conftestsed.out
7136 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7137 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7138 if test "$silent" = yes; then
7139 baseargs="$baseargs --silent"
7140 tbaseargs="$tbaseargs --silent"
7141 fi
7142 baseargs="$baseargs --disable-option-checking"
7143 tbaseargs="$tbaseargs --disable-option-checking"
7144
7145 # Record and document user additions to sub configure arguments.
7146
7147
7148
7149
7150 # For the build-side libraries, we just need to pretend we're native,
7151 # and not use the same cache file. Multilibs are neither needed nor
7152 # desired.
7153 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7154
7155 # For host modules, accept cache file option, or specification as blank.
7156 case "${cache_file}" in
7157 "") # empty
7158 cache_file_option="" ;;
7159 /* | [A-Za-z]:[\\/]* ) # absolute path
7160 cache_file_option="--cache-file=${cache_file}" ;;
7161 *) # relative path
7162 cache_file_option="--cache-file=../${cache_file}" ;;
7163 esac
7164
7165 # Host dirs don't like to share a cache file either, horribly enough.
7166 # This seems to be due to autoconf 2.5x stupidity.
7167 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7168
7169 target_configargs="$target_configargs ${tbaseargs}"
7170
7171 # Passing a --with-cross-host argument lets the target libraries know
7172 # whether they are being built with a cross-compiler or being built
7173 # native. However, it would be better to use other mechanisms to make the
7174 # sorts of decisions they want to make on this basis. Please consider
7175 # this option to be deprecated. FIXME.
7176 if test x${is_cross_compiler} = xyes ; then
7177 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7178 fi
7179
7180 # Default to --enable-multilib.
7181 if test x${enable_multilib} = x ; then
7182 target_configargs="--enable-multilib ${target_configargs}"
7183 fi
7184
7185 # Pass --with-newlib if appropriate. Note that target_configdirs has
7186 # changed from the earlier setting of with_newlib.
7187 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7188 target_configargs="--with-newlib ${target_configargs}"
7189 fi
7190
7191 # Different target subdirs use different values of certain variables
7192 # (notably CXX). Worse, multilibs use *lots* of different values.
7193 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7194 # it doesn't automatically accept command-line overrides of them.
7195 # This means it's not safe for target subdirs to share a cache file,
7196 # which is disgusting, but there you have it. Hopefully this can be
7197 # fixed in future. It's still worthwhile to use a cache file for each
7198 # directory. I think.
7199
7200 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7201 # We need to pass --target, as newer autoconf's requires consistency
7202 # for target_alias and gcc doesn't manage it consistently.
7203 target_configargs="--cache-file=./config.cache ${target_configargs}"
7204
7205 FLAGS_FOR_TARGET=
7206 case " $target_configdirs " in
7207 *" newlib "*)
7208 case " $target_configargs " in
7209 *" --with-newlib "*)
7210 case "$target" in
7211 *-cygwin*)
7212 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'
7213 ;;
7214 esac
7215
7216 # If we're not building GCC, don't discard standard headers.
7217 if test -d ${srcdir}/gcc; then
7218 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7219
7220 if test "${build}" != "${host}"; then
7221 # On Canadian crosses, CC_FOR_TARGET will have already been set
7222 # by `configure', so we won't have an opportunity to add -Bgcc/
7223 # to it. This is right: we don't want to search that directory
7224 # for binaries, but we want the header files in there, so add
7225 # them explicitly.
7226 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7227
7228 # Someone might think of using the pre-installed headers on
7229 # Canadian crosses, in case the installed compiler is not fully
7230 # compatible with the compiler being built. In this case, it
7231 # would be better to flag an error than risking having
7232 # incompatible object files being constructed. We can't
7233 # guarantee that an error will be flagged, but let's hope the
7234 # compiler will do it, when presented with incompatible header
7235 # files.
7236 fi
7237 fi
7238
7239 case "${target}-${is_cross_compiler}" in
7240 i[3456789]86-*-linux*-no)
7241 # Here host == target, so we don't need to build gcc,
7242 # so we don't want to discard standard headers.
7243 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7244 ;;
7245 *)
7246 # If we're building newlib, use its generic headers last, but search
7247 # for any libc-related directories first (so make it the last -B
7248 # switch).
7249 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7250
7251 # If we're building libgloss, find the startup file, simulator library
7252 # and linker script.
7253 case " $target_configdirs " in
7254 *" libgloss "*)
7255 # Look for startup file, simulator library and maybe linker script.
7256 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7257 # Look for libnosys.a in case the target needs it.
7258 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7259 # Most targets have the linker script in the source directory.
7260 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7261 ;;
7262 esac
7263 ;;
7264 esac
7265 ;;
7266 esac
7267 ;;
7268 esac
7269
7270 case "$target" in
7271 x86_64-*mingw* | *-w64-mingw*)
7272 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7273 # however, use a symlink named 'mingw' in ${prefix} .
7274 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7275 ;;
7276 *-mingw*)
7277 # MinGW can't be handled as Cygwin above since it does not use newlib.
7278 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'
7279 ;;
7280 esac
7281
7282 # Allow the user to override the flags for
7283 # our build compiler if desired.
7284 if test x"${build}" = x"${host}" ; then
7285 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7286 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7287 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7288 fi
7289
7290 # On Canadian crosses, we'll be searching the right directories for
7291 # the previously-installed cross compiler, so don't bother to add
7292 # flags for directories within the install tree of the compiler
7293 # being built; programs in there won't even run.
7294 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7295 # Search for pre-installed headers if nothing else fits.
7296 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7297 fi
7298
7299 if test "x${use_gnu_ld}" = x &&
7300 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7301 # Arrange for us to find uninstalled linker scripts.
7302 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7303 fi
7304
7305 # Search for other target-specific linker scripts and such.
7306 case "${target}" in
7307 mep*)
7308 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7309 ;;
7310 esac
7311
7312 # Makefile fragments.
7313 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7314 do
7315 eval fragval=\$$frag
7316 if test $fragval != /dev/null; then
7317 eval $frag=${srcdir}/$fragval
7318 fi
7319 done
7320
7321
7322
7323
7324
7325 # Miscellanea: directories, flags, etc.
7326
7327
7328
7329
7330
7331
7332
7333
7334 # Build module lists & subconfigure args.
7335
7336
7337
7338 # Host module lists & subconfigure args.
7339
7340
7341
7342
7343 # Target module lists & subconfigure args.
7344
7345
7346
7347 # Build tools.
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365 # Generate default definitions for YACC, M4, LEX and other programs that run
7366 # on the build machine. These are used if the Makefile can't locate these
7367 # programs in objdir.
7368 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7369
7370 for ac_prog in 'bison -y' byacc yacc
7371 do
7372 # Extract the first word of "$ac_prog", so it can be a program name with args.
7373 set dummy $ac_prog; ac_word=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if test "${ac_cv_prog_YACC+set}" = set; then :
7377 $as_echo_n "(cached) " >&6
7378 else
7379 if test -n "$YACC"; then
7380 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389 ac_cv_prog_YACC="$ac_prog"
7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7392 fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 YACC=$ac_cv_prog_YACC
7400 if test -n "$YACC"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7402 $as_echo "$YACC" >&6; }
7403 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407
7408
7409 test -n "$YACC" && break
7410 done
7411 test -n "$YACC" || YACC="$MISSING bison -y"
7412
7413 case " $build_configdirs " in
7414 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7415 esac
7416
7417 for ac_prog in bison
7418 do
7419 # Extract the first word of "$ac_prog", so it can be a program name with args.
7420 set dummy $ac_prog; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if test "${ac_cv_prog_BISON+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 if test -n "$BISON"; then
7427 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436 ac_cv_prog_BISON="$ac_prog"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440 done
7441 done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 BISON=$ac_cv_prog_BISON
7447 if test -n "$BISON"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7449 $as_echo "$BISON" >&6; }
7450 else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 fi
7454
7455
7456 test -n "$BISON" && break
7457 done
7458 test -n "$BISON" || BISON="$MISSING bison"
7459
7460 case " $build_configdirs " in
7461 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7462 esac
7463
7464 for ac_prog in gm4 gnum4 m4
7465 do
7466 # Extract the first word of "$ac_prog", so it can be a program name with args.
7467 set dummy $ac_prog; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if test "${ac_cv_prog_M4+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$M4"; then
7474 ac_cv_prog_M4="$M4" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_prog_M4="$ac_prog"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487 done
7488 done
7489 IFS=$as_save_IFS
7490
7491 fi
7492 fi
7493 M4=$ac_cv_prog_M4
7494 if test -n "$M4"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7496 $as_echo "$M4" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501
7502
7503 test -n "$M4" && break
7504 done
7505 test -n "$M4" || M4="$MISSING m4"
7506
7507 case " $build_configdirs " in
7508 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7509 esac
7510
7511 for ac_prog in flex lex
7512 do
7513 # Extract the first word of "$ac_prog", so it can be a program name with args.
7514 set dummy $ac_prog; ac_word=$2
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516 $as_echo_n "checking for $ac_word... " >&6; }
7517 if test "${ac_cv_prog_LEX+set}" = set; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 if test -n "$LEX"; then
7521 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7522 else
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 ac_cv_prog_LEX="$ac_prog"
7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 break 2
7533 fi
7534 done
7535 done
7536 IFS=$as_save_IFS
7537
7538 fi
7539 fi
7540 LEX=$ac_cv_prog_LEX
7541 if test -n "$LEX"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7543 $as_echo "$LEX" >&6; }
7544 else
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 $as_echo "no" >&6; }
7547 fi
7548
7549
7550 test -n "$LEX" && break
7551 done
7552 test -n "$LEX" || LEX="$MISSING flex"
7553
7554 case " $build_configdirs " in
7555 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7556 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7557 esac
7558
7559 for ac_prog in flex
7560 do
7561 # Extract the first word of "$ac_prog", so it can be a program name with args.
7562 set dummy $ac_prog; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if test "${ac_cv_prog_FLEX+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 if test -n "$FLEX"; then
7569 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7573 do
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_prog_FLEX="$ac_prog"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7581 fi
7582 done
7583 done
7584 IFS=$as_save_IFS
7585
7586 fi
7587 fi
7588 FLEX=$ac_cv_prog_FLEX
7589 if test -n "$FLEX"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7591 $as_echo "$FLEX" >&6; }
7592 else
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7595 fi
7596
7597
7598 test -n "$FLEX" && break
7599 done
7600 test -n "$FLEX" || FLEX="$MISSING flex"
7601
7602 case " $build_configdirs " in
7603 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7604 esac
7605
7606 for ac_prog in makeinfo
7607 do
7608 # Extract the first word of "$ac_prog", so it can be a program name with args.
7609 set dummy $ac_prog; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 if test -n "$MAKEINFO"; then
7616 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625 ac_cv_prog_MAKEINFO="$ac_prog"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 break 2
7628 fi
7629 done
7630 done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 MAKEINFO=$ac_cv_prog_MAKEINFO
7636 if test -n "$MAKEINFO"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7638 $as_echo "$MAKEINFO" >&6; }
7639 else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644
7645 test -n "$MAKEINFO" && break
7646 done
7647 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7648
7649 case " $build_configdirs " in
7650 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7651 *)
7652
7653 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7654 # higher, else we use the "missing" dummy.
7655 if ${MAKEINFO} --version \
7656 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7657 :
7658 else
7659 MAKEINFO="$MISSING makeinfo"
7660 fi
7661 ;;
7662
7663 esac
7664
7665 # FIXME: expect and dejagnu may become build tools?
7666
7667 for ac_prog in expect
7668 do
7669 # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 if test -n "$EXPECT"; then
7677 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_prog_EXPECT="$ac_prog"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 EXPECT=$ac_cv_prog_EXPECT
7697 if test -n "$EXPECT"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7699 $as_echo "$EXPECT" >&6; }
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704
7705
7706 test -n "$EXPECT" && break
7707 done
7708 test -n "$EXPECT" || EXPECT="expect"
7709
7710 case " $configdirs " in
7711 *" expect "*)
7712 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7713 ;;
7714 esac
7715
7716 for ac_prog in runtest
7717 do
7718 # Extract the first word of "$ac_prog", so it can be a program name with args.
7719 set dummy $ac_prog; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 if test -n "$RUNTEST"; then
7726 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7727 else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_prog_RUNTEST="$ac_prog"
7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
7739 done
7740 done
7741 IFS=$as_save_IFS
7742
7743 fi
7744 fi
7745 RUNTEST=$ac_cv_prog_RUNTEST
7746 if test -n "$RUNTEST"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7748 $as_echo "$RUNTEST" >&6; }
7749 else
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754
7755 test -n "$RUNTEST" && break
7756 done
7757 test -n "$RUNTEST" || RUNTEST="runtest"
7758
7759 case " $configdirs " in
7760 *" dejagnu "*)
7761 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7762 ;;
7763 esac
7764
7765
7766 # Host tools.
7767 ncn_tool_prefix=
7768 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7769 ncn_target_tool_prefix=
7770 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7771
7772
7773
7774 if test -n "$AR"; then
7775 ac_cv_prog_AR=$AR
7776 elif test -n "$ac_cv_prog_AR"; then
7777 AR=$ac_cv_prog_AR
7778 fi
7779
7780 if test -n "$ac_cv_prog_AR"; then
7781 for ncn_progname in ar; do
7782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7783 set dummy ${ncn_progname}; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if test "${ac_cv_prog_AR+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 if test -n "$AR"; then
7790 ac_cv_prog_AR="$AR" # Let the user override the test.
7791 else
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7794 do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7799 ac_cv_prog_AR="${ncn_progname}"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7802 fi
7803 done
7804 done
7805 IFS=$as_save_IFS
7806
7807 fi
7808 fi
7809 AR=$ac_cv_prog_AR
7810 if test -n "$AR"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7812 $as_echo "$AR" >&6; }
7813 else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7816 fi
7817
7818
7819 done
7820 fi
7821
7822 for ncn_progname in ar; do
7823 if test -n "$ncn_tool_prefix"; then
7824 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7825 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if test "${ac_cv_prog_AR+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
7830 else
7831 if test -n "$AR"; then
7832 ac_cv_prog_AR="$AR" # Let the user override the test.
7833 else
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7836 do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7841 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7843 break 2
7844 fi
7845 done
7846 done
7847 IFS=$as_save_IFS
7848
7849 fi
7850 fi
7851 AR=$ac_cv_prog_AR
7852 if test -n "$AR"; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7854 $as_echo "$AR" >&6; }
7855 else
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7858 fi
7859
7860
7861 fi
7862 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7864 set dummy ${ncn_progname}; ac_word=$2
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if test "${ac_cv_prog_AR+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 if test -n "$AR"; then
7871 ac_cv_prog_AR="$AR" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_prog_AR="${ncn_progname}"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7883 fi
7884 done
7885 done
7886 IFS=$as_save_IFS
7887
7888 fi
7889 fi
7890 AR=$ac_cv_prog_AR
7891 if test -n "$AR"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7893 $as_echo "$AR" >&6; }
7894 else
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897 fi
7898
7899
7900 fi
7901 test -n "$ac_cv_prog_AR" && break
7902 done
7903
7904 if test -z "$ac_cv_prog_AR" ; then
7905 set dummy ar
7906 if test $build = $host ; then
7907 AR="$2"
7908 else
7909 AR="${ncn_tool_prefix}$2"
7910 fi
7911 fi
7912
7913
7914
7915 if test -n "$AS"; then
7916 ac_cv_prog_AS=$AS
7917 elif test -n "$ac_cv_prog_AS"; then
7918 AS=$ac_cv_prog_AS
7919 fi
7920
7921 if test -n "$ac_cv_prog_AS"; then
7922 for ncn_progname in as; do
7923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7924 set dummy ${ncn_progname}; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if test "${ac_cv_prog_AS+set}" = set; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 if test -n "$AS"; then
7931 ac_cv_prog_AS="$AS" # Let the user override the test.
7932 else
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7935 do
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940 ac_cv_prog_AS="${ncn_progname}"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7943 fi
7944 done
7945 done
7946 IFS=$as_save_IFS
7947
7948 fi
7949 fi
7950 AS=$ac_cv_prog_AS
7951 if test -n "$AS"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7953 $as_echo "$AS" >&6; }
7954 else
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7957 fi
7958
7959
7960 done
7961 fi
7962
7963 for ncn_progname in as; do
7964 if test -n "$ncn_tool_prefix"; then
7965 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7966 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 $as_echo_n "checking for $ac_word... " >&6; }
7969 if test "${ac_cv_prog_AS+set}" = set; then :
7970 $as_echo_n "(cached) " >&6
7971 else
7972 if test -n "$AS"; then
7973 ac_cv_prog_AS="$AS" # Let the user override the test.
7974 else
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 for as_dir in $PATH
7977 do
7978 IFS=$as_save_IFS
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7982 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7984 break 2
7985 fi
7986 done
7987 done
7988 IFS=$as_save_IFS
7989
7990 fi
7991 fi
7992 AS=$ac_cv_prog_AS
7993 if test -n "$AS"; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7995 $as_echo "$AS" >&6; }
7996 else
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998 $as_echo "no" >&6; }
7999 fi
8000
8001
8002 fi
8003 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8005 set dummy ${ncn_progname}; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if test "${ac_cv_prog_AS+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 if test -n "$AS"; then
8012 ac_cv_prog_AS="$AS" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8016 do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8021 ac_cv_prog_AS="${ncn_progname}"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8024 fi
8025 done
8026 done
8027 IFS=$as_save_IFS
8028
8029 fi
8030 fi
8031 AS=$ac_cv_prog_AS
8032 if test -n "$AS"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8034 $as_echo "$AS" >&6; }
8035 else
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8038 fi
8039
8040
8041 fi
8042 test -n "$ac_cv_prog_AS" && break
8043 done
8044
8045 if test -z "$ac_cv_prog_AS" ; then
8046 set dummy as
8047 if test $build = $host ; then
8048 AS="$2"
8049 else
8050 AS="${ncn_tool_prefix}$2"
8051 fi
8052 fi
8053
8054
8055
8056 if test -n "$DLLTOOL"; then
8057 ac_cv_prog_DLLTOOL=$DLLTOOL
8058 elif test -n "$ac_cv_prog_DLLTOOL"; then
8059 DLLTOOL=$ac_cv_prog_DLLTOOL
8060 fi
8061
8062 if test -n "$ac_cv_prog_DLLTOOL"; then
8063 for ncn_progname in dlltool; do
8064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8065 set dummy ${ncn_progname}; ac_word=$2
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067 $as_echo_n "checking for $ac_word... " >&6; }
8068 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 if test -n "$DLLTOOL"; then
8072 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8073 else
8074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 for as_dir in $PATH
8076 do
8077 IFS=$as_save_IFS
8078 test -z "$as_dir" && as_dir=.
8079 for ac_exec_ext in '' $ac_executable_extensions; do
8080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8081 ac_cv_prog_DLLTOOL="${ncn_progname}"
8082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8083 break 2
8084 fi
8085 done
8086 done
8087 IFS=$as_save_IFS
8088
8089 fi
8090 fi
8091 DLLTOOL=$ac_cv_prog_DLLTOOL
8092 if test -n "$DLLTOOL"; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8094 $as_echo "$DLLTOOL" >&6; }
8095 else
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8098 fi
8099
8100
8101 done
8102 fi
8103
8104 for ncn_progname in dlltool; do
8105 if test -n "$ncn_tool_prefix"; then
8106 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8107 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 if test -n "$DLLTOOL"; then
8114 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8115 else
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8118 do
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8123 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 break 2
8126 fi
8127 done
8128 done
8129 IFS=$as_save_IFS
8130
8131 fi
8132 fi
8133 DLLTOOL=$ac_cv_prog_DLLTOOL
8134 if test -n "$DLLTOOL"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8136 $as_echo "$DLLTOOL" >&6; }
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8140 fi
8141
8142
8143 fi
8144 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8146 set dummy ${ncn_progname}; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 if test -n "$DLLTOOL"; then
8153 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8157 do
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_prog_DLLTOOL="${ncn_progname}"
8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 break 2
8165 fi
8166 done
8167 done
8168 IFS=$as_save_IFS
8169
8170 fi
8171 fi
8172 DLLTOOL=$ac_cv_prog_DLLTOOL
8173 if test -n "$DLLTOOL"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8175 $as_echo "$DLLTOOL" >&6; }
8176 else
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8179 fi
8180
8181
8182 fi
8183 test -n "$ac_cv_prog_DLLTOOL" && break
8184 done
8185
8186 if test -z "$ac_cv_prog_DLLTOOL" ; then
8187 set dummy dlltool
8188 if test $build = $host ; then
8189 DLLTOOL="$2"
8190 else
8191 DLLTOOL="${ncn_tool_prefix}$2"
8192 fi
8193 fi
8194
8195
8196
8197 if test -n "$LD"; then
8198 ac_cv_prog_LD=$LD
8199 elif test -n "$ac_cv_prog_LD"; then
8200 LD=$ac_cv_prog_LD
8201 fi
8202
8203 if test -n "$ac_cv_prog_LD"; then
8204 for ncn_progname in ld; do
8205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8206 set dummy ${ncn_progname}; ac_word=$2
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if test "${ac_cv_prog_LD+set}" = set; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 if test -n "$LD"; then
8213 ac_cv_prog_LD="$LD" # Let the user override the test.
8214 else
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8217 do
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8222 ac_cv_prog_LD="${ncn_progname}"
8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 break 2
8225 fi
8226 done
8227 done
8228 IFS=$as_save_IFS
8229
8230 fi
8231 fi
8232 LD=$ac_cv_prog_LD
8233 if test -n "$LD"; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8235 $as_echo "$LD" >&6; }
8236 else
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8239 fi
8240
8241
8242 done
8243 fi
8244
8245 for ncn_progname in ld; do
8246 if test -n "$ncn_tool_prefix"; then
8247 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8248 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_LD+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$LD"; then
8255 ac_cv_prog_LD="$LD" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8267 fi
8268 done
8269 done
8270 IFS=$as_save_IFS
8271
8272 fi
8273 fi
8274 LD=$ac_cv_prog_LD
8275 if test -n "$LD"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8277 $as_echo "$LD" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8281 fi
8282
8283
8284 fi
8285 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8287 set dummy ${ncn_progname}; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if test "${ac_cv_prog_LD+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 if test -n "$LD"; then
8294 ac_cv_prog_LD="$LD" # Let the user override the test.
8295 else
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8298 do
8299 IFS=$as_save_IFS
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 ac_cv_prog_LD="${ncn_progname}"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 break 2
8306 fi
8307 done
8308 done
8309 IFS=$as_save_IFS
8310
8311 fi
8312 fi
8313 LD=$ac_cv_prog_LD
8314 if test -n "$LD"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8316 $as_echo "$LD" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8320 fi
8321
8322
8323 fi
8324 test -n "$ac_cv_prog_LD" && break
8325 done
8326
8327 if test -z "$ac_cv_prog_LD" ; then
8328 set dummy ld
8329 if test $build = $host ; then
8330 LD="$2"
8331 else
8332 LD="${ncn_tool_prefix}$2"
8333 fi
8334 fi
8335
8336
8337
8338 if test -n "$LIPO"; then
8339 ac_cv_prog_LIPO=$LIPO
8340 elif test -n "$ac_cv_prog_LIPO"; then
8341 LIPO=$ac_cv_prog_LIPO
8342 fi
8343
8344 if test -n "$ac_cv_prog_LIPO"; then
8345 for ncn_progname in lipo; do
8346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8347 set dummy ${ncn_progname}; ac_word=$2
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8349 $as_echo_n "checking for $ac_word... " >&6; }
8350 if test "${ac_cv_prog_LIPO+set}" = set; then :
8351 $as_echo_n "(cached) " >&6
8352 else
8353 if test -n "$LIPO"; then
8354 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8355 else
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 for as_dir in $PATH
8358 do
8359 IFS=$as_save_IFS
8360 test -z "$as_dir" && as_dir=.
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8363 ac_cv_prog_LIPO="${ncn_progname}"
8364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 break 2
8366 fi
8367 done
8368 done
8369 IFS=$as_save_IFS
8370
8371 fi
8372 fi
8373 LIPO=$ac_cv_prog_LIPO
8374 if test -n "$LIPO"; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8376 $as_echo "$LIPO" >&6; }
8377 else
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8380 fi
8381
8382
8383 done
8384 fi
8385
8386 for ncn_progname in lipo; do
8387 if test -n "$ncn_tool_prefix"; then
8388 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8389 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 $as_echo_n "checking for $ac_word... " >&6; }
8392 if test "${ac_cv_prog_LIPO+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 if test -n "$LIPO"; then
8396 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8397 else
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 for as_dir in $PATH
8400 do
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 break 2
8408 fi
8409 done
8410 done
8411 IFS=$as_save_IFS
8412
8413 fi
8414 fi
8415 LIPO=$ac_cv_prog_LIPO
8416 if test -n "$LIPO"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8418 $as_echo "$LIPO" >&6; }
8419 else
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8422 fi
8423
8424
8425 fi
8426 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8428 set dummy ${ncn_progname}; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if test "${ac_cv_prog_LIPO+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 if test -n "$LIPO"; then
8435 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8439 do
8440 IFS=$as_save_IFS
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 ac_cv_prog_LIPO="${ncn_progname}"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 break 2
8447 fi
8448 done
8449 done
8450 IFS=$as_save_IFS
8451
8452 fi
8453 fi
8454 LIPO=$ac_cv_prog_LIPO
8455 if test -n "$LIPO"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8457 $as_echo "$LIPO" >&6; }
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8461 fi
8462
8463
8464 fi
8465 test -n "$ac_cv_prog_LIPO" && break
8466 done
8467
8468 if test -z "$ac_cv_prog_LIPO" ; then
8469 set dummy lipo
8470 if test $build = $host ; then
8471 LIPO="$2"
8472 else
8473 LIPO="${ncn_tool_prefix}$2"
8474 fi
8475 fi
8476
8477
8478
8479 if test -n "$NM"; then
8480 ac_cv_prog_NM=$NM
8481 elif test -n "$ac_cv_prog_NM"; then
8482 NM=$ac_cv_prog_NM
8483 fi
8484
8485 if test -n "$ac_cv_prog_NM"; then
8486 for ncn_progname in nm; do
8487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8488 set dummy ${ncn_progname}; ac_word=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if test "${ac_cv_prog_NM+set}" = set; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 if test -n "$NM"; then
8495 ac_cv_prog_NM="$NM" # Let the user override the test.
8496 else
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8499 do
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504 ac_cv_prog_NM="${ncn_progname}"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8507 fi
8508 done
8509 done
8510 IFS=$as_save_IFS
8511
8512 fi
8513 fi
8514 NM=$ac_cv_prog_NM
8515 if test -n "$NM"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8517 $as_echo "$NM" >&6; }
8518 else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8521 fi
8522
8523
8524 done
8525 fi
8526
8527 for ncn_progname in nm; do
8528 if test -n "$ncn_tool_prefix"; then
8529 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8530 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if test "${ac_cv_prog_NM+set}" = set; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 if test -n "$NM"; then
8537 ac_cv_prog_NM="$NM" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8541 do
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8546 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8549 fi
8550 done
8551 done
8552 IFS=$as_save_IFS
8553
8554 fi
8555 fi
8556 NM=$ac_cv_prog_NM
8557 if test -n "$NM"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8559 $as_echo "$NM" >&6; }
8560 else
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8563 fi
8564
8565
8566 fi
8567 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8569 set dummy ${ncn_progname}; ac_word=$2
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 $as_echo_n "checking for $ac_word... " >&6; }
8572 if test "${ac_cv_prog_NM+set}" = set; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 if test -n "$NM"; then
8576 ac_cv_prog_NM="$NM" # Let the user override the test.
8577 else
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8580 do
8581 IFS=$as_save_IFS
8582 test -z "$as_dir" && as_dir=.
8583 for ac_exec_ext in '' $ac_executable_extensions; do
8584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8585 ac_cv_prog_NM="${ncn_progname}"
8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 break 2
8588 fi
8589 done
8590 done
8591 IFS=$as_save_IFS
8592
8593 fi
8594 fi
8595 NM=$ac_cv_prog_NM
8596 if test -n "$NM"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8598 $as_echo "$NM" >&6; }
8599 else
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8602 fi
8603
8604
8605 fi
8606 test -n "$ac_cv_prog_NM" && break
8607 done
8608
8609 if test -z "$ac_cv_prog_NM" ; then
8610 set dummy nm
8611 if test $build = $host ; then
8612 NM="$2"
8613 else
8614 NM="${ncn_tool_prefix}$2"
8615 fi
8616 fi
8617
8618
8619
8620 if test -n "$RANLIB"; then
8621 ac_cv_prog_RANLIB=$RANLIB
8622 elif test -n "$ac_cv_prog_RANLIB"; then
8623 RANLIB=$ac_cv_prog_RANLIB
8624 fi
8625
8626 if test -n "$ac_cv_prog_RANLIB"; then
8627 for ncn_progname in ranlib; do
8628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8629 set dummy ${ncn_progname}; ac_word=$2
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8631 $as_echo_n "checking for $ac_word... " >&6; }
8632 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8633 $as_echo_n "(cached) " >&6
8634 else
8635 if test -n "$RANLIB"; then
8636 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8637 else
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 for as_dir in $PATH
8640 do
8641 IFS=$as_save_IFS
8642 test -z "$as_dir" && as_dir=.
8643 for ac_exec_ext in '' $ac_executable_extensions; do
8644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8645 ac_cv_prog_RANLIB="${ncn_progname}"
8646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 break 2
8648 fi
8649 done
8650 done
8651 IFS=$as_save_IFS
8652
8653 fi
8654 fi
8655 RANLIB=$ac_cv_prog_RANLIB
8656 if test -n "$RANLIB"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8658 $as_echo "$RANLIB" >&6; }
8659 else
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8662 fi
8663
8664
8665 done
8666 fi
8667
8668 for ncn_progname in ranlib; do
8669 if test -n "$ncn_tool_prefix"; then
8670 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8671 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 $as_echo_n "checking for $ac_word... " >&6; }
8674 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 if test -n "$RANLIB"; then
8678 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8679 else
8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 for as_dir in $PATH
8682 do
8683 IFS=$as_save_IFS
8684 test -z "$as_dir" && as_dir=.
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8687 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8689 break 2
8690 fi
8691 done
8692 done
8693 IFS=$as_save_IFS
8694
8695 fi
8696 fi
8697 RANLIB=$ac_cv_prog_RANLIB
8698 if test -n "$RANLIB"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8700 $as_echo "$RANLIB" >&6; }
8701 else
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8704 fi
8705
8706
8707 fi
8708 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8710 set dummy ${ncn_progname}; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 if test -n "$RANLIB"; then
8717 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8718 else
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 for as_dir in $PATH
8721 do
8722 IFS=$as_save_IFS
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8726 ac_cv_prog_RANLIB="${ncn_progname}"
8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 break 2
8729 fi
8730 done
8731 done
8732 IFS=$as_save_IFS
8733
8734 fi
8735 fi
8736 RANLIB=$ac_cv_prog_RANLIB
8737 if test -n "$RANLIB"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8739 $as_echo "$RANLIB" >&6; }
8740 else
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8743 fi
8744
8745
8746 fi
8747 test -n "$ac_cv_prog_RANLIB" && break
8748 done
8749
8750 if test -z "$ac_cv_prog_RANLIB" ; then
8751 RANLIB="true"
8752 fi
8753
8754
8755
8756 if test -n "$STRIP"; then
8757 ac_cv_prog_STRIP=$STRIP
8758 elif test -n "$ac_cv_prog_STRIP"; then
8759 STRIP=$ac_cv_prog_STRIP
8760 fi
8761
8762 if test -n "$ac_cv_prog_STRIP"; then
8763 for ncn_progname in strip; do
8764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8765 set dummy ${ncn_progname}; ac_word=$2
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 $as_echo_n "checking for $ac_word... " >&6; }
8768 if test "${ac_cv_prog_STRIP+set}" = set; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 if test -n "$STRIP"; then
8772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8773 else
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8776 do
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8781 ac_cv_prog_STRIP="${ncn_progname}"
8782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 break 2
8784 fi
8785 done
8786 done
8787 IFS=$as_save_IFS
8788
8789 fi
8790 fi
8791 STRIP=$ac_cv_prog_STRIP
8792 if test -n "$STRIP"; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8794 $as_echo "$STRIP" >&6; }
8795 else
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8798 fi
8799
8800
8801 done
8802 fi
8803
8804 for ncn_progname in strip; do
8805 if test -n "$ncn_tool_prefix"; then
8806 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8807 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809 $as_echo_n "checking for $ac_word... " >&6; }
8810 if test "${ac_cv_prog_STRIP+set}" = set; then :
8811 $as_echo_n "(cached) " >&6
8812 else
8813 if test -n "$STRIP"; then
8814 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8815 else
8816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817 for as_dir in $PATH
8818 do
8819 IFS=$as_save_IFS
8820 test -z "$as_dir" && as_dir=.
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8823 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 break 2
8826 fi
8827 done
8828 done
8829 IFS=$as_save_IFS
8830
8831 fi
8832 fi
8833 STRIP=$ac_cv_prog_STRIP
8834 if test -n "$STRIP"; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8836 $as_echo "$STRIP" >&6; }
8837 else
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8840 fi
8841
8842
8843 fi
8844 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8846 set dummy ${ncn_progname}; ac_word=$2
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848 $as_echo_n "checking for $ac_word... " >&6; }
8849 if test "${ac_cv_prog_STRIP+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 if test -n "$STRIP"; then
8853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8854 else
8855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856 for as_dir in $PATH
8857 do
8858 IFS=$as_save_IFS
8859 test -z "$as_dir" && as_dir=.
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8862 ac_cv_prog_STRIP="${ncn_progname}"
8863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8864 break 2
8865 fi
8866 done
8867 done
8868 IFS=$as_save_IFS
8869
8870 fi
8871 fi
8872 STRIP=$ac_cv_prog_STRIP
8873 if test -n "$STRIP"; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8875 $as_echo "$STRIP" >&6; }
8876 else
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 $as_echo "no" >&6; }
8879 fi
8880
8881
8882 fi
8883 test -n "$ac_cv_prog_STRIP" && break
8884 done
8885
8886 if test -z "$ac_cv_prog_STRIP" ; then
8887 STRIP="true"
8888 fi
8889
8890
8891
8892 if test -n "$WINDRES"; then
8893 ac_cv_prog_WINDRES=$WINDRES
8894 elif test -n "$ac_cv_prog_WINDRES"; then
8895 WINDRES=$ac_cv_prog_WINDRES
8896 fi
8897
8898 if test -n "$ac_cv_prog_WINDRES"; then
8899 for ncn_progname in windres; do
8900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8901 set dummy ${ncn_progname}; ac_word=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 if test -n "$WINDRES"; then
8908 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8909 else
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911 for as_dir in $PATH
8912 do
8913 IFS=$as_save_IFS
8914 test -z "$as_dir" && as_dir=.
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8917 ac_cv_prog_WINDRES="${ncn_progname}"
8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919 break 2
8920 fi
8921 done
8922 done
8923 IFS=$as_save_IFS
8924
8925 fi
8926 fi
8927 WINDRES=$ac_cv_prog_WINDRES
8928 if test -n "$WINDRES"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8930 $as_echo "$WINDRES" >&6; }
8931 else
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8934 fi
8935
8936
8937 done
8938 fi
8939
8940 for ncn_progname in windres; do
8941 if test -n "$ncn_tool_prefix"; then
8942 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8943 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8945 $as_echo_n "checking for $ac_word... " >&6; }
8946 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8947 $as_echo_n "(cached) " >&6
8948 else
8949 if test -n "$WINDRES"; then
8950 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8951 else
8952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953 for as_dir in $PATH
8954 do
8955 IFS=$as_save_IFS
8956 test -z "$as_dir" && as_dir=.
8957 for ac_exec_ext in '' $ac_executable_extensions; do
8958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8959 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8961 break 2
8962 fi
8963 done
8964 done
8965 IFS=$as_save_IFS
8966
8967 fi
8968 fi
8969 WINDRES=$ac_cv_prog_WINDRES
8970 if test -n "$WINDRES"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8972 $as_echo "$WINDRES" >&6; }
8973 else
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8976 fi
8977
8978
8979 fi
8980 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8981 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8982 set dummy ${ncn_progname}; ac_word=$2
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 $as_echo_n "checking for $ac_word... " >&6; }
8985 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 if test -n "$WINDRES"; then
8989 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8990 else
8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992 for as_dir in $PATH
8993 do
8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8998 ac_cv_prog_WINDRES="${ncn_progname}"
8999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 break 2
9001 fi
9002 done
9003 done
9004 IFS=$as_save_IFS
9005
9006 fi
9007 fi
9008 WINDRES=$ac_cv_prog_WINDRES
9009 if test -n "$WINDRES"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9011 $as_echo "$WINDRES" >&6; }
9012 else
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014 $as_echo "no" >&6; }
9015 fi
9016
9017
9018 fi
9019 test -n "$ac_cv_prog_WINDRES" && break
9020 done
9021
9022 if test -z "$ac_cv_prog_WINDRES" ; then
9023 set dummy windres
9024 if test $build = $host ; then
9025 WINDRES="$2"
9026 else
9027 WINDRES="${ncn_tool_prefix}$2"
9028 fi
9029 fi
9030
9031
9032
9033 if test -n "$WINDMC"; then
9034 ac_cv_prog_WINDMC=$WINDMC
9035 elif test -n "$ac_cv_prog_WINDMC"; then
9036 WINDMC=$ac_cv_prog_WINDMC
9037 fi
9038
9039 if test -n "$ac_cv_prog_WINDMC"; then
9040 for ncn_progname in windmc; do
9041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9042 set dummy ${ncn_progname}; ac_word=$2
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044 $as_echo_n "checking for $ac_word... " >&6; }
9045 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 if test -n "$WINDMC"; then
9049 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9050 else
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 for as_dir in $PATH
9053 do
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9058 ac_cv_prog_WINDMC="${ncn_progname}"
9059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 break 2
9061 fi
9062 done
9063 done
9064 IFS=$as_save_IFS
9065
9066 fi
9067 fi
9068 WINDMC=$ac_cv_prog_WINDMC
9069 if test -n "$WINDMC"; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9071 $as_echo "$WINDMC" >&6; }
9072 else
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9075 fi
9076
9077
9078 done
9079 fi
9080
9081 for ncn_progname in windmc; do
9082 if test -n "$ncn_tool_prefix"; then
9083 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9084 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 $as_echo_n "checking for $ac_word... " >&6; }
9087 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
9089 else
9090 if test -n "$WINDMC"; then
9091 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9092 else
9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 for as_dir in $PATH
9095 do
9096 IFS=$as_save_IFS
9097 test -z "$as_dir" && as_dir=.
9098 for ac_exec_ext in '' $ac_executable_extensions; do
9099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9100 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102 break 2
9103 fi
9104 done
9105 done
9106 IFS=$as_save_IFS
9107
9108 fi
9109 fi
9110 WINDMC=$ac_cv_prog_WINDMC
9111 if test -n "$WINDMC"; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9113 $as_echo "$WINDMC" >&6; }
9114 else
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116 $as_echo "no" >&6; }
9117 fi
9118
9119
9120 fi
9121 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9123 set dummy ${ncn_progname}; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 if test -n "$WINDMC"; then
9130 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9131 else
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 for as_dir in $PATH
9134 do
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9139 ac_cv_prog_WINDMC="${ncn_progname}"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 break 2
9142 fi
9143 done
9144 done
9145 IFS=$as_save_IFS
9146
9147 fi
9148 fi
9149 WINDMC=$ac_cv_prog_WINDMC
9150 if test -n "$WINDMC"; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9152 $as_echo "$WINDMC" >&6; }
9153 else
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9156 fi
9157
9158
9159 fi
9160 test -n "$ac_cv_prog_WINDMC" && break
9161 done
9162
9163 if test -z "$ac_cv_prog_WINDMC" ; then
9164 set dummy windmc
9165 if test $build = $host ; then
9166 WINDMC="$2"
9167 else
9168 WINDMC="${ncn_tool_prefix}$2"
9169 fi
9170 fi
9171
9172
9173
9174 if test -n "$OBJCOPY"; then
9175 ac_cv_prog_OBJCOPY=$OBJCOPY
9176 elif test -n "$ac_cv_prog_OBJCOPY"; then
9177 OBJCOPY=$ac_cv_prog_OBJCOPY
9178 fi
9179
9180 if test -n "$ac_cv_prog_OBJCOPY"; then
9181 for ncn_progname in objcopy; do
9182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9183 set dummy ${ncn_progname}; ac_word=$2
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185 $as_echo_n "checking for $ac_word... " >&6; }
9186 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 if test -n "$OBJCOPY"; then
9190 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9191 else
9192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193 for as_dir in $PATH
9194 do
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
9197 for ac_exec_ext in '' $ac_executable_extensions; do
9198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9199 ac_cv_prog_OBJCOPY="${ncn_progname}"
9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 break 2
9202 fi
9203 done
9204 done
9205 IFS=$as_save_IFS
9206
9207 fi
9208 fi
9209 OBJCOPY=$ac_cv_prog_OBJCOPY
9210 if test -n "$OBJCOPY"; then
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9212 $as_echo "$OBJCOPY" >&6; }
9213 else
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215 $as_echo "no" >&6; }
9216 fi
9217
9218
9219 done
9220 fi
9221
9222 for ncn_progname in objcopy; do
9223 if test -n "$ncn_tool_prefix"; then
9224 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9225 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227 $as_echo_n "checking for $ac_word... " >&6; }
9228 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9230 else
9231 if test -n "$OBJCOPY"; then
9232 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9233 else
9234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9236 do
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9241 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243 break 2
9244 fi
9245 done
9246 done
9247 IFS=$as_save_IFS
9248
9249 fi
9250 fi
9251 OBJCOPY=$ac_cv_prog_OBJCOPY
9252 if test -n "$OBJCOPY"; then
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9254 $as_echo "$OBJCOPY" >&6; }
9255 else
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257 $as_echo "no" >&6; }
9258 fi
9259
9260
9261 fi
9262 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9264 set dummy ${ncn_progname}; ac_word=$2
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266 $as_echo_n "checking for $ac_word... " >&6; }
9267 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 if test -n "$OBJCOPY"; then
9271 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9272 else
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9275 do
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280 ac_cv_prog_OBJCOPY="${ncn_progname}"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 break 2
9283 fi
9284 done
9285 done
9286 IFS=$as_save_IFS
9287
9288 fi
9289 fi
9290 OBJCOPY=$ac_cv_prog_OBJCOPY
9291 if test -n "$OBJCOPY"; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9293 $as_echo "$OBJCOPY" >&6; }
9294 else
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9297 fi
9298
9299
9300 fi
9301 test -n "$ac_cv_prog_OBJCOPY" && break
9302 done
9303
9304 if test -z "$ac_cv_prog_OBJCOPY" ; then
9305 set dummy objcopy
9306 if test $build = $host ; then
9307 OBJCOPY="$2"
9308 else
9309 OBJCOPY="${ncn_tool_prefix}$2"
9310 fi
9311 fi
9312
9313
9314
9315 if test -n "$OBJDUMP"; then
9316 ac_cv_prog_OBJDUMP=$OBJDUMP
9317 elif test -n "$ac_cv_prog_OBJDUMP"; then
9318 OBJDUMP=$ac_cv_prog_OBJDUMP
9319 fi
9320
9321 if test -n "$ac_cv_prog_OBJDUMP"; then
9322 for ncn_progname in objdump; do
9323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9324 set dummy ${ncn_progname}; ac_word=$2
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326 $as_echo_n "checking for $ac_word... " >&6; }
9327 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9328 $as_echo_n "(cached) " >&6
9329 else
9330 if test -n "$OBJDUMP"; then
9331 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9332 else
9333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334 for as_dir in $PATH
9335 do
9336 IFS=$as_save_IFS
9337 test -z "$as_dir" && as_dir=.
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9340 ac_cv_prog_OBJDUMP="${ncn_progname}"
9341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9342 break 2
9343 fi
9344 done
9345 done
9346 IFS=$as_save_IFS
9347
9348 fi
9349 fi
9350 OBJDUMP=$ac_cv_prog_OBJDUMP
9351 if test -n "$OBJDUMP"; then
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9353 $as_echo "$OBJDUMP" >&6; }
9354 else
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356 $as_echo "no" >&6; }
9357 fi
9358
9359
9360 done
9361 fi
9362
9363 for ncn_progname in objdump; do
9364 if test -n "$ncn_tool_prefix"; then
9365 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9366 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9368 $as_echo_n "checking for $ac_word... " >&6; }
9369 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 if test -n "$OBJDUMP"; then
9373 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9374 else
9375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9376 for as_dir in $PATH
9377 do
9378 IFS=$as_save_IFS
9379 test -z "$as_dir" && as_dir=.
9380 for ac_exec_ext in '' $ac_executable_extensions; do
9381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9382 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9384 break 2
9385 fi
9386 done
9387 done
9388 IFS=$as_save_IFS
9389
9390 fi
9391 fi
9392 OBJDUMP=$ac_cv_prog_OBJDUMP
9393 if test -n "$OBJDUMP"; then
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9395 $as_echo "$OBJDUMP" >&6; }
9396 else
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9398 $as_echo "no" >&6; }
9399 fi
9400
9401
9402 fi
9403 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9405 set dummy ${ncn_progname}; ac_word=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 if test -n "$OBJDUMP"; then
9412 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9413 else
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in $PATH
9416 do
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9421 ac_cv_prog_OBJDUMP="${ncn_progname}"
9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9423 break 2
9424 fi
9425 done
9426 done
9427 IFS=$as_save_IFS
9428
9429 fi
9430 fi
9431 OBJDUMP=$ac_cv_prog_OBJDUMP
9432 if test -n "$OBJDUMP"; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9434 $as_echo "$OBJDUMP" >&6; }
9435 else
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9438 fi
9439
9440
9441 fi
9442 test -n "$ac_cv_prog_OBJDUMP" && break
9443 done
9444
9445 if test -z "$ac_cv_prog_OBJDUMP" ; then
9446 set dummy objdump
9447 if test $build = $host ; then
9448 OBJDUMP="$2"
9449 else
9450 OBJDUMP="${ncn_tool_prefix}$2"
9451 fi
9452 fi
9453
9454
9455
9456 if test -n "$READELF"; then
9457 ac_cv_prog_READELF=$READELF
9458 elif test -n "$ac_cv_prog_READELF"; then
9459 READELF=$ac_cv_prog_READELF
9460 fi
9461
9462 if test -n "$ac_cv_prog_READELF"; then
9463 for ncn_progname in readelf; do
9464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9465 set dummy ${ncn_progname}; ac_word=$2
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467 $as_echo_n "checking for $ac_word... " >&6; }
9468 if test "${ac_cv_prog_READELF+set}" = set; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9471 if test -n "$READELF"; then
9472 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9473 else
9474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475 for as_dir in $PATH
9476 do
9477 IFS=$as_save_IFS
9478 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9481 ac_cv_prog_READELF="${ncn_progname}"
9482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 break 2
9484 fi
9485 done
9486 done
9487 IFS=$as_save_IFS
9488
9489 fi
9490 fi
9491 READELF=$ac_cv_prog_READELF
9492 if test -n "$READELF"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9494 $as_echo "$READELF" >&6; }
9495 else
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9498 fi
9499
9500
9501 done
9502 fi
9503
9504 for ncn_progname in readelf; do
9505 if test -n "$ncn_tool_prefix"; then
9506 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9507 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if test "${ac_cv_prog_READELF+set}" = set; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 if test -n "$READELF"; then
9514 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9515 else
9516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 for as_dir in $PATH
9518 do
9519 IFS=$as_save_IFS
9520 test -z "$as_dir" && as_dir=.
9521 for ac_exec_ext in '' $ac_executable_extensions; do
9522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9523 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9525 break 2
9526 fi
9527 done
9528 done
9529 IFS=$as_save_IFS
9530
9531 fi
9532 fi
9533 READELF=$ac_cv_prog_READELF
9534 if test -n "$READELF"; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9536 $as_echo "$READELF" >&6; }
9537 else
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9539 $as_echo "no" >&6; }
9540 fi
9541
9542
9543 fi
9544 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9546 set dummy ${ncn_progname}; ac_word=$2
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9548 $as_echo_n "checking for $ac_word... " >&6; }
9549 if test "${ac_cv_prog_READELF+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 if test -n "$READELF"; then
9553 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9554 else
9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556 for as_dir in $PATH
9557 do
9558 IFS=$as_save_IFS
9559 test -z "$as_dir" && as_dir=.
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9562 ac_cv_prog_READELF="${ncn_progname}"
9563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9564 break 2
9565 fi
9566 done
9567 done
9568 IFS=$as_save_IFS
9569
9570 fi
9571 fi
9572 READELF=$ac_cv_prog_READELF
9573 if test -n "$READELF"; then
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9575 $as_echo "$READELF" >&6; }
9576 else
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9579 fi
9580
9581
9582 fi
9583 test -n "$ac_cv_prog_READELF" && break
9584 done
9585
9586 if test -z "$ac_cv_prog_READELF" ; then
9587 set dummy readelf
9588 if test $build = $host ; then
9589 READELF="$2"
9590 else
9591 READELF="${ncn_tool_prefix}$2"
9592 fi
9593 fi
9594
9595
9596
9597
9598
9599
9600 # Target tools.
9601
9602 # Check whether --with-build-time-tools was given.
9603 if test "${with_build_time_tools+set}" = set; then :
9604 withval=$with_build_time_tools; case x"$withval" in
9605 x/*) ;;
9606 *)
9607 with_build_time_tools=
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9609 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9610 ;;
9611 esac
9612 else
9613 with_build_time_tools=
9614 fi
9615
9616
9617
9618
9619 if test -n "$CC_FOR_TARGET"; then
9620 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9621 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9622 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9623 fi
9624
9625 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9626 for ncn_progname in cc gcc; do
9627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9628 set dummy ${ncn_progname}; ac_word=$2
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9630 $as_echo_n "checking for $ac_word... " >&6; }
9631 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 if test -n "$CC_FOR_TARGET"; then
9635 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9636 else
9637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638 for as_dir in $PATH
9639 do
9640 IFS=$as_save_IFS
9641 test -z "$as_dir" && as_dir=.
9642 for ac_exec_ext in '' $ac_executable_extensions; do
9643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9644 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9646 break 2
9647 fi
9648 done
9649 done
9650 IFS=$as_save_IFS
9651
9652 fi
9653 fi
9654 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9655 if test -n "$CC_FOR_TARGET"; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9657 $as_echo "$CC_FOR_TARGET" >&6; }
9658 else
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9661 fi
9662
9663
9664 done
9665 fi
9666
9667 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9668 for ncn_progname in cc gcc; do
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9670 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9671 if test -x $with_build_time_tools/${ncn_progname}; then
9672 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9674 $as_echo "yes" >&6; }
9675 break
9676 else
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9678 $as_echo "no" >&6; }
9679 fi
9680 done
9681 fi
9682
9683 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9684 for ncn_progname in cc gcc; do
9685 if test -n "$ncn_target_tool_prefix"; then
9686 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9687 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689 $as_echo_n "checking for $ac_word... " >&6; }
9690 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 if test -n "$CC_FOR_TARGET"; then
9694 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9695 else
9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697 for as_dir in $PATH
9698 do
9699 IFS=$as_save_IFS
9700 test -z "$as_dir" && as_dir=.
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9703 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 break 2
9706 fi
9707 done
9708 done
9709 IFS=$as_save_IFS
9710
9711 fi
9712 fi
9713 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9714 if test -n "$CC_FOR_TARGET"; then
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9716 $as_echo "$CC_FOR_TARGET" >&6; }
9717 else
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; }
9720 fi
9721
9722
9723 fi
9724 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9726 set dummy ${ncn_progname}; ac_word=$2
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9728 $as_echo_n "checking for $ac_word... " >&6; }
9729 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 if test -n "$CC_FOR_TARGET"; then
9733 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9734 else
9735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736 for as_dir in $PATH
9737 do
9738 IFS=$as_save_IFS
9739 test -z "$as_dir" && as_dir=.
9740 for ac_exec_ext in '' $ac_executable_extensions; do
9741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9742 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9744 break 2
9745 fi
9746 done
9747 done
9748 IFS=$as_save_IFS
9749
9750 fi
9751 fi
9752 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9753 if test -n "$CC_FOR_TARGET"; then
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9755 $as_echo "$CC_FOR_TARGET" >&6; }
9756 else
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9758 $as_echo "no" >&6; }
9759 fi
9760
9761
9762 fi
9763 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9764 done
9765 fi
9766
9767 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9768 set dummy cc gcc
9769 if test $build = $target ; then
9770 CC_FOR_TARGET="$2"
9771 else
9772 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9773 fi
9774 else
9775 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9776 fi
9777
9778
9779
9780 if test -n "$CXX_FOR_TARGET"; then
9781 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9782 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9783 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9784 fi
9785
9786 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9787 for ncn_progname in c++ g++ cxx gxx; do
9788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9789 set dummy ${ncn_progname}; ac_word=$2
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791 $as_echo_n "checking for $ac_word... " >&6; }
9792 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 if test -n "$CXX_FOR_TARGET"; then
9796 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9797 else
9798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799 for as_dir in $PATH
9800 do
9801 IFS=$as_save_IFS
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9805 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 break 2
9808 fi
9809 done
9810 done
9811 IFS=$as_save_IFS
9812
9813 fi
9814 fi
9815 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9816 if test -n "$CXX_FOR_TARGET"; then
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9818 $as_echo "$CXX_FOR_TARGET" >&6; }
9819 else
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821 $as_echo "no" >&6; }
9822 fi
9823
9824
9825 done
9826 fi
9827
9828 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9829 for ncn_progname in c++ g++ cxx gxx; do
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9831 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9832 if test -x $with_build_time_tools/${ncn_progname}; then
9833 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9835 $as_echo "yes" >&6; }
9836 break
9837 else
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839 $as_echo "no" >&6; }
9840 fi
9841 done
9842 fi
9843
9844 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9845 for ncn_progname in c++ g++ cxx gxx; do
9846 if test -n "$ncn_target_tool_prefix"; then
9847 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9848 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9850 $as_echo_n "checking for $ac_word... " >&6; }
9851 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9852 $as_echo_n "(cached) " >&6
9853 else
9854 if test -n "$CXX_FOR_TARGET"; then
9855 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9856 else
9857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858 for as_dir in $PATH
9859 do
9860 IFS=$as_save_IFS
9861 test -z "$as_dir" && as_dir=.
9862 for ac_exec_ext in '' $ac_executable_extensions; do
9863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9864 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9866 break 2
9867 fi
9868 done
9869 done
9870 IFS=$as_save_IFS
9871
9872 fi
9873 fi
9874 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9875 if test -n "$CXX_FOR_TARGET"; then
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9877 $as_echo "$CXX_FOR_TARGET" >&6; }
9878 else
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; }
9881 fi
9882
9883
9884 fi
9885 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9887 set dummy ${ncn_progname}; ac_word=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 $as_echo_n "checking for $ac_word... " >&6; }
9890 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 if test -n "$CXX_FOR_TARGET"; then
9894 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9895 else
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH
9898 do
9899 IFS=$as_save_IFS
9900 test -z "$as_dir" && as_dir=.
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9903 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 break 2
9906 fi
9907 done
9908 done
9909 IFS=$as_save_IFS
9910
9911 fi
9912 fi
9913 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9914 if test -n "$CXX_FOR_TARGET"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9916 $as_echo "$CXX_FOR_TARGET" >&6; }
9917 else
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9920 fi
9921
9922
9923 fi
9924 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9925 done
9926 fi
9927
9928 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9929 set dummy c++ g++ cxx gxx
9930 if test $build = $target ; then
9931 CXX_FOR_TARGET="$2"
9932 else
9933 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9934 fi
9935 else
9936 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9937 fi
9938
9939
9940
9941 if test -n "$GCC_FOR_TARGET"; then
9942 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9943 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9944 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9945 fi
9946
9947 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9948 for ncn_progname in gcc; do
9949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9950 set dummy ${ncn_progname}; ac_word=$2
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9952 $as_echo_n "checking for $ac_word... " >&6; }
9953 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 if test -n "$GCC_FOR_TARGET"; then
9957 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9958 else
9959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960 for as_dir in $PATH
9961 do
9962 IFS=$as_save_IFS
9963 test -z "$as_dir" && as_dir=.
9964 for ac_exec_ext in '' $ac_executable_extensions; do
9965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9966 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9968 break 2
9969 fi
9970 done
9971 done
9972 IFS=$as_save_IFS
9973
9974 fi
9975 fi
9976 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9977 if test -n "$GCC_FOR_TARGET"; then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9979 $as_echo "$GCC_FOR_TARGET" >&6; }
9980 else
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982 $as_echo "no" >&6; }
9983 fi
9984
9985
9986 done
9987 fi
9988
9989 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9990 for ncn_progname in gcc; do
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9992 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9993 if test -x $with_build_time_tools/${ncn_progname}; then
9994 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9996 $as_echo "yes" >&6; }
9997 break
9998 else
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 $as_echo "no" >&6; }
10001 fi
10002 done
10003 fi
10004
10005 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10006 for ncn_progname in gcc; do
10007 if test -n "$ncn_target_tool_prefix"; then
10008 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10009 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011 $as_echo_n "checking for $ac_word... " >&6; }
10012 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 if test -n "$GCC_FOR_TARGET"; then
10016 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10017 else
10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10020 do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10025 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027 break 2
10028 fi
10029 done
10030 done
10031 IFS=$as_save_IFS
10032
10033 fi
10034 fi
10035 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10036 if test -n "$GCC_FOR_TARGET"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10038 $as_echo "$GCC_FOR_TARGET" >&6; }
10039 else
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10042 fi
10043
10044
10045 fi
10046 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10048 set dummy ${ncn_progname}; ac_word=$2
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10050 $as_echo_n "checking for $ac_word... " >&6; }
10051 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10052 $as_echo_n "(cached) " >&6
10053 else
10054 if test -n "$GCC_FOR_TARGET"; then
10055 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10056 else
10057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058 for as_dir in $PATH
10059 do
10060 IFS=$as_save_IFS
10061 test -z "$as_dir" && as_dir=.
10062 for ac_exec_ext in '' $ac_executable_extensions; do
10063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10064 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10066 break 2
10067 fi
10068 done
10069 done
10070 IFS=$as_save_IFS
10071
10072 fi
10073 fi
10074 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10075 if test -n "$GCC_FOR_TARGET"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10077 $as_echo "$GCC_FOR_TARGET" >&6; }
10078 else
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 $as_echo "no" >&6; }
10081 fi
10082
10083
10084 fi
10085 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10086 done
10087 fi
10088
10089 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10090 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10091 else
10092 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10093 fi
10094
10095
10096
10097 if test -n "$GCJ_FOR_TARGET"; then
10098 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10099 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10100 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10101 fi
10102
10103 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10104 for ncn_progname in gcj; do
10105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10106 set dummy ${ncn_progname}; ac_word=$2
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10108 $as_echo_n "checking for $ac_word... " >&6; }
10109 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10112 if test -n "$GCJ_FOR_TARGET"; then
10113 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10114 else
10115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116 for as_dir in $PATH
10117 do
10118 IFS=$as_save_IFS
10119 test -z "$as_dir" && as_dir=.
10120 for ac_exec_ext in '' $ac_executable_extensions; do
10121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10122 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 break 2
10125 fi
10126 done
10127 done
10128 IFS=$as_save_IFS
10129
10130 fi
10131 fi
10132 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10133 if test -n "$GCJ_FOR_TARGET"; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10135 $as_echo "$GCJ_FOR_TARGET" >&6; }
10136 else
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10139 fi
10140
10141
10142 done
10143 fi
10144
10145 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10146 for ncn_progname in gcj; do
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10148 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10149 if test -x $with_build_time_tools/${ncn_progname}; then
10150 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10152 $as_echo "yes" >&6; }
10153 break
10154 else
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156 $as_echo "no" >&6; }
10157 fi
10158 done
10159 fi
10160
10161 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10162 for ncn_progname in gcj; do
10163 if test -n "$ncn_target_tool_prefix"; then
10164 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10165 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167 $as_echo_n "checking for $ac_word... " >&6; }
10168 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10169 $as_echo_n "(cached) " >&6
10170 else
10171 if test -n "$GCJ_FOR_TARGET"; then
10172 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10173 else
10174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175 for as_dir in $PATH
10176 do
10177 IFS=$as_save_IFS
10178 test -z "$as_dir" && as_dir=.
10179 for ac_exec_ext in '' $ac_executable_extensions; do
10180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10181 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183 break 2
10184 fi
10185 done
10186 done
10187 IFS=$as_save_IFS
10188
10189 fi
10190 fi
10191 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10192 if test -n "$GCJ_FOR_TARGET"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10194 $as_echo "$GCJ_FOR_TARGET" >&6; }
10195 else
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 $as_echo "no" >&6; }
10198 fi
10199
10200
10201 fi
10202 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10204 set dummy ${ncn_progname}; ac_word=$2
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10206 $as_echo_n "checking for $ac_word... " >&6; }
10207 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 if test -n "$GCJ_FOR_TARGET"; then
10211 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10212 else
10213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214 for as_dir in $PATH
10215 do
10216 IFS=$as_save_IFS
10217 test -z "$as_dir" && as_dir=.
10218 for ac_exec_ext in '' $ac_executable_extensions; do
10219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10220 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10222 break 2
10223 fi
10224 done
10225 done
10226 IFS=$as_save_IFS
10227
10228 fi
10229 fi
10230 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10231 if test -n "$GCJ_FOR_TARGET"; then
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10233 $as_echo "$GCJ_FOR_TARGET" >&6; }
10234 else
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236 $as_echo "no" >&6; }
10237 fi
10238
10239
10240 fi
10241 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10242 done
10243 fi
10244
10245 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10246 set dummy gcj
10247 if test $build = $target ; then
10248 GCJ_FOR_TARGET="$2"
10249 else
10250 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10251 fi
10252 else
10253 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10254 fi
10255
10256
10257
10258 if test -n "$GFORTRAN_FOR_TARGET"; then
10259 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10260 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10261 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10262 fi
10263
10264 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10265 for ncn_progname in gfortran; do
10266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10267 set dummy ${ncn_progname}; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 if test -n "$GFORTRAN_FOR_TARGET"; then
10274 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10275 else
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10278 do
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10283 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285 break 2
10286 fi
10287 done
10288 done
10289 IFS=$as_save_IFS
10290
10291 fi
10292 fi
10293 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10294 if test -n "$GFORTRAN_FOR_TARGET"; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10296 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10297 else
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10300 fi
10301
10302
10303 done
10304 fi
10305
10306 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10307 for ncn_progname in gfortran; do
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10309 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10310 if test -x $with_build_time_tools/${ncn_progname}; then
10311 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10313 $as_echo "yes" >&6; }
10314 break
10315 else
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10317 $as_echo "no" >&6; }
10318 fi
10319 done
10320 fi
10321
10322 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10323 for ncn_progname in gfortran; do
10324 if test -n "$ncn_target_tool_prefix"; then
10325 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10326 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 if test -n "$GFORTRAN_FOR_TARGET"; then
10333 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10334 else
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10337 do
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10345 fi
10346 done
10347 done
10348 IFS=$as_save_IFS
10349
10350 fi
10351 fi
10352 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10353 if test -n "$GFORTRAN_FOR_TARGET"; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10355 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10356 else
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10359 fi
10360
10361
10362 fi
10363 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10365 set dummy ${ncn_progname}; ac_word=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10369 $as_echo_n "(cached) " >&6
10370 else
10371 if test -n "$GFORTRAN_FOR_TARGET"; then
10372 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10373 else
10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 for as_dir in $PATH
10376 do
10377 IFS=$as_save_IFS
10378 test -z "$as_dir" && as_dir=.
10379 for ac_exec_ext in '' $ac_executable_extensions; do
10380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10381 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 break 2
10384 fi
10385 done
10386 done
10387 IFS=$as_save_IFS
10388
10389 fi
10390 fi
10391 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10392 if test -n "$GFORTRAN_FOR_TARGET"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10394 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10395 else
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10398 fi
10399
10400
10401 fi
10402 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10403 done
10404 fi
10405
10406 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10407 set dummy gfortran
10408 if test $build = $target ; then
10409 GFORTRAN_FOR_TARGET="$2"
10410 else
10411 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10412 fi
10413 else
10414 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10415 fi
10416
10417
10418
10419 if test -n "$GOC_FOR_TARGET"; then
10420 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10421 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10422 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10423 fi
10424
10425 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10426 for ncn_progname in gccgo; do
10427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10428 set dummy ${ncn_progname}; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434 if test -n "$GOC_FOR_TARGET"; then
10435 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10436 else
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10439 do
10440 IFS=$as_save_IFS
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10444 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446 break 2
10447 fi
10448 done
10449 done
10450 IFS=$as_save_IFS
10451
10452 fi
10453 fi
10454 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10455 if test -n "$GOC_FOR_TARGET"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10457 $as_echo "$GOC_FOR_TARGET" >&6; }
10458 else
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10461 fi
10462
10463
10464 done
10465 fi
10466
10467 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10468 for ncn_progname in gccgo; do
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10470 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10471 if test -x $with_build_time_tools/${ncn_progname}; then
10472 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10474 $as_echo "yes" >&6; }
10475 break
10476 else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; }
10479 fi
10480 done
10481 fi
10482
10483 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10484 for ncn_progname in gccgo; do
10485 if test -n "$ncn_target_tool_prefix"; then
10486 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10487 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489 $as_echo_n "checking for $ac_word... " >&6; }
10490 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 if test -n "$GOC_FOR_TARGET"; then
10494 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10495 else
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10498 do
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10503 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 break 2
10506 fi
10507 done
10508 done
10509 IFS=$as_save_IFS
10510
10511 fi
10512 fi
10513 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10514 if test -n "$GOC_FOR_TARGET"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10516 $as_echo "$GOC_FOR_TARGET" >&6; }
10517 else
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10520 fi
10521
10522
10523 fi
10524 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10526 set dummy ${ncn_progname}; ac_word=$2
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10528 $as_echo_n "checking for $ac_word... " >&6; }
10529 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10530 $as_echo_n "(cached) " >&6
10531 else
10532 if test -n "$GOC_FOR_TARGET"; then
10533 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10534 else
10535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536 for as_dir in $PATH
10537 do
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10542 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10545 fi
10546 done
10547 done
10548 IFS=$as_save_IFS
10549
10550 fi
10551 fi
10552 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10553 if test -n "$GOC_FOR_TARGET"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10555 $as_echo "$GOC_FOR_TARGET" >&6; }
10556 else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10559 fi
10560
10561
10562 fi
10563 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10564 done
10565 fi
10566
10567 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10568 set dummy gccgo
10569 if test $build = $target ; then
10570 GOC_FOR_TARGET="$2"
10571 else
10572 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10573 fi
10574 else
10575 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10576 fi
10577
10578
10579
10580 cat > conftest.c << \EOF
10581 #ifdef __GNUC__
10582 gcc_yay;
10583 #endif
10584 EOF
10585 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10586 have_gcc_for_target=yes
10587 else
10588 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10589 have_gcc_for_target=no
10590 fi
10591 rm conftest.c
10592
10593
10594
10595
10596 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10597 if test -n "$with_build_time_tools"; then
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10599 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10600 if test -x $with_build_time_tools/ar; then
10601 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10602 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10604 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10605 else
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10608 fi
10609 elif test $build != $host && test $have_gcc_for_target = yes; then
10610 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10611 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10612 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10613 fi
10614 fi
10615 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10616 # Extract the first word of "ar", so it can be a program name with args.
10617 set dummy ar; ac_word=$2
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619 $as_echo_n "checking for $ac_word... " >&6; }
10620 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10621 $as_echo_n "(cached) " >&6
10622 else
10623 case $AR_FOR_TARGET in
10624 [\\/]* | ?:[\\/]*)
10625 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10626 ;;
10627 *)
10628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629 for as_dir in $gcc_cv_tool_dirs
10630 do
10631 IFS=$as_save_IFS
10632 test -z "$as_dir" && as_dir=.
10633 for ac_exec_ext in '' $ac_executable_extensions; do
10634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10635 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10637 break 2
10638 fi
10639 done
10640 done
10641 IFS=$as_save_IFS
10642
10643 ;;
10644 esac
10645 fi
10646 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10647 if test -n "$AR_FOR_TARGET"; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10649 $as_echo "$AR_FOR_TARGET" >&6; }
10650 else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652 $as_echo "no" >&6; }
10653 fi
10654
10655
10656 fi
10657 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10658
10659
10660 if test -n "$AR_FOR_TARGET"; then
10661 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10662 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10663 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10664 fi
10665
10666 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10667 for ncn_progname in ar; do
10668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10669 set dummy ${ncn_progname}; ac_word=$2
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10671 $as_echo_n "checking for $ac_word... " >&6; }
10672 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10673 $as_echo_n "(cached) " >&6
10674 else
10675 if test -n "$AR_FOR_TARGET"; then
10676 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10677 else
10678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679 for as_dir in $PATH
10680 do
10681 IFS=$as_save_IFS
10682 test -z "$as_dir" && as_dir=.
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10685 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10687 break 2
10688 fi
10689 done
10690 done
10691 IFS=$as_save_IFS
10692
10693 fi
10694 fi
10695 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10696 if test -n "$AR_FOR_TARGET"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10698 $as_echo "$AR_FOR_TARGET" >&6; }
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10702 fi
10703
10704
10705 done
10706 fi
10707
10708 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10709 for ncn_progname in ar; do
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10711 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10712 if test -x $with_build_time_tools/${ncn_progname}; then
10713 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10715 $as_echo "yes" >&6; }
10716 break
10717 else
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }
10720 fi
10721 done
10722 fi
10723
10724 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10725 for ncn_progname in ar; do
10726 if test -n "$ncn_target_tool_prefix"; then
10727 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10728 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10730 $as_echo_n "checking for $ac_word... " >&6; }
10731 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 if test -n "$AR_FOR_TARGET"; then
10735 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10736 else
10737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10738 for as_dir in $PATH
10739 do
10740 IFS=$as_save_IFS
10741 test -z "$as_dir" && as_dir=.
10742 for ac_exec_ext in '' $ac_executable_extensions; do
10743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10744 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10746 break 2
10747 fi
10748 done
10749 done
10750 IFS=$as_save_IFS
10751
10752 fi
10753 fi
10754 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10755 if test -n "$AR_FOR_TARGET"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10757 $as_echo "$AR_FOR_TARGET" >&6; }
10758 else
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760 $as_echo "no" >&6; }
10761 fi
10762
10763
10764 fi
10765 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10767 set dummy ${ncn_progname}; ac_word=$2
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769 $as_echo_n "checking for $ac_word... " >&6; }
10770 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 if test -n "$AR_FOR_TARGET"; then
10774 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10775 else
10776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777 for as_dir in $PATH
10778 do
10779 IFS=$as_save_IFS
10780 test -z "$as_dir" && as_dir=.
10781 for ac_exec_ext in '' $ac_executable_extensions; do
10782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10783 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10785 break 2
10786 fi
10787 done
10788 done
10789 IFS=$as_save_IFS
10790
10791 fi
10792 fi
10793 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10794 if test -n "$AR_FOR_TARGET"; then
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10796 $as_echo "$AR_FOR_TARGET" >&6; }
10797 else
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10799 $as_echo "no" >&6; }
10800 fi
10801
10802
10803 fi
10804 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10805 done
10806 fi
10807
10808 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10809 set dummy ar
10810 if test $build = $target ; then
10811 AR_FOR_TARGET="$2"
10812 else
10813 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10814 fi
10815 else
10816 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10817 fi
10818
10819 else
10820 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10821 fi
10822
10823
10824
10825
10826 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10827 if test -n "$with_build_time_tools"; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10829 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10830 if test -x $with_build_time_tools/as; then
10831 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10832 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10834 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10835 else
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837 $as_echo "no" >&6; }
10838 fi
10839 elif test $build != $host && test $have_gcc_for_target = yes; then
10840 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10841 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10842 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10843 fi
10844 fi
10845 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10846 # Extract the first word of "as", so it can be a program name with args.
10847 set dummy as; ac_word=$2
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849 $as_echo_n "checking for $ac_word... " >&6; }
10850 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 case $AS_FOR_TARGET in
10854 [\\/]* | ?:[\\/]*)
10855 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10856 ;;
10857 *)
10858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10859 for as_dir in $gcc_cv_tool_dirs
10860 do
10861 IFS=$as_save_IFS
10862 test -z "$as_dir" && as_dir=.
10863 for ac_exec_ext in '' $ac_executable_extensions; do
10864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10865 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10867 break 2
10868 fi
10869 done
10870 done
10871 IFS=$as_save_IFS
10872
10873 ;;
10874 esac
10875 fi
10876 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10877 if test -n "$AS_FOR_TARGET"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10879 $as_echo "$AS_FOR_TARGET" >&6; }
10880 else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; }
10883 fi
10884
10885
10886 fi
10887 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10888
10889
10890 if test -n "$AS_FOR_TARGET"; then
10891 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10892 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10893 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10894 fi
10895
10896 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10897 for ncn_progname in as; do
10898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10899 set dummy ${ncn_progname}; ac_word=$2
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10901 $as_echo_n "checking for $ac_word... " >&6; }
10902 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 if test -n "$AS_FOR_TARGET"; then
10906 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10907 else
10908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909 for as_dir in $PATH
10910 do
10911 IFS=$as_save_IFS
10912 test -z "$as_dir" && as_dir=.
10913 for ac_exec_ext in '' $ac_executable_extensions; do
10914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10915 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10917 break 2
10918 fi
10919 done
10920 done
10921 IFS=$as_save_IFS
10922
10923 fi
10924 fi
10925 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10926 if test -n "$AS_FOR_TARGET"; then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10928 $as_echo "$AS_FOR_TARGET" >&6; }
10929 else
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931 $as_echo "no" >&6; }
10932 fi
10933
10934
10935 done
10936 fi
10937
10938 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10939 for ncn_progname in as; do
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10941 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10942 if test -x $with_build_time_tools/${ncn_progname}; then
10943 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10945 $as_echo "yes" >&6; }
10946 break
10947 else
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10950 fi
10951 done
10952 fi
10953
10954 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10955 for ncn_progname in as; do
10956 if test -n "$ncn_target_tool_prefix"; then
10957 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10958 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10960 $as_echo_n "checking for $ac_word... " >&6; }
10961 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10962 $as_echo_n "(cached) " >&6
10963 else
10964 if test -n "$AS_FOR_TARGET"; then
10965 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10966 else
10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $PATH
10969 do
10970 IFS=$as_save_IFS
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10974 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10976 break 2
10977 fi
10978 done
10979 done
10980 IFS=$as_save_IFS
10981
10982 fi
10983 fi
10984 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10985 if test -n "$AS_FOR_TARGET"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10987 $as_echo "$AS_FOR_TARGET" >&6; }
10988 else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 $as_echo "no" >&6; }
10991 fi
10992
10993
10994 fi
10995 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10997 set dummy ${ncn_progname}; ac_word=$2
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10999 $as_echo_n "checking for $ac_word... " >&6; }
11000 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11001 $as_echo_n "(cached) " >&6
11002 else
11003 if test -n "$AS_FOR_TARGET"; then
11004 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11005 else
11006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11007 for as_dir in $PATH
11008 do
11009 IFS=$as_save_IFS
11010 test -z "$as_dir" && as_dir=.
11011 for ac_exec_ext in '' $ac_executable_extensions; do
11012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11013 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11015 break 2
11016 fi
11017 done
11018 done
11019 IFS=$as_save_IFS
11020
11021 fi
11022 fi
11023 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11024 if test -n "$AS_FOR_TARGET"; then
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11026 $as_echo "$AS_FOR_TARGET" >&6; }
11027 else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; }
11030 fi
11031
11032
11033 fi
11034 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11035 done
11036 fi
11037
11038 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11039 set dummy as
11040 if test $build = $target ; then
11041 AS_FOR_TARGET="$2"
11042 else
11043 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11044 fi
11045 else
11046 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11047 fi
11048
11049 else
11050 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11051 fi
11052
11053
11054
11055
11056 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11057 if test -n "$with_build_time_tools"; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11059 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11060 if test -x $with_build_time_tools/dlltool; then
11061 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11062 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11064 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11065 else
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 $as_echo "no" >&6; }
11068 fi
11069 elif test $build != $host && test $have_gcc_for_target = yes; then
11070 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11071 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11072 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11073 fi
11074 fi
11075 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11076 # Extract the first word of "dlltool", so it can be a program name with args.
11077 set dummy dlltool; ac_word=$2
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11079 $as_echo_n "checking for $ac_word... " >&6; }
11080 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 case $DLLTOOL_FOR_TARGET in
11084 [\\/]* | ?:[\\/]*)
11085 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11086 ;;
11087 *)
11088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089 for as_dir in $gcc_cv_tool_dirs
11090 do
11091 IFS=$as_save_IFS
11092 test -z "$as_dir" && as_dir=.
11093 for ac_exec_ext in '' $ac_executable_extensions; do
11094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11095 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11097 break 2
11098 fi
11099 done
11100 done
11101 IFS=$as_save_IFS
11102
11103 ;;
11104 esac
11105 fi
11106 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11107 if test -n "$DLLTOOL_FOR_TARGET"; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11109 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11110 else
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112 $as_echo "no" >&6; }
11113 fi
11114
11115
11116 fi
11117 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11118
11119
11120 if test -n "$DLLTOOL_FOR_TARGET"; then
11121 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11122 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11123 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11124 fi
11125
11126 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11127 for ncn_progname in dlltool; do
11128 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11129 set dummy ${ncn_progname}; ac_word=$2
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11131 $as_echo_n "checking for $ac_word... " >&6; }
11132 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11134 else
11135 if test -n "$DLLTOOL_FOR_TARGET"; then
11136 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11137 else
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11140 do
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11145 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11148 fi
11149 done
11150 done
11151 IFS=$as_save_IFS
11152
11153 fi
11154 fi
11155 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11156 if test -n "$DLLTOOL_FOR_TARGET"; then
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11158 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11159 else
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11162 fi
11163
11164
11165 done
11166 fi
11167
11168 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11169 for ncn_progname in dlltool; do
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11171 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11172 if test -x $with_build_time_tools/${ncn_progname}; then
11173 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11175 $as_echo "yes" >&6; }
11176 break
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11180 fi
11181 done
11182 fi
11183
11184 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11185 for ncn_progname in dlltool; do
11186 if test -n "$ncn_target_tool_prefix"; then
11187 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11188 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190 $as_echo_n "checking for $ac_word... " >&6; }
11191 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11192 $as_echo_n "(cached) " >&6
11193 else
11194 if test -n "$DLLTOOL_FOR_TARGET"; then
11195 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11196 else
11197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $PATH
11199 do
11200 IFS=$as_save_IFS
11201 test -z "$as_dir" && as_dir=.
11202 for ac_exec_ext in '' $ac_executable_extensions; do
11203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11204 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 break 2
11207 fi
11208 done
11209 done
11210 IFS=$as_save_IFS
11211
11212 fi
11213 fi
11214 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11215 if test -n "$DLLTOOL_FOR_TARGET"; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11217 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11218 else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11220 $as_echo "no" >&6; }
11221 fi
11222
11223
11224 fi
11225 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11227 set dummy ${ncn_progname}; ac_word=$2
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11229 $as_echo_n "checking for $ac_word... " >&6; }
11230 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 if test -n "$DLLTOOL_FOR_TARGET"; then
11234 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11235 else
11236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237 for as_dir in $PATH
11238 do
11239 IFS=$as_save_IFS
11240 test -z "$as_dir" && as_dir=.
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11243 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 break 2
11246 fi
11247 done
11248 done
11249 IFS=$as_save_IFS
11250
11251 fi
11252 fi
11253 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11254 if test -n "$DLLTOOL_FOR_TARGET"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11256 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11257 else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259 $as_echo "no" >&6; }
11260 fi
11261
11262
11263 fi
11264 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11265 done
11266 fi
11267
11268 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11269 set dummy dlltool
11270 if test $build = $target ; then
11271 DLLTOOL_FOR_TARGET="$2"
11272 else
11273 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11274 fi
11275 else
11276 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11277 fi
11278
11279 else
11280 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11281 fi
11282
11283
11284
11285
11286 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11287 if test -n "$with_build_time_tools"; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11289 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11290 if test -x $with_build_time_tools/ld; then
11291 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11292 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11294 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11295 else
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 $as_echo "no" >&6; }
11298 fi
11299 elif test $build != $host && test $have_gcc_for_target = yes; then
11300 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11301 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11302 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11303 fi
11304 fi
11305 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11306 # Extract the first word of "ld", so it can be a program name with args.
11307 set dummy ld; ac_word=$2
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309 $as_echo_n "checking for $ac_word... " >&6; }
11310 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 case $LD_FOR_TARGET in
11314 [\\/]* | ?:[\\/]*)
11315 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11316 ;;
11317 *)
11318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319 for as_dir in $gcc_cv_tool_dirs
11320 do
11321 IFS=$as_save_IFS
11322 test -z "$as_dir" && as_dir=.
11323 for ac_exec_ext in '' $ac_executable_extensions; do
11324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11325 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11327 break 2
11328 fi
11329 done
11330 done
11331 IFS=$as_save_IFS
11332
11333 ;;
11334 esac
11335 fi
11336 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11337 if test -n "$LD_FOR_TARGET"; then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11339 $as_echo "$LD_FOR_TARGET" >&6; }
11340 else
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11342 $as_echo "no" >&6; }
11343 fi
11344
11345
11346 fi
11347 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11348
11349
11350 if test -n "$LD_FOR_TARGET"; then
11351 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11352 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11353 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11354 fi
11355
11356 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11357 for ncn_progname in ld; do
11358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11359 set dummy ${ncn_progname}; ac_word=$2
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11361 $as_echo_n "checking for $ac_word... " >&6; }
11362 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11363 $as_echo_n "(cached) " >&6
11364 else
11365 if test -n "$LD_FOR_TARGET"; then
11366 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11367 else
11368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369 for as_dir in $PATH
11370 do
11371 IFS=$as_save_IFS
11372 test -z "$as_dir" && as_dir=.
11373 for ac_exec_ext in '' $ac_executable_extensions; do
11374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11375 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11377 break 2
11378 fi
11379 done
11380 done
11381 IFS=$as_save_IFS
11382
11383 fi
11384 fi
11385 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11386 if test -n "$LD_FOR_TARGET"; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11388 $as_echo "$LD_FOR_TARGET" >&6; }
11389 else
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 $as_echo "no" >&6; }
11392 fi
11393
11394
11395 done
11396 fi
11397
11398 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11399 for ncn_progname in ld; do
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11401 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11402 if test -x $with_build_time_tools/${ncn_progname}; then
11403 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11405 $as_echo "yes" >&6; }
11406 break
11407 else
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409 $as_echo "no" >&6; }
11410 fi
11411 done
11412 fi
11413
11414 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11415 for ncn_progname in ld; do
11416 if test -n "$ncn_target_tool_prefix"; then
11417 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11418 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11420 $as_echo_n "checking for $ac_word... " >&6; }
11421 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
11423 else
11424 if test -n "$LD_FOR_TARGET"; then
11425 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11426 else
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in $PATH
11429 do
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
11432 for ac_exec_ext in '' $ac_executable_extensions; do
11433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11434 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11436 break 2
11437 fi
11438 done
11439 done
11440 IFS=$as_save_IFS
11441
11442 fi
11443 fi
11444 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11445 if test -n "$LD_FOR_TARGET"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11447 $as_echo "$LD_FOR_TARGET" >&6; }
11448 else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450 $as_echo "no" >&6; }
11451 fi
11452
11453
11454 fi
11455 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11457 set dummy ${ncn_progname}; ac_word=$2
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11459 $as_echo_n "checking for $ac_word... " >&6; }
11460 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 if test -n "$LD_FOR_TARGET"; then
11464 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11465 else
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in $PATH
11468 do
11469 IFS=$as_save_IFS
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11473 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11475 break 2
11476 fi
11477 done
11478 done
11479 IFS=$as_save_IFS
11480
11481 fi
11482 fi
11483 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11484 if test -n "$LD_FOR_TARGET"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11486 $as_echo "$LD_FOR_TARGET" >&6; }
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11490 fi
11491
11492
11493 fi
11494 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11495 done
11496 fi
11497
11498 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11499 set dummy ld
11500 if test $build = $target ; then
11501 LD_FOR_TARGET="$2"
11502 else
11503 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11504 fi
11505 else
11506 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11507 fi
11508
11509 else
11510 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11511 fi
11512
11513
11514
11515
11516 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11517 if test -n "$with_build_time_tools"; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11519 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11520 if test -x $with_build_time_tools/lipo; then
11521 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11522 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11524 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11525 else
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527 $as_echo "no" >&6; }
11528 fi
11529 elif test $build != $host && test $have_gcc_for_target = yes; then
11530 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11531 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11532 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11533 fi
11534 fi
11535 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11536 # Extract the first word of "lipo", so it can be a program name with args.
11537 set dummy lipo; ac_word=$2
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11539 $as_echo_n "checking for $ac_word... " >&6; }
11540 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 case $LIPO_FOR_TARGET in
11544 [\\/]* | ?:[\\/]*)
11545 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11546 ;;
11547 *)
11548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11549 for as_dir in $gcc_cv_tool_dirs
11550 do
11551 IFS=$as_save_IFS
11552 test -z "$as_dir" && as_dir=.
11553 for ac_exec_ext in '' $ac_executable_extensions; do
11554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11555 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11557 break 2
11558 fi
11559 done
11560 done
11561 IFS=$as_save_IFS
11562
11563 ;;
11564 esac
11565 fi
11566 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11567 if test -n "$LIPO_FOR_TARGET"; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11569 $as_echo "$LIPO_FOR_TARGET" >&6; }
11570 else
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572 $as_echo "no" >&6; }
11573 fi
11574
11575
11576 fi
11577 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11578
11579
11580 if test -n "$LIPO_FOR_TARGET"; then
11581 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11582 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11583 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11584 fi
11585
11586 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11587 for ncn_progname in lipo; do
11588 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11589 set dummy ${ncn_progname}; ac_word=$2
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11591 $as_echo_n "checking for $ac_word... " >&6; }
11592 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11593 $as_echo_n "(cached) " >&6
11594 else
11595 if test -n "$LIPO_FOR_TARGET"; then
11596 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11597 else
11598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11599 for as_dir in $PATH
11600 do
11601 IFS=$as_save_IFS
11602 test -z "$as_dir" && as_dir=.
11603 for ac_exec_ext in '' $ac_executable_extensions; do
11604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11605 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11607 break 2
11608 fi
11609 done
11610 done
11611 IFS=$as_save_IFS
11612
11613 fi
11614 fi
11615 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11616 if test -n "$LIPO_FOR_TARGET"; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11618 $as_echo "$LIPO_FOR_TARGET" >&6; }
11619 else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11622 fi
11623
11624
11625 done
11626 fi
11627
11628 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11629 for ncn_progname in lipo; do
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11631 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11632 if test -x $with_build_time_tools/${ncn_progname}; then
11633 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11635 $as_echo "yes" >&6; }
11636 break
11637 else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11640 fi
11641 done
11642 fi
11643
11644 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11645 for ncn_progname in lipo; do
11646 if test -n "$ncn_target_tool_prefix"; then
11647 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11648 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11650 $as_echo_n "checking for $ac_word... " >&6; }
11651 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 if test -n "$LIPO_FOR_TARGET"; then
11655 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11656 else
11657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658 for as_dir in $PATH
11659 do
11660 IFS=$as_save_IFS
11661 test -z "$as_dir" && as_dir=.
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11664 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11666 break 2
11667 fi
11668 done
11669 done
11670 IFS=$as_save_IFS
11671
11672 fi
11673 fi
11674 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11675 if test -n "$LIPO_FOR_TARGET"; then
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11677 $as_echo "$LIPO_FOR_TARGET" >&6; }
11678 else
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11680 $as_echo "no" >&6; }
11681 fi
11682
11683
11684 fi
11685 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11687 set dummy ${ncn_progname}; ac_word=$2
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11689 $as_echo_n "checking for $ac_word... " >&6; }
11690 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11691 $as_echo_n "(cached) " >&6
11692 else
11693 if test -n "$LIPO_FOR_TARGET"; then
11694 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11695 else
11696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697 for as_dir in $PATH
11698 do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11703 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 break 2
11706 fi
11707 done
11708 done
11709 IFS=$as_save_IFS
11710
11711 fi
11712 fi
11713 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11714 if test -n "$LIPO_FOR_TARGET"; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11716 $as_echo "$LIPO_FOR_TARGET" >&6; }
11717 else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 $as_echo "no" >&6; }
11720 fi
11721
11722
11723 fi
11724 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11725 done
11726 fi
11727
11728 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11729 set dummy lipo
11730 if test $build = $target ; then
11731 LIPO_FOR_TARGET="$2"
11732 else
11733 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11734 fi
11735 else
11736 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11737 fi
11738
11739 else
11740 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11741 fi
11742
11743
11744
11745
11746 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11747 if test -n "$with_build_time_tools"; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11749 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11750 if test -x $with_build_time_tools/nm; then
11751 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11752 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11754 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11755 else
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11758 fi
11759 elif test $build != $host && test $have_gcc_for_target = yes; then
11760 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11761 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11762 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11763 fi
11764 fi
11765 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11766 # Extract the first word of "nm", so it can be a program name with args.
11767 set dummy nm; ac_word=$2
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769 $as_echo_n "checking for $ac_word... " >&6; }
11770 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 case $NM_FOR_TARGET in
11774 [\\/]* | ?:[\\/]*)
11775 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11776 ;;
11777 *)
11778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779 for as_dir in $gcc_cv_tool_dirs
11780 do
11781 IFS=$as_save_IFS
11782 test -z "$as_dir" && as_dir=.
11783 for ac_exec_ext in '' $ac_executable_extensions; do
11784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11785 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11787 break 2
11788 fi
11789 done
11790 done
11791 IFS=$as_save_IFS
11792
11793 ;;
11794 esac
11795 fi
11796 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11797 if test -n "$NM_FOR_TARGET"; then
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11799 $as_echo "$NM_FOR_TARGET" >&6; }
11800 else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802 $as_echo "no" >&6; }
11803 fi
11804
11805
11806 fi
11807 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11808
11809
11810 if test -n "$NM_FOR_TARGET"; then
11811 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11812 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11813 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11814 fi
11815
11816 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11817 for ncn_progname in nm; do
11818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11819 set dummy ${ncn_progname}; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11825 if test -n "$NM_FOR_TARGET"; then
11826 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11827 else
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11830 do
11831 IFS=$as_save_IFS
11832 test -z "$as_dir" && as_dir=.
11833 for ac_exec_ext in '' $ac_executable_extensions; do
11834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11835 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837 break 2
11838 fi
11839 done
11840 done
11841 IFS=$as_save_IFS
11842
11843 fi
11844 fi
11845 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11846 if test -n "$NM_FOR_TARGET"; then
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11848 $as_echo "$NM_FOR_TARGET" >&6; }
11849 else
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11852 fi
11853
11854
11855 done
11856 fi
11857
11858 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11859 for ncn_progname in nm; do
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11861 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11862 if test -x $with_build_time_tools/${ncn_progname}; then
11863 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11865 $as_echo "yes" >&6; }
11866 break
11867 else
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11870 fi
11871 done
11872 fi
11873
11874 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11875 for ncn_progname in nm; do
11876 if test -n "$ncn_target_tool_prefix"; then
11877 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11878 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880 $as_echo_n "checking for $ac_word... " >&6; }
11881 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 if test -n "$NM_FOR_TARGET"; then
11885 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11886 else
11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $PATH
11889 do
11890 IFS=$as_save_IFS
11891 test -z "$as_dir" && as_dir=.
11892 for ac_exec_ext in '' $ac_executable_extensions; do
11893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11894 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11896 break 2
11897 fi
11898 done
11899 done
11900 IFS=$as_save_IFS
11901
11902 fi
11903 fi
11904 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11905 if test -n "$NM_FOR_TARGET"; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11907 $as_echo "$NM_FOR_TARGET" >&6; }
11908 else
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11911 fi
11912
11913
11914 fi
11915 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11917 set dummy ${ncn_progname}; ac_word=$2
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919 $as_echo_n "checking for $ac_word... " >&6; }
11920 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 if test -n "$NM_FOR_TARGET"; then
11924 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11925 else
11926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927 for as_dir in $PATH
11928 do
11929 IFS=$as_save_IFS
11930 test -z "$as_dir" && as_dir=.
11931 for ac_exec_ext in '' $ac_executable_extensions; do
11932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11933 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11935 break 2
11936 fi
11937 done
11938 done
11939 IFS=$as_save_IFS
11940
11941 fi
11942 fi
11943 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11944 if test -n "$NM_FOR_TARGET"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11946 $as_echo "$NM_FOR_TARGET" >&6; }
11947 else
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11950 fi
11951
11952
11953 fi
11954 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11955 done
11956 fi
11957
11958 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11959 set dummy nm
11960 if test $build = $target ; then
11961 NM_FOR_TARGET="$2"
11962 else
11963 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11964 fi
11965 else
11966 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11967 fi
11968
11969 else
11970 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11971 fi
11972
11973
11974
11975
11976 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11977 if test -n "$with_build_time_tools"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11979 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11980 if test -x $with_build_time_tools/objdump; then
11981 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11982 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11984 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11985 else
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11988 fi
11989 elif test $build != $host && test $have_gcc_for_target = yes; then
11990 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11991 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11992 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11993 fi
11994 fi
11995 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11996 # Extract the first word of "objdump", so it can be a program name with args.
11997 set dummy objdump; ac_word=$2
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999 $as_echo_n "checking for $ac_word... " >&6; }
12000 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003 case $OBJDUMP_FOR_TARGET in
12004 [\\/]* | ?:[\\/]*)
12005 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12006 ;;
12007 *)
12008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009 for as_dir in $gcc_cv_tool_dirs
12010 do
12011 IFS=$as_save_IFS
12012 test -z "$as_dir" && as_dir=.
12013 for ac_exec_ext in '' $ac_executable_extensions; do
12014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12015 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12017 break 2
12018 fi
12019 done
12020 done
12021 IFS=$as_save_IFS
12022
12023 ;;
12024 esac
12025 fi
12026 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12027 if test -n "$OBJDUMP_FOR_TARGET"; then
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12029 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12030 else
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12033 fi
12034
12035
12036 fi
12037 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12038
12039
12040 if test -n "$OBJDUMP_FOR_TARGET"; then
12041 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12042 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12043 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12044 fi
12045
12046 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12047 for ncn_progname in objdump; do
12048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12049 set dummy ${ncn_progname}; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 if test -n "$OBJDUMP_FOR_TARGET"; then
12056 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12057 else
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12060 do
12061 IFS=$as_save_IFS
12062 test -z "$as_dir" && as_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12065 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12067 break 2
12068 fi
12069 done
12070 done
12071 IFS=$as_save_IFS
12072
12073 fi
12074 fi
12075 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12076 if test -n "$OBJDUMP_FOR_TARGET"; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12078 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12079 else
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12082 fi
12083
12084
12085 done
12086 fi
12087
12088 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12089 for ncn_progname in objdump; do
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12091 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12092 if test -x $with_build_time_tools/${ncn_progname}; then
12093 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12095 $as_echo "yes" >&6; }
12096 break
12097 else
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099 $as_echo "no" >&6; }
12100 fi
12101 done
12102 fi
12103
12104 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12105 for ncn_progname in objdump; do
12106 if test -n "$ncn_target_tool_prefix"; then
12107 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12108 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12110 $as_echo_n "checking for $ac_word... " >&6; }
12111 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12112 $as_echo_n "(cached) " >&6
12113 else
12114 if test -n "$OBJDUMP_FOR_TARGET"; then
12115 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12116 else
12117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12118 for as_dir in $PATH
12119 do
12120 IFS=$as_save_IFS
12121 test -z "$as_dir" && as_dir=.
12122 for ac_exec_ext in '' $ac_executable_extensions; do
12123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12124 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12126 break 2
12127 fi
12128 done
12129 done
12130 IFS=$as_save_IFS
12131
12132 fi
12133 fi
12134 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12135 if test -n "$OBJDUMP_FOR_TARGET"; then
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12137 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12138 else
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140 $as_echo "no" >&6; }
12141 fi
12142
12143
12144 fi
12145 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12147 set dummy ${ncn_progname}; ac_word=$2
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12149 $as_echo_n "checking for $ac_word... " >&6; }
12150 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 if test -n "$OBJDUMP_FOR_TARGET"; then
12154 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12155 else
12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 for as_dir in $PATH
12158 do
12159 IFS=$as_save_IFS
12160 test -z "$as_dir" && as_dir=.
12161 for ac_exec_ext in '' $ac_executable_extensions; do
12162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12163 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12165 break 2
12166 fi
12167 done
12168 done
12169 IFS=$as_save_IFS
12170
12171 fi
12172 fi
12173 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12174 if test -n "$OBJDUMP_FOR_TARGET"; then
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12176 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12177 else
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12180 fi
12181
12182
12183 fi
12184 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12185 done
12186 fi
12187
12188 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12189 set dummy objdump
12190 if test $build = $target ; then
12191 OBJDUMP_FOR_TARGET="$2"
12192 else
12193 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12194 fi
12195 else
12196 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12197 fi
12198
12199 else
12200 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12201 fi
12202
12203
12204
12205
12206 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12207 if test -n "$with_build_time_tools"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12209 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12210 if test -x $with_build_time_tools/ranlib; then
12211 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12212 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12214 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12215 else
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12218 fi
12219 elif test $build != $host && test $have_gcc_for_target = yes; then
12220 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12221 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12222 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12223 fi
12224 fi
12225 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12226 # Extract the first word of "ranlib", so it can be a program name with args.
12227 set dummy ranlib; ac_word=$2
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 $as_echo_n "checking for $ac_word... " >&6; }
12230 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 case $RANLIB_FOR_TARGET in
12234 [\\/]* | ?:[\\/]*)
12235 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12236 ;;
12237 *)
12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $gcc_cv_tool_dirs
12240 do
12241 IFS=$as_save_IFS
12242 test -z "$as_dir" && as_dir=.
12243 for ac_exec_ext in '' $ac_executable_extensions; do
12244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12245 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247 break 2
12248 fi
12249 done
12250 done
12251 IFS=$as_save_IFS
12252
12253 ;;
12254 esac
12255 fi
12256 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12257 if test -n "$RANLIB_FOR_TARGET"; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12259 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12260 else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12263 fi
12264
12265
12266 fi
12267 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12268
12269
12270 if test -n "$RANLIB_FOR_TARGET"; then
12271 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12272 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12273 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12274 fi
12275
12276 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12277 for ncn_progname in ranlib; do
12278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12279 set dummy ${ncn_progname}; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 if test -n "$RANLIB_FOR_TARGET"; then
12286 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12287 else
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12290 do
12291 IFS=$as_save_IFS
12292 test -z "$as_dir" && as_dir=.
12293 for ac_exec_ext in '' $ac_executable_extensions; do
12294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12295 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 break 2
12298 fi
12299 done
12300 done
12301 IFS=$as_save_IFS
12302
12303 fi
12304 fi
12305 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12306 if test -n "$RANLIB_FOR_TARGET"; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12308 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12309 else
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12312 fi
12313
12314
12315 done
12316 fi
12317
12318 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12319 for ncn_progname in ranlib; do
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12321 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12322 if test -x $with_build_time_tools/${ncn_progname}; then
12323 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12325 $as_echo "yes" >&6; }
12326 break
12327 else
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12330 fi
12331 done
12332 fi
12333
12334 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12335 for ncn_progname in ranlib; do
12336 if test -n "$ncn_target_tool_prefix"; then
12337 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12338 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340 $as_echo_n "checking for $ac_word... " >&6; }
12341 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 if test -n "$RANLIB_FOR_TARGET"; then
12345 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12346 else
12347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348 for as_dir in $PATH
12349 do
12350 IFS=$as_save_IFS
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
12353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12354 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12356 break 2
12357 fi
12358 done
12359 done
12360 IFS=$as_save_IFS
12361
12362 fi
12363 fi
12364 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12365 if test -n "$RANLIB_FOR_TARGET"; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12367 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12368 else
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12371 fi
12372
12373
12374 fi
12375 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12377 set dummy ${ncn_progname}; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12381 $as_echo_n "(cached) " >&6
12382 else
12383 if test -n "$RANLIB_FOR_TARGET"; then
12384 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12385 else
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12388 do
12389 IFS=$as_save_IFS
12390 test -z "$as_dir" && as_dir=.
12391 for ac_exec_ext in '' $ac_executable_extensions; do
12392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12393 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12395 break 2
12396 fi
12397 done
12398 done
12399 IFS=$as_save_IFS
12400
12401 fi
12402 fi
12403 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12404 if test -n "$RANLIB_FOR_TARGET"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12406 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12407 else
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12410 fi
12411
12412
12413 fi
12414 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12415 done
12416 fi
12417
12418 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12419 set dummy ranlib
12420 if test $build = $target ; then
12421 RANLIB_FOR_TARGET="$2"
12422 else
12423 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12424 fi
12425 else
12426 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12427 fi
12428
12429 else
12430 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12431 fi
12432
12433
12434
12435
12436 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12437 if test -n "$with_build_time_tools"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12439 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12440 if test -x $with_build_time_tools/readelf; then
12441 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12442 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12444 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12445 else
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447 $as_echo "no" >&6; }
12448 fi
12449 elif test $build != $host && test $have_gcc_for_target = yes; then
12450 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12451 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12452 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12453 fi
12454 fi
12455 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12456 # Extract the first word of "readelf", so it can be a program name with args.
12457 set dummy readelf; ac_word=$2
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459 $as_echo_n "checking for $ac_word... " >&6; }
12460 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 case $READELF_FOR_TARGET in
12464 [\\/]* | ?:[\\/]*)
12465 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12466 ;;
12467 *)
12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $gcc_cv_tool_dirs
12470 do
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
12473 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12475 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 break 2
12478 fi
12479 done
12480 done
12481 IFS=$as_save_IFS
12482
12483 ;;
12484 esac
12485 fi
12486 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12487 if test -n "$READELF_FOR_TARGET"; then
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12489 $as_echo "$READELF_FOR_TARGET" >&6; }
12490 else
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492 $as_echo "no" >&6; }
12493 fi
12494
12495
12496 fi
12497 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12498
12499
12500 if test -n "$READELF_FOR_TARGET"; then
12501 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12502 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12503 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12504 fi
12505
12506 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12507 for ncn_progname in readelf; do
12508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12509 set dummy ${ncn_progname}; ac_word=$2
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12511 $as_echo_n "checking for $ac_word... " >&6; }
12512 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 if test -n "$READELF_FOR_TARGET"; then
12516 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12517 else
12518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519 for as_dir in $PATH
12520 do
12521 IFS=$as_save_IFS
12522 test -z "$as_dir" && as_dir=.
12523 for ac_exec_ext in '' $ac_executable_extensions; do
12524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12525 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12527 break 2
12528 fi
12529 done
12530 done
12531 IFS=$as_save_IFS
12532
12533 fi
12534 fi
12535 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12536 if test -n "$READELF_FOR_TARGET"; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12538 $as_echo "$READELF_FOR_TARGET" >&6; }
12539 else
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12542 fi
12543
12544
12545 done
12546 fi
12547
12548 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12549 for ncn_progname in readelf; do
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12551 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12552 if test -x $with_build_time_tools/${ncn_progname}; then
12553 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12555 $as_echo "yes" >&6; }
12556 break
12557 else
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12559 $as_echo "no" >&6; }
12560 fi
12561 done
12562 fi
12563
12564 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12565 for ncn_progname in readelf; do
12566 if test -n "$ncn_target_tool_prefix"; then
12567 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12568 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570 $as_echo_n "checking for $ac_word... " >&6; }
12571 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 if test -n "$READELF_FOR_TARGET"; then
12575 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12576 else
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12579 do
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12584 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 break 2
12587 fi
12588 done
12589 done
12590 IFS=$as_save_IFS
12591
12592 fi
12593 fi
12594 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12595 if test -n "$READELF_FOR_TARGET"; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12597 $as_echo "$READELF_FOR_TARGET" >&6; }
12598 else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600 $as_echo "no" >&6; }
12601 fi
12602
12603
12604 fi
12605 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12607 set dummy ${ncn_progname}; ac_word=$2
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12609 $as_echo_n "checking for $ac_word... " >&6; }
12610 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 if test -n "$READELF_FOR_TARGET"; then
12614 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12615 else
12616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12617 for as_dir in $PATH
12618 do
12619 IFS=$as_save_IFS
12620 test -z "$as_dir" && as_dir=.
12621 for ac_exec_ext in '' $ac_executable_extensions; do
12622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12623 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12625 break 2
12626 fi
12627 done
12628 done
12629 IFS=$as_save_IFS
12630
12631 fi
12632 fi
12633 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12634 if test -n "$READELF_FOR_TARGET"; then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12636 $as_echo "$READELF_FOR_TARGET" >&6; }
12637 else
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639 $as_echo "no" >&6; }
12640 fi
12641
12642
12643 fi
12644 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12645 done
12646 fi
12647
12648 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12649 set dummy readelf
12650 if test $build = $target ; then
12651 READELF_FOR_TARGET="$2"
12652 else
12653 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12654 fi
12655 else
12656 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12657 fi
12658
12659 else
12660 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12661 fi
12662
12663
12664
12665
12666 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12667 if test -n "$with_build_time_tools"; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12669 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12670 if test -x $with_build_time_tools/strip; then
12671 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12672 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12674 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12678 fi
12679 elif test $build != $host && test $have_gcc_for_target = yes; then
12680 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12681 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12682 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12683 fi
12684 fi
12685 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12686 # Extract the first word of "strip", so it can be a program name with args.
12687 set dummy strip; ac_word=$2
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689 $as_echo_n "checking for $ac_word... " >&6; }
12690 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 case $STRIP_FOR_TARGET in
12694 [\\/]* | ?:[\\/]*)
12695 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12696 ;;
12697 *)
12698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699 for as_dir in $gcc_cv_tool_dirs
12700 do
12701 IFS=$as_save_IFS
12702 test -z "$as_dir" && as_dir=.
12703 for ac_exec_ext in '' $ac_executable_extensions; do
12704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12705 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12707 break 2
12708 fi
12709 done
12710 done
12711 IFS=$as_save_IFS
12712
12713 ;;
12714 esac
12715 fi
12716 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12717 if test -n "$STRIP_FOR_TARGET"; then
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12719 $as_echo "$STRIP_FOR_TARGET" >&6; }
12720 else
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12723 fi
12724
12725
12726 fi
12727 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12728
12729
12730 if test -n "$STRIP_FOR_TARGET"; then
12731 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12732 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12733 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12734 fi
12735
12736 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12737 for ncn_progname in strip; do
12738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12739 set dummy ${ncn_progname}; ac_word=$2
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741 $as_echo_n "checking for $ac_word... " >&6; }
12742 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 if test -n "$STRIP_FOR_TARGET"; then
12746 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12747 else
12748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749 for as_dir in $PATH
12750 do
12751 IFS=$as_save_IFS
12752 test -z "$as_dir" && as_dir=.
12753 for ac_exec_ext in '' $ac_executable_extensions; do
12754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12755 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12757 break 2
12758 fi
12759 done
12760 done
12761 IFS=$as_save_IFS
12762
12763 fi
12764 fi
12765 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12766 if test -n "$STRIP_FOR_TARGET"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12768 $as_echo "$STRIP_FOR_TARGET" >&6; }
12769 else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12772 fi
12773
12774
12775 done
12776 fi
12777
12778 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12779 for ncn_progname in strip; do
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12781 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12782 if test -x $with_build_time_tools/${ncn_progname}; then
12783 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12785 $as_echo "yes" >&6; }
12786 break
12787 else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789 $as_echo "no" >&6; }
12790 fi
12791 done
12792 fi
12793
12794 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12795 for ncn_progname in strip; do
12796 if test -n "$ncn_target_tool_prefix"; then
12797 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12798 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12800 $as_echo_n "checking for $ac_word... " >&6; }
12801 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 if test -n "$STRIP_FOR_TARGET"; then
12805 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12806 else
12807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808 for as_dir in $PATH
12809 do
12810 IFS=$as_save_IFS
12811 test -z "$as_dir" && as_dir=.
12812 for ac_exec_ext in '' $ac_executable_extensions; do
12813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12814 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12816 break 2
12817 fi
12818 done
12819 done
12820 IFS=$as_save_IFS
12821
12822 fi
12823 fi
12824 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12825 if test -n "$STRIP_FOR_TARGET"; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12827 $as_echo "$STRIP_FOR_TARGET" >&6; }
12828 else
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12831 fi
12832
12833
12834 fi
12835 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12837 set dummy ${ncn_progname}; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12841 $as_echo_n "(cached) " >&6
12842 else
12843 if test -n "$STRIP_FOR_TARGET"; then
12844 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12845 else
12846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847 for as_dir in $PATH
12848 do
12849 IFS=$as_save_IFS
12850 test -z "$as_dir" && as_dir=.
12851 for ac_exec_ext in '' $ac_executable_extensions; do
12852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12853 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12855 break 2
12856 fi
12857 done
12858 done
12859 IFS=$as_save_IFS
12860
12861 fi
12862 fi
12863 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12864 if test -n "$STRIP_FOR_TARGET"; then
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12866 $as_echo "$STRIP_FOR_TARGET" >&6; }
12867 else
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869 $as_echo "no" >&6; }
12870 fi
12871
12872
12873 fi
12874 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12875 done
12876 fi
12877
12878 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12879 set dummy strip
12880 if test $build = $target ; then
12881 STRIP_FOR_TARGET="$2"
12882 else
12883 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12884 fi
12885 else
12886 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12887 fi
12888
12889 else
12890 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12891 fi
12892
12893
12894
12895
12896 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12897 if test -n "$with_build_time_tools"; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12899 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12900 if test -x $with_build_time_tools/windres; then
12901 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12902 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12904 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12905 else
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907 $as_echo "no" >&6; }
12908 fi
12909 elif test $build != $host && test $have_gcc_for_target = yes; then
12910 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12911 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12912 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12913 fi
12914 fi
12915 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12916 # Extract the first word of "windres", so it can be a program name with args.
12917 set dummy windres; ac_word=$2
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919 $as_echo_n "checking for $ac_word... " >&6; }
12920 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 case $WINDRES_FOR_TARGET in
12924 [\\/]* | ?:[\\/]*)
12925 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12926 ;;
12927 *)
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $gcc_cv_tool_dirs
12930 do
12931 IFS=$as_save_IFS
12932 test -z "$as_dir" && as_dir=.
12933 for ac_exec_ext in '' $ac_executable_extensions; do
12934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12935 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12937 break 2
12938 fi
12939 done
12940 done
12941 IFS=$as_save_IFS
12942
12943 ;;
12944 esac
12945 fi
12946 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12947 if test -n "$WINDRES_FOR_TARGET"; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12949 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12950 else
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952 $as_echo "no" >&6; }
12953 fi
12954
12955
12956 fi
12957 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12958
12959
12960 if test -n "$WINDRES_FOR_TARGET"; then
12961 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12962 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12963 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12964 fi
12965
12966 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12967 for ncn_progname in windres; do
12968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12969 set dummy ${ncn_progname}; ac_word=$2
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971 $as_echo_n "checking for $ac_word... " >&6; }
12972 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 if test -n "$WINDRES_FOR_TARGET"; then
12976 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12977 else
12978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 for as_dir in $PATH
12980 do
12981 IFS=$as_save_IFS
12982 test -z "$as_dir" && as_dir=.
12983 for ac_exec_ext in '' $ac_executable_extensions; do
12984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12985 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12987 break 2
12988 fi
12989 done
12990 done
12991 IFS=$as_save_IFS
12992
12993 fi
12994 fi
12995 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12996 if test -n "$WINDRES_FOR_TARGET"; then
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12998 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12999 else
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001 $as_echo "no" >&6; }
13002 fi
13003
13004
13005 done
13006 fi
13007
13008 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13009 for ncn_progname in windres; do
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13011 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13012 if test -x $with_build_time_tools/${ncn_progname}; then
13013 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13015 $as_echo "yes" >&6; }
13016 break
13017 else
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13019 $as_echo "no" >&6; }
13020 fi
13021 done
13022 fi
13023
13024 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13025 for ncn_progname in windres; do
13026 if test -n "$ncn_target_tool_prefix"; then
13027 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13028 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030 $as_echo_n "checking for $ac_word... " >&6; }
13031 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13032 $as_echo_n "(cached) " >&6
13033 else
13034 if test -n "$WINDRES_FOR_TARGET"; then
13035 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13036 else
13037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13038 for as_dir in $PATH
13039 do
13040 IFS=$as_save_IFS
13041 test -z "$as_dir" && as_dir=.
13042 for ac_exec_ext in '' $ac_executable_extensions; do
13043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13044 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13046 break 2
13047 fi
13048 done
13049 done
13050 IFS=$as_save_IFS
13051
13052 fi
13053 fi
13054 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13055 if test -n "$WINDRES_FOR_TARGET"; then
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13057 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13058 else
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060 $as_echo "no" >&6; }
13061 fi
13062
13063
13064 fi
13065 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13067 set dummy ${ncn_progname}; ac_word=$2
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13069 $as_echo_n "checking for $ac_word... " >&6; }
13070 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13071 $as_echo_n "(cached) " >&6
13072 else
13073 if test -n "$WINDRES_FOR_TARGET"; then
13074 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13075 else
13076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077 for as_dir in $PATH
13078 do
13079 IFS=$as_save_IFS
13080 test -z "$as_dir" && as_dir=.
13081 for ac_exec_ext in '' $ac_executable_extensions; do
13082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13083 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13085 break 2
13086 fi
13087 done
13088 done
13089 IFS=$as_save_IFS
13090
13091 fi
13092 fi
13093 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13094 if test -n "$WINDRES_FOR_TARGET"; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13096 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13097 else
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13100 fi
13101
13102
13103 fi
13104 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13105 done
13106 fi
13107
13108 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13109 set dummy windres
13110 if test $build = $target ; then
13111 WINDRES_FOR_TARGET="$2"
13112 else
13113 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13114 fi
13115 else
13116 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13117 fi
13118
13119 else
13120 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13121 fi
13122
13123
13124
13125
13126 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13127 if test -n "$with_build_time_tools"; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13129 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13130 if test -x $with_build_time_tools/windmc; then
13131 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13132 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13134 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13135 else
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13138 fi
13139 elif test $build != $host && test $have_gcc_for_target = yes; then
13140 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13141 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13142 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13143 fi
13144 fi
13145 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13146 # Extract the first word of "windmc", so it can be a program name with args.
13147 set dummy windmc; ac_word=$2
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13149 $as_echo_n "checking for $ac_word... " >&6; }
13150 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 case $WINDMC_FOR_TARGET in
13154 [\\/]* | ?:[\\/]*)
13155 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13156 ;;
13157 *)
13158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13159 for as_dir in $gcc_cv_tool_dirs
13160 do
13161 IFS=$as_save_IFS
13162 test -z "$as_dir" && as_dir=.
13163 for ac_exec_ext in '' $ac_executable_extensions; do
13164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13165 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13167 break 2
13168 fi
13169 done
13170 done
13171 IFS=$as_save_IFS
13172
13173 ;;
13174 esac
13175 fi
13176 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13177 if test -n "$WINDMC_FOR_TARGET"; then
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13179 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13180 else
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182 $as_echo "no" >&6; }
13183 fi
13184
13185
13186 fi
13187 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13188
13189
13190 if test -n "$WINDMC_FOR_TARGET"; then
13191 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13192 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13193 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13194 fi
13195
13196 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13197 for ncn_progname in windmc; do
13198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13199 set dummy ${ncn_progname}; ac_word=$2
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201 $as_echo_n "checking for $ac_word... " >&6; }
13202 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 if test -n "$WINDMC_FOR_TARGET"; then
13206 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13207 else
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13210 do
13211 IFS=$as_save_IFS
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13215 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13217 break 2
13218 fi
13219 done
13220 done
13221 IFS=$as_save_IFS
13222
13223 fi
13224 fi
13225 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13226 if test -n "$WINDMC_FOR_TARGET"; then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13228 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13229 else
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231 $as_echo "no" >&6; }
13232 fi
13233
13234
13235 done
13236 fi
13237
13238 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13239 for ncn_progname in windmc; do
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13241 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13242 if test -x $with_build_time_tools/${ncn_progname}; then
13243 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13245 $as_echo "yes" >&6; }
13246 break
13247 else
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13250 fi
13251 done
13252 fi
13253
13254 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13255 for ncn_progname in windmc; do
13256 if test -n "$ncn_target_tool_prefix"; then
13257 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13258 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13260 $as_echo_n "checking for $ac_word... " >&6; }
13261 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13262 $as_echo_n "(cached) " >&6
13263 else
13264 if test -n "$WINDMC_FOR_TARGET"; then
13265 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13266 else
13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13269 do
13270 IFS=$as_save_IFS
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13274 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13276 break 2
13277 fi
13278 done
13279 done
13280 IFS=$as_save_IFS
13281
13282 fi
13283 fi
13284 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13285 if test -n "$WINDMC_FOR_TARGET"; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13287 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13288 else
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 $as_echo "no" >&6; }
13291 fi
13292
13293
13294 fi
13295 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13297 set dummy ${ncn_progname}; ac_word=$2
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13299 $as_echo_n "checking for $ac_word... " >&6; }
13300 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 if test -n "$WINDMC_FOR_TARGET"; then
13304 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13305 else
13306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13307 for as_dir in $PATH
13308 do
13309 IFS=$as_save_IFS
13310 test -z "$as_dir" && as_dir=.
13311 for ac_exec_ext in '' $ac_executable_extensions; do
13312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13313 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13315 break 2
13316 fi
13317 done
13318 done
13319 IFS=$as_save_IFS
13320
13321 fi
13322 fi
13323 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13324 if test -n "$WINDMC_FOR_TARGET"; then
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13326 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13327 else
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13329 $as_echo "no" >&6; }
13330 fi
13331
13332
13333 fi
13334 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13335 done
13336 fi
13337
13338 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13339 set dummy windmc
13340 if test $build = $target ; then
13341 WINDMC_FOR_TARGET="$2"
13342 else
13343 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13344 fi
13345 else
13346 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13347 fi
13348
13349 else
13350 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13351 fi
13352
13353
13354 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13355
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13357 $as_echo_n "checking where to find the target ar... " >&6; }
13358 if test "x${build}" != "x${host}" ; then
13359 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13360 # We already found the complete path
13361 ac_dir=`dirname $AR_FOR_TARGET`
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13363 $as_echo "pre-installed in $ac_dir" >&6; }
13364 else
13365 # Canadian cross, just use what we found
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13367 $as_echo "pre-installed" >&6; }
13368 fi
13369 else
13370 ok=yes
13371 case " ${configdirs} " in
13372 *" binutils "*) ;;
13373 *) ok=no ;;
13374 esac
13375
13376 if test $ok = yes; then
13377 # An in-tree tool is available and we can use it
13378 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13380 $as_echo "just compiled" >&6; }
13381 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13382 # We already found the complete path
13383 ac_dir=`dirname $AR_FOR_TARGET`
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13385 $as_echo "pre-installed in $ac_dir" >&6; }
13386 elif test "x$target" = "x$host"; then
13387 # We can use an host tool
13388 AR_FOR_TARGET='$(AR)'
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13390 $as_echo "host tool" >&6; }
13391 else
13392 # We need a cross tool
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13394 $as_echo "pre-installed" >&6; }
13395 fi
13396 fi
13397
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13399 $as_echo_n "checking where to find the target as... " >&6; }
13400 if test "x${build}" != "x${host}" ; then
13401 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13402 # We already found the complete path
13403 ac_dir=`dirname $AS_FOR_TARGET`
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13405 $as_echo "pre-installed in $ac_dir" >&6; }
13406 else
13407 # Canadian cross, just use what we found
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13409 $as_echo "pre-installed" >&6; }
13410 fi
13411 else
13412 ok=yes
13413 case " ${configdirs} " in
13414 *" gas "*) ;;
13415 *) ok=no ;;
13416 esac
13417
13418 if test $ok = yes; then
13419 # An in-tree tool is available and we can use it
13420 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13422 $as_echo "just compiled" >&6; }
13423 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13424 # We already found the complete path
13425 ac_dir=`dirname $AS_FOR_TARGET`
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13427 $as_echo "pre-installed in $ac_dir" >&6; }
13428 elif test "x$target" = "x$host"; then
13429 # We can use an host tool
13430 AS_FOR_TARGET='$(AS)'
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13432 $as_echo "host tool" >&6; }
13433 else
13434 # We need a cross tool
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13436 $as_echo "pre-installed" >&6; }
13437 fi
13438 fi
13439
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13441 $as_echo_n "checking where to find the target cc... " >&6; }
13442 if test "x${build}" != "x${host}" ; then
13443 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13444 # We already found the complete path
13445 ac_dir=`dirname $CC_FOR_TARGET`
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13447 $as_echo "pre-installed in $ac_dir" >&6; }
13448 else
13449 # Canadian cross, just use what we found
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13451 $as_echo "pre-installed" >&6; }
13452 fi
13453 else
13454 ok=yes
13455 case " ${configdirs} " in
13456 *" gcc "*) ;;
13457 *) ok=no ;;
13458 esac
13459
13460 if test $ok = yes; then
13461 # An in-tree tool is available and we can use it
13462 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13464 $as_echo "just compiled" >&6; }
13465 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13466 # We already found the complete path
13467 ac_dir=`dirname $CC_FOR_TARGET`
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13469 $as_echo "pre-installed in $ac_dir" >&6; }
13470 elif test "x$target" = "x$host"; then
13471 # We can use an host tool
13472 CC_FOR_TARGET='$(CC)'
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13474 $as_echo "host tool" >&6; }
13475 else
13476 # We need a cross tool
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13478 $as_echo "pre-installed" >&6; }
13479 fi
13480 fi
13481
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13483 $as_echo_n "checking where to find the target c++... " >&6; }
13484 if test "x${build}" != "x${host}" ; then
13485 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13486 # We already found the complete path
13487 ac_dir=`dirname $CXX_FOR_TARGET`
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13489 $as_echo "pre-installed in $ac_dir" >&6; }
13490 else
13491 # Canadian cross, just use what we found
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13493 $as_echo "pre-installed" >&6; }
13494 fi
13495 else
13496 ok=yes
13497 case " ${configdirs} " in
13498 *" gcc "*) ;;
13499 *) ok=no ;;
13500 esac
13501 case ,${enable_languages}, in
13502 *,c++,*) ;;
13503 *) ok=no ;;
13504 esac
13505 if test $ok = yes; then
13506 # An in-tree tool is available and we can use it
13507 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'
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13509 $as_echo "just compiled" >&6; }
13510 elif 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 elif test "x$target" = "x$host"; then
13516 # We can use an host tool
13517 CXX_FOR_TARGET='$(CXX)'
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13519 $as_echo "host tool" >&6; }
13520 else
13521 # We need a cross tool
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13523 $as_echo "pre-installed" >&6; }
13524 fi
13525 fi
13526
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13528 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13529 if test "x${build}" != "x${host}" ; then
13530 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13531 # We already found the complete path
13532 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13534 $as_echo "pre-installed in $ac_dir" >&6; }
13535 else
13536 # Canadian cross, just use what we found
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13538 $as_echo "pre-installed" >&6; }
13539 fi
13540 else
13541 ok=yes
13542 case " ${configdirs} " in
13543 *" gcc "*) ;;
13544 *) ok=no ;;
13545 esac
13546 case ,${enable_languages}, in
13547 *,c++,*) ;;
13548 *) ok=no ;;
13549 esac
13550 if test $ok = yes; then
13551 # An in-tree tool is available and we can use it
13552 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'
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13554 $as_echo "just compiled" >&6; }
13555 elif 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 elif test "x$target" = "x$host"; then
13561 # We can use an host tool
13562 RAW_CXX_FOR_TARGET='$(CXX)'
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13564 $as_echo "host tool" >&6; }
13565 else
13566 # We need a cross tool
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13568 $as_echo "pre-installed" >&6; }
13569 fi
13570 fi
13571
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13573 $as_echo_n "checking where to find the target dlltool... " >&6; }
13574 if test "x${build}" != "x${host}" ; then
13575 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13576 # We already found the complete path
13577 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13579 $as_echo "pre-installed in $ac_dir" >&6; }
13580 else
13581 # Canadian cross, just use what we found
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13583 $as_echo "pre-installed" >&6; }
13584 fi
13585 else
13586 ok=yes
13587 case " ${configdirs} " in
13588 *" binutils "*) ;;
13589 *) ok=no ;;
13590 esac
13591
13592 if test $ok = yes; then
13593 # An in-tree tool is available and we can use it
13594 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13596 $as_echo "just compiled" >&6; }
13597 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13598 # We already found the complete path
13599 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13601 $as_echo "pre-installed in $ac_dir" >&6; }
13602 elif test "x$target" = "x$host"; then
13603 # We can use an host tool
13604 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13606 $as_echo "host tool" >&6; }
13607 else
13608 # We need a cross tool
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13610 $as_echo "pre-installed" >&6; }
13611 fi
13612 fi
13613
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13615 $as_echo_n "checking where to find the target gcc... " >&6; }
13616 if test "x${build}" != "x${host}" ; then
13617 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13618 # We already found the complete path
13619 ac_dir=`dirname $GCC_FOR_TARGET`
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13621 $as_echo "pre-installed in $ac_dir" >&6; }
13622 else
13623 # Canadian cross, just use what we found
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13625 $as_echo "pre-installed" >&6; }
13626 fi
13627 else
13628 ok=yes
13629 case " ${configdirs} " in
13630 *" gcc "*) ;;
13631 *) ok=no ;;
13632 esac
13633
13634 if test $ok = yes; then
13635 # An in-tree tool is available and we can use it
13636 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13638 $as_echo "just compiled" >&6; }
13639 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13640 # We already found the complete path
13641 ac_dir=`dirname $GCC_FOR_TARGET`
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13643 $as_echo "pre-installed in $ac_dir" >&6; }
13644 elif test "x$target" = "x$host"; then
13645 # We can use an host tool
13646 GCC_FOR_TARGET='$()'
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13648 $as_echo "host tool" >&6; }
13649 else
13650 # We need a cross tool
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13652 $as_echo "pre-installed" >&6; }
13653 fi
13654 fi
13655
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13657 $as_echo_n "checking where to find the target gcj... " >&6; }
13658 if test "x${build}" != "x${host}" ; then
13659 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13660 # We already found the complete path
13661 ac_dir=`dirname $GCJ_FOR_TARGET`
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13663 $as_echo "pre-installed in $ac_dir" >&6; }
13664 else
13665 # Canadian cross, just use what we found
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13667 $as_echo "pre-installed" >&6; }
13668 fi
13669 else
13670 ok=yes
13671 case " ${configdirs} " in
13672 *" gcc "*) ;;
13673 *) ok=no ;;
13674 esac
13675 case ,${enable_languages}, in
13676 *,java,*) ;;
13677 *) ok=no ;;
13678 esac
13679 if test $ok = yes; then
13680 # An in-tree tool is available and we can use it
13681 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13683 $as_echo "just compiled" >&6; }
13684 elif 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 elif test "x$target" = "x$host"; then
13690 # We can use an host tool
13691 GCJ_FOR_TARGET='$(GCJ)'
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13693 $as_echo "host tool" >&6; }
13694 else
13695 # We need a cross tool
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13697 $as_echo "pre-installed" >&6; }
13698 fi
13699 fi
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13702 $as_echo_n "checking where to find the target gfortran... " >&6; }
13703 if test "x${build}" != "x${host}" ; then
13704 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13705 # We already found the complete path
13706 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13708 $as_echo "pre-installed in $ac_dir" >&6; }
13709 else
13710 # Canadian cross, just use what we found
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13712 $as_echo "pre-installed" >&6; }
13713 fi
13714 else
13715 ok=yes
13716 case " ${configdirs} " in
13717 *" gcc "*) ;;
13718 *) ok=no ;;
13719 esac
13720 case ,${enable_languages}, in
13721 *,fortran,*) ;;
13722 *) ok=no ;;
13723 esac
13724 if test $ok = yes; then
13725 # An in-tree tool is available and we can use it
13726 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13728 $as_echo "just compiled" >&6; }
13729 elif 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 elif test "x$target" = "x$host"; then
13735 # We can use an host tool
13736 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13738 $as_echo "host tool" >&6; }
13739 else
13740 # We need a cross tool
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13742 $as_echo "pre-installed" >&6; }
13743 fi
13744 fi
13745
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13747 $as_echo_n "checking where to find the target gccgo... " >&6; }
13748 if test "x${build}" != "x${host}" ; then
13749 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13750 # We already found the complete path
13751 ac_dir=`dirname $GOC_FOR_TARGET`
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13753 $as_echo "pre-installed in $ac_dir" >&6; }
13754 else
13755 # Canadian cross, just use what we found
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13757 $as_echo "pre-installed" >&6; }
13758 fi
13759 else
13760 ok=yes
13761 case " ${configdirs} " in
13762 *" gcc "*) ;;
13763 *) ok=no ;;
13764 esac
13765 case ,${enable_languages}, in
13766 *,go,*) ;;
13767 *) ok=no ;;
13768 esac
13769 if test $ok = yes; then
13770 # An in-tree tool is available and we can use it
13771 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13773 $as_echo "just compiled" >&6; }
13774 elif 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 elif test "x$target" = "x$host"; then
13780 # We can use an host tool
13781 GOC_FOR_TARGET='$(GOC)'
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13783 $as_echo "host tool" >&6; }
13784 else
13785 # We need a cross tool
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13787 $as_echo "pre-installed" >&6; }
13788 fi
13789 fi
13790
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13792 $as_echo_n "checking where to find the target ld... " >&6; }
13793 if test "x${build}" != "x${host}" ; then
13794 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13795 # We already found the complete path
13796 ac_dir=`dirname $LD_FOR_TARGET`
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13798 $as_echo "pre-installed in $ac_dir" >&6; }
13799 else
13800 # Canadian cross, just use what we found
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802 $as_echo "pre-installed" >&6; }
13803 fi
13804 else
13805 ok=yes
13806 case " ${configdirs} " in
13807 *" ld "*) ;;
13808 *) ok=no ;;
13809 esac
13810
13811 if test $ok = yes; then
13812 # An in-tree tool is available and we can use it
13813 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13815 $as_echo "just compiled" >&6; }
13816 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13817 # We already found the complete path
13818 ac_dir=`dirname $LD_FOR_TARGET`
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13820 $as_echo "pre-installed in $ac_dir" >&6; }
13821 elif test "x$target" = "x$host"; then
13822 # We can use an host tool
13823 LD_FOR_TARGET='$(LD)'
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13825 $as_echo "host tool" >&6; }
13826 else
13827 # We need a cross tool
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13829 $as_echo "pre-installed" >&6; }
13830 fi
13831 fi
13832
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13834 $as_echo_n "checking where to find the target lipo... " >&6; }
13835 if test "x${build}" != "x${host}" ; then
13836 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13837 # We already found the complete path
13838 ac_dir=`dirname $LIPO_FOR_TARGET`
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13840 $as_echo "pre-installed in $ac_dir" >&6; }
13841 else
13842 # Canadian cross, just use what we found
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13844 $as_echo "pre-installed" >&6; }
13845 fi
13846 else
13847 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13848 # We already found the complete path
13849 ac_dir=`dirname $LIPO_FOR_TARGET`
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13851 $as_echo "pre-installed in $ac_dir" >&6; }
13852 elif test "x$target" = "x$host"; then
13853 # We can use an host tool
13854 LIPO_FOR_TARGET='$(LIPO)'
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13856 $as_echo "host tool" >&6; }
13857 else
13858 # We need a cross tool
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13860 $as_echo "pre-installed" >&6; }
13861 fi
13862 fi
13863
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13865 $as_echo_n "checking where to find the target nm... " >&6; }
13866 if test "x${build}" != "x${host}" ; then
13867 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13868 # We already found the complete path
13869 ac_dir=`dirname $NM_FOR_TARGET`
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13871 $as_echo "pre-installed in $ac_dir" >&6; }
13872 else
13873 # Canadian cross, just use what we found
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13875 $as_echo "pre-installed" >&6; }
13876 fi
13877 else
13878 ok=yes
13879 case " ${configdirs} " in
13880 *" binutils "*) ;;
13881 *) ok=no ;;
13882 esac
13883
13884 if test $ok = yes; then
13885 # An in-tree tool is available and we can use it
13886 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13888 $as_echo "just compiled" >&6; }
13889 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13890 # We already found the complete path
13891 ac_dir=`dirname $NM_FOR_TARGET`
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13893 $as_echo "pre-installed in $ac_dir" >&6; }
13894 elif test "x$target" = "x$host"; then
13895 # We can use an host tool
13896 NM_FOR_TARGET='$(NM)'
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13898 $as_echo "host tool" >&6; }
13899 else
13900 # We need a cross tool
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13902 $as_echo "pre-installed" >&6; }
13903 fi
13904 fi
13905
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13907 $as_echo_n "checking where to find the target objdump... " >&6; }
13908 if test "x${build}" != "x${host}" ; then
13909 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13910 # We already found the complete path
13911 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13913 $as_echo "pre-installed in $ac_dir" >&6; }
13914 else
13915 # Canadian cross, just use what we found
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13917 $as_echo "pre-installed" >&6; }
13918 fi
13919 else
13920 ok=yes
13921 case " ${configdirs} " in
13922 *" binutils "*) ;;
13923 *) ok=no ;;
13924 esac
13925
13926 if test $ok = yes; then
13927 # An in-tree tool is available and we can use it
13928 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13930 $as_echo "just compiled" >&6; }
13931 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13932 # We already found the complete path
13933 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13935 $as_echo "pre-installed in $ac_dir" >&6; }
13936 elif test "x$target" = "x$host"; then
13937 # We can use an host tool
13938 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13940 $as_echo "host tool" >&6; }
13941 else
13942 # We need a cross tool
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13944 $as_echo "pre-installed" >&6; }
13945 fi
13946 fi
13947
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13949 $as_echo_n "checking where to find the target ranlib... " >&6; }
13950 if test "x${build}" != "x${host}" ; then
13951 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13952 # We already found the complete path
13953 ac_dir=`dirname $RANLIB_FOR_TARGET`
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13955 $as_echo "pre-installed in $ac_dir" >&6; }
13956 else
13957 # Canadian cross, just use what we found
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13959 $as_echo "pre-installed" >&6; }
13960 fi
13961 else
13962 ok=yes
13963 case " ${configdirs} " in
13964 *" binutils "*) ;;
13965 *) ok=no ;;
13966 esac
13967
13968 if test $ok = yes; then
13969 # An in-tree tool is available and we can use it
13970 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13972 $as_echo "just compiled" >&6; }
13973 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13974 # We already found the complete path
13975 ac_dir=`dirname $RANLIB_FOR_TARGET`
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13977 $as_echo "pre-installed in $ac_dir" >&6; }
13978 elif test "x$target" = "x$host"; then
13979 # We can use an host tool
13980 RANLIB_FOR_TARGET='$(RANLIB)'
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13982 $as_echo "host tool" >&6; }
13983 else
13984 # We need a cross tool
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13986 $as_echo "pre-installed" >&6; }
13987 fi
13988 fi
13989
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
13991 $as_echo_n "checking where to find the target readelf... " >&6; }
13992 if test "x${build}" != "x${host}" ; then
13993 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
13994 # We already found the complete path
13995 ac_dir=`dirname $READELF_FOR_TARGET`
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13997 $as_echo "pre-installed in $ac_dir" >&6; }
13998 else
13999 # Canadian cross, just use what we found
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14001 $as_echo "pre-installed" >&6; }
14002 fi
14003 else
14004 ok=yes
14005 case " ${configdirs} " in
14006 *" binutils "*) ;;
14007 *) ok=no ;;
14008 esac
14009
14010 if test $ok = yes; then
14011 # An in-tree tool is available and we can use it
14012 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14014 $as_echo "just compiled" >&6; }
14015 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14016 # We already found the complete path
14017 ac_dir=`dirname $READELF_FOR_TARGET`
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14019 $as_echo "pre-installed in $ac_dir" >&6; }
14020 elif test "x$target" = "x$host"; then
14021 # We can use an host tool
14022 READELF_FOR_TARGET='$(READELF)'
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14024 $as_echo "host tool" >&6; }
14025 else
14026 # We need a cross tool
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14028 $as_echo "pre-installed" >&6; }
14029 fi
14030 fi
14031
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14033 $as_echo_n "checking where to find the target strip... " >&6; }
14034 if test "x${build}" != "x${host}" ; then
14035 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14036 # We already found the complete path
14037 ac_dir=`dirname $STRIP_FOR_TARGET`
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14039 $as_echo "pre-installed in $ac_dir" >&6; }
14040 else
14041 # Canadian cross, just use what we found
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14043 $as_echo "pre-installed" >&6; }
14044 fi
14045 else
14046 ok=yes
14047 case " ${configdirs} " in
14048 *" binutils "*) ;;
14049 *) ok=no ;;
14050 esac
14051
14052 if test $ok = yes; then
14053 # An in-tree tool is available and we can use it
14054 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14056 $as_echo "just compiled" >&6; }
14057 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14058 # We already found the complete path
14059 ac_dir=`dirname $STRIP_FOR_TARGET`
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14061 $as_echo "pre-installed in $ac_dir" >&6; }
14062 elif test "x$target" = "x$host"; then
14063 # We can use an host tool
14064 STRIP_FOR_TARGET='$(STRIP)'
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14066 $as_echo "host tool" >&6; }
14067 else
14068 # We need a cross tool
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14070 $as_echo "pre-installed" >&6; }
14071 fi
14072 fi
14073
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14075 $as_echo_n "checking where to find the target windres... " >&6; }
14076 if test "x${build}" != "x${host}" ; then
14077 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14078 # We already found the complete path
14079 ac_dir=`dirname $WINDRES_FOR_TARGET`
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081 $as_echo "pre-installed in $ac_dir" >&6; }
14082 else
14083 # Canadian cross, just use what we found
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14085 $as_echo "pre-installed" >&6; }
14086 fi
14087 else
14088 ok=yes
14089 case " ${configdirs} " in
14090 *" binutils "*) ;;
14091 *) ok=no ;;
14092 esac
14093
14094 if test $ok = yes; then
14095 # An in-tree tool is available and we can use it
14096 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14098 $as_echo "just compiled" >&6; }
14099 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14100 # We already found the complete path
14101 ac_dir=`dirname $WINDRES_FOR_TARGET`
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14103 $as_echo "pre-installed in $ac_dir" >&6; }
14104 elif test "x$target" = "x$host"; then
14105 # We can use an host tool
14106 WINDRES_FOR_TARGET='$(WINDRES)'
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14108 $as_echo "host tool" >&6; }
14109 else
14110 # We need a cross tool
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14112 $as_echo "pre-installed" >&6; }
14113 fi
14114 fi
14115
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14117 $as_echo_n "checking where to find the target windmc... " >&6; }
14118 if test "x${build}" != "x${host}" ; then
14119 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
14121 ac_dir=`dirname $WINDMC_FOR_TARGET`
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123 $as_echo "pre-installed in $ac_dir" >&6; }
14124 else
14125 # Canadian cross, just use what we found
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14127 $as_echo "pre-installed" >&6; }
14128 fi
14129 else
14130 ok=yes
14131 case " ${configdirs} " in
14132 *" binutils "*) ;;
14133 *) ok=no ;;
14134 esac
14135
14136 if test $ok = yes; then
14137 # An in-tree tool is available and we can use it
14138 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14140 $as_echo "just compiled" >&6; }
14141 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14142 # We already found the complete path
14143 ac_dir=`dirname $WINDMC_FOR_TARGET`
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14145 $as_echo "pre-installed in $ac_dir" >&6; }
14146 elif test "x$target" = "x$host"; then
14147 # We can use an host tool
14148 WINDMC_FOR_TARGET='$(WINDMC)'
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14150 $as_echo "host tool" >&6; }
14151 else
14152 # We need a cross tool
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14154 $as_echo "pre-installed" >&6; }
14155 fi
14156 fi
14157
14158
14159
14160
14161
14162 # Certain tools may need extra flags.
14163 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14164 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14165 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14166
14167 # When building target libraries, except in a Canadian cross, we use
14168 # the same toolchain as the compiler we just built.
14169 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14170 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14171 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14172 if test $host = $build; then
14173 case " $configdirs " in
14174 *" gcc "*)
14175 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14176 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14177 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14178 ;;
14179 esac
14180 fi
14181
14182
14183
14184
14185
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14187 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14188 # Check whether --enable-maintainer-mode was given.
14189 if test "${enable_maintainer_mode+set}" = set; then :
14190 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14191 else
14192 USE_MAINTAINER_MODE=no
14193 fi
14194
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14196 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14197
14198
14199 if test "$USE_MAINTAINER_MODE" = yes; then
14200 MAINTAINER_MODE_TRUE=
14201 MAINTAINER_MODE_FALSE='#'
14202 else
14203 MAINTAINER_MODE_TRUE='#'
14204 MAINTAINER_MODE_FALSE=
14205 fi
14206 MAINT=$MAINTAINER_MODE_TRUE
14207
14208 # ---------------------
14209 # GCC bootstrap support
14210 # ---------------------
14211
14212 # Stage specific cflags for build.
14213 stage1_cflags="-g"
14214 case $build in
14215 vax-*-*)
14216 case ${GCC} in
14217 yes) stage1_cflags="-g -Wa,-J" ;;
14218 *) stage1_cflags="-g -J" ;;
14219 esac ;;
14220 esac
14221
14222 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14223 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14224 saved_CFLAGS="$CFLAGS"
14225
14226 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14227 CFLAGS="$CFLAGS -fkeep-inline-functions"
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14229 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14232
14233 #if (__GNUC__ < 3) \
14234 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14235 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14236 #error http://gcc.gnu.org/PR29382
14237 #endif
14238
14239 int
14240 main ()
14241 {
14242
14243 ;
14244 return 0;
14245 }
14246 _ACEOF
14247 if ac_fn_c_try_compile "$LINENO"; then :
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14250 else
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14252 $as_echo "no" >&6; }
14253 fi
14254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255
14256 CFLAGS="$saved_CFLAGS"
14257 fi
14258
14259
14260
14261 # Enable --enable-checking in stage1 of the compiler.
14262 # Check whether --enable-stage1-checking was given.
14263 if test "${enable_stage1_checking+set}" = set; then :
14264 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14265 else
14266 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14267 stage1_checking=--enable-checking=yes,types
14268 else
14269 stage1_checking=--enable-checking=$enable_checking,types
14270 fi
14271 fi
14272
14273
14274
14275 # Enable -Werror in bootstrap stage2 and later.
14276 # Check whether --enable-werror was given.
14277 if test "${enable_werror+set}" = set; then :
14278 enableval=$enable_werror;
14279 else
14280 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14281 enable_werror=yes
14282 else
14283 enable_werror=no
14284 fi
14285 fi
14286
14287 case ${enable_werror} in
14288 yes) stage2_werror_flag="--enable-werror-always" ;;
14289 *) stage2_werror_flag="" ;;
14290 esac
14291
14292
14293 # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14294 # --enable-build-with-cxx after stage1.
14295 if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14296 POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14297 else
14298 POSTSTAGE1_CONFIGURE_FLAGS=
14299 fi
14300
14301
14302 # Specify what files to not compare during bootstrap.
14303
14304 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14305 case "$target" in
14306 hppa*64*-*-hpux*) ;;
14307 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14308 esac
14309
14310
14311 ac_config_files="$ac_config_files Makefile"
14312
14313 cat >confcache <<\_ACEOF
14314 # This file is a shell script that caches the results of configure
14315 # tests run on this system so they can be shared between configure
14316 # scripts and configure runs, see configure's option --config-cache.
14317 # It is not useful on other systems. If it contains results you don't
14318 # want to keep, you may remove or edit it.
14319 #
14320 # config.status only pays attention to the cache file if you give it
14321 # the --recheck option to rerun configure.
14322 #
14323 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14324 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14325 # following values.
14326
14327 _ACEOF
14328
14329 # The following way of writing the cache mishandles newlines in values,
14330 # but we know of no workaround that is simple, portable, and efficient.
14331 # So, we kill variables containing newlines.
14332 # Ultrix sh set writes to stderr and can't be redirected directly,
14333 # and sets the high bit in the cache file unless we assign to the vars.
14334 (
14335 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14336 eval ac_val=\$$ac_var
14337 case $ac_val in #(
14338 *${as_nl}*)
14339 case $ac_var in #(
14340 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14341 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14342 esac
14343 case $ac_var in #(
14344 _ | IFS | as_nl) ;; #(
14345 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14346 *) { eval $ac_var=; unset $ac_var;} ;;
14347 esac ;;
14348 esac
14349 done
14350
14351 (set) 2>&1 |
14352 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14353 *${as_nl}ac_space=\ *)
14354 # `set' does not quote correctly, so add quotes: double-quote
14355 # substitution turns \\\\ into \\, and sed turns \\ into \.
14356 sed -n \
14357 "s/'/'\\\\''/g;
14358 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14359 ;; #(
14360 *)
14361 # `set' quotes correctly as required by POSIX, so do not add quotes.
14362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14363 ;;
14364 esac |
14365 sort
14366 ) |
14367 sed '
14368 /^ac_cv_env_/b end
14369 t clear
14370 :clear
14371 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14372 t end
14373 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14374 :end' >>confcache
14375 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14376 if test -w "$cache_file"; then
14377 test "x$cache_file" != "x/dev/null" &&
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14379 $as_echo "$as_me: updating cache $cache_file" >&6;}
14380 cat confcache >$cache_file
14381 else
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14383 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14384 fi
14385 fi
14386 rm -f confcache
14387
14388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14389 # Let make expand exec_prefix.
14390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14391
14392 # Transform confdefs.h into DEFS.
14393 # Protect against shell expansion while executing Makefile rules.
14394 # Protect against Makefile macro expansion.
14395 #
14396 # If the first sed substitution is executed (which looks for macros that
14397 # take arguments), then branch to the quote section. Otherwise,
14398 # look for a macro that doesn't take arguments.
14399 ac_script='
14400 :mline
14401 /\\$/{
14402 N
14403 s,\\\n,,
14404 b mline
14405 }
14406 t clear
14407 :clear
14408 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14409 t quote
14410 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14411 t quote
14412 b any
14413 :quote
14414 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14415 s/\[/\\&/g
14416 s/\]/\\&/g
14417 s/\$/$$/g
14418 H
14419 :any
14420 ${
14421 g
14422 s/^\n//
14423 s/\n/ /g
14424 p
14425 }
14426 '
14427 DEFS=`sed -n "$ac_script" confdefs.h`
14428
14429
14430 ac_libobjs=
14431 ac_ltlibobjs=
14432 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14433 # 1. Remove the extension, and $U if already installed.
14434 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14435 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14436 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14437 # will be set to the directory where LIBOBJS objects are built.
14438 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14439 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14440 done
14441 LIBOBJS=$ac_libobjs
14442
14443 LTLIBOBJS=$ac_ltlibobjs
14444
14445
14446
14447 : ${CONFIG_STATUS=./config.status}
14448 ac_write_fail=0
14449 ac_clean_files_save=$ac_clean_files
14450 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14452 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14453 as_write_fail=0
14454 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14455 #! $SHELL
14456 # Generated by $as_me.
14457 # Run this file to recreate the current configuration.
14458 # Compiler output produced by configure, useful for debugging
14459 # configure, is in config.log if it exists.
14460
14461 debug=false
14462 ac_cs_recheck=false
14463 ac_cs_silent=false
14464
14465 SHELL=\${CONFIG_SHELL-$SHELL}
14466 export SHELL
14467 _ASEOF
14468 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14469 ## -------------------- ##
14470 ## M4sh Initialization. ##
14471 ## -------------------- ##
14472
14473 # Be more Bourne compatible
14474 DUALCASE=1; export DUALCASE # for MKS sh
14475 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14476 emulate sh
14477 NULLCMD=:
14478 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14479 # is contrary to our usage. Disable this feature.
14480 alias -g '${1+"$@"}'='"$@"'
14481 setopt NO_GLOB_SUBST
14482 else
14483 case `(set -o) 2>/dev/null` in #(
14484 *posix*) :
14485 set -o posix ;; #(
14486 *) :
14487 ;;
14488 esac
14489 fi
14490
14491
14492 as_nl='
14493 '
14494 export as_nl
14495 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14496 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14497 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14498 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14499 # Prefer a ksh shell builtin over an external printf program on Solaris,
14500 # but without wasting forks for bash or zsh.
14501 if test -z "$BASH_VERSION$ZSH_VERSION" \
14502 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14503 as_echo='print -r --'
14504 as_echo_n='print -rn --'
14505 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14506 as_echo='printf %s\n'
14507 as_echo_n='printf %s'
14508 else
14509 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14510 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14511 as_echo_n='/usr/ucb/echo -n'
14512 else
14513 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14514 as_echo_n_body='eval
14515 arg=$1;
14516 case $arg in #(
14517 *"$as_nl"*)
14518 expr "X$arg" : "X\\(.*\\)$as_nl";
14519 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14520 esac;
14521 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14522 '
14523 export as_echo_n_body
14524 as_echo_n='sh -c $as_echo_n_body as_echo'
14525 fi
14526 export as_echo_body
14527 as_echo='sh -c $as_echo_body as_echo'
14528 fi
14529
14530 # The user is always right.
14531 if test "${PATH_SEPARATOR+set}" != set; then
14532 PATH_SEPARATOR=:
14533 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14534 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14535 PATH_SEPARATOR=';'
14536 }
14537 fi
14538
14539
14540 # IFS
14541 # We need space, tab and new line, in precisely that order. Quoting is
14542 # there to prevent editors from complaining about space-tab.
14543 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14544 # splitting by setting IFS to empty value.)
14545 IFS=" "" $as_nl"
14546
14547 # Find who we are. Look in the path if we contain no directory separator.
14548 case $0 in #((
14549 *[\\/]* ) as_myself=$0 ;;
14550 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14551 for as_dir in $PATH
14552 do
14553 IFS=$as_save_IFS
14554 test -z "$as_dir" && as_dir=.
14555 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14556 done
14557 IFS=$as_save_IFS
14558
14559 ;;
14560 esac
14561 # We did not find ourselves, most probably we were run as `sh COMMAND'
14562 # in which case we are not to be found in the path.
14563 if test "x$as_myself" = x; then
14564 as_myself=$0
14565 fi
14566 if test ! -f "$as_myself"; then
14567 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14568 exit 1
14569 fi
14570
14571 # Unset variables that we do not need and which cause bugs (e.g. in
14572 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14573 # suppresses any "Segmentation fault" message there. '((' could
14574 # trigger a bug in pdksh 5.2.14.
14575 for as_var in BASH_ENV ENV MAIL MAILPATH
14576 do eval test x\${$as_var+set} = xset \
14577 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14578 done
14579 PS1='$ '
14580 PS2='> '
14581 PS4='+ '
14582
14583 # NLS nuisances.
14584 LC_ALL=C
14585 export LC_ALL
14586 LANGUAGE=C
14587 export LANGUAGE
14588
14589 # CDPATH.
14590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14591
14592
14593 # as_fn_error ERROR [LINENO LOG_FD]
14594 # ---------------------------------
14595 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14596 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14597 # script with status $?, using 1 if that was 0.
14598 as_fn_error ()
14599 {
14600 as_status=$?; test $as_status -eq 0 && as_status=1
14601 if test "$3"; then
14602 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14603 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14604 fi
14605 $as_echo "$as_me: error: $1" >&2
14606 as_fn_exit $as_status
14607 } # as_fn_error
14608
14609
14610 # as_fn_set_status STATUS
14611 # -----------------------
14612 # Set $? to STATUS, without forking.
14613 as_fn_set_status ()
14614 {
14615 return $1
14616 } # as_fn_set_status
14617
14618 # as_fn_exit STATUS
14619 # -----------------
14620 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14621 as_fn_exit ()
14622 {
14623 set +e
14624 as_fn_set_status $1
14625 exit $1
14626 } # as_fn_exit
14627
14628 # as_fn_unset VAR
14629 # ---------------
14630 # Portably unset VAR.
14631 as_fn_unset ()
14632 {
14633 { eval $1=; unset $1;}
14634 }
14635 as_unset=as_fn_unset
14636 # as_fn_append VAR VALUE
14637 # ----------------------
14638 # Append the text in VALUE to the end of the definition contained in VAR. Take
14639 # advantage of any shell optimizations that allow amortized linear growth over
14640 # repeated appends, instead of the typical quadratic growth present in naive
14641 # implementations.
14642 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14643 eval 'as_fn_append ()
14644 {
14645 eval $1+=\$2
14646 }'
14647 else
14648 as_fn_append ()
14649 {
14650 eval $1=\$$1\$2
14651 }
14652 fi # as_fn_append
14653
14654 # as_fn_arith ARG...
14655 # ------------------
14656 # Perform arithmetic evaluation on the ARGs, and store the result in the
14657 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14658 # must be portable across $(()) and expr.
14659 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14660 eval 'as_fn_arith ()
14661 {
14662 as_val=$(( $* ))
14663 }'
14664 else
14665 as_fn_arith ()
14666 {
14667 as_val=`expr "$@" || test $? -eq 1`
14668 }
14669 fi # as_fn_arith
14670
14671
14672 if expr a : '\(a\)' >/dev/null 2>&1 &&
14673 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14674 as_expr=expr
14675 else
14676 as_expr=false
14677 fi
14678
14679 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14680 as_basename=basename
14681 else
14682 as_basename=false
14683 fi
14684
14685 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14686 as_dirname=dirname
14687 else
14688 as_dirname=false
14689 fi
14690
14691 as_me=`$as_basename -- "$0" ||
14692 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14693 X"$0" : 'X\(//\)$' \| \
14694 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14695 $as_echo X/"$0" |
14696 sed '/^.*\/\([^/][^/]*\)\/*$/{
14697 s//\1/
14698 q
14699 }
14700 /^X\/\(\/\/\)$/{
14701 s//\1/
14702 q
14703 }
14704 /^X\/\(\/\).*/{
14705 s//\1/
14706 q
14707 }
14708 s/.*/./; q'`
14709
14710 # Avoid depending upon Character Ranges.
14711 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14712 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14713 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14714 as_cr_digits='0123456789'
14715 as_cr_alnum=$as_cr_Letters$as_cr_digits
14716
14717 ECHO_C= ECHO_N= ECHO_T=
14718 case `echo -n x` in #(((((
14719 -n*)
14720 case `echo 'xy\c'` in
14721 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14722 xy) ECHO_C='\c';;
14723 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14724 ECHO_T=' ';;
14725 esac;;
14726 *)
14727 ECHO_N='-n';;
14728 esac
14729
14730 rm -f conf$$ conf$$.exe conf$$.file
14731 if test -d conf$$.dir; then
14732 rm -f conf$$.dir/conf$$.file
14733 else
14734 rm -f conf$$.dir
14735 mkdir conf$$.dir 2>/dev/null
14736 fi
14737 if (echo >conf$$.file) 2>/dev/null; then
14738 if ln -s conf$$.file conf$$ 2>/dev/null; then
14739 as_ln_s='ln -s'
14740 # ... but there are two gotchas:
14741 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14742 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14743 # In both cases, we have to default to `cp -p'.
14744 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14745 as_ln_s='cp -p'
14746 elif ln conf$$.file conf$$ 2>/dev/null; then
14747 as_ln_s=ln
14748 else
14749 as_ln_s='cp -p'
14750 fi
14751 else
14752 as_ln_s='cp -p'
14753 fi
14754 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14755 rmdir conf$$.dir 2>/dev/null
14756
14757
14758 # as_fn_mkdir_p
14759 # -------------
14760 # Create "$as_dir" as a directory, including parents if necessary.
14761 as_fn_mkdir_p ()
14762 {
14763
14764 case $as_dir in #(
14765 -*) as_dir=./$as_dir;;
14766 esac
14767 test -d "$as_dir" || eval $as_mkdir_p || {
14768 as_dirs=
14769 while :; do
14770 case $as_dir in #(
14771 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14772 *) as_qdir=$as_dir;;
14773 esac
14774 as_dirs="'$as_qdir' $as_dirs"
14775 as_dir=`$as_dirname -- "$as_dir" ||
14776 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14777 X"$as_dir" : 'X\(//\)[^/]' \| \
14778 X"$as_dir" : 'X\(//\)$' \| \
14779 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14780 $as_echo X"$as_dir" |
14781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14782 s//\1/
14783 q
14784 }
14785 /^X\(\/\/\)[^/].*/{
14786 s//\1/
14787 q
14788 }
14789 /^X\(\/\/\)$/{
14790 s//\1/
14791 q
14792 }
14793 /^X\(\/\).*/{
14794 s//\1/
14795 q
14796 }
14797 s/.*/./; q'`
14798 test -d "$as_dir" && break
14799 done
14800 test -z "$as_dirs" || eval "mkdir $as_dirs"
14801 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14802
14803
14804 } # as_fn_mkdir_p
14805 if mkdir -p . 2>/dev/null; then
14806 as_mkdir_p='mkdir -p "$as_dir"'
14807 else
14808 test -d ./-p && rmdir ./-p
14809 as_mkdir_p=false
14810 fi
14811
14812 if test -x / >/dev/null 2>&1; then
14813 as_test_x='test -x'
14814 else
14815 if ls -dL / >/dev/null 2>&1; then
14816 as_ls_L_option=L
14817 else
14818 as_ls_L_option=
14819 fi
14820 as_test_x='
14821 eval sh -c '\''
14822 if test -d "$1"; then
14823 test -d "$1/.";
14824 else
14825 case $1 in #(
14826 -*)set "./$1";;
14827 esac;
14828 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14829 ???[sx]*):;;*)false;;esac;fi
14830 '\'' sh
14831 '
14832 fi
14833 as_executable_p=$as_test_x
14834
14835 # Sed expression to map a string onto a valid CPP name.
14836 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14837
14838 # Sed expression to map a string onto a valid variable name.
14839 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14840
14841
14842 exec 6>&1
14843 ## ----------------------------------- ##
14844 ## Main body of $CONFIG_STATUS script. ##
14845 ## ----------------------------------- ##
14846 _ASEOF
14847 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14848
14849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14850 # Save the log message, to keep $0 and so on meaningful, and to
14851 # report actual input values of CONFIG_FILES etc. instead of their
14852 # values after options handling.
14853 ac_log="
14854 This file was extended by $as_me, which was
14855 generated by GNU Autoconf 2.64. Invocation command line was
14856
14857 CONFIG_FILES = $CONFIG_FILES
14858 CONFIG_HEADERS = $CONFIG_HEADERS
14859 CONFIG_LINKS = $CONFIG_LINKS
14860 CONFIG_COMMANDS = $CONFIG_COMMANDS
14861 $ $0 $@
14862
14863 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14864 "
14865
14866 _ACEOF
14867
14868 case $ac_config_files in *"
14869 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14870 esac
14871
14872
14873
14874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14875 # Files that config.status was made for.
14876 config_files="$ac_config_files"
14877
14878 _ACEOF
14879
14880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14881 ac_cs_usage="\
14882 \`$as_me' instantiates files and other configuration actions
14883 from templates according to the current configuration. Unless the files
14884 and actions are specified as TAGs, all are instantiated by default.
14885
14886 Usage: $0 [OPTION]... [TAG]...
14887
14888 -h, --help print this help, then exit
14889 -V, --version print version number and configuration settings, then exit
14890 -q, --quiet, --silent
14891 do not print progress messages
14892 -d, --debug don't remove temporary files
14893 --recheck update $as_me by reconfiguring in the same conditions
14894 --file=FILE[:TEMPLATE]
14895 instantiate the configuration file FILE
14896
14897 Configuration files:
14898 $config_files
14899
14900 Report bugs to the package provider."
14901
14902 _ACEOF
14903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14904 ac_cs_version="\\
14905 config.status
14906 configured by $0, generated by GNU Autoconf 2.64,
14907 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14908
14909 Copyright (C) 2009 Free Software Foundation, Inc.
14910 This config.status script is free software; the Free Software Foundation
14911 gives unlimited permission to copy, distribute and modify it."
14912
14913 ac_pwd='$ac_pwd'
14914 srcdir='$srcdir'
14915 INSTALL='$INSTALL'
14916 AWK='$AWK'
14917 test -n "\$AWK" || AWK=awk
14918 _ACEOF
14919
14920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14921 # The default lists apply if the user does not specify any file.
14922 ac_need_defaults=:
14923 while test $# != 0
14924 do
14925 case $1 in
14926 --*=*)
14927 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14928 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14929 ac_shift=:
14930 ;;
14931 *)
14932 ac_option=$1
14933 ac_optarg=$2
14934 ac_shift=shift
14935 ;;
14936 esac
14937
14938 case $ac_option in
14939 # Handling of the options.
14940 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14941 ac_cs_recheck=: ;;
14942 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14943 $as_echo "$ac_cs_version"; exit ;;
14944 --debug | --debu | --deb | --de | --d | -d )
14945 debug=: ;;
14946 --file | --fil | --fi | --f )
14947 $ac_shift
14948 case $ac_optarg in
14949 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14950 esac
14951 as_fn_append CONFIG_FILES " '$ac_optarg'"
14952 ac_need_defaults=false;;
14953 --he | --h | --help | --hel | -h )
14954 $as_echo "$ac_cs_usage"; exit ;;
14955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14956 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14957 ac_cs_silent=: ;;
14958
14959 # This is an error.
14960 -*) as_fn_error "unrecognized option: \`$1'
14961 Try \`$0 --help' for more information." ;;
14962
14963 *) as_fn_append ac_config_targets " $1"
14964 ac_need_defaults=false ;;
14965
14966 esac
14967 shift
14968 done
14969
14970 ac_configure_extra_args=
14971
14972 if $ac_cs_silent; then
14973 exec 6>/dev/null
14974 ac_configure_extra_args="$ac_configure_extra_args --silent"
14975 fi
14976
14977 _ACEOF
14978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14979 if \$ac_cs_recheck; then
14980 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14981 shift
14982 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14983 CONFIG_SHELL='$SHELL'
14984 export CONFIG_SHELL
14985 exec "\$@"
14986 fi
14987
14988 _ACEOF
14989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14990 exec 5>>config.log
14991 {
14992 echo
14993 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14994 ## Running $as_me. ##
14995 _ASBOX
14996 $as_echo "$ac_log"
14997 } >&5
14998
14999 _ACEOF
15000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15001 #
15002 # INIT-COMMANDS
15003 #
15004 extrasub_build="$extrasub_build"
15005 extrasub_host="$extrasub_host"
15006 extrasub_target="$extrasub_target"
15007
15008 _ACEOF
15009
15010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15011
15012 # Handling of arguments.
15013 for ac_config_target in $ac_config_targets
15014 do
15015 case $ac_config_target in
15016 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15017
15018 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15019 esac
15020 done
15021
15022
15023 # If the user did not use the arguments to specify the items to instantiate,
15024 # then the envvar interface is used. Set only those that are not.
15025 # We use the long form for the default assignment because of an extremely
15026 # bizarre bug on SunOS 4.1.3.
15027 if $ac_need_defaults; then
15028 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15029 fi
15030
15031 # Have a temporary directory for convenience. Make it in the build tree
15032 # simply because there is no reason against having it here, and in addition,
15033 # creating and moving files from /tmp can sometimes cause problems.
15034 # Hook for its removal unless debugging.
15035 # Note that there is a small window in which the directory will not be cleaned:
15036 # after its creation but before its name has been assigned to `$tmp'.
15037 $debug ||
15038 {
15039 tmp=
15040 trap 'exit_status=$?
15041 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15042 ' 0
15043 trap 'as_fn_exit 1' 1 2 13 15
15044 }
15045 # Create a (secure) tmp directory for tmp files.
15046
15047 {
15048 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15049 test -n "$tmp" && test -d "$tmp"
15050 } ||
15051 {
15052 tmp=./conf$$-$RANDOM
15053 (umask 077 && mkdir "$tmp")
15054 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15055
15056 # Set up the scripts for CONFIG_FILES section.
15057 # No need to generate them if there are no CONFIG_FILES.
15058 # This happens for instance with `./config.status config.h'.
15059 if test -n "$CONFIG_FILES"; then
15060
15061 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15062 ac_cs_awk_getline=:
15063 ac_cs_awk_pipe_init=
15064 ac_cs_awk_read_file='
15065 while ((getline aline < (F[key])) > 0)
15066 print(aline)
15067 close(F[key])'
15068 ac_cs_awk_pipe_fini=
15069 else
15070 ac_cs_awk_getline=false
15071 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15072 ac_cs_awk_read_file='
15073 print "|#_!!_#|"
15074 print "cat " F[key] " &&"
15075 '$ac_cs_awk_pipe_init
15076 # The final `:' finishes the AND list.
15077 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15078 fi
15079 ac_cr=`echo X | tr X '\015'`
15080 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15081 # But we know of no other shell where ac_cr would be empty at this
15082 # point, so we can use a bashism as a fallback.
15083 if test "x$ac_cr" = x; then
15084 eval ac_cr=\$\'\\r\'
15085 fi
15086 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15087 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15088 ac_cs_awk_cr='\r'
15089 else
15090 ac_cs_awk_cr=$ac_cr
15091 fi
15092
15093 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15094 _ACEOF
15095
15096 # Create commands to substitute file output variables.
15097 {
15098 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15099 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15100 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15101 echo "_ACAWK" &&
15102 echo "_ACEOF"
15103 } >conf$$files.sh &&
15104 . ./conf$$files.sh ||
15105 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15106 rm -f conf$$files.sh
15107
15108 {
15109 echo "cat >conf$$subs.awk <<_ACEOF" &&
15110 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15111 echo "_ACEOF"
15112 } >conf$$subs.sh ||
15113 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15114 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15115 ac_delim='%!_!# '
15116 for ac_last_try in false false false false false :; do
15117 . ./conf$$subs.sh ||
15118 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15119
15120 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15121 if test $ac_delim_n = $ac_delim_num; then
15122 break
15123 elif $ac_last_try; then
15124 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15125 else
15126 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15127 fi
15128 done
15129 rm -f conf$$subs.sh
15130
15131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15132 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15133 _ACEOF
15134 sed -n '
15135 h
15136 s/^/S["/; s/!.*/"]=/
15137 p
15138 g
15139 s/^[^!]*!//
15140 :repl
15141 t repl
15142 s/'"$ac_delim"'$//
15143 t delim
15144 :nl
15145 h
15146 s/\(.\{148\}\).*/\1/
15147 t more1
15148 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15149 p
15150 n
15151 b repl
15152 :more1
15153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15154 p
15155 g
15156 s/.\{148\}//
15157 t nl
15158 :delim
15159 h
15160 s/\(.\{148\}\).*/\1/
15161 t more2
15162 s/["\\]/\\&/g; s/^/"/; s/$/"/
15163 p
15164 b
15165 :more2
15166 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15167 p
15168 g
15169 s/.\{148\}//
15170 t delim
15171 ' <conf$$subs.awk | sed '
15172 /^[^""]/{
15173 N
15174 s/\n//
15175 }
15176 ' >>$CONFIG_STATUS || ac_write_fail=1
15177 rm -f conf$$subs.awk
15178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15179 _ACAWK
15180 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15181 for (key in S) S_is_set[key] = 1
15182 FS = "\a"
15183 \$ac_cs_awk_pipe_init
15184 }
15185 {
15186 line = $ 0
15187 nfields = split(line, field, "@")
15188 substed = 0
15189 len = length(field[1])
15190 for (i = 2; i < nfields; i++) {
15191 key = field[i]
15192 keylen = length(key)
15193 if (S_is_set[key]) {
15194 value = S[key]
15195 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15196 len += length(value) + length(field[++i])
15197 substed = 1
15198 } else
15199 len += 1 + keylen
15200 }
15201 if (nfields == 3 && !substed) {
15202 key = field[2]
15203 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15204 \$ac_cs_awk_read_file
15205 next
15206 }
15207 }
15208 print line
15209 }
15210 \$ac_cs_awk_pipe_fini
15211 _ACAWK
15212 _ACEOF
15213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15214 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15215 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15216 else
15217 cat
15218 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15219 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15220 _ACEOF
15221
15222 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15223 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15224 # trailing colons and then remove the whole line if VPATH becomes empty
15225 # (actually we leave an empty line to preserve line numbers).
15226 if test "x$srcdir" = x.; then
15227 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15228 s/:*\$(srcdir):*/:/
15229 s/:*\${srcdir}:*/:/
15230 s/:*@srcdir@:*/:/
15231 s/^\([^=]*=[ ]*\):*/\1/
15232 s/:*$//
15233 s/^[^=]*=[ ]*$//
15234 }'
15235 fi
15236
15237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15238 fi # test -n "$CONFIG_FILES"
15239
15240
15241 eval set X " :F $CONFIG_FILES "
15242 shift
15243 for ac_tag
15244 do
15245 case $ac_tag in
15246 :[FHLC]) ac_mode=$ac_tag; continue;;
15247 esac
15248 case $ac_mode$ac_tag in
15249 :[FHL]*:*);;
15250 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15251 :[FH]-) ac_tag=-:-;;
15252 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15253 esac
15254 ac_save_IFS=$IFS
15255 IFS=:
15256 set x $ac_tag
15257 IFS=$ac_save_IFS
15258 shift
15259 ac_file=$1
15260 shift
15261
15262 case $ac_mode in
15263 :L) ac_source=$1;;
15264 :[FH])
15265 ac_file_inputs=
15266 for ac_f
15267 do
15268 case $ac_f in
15269 -) ac_f="$tmp/stdin";;
15270 *) # Look for the file first in the build tree, then in the source tree
15271 # (if the path is not absolute). The absolute path cannot be DOS-style,
15272 # because $ac_f cannot contain `:'.
15273 test -f "$ac_f" ||
15274 case $ac_f in
15275 [\\/$]*) false;;
15276 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15277 esac ||
15278 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15279 esac
15280 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15281 as_fn_append ac_file_inputs " '$ac_f'"
15282 done
15283
15284 # Let's still pretend it is `configure' which instantiates (i.e., don't
15285 # use $as_me), people would be surprised to read:
15286 # /* config.h. Generated by config.status. */
15287 configure_input='Generated from '`
15288 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15289 `' by configure.'
15290 if test x"$ac_file" != x-; then
15291 configure_input="$ac_file. $configure_input"
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15293 $as_echo "$as_me: creating $ac_file" >&6;}
15294 fi
15295 # Neutralize special characters interpreted by sed in replacement strings.
15296 case $configure_input in #(
15297 *\&* | *\|* | *\\* )
15298 ac_sed_conf_input=`$as_echo "$configure_input" |
15299 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15300 *) ac_sed_conf_input=$configure_input;;
15301 esac
15302
15303 case $ac_tag in
15304 *:-:* | *:-) cat >"$tmp/stdin" \
15305 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15306 esac
15307 ;;
15308 esac
15309
15310 ac_dir=`$as_dirname -- "$ac_file" ||
15311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15312 X"$ac_file" : 'X\(//\)[^/]' \| \
15313 X"$ac_file" : 'X\(//\)$' \| \
15314 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15315 $as_echo X"$ac_file" |
15316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15317 s//\1/
15318 q
15319 }
15320 /^X\(\/\/\)[^/].*/{
15321 s//\1/
15322 q
15323 }
15324 /^X\(\/\/\)$/{
15325 s//\1/
15326 q
15327 }
15328 /^X\(\/\).*/{
15329 s//\1/
15330 q
15331 }
15332 s/.*/./; q'`
15333 as_dir="$ac_dir"; as_fn_mkdir_p
15334 ac_builddir=.
15335
15336 case "$ac_dir" in
15337 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15338 *)
15339 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15340 # A ".." for each directory in $ac_dir_suffix.
15341 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15342 case $ac_top_builddir_sub in
15343 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15344 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15345 esac ;;
15346 esac
15347 ac_abs_top_builddir=$ac_pwd
15348 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15349 # for backward compatibility:
15350 ac_top_builddir=$ac_top_build_prefix
15351
15352 case $srcdir in
15353 .) # We are building in place.
15354 ac_srcdir=.
15355 ac_top_srcdir=$ac_top_builddir_sub
15356 ac_abs_top_srcdir=$ac_pwd ;;
15357 [\\/]* | ?:[\\/]* ) # Absolute name.
15358 ac_srcdir=$srcdir$ac_dir_suffix;
15359 ac_top_srcdir=$srcdir
15360 ac_abs_top_srcdir=$srcdir ;;
15361 *) # Relative name.
15362 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15363 ac_top_srcdir=$ac_top_build_prefix$srcdir
15364 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15365 esac
15366 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15367
15368
15369 case $ac_mode in
15370 :F)
15371 #
15372 # CONFIG_FILE
15373 #
15374
15375 case $INSTALL in
15376 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15377 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15378 esac
15379 _ACEOF
15380
15381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15382 # If the template does not know about datarootdir, expand it.
15383 # FIXME: This hack should be removed a few years after 2.60.
15384 ac_datarootdir_hack=; ac_datarootdir_seen=
15385 ac_sed_dataroot='
15386 /datarootdir/ {
15387 p
15388 q
15389 }
15390 /@datadir@/p
15391 /@docdir@/p
15392 /@infodir@/p
15393 /@localedir@/p
15394 /@mandir@/p'
15395 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15396 *datarootdir*) ac_datarootdir_seen=yes;;
15397 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15399 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15400 _ACEOF
15401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15402 ac_datarootdir_hack='
15403 s&@datadir@&$datadir&g
15404 s&@docdir@&$docdir&g
15405 s&@infodir@&$infodir&g
15406 s&@localedir@&$localedir&g
15407 s&@mandir@&$mandir&g
15408 s&\\\${datarootdir}&$datarootdir&g' ;;
15409 esac
15410 _ACEOF
15411
15412 # Neutralize VPATH when `$srcdir' = `.'.
15413 # Shell code in configure.ac might set extrasub.
15414 # FIXME: do we really want to maintain this feature?
15415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15416 ac_sed_extra="$ac_vpsub
15417 $extrasub
15418 _ACEOF
15419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15420 :t
15421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15422 s|@configure_input@|$ac_sed_conf_input|;t t
15423 s&@top_builddir@&$ac_top_builddir_sub&;t t
15424 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15425 s&@srcdir@&$ac_srcdir&;t t
15426 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15427 s&@top_srcdir@&$ac_top_srcdir&;t t
15428 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15429 s&@builddir@&$ac_builddir&;t t
15430 s&@abs_builddir@&$ac_abs_builddir&;t t
15431 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15432 s&@INSTALL@&$ac_INSTALL&;t t
15433 $ac_datarootdir_hack
15434 "
15435 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15436 if $ac_cs_awk_getline; then
15437 $AWK -f "$tmp/subs.awk"
15438 else
15439 $AWK -f "$tmp/subs.awk" | $SHELL
15440 fi >$tmp/out \
15441 || as_fn_error "could not create $ac_file" "$LINENO" 5
15442
15443 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15444 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15445 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15447 which seems to be undefined. Please make sure it is defined." >&5
15448 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15449 which seems to be undefined. Please make sure it is defined." >&2;}
15450
15451 rm -f "$tmp/stdin"
15452 case $ac_file in
15453 -) cat "$tmp/out" && rm -f "$tmp/out";;
15454 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15455 esac \
15456 || as_fn_error "could not create $ac_file" "$LINENO" 5
15457 ;;
15458
15459
15460
15461 esac
15462
15463
15464 case $ac_file$ac_mode in
15465 "Makefile":F) sed "$extrasub_build" Makefile |
15466 sed "$extrasub_host" |
15467 sed "$extrasub_target" > mf$$
15468 mv -f mf$$ Makefile ;;
15469
15470 esac
15471 done # for ac_tag
15472
15473
15474 as_fn_exit 0
15475 _ACEOF
15476 ac_clean_files=$ac_clean_files_save
15477
15478 test $ac_write_fail = 0 ||
15479 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15480
15481
15482 # configure is writing to config.log, and then calls config.status.
15483 # config.status does its own redirection, appending to config.log.
15484 # Unfortunately, on DOS this fails, as config.log is still kept open
15485 # by configure, so config.status won't be able to write to it; its
15486 # output is simply discarded. So we exec the FD to /dev/null,
15487 # effectively closing config.log, so it can be properly (re)opened and
15488 # appended to by config.status. When coming back to configure, we
15489 # need to make the FD available again.
15490 if test "$no_create" != yes; then
15491 ac_cs_success=:
15492 ac_config_status_args=
15493 test "$silent" = yes &&
15494 ac_config_status_args="$ac_config_status_args --quiet"
15495 exec 5>/dev/null
15496 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15497 exec 5>>config.log
15498 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15499 # would make configure fail if this is the last instruction.
15500 $ac_cs_success || as_fn_exit $?
15501 fi
15502 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15504 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15505 fi
15506