]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
configure.ac (--with-build-config): New.
[thirdparty/gcc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 RANLIB_FOR_TARGET
574 OBJDUMP_FOR_TARGET
575 NM_FOR_TARGET
576 LIPO_FOR_TARGET
577 LD_FOR_TARGET
578 DLLTOOL_FOR_TARGET
579 AS_FOR_TARGET
580 AR_FOR_TARGET
581 GFORTRAN_FOR_TARGET
582 GCJ_FOR_TARGET
583 GCC_FOR_TARGET
584 CXX_FOR_TARGET
585 CC_FOR_TARGET
586 OBJDUMP
587 OBJCOPY
588 WINDMC
589 WINDRES
590 STRIP
591 RANLIB
592 NM
593 LIPO
594 LD
595 DLLTOOL
596 AS
597 AR
598 RUNTEST
599 EXPECT
600 MAKEINFO
601 FLEX
602 LEX
603 M4
604 BISON
605 YACC
606 config_shell
607 WINDRES_FOR_BUILD
608 WINDMC_FOR_BUILD
609 RANLIB_FOR_BUILD
610 NM_FOR_BUILD
611 LD_FOR_BUILD
612 LDFLAGS_FOR_BUILD
613 GFORTRAN_FOR_BUILD
614 GCJ_FOR_BUILD
615 DLLTOOL_FOR_BUILD
616 CXX_FOR_BUILD
617 CXXFLAGS_FOR_BUILD
618 CFLAGS_FOR_BUILD
619 CC_FOR_BUILD
620 AS_FOR_BUILD
621 AR_FOR_BUILD
622 target_configargs
623 configdirs
624 host_configargs
625 build_configdirs
626 build_configargs
627 INSTALL_GDB_TK
628 GDB_TK
629 CONFIGURE_GDB_TK
630 build_tooldir
631 tooldir
632 GCC_SHLIB_SUBDIR
633 RPATH_ENVVAR
634 BUILD_CONFIG
635 CXXFLAGS_FOR_TARGET
636 CFLAGS_FOR_TARGET
637 DEBUG_PREFIX_CFLAGS_FOR_TARGET
638 SYSROOT_CFLAGS_FOR_TARGET
639 stage1_languages
640 clooginc
641 clooglibs
642 pplinc
643 ppllibs
644 poststage1_libs
645 poststage1_ldflags
646 stage1_libs
647 stage1_ldflags
648 extra_mpc_mpfr_configure_flags
649 extra_mpc_gmp_configure_flags
650 extra_mpfr_configure_flags
651 gmpinc
652 gmplibs
653 do_compare
654 GNATMAKE
655 GNATBIND
656 ac_ct_CXX
657 CXXFLAGS
658 CXX
659 OBJEXT
660 EXEEXT
661 ac_ct_CC
662 CPPFLAGS
663 LDFLAGS
664 CFLAGS
665 CC
666 target_subdir
667 host_subdir
668 build_subdir
669 build_libsubdir
670 AWK
671 SED
672 LN_S
673 LN
674 INSTALL_DATA
675 INSTALL_SCRIPT
676 INSTALL_PROGRAM
677 target_os
678 target_vendor
679 target_cpu
680 target
681 host_os
682 host_vendor
683 host_cpu
684 host
685 target_noncanonical
686 host_noncanonical
687 build_noncanonical
688 build_os
689 build_vendor
690 build_cpu
691 build
692 TOPLEVEL_CONFIGURE_ARGUMENTS
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_URL
724 PACKAGE_BUGREPORT
725 PACKAGE_STRING
726 PACKAGE_VERSION
727 PACKAGE_TARNAME
728 PACKAGE_NAME
729 PATH_SEPARATOR
730 SHELL'
731 ac_subst_files='serialization_dependencies
732 host_makefile_frag
733 target_makefile_frag
734 alphaieee_frag
735 ospace_frag'
736 ac_user_opts='
737 enable_option_checking
738 with_build_libsubdir
739 enable_gold
740 enable_libada
741 enable_libssp
742 enable_build_with_cxx
743 with_mpc
744 with_mpc_include
745 with_mpc_lib
746 with_mpfr_dir
747 with_mpfr
748 with_mpfr_include
749 with_mpfr_lib
750 with_gmp_dir
751 with_gmp
752 with_gmp_include
753 with_gmp_lib
754 with_host_libstdcxx
755 with_stage1_ldflags
756 with_stage1_libs
757 with_boot_ldflags
758 with_boot_libs
759 with_ppl
760 with_ppl_include
761 with_ppl_lib
762 enable_ppl_version_check
763 with_cloog
764 with_cloog_include
765 with_cloog_lib
766 enable_cloog_version_check
767 enable_stage1_languages
768 enable_objc_gc
769 with_build_sysroot
770 with_debug_prefix_map
771 enable_bootstrap
772 enable_serial_configure
773 with_build_time_tools
774 enable_maintainer_mode
775 enable_stage1_checking
776 enable_werror
777 '
778 ac_precious_vars='build_alias
779 host_alias
780 target_alias
781 CC
782 CFLAGS
783 LDFLAGS
784 LIBS
785 CPPFLAGS
786 CXX
787 CXXFLAGS
788 CCC
789 AR
790 AS
791 DLLTOOL
792 LD
793 LIPO
794 NM
795 RANLIB
796 STRIP
797 WINDRES
798 WINDMC
799 OBJCOPY
800 OBJDUMP
801 CC_FOR_TARGET
802 CXX_FOR_TARGET
803 GCC_FOR_TARGET
804 GCJ_FOR_TARGET
805 GFORTRAN_FOR_TARGET
806 AR_FOR_TARGET
807 AS_FOR_TARGET
808 DLLTOOL_FOR_TARGET
809 LD_FOR_TARGET
810 LIPO_FOR_TARGET
811 NM_FOR_TARGET
812 OBJDUMP_FOR_TARGET
813 RANLIB_FOR_TARGET
814 STRIP_FOR_TARGET
815 WINDRES_FOR_TARGET
816 WINDMC_FOR_TARGET'
817
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
876 fi
877
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
913
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
946
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
982
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
987
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1017
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1091
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1166
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1200
1201 -*) as_fn_error "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information."
1203 ;;
1204
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1214
1215 *)
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1221 ;;
1222
1223 esac
1224 done
1225
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error "missing argument to $ac_option"
1229 fi
1230
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1237 fi
1238
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1244 do
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1259
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1266
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1272 If a cross compiler is detected then cross compile mode will be used." >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1274 cross_compiling=yes
1275 fi
1276 fi
1277
1278 ac_tool_prefix=
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281 test "$silent" = yes && exec 6>/dev/null
1282
1283
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error "pwd does not report name of working directory"
1290
1291
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)[^/].*/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\).*/{
1315 s//\1/
1316 q
1317 }
1318 s/.*/./; q'`
1319 srcdir=$ac_confdir
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 srcdir=..
1322 fi
1323 else
1324 ac_srcdir_defaulted=no
1325 fi
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1329 fi
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 ac_abs_confdir=`(
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1333 pwd)`
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1337 fi
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1341 case $srcdir in
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 esac
1344 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1345
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures this package to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1414
1415 cat <<\_ACEOF
1416
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 --target=TARGET configure for building compilers for TARGET [HOST]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430
1431 cat <<\_ACEOF
1432
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-gold use gold instead of ld
1438 --enable-libada build libada directory
1439 --enable-libssp build libssp directory
1440 --enable-build-with-cxx build with C++ compiler instead of C compiler
1441 --disable-ppl-version-check disable check for PPL version
1442 --disable-cloog-version-check disable check for CLooG version
1443 --enable-stage1-languages[=all] choose additional languages to build during
1444 stage1. Mostly useful for compiler development.
1445 --enable-objc-gc enable use of Boehm's garbage collector with the
1446 GNU Objective-C runtime
1447 --enable-bootstrap enable bootstrapping [yes if native build]
1448 --enable-serial-[{host,target,build}-]configure
1449 force sequential configuration of
1450 sub-packages for the host, target or build
1451 machine, or all sub-packages
1452 --enable-maintainer-mode enable make rules and dependencies not useful
1453 (and sometimes confusing) to the casual installer
1454 --enable-stage1-checking[=all] choose additional checking for stage1
1455 of the compiler
1456 --enable-werror enable -Werror in bootstrap stage2 and later
1457
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-build-libsubdir=DIR Directory where to find libraries for build system
1462 --with-mpc=PATH specify prefix directory for installed MPC package.
1463 Equivalent to --with-mpc-include=PATH/include
1464 plus --with-mpc-lib=PATH/lib
1465 --with-mpc-include=PATH
1466 specify directory for installed MPC include files
1467 --with-mpc-lib=PATH specify directory for the installed MPC library
1468 --with-mpfr-dir=PATH this option has been REMOVED
1469 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1470 Equivalent to --with-mpfr-include=PATH/include
1471 plus --with-mpfr-lib=PATH/lib
1472 --with-mpfr-include=PATH
1473 specify directory for installed MPFR include files
1474 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1475 --with-gmp-dir=PATH this option has been REMOVED
1476 --with-gmp=PATH specify prefix directory for the installed GMP package.
1477 Equivalent to --with-gmp-include=PATH/include
1478 plus --with-gmp-lib=PATH/lib
1479 --with-gmp-include=PATH specify directory for installed GMP include files
1480 --with-gmp-lib=PATH specify directory for the installed GMP library
1481 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1482 when linking with PPL
1483 --with-stage1-ldflags=FLAGS Linker flags for stage1
1484 -with-stage1-libs=LIBS Libraries for stage1
1485 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1486 --with-boot-libs=LIBS Libraries for stage2 and later
1487 --with-ppl=PATH Specify prefix directory for the installed PPL package
1488 Equivalent to --with-ppl-include=PATH/include
1489 plus --with-ppl-lib=PATH/lib
1490 --with-ppl-include=PATH Specify directory for installed PPL include files
1491 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1492 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1493 Equivalent to --with-cloog-include=PATH/include
1494 plus --with-cloog-lib=PATH/lib
1495 --with-cloog-include=PATH Specify directory for installed CLooG include files
1496 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
1497 --with-build-sysroot=SYSROOT
1498 use sysroot as the system root during the build
1499 --with-debug-prefix-map='A=B C=D ...'
1500 map A to B, C to D ... in debug information
1501 --with-build-time-tools=PATH
1502 use given path to find target tools during the build
1503
1504 Some influential environment variables:
1505 CC C compiler command
1506 CFLAGS C compiler flags
1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1508 nonstandard directory <lib dir>
1509 LIBS libraries to pass to the linker, e.g. -l<library>
1510 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511 you have headers in a nonstandard directory <include dir>
1512 CXX C++ compiler command
1513 CXXFLAGS C++ compiler flags
1514 AR AR for the host
1515 AS AS for the host
1516 DLLTOOL DLLTOOL for the host
1517 LD LD for the host
1518 LIPO LIPO for the host
1519 NM NM for the host
1520 RANLIB RANLIB for the host
1521 STRIP STRIP for the host
1522 WINDRES WINDRES for the host
1523 WINDMC WINDMC for the host
1524 OBJCOPY OBJCOPY for the host
1525 OBJDUMP OBJDUMP for the host
1526 CC_FOR_TARGET
1527 CC for the target
1528 CXX_FOR_TARGET
1529 CXX for the target
1530 GCC_FOR_TARGET
1531 GCC for the target
1532 GCJ_FOR_TARGET
1533 GCJ for the target
1534 GFORTRAN_FOR_TARGET
1535 GFORTRAN for the target
1536 AR_FOR_TARGET
1537 AR for the target
1538 AS_FOR_TARGET
1539 AS for the target
1540 DLLTOOL_FOR_TARGET
1541 DLLTOOL for the target
1542 LD_FOR_TARGET
1543 LD for the target
1544 LIPO_FOR_TARGET
1545 LIPO for the target
1546 NM_FOR_TARGET
1547 NM for the target
1548 OBJDUMP_FOR_TARGET
1549 OBJDUMP for the target
1550 RANLIB_FOR_TARGET
1551 RANLIB for the target
1552 STRIP_FOR_TARGET
1553 STRIP for the target
1554 WINDRES_FOR_TARGET
1555 WINDRES for the target
1556 WINDMC_FOR_TARGET
1557 WINDMC for the target
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to the package provider.
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572 continue
1573 ac_builddir=.
1574
1575 case "$ac_dir" in
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *)
1578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 esac ;;
1585 esac
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1590
1591 case $srcdir in
1592 .) # We are building in place.
1593 ac_srcdir=.
1594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
1597 ac_srcdir=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1600 *) # Relative name.
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 esac
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606
1607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for guested configure.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1613 echo &&
1614 $SHELL "$ac_srcdir/configure" --help=recursive
1615 else
1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617 fi || ac_status=$?
1618 cd "$ac_pwd" || { ac_status=$?; break; }
1619 done
1620 fi
1621
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1624 cat <<\_ACEOF
1625 configure
1626 generated by GNU Autoconf 2.64
1627
1628 Copyright (C) 2009 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1631 _ACEOF
1632 exit
1633 fi
1634
1635 ## ------------------------ ##
1636 ## Autoconf initialization. ##
1637 ## ------------------------ ##
1638
1639 # ac_fn_c_try_compile LINENO
1640 # --------------------------
1641 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_compile ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 rm -f conftest.$ac_objext
1646 if { { ac_try="$ac_compile"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_compile") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && {
1662 test -z "$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 } && test -s conftest.$ac_objext; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671 fi
1672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673 return $ac_retval
1674
1675 } # ac_fn_c_try_compile
1676
1677 # ac_fn_cxx_try_compile LINENO
1678 # ----------------------------
1679 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_cxx_try_compile ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext
1684 if { { ac_try="$ac_compile"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_compile") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_cxx_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest.$ac_objext; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709 fi
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 return $ac_retval
1712
1713 } # ac_fn_cxx_try_compile
1714
1715 # ac_fn_c_try_link LINENO
1716 # -----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_link ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext conftest$ac_exeext
1722 if { { ac_try="$ac_link"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1735 fi
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest$ac_exeext && {
1741 test "$cross_compiling" = yes ||
1742 $as_test_x conftest$ac_exeext
1743 }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750 fi
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753 # interfere with the next link command; also delete a directory that is
1754 # left behind by Apple's compiler. We do this before executing the actions.
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 return $ac_retval
1758
1759 } # ac_fn_c_try_link
1760 cat >config.log <<_ACEOF
1761 This file contains any messages produced by compilers while
1762 running configure, to aid debugging if configure makes a mistake.
1763
1764 It was created by $as_me, which was
1765 generated by GNU Autoconf 2.64. Invocation command line was
1766
1767 $ $0 $@
1768
1769 _ACEOF
1770 exec 5>>config.log
1771 {
1772 cat <<_ASUNAME
1773 ## --------- ##
1774 ## Platform. ##
1775 ## --------- ##
1776
1777 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1778 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1779 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1780 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1781 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1782
1783 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1784 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1785
1786 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1787 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1788 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1789 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1790 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1791 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1792 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1793
1794 _ASUNAME
1795
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1798 do
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 $as_echo "PATH: $as_dir"
1802 done
1803 IFS=$as_save_IFS
1804
1805 } >&5
1806
1807 cat >&5 <<_ACEOF
1808
1809
1810 ## ----------- ##
1811 ## Core tests. ##
1812 ## ----------- ##
1813
1814 _ACEOF
1815
1816
1817 # Keep a trace of the command line.
1818 # Strip out --no-create and --no-recursion so they do not pile up.
1819 # Strip out --silent because we don't want to record it for future runs.
1820 # Also quote any args containing shell meta-characters.
1821 # Make two passes to allow for proper duplicate-argument suppression.
1822 ac_configure_args=
1823 ac_configure_args0=
1824 ac_configure_args1=
1825 ac_must_keep_next=false
1826 for ac_pass in 1 2
1827 do
1828 for ac_arg
1829 do
1830 case $ac_arg in
1831 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1833 | -silent | --silent | --silen | --sile | --sil)
1834 continue ;;
1835 *\'*)
1836 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1837 esac
1838 case $ac_pass in
1839 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1840 2)
1841 as_fn_append ac_configure_args1 " '$ac_arg'"
1842 if test $ac_must_keep_next = true; then
1843 ac_must_keep_next=false # Got value, back to normal.
1844 else
1845 case $ac_arg in
1846 *=* | --config-cache | -C | -disable-* | --disable-* \
1847 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1848 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1849 | -with-* | --with-* | -without-* | --without-* | --x)
1850 case "$ac_configure_args0 " in
1851 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1852 esac
1853 ;;
1854 -* ) ac_must_keep_next=true ;;
1855 esac
1856 fi
1857 as_fn_append ac_configure_args " '$ac_arg'"
1858 ;;
1859 esac
1860 done
1861 done
1862 { ac_configure_args0=; unset ac_configure_args0;}
1863 { ac_configure_args1=; unset ac_configure_args1;}
1864
1865 # When interrupted or exit'd, cleanup temporary files, and complete
1866 # config.log. We remove comments because anyway the quotes in there
1867 # would cause problems or look ugly.
1868 # WARNING: Use '\'' to represent an apostrophe within the trap.
1869 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1870 trap 'exit_status=$?
1871 # Save into config.log some information that might help in debugging.
1872 {
1873 echo
1874
1875 cat <<\_ASBOX
1876 ## ---------------- ##
1877 ## Cache variables. ##
1878 ## ---------------- ##
1879 _ASBOX
1880 echo
1881 # The following way of writing the cache mishandles newlines in values,
1882 (
1883 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1884 eval ac_val=\$$ac_var
1885 case $ac_val in #(
1886 *${as_nl}*)
1887 case $ac_var in #(
1888 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1889 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1890 esac
1891 case $ac_var in #(
1892 _ | IFS | as_nl) ;; #(
1893 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1894 *) { eval $ac_var=; unset $ac_var;} ;;
1895 esac ;;
1896 esac
1897 done
1898 (set) 2>&1 |
1899 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1900 *${as_nl}ac_space=\ *)
1901 sed -n \
1902 "s/'\''/'\''\\\\'\'''\''/g;
1903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1904 ;; #(
1905 *)
1906 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1907 ;;
1908 esac |
1909 sort
1910 )
1911 echo
1912
1913 cat <<\_ASBOX
1914 ## ----------------- ##
1915 ## Output variables. ##
1916 ## ----------------- ##
1917 _ASBOX
1918 echo
1919 for ac_var in $ac_subst_vars
1920 do
1921 eval ac_val=\$$ac_var
1922 case $ac_val in
1923 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1924 esac
1925 $as_echo "$ac_var='\''$ac_val'\''"
1926 done | sort
1927 echo
1928
1929 if test -n "$ac_subst_files"; then
1930 cat <<\_ASBOX
1931 ## ------------------- ##
1932 ## File substitutions. ##
1933 ## ------------------- ##
1934 _ASBOX
1935 echo
1936 for ac_var in $ac_subst_files
1937 do
1938 eval ac_val=\$$ac_var
1939 case $ac_val in
1940 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1941 esac
1942 $as_echo "$ac_var='\''$ac_val'\''"
1943 done | sort
1944 echo
1945 fi
1946
1947 if test -s confdefs.h; then
1948 cat <<\_ASBOX
1949 ## ----------- ##
1950 ## confdefs.h. ##
1951 ## ----------- ##
1952 _ASBOX
1953 echo
1954 cat confdefs.h
1955 echo
1956 fi
1957 test "$ac_signal" != 0 &&
1958 $as_echo "$as_me: caught signal $ac_signal"
1959 $as_echo "$as_me: exit $exit_status"
1960 } >&5
1961 rm -f core *.core core.conftest.* &&
1962 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1963 exit $exit_status
1964 ' 0
1965 for ac_signal in 1 2 13 15; do
1966 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1967 done
1968 ac_signal=0
1969
1970 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1971 rm -f -r conftest* confdefs.h
1972
1973 $as_echo "/* confdefs.h */" > confdefs.h
1974
1975 # Predefined preprocessor variables.
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_NAME "$PACKAGE_NAME"
1979 _ACEOF
1980
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1983 _ACEOF
1984
1985 cat >>confdefs.h <<_ACEOF
1986 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1987 _ACEOF
1988
1989 cat >>confdefs.h <<_ACEOF
1990 #define PACKAGE_STRING "$PACKAGE_STRING"
1991 _ACEOF
1992
1993 cat >>confdefs.h <<_ACEOF
1994 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1995 _ACEOF
1996
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_URL "$PACKAGE_URL"
1999 _ACEOF
2000
2001
2002 # Let the site file select an alternate cache file if it wants to.
2003 # Prefer an explicitly selected file to automatically selected ones.
2004 ac_site_file1=NONE
2005 ac_site_file2=NONE
2006 if test -n "$CONFIG_SITE"; then
2007 ac_site_file1=$CONFIG_SITE
2008 elif test "x$prefix" != xNONE; then
2009 ac_site_file1=$prefix/share/config.site
2010 ac_site_file2=$prefix/etc/config.site
2011 else
2012 ac_site_file1=$ac_default_prefix/share/config.site
2013 ac_site_file2=$ac_default_prefix/etc/config.site
2014 fi
2015 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2016 do
2017 test "x$ac_site_file" = xNONE && continue
2018 if test -r "$ac_site_file"; then
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2020 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2021 sed 's/^/| /' "$ac_site_file" >&5
2022 . "$ac_site_file"
2023 fi
2024 done
2025
2026 if test -r "$cache_file"; then
2027 # Some versions of bash will fail to source /dev/null (special
2028 # files actually), so we avoid doing that.
2029 if test -f "$cache_file"; then
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2031 $as_echo "$as_me: loading cache $cache_file" >&6;}
2032 case $cache_file in
2033 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2034 *) . "./$cache_file";;
2035 esac
2036 fi
2037 else
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2039 $as_echo "$as_me: creating cache $cache_file" >&6;}
2040 >$cache_file
2041 fi
2042
2043 # Check that the precious variables saved in the cache have kept the same
2044 # value.
2045 ac_cache_corrupted=false
2046 for ac_var in $ac_precious_vars; do
2047 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2048 eval ac_new_set=\$ac_env_${ac_var}_set
2049 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2050 eval ac_new_val=\$ac_env_${ac_var}_value
2051 case $ac_old_set,$ac_new_set in
2052 set,)
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2054 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2055 ac_cache_corrupted=: ;;
2056 ,set)
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2058 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2059 ac_cache_corrupted=: ;;
2060 ,);;
2061 *)
2062 if test "x$ac_old_val" != "x$ac_new_val"; then
2063 # differences in whitespace do not lead to failure.
2064 ac_old_val_w=`echo x $ac_old_val`
2065 ac_new_val_w=`echo x $ac_new_val`
2066 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2068 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2069 ac_cache_corrupted=:
2070 else
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2072 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2073 eval $ac_var=\$ac_old_val
2074 fi
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2076 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2078 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2079 fi;;
2080 esac
2081 # Pass precious variables to config.status.
2082 if test "$ac_new_set" = set; then
2083 case $ac_new_val in
2084 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2085 *) ac_arg=$ac_var=$ac_new_val ;;
2086 esac
2087 case " $ac_configure_args " in
2088 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2089 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2090 esac
2091 fi
2092 done
2093 if $ac_cache_corrupted; then
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2097 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2098 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2099 fi
2100 ## -------------------- ##
2101 ## Main body of script. ##
2102 ## -------------------- ##
2103
2104 ac_ext=c
2105 ac_cpp='$CPP $CPPFLAGS'
2106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118 progname=$0
2119 # if PWD already has a value, it is probably wrong.
2120 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2121
2122 # Export original configure arguments for use by sub-configures.
2123 # Quote arguments with shell meta charatcers.
2124 TOPLEVEL_CONFIGURE_ARGUMENTS=
2125 set -- "$progname" "$@"
2126 for ac_arg
2127 do
2128 case "$ac_arg" in
2129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2130 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2131 # if the argument is of the form -foo=baz, quote the baz part only
2132 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2133 *) ;;
2134 esac
2135 # Add the quoted argument to the list.
2136 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2137 done
2138 if test "$silent" = yes; then
2139 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2140 fi
2141 # Remove the initial space we just introduced and, as these will be
2142 # expanded by make, quote '$'.
2143 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2144
2145
2146 # Find the build, host, and target systems.
2147 ac_aux_dir=
2148 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2149 for ac_t in install-sh install.sh shtool; do
2150 if test -f "$ac_dir/$ac_t"; then
2151 ac_aux_dir=$ac_dir
2152 ac_install_sh="$ac_aux_dir/$ac_t -c"
2153 break 2
2154 fi
2155 done
2156 done
2157 if test -z "$ac_aux_dir"; then
2158 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2159 fi
2160
2161 # These three variables are undocumented and unsupported,
2162 # and are intended to be withdrawn in a future Autoconf release.
2163 # They can cause serious problems if a builder's source tree is in a directory
2164 # whose full name contains unusual characters.
2165 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2166 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2167 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2168
2169
2170 # Make sure we can run config.sub.
2171 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2172 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2173
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2175 $as_echo_n "checking build system type... " >&6; }
2176 if test "${ac_cv_build+set}" = set; then :
2177 $as_echo_n "(cached) " >&6
2178 else
2179 ac_build_alias=$build_alias
2180 test "x$ac_build_alias" = x &&
2181 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2182 test "x$ac_build_alias" = x &&
2183 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2184 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2185 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2186
2187 fi
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2189 $as_echo "$ac_cv_build" >&6; }
2190 case $ac_cv_build in
2191 *-*-*) ;;
2192 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2193 esac
2194 build=$ac_cv_build
2195 ac_save_IFS=$IFS; IFS='-'
2196 set x $ac_cv_build
2197 shift
2198 build_cpu=$1
2199 build_vendor=$2
2200 shift; shift
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2203 build_os=$*
2204 IFS=$ac_save_IFS
2205 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2206
2207
2208 case ${build_alias} in
2209 "") build_noncanonical=${build} ;;
2210 *) build_noncanonical=${build_alias} ;;
2211 esac
2212
2213
2214
2215 case ${host_alias} in
2216 "") host_noncanonical=${build_noncanonical} ;;
2217 *) host_noncanonical=${host_alias} ;;
2218 esac
2219
2220
2221
2222 case ${target_alias} in
2223 "") target_noncanonical=${host_noncanonical} ;;
2224 *) target_noncanonical=${target_alias} ;;
2225 esac
2226
2227
2228
2229
2230 test "$host_noncanonical" = "$target_noncanonical" &&
2231 test "$program_prefix$program_suffix$program_transform_name" = \
2232 NONENONEs,x,x, &&
2233 program_transform_name=s,y,y,
2234
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2236 $as_echo_n "checking host system type... " >&6; }
2237 if test "${ac_cv_host+set}" = set; then :
2238 $as_echo_n "(cached) " >&6
2239 else
2240 if test "x$host_alias" = x; then
2241 ac_cv_host=$ac_cv_build
2242 else
2243 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2244 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2245 fi
2246
2247 fi
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2249 $as_echo "$ac_cv_host" >&6; }
2250 case $ac_cv_host in
2251 *-*-*) ;;
2252 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2253 esac
2254 host=$ac_cv_host
2255 ac_save_IFS=$IFS; IFS='-'
2256 set x $ac_cv_host
2257 shift
2258 host_cpu=$1
2259 host_vendor=$2
2260 shift; shift
2261 # Remember, the first character of IFS is used to create $*,
2262 # except with old shells:
2263 host_os=$*
2264 IFS=$ac_save_IFS
2265 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2266
2267
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2269 $as_echo_n "checking target system type... " >&6; }
2270 if test "${ac_cv_target+set}" = set; then :
2271 $as_echo_n "(cached) " >&6
2272 else
2273 if test "x$target_alias" = x; then
2274 ac_cv_target=$ac_cv_host
2275 else
2276 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2277 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2278 fi
2279
2280 fi
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2282 $as_echo "$ac_cv_target" >&6; }
2283 case $ac_cv_target in
2284 *-*-*) ;;
2285 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2286 esac
2287 target=$ac_cv_target
2288 ac_save_IFS=$IFS; IFS='-'
2289 set x $ac_cv_target
2290 shift
2291 target_cpu=$1
2292 target_vendor=$2
2293 shift; shift
2294 # Remember, the first character of IFS is used to create $*,
2295 # except with old shells:
2296 target_os=$*
2297 IFS=$ac_save_IFS
2298 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2299
2300
2301 # The aliases save the names the user supplied, while $host etc.
2302 # will get canonicalized.
2303 test -n "$target_alias" &&
2304 test "$program_prefix$program_suffix$program_transform_name" = \
2305 NONENONEs,x,x, &&
2306 program_prefix=${target_alias}-
2307
2308 test "$program_prefix" != NONE &&
2309 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2310 # Use a double $ so make ignores it.
2311 test "$program_suffix" != NONE &&
2312 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2313 # Double any \ or $.
2314 # By default was `s,x,x', remove it if useless.
2315 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2316 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2317
2318
2319
2320 # Get 'install' or 'install-sh' and its variants.
2321 # Find a good install program. We prefer a C program (faster),
2322 # so one script is as good as another. But avoid the broken or
2323 # incompatible versions:
2324 # SysV /etc/install, /usr/sbin/install
2325 # SunOS /usr/etc/install
2326 # IRIX /sbin/install
2327 # AIX /bin/install
2328 # AmigaOS /C/install, which installs bootblocks on floppy discs
2329 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2330 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2331 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2332 # OS/2's system install, which has a completely different semantic
2333 # ./install, which can be erroneously created by make from ./install.sh.
2334 # Reject install programs that cannot install multiple files.
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2336 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2337 if test -z "$INSTALL"; then
2338 if test "${ac_cv_path_install+set}" = set; then :
2339 $as_echo_n "(cached) " >&6
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 # Account for people who put trailing slashes in PATH elements.
2347 case $as_dir/ in #((
2348 ./ | .// | /[cC]/* | \
2349 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2350 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2351 /usr/ucb/* ) ;;
2352 *)
2353 # OSF1 and SCO ODT 3.0 have their own names for install.
2354 # Don't use installbsd from OSF since it installs stuff as root
2355 # by default.
2356 for ac_prog in ginstall scoinst install; do
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2359 if test $ac_prog = install &&
2360 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361 # AIX install. It has an incompatible calling convention.
2362 :
2363 elif test $ac_prog = install &&
2364 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365 # program-specific install script used by HP pwplus--don't use.
2366 :
2367 else
2368 rm -rf conftest.one conftest.two conftest.dir
2369 echo one > conftest.one
2370 echo two > conftest.two
2371 mkdir conftest.dir
2372 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2373 test -s conftest.one && test -s conftest.two &&
2374 test -s conftest.dir/conftest.one &&
2375 test -s conftest.dir/conftest.two
2376 then
2377 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2378 break 3
2379 fi
2380 fi
2381 fi
2382 done
2383 done
2384 ;;
2385 esac
2386
2387 done
2388 IFS=$as_save_IFS
2389
2390 rm -rf conftest.one conftest.two conftest.dir
2391
2392 fi
2393 if test "${ac_cv_path_install+set}" = set; then
2394 INSTALL=$ac_cv_path_install
2395 else
2396 # As a last resort, use the slow shell script. Don't cache a
2397 # value for INSTALL within a source directory, because that will
2398 # break other packages using the cache if that directory is
2399 # removed, or if the value is a relative name.
2400 INSTALL=$ac_install_sh
2401 fi
2402 fi
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2404 $as_echo "$INSTALL" >&6; }
2405
2406 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2407 # It thinks the first close brace ends the variable substitution.
2408 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2409
2410 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2411
2412 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2413
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2415 $as_echo_n "checking whether ln works... " >&6; }
2416 if test "${acx_cv_prog_LN+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 rm -f conftestdata_t
2420 echo >conftestdata_f
2421 if ln conftestdata_f conftestdata_t 2>/dev/null
2422 then
2423 acx_cv_prog_LN=ln
2424 else
2425 acx_cv_prog_LN=no
2426 fi
2427 rm -f conftestdata_f conftestdata_t
2428
2429 fi
2430 if test $acx_cv_prog_LN = no; then
2431 LN="cp"
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2433 $as_echo "no, using $LN" >&6; }
2434 else
2435 LN="$acx_cv_prog_LN"
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2437 $as_echo "yes" >&6; }
2438 fi
2439
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2441 $as_echo_n "checking whether ln -s works... " >&6; }
2442 LN_S=$as_ln_s
2443 if test "$LN_S" = "ln -s"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2445 $as_echo "yes" >&6; }
2446 else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2448 $as_echo "no, using $LN_S" >&6; }
2449 fi
2450
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2452 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2453 if test "${ac_cv_path_SED+set}" = set; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2457 for ac_i in 1 2 3 4 5 6 7; do
2458 ac_script="$ac_script$as_nl$ac_script"
2459 done
2460 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2461 { ac_script=; unset ac_script;}
2462 if test -z "$SED"; then
2463 ac_path_SED_found=false
2464 # Loop through the user's path and test for each of PROGNAME-LIST
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_prog in sed gsed; do
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2473 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2474 # Check for GNU ac_path_SED and select it if it is found.
2475 # Check for GNU $ac_path_SED
2476 case `"$ac_path_SED" --version 2>&1` in
2477 *GNU*)
2478 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2479 *)
2480 ac_count=0
2481 $as_echo_n 0123456789 >"conftest.in"
2482 while :
2483 do
2484 cat "conftest.in" "conftest.in" >"conftest.tmp"
2485 mv "conftest.tmp" "conftest.in"
2486 cp "conftest.in" "conftest.nl"
2487 $as_echo '' >> "conftest.nl"
2488 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2490 as_fn_arith $ac_count + 1 && ac_count=$as_val
2491 if test $ac_count -gt ${ac_path_SED_max-0}; then
2492 # Best one so far, save it but keep looking for a better one
2493 ac_cv_path_SED="$ac_path_SED"
2494 ac_path_SED_max=$ac_count
2495 fi
2496 # 10*(2^10) chars as input seems more than enough
2497 test $ac_count -gt 10 && break
2498 done
2499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2500 esac
2501
2502 $ac_path_SED_found && break 3
2503 done
2504 done
2505 done
2506 IFS=$as_save_IFS
2507 if test -z "$ac_cv_path_SED"; then
2508 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2509 fi
2510 else
2511 ac_cv_path_SED=$SED
2512 fi
2513
2514 fi
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2516 $as_echo "$ac_cv_path_SED" >&6; }
2517 SED="$ac_cv_path_SED"
2518 rm -f conftest.sed
2519
2520 for ac_prog in gawk mawk nawk awk
2521 do
2522 # Extract the first word of "$ac_prog", so it can be a program name with args.
2523 set dummy $ac_prog; ac_word=$2
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525 $as_echo_n "checking for $ac_word... " >&6; }
2526 if test "${ac_cv_prog_AWK+set}" = set; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 if test -n "$AWK"; then
2530 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_AWK="$ac_prog"
2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543 done
2544 done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 AWK=$ac_cv_prog_AWK
2550 if test -n "$AWK"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2552 $as_echo "$AWK" >&6; }
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 $as_echo "no" >&6; }
2556 fi
2557
2558
2559 test -n "$AWK" && break
2560 done
2561
2562
2563 ### we might need to use some other shell than /bin/sh for running subshells
2564 ### If we are on Windows, search for the shell. This will permit people
2565 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2566 ### without also having to set CONFIG_SHELL. This code will work when
2567 ### using bash, which sets OSTYPE.
2568 case "${OSTYPE}" in
2569 *win32*)
2570 if test x${CONFIG_SHELL} = x ; then
2571 if test ! -f /bin/sh ; then
2572 if test x${SHELL} != x && test -f ${SHELL} ; then
2573 CONFIG_SHELL=${SHELL}
2574 export CONFIG_SHELL
2575 else
2576 for prog in sh sh.exe bash bash.exe; do
2577 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2578 for dir in $PATH; do
2579 test -z "$dir" && dir=.
2580 if test -f $dir/$prog; then
2581 CONFIG_SHELL=$dir/$prog
2582 export CONFIG_SHELL
2583 break
2584 fi
2585 done
2586 IFS="$save_ifs"
2587 test -n "${CONFIG_SHELL}" && break
2588 done
2589 fi
2590 fi
2591 fi
2592 ;;
2593 esac
2594
2595 config_shell=${CONFIG_SHELL-/bin/sh}
2596
2597 moveifchange=${srcdir}/move-if-change
2598
2599 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2600
2601 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2602 # a relative path.
2603 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2604 INSTALL="${srcpwd}/install-sh -c"
2605 fi
2606
2607 # Set srcdir to "." if that's what it is.
2608 # This is important for multilib support.
2609 pwd=`${PWDCMD-pwd}`
2610 if test "${pwd}" = "${srcpwd}" ; then
2611 srcdir=.
2612 fi
2613
2614 topsrcdir=$srcpwd
2615
2616 extra_host_args=
2617
2618 ### To add a new directory to the tree, first choose whether it is a target
2619 ### or a host dependent tool. Then put it into the appropriate list
2620 ### (library or tools, host or target), doing a dependency sort.
2621
2622 # Subdirs will be configured in the order listed in build_configdirs,
2623 # configdirs, or target_configdirs; see the serialization section below.
2624
2625 # Dependency sorting is only needed when *configuration* must be done in
2626 # a particular order. In all cases a dependency should be specified in
2627 # the Makefile, whether or not it's implicitly specified here.
2628
2629 # Double entries in build_configdirs, configdirs, or target_configdirs may
2630 # cause circular dependencies and break everything horribly.
2631
2632 # these library is used by various programs built for the build
2633 # environment
2634 #
2635 build_libs="build-libiberty"
2636
2637 # these tools are built for the build environment
2638 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2639
2640 # these libraries are used by various programs built for the host environment
2641 #
2642 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
2643
2644 # these tools are built for the host environment
2645 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2646 # know that we are building the simulator.
2647 # binutils, gas and ld appear in that order because it makes sense to run
2648 # "make check" in that particular order.
2649 # If --enable-gold is used, "gold" will replace "ld".
2650 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2651
2652 # libgcj represents the runtime libraries only used by gcj.
2653 libgcj="target-libffi \
2654 target-zlib \
2655 target-qthreads \
2656 target-libjava"
2657
2658 # these libraries are built for the target environment, and are built after
2659 # the host libraries and the host tools (which may be a cross compiler)
2660 #
2661 target_libraries="target-libgcc \
2662 target-libiberty \
2663 target-libgloss \
2664 target-newlib \
2665 target-libgomp \
2666 target-libstdc++-v3 \
2667 target-libmudflap \
2668 target-libssp \
2669 target-libgfortran \
2670 target-boehm-gc \
2671 ${libgcj} \
2672 target-libobjc \
2673 target-libada"
2674
2675 # these tools are built using the target libraries, and are intended to
2676 # run only in the target environment
2677 #
2678 # note: any program that *uses* libraries that are in the "target_libraries"
2679 # list belongs in this list. those programs are also very likely
2680 # candidates for the "native_only" list which follows
2681 #
2682 target_tools="target-examples target-groff target-gperf target-rda"
2683
2684 ################################################################################
2685
2686 ## All tools belong in one of the four categories, and are assigned above
2687 ## We assign ${configdirs} this way to remove all embedded newlines. This
2688 ## is important because configure will choke if they ever get through.
2689 ## ${configdirs} is directories we build using the host tools.
2690 ## ${target_configdirs} is directories we build using the target tools.
2691 configdirs=`echo ${host_libs} ${host_tools}`
2692 target_configdirs=`echo ${target_libraries} ${target_tools}`
2693 build_configdirs=`echo ${build_libs} ${build_tools}`
2694
2695
2696
2697 ################################################################################
2698
2699 srcname="gnu development package"
2700
2701 # This gets set non-empty for some net releases of packages.
2702 appdirs=""
2703
2704 # Define is_cross_compiler to save on calls to 'test'.
2705 is_cross_compiler=
2706 if test x"${host}" = x"${target}" ; then
2707 is_cross_compiler=no
2708 else
2709 is_cross_compiler=yes
2710 fi
2711
2712 # Find the build and target subdir names.
2713
2714 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2715 # have matching libraries, they should use host libraries: Makefile.tpl
2716 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2717 # However, they still use the build modules, because the corresponding
2718 # host modules (e.g. bison) are only built for the host when bootstrap
2719 # finishes. So:
2720 # - build_subdir is where we find build modules, and never changes.
2721 # - build_libsubdir is where we find build libraries, and can be overridden.
2722
2723 # Prefix 'build-' so this never conflicts with target_subdir.
2724 build_subdir="build-${build_noncanonical}"
2725
2726 # Check whether --with-build-libsubdir was given.
2727 if test "${with_build_libsubdir+set}" = set; then :
2728 withval=$with_build_libsubdir; build_libsubdir="$withval"
2729 else
2730 build_libsubdir="$build_subdir"
2731 fi
2732
2733 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2734 if ( test $srcdir = . && test -d gcc ) \
2735 || test -d $srcdir/../host-${host_noncanonical}; then
2736 host_subdir="host-${host_noncanonical}"
2737 else
2738 host_subdir=.
2739 fi
2740 # No prefix.
2741 target_subdir=${target_noncanonical}
2742
2743
2744 # Skipdirs are removed silently.
2745 skipdirs=
2746 # Noconfigdirs are removed loudly.
2747 noconfigdirs=""
2748
2749 use_gnu_ld=
2750 # Make sure we don't let GNU ld be added if we didn't want it.
2751 if test x$with_gnu_ld = xno ; then
2752 use_gnu_ld=no
2753 noconfigdirs="$noconfigdirs ld gold"
2754 fi
2755
2756 use_gnu_as=
2757 # Make sure we don't let GNU as be added if we didn't want it.
2758 if test x$with_gnu_as = xno ; then
2759 use_gnu_as=no
2760 noconfigdirs="$noconfigdirs gas"
2761 fi
2762
2763 # some tools are so dependent upon X11 that if we're not building with X,
2764 # it's not even worth trying to configure, much less build, that tool.
2765
2766 case ${with_x} in
2767 yes | "") ;; # the default value for this tree is that X11 is available
2768 no)
2769 skipdirs="${skipdirs} tk itcl libgui"
2770 # We won't be able to build gdbtk without X.
2771 enable_gdbtk=no
2772 ;;
2773 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2774 esac
2775
2776 # Some tools are only suitable for building in a "native" situation.
2777 # Remove these if host!=target.
2778 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2779
2780 # Similarly, some are only suitable for cross toolchains.
2781 # Remove these if host=target.
2782 cross_only="target-libgloss target-newlib target-opcodes"
2783
2784 case $is_cross_compiler in
2785 no) skipdirs="${skipdirs} ${cross_only}" ;;
2786 yes) skipdirs="${skipdirs} ${native_only}" ;;
2787 esac
2788
2789 # If both --with-headers and --with-libs are specified, default to
2790 # --without-newlib.
2791 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2792 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2793 if test x"${with_newlib}" = x ; then
2794 with_newlib=no
2795 fi
2796 fi
2797
2798 # Recognize --with-newlib/--without-newlib.
2799 case ${with_newlib} in
2800 no) skipdirs="${skipdirs} target-newlib" ;;
2801 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2802 esac
2803
2804 # Handle --enable-gold.
2805
2806 # Check whether --enable-gold was given.
2807 if test "${enable_gold+set}" = set; then :
2808 enableval=$enable_gold; ENABLE_GOLD=$enableval
2809 else
2810 ENABLE_GOLD=no
2811 fi
2812
2813 if test "${ENABLE_GOLD}" = "yes"; then
2814 # Check for ELF target.
2815 is_elf=no
2816 case "${target}" in
2817 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2818 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2819 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2820 case "${target}" in
2821 *-*-linux*aout* | *-*-linux*oldld*)
2822 ;;
2823 *)
2824 is_elf=yes
2825 ;;
2826 esac
2827 esac
2828
2829 if test "$is_elf" = "yes"; then
2830 # Check for target supported by gold.
2831 case "${target}" in
2832 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2833 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2834 ;;
2835 esac
2836 fi
2837 fi
2838
2839 # Configure extra directories which are host specific
2840
2841 case "${host}" in
2842 *-cygwin*)
2843 configdirs="$configdirs libtermcap" ;;
2844 esac
2845
2846 # A target can indicate whether a language isn't supported for some reason.
2847 # Only spaces may be used in this macro; not newlines or tabs.
2848 unsupported_languages=
2849
2850 # Remove more programs from consideration, based on the host or
2851 # target this usually means that a port of the program doesn't
2852 # exist yet.
2853
2854 case "${host}" in
2855 hppa*64*-*-*)
2856 noconfigdirs="$noconfigdirs byacc"
2857 ;;
2858 i[3456789]86-*-vsta)
2859 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2860 ;;
2861 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2862 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2863 ;;
2864 x86_64-*-mingw*)
2865 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2866 ;;
2867 i[3456789]86-*-mingw32*)
2868 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2869 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2870 ;;
2871 i[3456789]86-*-beos*)
2872 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2873 ;;
2874 *-*-cygwin*)
2875 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2876 ;;
2877 *-*-netbsd*)
2878 noconfigdirs="$noconfigdirs rcs"
2879 ;;
2880 ppc*-*-pe)
2881 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2882 ;;
2883 powerpc-*-beos*)
2884 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2885 ;;
2886 esac
2887
2888
2889 # Check whether --enable-libada was given.
2890 if test "${enable_libada+set}" = set; then :
2891 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2892 else
2893 ENABLE_LIBADA=yes
2894 fi
2895
2896 if test "${ENABLE_LIBADA}" != "yes" ; then
2897 noconfigdirs="$noconfigdirs gnattools"
2898 fi
2899
2900 # Check whether --enable-libssp was given.
2901 if test "${enable_libssp+set}" = set; then :
2902 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2903 else
2904 ENABLE_LIBSSP=yes
2905 fi
2906
2907
2908 # Save it here so that, even in case of --enable-libgcj, if the Java
2909 # front-end isn't enabled, we still get libgcj disabled.
2910 libgcj_saved=$libgcj
2911 case $enable_libgcj in
2912 yes)
2913 # If we reset it here, it won't get added to noconfigdirs in the
2914 # target-specific build rules, so it will be forcibly enabled
2915 # (unless the Java language itself isn't enabled).
2916 libgcj=
2917 ;;
2918 no)
2919 # Make sure we get it printed in the list of not supported target libs.
2920 noconfigdirs="$noconfigdirs ${libgcj}"
2921 ;;
2922 esac
2923
2924
2925 # Disable libmudflap on some systems.
2926 if test x$enable_libmudflap = x ; then
2927 case "${target}" in
2928 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2929 # Enable libmudflap by default in GNU and friends.
2930 ;;
2931 *-*-freebsd*)
2932 # Enable libmudflap by default in FreeBSD.
2933 ;;
2934 *)
2935 # Disable it by default everywhere else.
2936 noconfigdirs="$noconfigdirs target-libmudflap"
2937 ;;
2938 esac
2939 fi
2940
2941 # Disable libgomp on non POSIX hosted systems.
2942 if test x$enable_libgomp = x ; then
2943 # Enable libgomp by default on hosted POSIX systems.
2944 case "${target}" in
2945 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2946 ;;
2947 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2948 ;;
2949 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2950 ;;
2951 *-*-darwin* | *-*-aix*)
2952 ;;
2953 *)
2954 noconfigdirs="$noconfigdirs target-libgomp"
2955 ;;
2956 esac
2957 fi
2958
2959 # Default libgloss CPU subdirectory.
2960 libgloss_dir="$target_cpu"
2961
2962 case "${target}" in
2963 *-*-chorusos)
2964 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2965 ;;
2966 powerpc-*-darwin*)
2967 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2968 noconfigdirs="$noconfigdirs sim target-rda"
2969 ;;
2970 i[3456789]86-*-darwin*)
2971 noconfigdirs="$noconfigdirs ld gprof"
2972 noconfigdirs="$noconfigdirs sim target-rda"
2973 ;;
2974 x86_64-*-darwin[912]*)
2975 noconfigdirs="$noconfigdirs ld gas gprof"
2976 noconfigdirs="$noconfigdirs sim target-rda"
2977 ;;
2978 *-*-darwin*)
2979 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2980 noconfigdirs="$noconfigdirs sim target-rda"
2981 noconfigdirs="$noconfigdirs ${libgcj}"
2982 ;;
2983 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2984 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2985 ;;
2986 *-*-freebsd*)
2987 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2988 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2989 && test -f /usr/local/include/gmp.h; then
2990 with_gmp=/usr/local
2991 fi
2992
2993 # Skip some stuff that's unsupported on some FreeBSD configurations.
2994 case "${target}" in
2995 i*86-*-*) ;;
2996 alpha*-*-*) ;;
2997 *)
2998 noconfigdirs="$noconfigdirs ${libgcj}"
2999 ;;
3000 esac
3001 ;;
3002 *-*-kaos*)
3003 # Remove unsupported stuff on all kaOS configurations.
3004 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3005 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3006 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3007 noconfigdirs="$noconfigdirs target-libgloss"
3008 ;;
3009 *-*-netbsd*)
3010 # Skip some stuff on all NetBSD configurations.
3011 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3012
3013 # Skip some stuff that's unsupported on some NetBSD configurations.
3014 case "${target}" in
3015 i*86-*-netbsdelf*) ;;
3016 arm*-*-netbsdelf*) ;;
3017 *)
3018 noconfigdirs="$noconfigdirs ${libgcj}"
3019 ;;
3020 esac
3021 ;;
3022 *-*-netware*)
3023 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3024 ;;
3025 *-*-rtems*)
3026 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3027 ;;
3028 # The tpf target doesn't support gdb yet.
3029 *-*-tpf*)
3030 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3031 ;;
3032 *-*-uclinux*)
3033 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3034 ;;
3035 *-*-vxworks*)
3036 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3037 ;;
3038 alpha*-dec-osf*)
3039 # ld works, but does not support shared libraries.
3040 # newlib is not 64 bit ready. I'm not sure about fileutils.
3041 # gas doesn't generate exception information.
3042 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3043 ;;
3044 alpha*-*-*vms*)
3045 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
3046 ;;
3047 alpha*-*-linux*)
3048 # newlib is not 64 bit ready
3049 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3050 ;;
3051 alpha*-*-*)
3052 # newlib is not 64 bit ready
3053 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3054 ;;
3055 am33_2.0-*-linux*)
3056 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3057 ;;
3058 sh-*-linux*)
3059 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3060 ;;
3061 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3062 noconfigdirs="$noconfigdirs ${libgcj}"
3063 noconfigdirs="$noconfigdirs target-examples"
3064 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3065 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3066 noconfigdirs="$noconfigdirs expect dejagnu"
3067 # the C++ libraries don't build on top of CE's C libraries
3068 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3069 noconfigdirs="$noconfigdirs target-newlib"
3070 case "${host}" in
3071 *-*-cygwin*) ;; # keep gdb and readline
3072 *) noconfigdirs="$noconfigdirs gdb readline"
3073 ;;
3074 esac
3075 libgloss_dir=wince
3076 ;;
3077 arc-*-*)
3078 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3079 ;;
3080 arm-semi-aof )
3081 ;;
3082 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3083 noconfigdirs="$noconfigdirs ${libgcj}"
3084 libgloss_dir=arm
3085 ;;
3086 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3087 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3088 libgloss_dir=arm
3089 ;;
3090 arm*-*-linux-gnueabi)
3091 noconfigdirs="$noconfigdirs target-qthreads"
3092 case ${with_newlib} in
3093 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3094 esac
3095 libgloss_dir=arm
3096 ;;
3097 arm*-*-symbianelf*)
3098 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3099 libgloss_dir=arm
3100 ;;
3101 arm-*-pe*)
3102 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3103 ;;
3104 thumb-*-coff)
3105 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3106 ;;
3107 thumb-*-elf)
3108 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3109 ;;
3110 thumb-*-pe)
3111 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3112 ;;
3113 arm-*-riscix*)
3114 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3115 ;;
3116 avr-*-*)
3117 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3118 ;;
3119 bfin-*-*)
3120 noconfigdirs="$noconfigdirs gdb"
3121 if test x${is_cross_compiler} != xno ; then
3122 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3123 fi
3124 ;;
3125 c4x-*-* | tic4x-*-*)
3126 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3127 ;;
3128 c54x*-*-* | tic54x-*-*)
3129 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3130 ;;
3131 cr16-*-*)
3132 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3133 ;;
3134 cris-*-* | crisv32-*-*)
3135 unsupported_languages="$unsupported_languages java"
3136 case "${target}" in
3137 *-*-aout)
3138 unsupported_languages="$unsupported_languages fortran"
3139 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3140 *-*-elf)
3141 noconfigdirs="$noconfigdirs target-boehm-gc";;
3142 *-*-linux*)
3143 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3144 *)
3145 unsupported_languages="$unsupported_languages fortran"
3146 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3147 esac
3148 libgloss_dir=cris
3149 ;;
3150 crx-*-*)
3151 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3152 ;;
3153 d10v-*-*)
3154 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3155 ;;
3156 d30v-*-*)
3157 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3158 ;;
3159 ep9312-*-elf | ep9312-*-coff)
3160 libgloss_dir=arm
3161 ;;
3162 fr30-*-elf*)
3163 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3164 ;;
3165 frv-*-*)
3166 noconfigdirs="$noconfigdirs ${libgcj}"
3167 ;;
3168 moxie-*-*)
3169 noconfigdirs="$noconfigdirs ${libgcj}"
3170 noconfigdirs="$noconfigdirs gprof"
3171 ;;
3172 h8300*-*-*)
3173 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3174 ;;
3175 h8500-*-*)
3176 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3177 ;;
3178 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3179 ;;
3180 hppa*64*-*-linux* | parisc*64*-*-linux*)
3181 # In this case, it's because the hppa64-linux target is for
3182 # the kernel only at this point and has no libc, and thus no
3183 # headers, crt*.o, etc., all of which are needed by these.
3184 noconfigdirs="$noconfigdirs target-zlib"
3185 ;;
3186 parisc*-*-linux* | hppa*-*-linux*)
3187 ;;
3188 hppa*-*-*elf* | \
3189 hppa*-*-lites* | \
3190 hppa*-*-openbsd* | \
3191 hppa*64*-*-*)
3192 noconfigdirs="$noconfigdirs ${libgcj}"
3193 ;;
3194 hppa*-hp-hpux11*)
3195 noconfigdirs="$noconfigdirs ld shellutils"
3196 ;;
3197 hppa*-*-pro*)
3198 libgloss_dir=pa
3199 ;;
3200 hppa*-*-*)
3201 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3202 # build on HP-UX 10.20.
3203 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3204 ;;
3205 i960-*-*)
3206 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3207 ;;
3208 ia64*-*-elf*)
3209 # No gdb support yet.
3210 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3211 ;;
3212 ia64*-**-hpux*)
3213 # No gdb or ld support yet.
3214 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3215 ;;
3216 ia64*-*-*vms*)
3217 # No gdb or ld support yet.
3218 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3219 ;;
3220 i370-*-opened*)
3221 ;;
3222 i[3456789]86-*-coff | i[3456789]86-*-elf)
3223 noconfigdirs="$noconfigdirs ${libgcj}"
3224 libgloss_dir=i386
3225 ;;
3226 i[3456789]86-*-linux*)
3227 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3228 # not build java stuff by default.
3229 case "${target}" in
3230 *-*-*libc1*)
3231 noconfigdirs="$noconfigdirs ${libgcj}";;
3232 esac
3233
3234 # This section makes it possible to build newlib natively on linux.
3235 # If we are using a cross compiler then don't configure newlib.
3236 if test x${is_cross_compiler} != xno ; then
3237 noconfigdirs="$noconfigdirs target-newlib"
3238 fi
3239 noconfigdirs="$noconfigdirs target-libgloss"
3240 # If we are not using a cross compiler, do configure newlib.
3241 # Note however, that newlib will only be configured in this situation
3242 # if the --with-newlib option has been given, because otherwise
3243 # 'target-newlib' will appear in skipdirs.
3244 ;;
3245 i[3456789]86-*-mingw32*)
3246 target_configdirs="$target_configdirs target-winsup"
3247 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3248 ;;
3249 x86_64-*-mingw*)
3250 target_configdirs="$target_configdirs target-winsup"
3251 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3252 ;;
3253 *-*-cygwin*)
3254 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3255 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3256 # always build newlib if winsup directory is present.
3257 if test -d "$srcdir/winsup/cygwin"; then
3258 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3259 elif test -d "$srcdir/newlib"; then
3260 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3261 fi
3262 ;;
3263 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3264 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3265 ;;
3266 i[3456789]86-*-pe)
3267 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3268 ;;
3269 i[3456789]86-*-sco3.2v5*)
3270 # The linker does not yet know about weak symbols in COFF,
3271 # and is not configured to handle mixed ELF and COFF.
3272 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3273 ;;
3274 i[3456789]86-*-sco*)
3275 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3276 ;;
3277 i[3456789]86-*-solaris2*)
3278 noconfigdirs="$noconfigdirs target-libgloss"
3279 ;;
3280 i[3456789]86-*-sysv4*)
3281 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3282 ;;
3283 i[3456789]86-*-beos*)
3284 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3285 ;;
3286 i[3456789]86-*-rdos*)
3287 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3288 ;;
3289 m32r-*-*)
3290 noconfigdirs="$noconfigdirs ${libgcj}"
3291 ;;
3292 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3293 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3294 libgloss_dir=m68hc11
3295 ;;
3296 m68k-*-elf*)
3297 noconfigdirs="$noconfigdirs ${libgcj}"
3298 ;;
3299 m68k-*-coff*)
3300 noconfigdirs="$noconfigdirs ${libgcj}"
3301 ;;
3302 m68*-*-* | fido-*-*)
3303 libgloss_dir=m68k
3304 ;;
3305 mcore-*-pe*)
3306 # The EPOC C++ environment does not support exceptions or rtti,
3307 # and so building libstdc++-v3 tends not to always work.
3308 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3309 ;;
3310 mmix-*-*)
3311 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3312 unsupported_languages="$unsupported_languages fortran java"
3313 ;;
3314 mn10200-*-*)
3315 noconfigdirs="$noconfigdirs ${libgcj}"
3316 ;;
3317 mn10300-*-*)
3318 noconfigdirs="$noconfigdirs ${libgcj}"
3319 ;;
3320 mt-*-*)
3321 noconfigdirs="$noconfigdirs sim"
3322 ;;
3323 powerpc-*-aix*)
3324 # copied from rs6000-*-* entry
3325 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3326 ;;
3327 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3328 target_configdirs="$target_configdirs target-winsup"
3329 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3330 # always build newlib.
3331 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3332 ;;
3333 # This is temporary until we can link against shared libraries
3334 powerpcle-*-solaris*)
3335 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3336 libgloss_dir=rs6000
3337 ;;
3338 powerpc-*-beos*)
3339 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3340 ;;
3341 powerpc-*-eabi)
3342 noconfigdirs="$noconfigdirs ${libgcj}"
3343 libgloss_dir=rs6000
3344 ;;
3345 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3346 libgloss_dir=rs6000
3347 ;;
3348 rs6000-*-lynxos*)
3349 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3350 ;;
3351 rs6000-*-aix*)
3352 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3353 ;;
3354 rs6000-*-*)
3355 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3356 ;;
3357 m68k-apollo-*)
3358 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3359 ;;
3360 microblaze*)
3361 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3362 ;;
3363 mips*-sde-elf*)
3364 skipdirs="$skipdirs target-libiberty"
3365 noconfigdirs="$noconfigdirs ${libgcj}"
3366 if test x$with_newlib = xyes; then
3367 noconfigdirs="$noconfigdirs gprof"
3368 fi
3369 libgloss_dir=mips
3370 ;;
3371 mips*-*-irix5*)
3372 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3373 ;;
3374 mips*-*-irix6*)
3375 # Linking libjava exceeds command-line length limits on at least
3376 # IRIX 6.2, but not on IRIX 6.5.
3377 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3378 # <oldham@codesourcery.com>
3379 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3380 ;;
3381 mips*-*-bsd*)
3382 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3383 ;;
3384 mips*-*-linux*)
3385 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3386 ;;
3387 mips*-*-*)
3388 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3389 libgloss_dir=mips
3390 ;;
3391 romp-*-*)
3392 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3393 ;;
3394 sh-*-* | sh64-*-*)
3395 case "${host}" in
3396 i[3456789]86-*-vsta) ;; # don't add gprof back in
3397 i[3456789]86-*-go32*) ;; # don't add gprof back in
3398 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3399 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3400 esac
3401 case "${target}" in
3402 sh*-*-elf)
3403 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3404 *)
3405 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3406 esac
3407 ;;
3408 sparclet-*-aout* | sparc86x-*-*)
3409 libgloss_dir=sparc
3410 ;;
3411 sparc-*-elf*)
3412 noconfigdirs="$noconfigdirs ${libgcj}"
3413 ;;
3414 sparc64-*-elf*)
3415 noconfigdirs="$noconfigdirs ${libgcj}"
3416 libgloss_dir=sparc
3417 ;;
3418 sparclite-*-*)
3419 noconfigdirs="$noconfigdirs ${libgcj}"
3420 libgloss_dir=sparc
3421 ;;
3422 sparc-*-sunos4*)
3423 noconfigdirs="$noconfigdirs ${libgcj}"
3424 if test x${is_cross_compiler} != xno ; then
3425 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3426 else
3427 use_gnu_ld=no
3428 fi
3429 ;;
3430 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3431 noconfigdirs="$noconfigdirs ${libgcj}"
3432 ;;
3433 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3434 ;;
3435 v810-*-*)
3436 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3437 ;;
3438 v850-*-*)
3439 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3440 ;;
3441 v850e-*-*)
3442 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3443 ;;
3444 v850ea-*-*)
3445 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3446 ;;
3447 vax-*-vms)
3448 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3449 ;;
3450 vax-*-*)
3451 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3452 ;;
3453 xtensa*-*-*)
3454 noconfigdirs="$noconfigdirs ${libgcj}"
3455 ;;
3456 ip2k-*-*)
3457 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3458 ;;
3459 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3460 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3461 ;;
3462 *-*-lynxos*)
3463 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3464 ;;
3465 *-*-*)
3466 noconfigdirs="$noconfigdirs ${libgcj}"
3467 ;;
3468 esac
3469
3470 # If we aren't building newlib, then don't build libgloss, since libgloss
3471 # depends upon some newlib header files.
3472 case "${noconfigdirs}" in
3473 *target-libgloss*) ;;
3474 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3475 esac
3476
3477 # Work in distributions that contain no compiler tools, like Autoconf.
3478 tentative_cc=""
3479 host_makefile_frag=/dev/null
3480 if test -d ${srcdir}/config ; then
3481 case "${host}" in
3482 m68k-hp-hpux*)
3483 # Avoid "too much defining" errors from HPUX compiler.
3484 tentative_cc="cc -Wp,-H256000"
3485 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3486 # If it's HP/UX ar, this should be harmless.
3487 RANLIB="ar ts"
3488 ;;
3489 m68k-apollo-sysv*)
3490 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3491 ;;
3492 m68k-apollo-bsd*)
3493 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3494 # chokes on bfd, the compiler won't let you assign integers to enums, and
3495 # other problems. Defining CC to gcc is a questionable way to say "don't use
3496 # the apollo compiler" (the preferred version of GCC could be called cc,
3497 # or whatever), but I'm not sure leaving CC as cc is any better...
3498 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3499 # Used to have BISON=yacc.
3500 tentative_cc=gcc
3501 ;;
3502 m88k-dg-dgux*)
3503 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3504 ;;
3505 m88k-harris-cxux*)
3506 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3507 tentative_cc="cc -Xa"
3508 host_makefile_frag="config/mh-cxux"
3509 ;;
3510 m88k-motorola-sysv*)
3511 ;;
3512 mips*-dec-ultrix*)
3513 tentative_cc="cc -Wf,-XNg1000"
3514 host_makefile_frag="config/mh-decstation"
3515 ;;
3516 mips*-nec-sysv4*)
3517 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3518 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3519 host_makefile_frag="config/mh-necv4"
3520 ;;
3521 mips*-sgi-irix4*)
3522 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3523 # environment. Also bump switch table size so that cp-parse will
3524 # compile. Bump string length limit so linker builds.
3525 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3526 ;;
3527 mips*-*-sysv4*)
3528 host_makefile_frag="config/mh-sysv4"
3529 ;;
3530 mips*-*-sysv*)
3531 # This is for a MIPS running RISC/os 4.52C.
3532
3533 # This is needed for GDB, but needs to be in the top-level make because
3534 # if a library is compiled with the bsd headers and gets linked with the
3535 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3536 # a different size).
3537 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3538 # known except to select the sysv environment. Could we use /proc instead?
3539 # These "sysv environments" and "bsd environments" often end up being a pain.
3540 #
3541 # This is not part of CFLAGS because perhaps not all C compilers have this
3542 # option.
3543 tentative_cc="cc -systype sysv"
3544 ;;
3545 i370-ibm-opened*)
3546 tentative_cc="c89"
3547 ;;
3548 i[3456789]86-*-sysv5*)
3549 host_makefile_frag="config/mh-sysv5"
3550 ;;
3551 i[3456789]86-*-dgux*)
3552 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3553 host_makefile_frag="config/mh-dgux386"
3554 ;;
3555 i[3456789]86-ncr-sysv4.3*)
3556 # The MetaWare compiler will generate a copyright message unless you
3557 # turn it off by adding the -Hnocopyr flag.
3558 tentative_cc="cc -Hnocopyr"
3559 ;;
3560 i[3456789]86-ncr-sysv4*)
3561 # for an NCR 3000 (i486/SVR4) system.
3562 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3563 # This compiler not only emits obnoxious copyright messages every time
3564 # you run it, but it chokes and dies on a whole bunch of GNU source
3565 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3566 tentative_cc="/usr/ccs/ATT/cc"
3567 host_makefile_frag="config/mh-ncr3000"
3568 ;;
3569 i[3456789]86-*-sco3.2v5*)
3570 ;;
3571 i[3456789]86-*-sco*)
3572 # The native C compiler botches some simple uses of const. Unfortunately,
3573 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3574 tentative_cc="cc -Dconst="
3575 host_makefile_frag="config/mh-sco"
3576 ;;
3577 i[3456789]86-*-udk*)
3578 host_makefile_frag="config/mh-sysv5"
3579 ;;
3580 i[3456789]86-*-solaris2*)
3581 host_makefile_frag="config/mh-sysv4"
3582 ;;
3583 i[3456789]86-*-msdosdjgpp*)
3584 host_makefile_frag="config/mh-djgpp"
3585 ;;
3586 *-cygwin*)
3587
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3589 $as_echo_n "checking to see if cat works as expected... " >&6; }
3590 echo a >cygwin-cat-check
3591 if test `cat cygwin-cat-check` == a ; then
3592 rm cygwin-cat-check
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594 $as_echo "yes" >&6; }
3595 else
3596 rm cygwin-cat-check
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3599 as_fn_error "The cat command does not ignore carriage return characters.
3600 Please either mount the build directory in binary mode or run the following
3601 commands before running any configure script:
3602 set -o igncr
3603 export SHELLOPTS
3604 " "$LINENO" 5
3605 fi
3606
3607 host_makefile_frag="config/mh-cygwin"
3608 ;;
3609 *-mingw*)
3610 host_makefile_frag="config/mh-mingw"
3611 ;;
3612 *-interix*)
3613 host_makefile_frag="config/mh-interix"
3614 ;;
3615 vax-*-ultrix2*)
3616 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3617 tentative_cc=gcc
3618 ;;
3619 *-*-solaris2*)
3620 host_makefile_frag="config/mh-solaris"
3621 ;;
3622 m68k-sun-sunos*)
3623 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3624 # without overflowing the jump tables (-J says to use a 32 bit table)
3625 tentative_cc="cc -J"
3626 ;;
3627 hppa*-hp-hpux10*)
3628 tentative_cc="cc -Wp,-H256000"
3629 host_makefile_frag="config/mh-pa-hpux10"
3630 ;;
3631 hppa*-hp-hpux* | hppa*-*-hiux*)
3632 tentative_cc="cc -Wp,-H256000"
3633 host_makefile_frag="config/mh-pa"
3634 ;;
3635 hppa*-*)
3636 host_makefile_frag="config/mh-pa"
3637 ;;
3638 *-hp-hpux* | *-*-hiux*)
3639 tentative_cc="cc -Wp,-H256000"
3640 ;;
3641 rs6000-*-lynxos*)
3642 # /bin/cc is less than useful for our purposes. Always use GCC
3643 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3644 host_makefile_frag="config/mh-lynxrs6k"
3645 ;;
3646 powerpc-*-darwin*)
3647 host_makefile_frag="config/mh-ppc-darwin"
3648 ;;
3649 powerpc-*-aix*)
3650 host_makefile_frag="config/mh-ppc-aix"
3651 ;;
3652 rs6000-*-aix*)
3653 host_makefile_frag="config/mh-ppc-aix"
3654 ;;
3655 *-*-lynxos*)
3656 # /bin/cc is less than useful for our purposes. Always use GCC
3657 tentative_cc="/bin/gcc"
3658 ;;
3659 *-*-sysv4*)
3660 host_makefile_frag="config/mh-sysv4"
3661 ;;
3662 # This is placed last to prevent interfering with the cases above.
3663 i[3456789]86-*-*)
3664 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3665 host_makefile_frag="config/mh-x86omitfp"
3666 ;;
3667 esac
3668 fi
3669
3670 # If we aren't going to be using gcc, see if we can extract a definition
3671 # of CC from the fragment.
3672 # Actually, use the 'pre-extracted' version above.
3673 if test -z "${CC}" && test "${build}" = "${host}" ; then
3674 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3675 found=
3676 for dir in $PATH; do
3677 test -z "$dir" && dir=.
3678 if test -f $dir/gcc; then
3679 found=yes
3680 break
3681 fi
3682 done
3683 IFS="$save_ifs"
3684 if test -z "${found}" && test -n "${tentative_cc}" ; then
3685 CC=$tentative_cc
3686 fi
3687 fi
3688
3689 if test "${build}" != "${host}" ; then
3690 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3691 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3692 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3693 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3694 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3695 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3696 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3697 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3698 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3699 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3700 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3701 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3702 else
3703 AR_FOR_BUILD="\$(AR)"
3704 AS_FOR_BUILD="\$(AS)"
3705 CC_FOR_BUILD="\$(CC)"
3706 CXX_FOR_BUILD="\$(CXX)"
3707 GCJ_FOR_BUILD="\$(GCJ)"
3708 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3709 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3710 LD_FOR_BUILD="\$(LD)"
3711 NM_FOR_BUILD="\$(NM)"
3712 RANLIB_FOR_BUILD="\$(RANLIB)"
3713 WINDRES_FOR_BUILD="\$(WINDRES)"
3714 WINDMC_FOR_BUILD="\$(WINDMC)"
3715 fi
3716
3717 ac_ext=c
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722 if test -n "$ac_tool_prefix"; then
3723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3724 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726 $as_echo_n "checking for $ac_word... " >&6; }
3727 if test "${ac_cv_prog_CC+set}" = set; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if test -n "$CC"; then
3731 ac_cv_prog_CC="$CC" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3740 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 break 2
3743 fi
3744 done
3745 done
3746 IFS=$as_save_IFS
3747
3748 fi
3749 fi
3750 CC=$ac_cv_prog_CC
3751 if test -n "$CC"; then
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3753 $as_echo "$CC" >&6; }
3754 else
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 $as_echo "no" >&6; }
3757 fi
3758
3759
3760 fi
3761 if test -z "$ac_cv_prog_CC"; then
3762 ac_ct_CC=$CC
3763 # Extract the first word of "gcc", so it can be a program name with args.
3764 set dummy gcc; ac_word=$2
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766 $as_echo_n "checking for $ac_word... " >&6; }
3767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 if test -n "$ac_ct_CC"; then
3771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3775 do
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3780 ac_cv_prog_ac_ct_CC="gcc"
3781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 break 2
3783 fi
3784 done
3785 done
3786 IFS=$as_save_IFS
3787
3788 fi
3789 fi
3790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3791 if test -n "$ac_ct_CC"; then
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3793 $as_echo "$ac_ct_CC" >&6; }
3794 else
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 $as_echo "no" >&6; }
3797 fi
3798
3799 if test "x$ac_ct_CC" = x; then
3800 CC=""
3801 else
3802 case $cross_compiling:$ac_tool_warned in
3803 yes:)
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3806 ac_tool_warned=yes ;;
3807 esac
3808 CC=$ac_ct_CC
3809 fi
3810 else
3811 CC="$ac_cv_prog_CC"
3812 fi
3813
3814 if test -z "$CC"; then
3815 if test -n "$ac_tool_prefix"; then
3816 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3817 set dummy ${ac_tool_prefix}cc; ac_word=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if test "${ac_cv_prog_CC+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3822 else
3823 if test -n "$CC"; then
3824 ac_cv_prog_CC="$CC" # Let the user override the test.
3825 else
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3828 do
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3833 ac_cv_prog_CC="${ac_tool_prefix}cc"
3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 break 2
3836 fi
3837 done
3838 done
3839 IFS=$as_save_IFS
3840
3841 fi
3842 fi
3843 CC=$ac_cv_prog_CC
3844 if test -n "$CC"; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3846 $as_echo "$CC" >&6; }
3847 else
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3850 fi
3851
3852
3853 fi
3854 fi
3855 if test -z "$CC"; then
3856 # Extract the first word of "cc", so it can be a program name with args.
3857 set dummy cc; ac_word=$2
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3859 $as_echo_n "checking for $ac_word... " >&6; }
3860 if test "${ac_cv_prog_CC+set}" = set; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 if test -n "$CC"; then
3864 ac_cv_prog_CC="$CC" # Let the user override the test.
3865 else
3866 ac_prog_rejected=no
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3869 do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3875 ac_prog_rejected=yes
3876 continue
3877 fi
3878 ac_cv_prog_CC="cc"
3879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 break 2
3881 fi
3882 done
3883 done
3884 IFS=$as_save_IFS
3885
3886 if test $ac_prog_rejected = yes; then
3887 # We found a bogon in the path, so make sure we never use it.
3888 set dummy $ac_cv_prog_CC
3889 shift
3890 if test $# != 0; then
3891 # We chose a different compiler from the bogus one.
3892 # However, it has the same basename, so the bogon will be chosen
3893 # first if we set CC to just the basename; use the full file name.
3894 shift
3895 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3896 fi
3897 fi
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 if test -z "$CC"; then
3912 if test -n "$ac_tool_prefix"; then
3913 for ac_prog in cl.exe
3914 do
3915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if test "${ac_cv_prog_CC+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 if test -n "$CC"; then
3923 ac_cv_prog_CC="$CC" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3932 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3935 fi
3936 done
3937 done
3938 IFS=$as_save_IFS
3939
3940 fi
3941 fi
3942 CC=$ac_cv_prog_CC
3943 if test -n "$CC"; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3945 $as_echo "$CC" >&6; }
3946 else
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3949 fi
3950
3951
3952 test -n "$CC" && break
3953 done
3954 fi
3955 if test -z "$CC"; then
3956 ac_ct_CC=$CC
3957 for ac_prog in cl.exe
3958 do
3959 # Extract the first word of "$ac_prog", so it can be a program name with args.
3960 set dummy $ac_prog; ac_word=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
3965 else
3966 if test -n "$ac_ct_CC"; then
3967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3968 else
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3971 do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976 ac_cv_prog_ac_ct_CC="$ac_prog"
3977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3978 break 2
3979 fi
3980 done
3981 done
3982 IFS=$as_save_IFS
3983
3984 fi
3985 fi
3986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3987 if test -n "$ac_ct_CC"; then
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3989 $as_echo "$ac_ct_CC" >&6; }
3990 else
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 $as_echo "no" >&6; }
3993 fi
3994
3995
3996 test -n "$ac_ct_CC" && break
3997 done
3998
3999 if test "x$ac_ct_CC" = x; then
4000 CC=""
4001 else
4002 case $cross_compiling:$ac_tool_warned in
4003 yes:)
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4006 ac_tool_warned=yes ;;
4007 esac
4008 CC=$ac_ct_CC
4009 fi
4010 fi
4011
4012 fi
4013
4014
4015 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4017 as_fn_error "no acceptable C compiler found in \$PATH
4018 See \`config.log' for more details." "$LINENO" 5; }
4019
4020 # Provide some information about the compiler.
4021 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4022 set X $ac_compile
4023 ac_compiler=$2
4024 for ac_option in --version -v -V -qversion; do
4025 { { ac_try="$ac_compiler $ac_option >&5"
4026 case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029 esac
4030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4031 $as_echo "$ac_try_echo"; } >&5
4032 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4033 ac_status=$?
4034 if test -s conftest.err; then
4035 sed '10a\
4036 ... rest of stderr output deleted ...
4037 10q' conftest.err >conftest.er1
4038 cat conftest.er1 >&5
4039 rm -f conftest.er1 conftest.err
4040 fi
4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042 test $ac_status = 0; }
4043 done
4044
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main ()
4050 {
4051
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 ac_clean_files_save=$ac_clean_files
4057 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4058 # Try to create an executable without -o first, disregard a.out.
4059 # It will help us diagnose broken compilers, and finding out an intuition
4060 # of exeext.
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4062 $as_echo_n "checking for C compiler default output file name... " >&6; }
4063 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4064
4065 # The possible output files:
4066 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4067
4068 ac_rmfiles=
4069 for ac_file in $ac_files
4070 do
4071 case $ac_file in
4072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4073 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4074 esac
4075 done
4076 rm -f $ac_rmfiles
4077
4078 if { { ac_try="$ac_link_default"
4079 case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 $as_echo "$ac_try_echo"; } >&5
4085 (eval "$ac_link_default") 2>&5
4086 ac_status=$?
4087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088 test $ac_status = 0; }; then :
4089 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4090 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4091 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4092 # so that the user can short-circuit this test for compilers unknown to
4093 # Autoconf.
4094 for ac_file in $ac_files ''
4095 do
4096 test -f "$ac_file" || continue
4097 case $ac_file in
4098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4099 ;;
4100 [ab].out )
4101 # We found the default executable, but exeext='' is most
4102 # certainly right.
4103 break;;
4104 *.* )
4105 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4106 then :; else
4107 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4108 fi
4109 # We set ac_cv_exeext here because the later test for it is not
4110 # safe: cross compilers may not add the suffix if given an `-o'
4111 # argument, so we may need to know it at that point already.
4112 # Even if this section looks crufty: it has the advantage of
4113 # actually working.
4114 break;;
4115 * )
4116 break;;
4117 esac
4118 done
4119 test "$ac_cv_exeext" = no && ac_cv_exeext=
4120
4121 else
4122 ac_file=''
4123 fi
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4125 $as_echo "$ac_file" >&6; }
4126 if test -z "$ac_file"; then :
4127 $as_echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4132 { as_fn_set_status 77
4133 as_fn_error "C compiler cannot create executables
4134 See \`config.log' for more details." "$LINENO" 5; }; }
4135 fi
4136 ac_exeext=$ac_cv_exeext
4137
4138 # Check that the compiler produces executables we can run. If not, either
4139 # the compiler is broken, or we cross compile.
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4141 $as_echo_n "checking whether the C compiler works... " >&6; }
4142 # If not cross compiling, check that we can run a simple program.
4143 if test "$cross_compiling" != yes; then
4144 if { ac_try='./$ac_file'
4145 { { case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148 esac
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_try") 2>&5
4152 ac_status=$?
4153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154 test $ac_status = 0; }; }; then
4155 cross_compiling=no
4156 else
4157 if test "$cross_compiling" = maybe; then
4158 cross_compiling=yes
4159 else
4160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4162 as_fn_error "cannot run C compiled programs.
4163 If you meant to cross compile, use \`--host'.
4164 See \`config.log' for more details." "$LINENO" 5; }
4165 fi
4166 fi
4167 fi
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169 $as_echo "yes" >&6; }
4170
4171 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4172 ac_clean_files=$ac_clean_files_save
4173 # Check that the compiler produces executables we can run. If not, either
4174 # the compiler is broken, or we cross compile.
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4176 $as_echo_n "checking whether we are cross compiling... " >&6; }
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4178 $as_echo "$cross_compiling" >&6; }
4179
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4181 $as_echo_n "checking for suffix of executables... " >&6; }
4182 if { { ac_try="$ac_link"
4183 case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4186 esac
4187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4188 $as_echo "$ac_try_echo"; } >&5
4189 (eval "$ac_link") 2>&5
4190 ac_status=$?
4191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4192 test $ac_status = 0; }; then :
4193 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4194 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4195 # work properly (i.e., refer to `conftest.exe'), while it won't with
4196 # `rm'.
4197 for ac_file in conftest.exe conftest conftest.*; do
4198 test -f "$ac_file" || continue
4199 case $ac_file in
4200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4201 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4202 break;;
4203 * ) break;;
4204 esac
4205 done
4206 else
4207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4209 as_fn_error "cannot compute suffix of executables: cannot compile and link
4210 See \`config.log' for more details." "$LINENO" 5; }
4211 fi
4212 rm -f conftest$ac_cv_exeext
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4214 $as_echo "$ac_cv_exeext" >&6; }
4215
4216 rm -f conftest.$ac_ext
4217 EXEEXT=$ac_cv_exeext
4218 ac_exeext=$EXEEXT
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4220 $as_echo_n "checking for suffix of object files... " >&6; }
4221 if test "${ac_cv_objext+set}" = set; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4226
4227 int
4228 main ()
4229 {
4230
4231 ;
4232 return 0;
4233 }
4234 _ACEOF
4235 rm -f conftest.o conftest.obj
4236 if { { ac_try="$ac_compile"
4237 case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240 esac
4241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242 $as_echo "$ac_try_echo"; } >&5
4243 (eval "$ac_compile") 2>&5
4244 ac_status=$?
4245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246 test $ac_status = 0; }; then :
4247 for ac_file in conftest.o conftest.obj conftest.*; do
4248 test -f "$ac_file" || continue;
4249 case $ac_file in
4250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4251 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4252 break;;
4253 esac
4254 done
4255 else
4256 $as_echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4261 as_fn_error "cannot compute suffix of object files: cannot compile
4262 See \`config.log' for more details." "$LINENO" 5; }
4263 fi
4264 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4267 $as_echo "$ac_cv_objext" >&6; }
4268 OBJEXT=$ac_cv_objext
4269 ac_objext=$OBJEXT
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4271 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4272 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277
4278 int
4279 main ()
4280 {
4281 #ifndef __GNUC__
4282 choke me
4283 #endif
4284
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290 ac_compiler_gnu=yes
4291 else
4292 ac_compiler_gnu=no
4293 fi
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4296
4297 fi
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4299 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4300 if test $ac_compiler_gnu = yes; then
4301 GCC=yes
4302 else
4303 GCC=
4304 fi
4305 ac_test_CFLAGS=${CFLAGS+set}
4306 ac_save_CFLAGS=$CFLAGS
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4308 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4309 if test "${ac_cv_prog_cc_g+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 ac_save_c_werror_flag=$ac_c_werror_flag
4313 ac_c_werror_flag=yes
4314 ac_cv_prog_cc_g=no
4315 CFLAGS="-g"
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h. */
4318
4319 int
4320 main ()
4321 {
4322
4323 ;
4324 return 0;
4325 }
4326 _ACEOF
4327 if ac_fn_c_try_compile "$LINENO"; then :
4328 ac_cv_prog_cc_g=yes
4329 else
4330 CFLAGS=""
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333
4334 int
4335 main ()
4336 {
4337
4338 ;
4339 return 0;
4340 }
4341 _ACEOF
4342 if ac_fn_c_try_compile "$LINENO"; then :
4343
4344 else
4345 ac_c_werror_flag=$ac_save_c_werror_flag
4346 CFLAGS="-g"
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349
4350 int
4351 main ()
4352 {
4353
4354 ;
4355 return 0;
4356 }
4357 _ACEOF
4358 if ac_fn_c_try_compile "$LINENO"; then :
4359 ac_cv_prog_cc_g=yes
4360 fi
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 fi
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 fi
4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 ac_c_werror_flag=$ac_save_c_werror_flag
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4369 $as_echo "$ac_cv_prog_cc_g" >&6; }
4370 if test "$ac_test_CFLAGS" = set; then
4371 CFLAGS=$ac_save_CFLAGS
4372 elif test $ac_cv_prog_cc_g = yes; then
4373 if test "$GCC" = yes; then
4374 CFLAGS="-g -O2"
4375 else
4376 CFLAGS="-g"
4377 fi
4378 else
4379 if test "$GCC" = yes; then
4380 CFLAGS="-O2"
4381 else
4382 CFLAGS=
4383 fi
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4386 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4387 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 ac_cv_prog_cc_c89=no
4391 ac_save_CC=$CC
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394 #include <stdarg.h>
4395 #include <stdio.h>
4396 #include <sys/types.h>
4397 #include <sys/stat.h>
4398 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4399 struct buf { int x; };
4400 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4401 static char *e (p, i)
4402 char **p;
4403 int i;
4404 {
4405 return p[i];
4406 }
4407 static char *f (char * (*g) (char **, int), char **p, ...)
4408 {
4409 char *s;
4410 va_list v;
4411 va_start (v,p);
4412 s = g (p, va_arg (v,int));
4413 va_end (v);
4414 return s;
4415 }
4416
4417 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4418 function prototypes and stuff, but not '\xHH' hex character constants.
4419 These don't provoke an error unfortunately, instead are silently treated
4420 as 'x'. The following induces an error, until -std is added to get
4421 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4422 array size at least. It's necessary to write '\x00'==0 to get something
4423 that's true only with -std. */
4424 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4425
4426 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4427 inside strings and character constants. */
4428 #define FOO(x) 'x'
4429 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4430
4431 int test (int i, double x);
4432 struct s1 {int (*f) (int a);};
4433 struct s2 {int (*f) (double a);};
4434 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4435 int argc;
4436 char **argv;
4437 int
4438 main ()
4439 {
4440 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4441 ;
4442 return 0;
4443 }
4444 _ACEOF
4445 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4446 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4447 do
4448 CC="$ac_save_CC $ac_arg"
4449 if ac_fn_c_try_compile "$LINENO"; then :
4450 ac_cv_prog_cc_c89=$ac_arg
4451 fi
4452 rm -f core conftest.err conftest.$ac_objext
4453 test "x$ac_cv_prog_cc_c89" != "xno" && break
4454 done
4455 rm -f conftest.$ac_ext
4456 CC=$ac_save_CC
4457
4458 fi
4459 # AC_CACHE_VAL
4460 case "x$ac_cv_prog_cc_c89" in
4461 x)
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4463 $as_echo "none needed" >&6; } ;;
4464 xno)
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4466 $as_echo "unsupported" >&6; } ;;
4467 *)
4468 CC="$CC $ac_cv_prog_cc_c89"
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4470 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4471 esac
4472 if test "x$ac_cv_prog_cc_c89" != xno; then :
4473
4474 fi
4475
4476 ac_ext=c
4477 ac_cpp='$CPP $CPPFLAGS'
4478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481
4482 ac_ext=cpp
4483 ac_cpp='$CXXCPP $CPPFLAGS'
4484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4487 if test -z "$CXX"; then
4488 if test -n "$CCC"; then
4489 CXX=$CCC
4490 else
4491 if test -n "$ac_tool_prefix"; then
4492 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4493 do
4494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if test "${ac_cv_prog_CXX+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 if test -n "$CXX"; then
4502 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4503 else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515 done
4516 done
4517 IFS=$as_save_IFS
4518
4519 fi
4520 fi
4521 CXX=$ac_cv_prog_CXX
4522 if test -n "$CXX"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4524 $as_echo "$CXX" >&6; }
4525 else
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4528 fi
4529
4530
4531 test -n "$CXX" && break
4532 done
4533 fi
4534 if test -z "$CXX"; then
4535 ac_ct_CXX=$CXX
4536 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4537 do
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$ac_ct_CXX"; then
4546 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_ac_ct_CXX="$ac_prog"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559 done
4560 done
4561 IFS=$as_save_IFS
4562
4563 fi
4564 fi
4565 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4566 if test -n "$ac_ct_CXX"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4568 $as_echo "$ac_ct_CXX" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4572 fi
4573
4574
4575 test -n "$ac_ct_CXX" && break
4576 done
4577
4578 if test "x$ac_ct_CXX" = x; then
4579 CXX="g++"
4580 else
4581 case $cross_compiling:$ac_tool_warned in
4582 yes:)
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4585 ac_tool_warned=yes ;;
4586 esac
4587 CXX=$ac_ct_CXX
4588 fi
4589 fi
4590
4591 fi
4592 fi
4593 # Provide some information about the compiler.
4594 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4595 set X $ac_compile
4596 ac_compiler=$2
4597 for ac_option in --version -v -V -qversion; do
4598 { { ac_try="$ac_compiler $ac_option >&5"
4599 case "(($ac_try" in
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4602 esac
4603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4604 $as_echo "$ac_try_echo"; } >&5
4605 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4606 ac_status=$?
4607 if test -s conftest.err; then
4608 sed '10a\
4609 ... rest of stderr output deleted ...
4610 10q' conftest.err >conftest.er1
4611 cat conftest.er1 >&5
4612 rm -f conftest.er1 conftest.err
4613 fi
4614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4615 test $ac_status = 0; }
4616 done
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4619 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4620 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4625
4626 int
4627 main ()
4628 {
4629 #ifndef __GNUC__
4630 choke me
4631 #endif
4632
4633 ;
4634 return 0;
4635 }
4636 _ACEOF
4637 if ac_fn_cxx_try_compile "$LINENO"; then :
4638 ac_compiler_gnu=yes
4639 else
4640 ac_compiler_gnu=no
4641 fi
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4644
4645 fi
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4647 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4648 if test $ac_compiler_gnu = yes; then
4649 GXX=yes
4650 else
4651 GXX=
4652 fi
4653 ac_test_CXXFLAGS=${CXXFLAGS+set}
4654 ac_save_CXXFLAGS=$CXXFLAGS
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4656 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4657 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4661 ac_cxx_werror_flag=yes
4662 ac_cv_prog_cxx_g=no
4663 CXXFLAGS="-g"
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666
4667 int
4668 main ()
4669 {
4670
4671 ;
4672 return 0;
4673 }
4674 _ACEOF
4675 if ac_fn_cxx_try_compile "$LINENO"; then :
4676 ac_cv_prog_cxx_g=yes
4677 else
4678 CXXFLAGS=""
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681
4682 int
4683 main ()
4684 {
4685
4686 ;
4687 return 0;
4688 }
4689 _ACEOF
4690 if ac_fn_cxx_try_compile "$LINENO"; then :
4691
4692 else
4693 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4694 CXXFLAGS="-g"
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697
4698 int
4699 main ()
4700 {
4701
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_cxx_try_compile "$LINENO"; then :
4707 ac_cv_prog_cxx_g=yes
4708 fi
4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 fi
4713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4715 fi
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4717 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4718 if test "$ac_test_CXXFLAGS" = set; then
4719 CXXFLAGS=$ac_save_CXXFLAGS
4720 elif test $ac_cv_prog_cxx_g = yes; then
4721 if test "$GXX" = yes; then
4722 CXXFLAGS="-g -O2"
4723 else
4724 CXXFLAGS="-g"
4725 fi
4726 else
4727 if test "$GXX" = yes; then
4728 CXXFLAGS="-O2"
4729 else
4730 CXXFLAGS=
4731 fi
4732 fi
4733 ac_ext=c
4734 ac_cpp='$CPP $CPPFLAGS'
4735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738
4739
4740 # We must set the default linker to the linker used by gcc for the correct
4741 # operation of libtool. If LD is not defined and we are using gcc, try to
4742 # set the LD default to the ld used by gcc.
4743 if test -z "$LD"; then
4744 if test "$GCC" = yes; then
4745 case $build in
4746 *-*-mingw*)
4747 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4748 *)
4749 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4750 esac
4751 case $gcc_prog_ld in
4752 # Accept absolute paths.
4753 [\\/]* | [A-Za-z]:[\\/]*)
4754 LD="$gcc_prog_ld" ;;
4755 esac
4756 fi
4757 fi
4758
4759
4760
4761
4762 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4764 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$GNATBIND"; then
4771 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4775 do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784 done
4785 done
4786 IFS=$as_save_IFS
4787
4788 fi
4789 fi
4790 GNATBIND=$ac_cv_prog_GNATBIND
4791 if test -n "$GNATBIND"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4793 $as_echo "$GNATBIND" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4797 fi
4798
4799
4800 fi
4801 if test -z "$ac_cv_prog_GNATBIND"; then
4802 ac_ct_GNATBIND=$GNATBIND
4803 # Extract the first word of "gnatbind", so it can be a program name with args.
4804 set dummy gnatbind; ac_word=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 if test -n "$ac_ct_GNATBIND"; then
4811 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824 done
4825 done
4826 IFS=$as_save_IFS
4827
4828 fi
4829 fi
4830 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4831 if test -n "$ac_ct_GNATBIND"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4833 $as_echo "$ac_ct_GNATBIND" >&6; }
4834 else
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4837 fi
4838
4839 if test "x$ac_ct_GNATBIND" = x; then
4840 GNATBIND="no"
4841 else
4842 case $cross_compiling:$ac_tool_warned in
4843 yes:)
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4846 ac_tool_warned=yes ;;
4847 esac
4848 GNATBIND=$ac_ct_GNATBIND
4849 fi
4850 else
4851 GNATBIND="$ac_cv_prog_GNATBIND"
4852 fi
4853
4854 if test -n "$ac_tool_prefix"; then
4855 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4856 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$GNATMAKE"; then
4863 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880 fi
4881 fi
4882 GNATMAKE=$ac_cv_prog_GNATMAKE
4883 if test -n "$GNATMAKE"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4885 $as_echo "$GNATMAKE" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4889 fi
4890
4891
4892 fi
4893 if test -z "$ac_cv_prog_GNATMAKE"; then
4894 ac_ct_GNATMAKE=$GNATMAKE
4895 # Extract the first word of "gnatmake", so it can be a program name with args.
4896 set dummy gnatmake; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$ac_ct_GNATMAKE"; then
4903 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4923 if test -n "$ac_ct_GNATMAKE"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4925 $as_echo "$ac_ct_GNATMAKE" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931 if test "x$ac_ct_GNATMAKE" = x; then
4932 GNATMAKE="no"
4933 else
4934 case $cross_compiling:$ac_tool_warned in
4935 yes:)
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4938 ac_tool_warned=yes ;;
4939 esac
4940 GNATMAKE=$ac_ct_GNATMAKE
4941 fi
4942 else
4943 GNATMAKE="$ac_cv_prog_GNATMAKE"
4944 fi
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4947 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4948 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 cat >conftest.adb <<EOF
4952 procedure conftest is begin null; end conftest;
4953 EOF
4954 acx_cv_cc_gcc_supports_ada=no
4955 # There is a bug in old released versions of GCC which causes the
4956 # driver to exit successfully when the appropriate language module
4957 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4958 # Therefore we must check for the error message as well as an
4959 # unsuccessful exit.
4960 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4961 # given a .adb file, but produce no object file. So we must check
4962 # if an object file was really produced to guard against this.
4963 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4964 if test x"$errors" = x && test -f conftest.$ac_objext; then
4965 acx_cv_cc_gcc_supports_ada=yes
4966 fi
4967 rm -f conftest.*
4968 fi
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4970 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4971
4972 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4973 have_gnat=yes
4974 else
4975 have_gnat=no
4976 fi
4977
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4979 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4980 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 echo abfoo >t1
4984 echo cdfoo >t2
4985 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4986 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4987 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4988 :
4989 else
4990 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4991 fi
4992 fi
4993 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4994 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4995 :
4996 else
4997 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4998 fi
4999 fi
5000 rm t1 t2
5001
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5004 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5005 do_compare="$gcc_cv_prog_cmp_skip"
5006
5007
5008
5009 # See if we are building gcc with C++.
5010 # Check whether --enable-build-with-cxx was given.
5011 if test "${enable_build_with_cxx+set}" = set; then :
5012 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5013 else
5014 ENABLE_BUILD_WITH_CXX=no
5015 fi
5016
5017
5018 # Check for GMP, MPFR and MPC
5019 gmplibs="-lmpfr -lgmp"
5020 gmpinc=
5021 have_gmp=no
5022 mpclibs=-lmpc
5023 mpcinc=
5024 have_mpc=no
5025
5026 # Specify a location for mpc
5027 # check for this first so it ends up on the link line before mpfr.
5028
5029 # Check whether --with-mpc was given.
5030 if test "${with_mpc+set}" = set; then :
5031 withval=$with_mpc;
5032 fi
5033
5034
5035 # Check whether --with-mpc_include was given.
5036 if test "${with_mpc_include+set}" = set; then :
5037 withval=$with_mpc_include;
5038 fi
5039
5040
5041 # Check whether --with-mpc_lib was given.
5042 if test "${with_mpc_lib+set}" = set; then :
5043 withval=$with_mpc_lib;
5044 fi
5045
5046
5047 if test "x$with_mpc" != x; then
5048 mpclibs="-L$with_mpc/lib -lmpc"
5049 mpcinc="-I$with_mpc/include $mpcinc"
5050 fi
5051 if test "x$with_mpc_include" != x; then
5052 mpcinc="-I$with_mpc_include $mpcinc"
5053 fi
5054 if test "x$with_mpc_lib" != x; then
5055 mpclibs="-L$with_mpc_lib -lmpc"
5056 fi
5057 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5058 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
5059 mpcinc='-I$$s/mpc/src '"$mpcinc"
5060 # Do not test the mpc version. Assume that it is sufficient, since
5061 # it is in the source tree, and the library has not been built yet
5062 # but it would be included on the link line in the version check below
5063 # hence making the test fail.
5064 have_mpc=yes
5065 fi
5066
5067 # Specify a location for mpfr
5068 # check for this first so it ends up on the link line before gmp.
5069
5070 # Check whether --with-mpfr-dir was given.
5071 if test "${with_mpfr_dir+set}" = set; then :
5072 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5073 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5074 fi
5075
5076
5077
5078 # Check whether --with-mpfr was given.
5079 if test "${with_mpfr+set}" = set; then :
5080 withval=$with_mpfr;
5081 fi
5082
5083
5084 # Check whether --with-mpfr_include was given.
5085 if test "${with_mpfr_include+set}" = set; then :
5086 withval=$with_mpfr_include;
5087 fi
5088
5089
5090 # Check whether --with-mpfr_lib was given.
5091 if test "${with_mpfr_lib+set}" = set; then :
5092 withval=$with_mpfr_lib;
5093 fi
5094
5095
5096 if test "x$with_mpfr" != x; then
5097 gmplibs="-L$with_mpfr/lib $gmplibs"
5098 gmpinc="-I$with_mpfr/include"
5099 fi
5100 if test "x$with_mpfr_include" != x; then
5101 gmpinc="-I$with_mpfr_include"
5102 fi
5103 if test "x$with_mpfr_lib" != x; then
5104 gmplibs="-L$with_mpfr_lib $gmplibs"
5105 fi
5106 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5107 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
5108 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5109 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
5110 # Do not test the mpfr version. Assume that it is sufficient, since
5111 # it is in the source tree, and the library has not been built yet
5112 # but it would be included on the link line in the version check below
5113 # hence making the test fail.
5114 have_gmp=yes
5115 fi
5116
5117 # Specify a location for gmp
5118
5119 # Check whether --with-gmp-dir was given.
5120 if test "${with_gmp_dir+set}" = set; then :
5121 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5122 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5123 fi
5124
5125
5126
5127 # Check whether --with-gmp was given.
5128 if test "${with_gmp+set}" = set; then :
5129 withval=$with_gmp;
5130 fi
5131
5132
5133 # Check whether --with-gmp_include was given.
5134 if test "${with_gmp_include+set}" = set; then :
5135 withval=$with_gmp_include;
5136 fi
5137
5138
5139 # Check whether --with-gmp_lib was given.
5140 if test "${with_gmp_lib+set}" = set; then :
5141 withval=$with_gmp_lib;
5142 fi
5143
5144
5145
5146 if test "x$with_gmp" != x; then
5147 gmplibs="-L$with_gmp/lib $gmplibs"
5148 gmpinc="-I$with_gmp/include $gmpinc"
5149 fi
5150 if test "x$with_gmp_include" != x; then
5151 gmpinc="-I$with_gmp_include $gmpinc"
5152 fi
5153 if test "x$with_gmp_lib" != x; then
5154 gmplibs="-L$with_gmp_lib $gmplibs"
5155 fi
5156 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5157 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
5158 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5159 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
5160 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
5161 # Do not test the gmp version. Assume that it is sufficient, since
5162 # it is in the source tree, and the library has not been built yet
5163 # but it would be included on the link line in the version check below
5164 # hence making the test fail.
5165 have_gmp=yes
5166 fi
5167
5168 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5169 have_gmp=yes
5170 saved_CFLAGS="$CFLAGS"
5171 CFLAGS="$CFLAGS $gmpinc"
5172 # Check GMP actually works
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of gmp.h" >&5
5174 $as_echo_n "checking for correct version of gmp.h... " >&6; }
5175
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 #include "gmp.h"
5179 int
5180 main ()
5181 {
5182
5183 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
5184 choke me
5185 #endif
5186
5187 ;
5188 return 0;
5189 }
5190 _ACEOF
5191 if ac_fn_c_try_compile "$LINENO"; then :
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5193 $as_echo "yes" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }; have_gmp=no
5197 fi
5198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199
5200 # If we have GMP, check the MPFR version.
5201 if test x"$have_gmp" = xyes; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of mpfr.h" >&5
5203 $as_echo_n "checking for correct version of mpfr.h... " >&6; }
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206 #include <gmp.h>
5207 #include <mpfr.h>
5208 int
5209 main ()
5210 {
5211
5212 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5213 choke me
5214 #endif
5215
5216 ;
5217 return 0;
5218 }
5219 _ACEOF
5220 if ac_fn_c_try_compile "$LINENO"; then :
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5223 #include <gmp.h>
5224 #include <mpfr.h>
5225 int
5226 main ()
5227 {
5228
5229 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
5230 choke me
5231 #endif
5232
5233 ;
5234 return 0;
5235 }
5236 _ACEOF
5237 if ac_fn_c_try_compile "$LINENO"; then :
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5239 $as_echo "yes" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5242 $as_echo "buggy but acceptable" >&6; }
5243 fi
5244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5245 else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }; have_gmp=no
5248 fi
5249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250 fi
5251
5252 # Check for the MPC header version.
5253 if test x"$have_mpc" != xyes ; then
5254 CFLAGS="$CFLAGS $mpcinc"
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5256 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5259 #include <mpc.h>
5260 int
5261 main ()
5262 {
5263
5264 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
5265 choke me
5266 #endif
5267
5268 ;
5269 return 0;
5270 }
5271 _ACEOF
5272 if ac_fn_c_try_compile "$LINENO"; then :
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5274 $as_echo "yes" >&6; }; have_mpc=maybe
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
5278 fi
5279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 fi
5281
5282 # Now check the MPFR library.
5283 if test x"$have_gmp" = xyes; then
5284 saved_LIBS="$LIBS"
5285 LIBS="$LIBS $gmplibs"
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
5287 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 #include <gmp.h>
5291 #include <mpfr.h>
5292 int
5293 main ()
5294 {
5295
5296 mpfr_t n;
5297 mpfr_t x;
5298 int t;
5299 mpfr_init (n);
5300 mpfr_init (x);
5301 mpfr_atan2 (n, n, x, GMP_RNDN);
5302 mpfr_erfc (n, x, GMP_RNDN);
5303 mpfr_subnormalize (x, t, GMP_RNDN);
5304
5305 ;
5306 return 0;
5307 }
5308 _ACEOF
5309 if ac_fn_c_try_link "$LINENO"; then :
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5311 $as_echo "yes" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }; have_gmp=no
5315 fi
5316 rm -f core conftest.err conftest.$ac_objext \
5317 conftest$ac_exeext conftest.$ac_ext
5318 LIBS="$saved_LIBS"
5319 fi
5320
5321 if test x"$have_mpc" = xmaybe; then
5322 saved_LIBS="$LIBS"
5323 LIBS="$LIBS $mpclibs $gmplibs"
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc library" >&5
5325 $as_echo_n "checking for the correct version of the mpc library... " >&6; }
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328 #include <mpc.h>
5329 int
5330 main ()
5331 {
5332
5333 mpc_t n;
5334 mpc_init2 (n, 53);
5335 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5336 mpc_sin (n, n, MPC_RNDNN);
5337 mpc_cos (n, n, MPC_RNDNN);
5338 mpc_tan (n, n, MPC_RNDNN);
5339 mpc_sinh (n, n, MPC_RNDNN);
5340 mpc_cosh (n, n, MPC_RNDNN);
5341 mpc_tanh (n, n, MPC_RNDNN);
5342 mpc_exp (n, n, MPC_RNDNN);
5343 mpc_log (n, n, MPC_RNDNN);
5344 mpc_sqrt (n, n, MPC_RNDNN);
5345 mpc_proj (n, n, MPC_RNDNN);
5346 mpc_neg (n, n, MPC_RNDNN);
5347 mpc_sqr (n, n, MPC_RNDNN);
5348 mpc_clear (n);
5349
5350 ;
5351 return 0;
5352 }
5353 _ACEOF
5354 if ac_fn_c_try_link "$LINENO"; then :
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356 $as_echo "yes" >&6; }; have_mpc=yes
5357 else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext conftest.$ac_ext
5363 LIBS="$saved_LIBS"
5364 fi
5365
5366 CFLAGS="$saved_CFLAGS"
5367
5368 if test x$have_gmp != xyes; then
5369 as_fn_error "Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
5370 Try the --with-gmp and/or --with-mpfr options to specify their locations.
5371 Copies of these libraries' source code can be found at their respective
5372 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
5373 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5374 If you obtained GMP and/or MPFR from a vendor distribution package, make
5375 sure that you have installed both the libraries and the header files.
5376 They may be located in separate packages." "$LINENO" 5
5377 fi
5378 fi
5379
5380 if test x$have_mpc != xyes ; then
5381 mpcinc=
5382 mpclibs=
5383 fi
5384
5385 gmpinc="$mpcinc $gmpinc"
5386 gmplibs="$mpclibs $gmplibs"
5387
5388 # Flags needed for both GMP, MPFR and/or MPC.
5389
5390
5391
5392
5393
5394
5395 # Allow host libstdc++ to be specified for static linking with PPL.
5396
5397 # Check whether --with-host-libstdcxx was given.
5398 if test "${with_host_libstdcxx+set}" = set; then :
5399 withval=$with_host_libstdcxx;
5400 fi
5401
5402
5403 case $with_host_libstdcxx in
5404 no|yes)
5405 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5406 ;;
5407 esac
5408
5409 # Linker flags to use for stage1 or when not boostrapping.
5410
5411 # Check whether --with-stage1-ldflags was given.
5412 if test "${with_stage1_ldflags+set}" = set; then :
5413 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5414 stage1_ldflags=
5415 else
5416 stage1_ldflags=$withval
5417 fi
5418 else
5419 stage1_ldflags=
5420 fi
5421
5422
5423
5424 # Libraries to use for stage1 or when not bootstrapping.
5425
5426 # Check whether --with-stage1-libs was given.
5427 if test "${with_stage1_libs+set}" = set; then :
5428 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5429 stage1_libs=
5430 else
5431 stage1_libs=$withval
5432 fi
5433 else
5434 stage1_libs=$with_host_libstdcxx
5435 fi
5436
5437
5438
5439 # Linker flags to use for stage2 and later builds.
5440
5441 # Check whether --with-boot-ldflags was given.
5442 if test "${with_boot_ldflags+set}" = set; then :
5443 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5444 poststage1_ldflags=
5445 else
5446 poststage1_ldflags=$withval
5447 fi
5448 else
5449 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5450 poststage1_ldflags=-static-libstdc++
5451 else
5452 poststage1_ldflags=
5453 fi
5454 fi
5455
5456
5457
5458 # Libraries to use for stage2 and later builds. This defaults to the
5459 # argument passed to --with-host-libstdcxx.
5460
5461 # Check whether --with-boot-libs was given.
5462 if test "${with_boot_libs+set}" = set; then :
5463 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5464 poststage1_libs=
5465 else
5466 poststage1_libs=$withval
5467 fi
5468 else
5469 poststage1_libs=$with_host_libstdcxx
5470 fi
5471
5472
5473
5474 # Check for PPL
5475 ppl_major_version=0
5476 ppl_minor_version=10
5477 ppllibs=" -lppl_c -lppl -lgmpxx"
5478 pplinc=
5479
5480
5481 # Check whether --with-ppl was given.
5482 if test "${with_ppl+set}" = set; then :
5483 withval=$with_ppl;
5484 else
5485 with_ppl=no
5486 fi
5487
5488
5489 # Check whether --with-ppl_include was given.
5490 if test "${with_ppl_include+set}" = set; then :
5491 withval=$with_ppl_include;
5492 fi
5493
5494
5495 # Check whether --with-ppl_lib was given.
5496 if test "${with_ppl_lib+set}" = set; then :
5497 withval=$with_ppl_lib;
5498 fi
5499
5500
5501 case $with_ppl in
5502 no)
5503 ppllibs=
5504 ;;
5505 *)
5506 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5507 pplinc="-I$with_ppl/include $pplinc"
5508 LIBS="$ppllibs $LIBS"
5509 ;;
5510 esac
5511 if test "x$with_ppl_include" != x; then
5512 pplinc="-I$with_ppl_include $pplinc"
5513 fi
5514 if test "x$with_ppl_lib" != x; then
5515 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5516 LIBS="$ppllibs $LIBS"
5517 fi
5518 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5519 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
5520 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5521 LIBS="$ppllibs $LIBS"
5522 fi
5523
5524 # Check whether --enable-ppl-version-check was given.
5525 if test "${enable_ppl_version_check+set}" = set; then :
5526 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5527 else
5528 ENABLE_PPL_CHECK=yes
5529 fi
5530
5531
5532 if test "${ENABLE_PPL_CHECK}" = "yes"; then
5533 saved_CFLAGS="$CFLAGS"
5534 CFLAGS="$CFLAGS $pplinc $gmpinc"
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5536 $as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5539 #include "ppl_c.h"
5540 int
5541 main ()
5542 {
5543
5544 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5545 choke me
5546 #endif
5547
5548 ;
5549 return 0;
5550 }
5551 _ACEOF
5552 if ac_fn_c_try_compile "$LINENO"; then :
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5554 $as_echo "yes" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }; ppllibs= ; pplinc=
5558 fi
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 CFLAGS="$saved_CFLAGS"
5561 fi
5562
5563 # Flags needed for PPL
5564
5565
5566
5567
5568 # Check for CLOOG
5569 clooglibs=" -lcloog "
5570 clooginc=" -DCLOOG_PPL_BACKEND "
5571
5572
5573 # Check whether --with-cloog was given.
5574 if test "${with_cloog+set}" = set; then :
5575 withval=$with_cloog;
5576 else
5577 with_cloog=no
5578 fi
5579
5580
5581 # Check whether --with-cloog_include was given.
5582 if test "${with_cloog_include+set}" = set; then :
5583 withval=$with_cloog_include;
5584 fi
5585
5586
5587 # Check whether --with-cloog_lib was given.
5588 if test "${with_cloog_lib+set}" = set; then :
5589 withval=$with_cloog_lib;
5590 fi
5591
5592
5593 case $with_cloog in
5594 no)
5595 clooglibs=
5596 clooginc=
5597 ;;
5598 *)
5599 clooglibs="-L$with_cloog/lib -lcloog"
5600 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5601 LIBS="$clooglibs $LIBS"
5602 ;;
5603 esac
5604 if test "x$with_cloog_include" != x; then
5605 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5606 fi
5607 if test "x$with_cloog_lib" != x; then
5608 clooglibs="-L$with_cloog_lib -lcloog"
5609 LIBS="$clooglibs $LIBS"
5610 fi
5611 if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5612 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5613 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5614 LIBS="$clooglibs $LIBS"
5615 fi
5616
5617 # Check whether --enable-cloog-version-check was given.
5618 if test "${enable_cloog_version_check+set}" = set; then :
5619 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5620 else
5621 ENABLE_CLOOG_CHECK=yes
5622 fi
5623
5624
5625 if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5626 saved_CFLAGS="$CFLAGS"
5627 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
5629 $as_echo_n "checking for correct version of CLooG... " >&6; }
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #include "cloog/cloog.h"
5633 int
5634 main ()
5635 {
5636
5637 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5638 choke me
5639 #endif
5640
5641 ;
5642 return 0;
5643 }
5644 _ACEOF
5645 if ac_fn_c_try_compile "$LINENO"; then :
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5647 $as_echo "yes" >&6; }
5648 else
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }; clooglibs= ; clooginc=
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 CFLAGS="$saved_CFLAGS"
5654 fi
5655
5656 # Flags needed for CLOOG
5657
5658
5659
5660
5661 # By default, C is the only stage 1 language.
5662 stage1_languages=,c,
5663
5664 # Target libraries that we bootstrap.
5665 bootstrap_target_libs=,target-libgcc,
5666
5667 # Figure out what language subdirectories are present.
5668 # Look if the user specified --enable-languages="..."; if not, use
5669 # the environment variable $LANGUAGES if defined. $LANGUAGES might
5670 # go away some day.
5671 # NB: embedded tabs in this IF block -- do not untabify
5672 if test -d ${srcdir}/gcc; then
5673 if test x"${enable_languages+set}" != xset; then
5674 if test x"${LANGUAGES+set}" = xset; then
5675 enable_languages="${LANGUAGES}"
5676 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5677 else
5678 enable_languages=all
5679 fi
5680 else
5681 if test x"${enable_languages}" = x ||
5682 test x"${enable_languages}" = xyes;
5683 then
5684 echo configure.in: --enable-languages needs at least one language argument 1>&2
5685 exit 1
5686 fi
5687 fi
5688 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5689
5690 # 'f95' is the old name for the 'fortran' language. We issue a warning
5691 # and make the substitution.
5692 case ,${enable_languages}, in
5693 *,f95,*)
5694 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5695 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5696 ;;
5697 esac
5698
5699 # First scan to see if an enabled language requires some other language.
5700 # We assume that a given config-lang.in will list all the language
5701 # front ends it requires, even if some are required indirectly.
5702 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5703 case ${lang_frag} in
5704 ..) ;;
5705 # The odd quoting in the next line works around
5706 # an apparent bug in bash 1.12 on linux.
5707 ${srcdir}/gcc/[*]/config-lang.in) ;;
5708 *)
5709 # From the config-lang.in, get $language, $lang_requires
5710 language=
5711 lang_requires=
5712 . ${lang_frag}
5713 for other in ${lang_requires} ; do
5714 case ,${enable_languages}, in
5715 *,$other,*) ;;
5716 *,all,*) ;;
5717 *,$language,*)
5718 echo " \`$other' language required by \`$language'; enabling" 1>&2
5719 enable_languages="${enable_languages},${other}"
5720 ;;
5721 esac
5722 done
5723 ;;
5724 esac
5725 done
5726
5727 new_enable_languages=,c,
5728 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
5729 potential_languages=,c,
5730
5731 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5732 case ${lang_frag} in
5733 ..) ;;
5734 # The odd quoting in the next line works around
5735 # an apparent bug in bash 1.12 on linux.
5736 ${srcdir}/gcc/[*]/config-lang.in) ;;
5737 *)
5738 # From the config-lang.in, get $language, $target_libs,
5739 # $lang_dirs, $boot_language, and $build_by_default
5740 language=
5741 target_libs=
5742 lang_dirs=
5743 subdir_requires=
5744 boot_language=no
5745 build_by_default=yes
5746 . ${lang_frag}
5747 if test x${language} = x; then
5748 echo "${lang_frag} doesn't set \$language." 1>&2
5749 exit 1
5750 fi
5751
5752 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5753 boot_language=yes
5754 fi
5755
5756 case ,${enable_languages}, in
5757 *,${language},*)
5758 # Language was explicitly selected; include it.
5759 add_this_lang=yes
5760 ;;
5761 *,all,*)
5762 # 'all' was selected, select it if it is a default language
5763 add_this_lang=${build_by_default}
5764 ;;
5765 *)
5766 add_this_lang=no
5767 ;;
5768 esac
5769
5770 # Disable languages that need other directories if these aren't available.
5771 for i in $subdir_requires; do
5772 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5773 case ,${enable_languages}, in
5774 *,${language},*)
5775 # Specifically requested language; tell them.
5776 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
5777 ;;
5778 *)
5779 # Silently disable.
5780 add_this_lang=unsupported
5781 ;;
5782 esac
5783 done
5784
5785 # Disable Ada if no preexisting GNAT is available.
5786 case ,${enable_languages},:${language}:${have_gnat} in
5787 *,${language},*:ada:no)
5788 # Specifically requested language; tell them.
5789 as_fn_error "GNAT is required to build $language" "$LINENO" 5
5790 ;;
5791 *:ada:no)
5792 # Silently disable.
5793 add_this_lang=unsupported
5794 ;;
5795 esac
5796
5797 # Disable a language that is unsupported by the target.
5798 case " $unsupported_languages " in
5799 *" $language "*)
5800 add_this_lang=unsupported
5801 ;;
5802 esac
5803
5804 case $add_this_lang in
5805 unsupported)
5806 # Remove language-dependent dirs.
5807 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5808 ;;
5809 no)
5810 # Remove language-dependent dirs; still show language as supported.
5811 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5812 potential_languages="${potential_languages}${language},"
5813 ;;
5814 yes)
5815 new_enable_languages="${new_enable_languages}${language},"
5816 potential_languages="${potential_languages}${language},"
5817 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5818 case ${boot_language} in
5819 yes)
5820 # Add to (comma-separated) list of stage 1 languages.
5821 stage1_languages="${stage1_languages}${language},"
5822 # We need to bootstrap any supporting libraries.
5823 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
5824 ;;
5825 esac
5826 ;;
5827 esac
5828 ;;
5829 esac
5830 done
5831
5832 # Check whether --enable-stage1-languages was given.
5833 if test "${enable_stage1_languages+set}" = set; then :
5834 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
5835 ,no,|,,)
5836 # Set it to something that will have no effect in the loop below
5837 enable_stage1_languages=c ;;
5838 ,yes,)
5839 enable_stage1_languages=`echo $new_enable_languages | \
5840 sed -e "s/^,//" -e "s/,$//" ` ;;
5841 *,all,*)
5842 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5843 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5844 esac
5845
5846 # Add "good" languages from enable_stage1_languages to stage1_languages,
5847 # while "bad" languages go in missing_languages. Leave no duplicates.
5848 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5849 case $potential_languages in
5850 *,$i,*)
5851 case $stage1_languages in
5852 *,$i,*) ;;
5853 *) stage1_languages="$stage1_languages$i," ;;
5854 esac ;;
5855 *)
5856 case $missing_languages in
5857 *,$i,*) ;;
5858 *) missing_languages="$missing_languages$i," ;;
5859 esac ;;
5860 esac
5861 done
5862 fi
5863
5864
5865 # Remove leading/trailing commas that were added for simplicity
5866 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
5867 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
5868 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5869 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5870
5871 if test "x$missing_languages" != x; then
5872 as_fn_error "
5873 The following requested languages could not be built: ${missing_languages}
5874 Supported languages are: ${potential_languages}" "$LINENO" 5
5875 fi
5876 if test "x$new_enable_languages" != "x$enable_languages"; then
5877 echo The following languages will be built: ${new_enable_languages}
5878 enable_languages="$new_enable_languages"
5879 fi
5880
5881
5882 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
5883 fi
5884
5885 # Handle --disable-<component> generically.
5886 for dir in $configdirs $build_configdirs $target_configdirs ; do
5887 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
5888 varname=`echo $dirname | sed -e s/+/_/g`
5889 if eval test x\${enable_${varname}} "=" xno ; then
5890 noconfigdirs="$noconfigdirs $dir"
5891 fi
5892 done
5893
5894 # Check for Boehm's garbage collector
5895 # Check whether --enable-objc-gc was given.
5896 if test "${enable_objc_gc+set}" = set; then :
5897 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
5898 *,objc,*:*:yes:*target-boehm-gc*)
5899 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
5900 ;;
5901 esac
5902 fi
5903
5904
5905 # Make sure we only build Boehm's garbage collector if required.
5906 case ,${enable_languages},:${enable_objc_gc} in
5907 *,objc,*:yes)
5908 # Keep target-boehm-gc if requested for Objective-C.
5909 ;;
5910 *)
5911 # Otherwise remove target-boehm-gc depending on target-libjava.
5912 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5913 noconfigdirs="$noconfigdirs target-boehm-gc"
5914 fi
5915 ;;
5916 esac
5917
5918 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5919 # $build_configdirs and $target_configdirs.
5920 # If we have the source for $noconfigdirs entries, add them to $notsupp.
5921
5922 notsupp=""
5923 for dir in . $skipdirs $noconfigdirs ; do
5924 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
5925 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5926 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5927 if test -r $srcdir/$dirname/configure ; then
5928 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5929 true
5930 else
5931 notsupp="$notsupp $dir"
5932 fi
5933 fi
5934 fi
5935 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5936 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5937 if test -r $srcdir/$dirname/configure ; then
5938 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5939 true
5940 else
5941 notsupp="$notsupp $dir"
5942 fi
5943 fi
5944 fi
5945 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5946 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5947 if test -r $srcdir/$dirname/configure ; then
5948 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5949 true
5950 else
5951 notsupp="$notsupp $dir"
5952 fi
5953 fi
5954 fi
5955 done
5956
5957 # Sometimes the tools are distributed with libiberty but with no other
5958 # libraries. In that case, we don't want to build target-libiberty.
5959 # Don't let libgcc imply libiberty either.
5960 if test -n "${target_configdirs}" ; then
5961 libgcc=
5962 others=
5963 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
5964 if test "$i" = "libgcc"; then
5965 libgcc=target-libgcc
5966 elif test "$i" != "libiberty" ; then
5967 if test -r $srcdir/$i/configure ; then
5968 others=yes;
5969 break;
5970 fi
5971 fi
5972 done
5973 if test -z "${others}" ; then
5974 target_configdirs=$libgcc
5975 fi
5976 fi
5977
5978 # Quietly strip out all directories which aren't configurable in this tree.
5979 # This relies on all configurable subdirectories being autoconfiscated, which
5980 # is now the case.
5981 build_configdirs_all="$build_configdirs"
5982 build_configdirs=
5983 for i in ${build_configdirs_all} ; do
5984 j=`echo $i | sed -e s/build-//g`
5985 if test -f ${srcdir}/$j/configure ; then
5986 build_configdirs="${build_configdirs} $i"
5987 fi
5988 done
5989
5990 configdirs_all="$configdirs"
5991 configdirs=
5992 for i in ${configdirs_all} ; do
5993 if test -f ${srcdir}/$i/configure ; then
5994 configdirs="${configdirs} $i"
5995 fi
5996 done
5997
5998 target_configdirs_all="$target_configdirs"
5999 target_configdirs=
6000 for i in ${target_configdirs_all} ; do
6001 j=`echo $i | sed -e s/target-//g`
6002 if test -f ${srcdir}/$j/configure ; then
6003 target_configdirs="${target_configdirs} $i"
6004 fi
6005 done
6006
6007 # Produce a warning message for the subdirs we can't configure.
6008 # This isn't especially interesting in the Cygnus tree, but in the individual
6009 # FSF releases, it's important to let people know when their machine isn't
6010 # supported by the one or two programs in a package.
6011
6012 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6013 # If $appdirs is non-empty, at least one of those directories must still
6014 # be configured, or we error out. (E.g., if the gas release supports a
6015 # specified target in some subdirs but not the gas subdir, we shouldn't
6016 # pretend that all is well.)
6017 if test -n "$appdirs" ; then
6018 for dir in $appdirs ; do
6019 if test -r $dir/Makefile.in ; then
6020 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6021 appdirs=""
6022 break
6023 fi
6024 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6025 appdirs=""
6026 break
6027 fi
6028 fi
6029 done
6030 if test -n "$appdirs" ; then
6031 echo "*** This configuration is not supported by this package." 1>&2
6032 exit 1
6033 fi
6034 fi
6035 # Okay, some application will build, or we don't care to check. Still
6036 # notify of subdirs not getting built.
6037 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6038 echo " ${notsupp}" 1>&2
6039 echo " (Any other directories should still work fine.)" 1>&2
6040 fi
6041
6042 case "$host" in
6043 *msdosdjgpp*)
6044 enable_gdbtk=no ;;
6045 esac
6046
6047 # To find our prefix, in gcc_cv_tool_prefix.
6048
6049 # The user is always right.
6050 if test "${PATH_SEPARATOR+set}" != set; then
6051 echo "#! /bin/sh" >conf$$.sh
6052 echo "exit 0" >>conf$$.sh
6053 chmod +x conf$$.sh
6054 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6055 PATH_SEPARATOR=';'
6056 else
6057 PATH_SEPARATOR=:
6058 fi
6059 rm -f conf$$.sh
6060 fi
6061
6062
6063
6064 if test "x$exec_prefix" = xNONE; then
6065 if test "x$prefix" = xNONE; then
6066 gcc_cv_tool_prefix=$ac_default_prefix
6067 else
6068 gcc_cv_tool_prefix=$prefix
6069 fi
6070 else
6071 gcc_cv_tool_prefix=$exec_prefix
6072 fi
6073
6074 # If there is no compiler in the tree, use the PATH only. In any
6075 # case, if there is no compiler in the tree nobody should use
6076 # AS_FOR_TARGET and LD_FOR_TARGET.
6077 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6078 gcc_version=`cat $srcdir/gcc/BASE-VER`
6079 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6080 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6081 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6082 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6083 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6084 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6085 else
6086 gcc_cv_tool_dirs=
6087 fi
6088
6089 if test x$build = x$target && test -n "$md_exec_prefix"; then
6090 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6091 fi
6092
6093
6094
6095 copy_dirs=
6096
6097
6098 # Check whether --with-build-sysroot was given.
6099 if test "${with_build_sysroot+set}" = set; then :
6100 withval=$with_build_sysroot; if test x"$withval" != x ; then
6101 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6102 fi
6103 else
6104 SYSROOT_CFLAGS_FOR_TARGET=
6105 fi
6106
6107
6108
6109
6110 # Check whether --with-debug-prefix-map was given.
6111 if test "${with_debug_prefix_map+set}" = set; then :
6112 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6113 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6114 for debug_map in $withval; do
6115 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6116 done
6117 fi
6118 else
6119 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6120 fi
6121
6122
6123
6124 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6125 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6126 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6127 # We want to ensure that TARGET libraries (which we know are built with
6128 # gcc) are built with "-O2 -g", so include those options when setting
6129 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6130 if test "x$CFLAGS_FOR_TARGET" = x; then
6131 CFLAGS_FOR_TARGET=$CFLAGS
6132 case " $CFLAGS " in
6133 *" -O2 "*) ;;
6134 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6135 esac
6136 case " $CFLAGS " in
6137 *" -g "* | *" -g3 "*) ;;
6138 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6139 esac
6140 fi
6141
6142
6143 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6144 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6145 case " $CXXFLAGS " in
6146 *" -O2 "*) ;;
6147 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6148 esac
6149 case " $CXXFLAGS " in
6150 *" -g "* | *" -g3 "*) ;;
6151 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6152 esac
6153 fi
6154
6155
6156 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6157 # the named directory are copied to $(tooldir)/sys-include.
6158 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6159 if test x${is_cross_compiler} = xno ; then
6160 echo 1>&2 '***' --with-headers is only supported when cross compiling
6161 exit 1
6162 fi
6163 if test x"${with_headers}" != xyes ; then
6164 x=${gcc_cv_tool_prefix}
6165 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6166 fi
6167 fi
6168
6169 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6170 # the name directories are copied to $(tooldir)/lib. Multiple directories
6171 # are permitted.
6172 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6173 if test x${is_cross_compiler} = xno ; then
6174 echo 1>&2 '***' --with-libs is only supported when cross compiling
6175 exit 1
6176 fi
6177 if test x"${with_libs}" != xyes ; then
6178 # Copy the libraries in reverse order, so that files in the first named
6179 # library override files in subsequent libraries.
6180 x=${gcc_cv_tool_prefix}
6181 for l in ${with_libs}; do
6182 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6183 done
6184 fi
6185 fi
6186
6187 # Set with_gnu_as and with_gnu_ld as appropriate.
6188 #
6189 # This is done by determining whether or not the appropriate directory
6190 # is available, and by checking whether or not specific configurations
6191 # have requested that this magic not happen.
6192 #
6193 # The command line options always override the explicit settings in
6194 # configure.in, and the settings in configure.in override this magic.
6195 #
6196 # If the default for a toolchain is to use GNU as and ld, and you don't
6197 # want to do that, then you should use the --without-gnu-as and
6198 # --without-gnu-ld options for the configure script.
6199
6200 if test x${use_gnu_as} = x &&
6201 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6202 with_gnu_as=yes
6203 extra_host_args="$extra_host_args --with-gnu-as"
6204 fi
6205
6206 if test x${use_gnu_ld} = x &&
6207 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6208 with_gnu_ld=yes
6209 extra_host_args="$extra_host_args --with-gnu-ld"
6210 fi
6211
6212 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6213 # can detect this case.
6214
6215 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6216 with_newlib=yes
6217 extra_host_args="$extra_host_args --with-newlib"
6218 fi
6219
6220 # Handle ${copy_dirs}
6221 set fnord ${copy_dirs}
6222 shift
6223 while test $# != 0 ; do
6224 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6225 :
6226 else
6227 echo Copying $1 to $2
6228
6229 # Use the install script to create the directory and all required
6230 # parent directories.
6231 if test -d $2 ; then
6232 :
6233 else
6234 echo >config.temp
6235 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6236 fi
6237
6238 # Copy the directory, assuming we have tar.
6239 # FIXME: Should we use B in the second tar? Not all systems support it.
6240 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6241
6242 # It is the responsibility of the user to correctly adjust all
6243 # symlinks. If somebody can figure out how to handle them correctly
6244 # here, feel free to add the code.
6245
6246 echo $1 > $2/COPIED
6247 fi
6248 shift; shift
6249 done
6250
6251 # Determine a target-dependent exec_prefix that the installed
6252 # gcc will search in. Keep this list sorted by triplet, with
6253 # the *-*-osname triplets last.
6254 md_exec_prefix=
6255 case "${target}" in
6256 alpha*-*-*vms*)
6257 md_exec_prefix=/gnu/lib/gcc-lib
6258 ;;
6259 i[34567]86-pc-msdosdjgpp*)
6260 md_exec_prefix=/dev/env/DJDIR/bin
6261 ;;
6262 i[34567]86-*-sco3.2v5*)
6263 if test $with_gnu_as = yes; then
6264 md_exec_prefix=/usr/gnu/bin
6265 else
6266 md_exec_prefix=/usr/ccs/bin/elf
6267 fi
6268 ;;
6269
6270 mn10300-*-* | \
6271 powerpc-*-chorusos* | \
6272 powerpc*-*-eabi* | \
6273 powerpc*-*-sysv* | \
6274 powerpc*-*-kaos* | \
6275 s390x-ibm-tpf*)
6276 md_exec_prefix=/usr/ccs/bin
6277 ;;
6278 sparc64-*-elf*)
6279 ;;
6280 v850*-*-*)
6281 md_exec_prefix=/usr/ccs/bin
6282 ;;
6283 xtensa*-*-elf*)
6284 ;;
6285
6286 *-*-beos* | \
6287 *-*-elf* | \
6288 *-*-hpux* | \
6289 *-*-netware* | \
6290 *-*-nto-qnx* | \
6291 *-*-rtems* | \
6292 *-*-solaris2* | \
6293 *-*-sysv[45]* | \
6294 *-*-vxworks* | \
6295 *-wrs-windiss)
6296 md_exec_prefix=/usr/ccs/bin
6297 ;;
6298 esac
6299
6300 extra_arflags_for_target=
6301 extra_nmflags_for_target=
6302 extra_ranlibflags_for_target=
6303 target_makefile_frag=/dev/null
6304 case "${target}" in
6305 mep*-*-*)
6306 target_makefile_frag="config/mt-mep"
6307 ;;
6308 spu-*-*)
6309 target_makefile_frag="config/mt-spu"
6310 ;;
6311 mips*-sde-elf*)
6312 target_makefile_frag="config/mt-sde"
6313 ;;
6314 mipsisa*-*-elfoabi*)
6315 target_makefile_frag="config/mt-mips-elfoabi"
6316 ;;
6317 mips*-*-*linux* | mips*-*-gnu*)
6318 target_makefile_frag="config/mt-mips-gnu"
6319 ;;
6320 *-*-netware*)
6321 target_makefile_frag="config/mt-netware"
6322 ;;
6323 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6324 target_makefile_frag="config/mt-gnu"
6325 ;;
6326 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6327 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6328 # commands to handle both 32-bit and 64-bit objects. These flags are
6329 # harmless if we're using GNU nm or ar.
6330 extra_arflags_for_target=" -X32_64"
6331 extra_nmflags_for_target=" -B -X32_64"
6332 ;;
6333 *-*-darwin*)
6334 # ranlib from Darwin requires the -c flag to look at common symbols.
6335 extra_ranlibflags_for_target=" -c"
6336 ;;
6337 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6338 target_makefile_frag="config/mt-wince"
6339 ;;
6340 esac
6341
6342 alphaieee_frag=/dev/null
6343 case $target in
6344 alpha*-*-*)
6345 # This just makes sure to use the -mieee option to build target libs.
6346 # This should probably be set individually by each library.
6347 alphaieee_frag="config/mt-alphaieee"
6348 ;;
6349 esac
6350
6351 # If --enable-target-optspace always use -Os instead of -O2 to build
6352 # the target libraries, similarly if it is not specified, use -Os
6353 # on selected platforms.
6354 ospace_frag=/dev/null
6355 case "${enable_target_optspace}:${target}" in
6356 yes:*)
6357 ospace_frag="config/mt-ospace"
6358 ;;
6359 :d30v-*)
6360 ospace_frag="config/mt-d30v"
6361 ;;
6362 :m32r-* | :d10v-* | :fr30-*)
6363 ospace_frag="config/mt-ospace"
6364 ;;
6365 no:* | :*)
6366 ;;
6367 *)
6368 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6369 ;;
6370 esac
6371
6372 # Default to using --with-stabs for certain targets.
6373 if test x${with_stabs} = x ; then
6374 case "${target}" in
6375 mips*-*-irix[56]*)
6376 ;;
6377 mips*-*-* | alpha*-*-osf*)
6378 with_stabs=yes;
6379 extra_host_args="${extra_host_args} --with-stabs"
6380 ;;
6381 esac
6382 fi
6383
6384 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6385 # them automatically.
6386 case "${host}" in
6387 hppa*64*-*-hpux11*)
6388 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6389 ;;
6390 esac
6391
6392 # Some systems (e.g., one of the i386-aix systems the gas testers are
6393 # using) don't handle "\$" correctly, so don't use it here.
6394 tooldir='${exec_prefix}'/${target_noncanonical}
6395 build_tooldir=${tooldir}
6396
6397 # Create a .gdbinit file which runs the one in srcdir
6398 # and tells GDB to look there for source files.
6399
6400 if test -r ${srcdir}/.gdbinit ; then
6401 case ${srcdir} in
6402 .) ;;
6403 *) cat > ./.gdbinit <<EOF
6404 # ${NO_EDIT}
6405 dir ${srcdir}
6406 dir .
6407 source ${srcdir}/.gdbinit
6408 EOF
6409 ;;
6410 esac
6411 fi
6412
6413 # Make sure that the compiler is able to generate an executable. If it
6414 # can't, we are probably in trouble. We don't care whether we can run the
6415 # executable--we might be using a cross compiler--we only care whether it
6416 # can be created. At this point the main configure script has set CC.
6417 we_are_ok=no
6418 echo "int main () { return 0; }" > conftest.c
6419 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6420 if test $? = 0 ; then
6421 if test -s conftest || test -s conftest.exe ; then
6422 we_are_ok=yes
6423 fi
6424 fi
6425 case $we_are_ok in
6426 no)
6427 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6428 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6429 rm -f conftest*
6430 exit 1
6431 ;;
6432 esac
6433 rm -f conftest*
6434
6435 # The Solaris /usr/ucb/cc compiler does not appear to work.
6436 case "${host}" in
6437 sparc-sun-solaris2*)
6438 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6439 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6440 could_use=
6441 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6442 if test -d /opt/cygnus/bin ; then
6443 if test "$could_use" = "" ; then
6444 could_use="/opt/cygnus/bin"
6445 else
6446 could_use="$could_use or /opt/cygnus/bin"
6447 fi
6448 fi
6449 if test "$could_use" = "" ; then
6450 echo "Warning: compilation may fail because you're using"
6451 echo "/usr/ucb/cc. You should change your PATH or CC "
6452 echo "variable and rerun configure."
6453 else
6454 echo "Warning: compilation may fail because you're using"
6455 echo "/usr/ucb/cc, when you should use the C compiler from"
6456 echo "$could_use. You should change your"
6457 echo "PATH or CC variable and rerun configure."
6458 fi
6459 fi
6460 ;;
6461 esac
6462
6463 # Decide which environment variable is used to find dynamic libraries.
6464 case "${host}" in
6465 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6466 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6467 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6468 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6469 esac
6470
6471 # On systems where the dynamic library environment variable is PATH,
6472 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6473 # built executables to PATH.
6474 if test "$RPATH_ENVVAR" = PATH; then
6475 GCC_SHLIB_SUBDIR=/shlib
6476 else
6477 GCC_SHLIB_SUBDIR=
6478 fi
6479
6480 # Record target_configdirs and the configure arguments for target and
6481 # build configuration in Makefile.
6482 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6483 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6484
6485 # Determine whether gdb needs tk/tcl or not.
6486 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6487 # and in that case we want gdb to be built without tk. Ugh!
6488 # In fact I believe gdb is the *only* package directly dependent on tk,
6489 # so we should be able to put the 'maybe's in unconditionally and
6490 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6491 # 100% sure that that's safe though.
6492
6493 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6494 case "$enable_gdbtk" in
6495 no)
6496 GDB_TK="" ;;
6497 yes)
6498 GDB_TK="${gdb_tk}" ;;
6499 *)
6500 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6501 # distro. Eventually someone will fix this and move Insight, nee
6502 # gdbtk to a separate directory.
6503 if test -d ${srcdir}/gdb/gdbtk ; then
6504 GDB_TK="${gdb_tk}"
6505 else
6506 GDB_TK=""
6507 fi
6508 ;;
6509 esac
6510 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6511 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6512
6513 # Strip out unwanted targets.
6514
6515 # While at that, we remove Makefiles if we were started for recursive
6516 # configuration, so that the top-level Makefile reconfigures them,
6517 # like we used to do when configure itself was recursive.
6518
6519 # Loop over modules. $extrasub must be used with care, limiting as
6520 # much as possible the usage of range addresses. That's because autoconf
6521 # splits the sed script to overcome limits in the number of commands,
6522 # and relying on carefully-timed sed passes may turn out to be very hard
6523 # to maintain later. In this particular case, you just have to be careful
6524 # not to nest @if/@endif pairs, because configure will not warn you at all.
6525
6526 # Check whether --enable-bootstrap was given.
6527 if test "${enable_bootstrap+set}" = set; then :
6528 enableval=$enable_bootstrap;
6529 else
6530 enable_bootstrap=default
6531 fi
6532
6533
6534 # Issue errors and warnings for invalid/strange bootstrap combinations.
6535 case "$configdirs" in
6536 *gcc*) have_compiler=yes ;;
6537 *) have_compiler=no ;;
6538 esac
6539
6540 case "$have_compiler:$host:$target:$enable_bootstrap" in
6541 *:*:*:no) ;;
6542
6543 # Default behavior. Enable bootstrap if we have a compiler
6544 # and we are in a native configuration.
6545 yes:$build:$build:default)
6546 enable_bootstrap=yes ;;
6547
6548 *:*:*:default)
6549 enable_bootstrap=no ;;
6550
6551 # We have a compiler and we are in a native configuration, bootstrap is ok
6552 yes:$build:$build:yes)
6553 ;;
6554
6555 # Other configurations, but we have a compiler. Assume the user knows
6556 # what he's doing.
6557 yes:*:*:yes)
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6559 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
6560 ;;
6561
6562 # No compiler: if they passed --enable-bootstrap explicitly, fail
6563 no:*:*:yes)
6564 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
6565
6566 # Fail if wrong command line
6567 *)
6568 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
6569 ;;
6570 esac
6571
6572 # Adjust the toplevel makefile according to whether bootstrap was selected.
6573 case $enable_bootstrap in
6574 yes)
6575 bootstrap_suffix=bootstrap
6576 BUILD_CONFIG=bootstrap-debug
6577 ;;
6578 no)
6579 bootstrap_suffix=no-bootstrap
6580 BUILD_CONFIG=
6581 ;;
6582 esac
6583
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6585 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6586 if test "x${with_build_config}" != x; then
6587 BUILD_CONFIG=$with_build_config
6588 else
6589 case $BUILD_CONFIG in
6590 bootstrap-debug)
6591 if echo "int f (void) { return 0; }" > conftest.c &&
6592 ${CC} -c conftest.c &&
6593 mv conftest.o conftest.o.g0 &&
6594 ${CC} -c -g conftest.c &&
6595 mv conftest.o conftest.o.g &&
6596 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g; then
6597 :
6598 else
6599 BUILD_CONFIG=
6600 fi
6601 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6602 ;;
6603 esac
6604 fi
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6606 $as_echo "$BUILD_CONFIG" >&6; }
6607
6608
6609 for module in ${build_configdirs} ; do
6610 if test -z "${no_recursion}" \
6611 && test -f ${build_subdir}/${module}/Makefile; then
6612 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6613 rm -f ${build_subdir}/${module}/Makefile
6614 fi
6615 extrasub="$extrasub
6616 /^@if build-$module\$/d
6617 /^@endif build-$module\$/d
6618 /^@if build-$module-$bootstrap_suffix\$/d
6619 /^@endif build-$module-$bootstrap_suffix\$/d"
6620 done
6621 for module in ${configdirs} ; do
6622 if test -z "${no_recursion}"; then
6623 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6624 if test -f ${file}; then
6625 echo 1>&2 "*** removing ${file} to force reconfigure"
6626 rm -f ${file}
6627 fi
6628 done
6629 fi
6630 extrasub="$extrasub
6631 /^@if $module\$/d
6632 /^@endif $module\$/d
6633 /^@if $module-$bootstrap_suffix\$/d
6634 /^@endif $module-$bootstrap_suffix\$/d"
6635 done
6636 for module in ${target_configdirs} ; do
6637 if test -z "${no_recursion}" \
6638 && test -f ${target_subdir}/${module}/Makefile; then
6639 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6640 rm -f ${target_subdir}/${module}/Makefile
6641 fi
6642
6643 # We only bootstrap target libraries listed in bootstrap_target_libs.
6644 case $bootstrap_target_libs in
6645 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6646 *) target_bootstrap_suffix=no-bootstrap ;;
6647 esac
6648
6649 extrasub="$extrasub
6650 /^@if target-$module\$/d
6651 /^@endif target-$module\$/d
6652 /^@if target-$module-$target_bootstrap_suffix\$/d
6653 /^@endif target-$module-$target_bootstrap_suffix\$/d"
6654 done
6655
6656 extrasub="$extrasub
6657 /^@if /,/^@endif /d"
6658
6659 # Create the serialization dependencies. This uses a temporary file.
6660
6661 # Check whether --enable-serial-configure was given.
6662 if test "${enable_serial_configure+set}" = set; then :
6663 enableval=$enable_serial_configure;
6664 fi
6665
6666
6667 case ${enable_serial_configure} in
6668 yes)
6669 enable_serial_build_configure=yes
6670 enable_serial_host_configure=yes
6671 enable_serial_target_configure=yes
6672 ;;
6673 esac
6674
6675 # These force 'configure's to be done one at a time, to avoid problems
6676 # with contention over a shared config.cache.
6677 rm -f serdep.tmp
6678 echo '# serdep.tmp' > serdep.tmp
6679 olditem=
6680 test "x${enable_serial_build_configure}" = xyes &&
6681 for item in ${build_configdirs} ; do
6682 case ${olditem} in
6683 "") ;;
6684 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
6685 esac
6686 olditem=${item}
6687 done
6688 olditem=
6689 test "x${enable_serial_host_configure}" = xyes &&
6690 for item in ${configdirs} ; do
6691 case ${olditem} in
6692 "") ;;
6693 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
6694 esac
6695 olditem=${item}
6696 done
6697 olditem=
6698 test "x${enable_serial_target_configure}" = xyes &&
6699 for item in ${target_configdirs} ; do
6700 case ${olditem} in
6701 "") ;;
6702 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
6703 esac
6704 olditem=${item}
6705 done
6706 serialization_dependencies=serdep.tmp
6707
6708
6709 # Base args. Strip norecursion, cache-file, srcdir, host, build,
6710 # target, nonopt, and variable assignments. These are the ones we
6711 # might not want to pass down to subconfigures. Also strip
6712 # program-prefix, program-suffix, and program-transform-name, so that
6713 # we can pass down a consistent program-transform-name.
6714 baseargs=
6715 keep_next=no
6716 skip_next=no
6717 eval "set -- $ac_configure_args"
6718 for ac_arg
6719 do
6720 if test X"$skip_next" = X"yes"; then
6721 skip_next=no
6722 continue
6723 fi
6724 if test X"$keep_next" = X"yes"; then
6725 case $ac_arg in
6726 *\'*)
6727 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6728 esac
6729 baseargs="$baseargs '$ac_arg'"
6730 keep_next=no
6731 continue
6732 fi
6733
6734 # Handle separated arguments. Based on the logic generated by
6735 # autoconf 2.59.
6736 case $ac_arg in
6737 *=* | --config-cache | -C | -disable-* | --disable-* \
6738 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6739 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6740 | -with-* | --with-* | -without-* | --without-* | --x)
6741 separate_arg=no
6742 ;;
6743 -*)
6744 separate_arg=yes
6745 ;;
6746 *)
6747 separate_arg=no
6748 ;;
6749 esac
6750
6751 case "$ac_arg" in
6752 --no*)
6753 continue
6754 ;;
6755 --c* | \
6756 --sr* | \
6757 --ho* | \
6758 --bu* | \
6759 --t* | \
6760 --program-* | \
6761 -cache_file* | \
6762 -srcdir* | \
6763 -host* | \
6764 -build* | \
6765 -target* | \
6766 -program-prefix* | \
6767 -program-suffix* | \
6768 -program-transform-name* )
6769 skip_next=$separate_arg
6770 continue
6771 ;;
6772 -*)
6773 # An option. Add it.
6774 case $ac_arg in
6775 *\'*)
6776 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6777 esac
6778 baseargs="$baseargs '$ac_arg'"
6779 keep_next=$separate_arg
6780 ;;
6781 *)
6782 # Either a variable assignment, or a nonopt (triplet). Don't
6783 # pass it down; let the Makefile handle this.
6784 continue
6785 ;;
6786 esac
6787 done
6788 # Remove the initial space we just introduced and, as these will be
6789 # expanded by make, quote '$'.
6790 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
6791
6792 # Add in --program-transform-name, after --program-prefix and
6793 # --program-suffix have been applied to it. Autoconf has already
6794 # doubled dollar signs and backslashes in program_transform_name; we want
6795 # the backslashes un-doubled, and then the entire thing wrapped in single
6796 # quotes, because this will be expanded first by make and then by the shell.
6797 # Also, because we want to override the logic in subdir configure scripts to
6798 # choose program_transform_name, replace any s,x,x, with s,y,y,.
6799 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6800 ${program_transform_name}
6801 EOF_SED
6802 gcc_transform_name=`cat conftestsed.out`
6803 rm -f conftestsed.out
6804 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
6805 if test "$silent" = yes; then
6806 baseargs="$baseargs --silent"
6807 fi
6808 baseargs="$baseargs --disable-option-checking"
6809
6810 # For the build-side libraries, we just need to pretend we're native,
6811 # and not use the same cache file. Multilibs are neither needed nor
6812 # desired.
6813 build_configargs="--cache-file=../config.cache ${baseargs}"
6814
6815 # For host modules, accept cache file option, or specification as blank.
6816 case "${cache_file}" in
6817 "") # empty
6818 cache_file_option="" ;;
6819 /* | [A-Za-z]:[\\/]* ) # absolute path
6820 cache_file_option="--cache-file=${cache_file}" ;;
6821 *) # relative path
6822 cache_file_option="--cache-file=../${cache_file}" ;;
6823 esac
6824
6825 # Host dirs don't like to share a cache file either, horribly enough.
6826 # This seems to be due to autoconf 2.5x stupidity.
6827 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
6828
6829 target_configargs=${baseargs}
6830
6831 # Passing a --with-cross-host argument lets the target libraries know
6832 # whether they are being built with a cross-compiler or being built
6833 # native. However, it would be better to use other mechanisms to make the
6834 # sorts of decisions they want to make on this basis. Please consider
6835 # this option to be deprecated. FIXME.
6836 if test x${is_cross_compiler} = xyes ; then
6837 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
6838 fi
6839
6840 # Default to --enable-multilib.
6841 if test x${enable_multilib} = x ; then
6842 target_configargs="--enable-multilib ${target_configargs}"
6843 fi
6844
6845 # Pass --with-newlib if appropriate. Note that target_configdirs has
6846 # changed from the earlier setting of with_newlib.
6847 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6848 target_configargs="--with-newlib ${target_configargs}"
6849 fi
6850
6851 # Different target subdirs use different values of certain variables
6852 # (notably CXX). Worse, multilibs use *lots* of different values.
6853 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6854 # it doesn't automatically accept command-line overrides of them.
6855 # This means it's not safe for target subdirs to share a cache file,
6856 # which is disgusting, but there you have it. Hopefully this can be
6857 # fixed in future. It's still worthwhile to use a cache file for each
6858 # directory. I think.
6859
6860 # Pass the appropriate --build, --host, --target and --cache-file arguments.
6861 # We need to pass --target, as newer autoconf's requires consistency
6862 # for target_alias and gcc doesn't manage it consistently.
6863 target_configargs="--cache-file=./config.cache ${target_configargs}"
6864
6865 FLAGS_FOR_TARGET=
6866 case " $target_configdirs " in
6867 *" newlib "*)
6868 case " $target_configargs " in
6869 *" --with-newlib "*)
6870 case "$target" in
6871 *-cygwin*)
6872 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' ;;
6873 esac
6874
6875 # If we're not building GCC, don't discard standard headers.
6876 if test -d ${srcdir}/gcc; then
6877 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6878
6879 if test "${build}" != "${host}"; then
6880 # On Canadian crosses, CC_FOR_TARGET will have already been set
6881 # by `configure', so we won't have an opportunity to add -Bgcc/
6882 # to it. This is right: we don't want to search that directory
6883 # for binaries, but we want the header files in there, so add
6884 # them explicitly.
6885 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
6886
6887 # Someone might think of using the pre-installed headers on
6888 # Canadian crosses, in case the installed compiler is not fully
6889 # compatible with the compiler being built. In this case, it
6890 # would be better to flag an error than risking having
6891 # incompatible object files being constructed. We can't
6892 # guarantee that an error will be flagged, but let's hope the
6893 # compiler will do it, when presented with incompatible header
6894 # files.
6895 fi
6896 fi
6897
6898 case "${target}-${is_cross_compiler}" in
6899 i[3456789]86-*-linux*-no)
6900 # Here host == target, so we don't need to build gcc,
6901 # so we don't want to discard standard headers.
6902 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6903 ;;
6904 *)
6905 # If we're building newlib, use its generic headers last, but search
6906 # for any libc-related directories first (so make it the last -B
6907 # switch).
6908 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
6909
6910 # If we're building libgloss, find the startup file, simulator library
6911 # and linker script.
6912 case " $target_configdirs " in
6913 *" libgloss "*)
6914 # Look for startup file, simulator library and maybe linker script.
6915 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6916 # Look for libnosys.a in case the target needs it.
6917 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6918 # Most targets have the linker script in the source directory.
6919 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6920 ;;
6921 esac
6922 ;;
6923 esac
6924 ;;
6925 esac
6926 ;;
6927 esac
6928 case "$target" in
6929 *-mingw*)
6930 # Can't be handled as Cygwin above since Mingw does not use newlib.
6931 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' ;;
6932 esac
6933
6934 # Allow the user to override the flags for
6935 # our build compiler if desired.
6936 if test x"${build}" = x"${host}" ; then
6937 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6938 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6939 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6940 fi
6941
6942 # On Canadian crosses, we'll be searching the right directories for
6943 # the previously-installed cross compiler, so don't bother to add
6944 # flags for directories within the install tree of the compiler
6945 # being built; programs in there won't even run.
6946 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6947 # Search for pre-installed headers if nothing else fits.
6948 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
6949 fi
6950
6951 if test "x${use_gnu_ld}" = x &&
6952 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6953 # Arrange for us to find uninstalled linker scripts.
6954 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
6955 fi
6956
6957 # Search for other target-specific linker scripts and such.
6958 case "${target}" in
6959 mep*)
6960 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6961 ;;
6962 esac
6963
6964 # Makefile fragments.
6965 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6966 do
6967 eval fragval=\$$frag
6968 if test $fragval != /dev/null; then
6969 eval $frag=${srcdir}/$fragval
6970 fi
6971 done
6972
6973
6974
6975
6976
6977 # Miscellanea: directories, flags, etc.
6978
6979
6980
6981
6982
6983
6984
6985
6986 # Build module lists & subconfigure args.
6987
6988
6989
6990 # Host module lists & subconfigure args.
6991
6992
6993
6994 # Target module lists & subconfigure args.
6995
6996
6997
6998 # Build tools.
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016 # Generate default definitions for YACC, M4, LEX and other programs that run
7017 # on the build machine. These are used if the Makefile can't locate these
7018 # programs in objdir.
7019 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7020
7021 for ac_prog in 'bison -y' byacc yacc
7022 do
7023 # Extract the first word of "$ac_prog", so it can be a program name with args.
7024 set dummy $ac_prog; ac_word=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if test "${ac_cv_prog_YACC+set}" = set; then :
7028 $as_echo_n "(cached) " >&6
7029 else
7030 if test -n "$YACC"; then
7031 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7040 ac_cv_prog_YACC="$ac_prog"
7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 break 2
7043 fi
7044 done
7045 done
7046 IFS=$as_save_IFS
7047
7048 fi
7049 fi
7050 YACC=$ac_cv_prog_YACC
7051 if test -n "$YACC"; then
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7053 $as_echo "$YACC" >&6; }
7054 else
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7057 fi
7058
7059
7060 test -n "$YACC" && break
7061 done
7062 test -n "$YACC" || YACC="$MISSING bison -y"
7063
7064 case " $build_configdirs " in
7065 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7066 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7067 esac
7068
7069 for ac_prog in bison
7070 do
7071 # Extract the first word of "$ac_prog", so it can be a program name with args.
7072 set dummy $ac_prog; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if test "${ac_cv_prog_BISON+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 if test -n "$BISON"; then
7079 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7080 else
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_prog_BISON="$ac_prog"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096 fi
7097 fi
7098 BISON=$ac_cv_prog_BISON
7099 if test -n "$BISON"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7101 $as_echo "$BISON" >&6; }
7102 else
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7105 fi
7106
7107
7108 test -n "$BISON" && break
7109 done
7110 test -n "$BISON" || BISON="$MISSING bison"
7111
7112 case " $build_configdirs " in
7113 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7114 esac
7115
7116 for ac_prog in gm4 gnum4 m4
7117 do
7118 # Extract the first word of "$ac_prog", so it can be a program name with args.
7119 set dummy $ac_prog; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if test "${ac_cv_prog_M4+set}" = set; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 if test -n "$M4"; then
7126 ac_cv_prog_M4="$M4" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_prog_M4="$ac_prog"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139 done
7140 done
7141 IFS=$as_save_IFS
7142
7143 fi
7144 fi
7145 M4=$ac_cv_prog_M4
7146 if test -n "$M4"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7148 $as_echo "$M4" >&6; }
7149 else
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7152 fi
7153
7154
7155 test -n "$M4" && break
7156 done
7157 test -n "$M4" || M4="$MISSING m4"
7158
7159 case " $build_configdirs " in
7160 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7161 esac
7162
7163 for ac_prog in flex lex
7164 do
7165 # Extract the first word of "$ac_prog", so it can be a program name with args.
7166 set dummy $ac_prog; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if test "${ac_cv_prog_LEX+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 if test -n "$LEX"; then
7173 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7182 ac_cv_prog_LEX="$ac_prog"
7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 break 2
7185 fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 LEX=$ac_cv_prog_LEX
7193 if test -n "$LEX"; then
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7195 $as_echo "$LEX" >&6; }
7196 else
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7199 fi
7200
7201
7202 test -n "$LEX" && break
7203 done
7204 test -n "$LEX" || LEX="$MISSING flex"
7205
7206 case " $build_configdirs " in
7207 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7208 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7209 esac
7210
7211 for ac_prog in flex
7212 do
7213 # Extract the first word of "$ac_prog", so it can be a program name with args.
7214 set dummy $ac_prog; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if test "${ac_cv_prog_FLEX+set}" = set; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 if test -n "$FLEX"; then
7221 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_prog_FLEX="$ac_prog"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7233 fi
7234 done
7235 done
7236 IFS=$as_save_IFS
7237
7238 fi
7239 fi
7240 FLEX=$ac_cv_prog_FLEX
7241 if test -n "$FLEX"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7243 $as_echo "$FLEX" >&6; }
7244 else
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7247 fi
7248
7249
7250 test -n "$FLEX" && break
7251 done
7252 test -n "$FLEX" || FLEX="$MISSING flex"
7253
7254 case " $build_configdirs " in
7255 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7256 esac
7257
7258 for ac_prog in makeinfo
7259 do
7260 # Extract the first word of "$ac_prog", so it can be a program name with args.
7261 set dummy $ac_prog; ac_word=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 if test -n "$MAKEINFO"; then
7268 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277 ac_cv_prog_MAKEINFO="$ac_prog"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281 done
7282 done
7283 IFS=$as_save_IFS
7284
7285 fi
7286 fi
7287 MAKEINFO=$ac_cv_prog_MAKEINFO
7288 if test -n "$MAKEINFO"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7290 $as_echo "$MAKEINFO" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295
7296
7297 test -n "$MAKEINFO" && break
7298 done
7299 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7300
7301 case " $build_configdirs " in
7302 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7303 *)
7304
7305 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7306 # higher, else we use the "missing" dummy.
7307 if ${MAKEINFO} --version \
7308 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7309 :
7310 else
7311 MAKEINFO="$MISSING makeinfo"
7312 fi
7313 ;;
7314
7315 esac
7316
7317 # FIXME: expect and dejagnu may become build tools?
7318
7319 for ac_prog in expect
7320 do
7321 # Extract the first word of "$ac_prog", so it can be a program name with args.
7322 set dummy $ac_prog; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$EXPECT"; then
7329 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7338 ac_cv_prog_EXPECT="$ac_prog"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342 done
7343 done
7344 IFS=$as_save_IFS
7345
7346 fi
7347 fi
7348 EXPECT=$ac_cv_prog_EXPECT
7349 if test -n "$EXPECT"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7351 $as_echo "$EXPECT" >&6; }
7352 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7356
7357
7358 test -n "$EXPECT" && break
7359 done
7360 test -n "$EXPECT" || EXPECT="expect"
7361
7362 case " $configdirs " in
7363 *" expect "*)
7364 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7365 ;;
7366 esac
7367
7368 for ac_prog in runtest
7369 do
7370 # Extract the first word of "$ac_prog", so it can be a program name with args.
7371 set dummy $ac_prog; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 if test -n "$RUNTEST"; then
7378 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_prog_RUNTEST="$ac_prog"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7390 fi
7391 done
7392 done
7393 IFS=$as_save_IFS
7394
7395 fi
7396 fi
7397 RUNTEST=$ac_cv_prog_RUNTEST
7398 if test -n "$RUNTEST"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7400 $as_echo "$RUNTEST" >&6; }
7401 else
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406
7407 test -n "$RUNTEST" && break
7408 done
7409 test -n "$RUNTEST" || RUNTEST="runtest"
7410
7411 case " $configdirs " in
7412 *" dejagnu "*)
7413 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7414 ;;
7415 esac
7416
7417
7418 # Host tools.
7419 ncn_tool_prefix=
7420 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7421 ncn_target_tool_prefix=
7422 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7423
7424
7425
7426 if test -n "$AR"; then
7427 ac_cv_prog_AR=$AR
7428 elif test -n "$ac_cv_prog_AR"; then
7429 AR=$ac_cv_prog_AR
7430 fi
7431
7432 if test -n "$ac_cv_prog_AR"; then
7433 for ncn_progname in ar; do
7434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7435 set dummy ${ncn_progname}; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if test "${ac_cv_prog_AR+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 if test -n "$AR"; then
7442 ac_cv_prog_AR="$AR" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_prog_AR="${ncn_progname}"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 AR=$ac_cv_prog_AR
7462 if test -n "$AR"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7464 $as_echo "$AR" >&6; }
7465 else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470
7471 done
7472 fi
7473
7474 for ncn_progname in ar; do
7475 if test -n "$ncn_tool_prefix"; then
7476 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7477 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if test "${ac_cv_prog_AR+set}" = set; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 if test -n "$AR"; then
7484 ac_cv_prog_AR="$AR" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7496 fi
7497 done
7498 done
7499 IFS=$as_save_IFS
7500
7501 fi
7502 fi
7503 AR=$ac_cv_prog_AR
7504 if test -n "$AR"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7506 $as_echo "$AR" >&6; }
7507 else
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511
7512
7513 fi
7514 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7516 set dummy ${ncn_progname}; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if test "${ac_cv_prog_AR+set}" = set; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 if test -n "$AR"; then
7523 ac_cv_prog_AR="$AR" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532 ac_cv_prog_AR="${ncn_progname}"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 break 2
7535 fi
7536 done
7537 done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 AR=$ac_cv_prog_AR
7543 if test -n "$AR"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7545 $as_echo "$AR" >&6; }
7546 else
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551
7552 fi
7553 test -n "$ac_cv_prog_AR" && break
7554 done
7555
7556 if test -z "$ac_cv_prog_AR" ; then
7557 set dummy ar
7558 if test $build = $host ; then
7559 AR="$2"
7560 else
7561 AR="${ncn_tool_prefix}$2"
7562 fi
7563 fi
7564
7565
7566
7567 if test -n "$AS"; then
7568 ac_cv_prog_AS=$AS
7569 elif test -n "$ac_cv_prog_AS"; then
7570 AS=$ac_cv_prog_AS
7571 fi
7572
7573 if test -n "$ac_cv_prog_AS"; then
7574 for ncn_progname in as; do
7575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7576 set dummy ${ncn_progname}; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if test "${ac_cv_prog_AS+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 if test -n "$AS"; then
7583 ac_cv_prog_AS="$AS" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_prog_AS="${ncn_progname}"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7595 fi
7596 done
7597 done
7598 IFS=$as_save_IFS
7599
7600 fi
7601 fi
7602 AS=$ac_cv_prog_AS
7603 if test -n "$AS"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7605 $as_echo "$AS" >&6; }
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7609 fi
7610
7611
7612 done
7613 fi
7614
7615 for ncn_progname in as; do
7616 if test -n "$ncn_tool_prefix"; then
7617 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7618 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if test "${ac_cv_prog_AS+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 if test -n "$AS"; then
7625 ac_cv_prog_AS="$AS" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7634 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638 done
7639 done
7640 IFS=$as_save_IFS
7641
7642 fi
7643 fi
7644 AS=$ac_cv_prog_AS
7645 if test -n "$AS"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7647 $as_echo "$AS" >&6; }
7648 else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652
7653
7654 fi
7655 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7657 set dummy ${ncn_progname}; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if test "${ac_cv_prog_AS+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663 if test -n "$AS"; then
7664 ac_cv_prog_AS="$AS" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669 IFS=$as_save_IFS
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 ac_cv_prog_AS="${ncn_progname}"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 break 2
7676 fi
7677 done
7678 done
7679 IFS=$as_save_IFS
7680
7681 fi
7682 fi
7683 AS=$ac_cv_prog_AS
7684 if test -n "$AS"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7686 $as_echo "$AS" >&6; }
7687 else
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691
7692
7693 fi
7694 test -n "$ac_cv_prog_AS" && break
7695 done
7696
7697 if test -z "$ac_cv_prog_AS" ; then
7698 set dummy as
7699 if test $build = $host ; then
7700 AS="$2"
7701 else
7702 AS="${ncn_tool_prefix}$2"
7703 fi
7704 fi
7705
7706
7707
7708 if test -n "$DLLTOOL"; then
7709 ac_cv_prog_DLLTOOL=$DLLTOOL
7710 elif test -n "$ac_cv_prog_DLLTOOL"; then
7711 DLLTOOL=$ac_cv_prog_DLLTOOL
7712 fi
7713
7714 if test -n "$ac_cv_prog_DLLTOOL"; then
7715 for ncn_progname in dlltool; do
7716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7717 set dummy ${ncn_progname}; ac_word=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 if test -n "$DLLTOOL"; then
7724 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7728 do
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7733 ac_cv_prog_DLLTOOL="${ncn_progname}"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 break 2
7736 fi
7737 done
7738 done
7739 IFS=$as_save_IFS
7740
7741 fi
7742 fi
7743 DLLTOOL=$ac_cv_prog_DLLTOOL
7744 if test -n "$DLLTOOL"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7746 $as_echo "$DLLTOOL" >&6; }
7747 else
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7750 fi
7751
7752
7753 done
7754 fi
7755
7756 for ncn_progname in dlltool; do
7757 if test -n "$ncn_tool_prefix"; then
7758 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7759 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 if test -n "$DLLTOOL"; then
7766 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7770 do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779 done
7780 done
7781 IFS=$as_save_IFS
7782
7783 fi
7784 fi
7785 DLLTOOL=$ac_cv_prog_DLLTOOL
7786 if test -n "$DLLTOOL"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7788 $as_echo "$DLLTOOL" >&6; }
7789 else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7792 fi
7793
7794
7795 fi
7796 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7798 set dummy ${ncn_progname}; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 if test -n "$DLLTOOL"; then
7805 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_DLLTOOL="${ncn_progname}"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818 done
7819 done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 DLLTOOL=$ac_cv_prog_DLLTOOL
7825 if test -n "$DLLTOOL"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7827 $as_echo "$DLLTOOL" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833
7834 fi
7835 test -n "$ac_cv_prog_DLLTOOL" && break
7836 done
7837
7838 if test -z "$ac_cv_prog_DLLTOOL" ; then
7839 set dummy dlltool
7840 if test $build = $host ; then
7841 DLLTOOL="$2"
7842 else
7843 DLLTOOL="${ncn_tool_prefix}$2"
7844 fi
7845 fi
7846
7847
7848
7849 if test -n "$LD"; then
7850 ac_cv_prog_LD=$LD
7851 elif test -n "$ac_cv_prog_LD"; then
7852 LD=$ac_cv_prog_LD
7853 fi
7854
7855 if test -n "$ac_cv_prog_LD"; then
7856 for ncn_progname in ld; do
7857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7858 set dummy ${ncn_progname}; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_prog_LD+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 if test -n "$LD"; then
7865 ac_cv_prog_LD="$LD" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_prog_LD="${ncn_progname}"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7877 fi
7878 done
7879 done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 LD=$ac_cv_prog_LD
7885 if test -n "$LD"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7887 $as_echo "$LD" >&6; }
7888 else
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891 fi
7892
7893
7894 done
7895 fi
7896
7897 for ncn_progname in ld; do
7898 if test -n "$ncn_tool_prefix"; then
7899 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7900 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if test "${ac_cv_prog_LD+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 if test -n "$LD"; then
7907 ac_cv_prog_LD="$LD" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7911 do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920 done
7921 done
7922 IFS=$as_save_IFS
7923
7924 fi
7925 fi
7926 LD=$ac_cv_prog_LD
7927 if test -n "$LD"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7929 $as_echo "$LD" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7933 fi
7934
7935
7936 fi
7937 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7939 set dummy ${ncn_progname}; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if test "${ac_cv_prog_LD+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 if test -n "$LD"; then
7946 ac_cv_prog_LD="$LD" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7950 do
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955 ac_cv_prog_LD="${ncn_progname}"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 break 2
7958 fi
7959 done
7960 done
7961 IFS=$as_save_IFS
7962
7963 fi
7964 fi
7965 LD=$ac_cv_prog_LD
7966 if test -n "$LD"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7968 $as_echo "$LD" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7972 fi
7973
7974
7975 fi
7976 test -n "$ac_cv_prog_LD" && break
7977 done
7978
7979 if test -z "$ac_cv_prog_LD" ; then
7980 set dummy ld
7981 if test $build = $host ; then
7982 LD="$2"
7983 else
7984 LD="${ncn_tool_prefix}$2"
7985 fi
7986 fi
7987
7988
7989
7990 if test -n "$LIPO"; then
7991 ac_cv_prog_LIPO=$LIPO
7992 elif test -n "$ac_cv_prog_LIPO"; then
7993 LIPO=$ac_cv_prog_LIPO
7994 fi
7995
7996 if test -n "$ac_cv_prog_LIPO"; then
7997 for ncn_progname in lipo; do
7998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7999 set dummy ${ncn_progname}; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_prog_LIPO+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 if test -n "$LIPO"; then
8006 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015 ac_cv_prog_LIPO="${ncn_progname}"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8018 fi
8019 done
8020 done
8021 IFS=$as_save_IFS
8022
8023 fi
8024 fi
8025 LIPO=$ac_cv_prog_LIPO
8026 if test -n "$LIPO"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8028 $as_echo "$LIPO" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034
8035 done
8036 fi
8037
8038 for ncn_progname in lipo; do
8039 if test -n "$ncn_tool_prefix"; then
8040 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8041 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if test "${ac_cv_prog_LIPO+set}" = set; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 if test -n "$LIPO"; then
8048 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8052 do
8053 IFS=$as_save_IFS
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8057 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 break 2
8060 fi
8061 done
8062 done
8063 IFS=$as_save_IFS
8064
8065 fi
8066 fi
8067 LIPO=$ac_cv_prog_LIPO
8068 if test -n "$LIPO"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8070 $as_echo "$LIPO" >&6; }
8071 else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8074 fi
8075
8076
8077 fi
8078 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8080 set dummy ${ncn_progname}; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_prog_LIPO+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 if test -n "$LIPO"; then
8087 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8096 ac_cv_prog_LIPO="${ncn_progname}"
8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8099 fi
8100 done
8101 done
8102 IFS=$as_save_IFS
8103
8104 fi
8105 fi
8106 LIPO=$ac_cv_prog_LIPO
8107 if test -n "$LIPO"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8109 $as_echo "$LIPO" >&6; }
8110 else
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8113 fi
8114
8115
8116 fi
8117 test -n "$ac_cv_prog_LIPO" && break
8118 done
8119
8120 if test -z "$ac_cv_prog_LIPO" ; then
8121 set dummy lipo
8122 if test $build = $host ; then
8123 LIPO="$2"
8124 else
8125 LIPO="${ncn_tool_prefix}$2"
8126 fi
8127 fi
8128
8129
8130
8131 if test -n "$NM"; then
8132 ac_cv_prog_NM=$NM
8133 elif test -n "$ac_cv_prog_NM"; then
8134 NM=$ac_cv_prog_NM
8135 fi
8136
8137 if test -n "$ac_cv_prog_NM"; then
8138 for ncn_progname in nm; do
8139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8140 set dummy ${ncn_progname}; ac_word=$2
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 $as_echo_n "checking for $ac_word... " >&6; }
8143 if test "${ac_cv_prog_NM+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 if test -n "$NM"; then
8147 ac_cv_prog_NM="$NM" # Let the user override the test.
8148 else
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_prog_NM="${ncn_progname}"
8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160 done
8161 done
8162 IFS=$as_save_IFS
8163
8164 fi
8165 fi
8166 NM=$ac_cv_prog_NM
8167 if test -n "$NM"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8169 $as_echo "$NM" >&6; }
8170 else
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8173 fi
8174
8175
8176 done
8177 fi
8178
8179 for ncn_progname in nm; do
8180 if test -n "$ncn_tool_prefix"; then
8181 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8182 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8184 $as_echo_n "checking for $ac_word... " >&6; }
8185 if test "${ac_cv_prog_NM+set}" = set; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 if test -n "$NM"; then
8189 ac_cv_prog_NM="$NM" # Let the user override the test.
8190 else
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8193 do
8194 IFS=$as_save_IFS
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8198 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 break 2
8201 fi
8202 done
8203 done
8204 IFS=$as_save_IFS
8205
8206 fi
8207 fi
8208 NM=$ac_cv_prog_NM
8209 if test -n "$NM"; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8211 $as_echo "$NM" >&6; }
8212 else
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 $as_echo "no" >&6; }
8215 fi
8216
8217
8218 fi
8219 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8221 set dummy ${ncn_progname}; ac_word=$2
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223 $as_echo_n "checking for $ac_word... " >&6; }
8224 if test "${ac_cv_prog_NM+set}" = set; then :
8225 $as_echo_n "(cached) " >&6
8226 else
8227 if test -n "$NM"; then
8228 ac_cv_prog_NM="$NM" # Let the user override the test.
8229 else
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 for as_dir in $PATH
8232 do
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8237 ac_cv_prog_NM="${ncn_progname}"
8238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 break 2
8240 fi
8241 done
8242 done
8243 IFS=$as_save_IFS
8244
8245 fi
8246 fi
8247 NM=$ac_cv_prog_NM
8248 if test -n "$NM"; then
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8250 $as_echo "$NM" >&6; }
8251 else
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253 $as_echo "no" >&6; }
8254 fi
8255
8256
8257 fi
8258 test -n "$ac_cv_prog_NM" && break
8259 done
8260
8261 if test -z "$ac_cv_prog_NM" ; then
8262 set dummy nm
8263 if test $build = $host ; then
8264 NM="$2"
8265 else
8266 NM="${ncn_tool_prefix}$2"
8267 fi
8268 fi
8269
8270
8271
8272 if test -n "$RANLIB"; then
8273 ac_cv_prog_RANLIB=$RANLIB
8274 elif test -n "$ac_cv_prog_RANLIB"; then
8275 RANLIB=$ac_cv_prog_RANLIB
8276 fi
8277
8278 if test -n "$ac_cv_prog_RANLIB"; then
8279 for ncn_progname in ranlib; do
8280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8281 set dummy ${ncn_progname}; ac_word=$2
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283 $as_echo_n "checking for $ac_word... " >&6; }
8284 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 if test -n "$RANLIB"; then
8288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8289 else
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8297 ac_cv_prog_RANLIB="${ncn_progname}"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 break 2
8300 fi
8301 done
8302 done
8303 IFS=$as_save_IFS
8304
8305 fi
8306 fi
8307 RANLIB=$ac_cv_prog_RANLIB
8308 if test -n "$RANLIB"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8310 $as_echo "$RANLIB" >&6; }
8311 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 fi
8315
8316
8317 done
8318 fi
8319
8320 for ncn_progname in ranlib; do
8321 if test -n "$ncn_tool_prefix"; then
8322 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8323 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 if test -n "$RANLIB"; then
8330 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335 IFS=$as_save_IFS
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8339 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 break 2
8342 fi
8343 done
8344 done
8345 IFS=$as_save_IFS
8346
8347 fi
8348 fi
8349 RANLIB=$ac_cv_prog_RANLIB
8350 if test -n "$RANLIB"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8352 $as_echo "$RANLIB" >&6; }
8353 else
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8356 fi
8357
8358
8359 fi
8360 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8362 set dummy ${ncn_progname}; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 if test -n "$RANLIB"; then
8369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8378 ac_cv_prog_RANLIB="${ncn_progname}"
8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 break 2
8381 fi
8382 done
8383 done
8384 IFS=$as_save_IFS
8385
8386 fi
8387 fi
8388 RANLIB=$ac_cv_prog_RANLIB
8389 if test -n "$RANLIB"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8391 $as_echo "$RANLIB" >&6; }
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396
8397
8398 fi
8399 test -n "$ac_cv_prog_RANLIB" && break
8400 done
8401
8402 if test -z "$ac_cv_prog_RANLIB" ; then
8403 RANLIB=":"
8404 fi
8405
8406
8407
8408 if test -n "$STRIP"; then
8409 ac_cv_prog_STRIP=$STRIP
8410 elif test -n "$ac_cv_prog_STRIP"; then
8411 STRIP=$ac_cv_prog_STRIP
8412 fi
8413
8414 if test -n "$ac_cv_prog_STRIP"; then
8415 for ncn_progname in strip; do
8416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8417 set dummy ${ncn_progname}; ac_word=$2
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419 $as_echo_n "checking for $ac_word... " >&6; }
8420 if test "${ac_cv_prog_STRIP+set}" = set; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 if test -n "$STRIP"; then
8424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8425 else
8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427 for as_dir in $PATH
8428 do
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8433 ac_cv_prog_STRIP="${ncn_progname}"
8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8435 break 2
8436 fi
8437 done
8438 done
8439 IFS=$as_save_IFS
8440
8441 fi
8442 fi
8443 STRIP=$ac_cv_prog_STRIP
8444 if test -n "$STRIP"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8446 $as_echo "$STRIP" >&6; }
8447 else
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8450 fi
8451
8452
8453 done
8454 fi
8455
8456 for ncn_progname in strip; do
8457 if test -n "$ncn_tool_prefix"; then
8458 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8459 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 $as_echo_n "checking for $ac_word... " >&6; }
8462 if test "${ac_cv_prog_STRIP+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 if test -n "$STRIP"; then
8466 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8467 else
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 for as_dir in $PATH
8470 do
8471 IFS=$as_save_IFS
8472 test -z "$as_dir" && as_dir=.
8473 for ac_exec_ext in '' $ac_executable_extensions; do
8474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8475 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477 break 2
8478 fi
8479 done
8480 done
8481 IFS=$as_save_IFS
8482
8483 fi
8484 fi
8485 STRIP=$ac_cv_prog_STRIP
8486 if test -n "$STRIP"; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8488 $as_echo "$STRIP" >&6; }
8489 else
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 $as_echo "no" >&6; }
8492 fi
8493
8494
8495 fi
8496 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8498 set dummy ${ncn_progname}; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if test "${ac_cv_prog_STRIP+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 if test -n "$STRIP"; then
8505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8509 do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514 ac_cv_prog_STRIP="${ncn_progname}"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8517 fi
8518 done
8519 done
8520 IFS=$as_save_IFS
8521
8522 fi
8523 fi
8524 STRIP=$ac_cv_prog_STRIP
8525 if test -n "$STRIP"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8527 $as_echo "$STRIP" >&6; }
8528 else
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8531 fi
8532
8533
8534 fi
8535 test -n "$ac_cv_prog_STRIP" && break
8536 done
8537
8538 if test -z "$ac_cv_prog_STRIP" ; then
8539 STRIP=":"
8540 fi
8541
8542
8543
8544 if test -n "$WINDRES"; then
8545 ac_cv_prog_WINDRES=$WINDRES
8546 elif test -n "$ac_cv_prog_WINDRES"; then
8547 WINDRES=$ac_cv_prog_WINDRES
8548 fi
8549
8550 if test -n "$ac_cv_prog_WINDRES"; then
8551 for ncn_progname in windres; do
8552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8553 set dummy ${ncn_progname}; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 if test -n "$WINDRES"; then
8560 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8561 else
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8564 do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569 ac_cv_prog_WINDRES="${ncn_progname}"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8572 fi
8573 done
8574 done
8575 IFS=$as_save_IFS
8576
8577 fi
8578 fi
8579 WINDRES=$ac_cv_prog_WINDRES
8580 if test -n "$WINDRES"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8582 $as_echo "$WINDRES" >&6; }
8583 else
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588
8589 done
8590 fi
8591
8592 for ncn_progname in windres; do
8593 if test -n "$ncn_tool_prefix"; then
8594 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8595 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 if test -n "$WINDRES"; then
8602 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8603 else
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8606 do
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8614 fi
8615 done
8616 done
8617 IFS=$as_save_IFS
8618
8619 fi
8620 fi
8621 WINDRES=$ac_cv_prog_WINDRES
8622 if test -n "$WINDRES"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8624 $as_echo "$WINDRES" >&6; }
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8628 fi
8629
8630
8631 fi
8632 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8634 set dummy ${ncn_progname}; ac_word=$2
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636 $as_echo_n "checking for $ac_word... " >&6; }
8637 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 if test -n "$WINDRES"; then
8641 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8642 else
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $PATH
8645 do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8650 ac_cv_prog_WINDRES="${ncn_progname}"
8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 break 2
8653 fi
8654 done
8655 done
8656 IFS=$as_save_IFS
8657
8658 fi
8659 fi
8660 WINDRES=$ac_cv_prog_WINDRES
8661 if test -n "$WINDRES"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8663 $as_echo "$WINDRES" >&6; }
8664 else
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8667 fi
8668
8669
8670 fi
8671 test -n "$ac_cv_prog_WINDRES" && break
8672 done
8673
8674 if test -z "$ac_cv_prog_WINDRES" ; then
8675 set dummy windres
8676 if test $build = $host ; then
8677 WINDRES="$2"
8678 else
8679 WINDRES="${ncn_tool_prefix}$2"
8680 fi
8681 fi
8682
8683
8684
8685 if test -n "$WINDMC"; then
8686 ac_cv_prog_WINDMC=$WINDMC
8687 elif test -n "$ac_cv_prog_WINDMC"; then
8688 WINDMC=$ac_cv_prog_WINDMC
8689 fi
8690
8691 if test -n "$ac_cv_prog_WINDMC"; then
8692 for ncn_progname in windmc; do
8693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8694 set dummy ${ncn_progname}; ac_word=$2
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696 $as_echo_n "checking for $ac_word... " >&6; }
8697 if test "${ac_cv_prog_WINDMC+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 if test -n "$WINDMC"; then
8701 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8702 else
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in $PATH
8705 do
8706 IFS=$as_save_IFS
8707 test -z "$as_dir" && as_dir=.
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710 ac_cv_prog_WINDMC="${ncn_progname}"
8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712 break 2
8713 fi
8714 done
8715 done
8716 IFS=$as_save_IFS
8717
8718 fi
8719 fi
8720 WINDMC=$ac_cv_prog_WINDMC
8721 if test -n "$WINDMC"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8723 $as_echo "$WINDMC" >&6; }
8724 else
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8727 fi
8728
8729
8730 done
8731 fi
8732
8733 for ncn_progname in windmc; do
8734 if test -n "$ncn_tool_prefix"; then
8735 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8736 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738 $as_echo_n "checking for $ac_word... " >&6; }
8739 if test "${ac_cv_prog_WINDMC+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 if test -n "$WINDMC"; then
8743 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8744 else
8745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746 for as_dir in $PATH
8747 do
8748 IFS=$as_save_IFS
8749 test -z "$as_dir" && as_dir=.
8750 for ac_exec_ext in '' $ac_executable_extensions; do
8751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8752 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
8753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 break 2
8755 fi
8756 done
8757 done
8758 IFS=$as_save_IFS
8759
8760 fi
8761 fi
8762 WINDMC=$ac_cv_prog_WINDMC
8763 if test -n "$WINDMC"; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8765 $as_echo "$WINDMC" >&6; }
8766 else
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8769 fi
8770
8771
8772 fi
8773 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8775 set dummy ${ncn_progname}; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if test "${ac_cv_prog_WINDMC+set}" = set; then :
8779 $as_echo_n "(cached) " >&6
8780 else
8781 if test -n "$WINDMC"; then
8782 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8783 else
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785 for as_dir in $PATH
8786 do
8787 IFS=$as_save_IFS
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791 ac_cv_prog_WINDMC="${ncn_progname}"
8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 break 2
8794 fi
8795 done
8796 done
8797 IFS=$as_save_IFS
8798
8799 fi
8800 fi
8801 WINDMC=$ac_cv_prog_WINDMC
8802 if test -n "$WINDMC"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8804 $as_echo "$WINDMC" >&6; }
8805 else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8808 fi
8809
8810
8811 fi
8812 test -n "$ac_cv_prog_WINDMC" && break
8813 done
8814
8815 if test -z "$ac_cv_prog_WINDMC" ; then
8816 set dummy windmc
8817 if test $build = $host ; then
8818 WINDMC="$2"
8819 else
8820 WINDMC="${ncn_tool_prefix}$2"
8821 fi
8822 fi
8823
8824
8825
8826 if test -n "$OBJCOPY"; then
8827 ac_cv_prog_OBJCOPY=$OBJCOPY
8828 elif test -n "$ac_cv_prog_OBJCOPY"; then
8829 OBJCOPY=$ac_cv_prog_OBJCOPY
8830 fi
8831
8832 if test -n "$ac_cv_prog_OBJCOPY"; then
8833 for ncn_progname in objcopy; do
8834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8835 set dummy ${ncn_progname}; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 if test -n "$OBJCOPY"; then
8842 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8846 do
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851 ac_cv_prog_OBJCOPY="${ncn_progname}"
8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 break 2
8854 fi
8855 done
8856 done
8857 IFS=$as_save_IFS
8858
8859 fi
8860 fi
8861 OBJCOPY=$ac_cv_prog_OBJCOPY
8862 if test -n "$OBJCOPY"; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8864 $as_echo "$OBJCOPY" >&6; }
8865 else
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8868 fi
8869
8870
8871 done
8872 fi
8873
8874 for ncn_progname in objcopy; do
8875 if test -n "$ncn_tool_prefix"; then
8876 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8877 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 if test -n "$OBJCOPY"; then
8884 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8885 else
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in $PATH
8888 do
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 break 2
8896 fi
8897 done
8898 done
8899 IFS=$as_save_IFS
8900
8901 fi
8902 fi
8903 OBJCOPY=$ac_cv_prog_OBJCOPY
8904 if test -n "$OBJCOPY"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8906 $as_echo "$OBJCOPY" >&6; }
8907 else
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909 $as_echo "no" >&6; }
8910 fi
8911
8912
8913 fi
8914 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8916 set dummy ${ncn_progname}; ac_word=$2
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8918 $as_echo_n "checking for $ac_word... " >&6; }
8919 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8920 $as_echo_n "(cached) " >&6
8921 else
8922 if test -n "$OBJCOPY"; then
8923 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8924 else
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926 for as_dir in $PATH
8927 do
8928 IFS=$as_save_IFS
8929 test -z "$as_dir" && as_dir=.
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8932 ac_cv_prog_OBJCOPY="${ncn_progname}"
8933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8934 break 2
8935 fi
8936 done
8937 done
8938 IFS=$as_save_IFS
8939
8940 fi
8941 fi
8942 OBJCOPY=$ac_cv_prog_OBJCOPY
8943 if test -n "$OBJCOPY"; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8945 $as_echo "$OBJCOPY" >&6; }
8946 else
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948 $as_echo "no" >&6; }
8949 fi
8950
8951
8952 fi
8953 test -n "$ac_cv_prog_OBJCOPY" && break
8954 done
8955
8956 if test -z "$ac_cv_prog_OBJCOPY" ; then
8957 set dummy objcopy
8958 if test $build = $host ; then
8959 OBJCOPY="$2"
8960 else
8961 OBJCOPY="${ncn_tool_prefix}$2"
8962 fi
8963 fi
8964
8965
8966
8967 if test -n "$OBJDUMP"; then
8968 ac_cv_prog_OBJDUMP=$OBJDUMP
8969 elif test -n "$ac_cv_prog_OBJDUMP"; then
8970 OBJDUMP=$ac_cv_prog_OBJDUMP
8971 fi
8972
8973 if test -n "$ac_cv_prog_OBJDUMP"; then
8974 for ncn_progname in objdump; do
8975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8976 set dummy ${ncn_progname}; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 if test -n "$OBJDUMP"; then
8983 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8984 else
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8987 do
8988 IFS=$as_save_IFS
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992 ac_cv_prog_OBJDUMP="${ncn_progname}"
8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 break 2
8995 fi
8996 done
8997 done
8998 IFS=$as_save_IFS
8999
9000 fi
9001 fi
9002 OBJDUMP=$ac_cv_prog_OBJDUMP
9003 if test -n "$OBJDUMP"; then
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9005 $as_echo "$OBJDUMP" >&6; }
9006 else
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008 $as_echo "no" >&6; }
9009 fi
9010
9011
9012 done
9013 fi
9014
9015 for ncn_progname in objdump; do
9016 if test -n "$ncn_tool_prefix"; then
9017 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9018 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9020 $as_echo_n "checking for $ac_word... " >&6; }
9021 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 if test -n "$OBJDUMP"; then
9025 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9026 else
9027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028 for as_dir in $PATH
9029 do
9030 IFS=$as_save_IFS
9031 test -z "$as_dir" && as_dir=.
9032 for ac_exec_ext in '' $ac_executable_extensions; do
9033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9034 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9036 break 2
9037 fi
9038 done
9039 done
9040 IFS=$as_save_IFS
9041
9042 fi
9043 fi
9044 OBJDUMP=$ac_cv_prog_OBJDUMP
9045 if test -n "$OBJDUMP"; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9047 $as_echo "$OBJDUMP" >&6; }
9048 else
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050 $as_echo "no" >&6; }
9051 fi
9052
9053
9054 fi
9055 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9057 set dummy ${ncn_progname}; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 if test -n "$OBJDUMP"; then
9064 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9065 else
9066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067 for as_dir in $PATH
9068 do
9069 IFS=$as_save_IFS
9070 test -z "$as_dir" && as_dir=.
9071 for ac_exec_ext in '' $ac_executable_extensions; do
9072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9073 ac_cv_prog_OBJDUMP="${ncn_progname}"
9074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9075 break 2
9076 fi
9077 done
9078 done
9079 IFS=$as_save_IFS
9080
9081 fi
9082 fi
9083 OBJDUMP=$ac_cv_prog_OBJDUMP
9084 if test -n "$OBJDUMP"; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9086 $as_echo "$OBJDUMP" >&6; }
9087 else
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9090 fi
9091
9092
9093 fi
9094 test -n "$ac_cv_prog_OBJDUMP" && break
9095 done
9096
9097 if test -z "$ac_cv_prog_OBJDUMP" ; then
9098 set dummy objdump
9099 if test $build = $host ; then
9100 OBJDUMP="$2"
9101 else
9102 OBJDUMP="${ncn_tool_prefix}$2"
9103 fi
9104 fi
9105
9106
9107
9108
9109
9110
9111 # Target tools.
9112
9113 # Check whether --with-build-time-tools was given.
9114 if test "${with_build_time_tools+set}" = set; then :
9115 withval=$with_build_time_tools; case x"$withval" in
9116 x/*) ;;
9117 *)
9118 with_build_time_tools=
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9120 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9121 ;;
9122 esac
9123 else
9124 with_build_time_tools=
9125 fi
9126
9127
9128
9129
9130 if test -n "$CC_FOR_TARGET"; then
9131 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9132 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9133 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9134 fi
9135
9136 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9137 for ncn_progname in cc gcc; do
9138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9139 set dummy ${ncn_progname}; ac_word=$2
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9141 $as_echo_n "checking for $ac_word... " >&6; }
9142 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 if test -n "$CC_FOR_TARGET"; then
9146 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9147 else
9148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9149 for as_dir in $PATH
9150 do
9151 IFS=$as_save_IFS
9152 test -z "$as_dir" && as_dir=.
9153 for ac_exec_ext in '' $ac_executable_extensions; do
9154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9155 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9157 break 2
9158 fi
9159 done
9160 done
9161 IFS=$as_save_IFS
9162
9163 fi
9164 fi
9165 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9166 if test -n "$CC_FOR_TARGET"; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9168 $as_echo "$CC_FOR_TARGET" >&6; }
9169 else
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9171 $as_echo "no" >&6; }
9172 fi
9173
9174
9175 done
9176 fi
9177
9178 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9179 for ncn_progname in cc gcc; do
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9181 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9182 if test -x $with_build_time_tools/${ncn_progname}; then
9183 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9185 $as_echo "yes" >&6; }
9186 break
9187 else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9190 fi
9191 done
9192 fi
9193
9194 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9195 for ncn_progname in cc gcc; do
9196 if test -n "$ncn_target_tool_prefix"; then
9197 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9198 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200 $as_echo_n "checking for $ac_word... " >&6; }
9201 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9202 $as_echo_n "(cached) " >&6
9203 else
9204 if test -n "$CC_FOR_TARGET"; then
9205 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9206 else
9207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 for as_dir in $PATH
9209 do
9210 IFS=$as_save_IFS
9211 test -z "$as_dir" && as_dir=.
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9214 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9216 break 2
9217 fi
9218 done
9219 done
9220 IFS=$as_save_IFS
9221
9222 fi
9223 fi
9224 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9225 if test -n "$CC_FOR_TARGET"; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9227 $as_echo "$CC_FOR_TARGET" >&6; }
9228 else
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230 $as_echo "no" >&6; }
9231 fi
9232
9233
9234 fi
9235 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9237 set dummy ${ncn_progname}; ac_word=$2
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239 $as_echo_n "checking for $ac_word... " >&6; }
9240 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9241 $as_echo_n "(cached) " >&6
9242 else
9243 if test -n "$CC_FOR_TARGET"; then
9244 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9245 else
9246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247 for as_dir in $PATH
9248 do
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9253 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9255 break 2
9256 fi
9257 done
9258 done
9259 IFS=$as_save_IFS
9260
9261 fi
9262 fi
9263 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9264 if test -n "$CC_FOR_TARGET"; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9266 $as_echo "$CC_FOR_TARGET" >&6; }
9267 else
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269 $as_echo "no" >&6; }
9270 fi
9271
9272
9273 fi
9274 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9275 done
9276 fi
9277
9278 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9279 set dummy cc gcc
9280 if test $build = $target ; then
9281 CC_FOR_TARGET="$2"
9282 else
9283 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9284 fi
9285 else
9286 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9287 fi
9288
9289
9290
9291 if test -n "$CXX_FOR_TARGET"; then
9292 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9293 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9294 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9295 fi
9296
9297 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9298 for ncn_progname in c++ g++ cxx gxx; do
9299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9300 set dummy ${ncn_progname}; ac_word=$2
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9302 $as_echo_n "checking for $ac_word... " >&6; }
9303 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9304 $as_echo_n "(cached) " >&6
9305 else
9306 if test -n "$CXX_FOR_TARGET"; then
9307 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9308 else
9309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9310 for as_dir in $PATH
9311 do
9312 IFS=$as_save_IFS
9313 test -z "$as_dir" && as_dir=.
9314 for ac_exec_ext in '' $ac_executable_extensions; do
9315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9316 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9318 break 2
9319 fi
9320 done
9321 done
9322 IFS=$as_save_IFS
9323
9324 fi
9325 fi
9326 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9327 if test -n "$CXX_FOR_TARGET"; then
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9329 $as_echo "$CXX_FOR_TARGET" >&6; }
9330 else
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9332 $as_echo "no" >&6; }
9333 fi
9334
9335
9336 done
9337 fi
9338
9339 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9340 for ncn_progname in c++ g++ cxx gxx; do
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9342 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9343 if test -x $with_build_time_tools/${ncn_progname}; then
9344 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9346 $as_echo "yes" >&6; }
9347 break
9348 else
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350 $as_echo "no" >&6; }
9351 fi
9352 done
9353 fi
9354
9355 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9356 for ncn_progname in c++ g++ cxx gxx; do
9357 if test -n "$ncn_target_tool_prefix"; then
9358 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9359 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361 $as_echo_n "checking for $ac_word... " >&6; }
9362 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9363 $as_echo_n "(cached) " >&6
9364 else
9365 if test -n "$CXX_FOR_TARGET"; then
9366 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9367 else
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369 for as_dir in $PATH
9370 do
9371 IFS=$as_save_IFS
9372 test -z "$as_dir" && as_dir=.
9373 for ac_exec_ext in '' $ac_executable_extensions; do
9374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9375 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377 break 2
9378 fi
9379 done
9380 done
9381 IFS=$as_save_IFS
9382
9383 fi
9384 fi
9385 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9386 if test -n "$CXX_FOR_TARGET"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9388 $as_echo "$CXX_FOR_TARGET" >&6; }
9389 else
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9392 fi
9393
9394
9395 fi
9396 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9398 set dummy ${ncn_progname}; ac_word=$2
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9400 $as_echo_n "checking for $ac_word... " >&6; }
9401 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9402 $as_echo_n "(cached) " >&6
9403 else
9404 if test -n "$CXX_FOR_TARGET"; then
9405 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9406 else
9407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9408 for as_dir in $PATH
9409 do
9410 IFS=$as_save_IFS
9411 test -z "$as_dir" && as_dir=.
9412 for ac_exec_ext in '' $ac_executable_extensions; do
9413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9414 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9416 break 2
9417 fi
9418 done
9419 done
9420 IFS=$as_save_IFS
9421
9422 fi
9423 fi
9424 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9425 if test -n "$CXX_FOR_TARGET"; then
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9427 $as_echo "$CXX_FOR_TARGET" >&6; }
9428 else
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9430 $as_echo "no" >&6; }
9431 fi
9432
9433
9434 fi
9435 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9436 done
9437 fi
9438
9439 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9440 set dummy c++ g++ cxx gxx
9441 if test $build = $target ; then
9442 CXX_FOR_TARGET="$2"
9443 else
9444 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9445 fi
9446 else
9447 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9448 fi
9449
9450
9451
9452 if test -n "$GCC_FOR_TARGET"; then
9453 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9454 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9455 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9456 fi
9457
9458 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9459 for ncn_progname in gcc; do
9460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9461 set dummy ${ncn_progname}; ac_word=$2
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9463 $as_echo_n "checking for $ac_word... " >&6; }
9464 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 if test -n "$GCC_FOR_TARGET"; then
9468 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9469 else
9470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471 for as_dir in $PATH
9472 do
9473 IFS=$as_save_IFS
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
9476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9477 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9479 break 2
9480 fi
9481 done
9482 done
9483 IFS=$as_save_IFS
9484
9485 fi
9486 fi
9487 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9488 if test -n "$GCC_FOR_TARGET"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9490 $as_echo "$GCC_FOR_TARGET" >&6; }
9491 else
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493 $as_echo "no" >&6; }
9494 fi
9495
9496
9497 done
9498 fi
9499
9500 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9501 for ncn_progname in gcc; do
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9503 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9504 if test -x $with_build_time_tools/${ncn_progname}; then
9505 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9507 $as_echo "yes" >&6; }
9508 break
9509 else
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9511 $as_echo "no" >&6; }
9512 fi
9513 done
9514 fi
9515
9516 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9517 for ncn_progname in gcc; do
9518 if test -n "$ncn_target_tool_prefix"; then
9519 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9520 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9522 $as_echo_n "checking for $ac_word... " >&6; }
9523 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 if test -n "$GCC_FOR_TARGET"; then
9527 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9528 else
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $PATH
9531 do
9532 IFS=$as_save_IFS
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9536 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538 break 2
9539 fi
9540 done
9541 done
9542 IFS=$as_save_IFS
9543
9544 fi
9545 fi
9546 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9547 if test -n "$GCC_FOR_TARGET"; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9549 $as_echo "$GCC_FOR_TARGET" >&6; }
9550 else
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9553 fi
9554
9555
9556 fi
9557 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9558 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9559 set dummy ${ncn_progname}; ac_word=$2
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561 $as_echo_n "checking for $ac_word... " >&6; }
9562 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 if test -n "$GCC_FOR_TARGET"; then
9566 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9567 else
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in $PATH
9570 do
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9575 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 break 2
9578 fi
9579 done
9580 done
9581 IFS=$as_save_IFS
9582
9583 fi
9584 fi
9585 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9586 if test -n "$GCC_FOR_TARGET"; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9588 $as_echo "$GCC_FOR_TARGET" >&6; }
9589 else
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9592 fi
9593
9594
9595 fi
9596 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9597 done
9598 fi
9599
9600 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9601 GCC_FOR_TARGET="${CC_FOR_TARGET}"
9602 else
9603 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
9604 fi
9605
9606
9607
9608 if test -n "$GCJ_FOR_TARGET"; then
9609 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9610 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9611 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9612 fi
9613
9614 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9615 for ncn_progname in gcj; do
9616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9617 set dummy ${ncn_progname}; ac_word=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 if test -n "$GCJ_FOR_TARGET"; then
9624 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9625 else
9626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 for as_dir in $PATH
9628 do
9629 IFS=$as_save_IFS
9630 test -z "$as_dir" && as_dir=.
9631 for ac_exec_ext in '' $ac_executable_extensions; do
9632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9633 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9635 break 2
9636 fi
9637 done
9638 done
9639 IFS=$as_save_IFS
9640
9641 fi
9642 fi
9643 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9644 if test -n "$GCJ_FOR_TARGET"; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9646 $as_echo "$GCJ_FOR_TARGET" >&6; }
9647 else
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 $as_echo "no" >&6; }
9650 fi
9651
9652
9653 done
9654 fi
9655
9656 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
9657 for ncn_progname in gcj; do
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9659 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9660 if test -x $with_build_time_tools/${ncn_progname}; then
9661 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9663 $as_echo "yes" >&6; }
9664 break
9665 else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9668 fi
9669 done
9670 fi
9671
9672 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9673 for ncn_progname in gcj; do
9674 if test -n "$ncn_target_tool_prefix"; then
9675 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9676 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 if test -n "$GCJ_FOR_TARGET"; then
9683 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9684 else
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686 for as_dir in $PATH
9687 do
9688 IFS=$as_save_IFS
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9692 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 break 2
9695 fi
9696 done
9697 done
9698 IFS=$as_save_IFS
9699
9700 fi
9701 fi
9702 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9703 if test -n "$GCJ_FOR_TARGET"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9705 $as_echo "$GCJ_FOR_TARGET" >&6; }
9706 else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9709 fi
9710
9711
9712 fi
9713 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9715 set dummy ${ncn_progname}; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 if test -n "$GCJ_FOR_TARGET"; then
9722 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9723 else
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 for as_dir in $PATH
9726 do
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9731 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733 break 2
9734 fi
9735 done
9736 done
9737 IFS=$as_save_IFS
9738
9739 fi
9740 fi
9741 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9742 if test -n "$GCJ_FOR_TARGET"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9744 $as_echo "$GCJ_FOR_TARGET" >&6; }
9745 else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9748 fi
9749
9750
9751 fi
9752 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9753 done
9754 fi
9755
9756 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9757 set dummy gcj
9758 if test $build = $target ; then
9759 GCJ_FOR_TARGET="$2"
9760 else
9761 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9762 fi
9763 else
9764 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9765 fi
9766
9767
9768
9769 if test -n "$GFORTRAN_FOR_TARGET"; then
9770 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9771 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9772 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9773 fi
9774
9775 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9776 for ncn_progname in gfortran; do
9777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9778 set dummy ${ncn_progname}; ac_word=$2
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9780 $as_echo_n "checking for $ac_word... " >&6; }
9781 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 if test -n "$GFORTRAN_FOR_TARGET"; then
9785 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9786 else
9787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 for as_dir in $PATH
9789 do
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9794 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9797 fi
9798 done
9799 done
9800 IFS=$as_save_IFS
9801
9802 fi
9803 fi
9804 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9805 if test -n "$GFORTRAN_FOR_TARGET"; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9807 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
9808 else
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810 $as_echo "no" >&6; }
9811 fi
9812
9813
9814 done
9815 fi
9816
9817 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
9818 for ncn_progname in gfortran; do
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9820 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9821 if test -x $with_build_time_tools/${ncn_progname}; then
9822 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9824 $as_echo "yes" >&6; }
9825 break
9826 else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9829 fi
9830 done
9831 fi
9832
9833 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9834 for ncn_progname in gfortran; do
9835 if test -n "$ncn_target_tool_prefix"; then
9836 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9837 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9839 $as_echo_n "checking for $ac_word... " >&6; }
9840 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 if test -n "$GFORTRAN_FOR_TARGET"; then
9844 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9845 else
9846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 for as_dir in $PATH
9848 do
9849 IFS=$as_save_IFS
9850 test -z "$as_dir" && as_dir=.
9851 for ac_exec_ext in '' $ac_executable_extensions; do
9852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9853 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9855 break 2
9856 fi
9857 done
9858 done
9859 IFS=$as_save_IFS
9860
9861 fi
9862 fi
9863 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9864 if test -n "$GFORTRAN_FOR_TARGET"; then
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9866 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
9867 else
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869 $as_echo "no" >&6; }
9870 fi
9871
9872
9873 fi
9874 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9876 set dummy ${ncn_progname}; ac_word=$2
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9878 $as_echo_n "checking for $ac_word... " >&6; }
9879 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9880 $as_echo_n "(cached) " >&6
9881 else
9882 if test -n "$GFORTRAN_FOR_TARGET"; then
9883 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9884 else
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9887 do
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
9890 for ac_exec_ext in '' $ac_executable_extensions; do
9891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9892 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
9893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9894 break 2
9895 fi
9896 done
9897 done
9898 IFS=$as_save_IFS
9899
9900 fi
9901 fi
9902 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9903 if test -n "$GFORTRAN_FOR_TARGET"; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9905 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
9906 else
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9908 $as_echo "no" >&6; }
9909 fi
9910
9911
9912 fi
9913 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9914 done
9915 fi
9916
9917 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9918 set dummy gfortran
9919 if test $build = $target ; then
9920 GFORTRAN_FOR_TARGET="$2"
9921 else
9922 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
9923 fi
9924 else
9925 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
9926 fi
9927
9928
9929
9930 cat > conftest.c << \EOF
9931 #ifdef __GNUC__
9932 gcc_yay;
9933 #endif
9934 EOF
9935 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9936 have_gcc_for_target=yes
9937 else
9938 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9939 have_gcc_for_target=no
9940 fi
9941 rm conftest.c
9942
9943
9944
9945
9946 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9947 if test -n "$with_build_time_tools"; then
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
9949 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
9950 if test -x $with_build_time_tools/ar; then
9951 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9952 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
9954 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
9955 else
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9957 $as_echo "no" >&6; }
9958 fi
9959 elif test $build != $host && test $have_gcc_for_target = yes; then
9960 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
9961 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9962 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
9963 fi
9964 fi
9965 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9966 # Extract the first word of "ar", so it can be a program name with args.
9967 set dummy ar; ac_word=$2
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969 $as_echo_n "checking for $ac_word... " >&6; }
9970 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 case $AR_FOR_TARGET in
9974 [\\/]* | ?:[\\/]*)
9975 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9976 ;;
9977 *)
9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 for as_dir in $gcc_cv_tool_dirs
9980 do
9981 IFS=$as_save_IFS
9982 test -z "$as_dir" && as_dir=.
9983 for ac_exec_ext in '' $ac_executable_extensions; do
9984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9985 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9987 break 2
9988 fi
9989 done
9990 done
9991 IFS=$as_save_IFS
9992
9993 ;;
9994 esac
9995 fi
9996 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9997 if test -n "$AR_FOR_TARGET"; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9999 $as_echo "$AR_FOR_TARGET" >&6; }
10000 else
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10002 $as_echo "no" >&6; }
10003 fi
10004
10005
10006 fi
10007 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10008
10009
10010 if test -n "$AR_FOR_TARGET"; then
10011 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10012 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10013 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10014 fi
10015
10016 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10017 for ncn_progname in ar; do
10018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10019 set dummy ${ncn_progname}; ac_word=$2
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021 $as_echo_n "checking for $ac_word... " >&6; }
10022 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 if test -n "$AR_FOR_TARGET"; then
10026 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10027 else
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10030 do
10031 IFS=$as_save_IFS
10032 test -z "$as_dir" && as_dir=.
10033 for ac_exec_ext in '' $ac_executable_extensions; do
10034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10035 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10037 break 2
10038 fi
10039 done
10040 done
10041 IFS=$as_save_IFS
10042
10043 fi
10044 fi
10045 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10046 if test -n "$AR_FOR_TARGET"; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10048 $as_echo "$AR_FOR_TARGET" >&6; }
10049 else
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10052 fi
10053
10054
10055 done
10056 fi
10057
10058 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10059 for ncn_progname in ar; do
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10061 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10062 if test -x $with_build_time_tools/${ncn_progname}; then
10063 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10065 $as_echo "yes" >&6; }
10066 break
10067 else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10070 fi
10071 done
10072 fi
10073
10074 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10075 for ncn_progname in ar; do
10076 if test -n "$ncn_target_tool_prefix"; then
10077 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10078 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10080 $as_echo_n "checking for $ac_word... " >&6; }
10081 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 if test -n "$AR_FOR_TARGET"; then
10085 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10086 else
10087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10088 for as_dir in $PATH
10089 do
10090 IFS=$as_save_IFS
10091 test -z "$as_dir" && as_dir=.
10092 for ac_exec_ext in '' $ac_executable_extensions; do
10093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10094 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10096 break 2
10097 fi
10098 done
10099 done
10100 IFS=$as_save_IFS
10101
10102 fi
10103 fi
10104 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10105 if test -n "$AR_FOR_TARGET"; then
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10107 $as_echo "$AR_FOR_TARGET" >&6; }
10108 else
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110 $as_echo "no" >&6; }
10111 fi
10112
10113
10114 fi
10115 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10117 set dummy ${ncn_progname}; ac_word=$2
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10119 $as_echo_n "checking for $ac_word... " >&6; }
10120 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 if test -n "$AR_FOR_TARGET"; then
10124 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10125 else
10126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127 for as_dir in $PATH
10128 do
10129 IFS=$as_save_IFS
10130 test -z "$as_dir" && as_dir=.
10131 for ac_exec_ext in '' $ac_executable_extensions; do
10132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10133 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10135 break 2
10136 fi
10137 done
10138 done
10139 IFS=$as_save_IFS
10140
10141 fi
10142 fi
10143 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10144 if test -n "$AR_FOR_TARGET"; then
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10146 $as_echo "$AR_FOR_TARGET" >&6; }
10147 else
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149 $as_echo "no" >&6; }
10150 fi
10151
10152
10153 fi
10154 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10155 done
10156 fi
10157
10158 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10159 set dummy ar
10160 if test $build = $target ; then
10161 AR_FOR_TARGET="$2"
10162 else
10163 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10164 fi
10165 else
10166 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10167 fi
10168
10169 else
10170 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10171 fi
10172
10173
10174
10175
10176 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10177 if test -n "$with_build_time_tools"; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10179 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10180 if test -x $with_build_time_tools/as; then
10181 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10182 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10184 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10185 else
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187 $as_echo "no" >&6; }
10188 fi
10189 elif test $build != $host && test $have_gcc_for_target = yes; then
10190 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10191 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10192 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10193 fi
10194 fi
10195 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10196 # Extract the first word of "as", so it can be a program name with args.
10197 set dummy as; ac_word=$2
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10201 $as_echo_n "(cached) " >&6
10202 else
10203 case $AS_FOR_TARGET in
10204 [\\/]* | ?:[\\/]*)
10205 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10206 ;;
10207 *)
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $gcc_cv_tool_dirs
10210 do
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10215 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 break 2
10218 fi
10219 done
10220 done
10221 IFS=$as_save_IFS
10222
10223 ;;
10224 esac
10225 fi
10226 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10227 if test -n "$AS_FOR_TARGET"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10229 $as_echo "$AS_FOR_TARGET" >&6; }
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10233 fi
10234
10235
10236 fi
10237 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10238
10239
10240 if test -n "$AS_FOR_TARGET"; then
10241 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10242 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10243 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10244 fi
10245
10246 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10247 for ncn_progname in as; do
10248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10249 set dummy ${ncn_progname}; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255 if test -n "$AS_FOR_TARGET"; then
10256 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10257 else
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10260 do
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10265 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 break 2
10268 fi
10269 done
10270 done
10271 IFS=$as_save_IFS
10272
10273 fi
10274 fi
10275 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10276 if test -n "$AS_FOR_TARGET"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10278 $as_echo "$AS_FOR_TARGET" >&6; }
10279 else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10282 fi
10283
10284
10285 done
10286 fi
10287
10288 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10289 for ncn_progname in as; do
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10291 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10292 if test -x $with_build_time_tools/${ncn_progname}; then
10293 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10295 $as_echo "yes" >&6; }
10296 break
10297 else
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10300 fi
10301 done
10302 fi
10303
10304 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10305 for ncn_progname in as; do
10306 if test -n "$ncn_target_tool_prefix"; then
10307 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10308 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 if test -n "$AS_FOR_TARGET"; then
10315 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10316 else
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10319 do
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10324 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 break 2
10327 fi
10328 done
10329 done
10330 IFS=$as_save_IFS
10331
10332 fi
10333 fi
10334 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10335 if test -n "$AS_FOR_TARGET"; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10337 $as_echo "$AS_FOR_TARGET" >&6; }
10338 else
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10341 fi
10342
10343
10344 fi
10345 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10347 set dummy ${ncn_progname}; ac_word=$2
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349 $as_echo_n "checking for $ac_word... " >&6; }
10350 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10353 if test -n "$AS_FOR_TARGET"; then
10354 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10355 else
10356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357 for as_dir in $PATH
10358 do
10359 IFS=$as_save_IFS
10360 test -z "$as_dir" && as_dir=.
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10363 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10365 break 2
10366 fi
10367 done
10368 done
10369 IFS=$as_save_IFS
10370
10371 fi
10372 fi
10373 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10374 if test -n "$AS_FOR_TARGET"; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10376 $as_echo "$AS_FOR_TARGET" >&6; }
10377 else
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 $as_echo "no" >&6; }
10380 fi
10381
10382
10383 fi
10384 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10385 done
10386 fi
10387
10388 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10389 set dummy as
10390 if test $build = $target ; then
10391 AS_FOR_TARGET="$2"
10392 else
10393 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10394 fi
10395 else
10396 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
10397 fi
10398
10399 else
10400 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10401 fi
10402
10403
10404
10405
10406 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10407 if test -n "$with_build_time_tools"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10409 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
10410 if test -x $with_build_time_tools/dlltool; then
10411 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10412 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10414 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
10415 else
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417 $as_echo "no" >&6; }
10418 fi
10419 elif test $build != $host && test $have_gcc_for_target = yes; then
10420 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
10421 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10422 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10423 fi
10424 fi
10425 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10426 # Extract the first word of "dlltool", so it can be a program name with args.
10427 set dummy dlltool; ac_word=$2
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429 $as_echo_n "checking for $ac_word... " >&6; }
10430 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10431 $as_echo_n "(cached) " >&6
10432 else
10433 case $DLLTOOL_FOR_TARGET in
10434 [\\/]* | ?:[\\/]*)
10435 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10436 ;;
10437 *)
10438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in $gcc_cv_tool_dirs
10440 do
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10445 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10447 break 2
10448 fi
10449 done
10450 done
10451 IFS=$as_save_IFS
10452
10453 ;;
10454 esac
10455 fi
10456 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10457 if test -n "$DLLTOOL_FOR_TARGET"; then
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10459 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10460 else
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462 $as_echo "no" >&6; }
10463 fi
10464
10465
10466 fi
10467 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10468
10469
10470 if test -n "$DLLTOOL_FOR_TARGET"; then
10471 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10472 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10473 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10474 fi
10475
10476 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10477 for ncn_progname in dlltool; do
10478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10479 set dummy ${ncn_progname}; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10484 else
10485 if test -n "$DLLTOOL_FOR_TARGET"; then
10486 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10487 else
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $PATH
10490 do
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
10493 for ac_exec_ext in '' $ac_executable_extensions; do
10494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10495 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497 break 2
10498 fi
10499 done
10500 done
10501 IFS=$as_save_IFS
10502
10503 fi
10504 fi
10505 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10506 if test -n "$DLLTOOL_FOR_TARGET"; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10508 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10509 else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 $as_echo "no" >&6; }
10512 fi
10513
10514
10515 done
10516 fi
10517
10518 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
10519 for ncn_progname in dlltool; do
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10521 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10522 if test -x $with_build_time_tools/${ncn_progname}; then
10523 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10525 $as_echo "yes" >&6; }
10526 break
10527 else
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10530 fi
10531 done
10532 fi
10533
10534 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10535 for ncn_progname in dlltool; do
10536 if test -n "$ncn_target_tool_prefix"; then
10537 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10538 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540 $as_echo_n "checking for $ac_word... " >&6; }
10541 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 if test -n "$DLLTOOL_FOR_TARGET"; then
10545 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10546 else
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in $PATH
10549 do
10550 IFS=$as_save_IFS
10551 test -z "$as_dir" && as_dir=.
10552 for ac_exec_ext in '' $ac_executable_extensions; do
10553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10554 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 break 2
10557 fi
10558 done
10559 done
10560 IFS=$as_save_IFS
10561
10562 fi
10563 fi
10564 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10565 if test -n "$DLLTOOL_FOR_TARGET"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10567 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10568 else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570 $as_echo "no" >&6; }
10571 fi
10572
10573
10574 fi
10575 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10577 set dummy ${ncn_progname}; ac_word=$2
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579 $as_echo_n "checking for $ac_word... " >&6; }
10580 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 if test -n "$DLLTOOL_FOR_TARGET"; then
10584 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10585 else
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10588 do
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10593 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10596 fi
10597 done
10598 done
10599 IFS=$as_save_IFS
10600
10601 fi
10602 fi
10603 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10604 if test -n "$DLLTOOL_FOR_TARGET"; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10606 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10607 else
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10610 fi
10611
10612
10613 fi
10614 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10615 done
10616 fi
10617
10618 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10619 set dummy dlltool
10620 if test $build = $target ; then
10621 DLLTOOL_FOR_TARGET="$2"
10622 else
10623 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10624 fi
10625 else
10626 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
10627 fi
10628
10629 else
10630 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10631 fi
10632
10633
10634
10635
10636 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10637 if test -n "$with_build_time_tools"; then
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
10639 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
10640 if test -x $with_build_time_tools/ld; then
10641 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10642 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
10644 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
10645 else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; }
10648 fi
10649 elif test $build != $host && test $have_gcc_for_target = yes; then
10650 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
10651 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10652 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
10653 fi
10654 fi
10655 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10656 # Extract the first word of "ld", so it can be a program name with args.
10657 set dummy ld; ac_word=$2
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10659 $as_echo_n "checking for $ac_word... " >&6; }
10660 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 case $LD_FOR_TARGET in
10664 [\\/]* | ?:[\\/]*)
10665 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10666 ;;
10667 *)
10668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669 for as_dir in $gcc_cv_tool_dirs
10670 do
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10675 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10677 break 2
10678 fi
10679 done
10680 done
10681 IFS=$as_save_IFS
10682
10683 ;;
10684 esac
10685 fi
10686 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10687 if test -n "$LD_FOR_TARGET"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10689 $as_echo "$LD_FOR_TARGET" >&6; }
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692 $as_echo "no" >&6; }
10693 fi
10694
10695
10696 fi
10697 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10698
10699
10700 if test -n "$LD_FOR_TARGET"; then
10701 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10702 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10703 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10704 fi
10705
10706 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10707 for ncn_progname in ld; do
10708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10709 set dummy ${ncn_progname}; ac_word=$2
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711 $as_echo_n "checking for $ac_word... " >&6; }
10712 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10715 if test -n "$LD_FOR_TARGET"; then
10716 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10717 else
10718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719 for as_dir in $PATH
10720 do
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10725 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 break 2
10728 fi
10729 done
10730 done
10731 IFS=$as_save_IFS
10732
10733 fi
10734 fi
10735 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10736 if test -n "$LD_FOR_TARGET"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10738 $as_echo "$LD_FOR_TARGET" >&6; }
10739 else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 $as_echo "no" >&6; }
10742 fi
10743
10744
10745 done
10746 fi
10747
10748 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
10749 for ncn_progname in ld; do
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10751 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10752 if test -x $with_build_time_tools/${ncn_progname}; then
10753 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10755 $as_echo "yes" >&6; }
10756 break
10757 else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; }
10760 fi
10761 done
10762 fi
10763
10764 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10765 for ncn_progname in ld; do
10766 if test -n "$ncn_target_tool_prefix"; then
10767 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10768 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10770 $as_echo_n "checking for $ac_word... " >&6; }
10771 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 if test -n "$LD_FOR_TARGET"; then
10775 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10776 else
10777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778 for as_dir in $PATH
10779 do
10780 IFS=$as_save_IFS
10781 test -z "$as_dir" && as_dir=.
10782 for ac_exec_ext in '' $ac_executable_extensions; do
10783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10784 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 break 2
10787 fi
10788 done
10789 done
10790 IFS=$as_save_IFS
10791
10792 fi
10793 fi
10794 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10795 if test -n "$LD_FOR_TARGET"; then
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10797 $as_echo "$LD_FOR_TARGET" >&6; }
10798 else
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800 $as_echo "no" >&6; }
10801 fi
10802
10803
10804 fi
10805 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10807 set dummy ${ncn_progname}; ac_word=$2
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10809 $as_echo_n "checking for $ac_word... " >&6; }
10810 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 if test -n "$LD_FOR_TARGET"; then
10814 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10815 else
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10818 do
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
10821 for ac_exec_ext in '' $ac_executable_extensions; do
10822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10823 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10825 break 2
10826 fi
10827 done
10828 done
10829 IFS=$as_save_IFS
10830
10831 fi
10832 fi
10833 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10834 if test -n "$LD_FOR_TARGET"; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10836 $as_echo "$LD_FOR_TARGET" >&6; }
10837 else
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839 $as_echo "no" >&6; }
10840 fi
10841
10842
10843 fi
10844 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10845 done
10846 fi
10847
10848 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10849 set dummy ld
10850 if test $build = $target ; then
10851 LD_FOR_TARGET="$2"
10852 else
10853 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10854 fi
10855 else
10856 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
10857 fi
10858
10859 else
10860 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
10861 fi
10862
10863
10864
10865
10866 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10867 if test -n "$with_build_time_tools"; then
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
10869 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
10870 if test -x $with_build_time_tools/lipo; then
10871 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10872 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10874 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
10875 else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 $as_echo "no" >&6; }
10878 fi
10879 elif test $build != $host && test $have_gcc_for_target = yes; then
10880 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
10881 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10882 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10883 fi
10884 fi
10885 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10886 # Extract the first word of "lipo", so it can be a program name with args.
10887 set dummy lipo; ac_word=$2
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889 $as_echo_n "checking for $ac_word... " >&6; }
10890 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 case $LIPO_FOR_TARGET in
10894 [\\/]* | ?:[\\/]*)
10895 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10896 ;;
10897 *)
10898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899 for as_dir in $gcc_cv_tool_dirs
10900 do
10901 IFS=$as_save_IFS
10902 test -z "$as_dir" && as_dir=.
10903 for ac_exec_ext in '' $ac_executable_extensions; do
10904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10905 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10907 break 2
10908 fi
10909 done
10910 done
10911 IFS=$as_save_IFS
10912
10913 ;;
10914 esac
10915 fi
10916 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
10917 if test -n "$LIPO_FOR_TARGET"; then
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10919 $as_echo "$LIPO_FOR_TARGET" >&6; }
10920 else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922 $as_echo "no" >&6; }
10923 fi
10924
10925
10926 fi
10927 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10928
10929
10930 if test -n "$LIPO_FOR_TARGET"; then
10931 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10932 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10933 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10934 fi
10935
10936 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10937 for ncn_progname in lipo; do
10938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10939 set dummy ${ncn_progname}; ac_word=$2
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10941 $as_echo_n "checking for $ac_word... " >&6; }
10942 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 if test -n "$LIPO_FOR_TARGET"; then
10946 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10947 else
10948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949 for as_dir in $PATH
10950 do
10951 IFS=$as_save_IFS
10952 test -z "$as_dir" && as_dir=.
10953 for ac_exec_ext in '' $ac_executable_extensions; do
10954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10955 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
10956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 break 2
10958 fi
10959 done
10960 done
10961 IFS=$as_save_IFS
10962
10963 fi
10964 fi
10965 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10966 if test -n "$LIPO_FOR_TARGET"; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10968 $as_echo "$LIPO_FOR_TARGET" >&6; }
10969 else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10972 fi
10973
10974
10975 done
10976 fi
10977
10978 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
10979 for ncn_progname in lipo; do
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10981 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10982 if test -x $with_build_time_tools/${ncn_progname}; then
10983 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10985 $as_echo "yes" >&6; }
10986 break
10987 else
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989 $as_echo "no" >&6; }
10990 fi
10991 done
10992 fi
10993
10994 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10995 for ncn_progname in lipo; do
10996 if test -n "$ncn_target_tool_prefix"; then
10997 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10998 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11000 $as_echo_n "checking for $ac_word... " >&6; }
11001 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11002 $as_echo_n "(cached) " >&6
11003 else
11004 if test -n "$LIPO_FOR_TARGET"; then
11005 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11006 else
11007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008 for as_dir in $PATH
11009 do
11010 IFS=$as_save_IFS
11011 test -z "$as_dir" && as_dir=.
11012 for ac_exec_ext in '' $ac_executable_extensions; do
11013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11014 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11016 break 2
11017 fi
11018 done
11019 done
11020 IFS=$as_save_IFS
11021
11022 fi
11023 fi
11024 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11025 if test -n "$LIPO_FOR_TARGET"; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11027 $as_echo "$LIPO_FOR_TARGET" >&6; }
11028 else
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030 $as_echo "no" >&6; }
11031 fi
11032
11033
11034 fi
11035 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11037 set dummy ${ncn_progname}; ac_word=$2
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11039 $as_echo_n "checking for $ac_word... " >&6; }
11040 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 if test -n "$LIPO_FOR_TARGET"; then
11044 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11045 else
11046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047 for as_dir in $PATH
11048 do
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11053 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11055 break 2
11056 fi
11057 done
11058 done
11059 IFS=$as_save_IFS
11060
11061 fi
11062 fi
11063 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11064 if test -n "$LIPO_FOR_TARGET"; then
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11066 $as_echo "$LIPO_FOR_TARGET" >&6; }
11067 else
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11069 $as_echo "no" >&6; }
11070 fi
11071
11072
11073 fi
11074 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11075 done
11076 fi
11077
11078 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11079 set dummy lipo
11080 if test $build = $target ; then
11081 LIPO_FOR_TARGET="$2"
11082 else
11083 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11084 fi
11085 else
11086 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11087 fi
11088
11089 else
11090 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11091 fi
11092
11093
11094
11095
11096 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11097 if test -n "$with_build_time_tools"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11099 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11100 if test -x $with_build_time_tools/nm; then
11101 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11102 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11104 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11105 else
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107 $as_echo "no" >&6; }
11108 fi
11109 elif test $build != $host && test $have_gcc_for_target = yes; then
11110 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11111 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11112 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11113 fi
11114 fi
11115 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11116 # Extract the first word of "nm", so it can be a program name with args.
11117 set dummy nm; ac_word=$2
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11119 $as_echo_n "checking for $ac_word... " >&6; }
11120 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 case $NM_FOR_TARGET in
11124 [\\/]* | ?:[\\/]*)
11125 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11126 ;;
11127 *)
11128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129 for as_dir in $gcc_cv_tool_dirs
11130 do
11131 IFS=$as_save_IFS
11132 test -z "$as_dir" && as_dir=.
11133 for ac_exec_ext in '' $ac_executable_extensions; do
11134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11135 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11137 break 2
11138 fi
11139 done
11140 done
11141 IFS=$as_save_IFS
11142
11143 ;;
11144 esac
11145 fi
11146 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11147 if test -n "$NM_FOR_TARGET"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11149 $as_echo "$NM_FOR_TARGET" >&6; }
11150 else
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11153 fi
11154
11155
11156 fi
11157 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11158
11159
11160 if test -n "$NM_FOR_TARGET"; then
11161 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11162 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11163 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11164 fi
11165
11166 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11167 for ncn_progname in nm; do
11168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11169 set dummy ${ncn_progname}; ac_word=$2
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11171 $as_echo_n "checking for $ac_word... " >&6; }
11172 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11173 $as_echo_n "(cached) " >&6
11174 else
11175 if test -n "$NM_FOR_TARGET"; then
11176 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11177 else
11178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179 for as_dir in $PATH
11180 do
11181 IFS=$as_save_IFS
11182 test -z "$as_dir" && as_dir=.
11183 for ac_exec_ext in '' $ac_executable_extensions; do
11184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11185 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11187 break 2
11188 fi
11189 done
11190 done
11191 IFS=$as_save_IFS
11192
11193 fi
11194 fi
11195 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11196 if test -n "$NM_FOR_TARGET"; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11198 $as_echo "$NM_FOR_TARGET" >&6; }
11199 else
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11202 fi
11203
11204
11205 done
11206 fi
11207
11208 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11209 for ncn_progname in nm; do
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11211 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11212 if test -x $with_build_time_tools/${ncn_progname}; then
11213 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11215 $as_echo "yes" >&6; }
11216 break
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11220 fi
11221 done
11222 fi
11223
11224 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11225 for ncn_progname in nm; do
11226 if test -n "$ncn_target_tool_prefix"; then
11227 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11228 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11230 $as_echo_n "checking for $ac_word... " >&6; }
11231 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11232 $as_echo_n "(cached) " >&6
11233 else
11234 if test -n "$NM_FOR_TARGET"; then
11235 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11236 else
11237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11238 for as_dir in $PATH
11239 do
11240 IFS=$as_save_IFS
11241 test -z "$as_dir" && as_dir=.
11242 for ac_exec_ext in '' $ac_executable_extensions; do
11243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11244 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11246 break 2
11247 fi
11248 done
11249 done
11250 IFS=$as_save_IFS
11251
11252 fi
11253 fi
11254 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11255 if test -n "$NM_FOR_TARGET"; then
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11257 $as_echo "$NM_FOR_TARGET" >&6; }
11258 else
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11260 $as_echo "no" >&6; }
11261 fi
11262
11263
11264 fi
11265 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11267 set dummy ${ncn_progname}; ac_word=$2
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11269 $as_echo_n "checking for $ac_word... " >&6; }
11270 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 if test -n "$NM_FOR_TARGET"; then
11274 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11275 else
11276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277 for as_dir in $PATH
11278 do
11279 IFS=$as_save_IFS
11280 test -z "$as_dir" && as_dir=.
11281 for ac_exec_ext in '' $ac_executable_extensions; do
11282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11283 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11285 break 2
11286 fi
11287 done
11288 done
11289 IFS=$as_save_IFS
11290
11291 fi
11292 fi
11293 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11294 if test -n "$NM_FOR_TARGET"; then
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11296 $as_echo "$NM_FOR_TARGET" >&6; }
11297 else
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299 $as_echo "no" >&6; }
11300 fi
11301
11302
11303 fi
11304 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11305 done
11306 fi
11307
11308 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11309 set dummy nm
11310 if test $build = $target ; then
11311 NM_FOR_TARGET="$2"
11312 else
11313 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11314 fi
11315 else
11316 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11317 fi
11318
11319 else
11320 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11321 fi
11322
11323
11324
11325
11326 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11327 if test -n "$with_build_time_tools"; then
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11329 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11330 if test -x $with_build_time_tools/objdump; then
11331 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11332 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11334 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11335 else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11338 fi
11339 elif test $build != $host && test $have_gcc_for_target = yes; then
11340 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11341 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11342 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11343 fi
11344 fi
11345 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11346 # Extract the first word of "objdump", so it can be a program name with args.
11347 set dummy objdump; ac_word=$2
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349 $as_echo_n "checking for $ac_word... " >&6; }
11350 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 case $OBJDUMP_FOR_TARGET in
11354 [\\/]* | ?:[\\/]*)
11355 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11356 ;;
11357 *)
11358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359 for as_dir in $gcc_cv_tool_dirs
11360 do
11361 IFS=$as_save_IFS
11362 test -z "$as_dir" && as_dir=.
11363 for ac_exec_ext in '' $ac_executable_extensions; do
11364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11365 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11367 break 2
11368 fi
11369 done
11370 done
11371 IFS=$as_save_IFS
11372
11373 ;;
11374 esac
11375 fi
11376 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11377 if test -n "$OBJDUMP_FOR_TARGET"; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11379 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11380 else
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11383 fi
11384
11385
11386 fi
11387 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11388
11389
11390 if test -n "$OBJDUMP_FOR_TARGET"; then
11391 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11392 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11393 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11394 fi
11395
11396 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11397 for ncn_progname in objdump; do
11398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11399 set dummy ${ncn_progname}; ac_word=$2
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401 $as_echo_n "checking for $ac_word... " >&6; }
11402 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 if test -n "$OBJDUMP_FOR_TARGET"; then
11406 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11407 else
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11410 do
11411 IFS=$as_save_IFS
11412 test -z "$as_dir" && as_dir=.
11413 for ac_exec_ext in '' $ac_executable_extensions; do
11414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11415 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11417 break 2
11418 fi
11419 done
11420 done
11421 IFS=$as_save_IFS
11422
11423 fi
11424 fi
11425 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11426 if test -n "$OBJDUMP_FOR_TARGET"; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11428 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11429 else
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11432 fi
11433
11434
11435 done
11436 fi
11437
11438 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11439 for ncn_progname in objdump; do
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11441 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11442 if test -x $with_build_time_tools/${ncn_progname}; then
11443 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11445 $as_echo "yes" >&6; }
11446 break
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449 $as_echo "no" >&6; }
11450 fi
11451 done
11452 fi
11453
11454 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11455 for ncn_progname in objdump; do
11456 if test -n "$ncn_target_tool_prefix"; then
11457 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11458 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460 $as_echo_n "checking for $ac_word... " >&6; }
11461 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 if test -n "$OBJDUMP_FOR_TARGET"; then
11465 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11466 else
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH
11469 do
11470 IFS=$as_save_IFS
11471 test -z "$as_dir" && as_dir=.
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11474 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 break 2
11477 fi
11478 done
11479 done
11480 IFS=$as_save_IFS
11481
11482 fi
11483 fi
11484 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11485 if test -n "$OBJDUMP_FOR_TARGET"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11487 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11488 else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 $as_echo "no" >&6; }
11491 fi
11492
11493
11494 fi
11495 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11497 set dummy ${ncn_progname}; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 $as_echo_n "checking for $ac_word... " >&6; }
11500 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 if test -n "$OBJDUMP_FOR_TARGET"; then
11504 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11505 else
11506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $PATH
11508 do
11509 IFS=$as_save_IFS
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11513 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11515 break 2
11516 fi
11517 done
11518 done
11519 IFS=$as_save_IFS
11520
11521 fi
11522 fi
11523 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11524 if test -n "$OBJDUMP_FOR_TARGET"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11526 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11530 fi
11531
11532
11533 fi
11534 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11535 done
11536 fi
11537
11538 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11539 set dummy objdump
11540 if test $build = $target ; then
11541 OBJDUMP_FOR_TARGET="$2"
11542 else
11543 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11544 fi
11545 else
11546 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
11547 fi
11548
11549 else
11550 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11551 fi
11552
11553
11554
11555
11556 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11557 if test -n "$with_build_time_tools"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
11559 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
11560 if test -x $with_build_time_tools/ranlib; then
11561 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11562 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11564 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11568 fi
11569 elif test $build != $host && test $have_gcc_for_target = yes; then
11570 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
11571 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11572 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11573 fi
11574 fi
11575 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11576 # Extract the first word of "ranlib", so it can be a program name with args.
11577 set dummy ranlib; ac_word=$2
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11579 $as_echo_n "checking for $ac_word... " >&6; }
11580 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 case $RANLIB_FOR_TARGET in
11584 [\\/]* | ?:[\\/]*)
11585 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11586 ;;
11587 *)
11588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589 for as_dir in $gcc_cv_tool_dirs
11590 do
11591 IFS=$as_save_IFS
11592 test -z "$as_dir" && as_dir=.
11593 for ac_exec_ext in '' $ac_executable_extensions; do
11594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11595 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11597 break 2
11598 fi
11599 done
11600 done
11601 IFS=$as_save_IFS
11602
11603 ;;
11604 esac
11605 fi
11606 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11607 if test -n "$RANLIB_FOR_TARGET"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11609 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11610 else
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11613 fi
11614
11615
11616 fi
11617 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11618
11619
11620 if test -n "$RANLIB_FOR_TARGET"; then
11621 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11622 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11623 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11624 fi
11625
11626 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11627 for ncn_progname in ranlib; do
11628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11629 set dummy ${ncn_progname}; ac_word=$2
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11631 $as_echo_n "checking for $ac_word... " >&6; }
11632 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 if test -n "$RANLIB_FOR_TARGET"; then
11636 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11637 else
11638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639 for as_dir in $PATH
11640 do
11641 IFS=$as_save_IFS
11642 test -z "$as_dir" && as_dir=.
11643 for ac_exec_ext in '' $ac_executable_extensions; do
11644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11645 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 break 2
11648 fi
11649 done
11650 done
11651 IFS=$as_save_IFS
11652
11653 fi
11654 fi
11655 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11656 if test -n "$RANLIB_FOR_TARGET"; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11658 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11659 else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11662 fi
11663
11664
11665 done
11666 fi
11667
11668 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
11669 for ncn_progname in ranlib; do
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11671 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11672 if test -x $with_build_time_tools/${ncn_progname}; then
11673 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11675 $as_echo "yes" >&6; }
11676 break
11677 else
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11680 fi
11681 done
11682 fi
11683
11684 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11685 for ncn_progname in ranlib; do
11686 if test -n "$ncn_target_tool_prefix"; then
11687 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11688 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11690 $as_echo_n "checking for $ac_word... " >&6; }
11691 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 if test -n "$RANLIB_FOR_TARGET"; then
11695 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11696 else
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11699 do
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11704 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 break 2
11707 fi
11708 done
11709 done
11710 IFS=$as_save_IFS
11711
11712 fi
11713 fi
11714 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11715 if test -n "$RANLIB_FOR_TARGET"; then
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11717 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11718 else
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720 $as_echo "no" >&6; }
11721 fi
11722
11723
11724 fi
11725 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11727 set dummy ${ncn_progname}; ac_word=$2
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729 $as_echo_n "checking for $ac_word... " >&6; }
11730 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11732 else
11733 if test -n "$RANLIB_FOR_TARGET"; then
11734 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11735 else
11736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737 for as_dir in $PATH
11738 do
11739 IFS=$as_save_IFS
11740 test -z "$as_dir" && as_dir=.
11741 for ac_exec_ext in '' $ac_executable_extensions; do
11742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11743 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
11744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745 break 2
11746 fi
11747 done
11748 done
11749 IFS=$as_save_IFS
11750
11751 fi
11752 fi
11753 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11754 if test -n "$RANLIB_FOR_TARGET"; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11756 $as_echo "$RANLIB_FOR_TARGET" >&6; }
11757 else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11760 fi
11761
11762
11763 fi
11764 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11765 done
11766 fi
11767
11768 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11769 set dummy ranlib
11770 if test $build = $target ; then
11771 RANLIB_FOR_TARGET="$2"
11772 else
11773 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
11774 fi
11775 else
11776 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
11777 fi
11778
11779 else
11780 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
11781 fi
11782
11783
11784
11785
11786 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11787 if test -n "$with_build_time_tools"; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
11789 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
11790 if test -x $with_build_time_tools/strip; then
11791 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11792 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11794 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
11795 else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11798 fi
11799 elif test $build != $host && test $have_gcc_for_target = yes; then
11800 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
11801 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11802 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11803 fi
11804 fi
11805 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11806 # Extract the first word of "strip", so it can be a program name with args.
11807 set dummy strip; ac_word=$2
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11809 $as_echo_n "checking for $ac_word... " >&6; }
11810 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
11811 $as_echo_n "(cached) " >&6
11812 else
11813 case $STRIP_FOR_TARGET in
11814 [\\/]* | ?:[\\/]*)
11815 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11816 ;;
11817 *)
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in $gcc_cv_tool_dirs
11820 do
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 break 2
11828 fi
11829 done
11830 done
11831 IFS=$as_save_IFS
11832
11833 ;;
11834 esac
11835 fi
11836 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
11837 if test -n "$STRIP_FOR_TARGET"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11839 $as_echo "$STRIP_FOR_TARGET" >&6; }
11840 else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11843 fi
11844
11845
11846 fi
11847 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11848
11849
11850 if test -n "$STRIP_FOR_TARGET"; then
11851 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11852 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11853 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11854 fi
11855
11856 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11857 for ncn_progname in strip; do
11858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11859 set dummy ${ncn_progname}; ac_word=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 if test -n "$STRIP_FOR_TARGET"; then
11866 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11867 else
11868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869 for as_dir in $PATH
11870 do
11871 IFS=$as_save_IFS
11872 test -z "$as_dir" && as_dir=.
11873 for ac_exec_ext in '' $ac_executable_extensions; do
11874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11875 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877 break 2
11878 fi
11879 done
11880 done
11881 IFS=$as_save_IFS
11882
11883 fi
11884 fi
11885 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11886 if test -n "$STRIP_FOR_TARGET"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11888 $as_echo "$STRIP_FOR_TARGET" >&6; }
11889 else
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11892 fi
11893
11894
11895 done
11896 fi
11897
11898 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11899 for ncn_progname in strip; do
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11901 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11902 if test -x $with_build_time_tools/${ncn_progname}; then
11903 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11905 $as_echo "yes" >&6; }
11906 break
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11910 fi
11911 done
11912 fi
11913
11914 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11915 for ncn_progname in strip; do
11916 if test -n "$ncn_target_tool_prefix"; then
11917 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11918 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920 $as_echo_n "checking for $ac_word... " >&6; }
11921 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11922 $as_echo_n "(cached) " >&6
11923 else
11924 if test -n "$STRIP_FOR_TARGET"; then
11925 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11926 else
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11929 do
11930 IFS=$as_save_IFS
11931 test -z "$as_dir" && as_dir=.
11932 for ac_exec_ext in '' $ac_executable_extensions; do
11933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11934 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936 break 2
11937 fi
11938 done
11939 done
11940 IFS=$as_save_IFS
11941
11942 fi
11943 fi
11944 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11945 if test -n "$STRIP_FOR_TARGET"; then
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11947 $as_echo "$STRIP_FOR_TARGET" >&6; }
11948 else
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11951 fi
11952
11953
11954 fi
11955 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11957 set dummy ${ncn_progname}; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11961 $as_echo_n "(cached) " >&6
11962 else
11963 if test -n "$STRIP_FOR_TARGET"; then
11964 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11965 else
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11968 do
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11973 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975 break 2
11976 fi
11977 done
11978 done
11979 IFS=$as_save_IFS
11980
11981 fi
11982 fi
11983 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11984 if test -n "$STRIP_FOR_TARGET"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11986 $as_echo "$STRIP_FOR_TARGET" >&6; }
11987 else
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989 $as_echo "no" >&6; }
11990 fi
11991
11992
11993 fi
11994 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11995 done
11996 fi
11997
11998 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11999 set dummy strip
12000 if test $build = $target ; then
12001 STRIP_FOR_TARGET="$2"
12002 else
12003 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12004 fi
12005 else
12006 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12007 fi
12008
12009 else
12010 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12011 fi
12012
12013
12014
12015
12016 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12017 if test -n "$with_build_time_tools"; then
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12019 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12020 if test -x $with_build_time_tools/windres; then
12021 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12022 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12024 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12025 else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12028 fi
12029 elif test $build != $host && test $have_gcc_for_target = yes; then
12030 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12031 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12032 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12033 fi
12034 fi
12035 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12036 # Extract the first word of "windres", so it can be a program name with args.
12037 set dummy windres; ac_word=$2
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12039 $as_echo_n "checking for $ac_word... " >&6; }
12040 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12041 $as_echo_n "(cached) " >&6
12042 else
12043 case $WINDRES_FOR_TARGET in
12044 [\\/]* | ?:[\\/]*)
12045 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12046 ;;
12047 *)
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $gcc_cv_tool_dirs
12050 do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12055 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 break 2
12058 fi
12059 done
12060 done
12061 IFS=$as_save_IFS
12062
12063 ;;
12064 esac
12065 fi
12066 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12067 if test -n "$WINDRES_FOR_TARGET"; then
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12069 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12070 else
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 $as_echo "no" >&6; }
12073 fi
12074
12075
12076 fi
12077 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12078
12079
12080 if test -n "$WINDRES_FOR_TARGET"; then
12081 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12082 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12083 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12084 fi
12085
12086 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12087 for ncn_progname in windres; do
12088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12089 set dummy ${ncn_progname}; ac_word=$2
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091 $as_echo_n "checking for $ac_word... " >&6; }
12092 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12093 $as_echo_n "(cached) " >&6
12094 else
12095 if test -n "$WINDRES_FOR_TARGET"; then
12096 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12097 else
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12100 do
12101 IFS=$as_save_IFS
12102 test -z "$as_dir" && as_dir=.
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12105 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107 break 2
12108 fi
12109 done
12110 done
12111 IFS=$as_save_IFS
12112
12113 fi
12114 fi
12115 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12116 if test -n "$WINDRES_FOR_TARGET"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12118 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12119 else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12122 fi
12123
12124
12125 done
12126 fi
12127
12128 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12129 for ncn_progname in windres; do
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12131 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12132 if test -x $with_build_time_tools/${ncn_progname}; then
12133 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12135 $as_echo "yes" >&6; }
12136 break
12137 else
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12140 fi
12141 done
12142 fi
12143
12144 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12145 for ncn_progname in windres; do
12146 if test -n "$ncn_target_tool_prefix"; then
12147 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12148 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12150 $as_echo_n "checking for $ac_word... " >&6; }
12151 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 if test -n "$WINDRES_FOR_TARGET"; then
12155 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12156 else
12157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12158 for as_dir in $PATH
12159 do
12160 IFS=$as_save_IFS
12161 test -z "$as_dir" && as_dir=.
12162 for ac_exec_ext in '' $ac_executable_extensions; do
12163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12164 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12166 break 2
12167 fi
12168 done
12169 done
12170 IFS=$as_save_IFS
12171
12172 fi
12173 fi
12174 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12175 if test -n "$WINDRES_FOR_TARGET"; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12177 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180 $as_echo "no" >&6; }
12181 fi
12182
12183
12184 fi
12185 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12187 set dummy ${ncn_progname}; ac_word=$2
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189 $as_echo_n "checking for $ac_word... " >&6; }
12190 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 if test -n "$WINDRES_FOR_TARGET"; then
12194 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12195 else
12196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197 for as_dir in $PATH
12198 do
12199 IFS=$as_save_IFS
12200 test -z "$as_dir" && as_dir=.
12201 for ac_exec_ext in '' $ac_executable_extensions; do
12202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12203 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205 break 2
12206 fi
12207 done
12208 done
12209 IFS=$as_save_IFS
12210
12211 fi
12212 fi
12213 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12214 if test -n "$WINDRES_FOR_TARGET"; then
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12216 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12217 else
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219 $as_echo "no" >&6; }
12220 fi
12221
12222
12223 fi
12224 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12225 done
12226 fi
12227
12228 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12229 set dummy windres
12230 if test $build = $target ; then
12231 WINDRES_FOR_TARGET="$2"
12232 else
12233 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12234 fi
12235 else
12236 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12237 fi
12238
12239 else
12240 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12241 fi
12242
12243
12244
12245
12246 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12247 if test -n "$with_build_time_tools"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12249 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12250 if test -x $with_build_time_tools/windmc; then
12251 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12252 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12254 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12255 else
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12258 fi
12259 elif test $build != $host && test $have_gcc_for_target = yes; then
12260 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12261 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12262 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12263 fi
12264 fi
12265 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12266 # Extract the first word of "windmc", so it can be a program name with args.
12267 set dummy windmc; ac_word=$2
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 $as_echo_n "checking for $ac_word... " >&6; }
12270 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 case $WINDMC_FOR_TARGET in
12274 [\\/]* | ?:[\\/]*)
12275 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12276 ;;
12277 *)
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $gcc_cv_tool_dirs
12280 do
12281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12285 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12287 break 2
12288 fi
12289 done
12290 done
12291 IFS=$as_save_IFS
12292
12293 ;;
12294 esac
12295 fi
12296 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12297 if test -n "$WINDMC_FOR_TARGET"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12299 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12300 else
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 $as_echo "no" >&6; }
12303 fi
12304
12305
12306 fi
12307 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12308
12309
12310 if test -n "$WINDMC_FOR_TARGET"; then
12311 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12312 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12313 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12314 fi
12315
12316 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12317 for ncn_progname in windmc; do
12318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12319 set dummy ${ncn_progname}; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 if test -n "$WINDMC_FOR_TARGET"; then
12326 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12327 else
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12330 do
12331 IFS=$as_save_IFS
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 break 2
12338 fi
12339 done
12340 done
12341 IFS=$as_save_IFS
12342
12343 fi
12344 fi
12345 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12346 if test -n "$WINDMC_FOR_TARGET"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12348 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12352 fi
12353
12354
12355 done
12356 fi
12357
12358 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12359 for ncn_progname in windmc; do
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12361 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12362 if test -x $with_build_time_tools/${ncn_progname}; then
12363 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12365 $as_echo "yes" >&6; }
12366 break
12367 else
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 $as_echo "no" >&6; }
12370 fi
12371 done
12372 fi
12373
12374 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12375 for ncn_progname in windmc; do
12376 if test -n "$ncn_target_tool_prefix"; then
12377 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12378 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12380 $as_echo_n "checking for $ac_word... " >&6; }
12381 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12382 $as_echo_n "(cached) " >&6
12383 else
12384 if test -n "$WINDMC_FOR_TARGET"; then
12385 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12386 else
12387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388 for as_dir in $PATH
12389 do
12390 IFS=$as_save_IFS
12391 test -z "$as_dir" && as_dir=.
12392 for ac_exec_ext in '' $ac_executable_extensions; do
12393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12394 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12396 break 2
12397 fi
12398 done
12399 done
12400 IFS=$as_save_IFS
12401
12402 fi
12403 fi
12404 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12405 if test -n "$WINDMC_FOR_TARGET"; then
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12407 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12408 else
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410 $as_echo "no" >&6; }
12411 fi
12412
12413
12414 fi
12415 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12417 set dummy ${ncn_progname}; ac_word=$2
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12419 $as_echo_n "checking for $ac_word... " >&6; }
12420 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12421 $as_echo_n "(cached) " >&6
12422 else
12423 if test -n "$WINDMC_FOR_TARGET"; then
12424 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12425 else
12426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12427 for as_dir in $PATH
12428 do
12429 IFS=$as_save_IFS
12430 test -z "$as_dir" && as_dir=.
12431 for ac_exec_ext in '' $ac_executable_extensions; do
12432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12433 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12435 break 2
12436 fi
12437 done
12438 done
12439 IFS=$as_save_IFS
12440
12441 fi
12442 fi
12443 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12444 if test -n "$WINDMC_FOR_TARGET"; then
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12446 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12447 else
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449 $as_echo "no" >&6; }
12450 fi
12451
12452
12453 fi
12454 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12455 done
12456 fi
12457
12458 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12459 set dummy windmc
12460 if test $build = $target ; then
12461 WINDMC_FOR_TARGET="$2"
12462 else
12463 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12464 fi
12465 else
12466 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12467 fi
12468
12469 else
12470 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12471 fi
12472
12473
12474 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12475
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12477 $as_echo_n "checking where to find the target ar... " >&6; }
12478 if test "x${build}" != "x${host}" ; then
12479 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12480 # We already found the complete path
12481 ac_dir=`dirname $AR_FOR_TARGET`
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12483 $as_echo "pre-installed in $ac_dir" >&6; }
12484 else
12485 # Canadian cross, just use what we found
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12487 $as_echo "pre-installed" >&6; }
12488 fi
12489 else
12490 ok=yes
12491 case " ${configdirs} " in
12492 *" binutils "*) ;;
12493 *) ok=no ;;
12494 esac
12495
12496 if test $ok = yes; then
12497 # An in-tree tool is available and we can use it
12498 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12500 $as_echo "just compiled" >&6; }
12501 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12502 # We already found the complete path
12503 ac_dir=`dirname $AR_FOR_TARGET`
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12505 $as_echo "pre-installed in $ac_dir" >&6; }
12506 elif test "x$target" = "x$host"; then
12507 # We can use an host tool
12508 AR_FOR_TARGET='$(AR)'
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12510 $as_echo "host tool" >&6; }
12511 else
12512 # We need a cross tool
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12514 $as_echo "pre-installed" >&6; }
12515 fi
12516 fi
12517
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12519 $as_echo_n "checking where to find the target as... " >&6; }
12520 if test "x${build}" != "x${host}" ; then
12521 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12522 # We already found the complete path
12523 ac_dir=`dirname $AS_FOR_TARGET`
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12525 $as_echo "pre-installed in $ac_dir" >&6; }
12526 else
12527 # Canadian cross, just use what we found
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12529 $as_echo "pre-installed" >&6; }
12530 fi
12531 else
12532 ok=yes
12533 case " ${configdirs} " in
12534 *" gas "*) ;;
12535 *) ok=no ;;
12536 esac
12537
12538 if test $ok = yes; then
12539 # An in-tree tool is available and we can use it
12540 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12542 $as_echo "just compiled" >&6; }
12543 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12544 # We already found the complete path
12545 ac_dir=`dirname $AS_FOR_TARGET`
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12547 $as_echo "pre-installed in $ac_dir" >&6; }
12548 elif test "x$target" = "x$host"; then
12549 # We can use an host tool
12550 AS_FOR_TARGET='$(AS)'
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12552 $as_echo "host tool" >&6; }
12553 else
12554 # We need a cross tool
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12556 $as_echo "pre-installed" >&6; }
12557 fi
12558 fi
12559
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
12561 $as_echo_n "checking where to find the target cc... " >&6; }
12562 if test "x${build}" != "x${host}" ; then
12563 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12564 # We already found the complete path
12565 ac_dir=`dirname $CC_FOR_TARGET`
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12567 $as_echo "pre-installed in $ac_dir" >&6; }
12568 else
12569 # Canadian cross, just use what we found
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12571 $as_echo "pre-installed" >&6; }
12572 fi
12573 else
12574 ok=yes
12575 case " ${configdirs} " in
12576 *" gcc "*) ;;
12577 *) ok=no ;;
12578 esac
12579
12580 if test $ok = yes; then
12581 # An in-tree tool is available and we can use it
12582 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12584 $as_echo "just compiled" >&6; }
12585 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12586 # We already found the complete path
12587 ac_dir=`dirname $CC_FOR_TARGET`
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12589 $as_echo "pre-installed in $ac_dir" >&6; }
12590 elif test "x$target" = "x$host"; then
12591 # We can use an host tool
12592 CC_FOR_TARGET='$(CC)'
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12594 $as_echo "host tool" >&6; }
12595 else
12596 # We need a cross tool
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12598 $as_echo "pre-installed" >&6; }
12599 fi
12600 fi
12601
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
12603 $as_echo_n "checking where to find the target c++... " >&6; }
12604 if test "x${build}" != "x${host}" ; then
12605 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12606 # We already found the complete path
12607 ac_dir=`dirname $CXX_FOR_TARGET`
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12609 $as_echo "pre-installed in $ac_dir" >&6; }
12610 else
12611 # Canadian cross, just use what we found
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12613 $as_echo "pre-installed" >&6; }
12614 fi
12615 else
12616 ok=yes
12617 case " ${configdirs} " in
12618 *" gcc "*) ;;
12619 *) ok=no ;;
12620 esac
12621 case ,${enable_languages}, in
12622 *,c++,*) ;;
12623 *) ok=no ;;
12624 esac
12625 if test $ok = yes; then
12626 # An in-tree tool is available and we can use it
12627 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12629 $as_echo "just compiled" >&6; }
12630 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12631 # We already found the complete path
12632 ac_dir=`dirname $CXX_FOR_TARGET`
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12634 $as_echo "pre-installed in $ac_dir" >&6; }
12635 elif test "x$target" = "x$host"; then
12636 # We can use an host tool
12637 CXX_FOR_TARGET='$(CXX)'
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12639 $as_echo "host tool" >&6; }
12640 else
12641 # We need a cross tool
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12643 $as_echo "pre-installed" >&6; }
12644 fi
12645 fi
12646
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
12648 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
12649 if test "x${build}" != "x${host}" ; then
12650 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12651 # We already found the complete path
12652 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12654 $as_echo "pre-installed in $ac_dir" >&6; }
12655 else
12656 # Canadian cross, just use what we found
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12658 $as_echo "pre-installed" >&6; }
12659 fi
12660 else
12661 ok=yes
12662 case " ${configdirs} " in
12663 *" gcc "*) ;;
12664 *) ok=no ;;
12665 esac
12666 case ,${enable_languages}, in
12667 *,c++,*) ;;
12668 *) ok=no ;;
12669 esac
12670 if test $ok = yes; then
12671 # An in-tree tool is available and we can use it
12672 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'
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12674 $as_echo "just compiled" >&6; }
12675 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12676 # We already found the complete path
12677 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12679 $as_echo "pre-installed in $ac_dir" >&6; }
12680 elif test "x$target" = "x$host"; then
12681 # We can use an host tool
12682 RAW_CXX_FOR_TARGET='$(CXX)'
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12684 $as_echo "host tool" >&6; }
12685 else
12686 # We need a cross tool
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12688 $as_echo "pre-installed" >&6; }
12689 fi
12690 fi
12691
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
12693 $as_echo_n "checking where to find the target dlltool... " >&6; }
12694 if test "x${build}" != "x${host}" ; then
12695 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12696 # We already found the complete path
12697 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12699 $as_echo "pre-installed in $ac_dir" >&6; }
12700 else
12701 # Canadian cross, just use what we found
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12703 $as_echo "pre-installed" >&6; }
12704 fi
12705 else
12706 ok=yes
12707 case " ${configdirs} " in
12708 *" binutils "*) ;;
12709 *) ok=no ;;
12710 esac
12711
12712 if test $ok = yes; then
12713 # An in-tree tool is available and we can use it
12714 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12716 $as_echo "just compiled" >&6; }
12717 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12718 # We already found the complete path
12719 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12721 $as_echo "pre-installed in $ac_dir" >&6; }
12722 elif test "x$target" = "x$host"; then
12723 # We can use an host tool
12724 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12726 $as_echo "host tool" >&6; }
12727 else
12728 # We need a cross tool
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12730 $as_echo "pre-installed" >&6; }
12731 fi
12732 fi
12733
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
12735 $as_echo_n "checking where to find the target gcc... " >&6; }
12736 if test "x${build}" != "x${host}" ; then
12737 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12738 # We already found the complete path
12739 ac_dir=`dirname $GCC_FOR_TARGET`
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12741 $as_echo "pre-installed in $ac_dir" >&6; }
12742 else
12743 # Canadian cross, just use what we found
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12745 $as_echo "pre-installed" >&6; }
12746 fi
12747 else
12748 ok=yes
12749 case " ${configdirs} " in
12750 *" gcc "*) ;;
12751 *) ok=no ;;
12752 esac
12753
12754 if test $ok = yes; then
12755 # An in-tree tool is available and we can use it
12756 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12758 $as_echo "just compiled" >&6; }
12759 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12760 # We already found the complete path
12761 ac_dir=`dirname $GCC_FOR_TARGET`
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12763 $as_echo "pre-installed in $ac_dir" >&6; }
12764 elif test "x$target" = "x$host"; then
12765 # We can use an host tool
12766 GCC_FOR_TARGET='$()'
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12768 $as_echo "host tool" >&6; }
12769 else
12770 # We need a cross tool
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12772 $as_echo "pre-installed" >&6; }
12773 fi
12774 fi
12775
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
12777 $as_echo_n "checking where to find the target gcj... " >&6; }
12778 if test "x${build}" != "x${host}" ; then
12779 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12780 # We already found the complete path
12781 ac_dir=`dirname $GCJ_FOR_TARGET`
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12783 $as_echo "pre-installed in $ac_dir" >&6; }
12784 else
12785 # Canadian cross, just use what we found
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12787 $as_echo "pre-installed" >&6; }
12788 fi
12789 else
12790 ok=yes
12791 case " ${configdirs} " in
12792 *" gcc "*) ;;
12793 *) ok=no ;;
12794 esac
12795 case ,${enable_languages}, in
12796 *,java,*) ;;
12797 *) ok=no ;;
12798 esac
12799 if test $ok = yes; then
12800 # An in-tree tool is available and we can use it
12801 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12803 $as_echo "just compiled" >&6; }
12804 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12805 # We already found the complete path
12806 ac_dir=`dirname $GCJ_FOR_TARGET`
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12808 $as_echo "pre-installed in $ac_dir" >&6; }
12809 elif test "x$target" = "x$host"; then
12810 # We can use an host tool
12811 GCJ_FOR_TARGET='$(GCJ)'
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12813 $as_echo "host tool" >&6; }
12814 else
12815 # We need a cross tool
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12817 $as_echo "pre-installed" >&6; }
12818 fi
12819 fi
12820
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
12822 $as_echo_n "checking where to find the target gfortran... " >&6; }
12823 if test "x${build}" != "x${host}" ; then
12824 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12825 # We already found the complete path
12826 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12828 $as_echo "pre-installed in $ac_dir" >&6; }
12829 else
12830 # Canadian cross, just use what we found
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12832 $as_echo "pre-installed" >&6; }
12833 fi
12834 else
12835 ok=yes
12836 case " ${configdirs} " in
12837 *" gcc "*) ;;
12838 *) ok=no ;;
12839 esac
12840 case ,${enable_languages}, in
12841 *,fortran,*) ;;
12842 *) ok=no ;;
12843 esac
12844 if test $ok = yes; then
12845 # An in-tree tool is available and we can use it
12846 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12848 $as_echo "just compiled" >&6; }
12849 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12850 # We already found the complete path
12851 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12853 $as_echo "pre-installed in $ac_dir" >&6; }
12854 elif test "x$target" = "x$host"; then
12855 # We can use an host tool
12856 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12858 $as_echo "host tool" >&6; }
12859 else
12860 # We need a cross tool
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12862 $as_echo "pre-installed" >&6; }
12863 fi
12864 fi
12865
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
12867 $as_echo_n "checking where to find the target ld... " >&6; }
12868 if test "x${build}" != "x${host}" ; then
12869 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12870 # We already found the complete path
12871 ac_dir=`dirname $LD_FOR_TARGET`
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12873 $as_echo "pre-installed in $ac_dir" >&6; }
12874 else
12875 # Canadian cross, just use what we found
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12877 $as_echo "pre-installed" >&6; }
12878 fi
12879 else
12880 ok=yes
12881 case " ${configdirs} " in
12882 *" ld "*) ;;
12883 *) ok=no ;;
12884 esac
12885
12886 if test $ok = yes; then
12887 # An in-tree tool is available and we can use it
12888 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12890 $as_echo "just compiled" >&6; }
12891 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12892 # We already found the complete path
12893 ac_dir=`dirname $LD_FOR_TARGET`
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12895 $as_echo "pre-installed in $ac_dir" >&6; }
12896 elif test "x$target" = "x$host"; then
12897 # We can use an host tool
12898 LD_FOR_TARGET='$(LD)'
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12900 $as_echo "host tool" >&6; }
12901 else
12902 # We need a cross tool
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12904 $as_echo "pre-installed" >&6; }
12905 fi
12906 fi
12907
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
12909 $as_echo_n "checking where to find the target lipo... " >&6; }
12910 if test "x${build}" != "x${host}" ; then
12911 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12912 # We already found the complete path
12913 ac_dir=`dirname $LIPO_FOR_TARGET`
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12915 $as_echo "pre-installed in $ac_dir" >&6; }
12916 else
12917 # Canadian cross, just use what we found
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12919 $as_echo "pre-installed" >&6; }
12920 fi
12921 else
12922 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12923 # We already found the complete path
12924 ac_dir=`dirname $LIPO_FOR_TARGET`
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12926 $as_echo "pre-installed in $ac_dir" >&6; }
12927 elif test "x$target" = "x$host"; then
12928 # We can use an host tool
12929 LIPO_FOR_TARGET='$(LIPO)'
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12931 $as_echo "host tool" >&6; }
12932 else
12933 # We need a cross tool
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12935 $as_echo "pre-installed" >&6; }
12936 fi
12937 fi
12938
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
12940 $as_echo_n "checking where to find the target nm... " >&6; }
12941 if test "x${build}" != "x${host}" ; then
12942 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12943 # We already found the complete path
12944 ac_dir=`dirname $NM_FOR_TARGET`
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12946 $as_echo "pre-installed in $ac_dir" >&6; }
12947 else
12948 # Canadian cross, just use what we found
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12950 $as_echo "pre-installed" >&6; }
12951 fi
12952 else
12953 ok=yes
12954 case " ${configdirs} " in
12955 *" binutils "*) ;;
12956 *) ok=no ;;
12957 esac
12958
12959 if test $ok = yes; then
12960 # An in-tree tool is available and we can use it
12961 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12963 $as_echo "just compiled" >&6; }
12964 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12965 # We already found the complete path
12966 ac_dir=`dirname $NM_FOR_TARGET`
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12968 $as_echo "pre-installed in $ac_dir" >&6; }
12969 elif test "x$target" = "x$host"; then
12970 # We can use an host tool
12971 NM_FOR_TARGET='$(NM)'
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12973 $as_echo "host tool" >&6; }
12974 else
12975 # We need a cross tool
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12977 $as_echo "pre-installed" >&6; }
12978 fi
12979 fi
12980
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
12982 $as_echo_n "checking where to find the target objdump... " >&6; }
12983 if test "x${build}" != "x${host}" ; then
12984 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12985 # We already found the complete path
12986 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12988 $as_echo "pre-installed in $ac_dir" >&6; }
12989 else
12990 # Canadian cross, just use what we found
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12992 $as_echo "pre-installed" >&6; }
12993 fi
12994 else
12995 ok=yes
12996 case " ${configdirs} " in
12997 *" binutils "*) ;;
12998 *) ok=no ;;
12999 esac
13000
13001 if test $ok = yes; then
13002 # An in-tree tool is available and we can use it
13003 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13005 $as_echo "just compiled" >&6; }
13006 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13007 # We already found the complete path
13008 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13010 $as_echo "pre-installed in $ac_dir" >&6; }
13011 elif test "x$target" = "x$host"; then
13012 # We can use an host tool
13013 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13015 $as_echo "host tool" >&6; }
13016 else
13017 # We need a cross tool
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13019 $as_echo "pre-installed" >&6; }
13020 fi
13021 fi
13022
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13024 $as_echo_n "checking where to find the target ranlib... " >&6; }
13025 if test "x${build}" != "x${host}" ; then
13026 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13027 # We already found the complete path
13028 ac_dir=`dirname $RANLIB_FOR_TARGET`
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13030 $as_echo "pre-installed in $ac_dir" >&6; }
13031 else
13032 # Canadian cross, just use what we found
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13034 $as_echo "pre-installed" >&6; }
13035 fi
13036 else
13037 ok=yes
13038 case " ${configdirs} " in
13039 *" binutils "*) ;;
13040 *) ok=no ;;
13041 esac
13042
13043 if test $ok = yes; then
13044 # An in-tree tool is available and we can use it
13045 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13047 $as_echo "just compiled" >&6; }
13048 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13049 # We already found the complete path
13050 ac_dir=`dirname $RANLIB_FOR_TARGET`
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13052 $as_echo "pre-installed in $ac_dir" >&6; }
13053 elif test "x$target" = "x$host"; then
13054 # We can use an host tool
13055 RANLIB_FOR_TARGET='$(RANLIB)'
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13057 $as_echo "host tool" >&6; }
13058 else
13059 # We need a cross tool
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13061 $as_echo "pre-installed" >&6; }
13062 fi
13063 fi
13064
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13066 $as_echo_n "checking where to find the target strip... " >&6; }
13067 if test "x${build}" != "x${host}" ; then
13068 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13069 # We already found the complete path
13070 ac_dir=`dirname $STRIP_FOR_TARGET`
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13072 $as_echo "pre-installed in $ac_dir" >&6; }
13073 else
13074 # Canadian cross, just use what we found
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13076 $as_echo "pre-installed" >&6; }
13077 fi
13078 else
13079 ok=yes
13080 case " ${configdirs} " in
13081 *" binutils "*) ;;
13082 *) ok=no ;;
13083 esac
13084
13085 if test $ok = yes; then
13086 # An in-tree tool is available and we can use it
13087 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13089 $as_echo "just compiled" >&6; }
13090 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13091 # We already found the complete path
13092 ac_dir=`dirname $STRIP_FOR_TARGET`
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13094 $as_echo "pre-installed in $ac_dir" >&6; }
13095 elif test "x$target" = "x$host"; then
13096 # We can use an host tool
13097 STRIP_FOR_TARGET='$(STRIP)'
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13099 $as_echo "host tool" >&6; }
13100 else
13101 # We need a cross tool
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13103 $as_echo "pre-installed" >&6; }
13104 fi
13105 fi
13106
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13108 $as_echo_n "checking where to find the target windres... " >&6; }
13109 if test "x${build}" != "x${host}" ; then
13110 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13111 # We already found the complete path
13112 ac_dir=`dirname $WINDRES_FOR_TARGET`
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13114 $as_echo "pre-installed in $ac_dir" >&6; }
13115 else
13116 # Canadian cross, just use what we found
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13118 $as_echo "pre-installed" >&6; }
13119 fi
13120 else
13121 ok=yes
13122 case " ${configdirs} " in
13123 *" binutils "*) ;;
13124 *) ok=no ;;
13125 esac
13126
13127 if test $ok = yes; then
13128 # An in-tree tool is available and we can use it
13129 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13131 $as_echo "just compiled" >&6; }
13132 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13133 # We already found the complete path
13134 ac_dir=`dirname $WINDRES_FOR_TARGET`
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13136 $as_echo "pre-installed in $ac_dir" >&6; }
13137 elif test "x$target" = "x$host"; then
13138 # We can use an host tool
13139 WINDRES_FOR_TARGET='$(WINDRES)'
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13141 $as_echo "host tool" >&6; }
13142 else
13143 # We need a cross tool
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13145 $as_echo "pre-installed" >&6; }
13146 fi
13147 fi
13148
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13150 $as_echo_n "checking where to find the target windmc... " >&6; }
13151 if test "x${build}" != "x${host}" ; then
13152 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13153 # We already found the complete path
13154 ac_dir=`dirname $WINDMC_FOR_TARGET`
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13156 $as_echo "pre-installed in $ac_dir" >&6; }
13157 else
13158 # Canadian cross, just use what we found
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13160 $as_echo "pre-installed" >&6; }
13161 fi
13162 else
13163 ok=yes
13164 case " ${configdirs} " in
13165 *" binutils "*) ;;
13166 *) ok=no ;;
13167 esac
13168
13169 if test $ok = yes; then
13170 # An in-tree tool is available and we can use it
13171 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13173 $as_echo "just compiled" >&6; }
13174 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13175 # We already found the complete path
13176 ac_dir=`dirname $WINDMC_FOR_TARGET`
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13178 $as_echo "pre-installed in $ac_dir" >&6; }
13179 elif test "x$target" = "x$host"; then
13180 # We can use an host tool
13181 WINDMC_FOR_TARGET='$(WINDMC)'
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13183 $as_echo "host tool" >&6; }
13184 else
13185 # We need a cross tool
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13187 $as_echo "pre-installed" >&6; }
13188 fi
13189 fi
13190
13191
13192
13193
13194
13195 # Certain tools may need extra flags.
13196 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13197 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13198 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13199
13200 # When building target libraries, except in a Canadian cross, we use
13201 # the same toolchain as the compiler we just built.
13202 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13203 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13204 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13205 if test $host = $build; then
13206 case " $configdirs " in
13207 *" gcc "*)
13208 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13209 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13210 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13211 ;;
13212 esac
13213 fi
13214
13215
13216
13217
13218
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13220 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13221 # Check whether --enable-maintainer-mode was given.
13222 if test "${enable_maintainer_mode+set}" = set; then :
13223 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13224 else
13225 USE_MAINTAINER_MODE=no
13226 fi
13227
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13229 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13230
13231
13232 if test "$USE_MAINTAINER_MODE" = yes; then
13233 MAINTAINER_MODE_TRUE=
13234 MAINTAINER_MODE_FALSE='#'
13235 else
13236 MAINTAINER_MODE_TRUE='#'
13237 MAINTAINER_MODE_FALSE=
13238 fi
13239 MAINT=$MAINTAINER_MODE_TRUE
13240
13241 # ---------------------
13242 # GCC bootstrap support
13243 # ---------------------
13244
13245 # Stage specific cflags for build.
13246 stage1_cflags="-g"
13247 case $build in
13248 vax-*-*)
13249 case ${GCC} in
13250 yes) stage1_cflags="-g -Wa,-J" ;;
13251 *) stage1_cflags="-g -J" ;;
13252 esac ;;
13253 esac
13254
13255 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13256 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13257 saved_CFLAGS="$CFLAGS"
13258
13259 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13260 CFLAGS="$CFLAGS -fkeep-inline-functions"
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13262 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13265
13266 #if (__GNUC__ < 3) \
13267 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13268 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13269 #error http://gcc.gnu.org/PR29382
13270 #endif
13271
13272 int
13273 main ()
13274 {
13275
13276 ;
13277 return 0;
13278 }
13279 _ACEOF
13280 if ac_fn_c_try_compile "$LINENO"; then :
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13282 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13283 else
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285 $as_echo "no" >&6; }
13286 fi
13287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288
13289 CFLAGS="$saved_CFLAGS"
13290 fi
13291
13292
13293
13294 # Enable --enable-checking in stage1 of the compiler.
13295 # Check whether --enable-stage1-checking was given.
13296 if test "${enable_stage1_checking+set}" = set; then :
13297 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
13298 else
13299 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
13300 stage1_checking=--enable-checking=yes,types
13301 else
13302 stage1_checking=--enable-checking=$enable_checking,types
13303 fi
13304 fi
13305
13306
13307
13308 # Enable -Werror in bootstrap stage2 and later.
13309 # Check whether --enable-werror was given.
13310 if test "${enable_werror+set}" = set; then :
13311 enableval=$enable_werror;
13312 else
13313 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
13314 enable_werror=yes
13315 else
13316 enable_werror=no
13317 fi
13318 fi
13319
13320 case ${enable_werror} in
13321 yes) stage2_werror_flag="--enable-werror-always" ;;
13322 *) stage2_werror_flag="" ;;
13323 esac
13324
13325
13326 # Specify what files to not compare during bootstrap.
13327
13328 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13329 case "$target" in
13330 hppa*64*-*-hpux*) ;;
13331 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13332 esac
13333
13334
13335 ac_config_files="$ac_config_files Makefile"
13336
13337 cat >confcache <<\_ACEOF
13338 # This file is a shell script that caches the results of configure
13339 # tests run on this system so they can be shared between configure
13340 # scripts and configure runs, see configure's option --config-cache.
13341 # It is not useful on other systems. If it contains results you don't
13342 # want to keep, you may remove or edit it.
13343 #
13344 # config.status only pays attention to the cache file if you give it
13345 # the --recheck option to rerun configure.
13346 #
13347 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13348 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13349 # following values.
13350
13351 _ACEOF
13352
13353 # The following way of writing the cache mishandles newlines in values,
13354 # but we know of no workaround that is simple, portable, and efficient.
13355 # So, we kill variables containing newlines.
13356 # Ultrix sh set writes to stderr and can't be redirected directly,
13357 # and sets the high bit in the cache file unless we assign to the vars.
13358 (
13359 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13360 eval ac_val=\$$ac_var
13361 case $ac_val in #(
13362 *${as_nl}*)
13363 case $ac_var in #(
13364 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13365 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13366 esac
13367 case $ac_var in #(
13368 _ | IFS | as_nl) ;; #(
13369 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13370 *) { eval $ac_var=; unset $ac_var;} ;;
13371 esac ;;
13372 esac
13373 done
13374
13375 (set) 2>&1 |
13376 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13377 *${as_nl}ac_space=\ *)
13378 # `set' does not quote correctly, so add quotes: double-quote
13379 # substitution turns \\\\ into \\, and sed turns \\ into \.
13380 sed -n \
13381 "s/'/'\\\\''/g;
13382 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13383 ;; #(
13384 *)
13385 # `set' quotes correctly as required by POSIX, so do not add quotes.
13386 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13387 ;;
13388 esac |
13389 sort
13390 ) |
13391 sed '
13392 /^ac_cv_env_/b end
13393 t clear
13394 :clear
13395 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13396 t end
13397 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13398 :end' >>confcache
13399 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13400 if test -w "$cache_file"; then
13401 test "x$cache_file" != "x/dev/null" &&
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13403 $as_echo "$as_me: updating cache $cache_file" >&6;}
13404 cat confcache >$cache_file
13405 else
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13407 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13408 fi
13409 fi
13410 rm -f confcache
13411
13412 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13413 # Let make expand exec_prefix.
13414 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13415
13416 # Transform confdefs.h into DEFS.
13417 # Protect against shell expansion while executing Makefile rules.
13418 # Protect against Makefile macro expansion.
13419 #
13420 # If the first sed substitution is executed (which looks for macros that
13421 # take arguments), then branch to the quote section. Otherwise,
13422 # look for a macro that doesn't take arguments.
13423 ac_script='
13424 :mline
13425 /\\$/{
13426 N
13427 s,\\\n,,
13428 b mline
13429 }
13430 t clear
13431 :clear
13432 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13433 t quote
13434 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13435 t quote
13436 b any
13437 :quote
13438 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13439 s/\[/\\&/g
13440 s/\]/\\&/g
13441 s/\$/$$/g
13442 H
13443 :any
13444 ${
13445 g
13446 s/^\n//
13447 s/\n/ /g
13448 p
13449 }
13450 '
13451 DEFS=`sed -n "$ac_script" confdefs.h`
13452
13453
13454 ac_libobjs=
13455 ac_ltlibobjs=
13456 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13457 # 1. Remove the extension, and $U if already installed.
13458 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13459 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13460 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13461 # will be set to the directory where LIBOBJS objects are built.
13462 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13463 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13464 done
13465 LIBOBJS=$ac_libobjs
13466
13467 LTLIBOBJS=$ac_ltlibobjs
13468
13469
13470
13471 : ${CONFIG_STATUS=./config.status}
13472 ac_write_fail=0
13473 ac_clean_files_save=$ac_clean_files
13474 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13476 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13477 as_write_fail=0
13478 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13479 #! $SHELL
13480 # Generated by $as_me.
13481 # Run this file to recreate the current configuration.
13482 # Compiler output produced by configure, useful for debugging
13483 # configure, is in config.log if it exists.
13484
13485 debug=false
13486 ac_cs_recheck=false
13487 ac_cs_silent=false
13488
13489 SHELL=\${CONFIG_SHELL-$SHELL}
13490 export SHELL
13491 _ASEOF
13492 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13493 ## -------------------- ##
13494 ## M4sh Initialization. ##
13495 ## -------------------- ##
13496
13497 # Be more Bourne compatible
13498 DUALCASE=1; export DUALCASE # for MKS sh
13499 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13500 emulate sh
13501 NULLCMD=:
13502 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13503 # is contrary to our usage. Disable this feature.
13504 alias -g '${1+"$@"}'='"$@"'
13505 setopt NO_GLOB_SUBST
13506 else
13507 case `(set -o) 2>/dev/null` in #(
13508 *posix*) :
13509 set -o posix ;; #(
13510 *) :
13511 ;;
13512 esac
13513 fi
13514
13515
13516 as_nl='
13517 '
13518 export as_nl
13519 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13520 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13521 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13522 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13523 # Prefer a ksh shell builtin over an external printf program on Solaris,
13524 # but without wasting forks for bash or zsh.
13525 if test -z "$BASH_VERSION$ZSH_VERSION" \
13526 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13527 as_echo='print -r --'
13528 as_echo_n='print -rn --'
13529 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13530 as_echo='printf %s\n'
13531 as_echo_n='printf %s'
13532 else
13533 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13534 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13535 as_echo_n='/usr/ucb/echo -n'
13536 else
13537 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13538 as_echo_n_body='eval
13539 arg=$1;
13540 case $arg in #(
13541 *"$as_nl"*)
13542 expr "X$arg" : "X\\(.*\\)$as_nl";
13543 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13544 esac;
13545 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13546 '
13547 export as_echo_n_body
13548 as_echo_n='sh -c $as_echo_n_body as_echo'
13549 fi
13550 export as_echo_body
13551 as_echo='sh -c $as_echo_body as_echo'
13552 fi
13553
13554 # The user is always right.
13555 if test "${PATH_SEPARATOR+set}" != set; then
13556 PATH_SEPARATOR=:
13557 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13558 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13559 PATH_SEPARATOR=';'
13560 }
13561 fi
13562
13563
13564 # IFS
13565 # We need space, tab and new line, in precisely that order. Quoting is
13566 # there to prevent editors from complaining about space-tab.
13567 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13568 # splitting by setting IFS to empty value.)
13569 IFS=" "" $as_nl"
13570
13571 # Find who we are. Look in the path if we contain no directory separator.
13572 case $0 in #((
13573 *[\\/]* ) as_myself=$0 ;;
13574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13576 do
13577 IFS=$as_save_IFS
13578 test -z "$as_dir" && as_dir=.
13579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13580 done
13581 IFS=$as_save_IFS
13582
13583 ;;
13584 esac
13585 # We did not find ourselves, most probably we were run as `sh COMMAND'
13586 # in which case we are not to be found in the path.
13587 if test "x$as_myself" = x; then
13588 as_myself=$0
13589 fi
13590 if test ! -f "$as_myself"; then
13591 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13592 exit 1
13593 fi
13594
13595 # Unset variables that we do not need and which cause bugs (e.g. in
13596 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13597 # suppresses any "Segmentation fault" message there. '((' could
13598 # trigger a bug in pdksh 5.2.14.
13599 for as_var in BASH_ENV ENV MAIL MAILPATH
13600 do eval test x\${$as_var+set} = xset \
13601 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13602 done
13603 PS1='$ '
13604 PS2='> '
13605 PS4='+ '
13606
13607 # NLS nuisances.
13608 LC_ALL=C
13609 export LC_ALL
13610 LANGUAGE=C
13611 export LANGUAGE
13612
13613 # CDPATH.
13614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13615
13616
13617 # as_fn_error ERROR [LINENO LOG_FD]
13618 # ---------------------------------
13619 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13620 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13621 # script with status $?, using 1 if that was 0.
13622 as_fn_error ()
13623 {
13624 as_status=$?; test $as_status -eq 0 && as_status=1
13625 if test "$3"; then
13626 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13627 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13628 fi
13629 $as_echo "$as_me: error: $1" >&2
13630 as_fn_exit $as_status
13631 } # as_fn_error
13632
13633
13634 # as_fn_set_status STATUS
13635 # -----------------------
13636 # Set $? to STATUS, without forking.
13637 as_fn_set_status ()
13638 {
13639 return $1
13640 } # as_fn_set_status
13641
13642 # as_fn_exit STATUS
13643 # -----------------
13644 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13645 as_fn_exit ()
13646 {
13647 set +e
13648 as_fn_set_status $1
13649 exit $1
13650 } # as_fn_exit
13651
13652 # as_fn_unset VAR
13653 # ---------------
13654 # Portably unset VAR.
13655 as_fn_unset ()
13656 {
13657 { eval $1=; unset $1;}
13658 }
13659 as_unset=as_fn_unset
13660 # as_fn_append VAR VALUE
13661 # ----------------------
13662 # Append the text in VALUE to the end of the definition contained in VAR. Take
13663 # advantage of any shell optimizations that allow amortized linear growth over
13664 # repeated appends, instead of the typical quadratic growth present in naive
13665 # implementations.
13666 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13667 eval 'as_fn_append ()
13668 {
13669 eval $1+=\$2
13670 }'
13671 else
13672 as_fn_append ()
13673 {
13674 eval $1=\$$1\$2
13675 }
13676 fi # as_fn_append
13677
13678 # as_fn_arith ARG...
13679 # ------------------
13680 # Perform arithmetic evaluation on the ARGs, and store the result in the
13681 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13682 # must be portable across $(()) and expr.
13683 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13684 eval 'as_fn_arith ()
13685 {
13686 as_val=$(( $* ))
13687 }'
13688 else
13689 as_fn_arith ()
13690 {
13691 as_val=`expr "$@" || test $? -eq 1`
13692 }
13693 fi # as_fn_arith
13694
13695
13696 if expr a : '\(a\)' >/dev/null 2>&1 &&
13697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13698 as_expr=expr
13699 else
13700 as_expr=false
13701 fi
13702
13703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13704 as_basename=basename
13705 else
13706 as_basename=false
13707 fi
13708
13709 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13710 as_dirname=dirname
13711 else
13712 as_dirname=false
13713 fi
13714
13715 as_me=`$as_basename -- "$0" ||
13716 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13717 X"$0" : 'X\(//\)$' \| \
13718 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13719 $as_echo X/"$0" |
13720 sed '/^.*\/\([^/][^/]*\)\/*$/{
13721 s//\1/
13722 q
13723 }
13724 /^X\/\(\/\/\)$/{
13725 s//\1/
13726 q
13727 }
13728 /^X\/\(\/\).*/{
13729 s//\1/
13730 q
13731 }
13732 s/.*/./; q'`
13733
13734 # Avoid depending upon Character Ranges.
13735 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13736 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13737 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13738 as_cr_digits='0123456789'
13739 as_cr_alnum=$as_cr_Letters$as_cr_digits
13740
13741 ECHO_C= ECHO_N= ECHO_T=
13742 case `echo -n x` in #(((((
13743 -n*)
13744 case `echo 'xy\c'` in
13745 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13746 xy) ECHO_C='\c';;
13747 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13748 ECHO_T=' ';;
13749 esac;;
13750 *)
13751 ECHO_N='-n';;
13752 esac
13753
13754 rm -f conf$$ conf$$.exe conf$$.file
13755 if test -d conf$$.dir; then
13756 rm -f conf$$.dir/conf$$.file
13757 else
13758 rm -f conf$$.dir
13759 mkdir conf$$.dir 2>/dev/null
13760 fi
13761 if (echo >conf$$.file) 2>/dev/null; then
13762 if ln -s conf$$.file conf$$ 2>/dev/null; then
13763 as_ln_s='ln -s'
13764 # ... but there are two gotchas:
13765 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13766 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13767 # In both cases, we have to default to `cp -p'.
13768 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13769 as_ln_s='cp -p'
13770 elif ln conf$$.file conf$$ 2>/dev/null; then
13771 as_ln_s=ln
13772 else
13773 as_ln_s='cp -p'
13774 fi
13775 else
13776 as_ln_s='cp -p'
13777 fi
13778 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13779 rmdir conf$$.dir 2>/dev/null
13780
13781
13782 # as_fn_mkdir_p
13783 # -------------
13784 # Create "$as_dir" as a directory, including parents if necessary.
13785 as_fn_mkdir_p ()
13786 {
13787
13788 case $as_dir in #(
13789 -*) as_dir=./$as_dir;;
13790 esac
13791 test -d "$as_dir" || eval $as_mkdir_p || {
13792 as_dirs=
13793 while :; do
13794 case $as_dir in #(
13795 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13796 *) as_qdir=$as_dir;;
13797 esac
13798 as_dirs="'$as_qdir' $as_dirs"
13799 as_dir=`$as_dirname -- "$as_dir" ||
13800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13801 X"$as_dir" : 'X\(//\)[^/]' \| \
13802 X"$as_dir" : 'X\(//\)$' \| \
13803 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13804 $as_echo X"$as_dir" |
13805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13806 s//\1/
13807 q
13808 }
13809 /^X\(\/\/\)[^/].*/{
13810 s//\1/
13811 q
13812 }
13813 /^X\(\/\/\)$/{
13814 s//\1/
13815 q
13816 }
13817 /^X\(\/\).*/{
13818 s//\1/
13819 q
13820 }
13821 s/.*/./; q'`
13822 test -d "$as_dir" && break
13823 done
13824 test -z "$as_dirs" || eval "mkdir $as_dirs"
13825 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13826
13827
13828 } # as_fn_mkdir_p
13829 if mkdir -p . 2>/dev/null; then
13830 as_mkdir_p='mkdir -p "$as_dir"'
13831 else
13832 test -d ./-p && rmdir ./-p
13833 as_mkdir_p=false
13834 fi
13835
13836 if test -x / >/dev/null 2>&1; then
13837 as_test_x='test -x'
13838 else
13839 if ls -dL / >/dev/null 2>&1; then
13840 as_ls_L_option=L
13841 else
13842 as_ls_L_option=
13843 fi
13844 as_test_x='
13845 eval sh -c '\''
13846 if test -d "$1"; then
13847 test -d "$1/.";
13848 else
13849 case $1 in #(
13850 -*)set "./$1";;
13851 esac;
13852 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13853 ???[sx]*):;;*)false;;esac;fi
13854 '\'' sh
13855 '
13856 fi
13857 as_executable_p=$as_test_x
13858
13859 # Sed expression to map a string onto a valid CPP name.
13860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13861
13862 # Sed expression to map a string onto a valid variable name.
13863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13864
13865
13866 exec 6>&1
13867 ## ----------------------------------- ##
13868 ## Main body of $CONFIG_STATUS script. ##
13869 ## ----------------------------------- ##
13870 _ASEOF
13871 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13872
13873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13874 # Save the log message, to keep $0 and so on meaningful, and to
13875 # report actual input values of CONFIG_FILES etc. instead of their
13876 # values after options handling.
13877 ac_log="
13878 This file was extended by $as_me, which was
13879 generated by GNU Autoconf 2.64. Invocation command line was
13880
13881 CONFIG_FILES = $CONFIG_FILES
13882 CONFIG_HEADERS = $CONFIG_HEADERS
13883 CONFIG_LINKS = $CONFIG_LINKS
13884 CONFIG_COMMANDS = $CONFIG_COMMANDS
13885 $ $0 $@
13886
13887 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13888 "
13889
13890 _ACEOF
13891
13892 case $ac_config_files in *"
13893 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13894 esac
13895
13896
13897
13898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13899 # Files that config.status was made for.
13900 config_files="$ac_config_files"
13901
13902 _ACEOF
13903
13904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13905 ac_cs_usage="\
13906 \`$as_me' instantiates files and other configuration actions
13907 from templates according to the current configuration. Unless the files
13908 and actions are specified as TAGs, all are instantiated by default.
13909
13910 Usage: $0 [OPTION]... [TAG]...
13911
13912 -h, --help print this help, then exit
13913 -V, --version print version number and configuration settings, then exit
13914 -q, --quiet, --silent
13915 do not print progress messages
13916 -d, --debug don't remove temporary files
13917 --recheck update $as_me by reconfiguring in the same conditions
13918 --file=FILE[:TEMPLATE]
13919 instantiate the configuration file FILE
13920
13921 Configuration files:
13922 $config_files
13923
13924 Report bugs to the package provider."
13925
13926 _ACEOF
13927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13928 ac_cs_version="\\
13929 config.status
13930 configured by $0, generated by GNU Autoconf 2.64,
13931 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13932
13933 Copyright (C) 2009 Free Software Foundation, Inc.
13934 This config.status script is free software; the Free Software Foundation
13935 gives unlimited permission to copy, distribute and modify it."
13936
13937 ac_pwd='$ac_pwd'
13938 srcdir='$srcdir'
13939 INSTALL='$INSTALL'
13940 AWK='$AWK'
13941 test -n "\$AWK" || AWK=awk
13942 _ACEOF
13943
13944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13945 # The default lists apply if the user does not specify any file.
13946 ac_need_defaults=:
13947 while test $# != 0
13948 do
13949 case $1 in
13950 --*=*)
13951 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13952 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13953 ac_shift=:
13954 ;;
13955 *)
13956 ac_option=$1
13957 ac_optarg=$2
13958 ac_shift=shift
13959 ;;
13960 esac
13961
13962 case $ac_option in
13963 # Handling of the options.
13964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13965 ac_cs_recheck=: ;;
13966 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13967 $as_echo "$ac_cs_version"; exit ;;
13968 --debug | --debu | --deb | --de | --d | -d )
13969 debug=: ;;
13970 --file | --fil | --fi | --f )
13971 $ac_shift
13972 case $ac_optarg in
13973 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13974 esac
13975 as_fn_append CONFIG_FILES " '$ac_optarg'"
13976 ac_need_defaults=false;;
13977 --he | --h | --help | --hel | -h )
13978 $as_echo "$ac_cs_usage"; exit ;;
13979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13980 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13981 ac_cs_silent=: ;;
13982
13983 # This is an error.
13984 -*) as_fn_error "unrecognized option: \`$1'
13985 Try \`$0 --help' for more information." ;;
13986
13987 *) as_fn_append ac_config_targets " $1"
13988 ac_need_defaults=false ;;
13989
13990 esac
13991 shift
13992 done
13993
13994 ac_configure_extra_args=
13995
13996 if $ac_cs_silent; then
13997 exec 6>/dev/null
13998 ac_configure_extra_args="$ac_configure_extra_args --silent"
13999 fi
14000
14001 _ACEOF
14002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14003 if \$ac_cs_recheck; then
14004 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14005 shift
14006 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14007 CONFIG_SHELL='$SHELL'
14008 export CONFIG_SHELL
14009 exec "\$@"
14010 fi
14011
14012 _ACEOF
14013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14014 exec 5>>config.log
14015 {
14016 echo
14017 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14018 ## Running $as_me. ##
14019 _ASBOX
14020 $as_echo "$ac_log"
14021 } >&5
14022
14023 _ACEOF
14024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14025 _ACEOF
14026
14027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14028
14029 # Handling of arguments.
14030 for ac_config_target in $ac_config_targets
14031 do
14032 case $ac_config_target in
14033 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14034
14035 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14036 esac
14037 done
14038
14039
14040 # If the user did not use the arguments to specify the items to instantiate,
14041 # then the envvar interface is used. Set only those that are not.
14042 # We use the long form for the default assignment because of an extremely
14043 # bizarre bug on SunOS 4.1.3.
14044 if $ac_need_defaults; then
14045 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14046 fi
14047
14048 # Have a temporary directory for convenience. Make it in the build tree
14049 # simply because there is no reason against having it here, and in addition,
14050 # creating and moving files from /tmp can sometimes cause problems.
14051 # Hook for its removal unless debugging.
14052 # Note that there is a small window in which the directory will not be cleaned:
14053 # after its creation but before its name has been assigned to `$tmp'.
14054 $debug ||
14055 {
14056 tmp=
14057 trap 'exit_status=$?
14058 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14059 ' 0
14060 trap 'as_fn_exit 1' 1 2 13 15
14061 }
14062 # Create a (secure) tmp directory for tmp files.
14063
14064 {
14065 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14066 test -n "$tmp" && test -d "$tmp"
14067 } ||
14068 {
14069 tmp=./conf$$-$RANDOM
14070 (umask 077 && mkdir "$tmp")
14071 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14072
14073 # Set up the scripts for CONFIG_FILES section.
14074 # No need to generate them if there are no CONFIG_FILES.
14075 # This happens for instance with `./config.status config.h'.
14076 if test -n "$CONFIG_FILES"; then
14077
14078 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14079 ac_cs_awk_getline=:
14080 ac_cs_awk_pipe_init=
14081 ac_cs_awk_read_file='
14082 while ((getline aline < (F[key])) > 0)
14083 print(aline)
14084 close(F[key])'
14085 ac_cs_awk_pipe_fini=
14086 else
14087 ac_cs_awk_getline=false
14088 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14089 ac_cs_awk_read_file='
14090 print "|#_!!_#|"
14091 print "cat " F[key] " &&"
14092 '$ac_cs_awk_pipe_init
14093 # The final `:' finishes the AND list.
14094 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14095 fi
14096 ac_cr=`echo X | tr X '\015'`
14097 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14098 # But we know of no other shell where ac_cr would be empty at this
14099 # point, so we can use a bashism as a fallback.
14100 if test "x$ac_cr" = x; then
14101 eval ac_cr=\$\'\\r\'
14102 fi
14103 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14104 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14105 ac_cs_awk_cr='\r'
14106 else
14107 ac_cs_awk_cr=$ac_cr
14108 fi
14109
14110 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14111 _ACEOF
14112
14113 # Create commands to substitute file output variables.
14114 {
14115 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14116 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14117 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14118 echo "_ACAWK" &&
14119 echo "_ACEOF"
14120 } >conf$$files.sh &&
14121 . ./conf$$files.sh ||
14122 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14123 rm -f conf$$files.sh
14124
14125 {
14126 echo "cat >conf$$subs.awk <<_ACEOF" &&
14127 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14128 echo "_ACEOF"
14129 } >conf$$subs.sh ||
14130 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14131 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14132 ac_delim='%!_!# '
14133 for ac_last_try in false false false false false :; do
14134 . ./conf$$subs.sh ||
14135 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14136
14137 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14138 if test $ac_delim_n = $ac_delim_num; then
14139 break
14140 elif $ac_last_try; then
14141 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14142 else
14143 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14144 fi
14145 done
14146 rm -f conf$$subs.sh
14147
14148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14149 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14150 _ACEOF
14151 sed -n '
14152 h
14153 s/^/S["/; s/!.*/"]=/
14154 p
14155 g
14156 s/^[^!]*!//
14157 :repl
14158 t repl
14159 s/'"$ac_delim"'$//
14160 t delim
14161 :nl
14162 h
14163 s/\(.\{148\}\).*/\1/
14164 t more1
14165 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14166 p
14167 n
14168 b repl
14169 :more1
14170 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14171 p
14172 g
14173 s/.\{148\}//
14174 t nl
14175 :delim
14176 h
14177 s/\(.\{148\}\).*/\1/
14178 t more2
14179 s/["\\]/\\&/g; s/^/"/; s/$/"/
14180 p
14181 b
14182 :more2
14183 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14184 p
14185 g
14186 s/.\{148\}//
14187 t delim
14188 ' <conf$$subs.awk | sed '
14189 /^[^""]/{
14190 N
14191 s/\n//
14192 }
14193 ' >>$CONFIG_STATUS || ac_write_fail=1
14194 rm -f conf$$subs.awk
14195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14196 _ACAWK
14197 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14198 for (key in S) S_is_set[key] = 1
14199 FS = "\a"
14200 \$ac_cs_awk_pipe_init
14201 }
14202 {
14203 line = $ 0
14204 nfields = split(line, field, "@")
14205 substed = 0
14206 len = length(field[1])
14207 for (i = 2; i < nfields; i++) {
14208 key = field[i]
14209 keylen = length(key)
14210 if (S_is_set[key]) {
14211 value = S[key]
14212 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14213 len += length(value) + length(field[++i])
14214 substed = 1
14215 } else
14216 len += 1 + keylen
14217 }
14218 if (nfields == 3 && !substed) {
14219 key = field[2]
14220 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14221 \$ac_cs_awk_read_file
14222 next
14223 }
14224 }
14225 print line
14226 }
14227 \$ac_cs_awk_pipe_fini
14228 _ACAWK
14229 _ACEOF
14230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14231 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14232 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14233 else
14234 cat
14235 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14236 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14237 _ACEOF
14238
14239 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14240 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14241 # trailing colons and then remove the whole line if VPATH becomes empty
14242 # (actually we leave an empty line to preserve line numbers).
14243 if test "x$srcdir" = x.; then
14244 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14245 s/:*\$(srcdir):*/:/
14246 s/:*\${srcdir}:*/:/
14247 s/:*@srcdir@:*/:/
14248 s/^\([^=]*=[ ]*\):*/\1/
14249 s/:*$//
14250 s/^[^=]*=[ ]*$//
14251 }'
14252 fi
14253
14254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14255 fi # test -n "$CONFIG_FILES"
14256
14257
14258 eval set X " :F $CONFIG_FILES "
14259 shift
14260 for ac_tag
14261 do
14262 case $ac_tag in
14263 :[FHLC]) ac_mode=$ac_tag; continue;;
14264 esac
14265 case $ac_mode$ac_tag in
14266 :[FHL]*:*);;
14267 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14268 :[FH]-) ac_tag=-:-;;
14269 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14270 esac
14271 ac_save_IFS=$IFS
14272 IFS=:
14273 set x $ac_tag
14274 IFS=$ac_save_IFS
14275 shift
14276 ac_file=$1
14277 shift
14278
14279 case $ac_mode in
14280 :L) ac_source=$1;;
14281 :[FH])
14282 ac_file_inputs=
14283 for ac_f
14284 do
14285 case $ac_f in
14286 -) ac_f="$tmp/stdin";;
14287 *) # Look for the file first in the build tree, then in the source tree
14288 # (if the path is not absolute). The absolute path cannot be DOS-style,
14289 # because $ac_f cannot contain `:'.
14290 test -f "$ac_f" ||
14291 case $ac_f in
14292 [\\/$]*) false;;
14293 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14294 esac ||
14295 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14296 esac
14297 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14298 as_fn_append ac_file_inputs " '$ac_f'"
14299 done
14300
14301 # Let's still pretend it is `configure' which instantiates (i.e., don't
14302 # use $as_me), people would be surprised to read:
14303 # /* config.h. Generated by config.status. */
14304 configure_input='Generated from '`
14305 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14306 `' by configure.'
14307 if test x"$ac_file" != x-; then
14308 configure_input="$ac_file. $configure_input"
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14310 $as_echo "$as_me: creating $ac_file" >&6;}
14311 fi
14312 # Neutralize special characters interpreted by sed in replacement strings.
14313 case $configure_input in #(
14314 *\&* | *\|* | *\\* )
14315 ac_sed_conf_input=`$as_echo "$configure_input" |
14316 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14317 *) ac_sed_conf_input=$configure_input;;
14318 esac
14319
14320 case $ac_tag in
14321 *:-:* | *:-) cat >"$tmp/stdin" \
14322 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14323 esac
14324 ;;
14325 esac
14326
14327 ac_dir=`$as_dirname -- "$ac_file" ||
14328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14329 X"$ac_file" : 'X\(//\)[^/]' \| \
14330 X"$ac_file" : 'X\(//\)$' \| \
14331 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14332 $as_echo X"$ac_file" |
14333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14334 s//\1/
14335 q
14336 }
14337 /^X\(\/\/\)[^/].*/{
14338 s//\1/
14339 q
14340 }
14341 /^X\(\/\/\)$/{
14342 s//\1/
14343 q
14344 }
14345 /^X\(\/\).*/{
14346 s//\1/
14347 q
14348 }
14349 s/.*/./; q'`
14350 as_dir="$ac_dir"; as_fn_mkdir_p
14351 ac_builddir=.
14352
14353 case "$ac_dir" in
14354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14355 *)
14356 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14357 # A ".." for each directory in $ac_dir_suffix.
14358 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14359 case $ac_top_builddir_sub in
14360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14362 esac ;;
14363 esac
14364 ac_abs_top_builddir=$ac_pwd
14365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14366 # for backward compatibility:
14367 ac_top_builddir=$ac_top_build_prefix
14368
14369 case $srcdir in
14370 .) # We are building in place.
14371 ac_srcdir=.
14372 ac_top_srcdir=$ac_top_builddir_sub
14373 ac_abs_top_srcdir=$ac_pwd ;;
14374 [\\/]* | ?:[\\/]* ) # Absolute name.
14375 ac_srcdir=$srcdir$ac_dir_suffix;
14376 ac_top_srcdir=$srcdir
14377 ac_abs_top_srcdir=$srcdir ;;
14378 *) # Relative name.
14379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14380 ac_top_srcdir=$ac_top_build_prefix$srcdir
14381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14382 esac
14383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14384
14385
14386 case $ac_mode in
14387 :F)
14388 #
14389 # CONFIG_FILE
14390 #
14391
14392 case $INSTALL in
14393 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14394 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14395 esac
14396 _ACEOF
14397
14398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14399 # If the template does not know about datarootdir, expand it.
14400 # FIXME: This hack should be removed a few years after 2.60.
14401 ac_datarootdir_hack=; ac_datarootdir_seen=
14402 ac_sed_dataroot='
14403 /datarootdir/ {
14404 p
14405 q
14406 }
14407 /@datadir@/p
14408 /@docdir@/p
14409 /@infodir@/p
14410 /@localedir@/p
14411 /@mandir@/p'
14412 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14413 *datarootdir*) ac_datarootdir_seen=yes;;
14414 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14416 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14417 _ACEOF
14418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14419 ac_datarootdir_hack='
14420 s&@datadir@&$datadir&g
14421 s&@docdir@&$docdir&g
14422 s&@infodir@&$infodir&g
14423 s&@localedir@&$localedir&g
14424 s&@mandir@&$mandir&g
14425 s&\\\${datarootdir}&$datarootdir&g' ;;
14426 esac
14427 _ACEOF
14428
14429 # Neutralize VPATH when `$srcdir' = `.'.
14430 # Shell code in configure.ac might set extrasub.
14431 # FIXME: do we really want to maintain this feature?
14432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14433 ac_sed_extra="$ac_vpsub
14434 $extrasub
14435 _ACEOF
14436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14437 :t
14438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14439 s|@configure_input@|$ac_sed_conf_input|;t t
14440 s&@top_builddir@&$ac_top_builddir_sub&;t t
14441 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14442 s&@srcdir@&$ac_srcdir&;t t
14443 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14444 s&@top_srcdir@&$ac_top_srcdir&;t t
14445 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14446 s&@builddir@&$ac_builddir&;t t
14447 s&@abs_builddir@&$ac_abs_builddir&;t t
14448 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14449 s&@INSTALL@&$ac_INSTALL&;t t
14450 $ac_datarootdir_hack
14451 "
14452 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14453 if $ac_cs_awk_getline; then
14454 $AWK -f "$tmp/subs.awk"
14455 else
14456 $AWK -f "$tmp/subs.awk" | $SHELL
14457 fi >$tmp/out \
14458 || as_fn_error "could not create $ac_file" "$LINENO" 5
14459
14460 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14461 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14462 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14464 which seems to be undefined. Please make sure it is defined." >&5
14465 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14466 which seems to be undefined. Please make sure it is defined." >&2;}
14467
14468 rm -f "$tmp/stdin"
14469 case $ac_file in
14470 -) cat "$tmp/out" && rm -f "$tmp/out";;
14471 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14472 esac \
14473 || as_fn_error "could not create $ac_file" "$LINENO" 5
14474 ;;
14475
14476
14477
14478 esac
14479
14480 done # for ac_tag
14481
14482
14483 as_fn_exit 0
14484 _ACEOF
14485 ac_clean_files=$ac_clean_files_save
14486
14487 test $ac_write_fail = 0 ||
14488 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14489
14490
14491 # configure is writing to config.log, and then calls config.status.
14492 # config.status does its own redirection, appending to config.log.
14493 # Unfortunately, on DOS this fails, as config.log is still kept open
14494 # by configure, so config.status won't be able to write to it; its
14495 # output is simply discarded. So we exec the FD to /dev/null,
14496 # effectively closing config.log, so it can be properly (re)opened and
14497 # appended to by config.status. When coming back to configure, we
14498 # need to make the FD available again.
14499 if test "$no_create" != yes; then
14500 ac_cs_success=:
14501 ac_config_status_args=
14502 test "$silent" = yes &&
14503 ac_config_status_args="$ac_config_status_args --quiet"
14504 exec 5>/dev/null
14505 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14506 exec 5>>config.log
14507 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14508 # would make configure fail if this is the last instruction.
14509 $ac_cs_success || as_fn_exit $?
14510 fi
14511 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14513 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14514 fi
14515