]> git.ipfire.org Git - thirdparty/gcc.git/blob - configure
configure.ac: Separate libgloss_dir settings from general case over targets.
[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 GOC_FOR_TARGET
582 GFORTRAN_FOR_TARGET
583 GCJ_FOR_TARGET
584 GCC_FOR_TARGET
585 CXX_FOR_TARGET
586 CC_FOR_TARGET
587 OBJDUMP
588 OBJCOPY
589 WINDMC
590 WINDRES
591 STRIP
592 RANLIB
593 NM
594 LIPO
595 LD
596 DLLTOOL
597 AS
598 AR
599 RUNTEST
600 EXPECT
601 MAKEINFO
602 FLEX
603 LEX
604 M4
605 BISON
606 YACC
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 GOC_FOR_BUILD
614 GFORTRAN_FOR_BUILD
615 GCJ_FOR_BUILD
616 DLLTOOL_FOR_BUILD
617 CXX_FOR_BUILD
618 CXXFLAGS_FOR_BUILD
619 CFLAGS_FOR_BUILD
620 CC_FOR_BUILD
621 AS_FOR_BUILD
622 AR_FOR_BUILD
623 target_configdirs
624 configdirs
625 build_configdirs
626 INSTALL_GDB_TK
627 GDB_TK
628 CONFIGURE_GDB_TK
629 build_tooldir
630 tooldir
631 GCC_SHLIB_SUBDIR
632 RPATH_ENVVAR
633 target_configargs
634 host_configargs
635 build_configargs
636 BUILD_CONFIG
637 CXXFLAGS_FOR_TARGET
638 CFLAGS_FOR_TARGET
639 DEBUG_PREFIX_CFLAGS_FOR_TARGET
640 SYSROOT_CFLAGS_FOR_TARGET
641 stage1_languages
642 extra_host_libiberty_configure_flags
643 clooginc
644 clooglibs
645 pplinc
646 ppllibs
647 poststage1_ldflags
648 poststage1_libs
649 stage1_libs
650 stage1_ldflags
651 extra_mpc_mpfr_configure_flags
652 extra_mpc_gmp_configure_flags
653 extra_mpfr_configure_flags
654 gmpinc
655 gmplibs
656 do_compare
657 GNATMAKE
658 GNATBIND
659 ac_ct_CXX
660 CXXFLAGS
661 CXX
662 OBJEXT
663 EXEEXT
664 ac_ct_CC
665 CPPFLAGS
666 LDFLAGS
667 CFLAGS
668 CC
669 target_subdir
670 host_subdir
671 build_subdir
672 build_libsubdir
673 AWK
674 SED
675 LN_S
676 LN
677 INSTALL_DATA
678 INSTALL_SCRIPT
679 INSTALL_PROGRAM
680 target_os
681 target_vendor
682 target_cpu
683 target
684 host_os
685 host_vendor
686 host_cpu
687 host
688 target_noncanonical
689 host_noncanonical
690 build_noncanonical
691 build_os
692 build_vendor
693 build_cpu
694 build
695 TOPLEVEL_CONFIGURE_ARGUMENTS
696 target_alias
697 host_alias
698 build_alias
699 LIBS
700 ECHO_T
701 ECHO_N
702 ECHO_C
703 DEFS
704 mandir
705 localedir
706 libdir
707 psdir
708 pdfdir
709 dvidir
710 htmldir
711 infodir
712 docdir
713 oldincludedir
714 includedir
715 localstatedir
716 sharedstatedir
717 sysconfdir
718 datadir
719 datarootdir
720 libexecdir
721 sbindir
722 bindir
723 program_transform_name
724 prefix
725 exec_prefix
726 PACKAGE_URL
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files='serialization_dependencies
735 host_makefile_frag
736 target_makefile_frag
737 alphaieee_frag
738 ospace_frag'
739 ac_user_opts='
740 enable_option_checking
741 with_build_libsubdir
742 enable_gold
743 enable_ld
744 enable_libquadmath
745 enable_libquadmath_support
746 enable_libada
747 enable_libssp
748 enable_build_with_cxx
749 with_mpc
750 with_mpc_include
751 with_mpc_lib
752 with_mpfr_dir
753 with_mpfr
754 with_mpfr_include
755 with_mpfr_lib
756 with_gmp_dir
757 with_gmp
758 with_gmp_include
759 with_gmp_lib
760 with_host_libstdcxx
761 with_stage1_ldflags
762 with_stage1_libs
763 with_boot_libs
764 with_boot_ldflags
765 with_ppl
766 with_ppl_include
767 with_ppl_lib
768 enable_ppl_version_check
769 with_cloog
770 with_cloog_include
771 with_cloog_lib
772 enable_cloog_backend
773 enable_cloog_version_check
774 enable_lto
775 enable_stage1_languages
776 enable_objc_gc
777 with_build_sysroot
778 with_debug_prefix_map
779 enable_bootstrap
780 with_build_config
781 enable_serial_configure
782 with_build_time_tools
783 enable_maintainer_mode
784 enable_stage1_checking
785 enable_werror
786 '
787 ac_precious_vars='build_alias
788 host_alias
789 target_alias
790 CC
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
795 CXX
796 CXXFLAGS
797 CCC
798 build_configargs
799 host_configargs
800 target_configargs
801 AR
802 AS
803 DLLTOOL
804 LD
805 LIPO
806 NM
807 RANLIB
808 STRIP
809 WINDRES
810 WINDMC
811 OBJCOPY
812 OBJDUMP
813 CC_FOR_TARGET
814 CXX_FOR_TARGET
815 GCC_FOR_TARGET
816 GCJ_FOR_TARGET
817 GFORTRAN_FOR_TARGET
818 GOC_FOR_TARGET
819 AR_FOR_TARGET
820 AS_FOR_TARGET
821 DLLTOOL_FOR_TARGET
822 LD_FOR_TARGET
823 LIPO_FOR_TARGET
824 NM_FOR_TARGET
825 OBJDUMP_FOR_TARGET
826 RANLIB_FOR_TARGET
827 STRIP_FOR_TARGET
828 WINDRES_FOR_TARGET
829 WINDMC_FOR_TARGET'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
890
891 case $ac_option in
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *) ac_optarg=yes ;;
894 esac
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
926
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
959
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
995
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1000
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1030
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1104
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1163
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1179
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1213
1214 -*) as_fn_error "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information."
1216 ;;
1217
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1227
1228 *)
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1234 ;;
1235
1236 esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1257 do
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 case $srcdir in
1358 *" "*)
1359 as_fn_error "path to source, $srcdir, contains spaces"
1360 ;;
1361 esac
1362 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1363
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures this package to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1431 _ACEOF
1432
1433 cat <<\_ACEOF
1434
1435 Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 --target=TARGET configure for building compilers for TARGET [HOST]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448
1449 cat <<\_ACEOF
1450
1451 Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1456 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1457 --disable-libquadmath do not build libquadmath directory
1458 --disable-libquadmath-support
1459 disable libquadmath support for Fortran
1460 --enable-libada build libada directory
1461 --enable-libssp build libssp directory
1462 --enable-build-with-cxx build with C++ compiler instead of C compiler
1463 --disable-ppl-version-check
1464 disable check for PPL version
1465 --enable-cloog-backend[=BACKEND]
1466 set the CLooG BACKEND used to either isl, ppl or
1467 ppl-legacy (default)
1468 --disable-cloog-version-check
1469 disable check for CLooG version
1470 --enable-lto enable link time optimization support
1471 --enable-stage1-languages[=all]
1472 choose additional languages to build during stage1.
1473 Mostly useful for compiler development
1474 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1475 Objective-C runtime
1476 --enable-bootstrap enable bootstrapping [yes if native build]
1477 --enable-serial-[{host,target,build}-]configure
1478 force sequential configuration of sub-packages for
1479 the host, target or build machine, or all
1480 sub-packages
1481 --enable-maintainer-mode
1482 enable make rules and dependencies not useful (and
1483 sometimes confusing) to the casual installer
1484 --enable-stage1-checking[=all]
1485 choose additional checking for stage1 of the
1486 compiler
1487 --enable-werror enable -Werror in bootstrap stage2 and later
1488
1489 Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-build-libsubdir=DIR Directory where to find libraries for build system
1493 --with-mpc=PATH specify prefix directory for installed MPC package.
1494 Equivalent to --with-mpc-include=PATH/include plus
1495 --with-mpc-lib=PATH/lib
1496 --with-mpc-include=PATH specify directory for installed MPC include files
1497 --with-mpc-lib=PATH specify directory for the installed MPC library
1498 --with-mpfr-dir=PATH this option has been REMOVED
1499 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1500 Equivalent to --with-mpfr-include=PATH/include plus
1501 --with-mpfr-lib=PATH/lib
1502 --with-mpfr-include=PATH
1503 specify directory for installed MPFR include files
1504 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1505 --with-gmp-dir=PATH this option has been REMOVED
1506 --with-gmp=PATH specify prefix directory for the installed GMP
1507 package. Equivalent to
1508 --with-gmp-include=PATH/include plus
1509 --with-gmp-lib=PATH/lib
1510 --with-gmp-include=PATH specify directory for installed GMP include files
1511 --with-gmp-lib=PATH specify directory for the installed GMP library
1512 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1513 linking with PPL
1514 --with-stage1-ldflags=FLAGS
1515 linker flags for stage1
1516 --with-stage1-libs=LIBS libraries for stage1
1517 --with-boot-libs=LIBS libraries for stage2 and later
1518 --with-boot-ldflags=FLAGS
1519 linker flags for stage2 and later
1520 --with-ppl=PATH specify prefix directory for the installed PPL
1521 package. Equivalent to
1522 --with-ppl-include=PATH/include plus
1523 --with-ppl-lib=PATH/lib
1524 --with-ppl-include=PATH specify directory for installed PPL include files
1525 --with-ppl-lib=PATH specify directory for the installed PPL library
1526 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1527 package. Equivalent to
1528 --with-cloog-include=PATH/include plus
1529 --with-cloog-lib=PATH/lib
1530 --with-cloog-include=PATH
1531 Specify directory for installed CLooG include files
1532 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1533 library
1534 --with-build-sysroot=SYSROOT
1535 use sysroot as the system root during the build
1536 --with-debug-prefix-map='A=B C=D ...'
1537 map A to B, C to D ... in debug information
1538 --with-build-config='NAME NAME2...'
1539 use config/NAME.mk build configuration
1540 --with-build-time-tools=PATH
1541 use given path to find target tools during the build
1542
1543 Some influential environment variables:
1544 CC C compiler command
1545 CFLAGS C compiler flags
1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1547 nonstandard directory <lib dir>
1548 LIBS libraries to pass to the linker, e.g. -l<library>
1549 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1550 you have headers in a nonstandard directory <include dir>
1551 CXX C++ compiler command
1552 CXXFLAGS C++ compiler flags
1553 build_configargs
1554 additional configure arguments for build directories
1555 host_configargs
1556 additional configure arguments for host directories
1557 target_configargs
1558 additional configure arguments for target directories
1559 AR AR for the host
1560 AS AS for the host
1561 DLLTOOL DLLTOOL for the host
1562 LD LD for the host
1563 LIPO LIPO for the host
1564 NM NM for the host
1565 RANLIB RANLIB for the host
1566 STRIP STRIP for the host
1567 WINDRES WINDRES for the host
1568 WINDMC WINDMC for the host
1569 OBJCOPY OBJCOPY for the host
1570 OBJDUMP OBJDUMP for the host
1571 CC_FOR_TARGET
1572 CC for the target
1573 CXX_FOR_TARGET
1574 CXX for the target
1575 GCC_FOR_TARGET
1576 GCC for the target
1577 GCJ_FOR_TARGET
1578 GCJ for the target
1579 GFORTRAN_FOR_TARGET
1580 GFORTRAN for the target
1581 GOC_FOR_TARGET
1582 GOC for the target
1583 AR_FOR_TARGET
1584 AR for the target
1585 AS_FOR_TARGET
1586 AS for the target
1587 DLLTOOL_FOR_TARGET
1588 DLLTOOL for the target
1589 LD_FOR_TARGET
1590 LD for the target
1591 LIPO_FOR_TARGET
1592 LIPO for the target
1593 NM_FOR_TARGET
1594 NM for the target
1595 OBJDUMP_FOR_TARGET
1596 OBJDUMP for the target
1597 RANLIB_FOR_TARGET
1598 RANLIB for the target
1599 STRIP_FOR_TARGET
1600 STRIP for the target
1601 WINDRES_FOR_TARGET
1602 WINDRES for the target
1603 WINDMC_FOR_TARGET
1604 WINDMC for the target
1605
1606 Use these variables to override the choices made by `configure' or to help
1607 it to find libraries and programs with nonstandard names/locations.
1608
1609 Report bugs to the package provider.
1610 _ACEOF
1611 ac_status=$?
1612 fi
1613
1614 if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 continue
1620 ac_builddir=.
1621
1622 case "$ac_dir" in
1623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *)
1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631 esac ;;
1632 esac
1633 ac_abs_top_builddir=$ac_pwd
1634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635 # for backward compatibility:
1636 ac_top_builddir=$ac_top_build_prefix
1637
1638 case $srcdir in
1639 .) # We are building in place.
1640 ac_srcdir=.
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
1644 ac_srcdir=$srcdir$ac_dir_suffix;
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1647 *) # Relative name.
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651 esac
1652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure" --help=recursive
1662 else
1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 fi || ac_status=$?
1665 cd "$ac_pwd" || { ac_status=$?; break; }
1666 done
1667 fi
1668
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1671 cat <<\_ACEOF
1672 configure
1673 generated by GNU Autoconf 2.64
1674
1675 Copyright (C) 2009 Free Software Foundation, Inc.
1676 This configure script is free software; the Free Software Foundation
1677 gives unlimited permission to copy, distribute and modify it.
1678 _ACEOF
1679 exit
1680 fi
1681
1682 ## ------------------------ ##
1683 ## Autoconf initialization. ##
1684 ## ------------------------ ##
1685
1686 # ac_fn_c_try_compile LINENO
1687 # --------------------------
1688 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_compile ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext
1693 if { { ac_try="$ac_compile"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718 fi
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 return $ac_retval
1721
1722 } # ac_fn_c_try_compile
1723
1724 # ac_fn_cxx_try_compile LINENO
1725 # ----------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_cxx_try_compile ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756 fi
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 return $ac_retval
1759
1760 } # ac_fn_cxx_try_compile
1761
1762 # ac_fn_c_try_link LINENO
1763 # -----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_link ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 $as_test_x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797 fi
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 return $ac_retval
1805
1806 } # ac_fn_c_try_link
1807 cat >config.log <<_ACEOF
1808 This file contains any messages produced by compilers while
1809 running configure, to aid debugging if configure makes a mistake.
1810
1811 It was created by $as_me, which was
1812 generated by GNU Autoconf 2.64. Invocation command line was
1813
1814 $ $0 $@
1815
1816 _ACEOF
1817 exec 5>>config.log
1818 {
1819 cat <<_ASUNAME
1820 ## --------- ##
1821 ## Platform. ##
1822 ## --------- ##
1823
1824 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1825 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1826 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1827 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1828 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1829
1830 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1831 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1832
1833 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1834 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1835 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1836 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1837 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1838 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1839 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1840
1841 _ASUNAME
1842
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
1848 $as_echo "PATH: $as_dir"
1849 done
1850 IFS=$as_save_IFS
1851
1852 } >&5
1853
1854 cat >&5 <<_ACEOF
1855
1856
1857 ## ----------- ##
1858 ## Core tests. ##
1859 ## ----------- ##
1860
1861 _ACEOF
1862
1863
1864 # Keep a trace of the command line.
1865 # Strip out --no-create and --no-recursion so they do not pile up.
1866 # Strip out --silent because we don't want to record it for future runs.
1867 # Also quote any args containing shell meta-characters.
1868 # Make two passes to allow for proper duplicate-argument suppression.
1869 ac_configure_args=
1870 ac_configure_args0=
1871 ac_configure_args1=
1872 ac_must_keep_next=false
1873 for ac_pass in 1 2
1874 do
1875 for ac_arg
1876 do
1877 case $ac_arg in
1878 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1880 | -silent | --silent | --silen | --sile | --sil)
1881 continue ;;
1882 *\'*)
1883 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 esac
1885 case $ac_pass in
1886 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1887 2)
1888 as_fn_append ac_configure_args1 " '$ac_arg'"
1889 if test $ac_must_keep_next = true; then
1890 ac_must_keep_next=false # Got value, back to normal.
1891 else
1892 case $ac_arg in
1893 *=* | --config-cache | -C | -disable-* | --disable-* \
1894 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1895 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1896 | -with-* | --with-* | -without-* | --without-* | --x)
1897 case "$ac_configure_args0 " in
1898 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1899 esac
1900 ;;
1901 -* ) ac_must_keep_next=true ;;
1902 esac
1903 fi
1904 as_fn_append ac_configure_args " '$ac_arg'"
1905 ;;
1906 esac
1907 done
1908 done
1909 { ac_configure_args0=; unset ac_configure_args0;}
1910 { ac_configure_args1=; unset ac_configure_args1;}
1911
1912 # When interrupted or exit'd, cleanup temporary files, and complete
1913 # config.log. We remove comments because anyway the quotes in there
1914 # would cause problems or look ugly.
1915 # WARNING: Use '\'' to represent an apostrophe within the trap.
1916 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1917 trap 'exit_status=$?
1918 # Save into config.log some information that might help in debugging.
1919 {
1920 echo
1921
1922 cat <<\_ASBOX
1923 ## ---------------- ##
1924 ## Cache variables. ##
1925 ## ---------------- ##
1926 _ASBOX
1927 echo
1928 # The following way of writing the cache mishandles newlines in values,
1929 (
1930 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1931 eval ac_val=\$$ac_var
1932 case $ac_val in #(
1933 *${as_nl}*)
1934 case $ac_var in #(
1935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1936 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1937 esac
1938 case $ac_var in #(
1939 _ | IFS | as_nl) ;; #(
1940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1941 *) { eval $ac_var=; unset $ac_var;} ;;
1942 esac ;;
1943 esac
1944 done
1945 (set) 2>&1 |
1946 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1947 *${as_nl}ac_space=\ *)
1948 sed -n \
1949 "s/'\''/'\''\\\\'\'''\''/g;
1950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1951 ;; #(
1952 *)
1953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1954 ;;
1955 esac |
1956 sort
1957 )
1958 echo
1959
1960 cat <<\_ASBOX
1961 ## ----------------- ##
1962 ## Output variables. ##
1963 ## ----------------- ##
1964 _ASBOX
1965 echo
1966 for ac_var in $ac_subst_vars
1967 do
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 $as_echo "$ac_var='\''$ac_val'\''"
1973 done | sort
1974 echo
1975
1976 if test -n "$ac_subst_files"; then
1977 cat <<\_ASBOX
1978 ## ------------------- ##
1979 ## File substitutions. ##
1980 ## ------------------- ##
1981 _ASBOX
1982 echo
1983 for ac_var in $ac_subst_files
1984 do
1985 eval ac_val=\$$ac_var
1986 case $ac_val in
1987 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988 esac
1989 $as_echo "$ac_var='\''$ac_val'\''"
1990 done | sort
1991 echo
1992 fi
1993
1994 if test -s confdefs.h; then
1995 cat <<\_ASBOX
1996 ## ----------- ##
1997 ## confdefs.h. ##
1998 ## ----------- ##
1999 _ASBOX
2000 echo
2001 cat confdefs.h
2002 echo
2003 fi
2004 test "$ac_signal" != 0 &&
2005 $as_echo "$as_me: caught signal $ac_signal"
2006 $as_echo "$as_me: exit $exit_status"
2007 } >&5
2008 rm -f core *.core core.conftest.* &&
2009 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2010 exit $exit_status
2011 ' 0
2012 for ac_signal in 1 2 13 15; do
2013 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2014 done
2015 ac_signal=0
2016
2017 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2018 rm -f -r conftest* confdefs.h
2019
2020 $as_echo "/* confdefs.h */" > confdefs.h
2021
2022 # Predefined preprocessor variables.
2023
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_NAME "$PACKAGE_NAME"
2026 _ACEOF
2027
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2030 _ACEOF
2031
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2034 _ACEOF
2035
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_STRING "$PACKAGE_STRING"
2038 _ACEOF
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_URL "$PACKAGE_URL"
2046 _ACEOF
2047
2048
2049 # Let the site file select an alternate cache file if it wants to.
2050 # Prefer an explicitly selected file to automatically selected ones.
2051 ac_site_file1=NONE
2052 ac_site_file2=NONE
2053 if test -n "$CONFIG_SITE"; then
2054 ac_site_file1=$CONFIG_SITE
2055 elif test "x$prefix" != xNONE; then
2056 ac_site_file1=$prefix/share/config.site
2057 ac_site_file2=$prefix/etc/config.site
2058 else
2059 ac_site_file1=$ac_default_prefix/share/config.site
2060 ac_site_file2=$ac_default_prefix/etc/config.site
2061 fi
2062 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2063 do
2064 test "x$ac_site_file" = xNONE && continue
2065 if test -r "$ac_site_file"; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2067 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2068 sed 's/^/| /' "$ac_site_file" >&5
2069 . "$ac_site_file"
2070 fi
2071 done
2072
2073 if test -r "$cache_file"; then
2074 # Some versions of bash will fail to source /dev/null (special
2075 # files actually), so we avoid doing that.
2076 if test -f "$cache_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078 $as_echo "$as_me: loading cache $cache_file" >&6;}
2079 case $cache_file in
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
2082 esac
2083 fi
2084 else
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086 $as_echo "$as_me: creating cache $cache_file" >&6;}
2087 >$cache_file
2088 fi
2089
2090 # Check that the precious variables saved in the cache have kept the same
2091 # value.
2092 ac_cache_corrupted=false
2093 for ac_var in $ac_precious_vars; do
2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2095 eval ac_new_set=\$ac_env_${ac_var}_set
2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2097 eval ac_new_val=\$ac_env_${ac_var}_value
2098 case $ac_old_set,$ac_new_set in
2099 set,)
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2101 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2102 ac_cache_corrupted=: ;;
2103 ,set)
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2105 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2106 ac_cache_corrupted=: ;;
2107 ,);;
2108 *)
2109 if test "x$ac_old_val" != "x$ac_new_val"; then
2110 # differences in whitespace do not lead to failure.
2111 ac_old_val_w=`echo x $ac_old_val`
2112 ac_new_val_w=`echo x $ac_new_val`
2113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2115 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2116 ac_cache_corrupted=:
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2119 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2120 eval $ac_var=\$ac_old_val
2121 fi
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2123 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2125 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2126 fi;;
2127 esac
2128 # Pass precious variables to config.status.
2129 if test "$ac_new_set" = set; then
2130 case $ac_new_val in
2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2132 *) ac_arg=$ac_var=$ac_new_val ;;
2133 esac
2134 case " $ac_configure_args " in
2135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2137 esac
2138 fi
2139 done
2140 if $ac_cache_corrupted; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2144 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2145 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2146 fi
2147 ## -------------------- ##
2148 ## Main body of script. ##
2149 ## -------------------- ##
2150
2151 ac_ext=c
2152 ac_cpp='$CPP $CPPFLAGS'
2153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165 progname=$0
2166 # if PWD already has a value, it is probably wrong.
2167 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2168
2169 # Export original configure arguments for use by sub-configures.
2170 # Quote arguments with shell meta charatcers.
2171 TOPLEVEL_CONFIGURE_ARGUMENTS=
2172 set -- "$progname" "$@"
2173 for ac_arg
2174 do
2175 case "$ac_arg" in
2176 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2177 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2178 # if the argument is of the form -foo=baz, quote the baz part only
2179 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2180 *) ;;
2181 esac
2182 # Add the quoted argument to the list.
2183 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2184 done
2185 if test "$silent" = yes; then
2186 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2187 fi
2188 # Remove the initial space we just introduced and, as these will be
2189 # expanded by make, quote '$'.
2190 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2191
2192
2193 # Find the build, host, and target systems.
2194 ac_aux_dir=
2195 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2196 for ac_t in install-sh install.sh shtool; do
2197 if test -f "$ac_dir/$ac_t"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/$ac_t -c"
2200 break 2
2201 fi
2202 done
2203 done
2204 if test -z "$ac_aux_dir"; then
2205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2206 fi
2207
2208 # These three variables are undocumented and unsupported,
2209 # and are intended to be withdrawn in a future Autoconf release.
2210 # They can cause serious problems if a builder's source tree is in a directory
2211 # whose full name contains unusual characters.
2212 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2213 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2214 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2215
2216
2217 # Make sure we can run config.sub.
2218 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2220
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2222 $as_echo_n "checking build system type... " >&6; }
2223 if test "${ac_cv_build+set}" = set; then :
2224 $as_echo_n "(cached) " >&6
2225 else
2226 ac_build_alias=$build_alias
2227 test "x$ac_build_alias" = x &&
2228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2229 test "x$ac_build_alias" = x &&
2230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2231 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2233
2234 fi
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2236 $as_echo "$ac_cv_build" >&6; }
2237 case $ac_cv_build in
2238 *-*-*) ;;
2239 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2240 esac
2241 build=$ac_cv_build
2242 ac_save_IFS=$IFS; IFS='-'
2243 set x $ac_cv_build
2244 shift
2245 build_cpu=$1
2246 build_vendor=$2
2247 shift; shift
2248 # Remember, the first character of IFS is used to create $*,
2249 # except with old shells:
2250 build_os=$*
2251 IFS=$ac_save_IFS
2252 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2253
2254
2255 case ${build_alias} in
2256 "") build_noncanonical=${build} ;;
2257 *) build_noncanonical=${build_alias} ;;
2258 esac
2259
2260
2261
2262 case ${host_alias} in
2263 "") host_noncanonical=${build_noncanonical} ;;
2264 *) host_noncanonical=${host_alias} ;;
2265 esac
2266
2267
2268
2269 case ${target_alias} in
2270 "") target_noncanonical=${host_noncanonical} ;;
2271 *) target_noncanonical=${target_alias} ;;
2272 esac
2273
2274
2275
2276
2277 test "$host_noncanonical" = "$target_noncanonical" &&
2278 test "$program_prefix$program_suffix$program_transform_name" = \
2279 NONENONEs,x,x, &&
2280 program_transform_name=s,y,y,
2281
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2283 $as_echo_n "checking host system type... " >&6; }
2284 if test "${ac_cv_host+set}" = set; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 if test "x$host_alias" = x; then
2288 ac_cv_host=$ac_cv_build
2289 else
2290 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2291 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2292 fi
2293
2294 fi
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2296 $as_echo "$ac_cv_host" >&6; }
2297 case $ac_cv_host in
2298 *-*-*) ;;
2299 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2300 esac
2301 host=$ac_cv_host
2302 ac_save_IFS=$IFS; IFS='-'
2303 set x $ac_cv_host
2304 shift
2305 host_cpu=$1
2306 host_vendor=$2
2307 shift; shift
2308 # Remember, the first character of IFS is used to create $*,
2309 # except with old shells:
2310 host_os=$*
2311 IFS=$ac_save_IFS
2312 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2313
2314
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2316 $as_echo_n "checking target system type... " >&6; }
2317 if test "${ac_cv_target+set}" = set; then :
2318 $as_echo_n "(cached) " >&6
2319 else
2320 if test "x$target_alias" = x; then
2321 ac_cv_target=$ac_cv_host
2322 else
2323 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2324 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2325 fi
2326
2327 fi
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2329 $as_echo "$ac_cv_target" >&6; }
2330 case $ac_cv_target in
2331 *-*-*) ;;
2332 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2333 esac
2334 target=$ac_cv_target
2335 ac_save_IFS=$IFS; IFS='-'
2336 set x $ac_cv_target
2337 shift
2338 target_cpu=$1
2339 target_vendor=$2
2340 shift; shift
2341 # Remember, the first character of IFS is used to create $*,
2342 # except with old shells:
2343 target_os=$*
2344 IFS=$ac_save_IFS
2345 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2346
2347
2348 # The aliases save the names the user supplied, while $host etc.
2349 # will get canonicalized.
2350 test -n "$target_alias" &&
2351 test "$program_prefix$program_suffix$program_transform_name" = \
2352 NONENONEs,x,x, &&
2353 program_prefix=${target_alias}-
2354
2355 test "$program_prefix" != NONE &&
2356 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2357 # Use a double $ so make ignores it.
2358 test "$program_suffix" != NONE &&
2359 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2360 # Double any \ or $.
2361 # By default was `s,x,x', remove it if useless.
2362 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2363 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2364
2365
2366
2367 # Get 'install' or 'install-sh' and its variants.
2368 # Find a good install program. We prefer a C program (faster),
2369 # so one script is as good as another. But avoid the broken or
2370 # incompatible versions:
2371 # SysV /etc/install, /usr/sbin/install
2372 # SunOS /usr/etc/install
2373 # IRIX /sbin/install
2374 # AIX /bin/install
2375 # AmigaOS /C/install, which installs bootblocks on floppy discs
2376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2379 # OS/2's system install, which has a completely different semantic
2380 # ./install, which can be erroneously created by make from ./install.sh.
2381 # Reject install programs that cannot install multiple files.
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2383 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2384 if test -z "$INSTALL"; then
2385 if test "${ac_cv_path_install+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2390 do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 # Account for people who put trailing slashes in PATH elements.
2394 case $as_dir/ in #((
2395 ./ | .// | /[cC]/* | \
2396 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2397 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2398 /usr/ucb/* ) ;;
2399 *)
2400 # OSF1 and SCO ODT 3.0 have their own names for install.
2401 # Don't use installbsd from OSF since it installs stuff as root
2402 # by default.
2403 for ac_prog in ginstall scoinst install; do
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2406 if test $ac_prog = install &&
2407 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408 # AIX install. It has an incompatible calling convention.
2409 :
2410 elif test $ac_prog = install &&
2411 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2412 # program-specific install script used by HP pwplus--don't use.
2413 :
2414 else
2415 rm -rf conftest.one conftest.two conftest.dir
2416 echo one > conftest.one
2417 echo two > conftest.two
2418 mkdir conftest.dir
2419 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2420 test -s conftest.one && test -s conftest.two &&
2421 test -s conftest.dir/conftest.one &&
2422 test -s conftest.dir/conftest.two
2423 then
2424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2425 break 3
2426 fi
2427 fi
2428 fi
2429 done
2430 done
2431 ;;
2432 esac
2433
2434 done
2435 IFS=$as_save_IFS
2436
2437 rm -rf conftest.one conftest.two conftest.dir
2438
2439 fi
2440 if test "${ac_cv_path_install+set}" = set; then
2441 INSTALL=$ac_cv_path_install
2442 else
2443 # As a last resort, use the slow shell script. Don't cache a
2444 # value for INSTALL within a source directory, because that will
2445 # break other packages using the cache if that directory is
2446 # removed, or if the value is a relative name.
2447 INSTALL=$ac_install_sh
2448 fi
2449 fi
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2451 $as_echo "$INSTALL" >&6; }
2452
2453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2454 # It thinks the first close brace ends the variable substitution.
2455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2456
2457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2458
2459 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2460
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2462 $as_echo_n "checking whether ln works... " >&6; }
2463 if test "${acx_cv_prog_LN+set}" = set; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 rm -f conftestdata_t
2467 echo >conftestdata_f
2468 if ln conftestdata_f conftestdata_t 2>/dev/null
2469 then
2470 acx_cv_prog_LN=ln
2471 else
2472 acx_cv_prog_LN=no
2473 fi
2474 rm -f conftestdata_f conftestdata_t
2475
2476 fi
2477 if test $acx_cv_prog_LN = no; then
2478 LN="cp"
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2480 $as_echo "no, using $LN" >&6; }
2481 else
2482 LN="$acx_cv_prog_LN"
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484 $as_echo "yes" >&6; }
2485 fi
2486
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2488 $as_echo_n "checking whether ln -s works... " >&6; }
2489 LN_S=$as_ln_s
2490 if test "$LN_S" = "ln -s"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2492 $as_echo "yes" >&6; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2495 $as_echo "no, using $LN_S" >&6; }
2496 fi
2497
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2499 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2500 if test "${ac_cv_path_SED+set}" = set; then :
2501 $as_echo_n "(cached) " >&6
2502 else
2503 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2504 for ac_i in 1 2 3 4 5 6 7; do
2505 ac_script="$ac_script$as_nl$ac_script"
2506 done
2507 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2508 { ac_script=; unset ac_script;}
2509 if test -z "$SED"; then
2510 ac_path_SED_found=false
2511 # Loop through the user's path and test for each of PROGNAME-LIST
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_prog in sed gsed; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2520 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2521 # Check for GNU ac_path_SED and select it if it is found.
2522 # Check for GNU $ac_path_SED
2523 case `"$ac_path_SED" --version 2>&1` in
2524 *GNU*)
2525 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2526 *)
2527 ac_count=0
2528 $as_echo_n 0123456789 >"conftest.in"
2529 while :
2530 do
2531 cat "conftest.in" "conftest.in" >"conftest.tmp"
2532 mv "conftest.tmp" "conftest.in"
2533 cp "conftest.in" "conftest.nl"
2534 $as_echo '' >> "conftest.nl"
2535 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2537 as_fn_arith $ac_count + 1 && ac_count=$as_val
2538 if test $ac_count -gt ${ac_path_SED_max-0}; then
2539 # Best one so far, save it but keep looking for a better one
2540 ac_cv_path_SED="$ac_path_SED"
2541 ac_path_SED_max=$ac_count
2542 fi
2543 # 10*(2^10) chars as input seems more than enough
2544 test $ac_count -gt 10 && break
2545 done
2546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2547 esac
2548
2549 $ac_path_SED_found && break 3
2550 done
2551 done
2552 done
2553 IFS=$as_save_IFS
2554 if test -z "$ac_cv_path_SED"; then
2555 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2556 fi
2557 else
2558 ac_cv_path_SED=$SED
2559 fi
2560
2561 fi
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2563 $as_echo "$ac_cv_path_SED" >&6; }
2564 SED="$ac_cv_path_SED"
2565 rm -f conftest.sed
2566
2567 for ac_prog in gawk mawk nawk awk
2568 do
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if test "${ac_cv_prog_AWK+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test -n "$AWK"; then
2577 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_AWK="$ac_prog"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 AWK=$ac_cv_prog_AWK
2597 if test -n "$AWK"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599 $as_echo "$AWK" >&6; }
2600 else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605
2606 test -n "$AWK" && break
2607 done
2608
2609
2610 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2611
2612 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2613 # a relative path.
2614 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2615 INSTALL="${srcpwd}/install-sh -c"
2616 fi
2617
2618 # Set srcdir to "." if that's what it is.
2619 # This is important for multilib support.
2620 pwd=`${PWDCMD-pwd}`
2621 if test "${pwd}" = "${srcpwd}" ; then
2622 srcdir=.
2623 fi
2624
2625 topsrcdir=$srcpwd
2626
2627 extra_host_args=
2628
2629 ### To add a new directory to the tree, first choose whether it is a target
2630 ### or a host dependent tool. Then put it into the appropriate list
2631 ### (library or tools, host or target), doing a dependency sort.
2632
2633 # Subdirs will be configured in the order listed in build_configdirs,
2634 # configdirs, or target_configdirs; see the serialization section below.
2635
2636 # Dependency sorting is only needed when *configuration* must be done in
2637 # a particular order. In all cases a dependency should be specified in
2638 # the Makefile, whether or not it's implicitly specified here.
2639
2640 # Double entries in build_configdirs, configdirs, or target_configdirs may
2641 # cause circular dependencies and break everything horribly.
2642
2643 # these library is used by various programs built for the build
2644 # environment
2645 #
2646 build_libs="build-libiberty"
2647
2648 # these tools are built for the build environment
2649 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2650
2651 # these libraries are used by various programs built for the host environment
2652 #
2653 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2654
2655 # these tools are built for the host environment
2656 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2657 # know that we are building the simulator.
2658 # binutils, gas and ld appear in that order because it makes sense to run
2659 # "make check" in that particular order.
2660 # If --enable-gold is used, "gold" may replace "ld".
2661 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2662
2663 # libgcj represents the runtime libraries only used by gcj.
2664 libgcj="target-libffi \
2665 target-zlib \
2666 target-libjava"
2667
2668 # these libraries are built for the target environment, and are built after
2669 # the host libraries and the host tools (which may be a cross compiler)
2670 #
2671 target_libraries="target-libgcc \
2672 target-libiberty \
2673 target-libgloss \
2674 target-newlib \
2675 target-libgomp \
2676 target-libstdc++-v3 \
2677 target-libmudflap \
2678 target-libssp \
2679 target-libquadmath \
2680 target-libgfortran \
2681 target-boehm-gc \
2682 ${libgcj} \
2683 target-libobjc \
2684 target-libada \
2685 target-libgo"
2686
2687 # these tools are built using the target libraries, and are intended to
2688 # run only in the target environment
2689 #
2690 # note: any program that *uses* libraries that are in the "target_libraries"
2691 # list belongs in this list.
2692 #
2693 target_tools="target-rda"
2694
2695 ################################################################################
2696
2697 ## All tools belong in one of the four categories, and are assigned above
2698 ## We assign ${configdirs} this way to remove all embedded newlines. This
2699 ## is important because configure will choke if they ever get through.
2700 ## ${configdirs} is directories we build using the host tools.
2701 ## ${target_configdirs} is directories we build using the target tools.
2702 configdirs=`echo ${host_libs} ${host_tools}`
2703 target_configdirs=`echo ${target_libraries} ${target_tools}`
2704 build_configdirs=`echo ${build_libs} ${build_tools}`
2705
2706
2707
2708 ################################################################################
2709
2710 srcname="gnu development package"
2711
2712 # This gets set non-empty for some net releases of packages.
2713 appdirs=""
2714
2715 # Define is_cross_compiler to save on calls to 'test'.
2716 is_cross_compiler=
2717 if test x"${host}" = x"${target}" ; then
2718 is_cross_compiler=no
2719 else
2720 is_cross_compiler=yes
2721 fi
2722
2723 # Find the build and target subdir names.
2724
2725 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2726 # have matching libraries, they should use host libraries: Makefile.tpl
2727 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2728 # However, they still use the build modules, because the corresponding
2729 # host modules (e.g. bison) are only built for the host when bootstrap
2730 # finishes. So:
2731 # - build_subdir is where we find build modules, and never changes.
2732 # - build_libsubdir is where we find build libraries, and can be overridden.
2733
2734 # Prefix 'build-' so this never conflicts with target_subdir.
2735 build_subdir="build-${build_noncanonical}"
2736
2737 # Check whether --with-build-libsubdir was given.
2738 if test "${with_build_libsubdir+set}" = set; then :
2739 withval=$with_build_libsubdir; build_libsubdir="$withval"
2740 else
2741 build_libsubdir="$build_subdir"
2742 fi
2743
2744 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2745 if ( test $srcdir = . && test -d gcc ) \
2746 || test -d $srcdir/../host-${host_noncanonical}; then
2747 host_subdir="host-${host_noncanonical}"
2748 else
2749 host_subdir=.
2750 fi
2751 # No prefix.
2752 target_subdir=${target_noncanonical}
2753
2754 # Be sure to cover against remnants of an in-tree build.
2755 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2756 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2757 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2758 fi
2759
2760 # Skipdirs are removed silently.
2761 skipdirs=
2762 # Noconfigdirs are removed loudly.
2763 noconfigdirs=""
2764
2765 use_gnu_ld=
2766 # Make sure we don't let GNU ld be added if we didn't want it.
2767 if test x$with_gnu_ld = xno ; then
2768 use_gnu_ld=no
2769 noconfigdirs="$noconfigdirs ld gold"
2770 fi
2771
2772 use_gnu_as=
2773 # Make sure we don't let GNU as be added if we didn't want it.
2774 if test x$with_gnu_as = xno ; then
2775 use_gnu_as=no
2776 noconfigdirs="$noconfigdirs gas"
2777 fi
2778
2779 use_included_zlib=
2780 # Make sure we don't let ZLIB be added if we didn't want it.
2781 if test x$with_system_zlib = xyes ; then
2782 use_included_zlib=no
2783 noconfigdirs="$noconfigdirs zlib"
2784 fi
2785
2786 # some tools are so dependent upon X11 that if we're not building with X,
2787 # it's not even worth trying to configure, much less build, that tool.
2788
2789 case ${with_x} in
2790 yes | "") ;; # the default value for this tree is that X11 is available
2791 no)
2792 skipdirs="${skipdirs} tk itcl libgui"
2793 # We won't be able to build gdbtk without X.
2794 enable_gdbtk=no
2795 ;;
2796 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2797 esac
2798
2799 # Some are only suitable for cross toolchains.
2800 # Remove these if host=target.
2801 cross_only="target-libgloss target-newlib target-opcodes"
2802
2803 case $is_cross_compiler in
2804 no) skipdirs="${skipdirs} ${cross_only}" ;;
2805 esac
2806
2807 # If both --with-headers and --with-libs are specified, default to
2808 # --without-newlib.
2809 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2810 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2811 if test x"${with_newlib}" = x ; then
2812 with_newlib=no
2813 fi
2814 fi
2815
2816 # Recognize --with-newlib/--without-newlib.
2817 case ${with_newlib} in
2818 no) skipdirs="${skipdirs} target-newlib" ;;
2819 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2820 esac
2821
2822 # Handle --enable-gold, --enable-ld.
2823 # --disable-gold [--enable-ld]
2824 # Build only ld. Default option.
2825 # --enable-gold [--enable-ld]
2826 # Build both gold and ld. Install gold as "ld.gold", install ld
2827 # as "ld.bfd" and "ld".
2828 # --enable-gold=default [--enable-ld]
2829 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2830 # install ld as "ld.bfd".
2831 # --enable-gold[=default] --disable-ld
2832 # Build only gold, which is then installed as both "ld.gold" and "ld".
2833 # --enable-gold --enable-ld=default
2834 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2835 # and ld.bfd).
2836 # In other words, ld is default
2837 # --enable-gold=default --enable-ld=default
2838 # Error.
2839
2840 default_ld=
2841 # Check whether --enable-gold was given.
2842 if test "${enable_gold+set}" = set; then :
2843 enableval=$enable_gold; ENABLE_GOLD=$enableval
2844 else
2845 ENABLE_GOLD=no
2846 fi
2847
2848 case "${ENABLE_GOLD}" in
2849 yes|default)
2850 # Check for ELF target.
2851 is_elf=no
2852 case "${target}" in
2853 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2854 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2855 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2856 | *-*-solaris2* | *-*-nto*)
2857 case "${target}" in
2858 *-*-linux*aout* | *-*-linux*oldld*)
2859 ;;
2860 *)
2861 is_elf=yes
2862 ;;
2863 esac
2864 esac
2865
2866 if test "$is_elf" = "yes"; then
2867 # Check for target supported by gold.
2868 case "${target}" in
2869 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2870 configdirs="$configdirs gold"
2871 if test x${ENABLE_GOLD} = xdefault; then
2872 default_ld=gold
2873 fi
2874 ENABLE_GOLD=yes
2875 ;;
2876 esac
2877 fi
2878 ;;
2879 no)
2880 ;;
2881 *)
2882 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2883 ;;
2884 esac
2885
2886 # Check whether --enable-ld was given.
2887 if test "${enable_ld+set}" = set; then :
2888 enableval=$enable_ld; ENABLE_LD=$enableval
2889 else
2890 ENABLE_LD=yes
2891 fi
2892
2893
2894 case "${ENABLE_LD}" in
2895 default)
2896 if test x${default_ld} != x; then
2897 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2898 fi
2899 ;;
2900 yes)
2901 ;;
2902 no)
2903 if test x${ENABLE_GOLD} != xyes; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2905 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2906 fi
2907 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2908 ;;
2909 *)
2910 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2911 ;;
2912 esac
2913
2914 # Configure extra directories which are host specific
2915
2916 case "${host}" in
2917 *-cygwin*)
2918 configdirs="$configdirs libtermcap" ;;
2919 esac
2920
2921 # A target can indicate whether a language isn't supported for some reason.
2922 # Only spaces may be used in this macro; not newlines or tabs.
2923 unsupported_languages=
2924
2925 # Remove more programs from consideration, based on the host or
2926 # target this usually means that a port of the program doesn't
2927 # exist yet.
2928
2929 case "${host}" in
2930 i[3456789]86-*-msdosdjgpp*)
2931 noconfigdirs="$noconfigdirs tcl tk itcl"
2932 ;;
2933 esac
2934
2935
2936 # Check whether --enable-libquadmath was given.
2937 if test "${enable_libquadmath+set}" = set; then :
2938 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2939 else
2940 ENABLE_LIBQUADMATH=yes
2941 fi
2942
2943 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2944 noconfigdirs="$noconfigdirs target-libquadmath"
2945 fi
2946
2947
2948 # Check whether --enable-libquadmath-support was given.
2949 if test "${enable_libquadmath_support+set}" = set; then :
2950 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2951 else
2952 ENABLE_LIBQUADMATH_SUPPORT=yes
2953 fi
2954
2955 enable_libquadmath_support=
2956 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2957 enable_libquadmath_support=no
2958 fi
2959
2960
2961 # Check whether --enable-libada was given.
2962 if test "${enable_libada+set}" = set; then :
2963 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2964 else
2965 ENABLE_LIBADA=yes
2966 fi
2967
2968 if test "${ENABLE_LIBADA}" != "yes" ; then
2969 noconfigdirs="$noconfigdirs gnattools"
2970 fi
2971
2972 # Check whether --enable-libssp was given.
2973 if test "${enable_libssp+set}" = set; then :
2974 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2975 else
2976 ENABLE_LIBSSP=yes
2977 fi
2978
2979
2980 # Save it here so that, even in case of --enable-libgcj, if the Java
2981 # front-end isn't enabled, we still get libgcj disabled.
2982 libgcj_saved=$libgcj
2983 case $enable_libgcj in
2984 yes)
2985 # If we reset it here, it won't get added to noconfigdirs in the
2986 # target-specific build rules, so it will be forcibly enabled
2987 # (unless the Java language itself isn't enabled).
2988 libgcj=
2989 ;;
2990 no)
2991 # Make sure we get it printed in the list of not supported target libs.
2992 # Don't disable libffi, though, other languages use it.
2993 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
2994 # Clear libgcj_saved so that even if java is enabled libffi won't be
2995 # built.
2996 libgcj_saved=
2997 ;;
2998 esac
2999
3000
3001 # Disable libmudflap on some systems.
3002 if test x$enable_libmudflap = x ; then
3003 case "${target}" in
3004 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3005 # Enable libmudflap by default in GNU and friends.
3006 ;;
3007 *-*-freebsd*)
3008 # Enable libmudflap by default in FreeBSD.
3009 ;;
3010 *)
3011 # Disable it by default everywhere else.
3012 noconfigdirs="$noconfigdirs target-libmudflap"
3013 ;;
3014 esac
3015 fi
3016
3017 # Disable libgomp on non POSIX hosted systems.
3018 if test x$enable_libgomp = x ; then
3019 # Enable libgomp by default on hosted POSIX systems.
3020 case "${target}" in
3021 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3022 ;;
3023 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3024 ;;
3025 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3026 ;;
3027 *-*-darwin* | *-*-aix*)
3028 ;;
3029 *)
3030 noconfigdirs="$noconfigdirs target-libgomp"
3031 ;;
3032 esac
3033 fi
3034
3035 # Disable libssp for some systems.
3036 case "${target}" in
3037 avr-*-*)
3038 # No hosted I/O support.
3039 noconfigdirs="$noconfigdirs target-libssp"
3040 ;;
3041 powerpc-*-aix* | rs6000-*-aix*)
3042 noconfigdirs="$noconfigdirs target-libssp"
3043 ;;
3044 esac
3045
3046 # Disable target libiberty for some systems.
3047 case "${target}" in
3048 *-*-kaos*)
3049 # Remove unsupported stuff on all kaOS configurations.
3050 skipdirs="target-libiberty"
3051 ;;
3052 *-*-netbsd*)
3053 # Skip some stuff on all NetBSD configurations.
3054 noconfigdirs="$noconfigdirs target-libiberty"
3055 ;;
3056 *-*-netware*)
3057 noconfigdirs="$noconfigdirs target-libiberty"
3058 ;;
3059 *-*-rtems*)
3060 skipdirs="${skipdirs} target-libiberty"
3061 ;;
3062 *-*-tpf*)
3063 noconfigdirs="$noconfigdirs target-libiberty"
3064 ;;
3065 *-*-vxworks*)
3066 noconfigdirs="$noconfigdirs target-libiberty"
3067 ;;
3068 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3069 noconfigdirs="$noconfigdirs target-libiberty"
3070 ;;
3071 arm*-*-symbianelf*)
3072 noconfigdirs="$noconfigdirs target-libiberty"
3073 ;;
3074 avr-*-*)
3075 noconfigdirs="$noconfigdirs target-libiberty"
3076 ;;
3077 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3078 noconfigdirs="$noconfigdirs target-libiberty"
3079 ;;
3080 picochip-*-*)
3081 noconfigdirs="$noconfigdirs target-libiberty"
3082 ;;
3083 mips*-sde-elf*)
3084 skipdirs="$skipdirs target-libiberty"
3085 ;;
3086 ip2k-*-*)
3087 noconfigdirs="$noconfigdirs target-libiberty"
3088 ;;
3089 esac
3090
3091 # Disable libstdc++-v3 for some systems.
3092 case "${target}" in
3093 *-*-vxworks*)
3094 # VxWorks uses the Dinkumware C++ library.
3095 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3096 ;;
3097 arm*-wince-pe*)
3098 # the C++ libraries don't build on top of CE's C libraries
3099 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3100 ;;
3101 avr-*-*)
3102 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3103 ;;
3104 esac
3105
3106 # Disable Fortran for some systems.
3107 case "${target}" in
3108 mmix-*-*)
3109 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3110 unsupported_languages="$unsupported_languages fortran"
3111 ;;
3112 esac
3113
3114 # Disable Java if libffi is not supported.
3115 case "${target}" in
3116 alpha*-*-*)
3117 ;;
3118 arm*-*-*)
3119 ;;
3120 cris-*-*)
3121 ;;
3122 frv-*-*)
3123 ;;
3124 hppa*-*-linux*)
3125 ;;
3126 hppa*-*-hpux*)
3127 ;;
3128 i?86-*-*)
3129 ;;
3130 ia64*-*-*)
3131 ;;
3132 m32r*-*-*)
3133 ;;
3134 m68k-*-*)
3135 ;;
3136 mips-sgi-irix6.* | mips*-*-rtems*)
3137 ;;
3138 mips*-*-linux*)
3139 ;;
3140 powerpc*-*-linux*)
3141 ;;
3142 powerpc-*-darwin*)
3143 ;;
3144 powerpc-*-aix* | rs6000-*-aix*)
3145 ;;
3146 powerpc-*-freebsd*)
3147 ;;
3148 powerpc64-*-freebsd*)
3149 ;;
3150 powerpc*-*-rtems*)
3151 ;;
3152 s390-*-* | s390x-*-*)
3153 ;;
3154 sh-*-* | sh[34]*-*-*)
3155 ;;
3156 sh64-*-* | sh5*-*-*)
3157 ;;
3158 sparc*-*-*)
3159 ;;
3160 x86_64-*-*)
3161 ;;
3162 *-*-*)
3163 unsupported_languages="$unsupported_languages java"
3164 ;;
3165 esac
3166
3167 # Disable Java, libgcj or related libraries for some systems.
3168 case "${target}" in
3169 powerpc-*-darwin*)
3170 ;;
3171 i[3456789]86-*-darwin*)
3172 ;;
3173 x86_64-*-darwin[912]*)
3174 ;;
3175 *-*-darwin*)
3176 noconfigdirs="$noconfigdirs ${libgcj}"
3177 ;;
3178 *-*-netware*)
3179 noconfigdirs="$noconfigdirs ${libgcj}"
3180 ;;
3181 *-*-rtems*)
3182 noconfigdirs="$noconfigdirs ${libgcj}"
3183 ;;
3184 *-*-tpf*)
3185 noconfigdirs="$noconfigdirs ${libgcj}"
3186 ;;
3187 *-*-uclinux*)
3188 noconfigdirs="$noconfigdirs ${libgcj}"
3189 ;;
3190 *-*-vxworks*)
3191 noconfigdirs="$noconfigdirs ${libgcj}"
3192 ;;
3193 alpha*-*-*vms*)
3194 noconfigdirs="$noconfigdirs ${libgcj}"
3195 ;;
3196 arm-wince-pe)
3197 noconfigdirs="$noconfigdirs ${libgcj}"
3198 ;;
3199 arm*-*-symbianelf*)
3200 noconfigdirs="$noconfigdirs ${libgcj}"
3201 ;;
3202 bfin-*-*)
3203 noconfigdirs="$noconfigdirs target-boehm-gc"
3204 ;;
3205 cris-*-* | crisv32-*-*)
3206 unsupported_languages="$unsupported_languages java"
3207 case "${target}" in
3208 *-*-linux*)
3209 ;;
3210 *) # See PR46792 regarding target-libffi.
3211 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3212 esac
3213 ;;
3214 hppa*64*-*-linux*)
3215 # In this case, it's because the hppa64-linux target is for
3216 # the kernel only at this point and has no libc, and thus no
3217 # headers, crt*.o, etc., all of which are needed by these.
3218 unsupported_languages="$unsupported_languages java"
3219 ;;
3220 hppa*64*-*-hpux*)
3221 noconfigdirs="$noconfigdirs ${libgcj}"
3222 ;;
3223 hppa*-hp-hpux11*)
3224 ;;
3225 hppa*-*-hpux*)
3226 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3227 # build on HP-UX 10.20.
3228 noconfigdirs="$noconfigdirs ${libgcj}"
3229 ;;
3230 ia64*-*-*vms*)
3231 noconfigdirs="$noconfigdirs ${libgcj}"
3232 ;;
3233 i[3456789]86-w64-mingw*)
3234 noconfigdirs="$noconfigdirs ${libgcj}"
3235 ;;
3236 i[3456789]86-*-mingw*)
3237 noconfigdirs="$noconfigdirs ${libgcj}"
3238 ;;
3239 x86_64-*-mingw*)
3240 noconfigdirs="$noconfigdirs ${libgcj}"
3241 ;;
3242 mmix-*-*)
3243 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3244 ;;
3245 powerpc-*-aix*)
3246 # copied from rs6000-*-* entry
3247 noconfigdirs="$noconfigdirs ${libgcj}"
3248 ;;
3249 rs6000-*-aix*)
3250 noconfigdirs="$noconfigdirs ${libgcj}"
3251 ;;
3252 mips*-*-irix6*)
3253 # Linking libjava exceeds command-line length limits on at least
3254 # IRIX 6.2, but not on IRIX 6.5.
3255 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3256 # <oldham@codesourcery.com>
3257 noconfigdirs="$noconfigdirs ${libgcj}"
3258 ;;
3259 *-*-lynxos*)
3260 noconfigdirs="$noconfigdirs ${libgcj}"
3261 ;;
3262 esac
3263
3264 # Default libgloss CPU subdirectory.
3265 libgloss_dir="$target_cpu"
3266
3267 case "${target}" in
3268 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3269 libgloss_dir=wince
3270 ;;
3271 arm*-*-*)
3272 libgloss_dir=arm
3273 ;;
3274 cris-*-* | crisv32-*-*)
3275 libgloss_dir=cris
3276 ;;
3277 hppa*-*-*)
3278 libgloss_dir=pa
3279 ;;
3280 i[3456789]86-*-*)
3281 libgloss_dir=i386
3282 ;;
3283 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3284 libgloss_dir=m68hc11
3285 ;;
3286 m68*-*-* | fido-*-*)
3287 libgloss_dir=m68k
3288 ;;
3289 mips*-*-*)
3290 libgloss_dir=mips
3291 ;;
3292 powerpc*-*-*)
3293 libgloss_dir=rs6000
3294 ;;
3295 sparc*-*-*)
3296 libgloss_dir=sparc
3297 ;;
3298 esac
3299
3300 case "${target}" in
3301 *-*-chorusos)
3302 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3303 ;;
3304 powerpc-*-darwin*)
3305 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3306 noconfigdirs="$noconfigdirs sim target-rda"
3307 ;;
3308 i[3456789]86-*-darwin*)
3309 noconfigdirs="$noconfigdirs ld gprof"
3310 noconfigdirs="$noconfigdirs sim target-rda"
3311 ;;
3312 x86_64-*-darwin[912]*)
3313 noconfigdirs="$noconfigdirs ld gas gprof"
3314 noconfigdirs="$noconfigdirs sim target-rda"
3315 ;;
3316 *-*-darwin*)
3317 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3318 noconfigdirs="$noconfigdirs sim target-rda"
3319 ;;
3320 *-*-dragonfly*)
3321 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3322 ;;
3323 *-*-freebsd*)
3324 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3325 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3326 && test -f /usr/local/include/gmp.h; then
3327 with_gmp=/usr/local
3328 fi
3329 ;;
3330 *-*-kaos*)
3331 # Remove unsupported stuff on all kaOS configurations.
3332 noconfigdirs="$noconfigdirs target-libgloss"
3333 ;;
3334 *-*-netbsd*)
3335 # Skip some stuff on all NetBSD configurations.
3336 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3337 ;;
3338 *-*-netware*)
3339 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3340 ;;
3341 *-*-rtems*)
3342 noconfigdirs="$noconfigdirs target-libgloss"
3343 ;;
3344 # The tpf target doesn't support gdb yet.
3345 *-*-tpf*)
3346 noconfigdirs="$noconfigdirs target-newlib target-libgloss gdb tcl tk libgui itcl"
3347 ;;
3348 *-*-uclinux*)
3349 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda"
3350 ;;
3351 *-*-vxworks*)
3352 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3353 ;;
3354 alpha*-dec-osf*)
3355 # ld works, but does not support shared libraries.
3356 # newlib is not 64 bit ready.
3357 # gas doesn't generate exception information.
3358 noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
3359 ;;
3360 alpha*-*-*vms*)
3361 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3362 ;;
3363 alpha*-*-linux*)
3364 # newlib is not 64 bit ready
3365 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3366 ;;
3367 alpha*-*-*)
3368 # newlib is not 64 bit ready
3369 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3370 ;;
3371 am33_2.0-*-linux*)
3372 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3373 ;;
3374 sh-*-linux*)
3375 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3376 ;;
3377 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3378 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3379 noconfigdirs="$noconfigdirs target-newlib"
3380 ;;
3381 arc-*-*)
3382 noconfigdirs="$noconfigdirs target-libgloss"
3383 ;;
3384 arm-*-coff)
3385 ;;
3386 arm-*-elf* | arm*-*-eabi* )
3387 ;;
3388 arm*-*-linux-gnueabi)
3389 case ${with_newlib} in
3390 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3391 esac
3392 ;;
3393 arm*-*-symbianelf*)
3394 ;;
3395 arm-*-pe*)
3396 noconfigdirs="$noconfigdirs target-libgloss"
3397 ;;
3398 arm-*-riscix*)
3399 noconfigdirs="$noconfigdirs ld target-libgloss"
3400 ;;
3401 avr-*-*)
3402 ;;
3403 bfin-*-*)
3404 ;;
3405 c4x-*-* | tic4x-*-*)
3406 noconfigdirs="$noconfigdirs target-libgloss"
3407 ;;
3408 tic54x-*-*)
3409 noconfigdirs="$noconfigdirs target-libgloss gdb"
3410 ;;
3411 cr16-*-*)
3412 noconfigdirs="$noconfigdirs gdb"
3413 ;;
3414 cris-*-* | crisv32-*-*)
3415 case "${target}" in
3416 *-*-linux*)
3417 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3418 esac
3419 ;;
3420 d10v-*-*)
3421 noconfigdirs="$noconfigdirs target-libgloss"
3422 ;;
3423 d30v-*-*)
3424 noconfigdirs="$noconfigdirs gdb"
3425 ;;
3426 fr30-*-elf*)
3427 noconfigdirs="$noconfigdirs gdb"
3428 ;;
3429 frv-*-*)
3430 ;;
3431 moxie-*-*)
3432 noconfigdirs="$noconfigdirs gprof"
3433 ;;
3434 h8300*-*-*)
3435 noconfigdirs="$noconfigdirs target-libgloss"
3436 ;;
3437 h8500-*-*)
3438 noconfigdirs="$noconfigdirs target-libgloss"
3439 ;;
3440 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3441 ;;
3442 hppa*64*-*-linux*)
3443 ;;
3444 hppa*-*-linux*)
3445 ;;
3446 hppa*-*-*elf* | \
3447 hppa*-*-lites* | \
3448 hppa*-*-openbsd* | \
3449 hppa*64*-*-*)
3450 ;;
3451 hppa*-hp-hpux11*)
3452 noconfigdirs="$noconfigdirs ld"
3453 ;;
3454 hppa*-*-pro*)
3455 ;;
3456 hppa*-*-*)
3457 noconfigdirs="$noconfigdirs ld"
3458 ;;
3459 i960-*-*)
3460 noconfigdirs="$noconfigdirs gdb"
3461 ;;
3462 ia64*-*-elf*)
3463 # No gdb support yet.
3464 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3465 ;;
3466 ia64*-**-hpux*)
3467 # No ld support yet.
3468 noconfigdirs="$noconfigdirs libgui itcl ld"
3469 ;;
3470 ia64*-*-*vms*)
3471 # No gdb or ld support yet.
3472 noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
3473 ;;
3474 i[3456789]86-*-coff | i[3456789]86-*-elf)
3475 ;;
3476 i[3456789]86-*-linux*)
3477 # This section makes it possible to build newlib natively on linux.
3478 # If we are using a cross compiler then don't configure newlib.
3479 if test x${is_cross_compiler} != xno ; then
3480 noconfigdirs="$noconfigdirs target-newlib"
3481 fi
3482 noconfigdirs="$noconfigdirs target-libgloss"
3483 # If we are not using a cross compiler, do configure newlib.
3484 # Note however, that newlib will only be configured in this situation
3485 # if the --with-newlib option has been given, because otherwise
3486 # 'target-newlib' will appear in skipdirs.
3487 ;;
3488 i[3456789]86-w64-mingw*)
3489 noconfigdirs="$noconfigdirs target-libgloss target-newlib"
3490 ;;
3491 i[3456789]86-*-mingw*)
3492 target_configdirs="$target_configdirs target-winsup"
3493 noconfigdirs="$noconfigdirs target-libgloss target-newlib"
3494 ;;
3495 x86_64-*-mingw*)
3496 noconfigdirs="$noconfigdirs target-libgloss target-newlib"
3497 ;;
3498 *-*-cygwin*)
3499 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3500 noconfigdirs="$noconfigdirs target-libgloss"
3501 # always build newlib if winsup directory is present.
3502 if test -d "$srcdir/winsup/cygwin"; then
3503 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3504 elif test -d "$srcdir/newlib"; then
3505 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3506 fi
3507 ;;
3508 i[3456789]86-*-interix* )
3509 ;;
3510 i[3456789]86-*-pe)
3511 noconfigdirs="$noconfigdirs target-libgloss"
3512 ;;
3513 i[3456789]86-*-sco3.2v5*)
3514 # The linker does not yet know about weak symbols in COFF,
3515 # and is not configured to handle mixed ELF and COFF.
3516 noconfigdirs="$noconfigdirs ld target-libgloss"
3517 ;;
3518 i[3456789]86-*-sco*)
3519 noconfigdirs="$noconfigdirs gprof target-libgloss"
3520 ;;
3521 i[3456789]86-*-solaris2*)
3522 noconfigdirs="$noconfigdirs target-libgloss"
3523 ;;
3524 i[3456789]86-*-sysv4*)
3525 noconfigdirs="$noconfigdirs target-libgloss"
3526 ;;
3527 i[3456789]86-*-beos*)
3528 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3529 ;;
3530 i[3456789]86-*-rdos*)
3531 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3532 ;;
3533 m32r-*-*)
3534 ;;
3535 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3536 ;;
3537 m68k-*-elf*)
3538 ;;
3539 m68*-*-* | fido-*-*)
3540 ;;
3541 mmix-*-*)
3542 noconfigdirs="$noconfigdirs gdb"
3543 ;;
3544 mt-*-*)
3545 noconfigdirs="$noconfigdirs sim"
3546 ;;
3547 powerpc-*-aix*)
3548 # copied from rs6000-*-* entry
3549 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib"
3550 ;;
3551 powerpc*-*-winnt* | powerpc*-*-pe*)
3552 target_configdirs="$target_configdirs target-winsup"
3553 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3554 # always build newlib.
3555 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3556 ;;
3557 # This is temporary until we can link against shared libraries
3558 powerpcle-*-solaris*)
3559 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3560 ;;
3561 powerpc-*-beos*)
3562 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3563 ;;
3564 powerpc-*-eabi)
3565 ;;
3566 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3567 ;;
3568 rs6000-*-lynxos*)
3569 noconfigdirs="$noconfigdirs target-newlib gprof"
3570 ;;
3571 rs6000-*-aix*)
3572 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib"
3573 ;;
3574 rs6000-*-*)
3575 noconfigdirs="$noconfigdirs gprof"
3576 ;;
3577 m68k-apollo-*)
3578 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3579 ;;
3580 microblaze*)
3581 noconfigdirs="$noconfigdirs gprof"
3582 ;;
3583 mips*-sde-elf*)
3584 if test x$with_newlib = xyes; then
3585 noconfigdirs="$noconfigdirs gprof"
3586 fi
3587 ;;
3588 mips*-*-irix5*)
3589 noconfigdirs="$noconfigdirs gprof target-libgloss"
3590 ;;
3591 mips*-*-irix6*)
3592 noconfigdirs="$noconfigdirs gprof target-libgloss"
3593 ;;
3594 mips*-*-bsd*)
3595 noconfigdirs="$noconfigdirs gprof target-libgloss"
3596 ;;
3597 mips*-*-linux*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3599 ;;
3600 mips*-*-*)
3601 noconfigdirs="$noconfigdirs gprof"
3602 ;;
3603 sh-*-* | sh64-*-*)
3604 case "${target}" in
3605 sh*-*-elf)
3606 ;;
3607 *)
3608 noconfigdirs="$noconfigdirs target-libgloss" ;;
3609 esac
3610 ;;
3611 sparclet-*-aout* | sparc86x-*-*)
3612 ;;
3613 sparc-*-elf*)
3614 ;;
3615 sparc64-*-elf*)
3616 ;;
3617 sparclite-*-*)
3618 ;;
3619 sparc-*-sunos4*)
3620 if test x${is_cross_compiler} != xno ; then
3621 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3622 else
3623 use_gnu_ld=no
3624 fi
3625 ;;
3626 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3627 ;;
3628 tic6x-*-*)
3629 noconfigdirs="$noconfigdirs gdb sim"
3630 ;;
3631 v810-*-*)
3632 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3633 ;;
3634 vax-*-*)
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 ;;
3637 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 ;;
3640 *-*-lynxos*)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 ;;
3643 *-*-*)
3644 ;;
3645 esac
3646
3647 # If we aren't building newlib, then don't build libgloss, since libgloss
3648 # depends upon some newlib header files.
3649 case "${noconfigdirs}" in
3650 *target-libgloss*) ;;
3651 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3652 esac
3653
3654 # Work in distributions that contain no compiler tools, like Autoconf.
3655 host_makefile_frag=/dev/null
3656 if test -d ${srcdir}/config ; then
3657 case "${host}" in
3658 i[3456789]86-*-msdosdjgpp*)
3659 host_makefile_frag="config/mh-djgpp"
3660 ;;
3661 *-cygwin*)
3662
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3664 $as_echo_n "checking to see if cat works as expected... " >&6; }
3665 echo a >cygwin-cat-check
3666 if test `cat cygwin-cat-check` = a ; then
3667 rm cygwin-cat-check
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3669 $as_echo "yes" >&6; }
3670 else
3671 rm cygwin-cat-check
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3674 as_fn_error "The cat command does not ignore carriage return characters.
3675 Please either mount the build directory in binary mode or run the following
3676 commands before running any configure script:
3677 set -o igncr
3678 export SHELLOPTS
3679 " "$LINENO" 5
3680 fi
3681
3682 host_makefile_frag="config/mh-cygwin"
3683 ;;
3684 *-mingw*)
3685 host_makefile_frag="config/mh-mingw"
3686 ;;
3687 *-interix*)
3688 host_makefile_frag="config/mh-interix"
3689 ;;
3690 hppa*-hp-hpux10*)
3691 host_makefile_frag="config/mh-pa-hpux10"
3692 ;;
3693 hppa*-hp-hpux*)
3694 host_makefile_frag="config/mh-pa"
3695 ;;
3696 hppa*-*)
3697 host_makefile_frag="config/mh-pa"
3698 ;;
3699 *-*-darwin*)
3700 host_makefile_frag="config/mh-darwin"
3701 ;;
3702 powerpc-*-aix*)
3703 host_makefile_frag="config/mh-ppc-aix"
3704 ;;
3705 rs6000-*-aix*)
3706 host_makefile_frag="config/mh-ppc-aix"
3707 ;;
3708 esac
3709 fi
3710
3711 if test "${build}" != "${host}" ; then
3712 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3713 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3714 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3715 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3716 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3717 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3718 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3719 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3720 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3721 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3722 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3723 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3724 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3725 else
3726 AR_FOR_BUILD="\$(AR)"
3727 AS_FOR_BUILD="\$(AS)"
3728 CC_FOR_BUILD="\$(CC)"
3729 CXX_FOR_BUILD="\$(CXX)"
3730 GCJ_FOR_BUILD="\$(GCJ)"
3731 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3732 GOC_FOR_BUILD="\$(GOC)"
3733 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3734 LD_FOR_BUILD="\$(LD)"
3735 NM_FOR_BUILD="\$(NM)"
3736 RANLIB_FOR_BUILD="\$(RANLIB)"
3737 WINDRES_FOR_BUILD="\$(WINDRES)"
3738 WINDMC_FOR_BUILD="\$(WINDMC)"
3739 fi
3740
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_CC+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 if test -n "$CC"; then
3755 ac_cv_prog_CC="$CC" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3767 fi
3768 done
3769 done
3770 IFS=$as_save_IFS
3771
3772 fi
3773 fi
3774 CC=$ac_cv_prog_CC
3775 if test -n "$CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777 $as_echo "$CC" >&6; }
3778 else
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3781 fi
3782
3783
3784 fi
3785 if test -z "$ac_cv_prog_CC"; then
3786 ac_ct_CC=$CC
3787 # Extract the first word of "gcc", so it can be a program name with args.
3788 set dummy gcc; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_ac_ct_CC="gcc"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808 done
3809 done
3810 IFS=$as_save_IFS
3811
3812 fi
3813 fi
3814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3821 fi
3822
3823 if test "x$ac_ct_CC" = x; then
3824 CC=""
3825 else
3826 case $cross_compiling:$ac_tool_warned in
3827 yes:)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830 ac_tool_warned=yes ;;
3831 esac
3832 CC=$ac_ct_CC
3833 fi
3834 else
3835 CC="$ac_cv_prog_CC"
3836 fi
3837
3838 if test -z "$CC"; then
3839 if test -n "$ac_tool_prefix"; then
3840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3841 set dummy ${ac_tool_prefix}cc; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if test "${ac_cv_prog_CC+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC="$CC" # Let the user override the test.
3849 else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3852 do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857 ac_cv_prog_CC="${ac_tool_prefix}cc"
3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 break 2
3860 fi
3861 done
3862 done
3863 IFS=$as_save_IFS
3864
3865 fi
3866 fi
3867 CC=$ac_cv_prog_CC
3868 if test -n "$CC"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870 $as_echo "$CC" >&6; }
3871 else
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3874 fi
3875
3876
3877 fi
3878 fi
3879 if test -z "$CC"; then
3880 # Extract the first word of "cc", so it can be a program name with args.
3881 set dummy cc; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_CC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 if test -n "$CC"; then
3888 ac_cv_prog_CC="$CC" # Let the user override the test.
3889 else
3890 ac_prog_rejected=no
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3899 ac_prog_rejected=yes
3900 continue
3901 fi
3902 ac_cv_prog_CC="cc"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906 done
3907 done
3908 IFS=$as_save_IFS
3909
3910 if test $ac_prog_rejected = yes; then
3911 # We found a bogon in the path, so make sure we never use it.
3912 set dummy $ac_cv_prog_CC
3913 shift
3914 if test $# != 0; then
3915 # We chose a different compiler from the bogus one.
3916 # However, it has the same basename, so the bogon will be chosen
3917 # first if we set CC to just the basename; use the full file name.
3918 shift
3919 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3920 fi
3921 fi
3922 fi
3923 fi
3924 CC=$ac_cv_prog_CC
3925 if test -n "$CC"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3927 $as_echo "$CC" >&6; }
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3931 fi
3932
3933
3934 fi
3935 if test -z "$CC"; then
3936 if test -n "$ac_tool_prefix"; then
3937 for ac_prog in cl.exe
3938 do
3939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if test "${ac_cv_prog_CC+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 if test -n "$CC"; then
3947 ac_cv_prog_CC="$CC" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3959 fi
3960 done
3961 done
3962 IFS=$as_save_IFS
3963
3964 fi
3965 fi
3966 CC=$ac_cv_prog_CC
3967 if test -n "$CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969 $as_echo "$CC" >&6; }
3970 else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3973 fi
3974
3975
3976 test -n "$CC" && break
3977 done
3978 fi
3979 if test -z "$CC"; then
3980 ac_ct_CC=$CC
3981 for ac_prog in cl.exe
3982 do
3983 # Extract the first word of "$ac_prog", so it can be a program name with args.
3984 set dummy $ac_prog; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if test -n "$ac_ct_CC"; then
3991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_ac_ct_CC="$ac_prog"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006 IFS=$as_save_IFS
4007
4008 fi
4009 fi
4010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4011 if test -n "$ac_ct_CC"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4013 $as_echo "$ac_ct_CC" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4017 fi
4018
4019
4020 test -n "$ac_ct_CC" && break
4021 done
4022
4023 if test "x$ac_ct_CC" = x; then
4024 CC=""
4025 else
4026 case $cross_compiling:$ac_tool_warned in
4027 yes:)
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4030 ac_tool_warned=yes ;;
4031 esac
4032 CC=$ac_ct_CC
4033 fi
4034 fi
4035
4036 fi
4037
4038
4039 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "no acceptable C compiler found in \$PATH
4042 See \`config.log' for more details." "$LINENO" 5; }
4043
4044 # Provide some information about the compiler.
4045 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4046 set X $ac_compile
4047 ac_compiler=$2
4048 for ac_option in --version -v -V -qversion; do
4049 { { ac_try="$ac_compiler $ac_option >&5"
4050 case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053 esac
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4057 ac_status=$?
4058 if test -s conftest.err; then
4059 sed '10a\
4060 ... rest of stderr output deleted ...
4061 10q' conftest.err >conftest.er1
4062 cat conftest.er1 >&5
4063 rm -f conftest.er1 conftest.err
4064 fi
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067 done
4068
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071
4072 int
4073 main ()
4074 {
4075
4076 ;
4077 return 0;
4078 }
4079 _ACEOF
4080 ac_clean_files_save=$ac_clean_files
4081 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4082 # Try to create an executable without -o first, disregard a.out.
4083 # It will help us diagnose broken compilers, and finding out an intuition
4084 # of exeext.
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4086 $as_echo_n "checking for C compiler default output file name... " >&6; }
4087 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4088
4089 # The possible output files:
4090 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4091
4092 ac_rmfiles=
4093 for ac_file in $ac_files
4094 do
4095 case $ac_file in
4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4097 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4098 esac
4099 done
4100 rm -f $ac_rmfiles
4101
4102 if { { ac_try="$ac_link_default"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108 $as_echo "$ac_try_echo"; } >&5
4109 (eval "$ac_link_default") 2>&5
4110 ac_status=$?
4111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }; then :
4113 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4114 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4115 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4116 # so that the user can short-circuit this test for compilers unknown to
4117 # Autoconf.
4118 for ac_file in $ac_files ''
4119 do
4120 test -f "$ac_file" || continue
4121 case $ac_file in
4122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4123 ;;
4124 [ab].out )
4125 # We found the default executable, but exeext='' is most
4126 # certainly right.
4127 break;;
4128 *.* )
4129 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4130 then :; else
4131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4132 fi
4133 # We set ac_cv_exeext here because the later test for it is not
4134 # safe: cross compilers may not add the suffix if given an `-o'
4135 # argument, so we may need to know it at that point already.
4136 # Even if this section looks crufty: it has the advantage of
4137 # actually working.
4138 break;;
4139 * )
4140 break;;
4141 esac
4142 done
4143 test "$ac_cv_exeext" = no && ac_cv_exeext=
4144
4145 else
4146 ac_file=''
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4149 $as_echo "$ac_file" >&6; }
4150 if test -z "$ac_file"; then :
4151 $as_echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4156 { as_fn_set_status 77
4157 as_fn_error "C compiler cannot create executables
4158 See \`config.log' for more details." "$LINENO" 5; }; }
4159 fi
4160 ac_exeext=$ac_cv_exeext
4161
4162 # Check that the compiler produces executables we can run. If not, either
4163 # the compiler is broken, or we cross compile.
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4165 $as_echo_n "checking whether the C compiler works... " >&6; }
4166 # If not cross compiling, check that we can run a simple program.
4167 if test "$cross_compiling" != yes; then
4168 if { ac_try='./$ac_file'
4169 { { case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174 $as_echo "$ac_try_echo"; } >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; }; then
4179 cross_compiling=no
4180 else
4181 if test "$cross_compiling" = maybe; then
4182 cross_compiling=yes
4183 else
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error "cannot run C compiled programs.
4187 If you meant to cross compile, use \`--host'.
4188 See \`config.log' for more details." "$LINENO" 5; }
4189 fi
4190 fi
4191 fi
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4193 $as_echo "yes" >&6; }
4194
4195 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4196 ac_clean_files=$ac_clean_files_save
4197 # Check that the compiler produces executables we can run. If not, either
4198 # the compiler is broken, or we cross compile.
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4200 $as_echo_n "checking whether we are cross compiling... " >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4202 $as_echo "$cross_compiling" >&6; }
4203
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4205 $as_echo_n "checking for suffix of executables... " >&6; }
4206 if { { ac_try="$ac_link"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_link") 2>&5
4214 ac_status=$?
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }; then :
4217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4219 # work properly (i.e., refer to `conftest.exe'), while it won't with
4220 # `rm'.
4221 for ac_file in conftest.exe conftest conftest.*; do
4222 test -f "$ac_file" || continue
4223 case $ac_file in
4224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4226 break;;
4227 * ) break;;
4228 esac
4229 done
4230 else
4231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4233 as_fn_error "cannot compute suffix of executables: cannot compile and link
4234 See \`config.log' for more details." "$LINENO" 5; }
4235 fi
4236 rm -f conftest$ac_cv_exeext
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4238 $as_echo "$ac_cv_exeext" >&6; }
4239
4240 rm -f conftest.$ac_ext
4241 EXEEXT=$ac_cv_exeext
4242 ac_exeext=$EXEEXT
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4244 $as_echo_n "checking for suffix of object files... " >&6; }
4245 if test "${ac_cv_objext+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250
4251 int
4252 main ()
4253 {
4254
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 rm -f conftest.o conftest.obj
4260 if { { ac_try="$ac_compile"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4266 $as_echo "$ac_try_echo"; } >&5
4267 (eval "$ac_compile") 2>&5
4268 ac_status=$?
4269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270 test $ac_status = 0; }; then :
4271 for ac_file in conftest.o conftest.obj conftest.*; do
4272 test -f "$ac_file" || continue;
4273 case $ac_file in
4274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4276 break;;
4277 esac
4278 done
4279 else
4280 $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error "cannot compute suffix of object files: cannot compile
4286 See \`config.log' for more details." "$LINENO" 5; }
4287 fi
4288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4291 $as_echo "$ac_cv_objext" >&6; }
4292 OBJEXT=$ac_cv_objext
4293 ac_objext=$OBJEXT
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4295 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4296 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301
4302 int
4303 main ()
4304 {
4305 #ifndef __GNUC__
4306 choke me
4307 #endif
4308
4309 ;
4310 return 0;
4311 }
4312 _ACEOF
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314 ac_compiler_gnu=yes
4315 else
4316 ac_compiler_gnu=no
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4320
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4323 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4324 if test $ac_compiler_gnu = yes; then
4325 GCC=yes
4326 else
4327 GCC=
4328 fi
4329 ac_test_CFLAGS=${CFLAGS+set}
4330 ac_save_CFLAGS=$CFLAGS
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4332 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4333 if test "${ac_cv_prog_cc_g+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 ac_save_c_werror_flag=$ac_c_werror_flag
4337 ac_c_werror_flag=yes
4338 ac_cv_prog_cc_g=no
4339 CFLAGS="-g"
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342
4343 int
4344 main ()
4345 {
4346
4347 ;
4348 return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_cv_prog_cc_g=yes
4353 else
4354 CFLAGS=""
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357
4358 int
4359 main ()
4360 {
4361
4362 ;
4363 return 0;
4364 }
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"; then :
4367
4368 else
4369 ac_c_werror_flag=$ac_save_c_werror_flag
4370 CFLAGS="-g"
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373
4374 int
4375 main ()
4376 {
4377
4378 ;
4379 return 0;
4380 }
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_g=yes
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 fi
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 ac_c_werror_flag=$ac_save_c_werror_flag
4391 fi
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4393 $as_echo "$ac_cv_prog_cc_g" >&6; }
4394 if test "$ac_test_CFLAGS" = set; then
4395 CFLAGS=$ac_save_CFLAGS
4396 elif test $ac_cv_prog_cc_g = yes; then
4397 if test "$GCC" = yes; then
4398 CFLAGS="-g -O2"
4399 else
4400 CFLAGS="-g"
4401 fi
4402 else
4403 if test "$GCC" = yes; then
4404 CFLAGS="-O2"
4405 else
4406 CFLAGS=
4407 fi
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4410 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4411 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 ac_cv_prog_cc_c89=no
4415 ac_save_CC=$CC
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #include <stdarg.h>
4419 #include <stdio.h>
4420 #include <sys/types.h>
4421 #include <sys/stat.h>
4422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4423 struct buf { int x; };
4424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4425 static char *e (p, i)
4426 char **p;
4427 int i;
4428 {
4429 return p[i];
4430 }
4431 static char *f (char * (*g) (char **, int), char **p, ...)
4432 {
4433 char *s;
4434 va_list v;
4435 va_start (v,p);
4436 s = g (p, va_arg (v,int));
4437 va_end (v);
4438 return s;
4439 }
4440
4441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4442 function prototypes and stuff, but not '\xHH' hex character constants.
4443 These don't provoke an error unfortunately, instead are silently treated
4444 as 'x'. The following induces an error, until -std is added to get
4445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4446 array size at least. It's necessary to write '\x00'==0 to get something
4447 that's true only with -std. */
4448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4449
4450 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4451 inside strings and character constants. */
4452 #define FOO(x) 'x'
4453 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4454
4455 int test (int i, double x);
4456 struct s1 {int (*f) (int a);};
4457 struct s2 {int (*f) (double a);};
4458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4459 int argc;
4460 char **argv;
4461 int
4462 main ()
4463 {
4464 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4465 ;
4466 return 0;
4467 }
4468 _ACEOF
4469 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4470 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4471 do
4472 CC="$ac_save_CC $ac_arg"
4473 if ac_fn_c_try_compile "$LINENO"; then :
4474 ac_cv_prog_cc_c89=$ac_arg
4475 fi
4476 rm -f core conftest.err conftest.$ac_objext
4477 test "x$ac_cv_prog_cc_c89" != "xno" && break
4478 done
4479 rm -f conftest.$ac_ext
4480 CC=$ac_save_CC
4481
4482 fi
4483 # AC_CACHE_VAL
4484 case "x$ac_cv_prog_cc_c89" in
4485 x)
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4487 $as_echo "none needed" >&6; } ;;
4488 xno)
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4490 $as_echo "unsupported" >&6; } ;;
4491 *)
4492 CC="$CC $ac_cv_prog_cc_c89"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4494 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4495 esac
4496 if test "x$ac_cv_prog_cc_c89" != xno; then :
4497
4498 fi
4499
4500 ac_ext=c
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505
4506 ac_ext=cpp
4507 ac_cpp='$CXXCPP $CPPFLAGS'
4508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4511 if test -z "$CXX"; then
4512 if test -n "$CCC"; then
4513 CXX=$CCC
4514 else
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4517 do
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_CXX+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -n "$CXX"; then
4526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4538 fi
4539 done
4540 done
4541 IFS=$as_save_IFS
4542
4543 fi
4544 fi
4545 CXX=$ac_cv_prog_CXX
4546 if test -n "$CXX"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4548 $as_echo "$CXX" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4552 fi
4553
4554
4555 test -n "$CXX" && break
4556 done
4557 fi
4558 if test -z "$CXX"; then
4559 ac_ct_CXX=$CXX
4560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4561 do
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy $ac_prog; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if test -n "$ac_ct_CXX"; then
4570 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CXX="$ac_prog"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4590 if test -n "$ac_ct_CXX"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4592 $as_echo "$ac_ct_CXX" >&6; }
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4596 fi
4597
4598
4599 test -n "$ac_ct_CXX" && break
4600 done
4601
4602 if test "x$ac_ct_CXX" = x; then
4603 CXX="g++"
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606 yes:)
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4610 esac
4611 CXX=$ac_ct_CXX
4612 fi
4613 fi
4614
4615 fi
4616 fi
4617 # Provide some information about the compiler.
4618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4619 set X $ac_compile
4620 ac_compiler=$2
4621 for ac_option in --version -v -V -qversion; do
4622 { { ac_try="$ac_compiler $ac_option >&5"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4630 ac_status=$?
4631 if test -s conftest.err; then
4632 sed '10a\
4633 ... rest of stderr output deleted ...
4634 10q' conftest.err >conftest.er1
4635 cat conftest.er1 >&5
4636 rm -f conftest.er1 conftest.err
4637 fi
4638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4639 test $ac_status = 0; }
4640 done
4641
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4643 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649
4650 int
4651 main ()
4652 {
4653 #ifndef __GNUC__
4654 choke me
4655 #endif
4656
4657 ;
4658 return 0;
4659 }
4660 _ACEOF
4661 if ac_fn_cxx_try_compile "$LINENO"; then :
4662 ac_compiler_gnu=yes
4663 else
4664 ac_compiler_gnu=no
4665 fi
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4668
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4671 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4672 if test $ac_compiler_gnu = yes; then
4673 GXX=yes
4674 else
4675 GXX=
4676 fi
4677 ac_test_CXXFLAGS=${CXXFLAGS+set}
4678 ac_save_CXXFLAGS=$CXXFLAGS
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4680 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4681 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4685 ac_cxx_werror_flag=yes
4686 ac_cv_prog_cxx_g=no
4687 CXXFLAGS="-g"
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690
4691 int
4692 main ()
4693 {
4694
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 if ac_fn_cxx_try_compile "$LINENO"; then :
4700 ac_cv_prog_cxx_g=yes
4701 else
4702 CXXFLAGS=""
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4705
4706 int
4707 main ()
4708 {
4709
4710 ;
4711 return 0;
4712 }
4713 _ACEOF
4714 if ac_fn_cxx_try_compile "$LINENO"; then :
4715
4716 else
4717 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4718 CXXFLAGS="-g"
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721
4722 int
4723 main ()
4724 {
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_cxx_try_compile "$LINENO"; then :
4731 ac_cv_prog_cxx_g=yes
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4741 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4742 if test "$ac_test_CXXFLAGS" = set; then
4743 CXXFLAGS=$ac_save_CXXFLAGS
4744 elif test $ac_cv_prog_cxx_g = yes; then
4745 if test "$GXX" = yes; then
4746 CXXFLAGS="-g -O2"
4747 else
4748 CXXFLAGS="-g"
4749 fi
4750 else
4751 if test "$GXX" = yes; then
4752 CXXFLAGS="-O2"
4753 else
4754 CXXFLAGS=
4755 fi
4756 fi
4757 ac_ext=c
4758 ac_cpp='$CPP $CPPFLAGS'
4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762
4763
4764 # We must set the default linker to the linker used by gcc for the correct
4765 # operation of libtool. If LD is not defined and we are using gcc, try to
4766 # set the LD default to the ld used by gcc.
4767 if test -z "$LD"; then
4768 if test "$GCC" = yes; then
4769 case $build in
4770 *-*-mingw*)
4771 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4772 *)
4773 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4774 esac
4775 case $gcc_prog_ld in
4776 # Accept absolute paths.
4777 [\\/]* | [A-Za-z]:[\\/]*)
4778 LD="$gcc_prog_ld" ;;
4779 esac
4780 fi
4781 fi
4782
4783
4784
4785
4786 if test -n "$ac_tool_prefix"; then
4787 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4788 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$GNATBIND"; then
4795 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4807 fi
4808 done
4809 done
4810 IFS=$as_save_IFS
4811
4812 fi
4813 fi
4814 GNATBIND=$ac_cv_prog_GNATBIND
4815 if test -n "$GNATBIND"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4817 $as_echo "$GNATBIND" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4821 fi
4822
4823
4824 fi
4825 if test -z "$ac_cv_prog_GNATBIND"; then
4826 ac_ct_GNATBIND=$GNATBIND
4827 # Extract the first word of "gnatbind", so it can be a program name with args.
4828 set dummy gnatbind; ac_word=$2
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 if test -n "$ac_ct_GNATBIND"; then
4835 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4847 fi
4848 done
4849 done
4850 IFS=$as_save_IFS
4851
4852 fi
4853 fi
4854 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4855 if test -n "$ac_ct_GNATBIND"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4857 $as_echo "$ac_ct_GNATBIND" >&6; }
4858 else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4861 fi
4862
4863 if test "x$ac_ct_GNATBIND" = x; then
4864 GNATBIND="no"
4865 else
4866 case $cross_compiling:$ac_tool_warned in
4867 yes:)
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4870 ac_tool_warned=yes ;;
4871 esac
4872 GNATBIND=$ac_ct_GNATBIND
4873 fi
4874 else
4875 GNATBIND="$ac_cv_prog_GNATBIND"
4876 fi
4877
4878 if test -n "$ac_tool_prefix"; then
4879 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4880 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test -n "$GNATMAKE"; then
4887 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4891 do
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4899 fi
4900 done
4901 done
4902 IFS=$as_save_IFS
4903
4904 fi
4905 fi
4906 GNATMAKE=$ac_cv_prog_GNATMAKE
4907 if test -n "$GNATMAKE"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4909 $as_echo "$GNATMAKE" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4913 fi
4914
4915
4916 fi
4917 if test -z "$ac_cv_prog_GNATMAKE"; then
4918 ac_ct_GNATMAKE=$GNATMAKE
4919 # Extract the first word of "gnatmake", so it can be a program name with args.
4920 set dummy gnatmake; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -n "$ac_ct_GNATMAKE"; then
4927 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4939 fi
4940 done
4941 done
4942 IFS=$as_save_IFS
4943
4944 fi
4945 fi
4946 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4947 if test -n "$ac_ct_GNATMAKE"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4949 $as_echo "$ac_ct_GNATMAKE" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4953 fi
4954
4955 if test "x$ac_ct_GNATMAKE" = x; then
4956 GNATMAKE="no"
4957 else
4958 case $cross_compiling:$ac_tool_warned in
4959 yes:)
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962 ac_tool_warned=yes ;;
4963 esac
4964 GNATMAKE=$ac_ct_GNATMAKE
4965 fi
4966 else
4967 GNATMAKE="$ac_cv_prog_GNATMAKE"
4968 fi
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4971 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4972 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 cat >conftest.adb <<EOF
4976 procedure conftest is begin null; end conftest;
4977 EOF
4978 acx_cv_cc_gcc_supports_ada=no
4979 # There is a bug in old released versions of GCC which causes the
4980 # driver to exit successfully when the appropriate language module
4981 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4982 # Therefore we must check for the error message as well as an
4983 # unsuccessful exit.
4984 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4985 # given a .adb file, but produce no object file. So we must check
4986 # if an object file was really produced to guard against this.
4987 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4988 if test x"$errors" = x && test -f conftest.$ac_objext; then
4989 acx_cv_cc_gcc_supports_ada=yes
4990 fi
4991 rm -f conftest.*
4992 fi
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4994 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4995
4996 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4997 have_gnat=yes
4998 else
4999 have_gnat=no
5000 fi
5001
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5003 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5004 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 echo abfoo >t1
5008 echo cdfoo >t2
5009 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5010 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5011 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5012 :
5013 else
5014 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5015 fi
5016 fi
5017 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5018 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5019 :
5020 else
5021 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5022 fi
5023 fi
5024 rm t1 t2
5025
5026 fi
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5028 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5029 do_compare="$gcc_cv_prog_cmp_skip"
5030
5031
5032
5033 # See if we are building gcc with C++.
5034 # Check whether --enable-build-with-cxx was given.
5035 if test "${enable_build_with_cxx+set}" = set; then :
5036 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5037 else
5038 ENABLE_BUILD_WITH_CXX=no
5039 fi
5040
5041
5042 # Used for setting $lt_cv_objdir
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5044 $as_echo_n "checking for objdir... " >&6; }
5045 if test "${lt_cv_objdir+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 rm -f .libs 2>/dev/null
5049 mkdir .libs 2>/dev/null
5050 if test -d .libs; then
5051 lt_cv_objdir=.libs
5052 else
5053 # MS-DOS does not allow filenames that begin with a dot.
5054 lt_cv_objdir=_libs
5055 fi
5056 rmdir .libs 2>/dev/null
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5059 $as_echo "$lt_cv_objdir" >&6; }
5060 objdir=$lt_cv_objdir
5061
5062
5063
5064
5065
5066 cat >>confdefs.h <<_ACEOF
5067 #define LT_OBJDIR "$lt_cv_objdir/"
5068 _ACEOF
5069
5070
5071
5072 # Check for GMP, MPFR and MPC
5073 gmplibs="-lmpc -lmpfr -lgmp"
5074 gmpinc=
5075 have_gmp=no
5076
5077 # Specify a location for mpc
5078 # check for this first so it ends up on the link line before mpfr.
5079
5080 # Check whether --with-mpc was given.
5081 if test "${with_mpc+set}" = set; then :
5082 withval=$with_mpc;
5083 fi
5084
5085
5086 # Check whether --with-mpc-include was given.
5087 if test "${with_mpc_include+set}" = set; then :
5088 withval=$with_mpc_include;
5089 fi
5090
5091
5092 # Check whether --with-mpc-lib was given.
5093 if test "${with_mpc_lib+set}" = set; then :
5094 withval=$with_mpc_lib;
5095 fi
5096
5097
5098 if test "x$with_mpc" != x; then
5099 gmplibs="-L$with_mpc/lib $gmplibs"
5100 gmpinc="-I$with_mpc/include $gmpinc"
5101 fi
5102 if test "x$with_mpc_include" != x; then
5103 gmpinc="-I$with_mpc_include $gmpinc"
5104 fi
5105 if test "x$with_mpc_lib" != x; then
5106 gmplibs="-L$with_mpc_lib $gmplibs"
5107 fi
5108 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5109 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5110 gmpinc='-I$$s/mpc/src '"$gmpinc"
5111 # Do not test the mpc version. Assume that it is sufficient, since
5112 # it is in the source tree, and the library has not been built yet
5113 # but it would be included on the link line in the version check below
5114 # hence making the test fail.
5115 have_gmp=yes
5116 fi
5117
5118 # Specify a location for mpfr
5119 # check for this first so it ends up on the link line before gmp.
5120
5121 # Check whether --with-mpfr-dir was given.
5122 if test "${with_mpfr_dir+set}" = set; then :
5123 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5124 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5125 fi
5126
5127
5128
5129 # Check whether --with-mpfr was given.
5130 if test "${with_mpfr+set}" = set; then :
5131 withval=$with_mpfr;
5132 fi
5133
5134
5135 # Check whether --with-mpfr-include was given.
5136 if test "${with_mpfr_include+set}" = set; then :
5137 withval=$with_mpfr_include;
5138 fi
5139
5140
5141 # Check whether --with-mpfr-lib was given.
5142 if test "${with_mpfr_lib+set}" = set; then :
5143 withval=$with_mpfr_lib;
5144 fi
5145
5146
5147 if test "x$with_mpfr" != x; then
5148 gmplibs="-L$with_mpfr/lib $gmplibs"
5149 gmpinc="-I$with_mpfr/include $gmpinc"
5150 fi
5151 if test "x$with_mpfr_include" != x; then
5152 gmpinc="-I$with_mpfr_include $gmpinc"
5153 fi
5154 if test "x$with_mpfr_lib" != x; then
5155 gmplibs="-L$with_mpfr_lib $gmplibs"
5156 fi
5157 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5158 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5159 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5160 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5161 # Do not test the mpfr 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 # Specify a location for gmp
5169
5170 # Check whether --with-gmp-dir was given.
5171 if test "${with_gmp_dir+set}" = set; then :
5172 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5173 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5174 fi
5175
5176
5177
5178 # Check whether --with-gmp was given.
5179 if test "${with_gmp+set}" = set; then :
5180 withval=$with_gmp;
5181 fi
5182
5183
5184 # Check whether --with-gmp-include was given.
5185 if test "${with_gmp_include+set}" = set; then :
5186 withval=$with_gmp_include;
5187 fi
5188
5189
5190 # Check whether --with-gmp-lib was given.
5191 if test "${with_gmp_lib+set}" = set; then :
5192 withval=$with_gmp_lib;
5193 fi
5194
5195
5196
5197 if test "x$with_gmp" != x; then
5198 gmplibs="-L$with_gmp/lib $gmplibs"
5199 gmpinc="-I$with_gmp/include $gmpinc"
5200 fi
5201 if test "x$with_gmp_include" != x; then
5202 gmpinc="-I$with_gmp_include $gmpinc"
5203 fi
5204 if test "x$with_gmp_lib" != x; then
5205 gmplibs="-L$with_gmp_lib $gmplibs"
5206 fi
5207 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5208 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5209 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5210 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5211 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5212 # Do not test the gmp version. Assume that it is sufficient, since
5213 # it is in the source tree, and the library has not been built yet
5214 # but it would be included on the link line in the version check below
5215 # hence making the test fail.
5216 have_gmp=yes
5217 fi
5218
5219 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5220 have_gmp=yes
5221 saved_CFLAGS="$CFLAGS"
5222 CFLAGS="$CFLAGS $gmpinc"
5223 # Check for the recommended and required versions of GMP.
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5225 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5226
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 #include "gmp.h"
5230 int
5231 main ()
5232 {
5233
5234 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5235 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5236 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5237 choke me
5238 #endif
5239
5240 ;
5241 return 0;
5242 }
5243 _ACEOF
5244 if ac_fn_c_try_compile "$LINENO"; then :
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 #include <gmp.h>
5248 int
5249 main ()
5250 {
5251
5252 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5253 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5254 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5255 choke me
5256 #endif
5257
5258 ;
5259 return 0;
5260 }
5261 _ACEOF
5262 if ac_fn_c_try_compile "$LINENO"; then :
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5264 $as_echo "yes" >&6; }
5265 else
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5267 $as_echo "buggy but acceptable" >&6; }
5268 fi
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }; have_gmp=no
5273 fi
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275
5276 # If we have GMP, check the MPFR version.
5277 if test x"$have_gmp" = xyes; then
5278 # Check for the recommended and required versions of MPFR.
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5280 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5283 #include <gmp.h>
5284 #include <mpfr.h>
5285 int
5286 main ()
5287 {
5288
5289 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5290 choke me
5291 #endif
5292
5293 ;
5294 return 0;
5295 }
5296 _ACEOF
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 #include <gmp.h>
5301 #include <mpfr.h>
5302 int
5303 main ()
5304 {
5305
5306 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5307 choke me
5308 #endif
5309
5310 ;
5311 return 0;
5312 }
5313 _ACEOF
5314 if ac_fn_c_try_compile "$LINENO"; then :
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5316 $as_echo "yes" >&6; }
5317 else
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5319 $as_echo "buggy but acceptable" >&6; }
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }; have_gmp=no
5325 fi
5326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327 fi
5328
5329 # Check for the MPC header version.
5330 if test x"$have_gmp" = xyes ; then
5331 # Check for the recommended and required versions of MPC.
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5333 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 #include <mpc.h>
5337 int
5338 main ()
5339 {
5340
5341 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5342 choke me
5343 #endif
5344
5345 ;
5346 return 0;
5347 }
5348 _ACEOF
5349 if ac_fn_c_try_compile "$LINENO"; then :
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #include <mpc.h>
5353 int
5354 main ()
5355 {
5356
5357 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5358 choke me
5359 #endif
5360
5361 ;
5362 return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5367 $as_echo "yes" >&6; }
5368 else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5370 $as_echo "buggy but acceptable" >&6; }
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }; have_gmp=no
5376 fi
5377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378 fi
5379
5380 # Now check the MPFR library.
5381 if test x"$have_gmp" = xyes; then
5382 saved_LIBS="$LIBS"
5383 LIBS="$LIBS $gmplibs"
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5385 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #include <mpc.h>
5389 int
5390 main ()
5391 {
5392
5393 mpfr_t n;
5394 mpfr_t x;
5395 mpc_t c;
5396 int t;
5397 mpfr_init (n);
5398 mpfr_init (x);
5399 mpfr_atan2 (n, n, x, GMP_RNDN);
5400 mpfr_erfc (n, x, GMP_RNDN);
5401 mpfr_subnormalize (x, t, GMP_RNDN);
5402 mpfr_clear(n);
5403 mpfr_clear(x);
5404 mpc_init2 (c, 53);
5405 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5406 mpc_cosh (c, c, MPC_RNDNN);
5407 mpc_pow (c, c, c, MPC_RNDNN);
5408 mpc_acosh (c, c, MPC_RNDNN);
5409 mpc_clear (c);
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 if ac_fn_c_try_link "$LINENO"; then :
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5417 $as_echo "yes" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }; have_gmp=no
5421 fi
5422 rm -f core conftest.err conftest.$ac_objext \
5423 conftest$ac_exeext conftest.$ac_ext
5424 LIBS="$saved_LIBS"
5425 fi
5426
5427 CFLAGS="$saved_CFLAGS"
5428
5429 # The library versions listed in the error message below should match
5430 # the HARD-minimums enforced above.
5431 if test x$have_gmp != xyes; then
5432 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5433 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5434 their locations. Source code for these libraries can be found at
5435 their respective hosting sites as well as at
5436 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5437 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5438 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5439 make sure that you have installed both the libraries and the header
5440 files. They may be located in separate packages." "$LINENO" 5
5441 fi
5442 fi
5443
5444 # Flags needed for both GMP, MPFR and/or MPC.
5445
5446
5447
5448
5449
5450
5451 # Allow host libstdc++ to be specified for static linking with PPL.
5452
5453 # Check whether --with-host-libstdcxx was given.
5454 if test "${with_host_libstdcxx+set}" = set; then :
5455 withval=$with_host_libstdcxx;
5456 fi
5457
5458
5459 case $with_host_libstdcxx in
5460 no|yes)
5461 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5462 ;;
5463 esac
5464
5465 # Linker flags to use for stage1 or when not boostrapping.
5466
5467 # Check whether --with-stage1-ldflags was given.
5468 if test "${with_stage1_ldflags+set}" = set; then :
5469 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5470 stage1_ldflags=
5471 else
5472 stage1_ldflags=$withval
5473 fi
5474 else
5475 stage1_ldflags=
5476 fi
5477
5478
5479
5480 # Libraries to use for stage1 or when not bootstrapping.
5481
5482 # Check whether --with-stage1-libs was given.
5483 if test "${with_stage1_libs+set}" = set; then :
5484 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5485 stage1_libs=
5486 else
5487 stage1_libs=$withval
5488 fi
5489 else
5490 stage1_libs=$with_host_libstdcxx
5491 fi
5492
5493
5494
5495 # Libraries to use for stage2 and later builds. This defaults to the
5496 # argument passed to --with-host-libstdcxx.
5497
5498 # Check whether --with-boot-libs was given.
5499 if test "${with_boot_libs+set}" = set; then :
5500 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5501 poststage1_libs=
5502 else
5503 poststage1_libs=$withval
5504 fi
5505 else
5506 poststage1_libs=$with_host_libstdcxx
5507 fi
5508
5509
5510
5511 # Linker flags to use for stage2 and later builds.
5512
5513 # Check whether --with-boot-ldflags was given.
5514 if test "${with_boot_ldflags+set}" = set; then :
5515 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5516 poststage1_ldflags=
5517 else
5518 poststage1_ldflags=$withval
5519 fi
5520 else
5521 poststage1_ldflags=
5522 # In stages 2 and 3, default to linking libstdc++ and libgcc
5523 # statically. But if the user explicitly specified the libraries to
5524 # use, trust that they are doing what they want.
5525 if test "$poststage1_libs" = ""; then
5526 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5527 fi
5528 fi
5529
5530
5531
5532 # Check for PPL
5533 ppllibs=
5534 pplinc=
5535 pwllib=
5536
5537
5538 # Check whether --with-ppl was given.
5539 if test "${with_ppl+set}" = set; then :
5540 withval=$with_ppl;
5541 fi
5542
5543
5544 # Check whether --with-ppl-include was given.
5545 if test "${with_ppl_include+set}" = set; then :
5546 withval=$with_ppl_include;
5547 fi
5548
5549
5550 # Check whether --with-ppl-lib was given.
5551 if test "${with_ppl_lib+set}" = set; then :
5552 withval=$with_ppl_lib;
5553 fi
5554
5555
5556 # Check whether --enable-ppl-version-check was given.
5557 if test "${enable_ppl_version_check+set}" = set; then :
5558 enableval=$enable_ppl_version_check;
5559 fi
5560
5561
5562 case $with_ppl in
5563 yes | no | "")
5564 ;;
5565 *)
5566 ppllibs="-L$with_ppl/lib"
5567 pplinc="-I$with_ppl/include $pplinc"
5568 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5569 with_ppl=yes
5570 else
5571 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5572 fi
5573 ;;
5574 esac
5575
5576 if test x"$with_ppl_include" != x; then
5577 pplinc="-I$with_ppl_include $pplinc"
5578 with_ppl=yes
5579 fi
5580
5581 if test "x$with_ppl_lib" != x; then
5582 ppllibs="-L$with_ppl_lib"
5583 with_ppl=yes
5584 fi
5585
5586 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5587 if test x"$enable_watchdog" = xyes; then
5588 pwllib="-lpwl"
5589 fi
5590 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
5591 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5592 enable_ppl_version_check=no
5593 with_ppl=yes
5594 fi
5595
5596 if test "x$with_ppl" != xno; then
5597 if test "x$pwllib" = x; then
5598 saved_LIBS="$LIBS"
5599 LIBS="$LIBS $ppllibs -lstdc++ -lm"
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5601 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5602 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 ac_check_lib_save_LIBS=$LIBS
5606 LIBS="-lpwl $LIBS"
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609
5610 /* Override any GCC internal prototype to avoid an error.
5611 Use char because int might match the return type of a GCC
5612 builtin and then its argument prototype would still apply. */
5613 #ifdef __cplusplus
5614 extern "C"
5615 #endif
5616 char PWL_handle_timeout ();
5617 int
5618 main ()
5619 {
5620 return PWL_handle_timeout ();
5621 ;
5622 return 0;
5623 }
5624 _ACEOF
5625 if ac_fn_c_try_link "$LINENO"; then :
5626 ac_cv_lib_pwl_PWL_handle_timeout=yes
5627 else
5628 ac_cv_lib_pwl_PWL_handle_timeout=no
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext \
5631 conftest$ac_exeext conftest.$ac_ext
5632 LIBS=$ac_check_lib_save_LIBS
5633 fi
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5635 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5636 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5637 pwllib="-lpwl"
5638 fi
5639
5640 LIBS="$saved_LIBS"
5641 fi
5642
5643 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5644
5645 if test "$enable_ppl_version_check" != no; then
5646 saved_CFLAGS="$CFLAGS"
5647 CFLAGS="$CFLAGS $pplinc $gmpinc"
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5649 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include "ppl_c.h"
5653 int
5654 main ()
5655 {
5656
5657 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5658 choke me
5659 #endif
5660
5661 ;
5662 return 0;
5663 }
5664 _ACEOF
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5667 $as_echo "yes" >&6; }
5668 else
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5671 fi
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 CFLAGS="$saved_CFLAGS"
5674 fi
5675 fi
5676
5677 # Flags needed for PPL
5678
5679
5680
5681
5682 # Check for CLOOG
5683
5684
5685
5686 # Check whether --with-cloog was given.
5687 if test "${with_cloog+set}" = set; then :
5688 withval=$with_cloog;
5689 fi
5690
5691
5692 # Check whether --with-cloog-include was given.
5693 if test "${with_cloog_include+set}" = set; then :
5694 withval=$with_cloog_include;
5695 fi
5696
5697
5698 # Check whether --with-cloog-lib was given.
5699 if test "${with_cloog_lib+set}" = set; then :
5700 withval=$with_cloog_lib;
5701 fi
5702
5703
5704 # Check whether --enable-cloog-backend was given.
5705 if test "${enable_cloog_backend+set}" = set; then :
5706 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5707 cloog_backend=isl
5708 elif test "x${enableval}" = "xppl"; then
5709 cloog_backend=ppl
5710 else
5711 cloog_backend=ppl-legacy
5712 fi
5713 else
5714 cloog_backend=ppl-legacy
5715 fi
5716
5717 # Check whether --enable-cloog-version-check was given.
5718 if test "${enable_cloog_version_check+set}" = set; then :
5719 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5720 else
5721 ENABLE_CLOOG_CHECK=yes
5722 fi
5723
5724
5725 # Initialize clooglibs and clooginc.
5726 case $with_cloog in
5727 no)
5728 clooglibs=
5729 clooginc=
5730 ;;
5731 "" | yes)
5732 ;;
5733 *)
5734 clooglibs="-L$with_cloog/lib"
5735 clooginc="-I$with_cloog/include"
5736 ;;
5737 esac
5738 if test "x${with_cloog_include}" != x ; then
5739 clooginc="-I$with_cloog_include"
5740 fi
5741 if test "x${with_cloog_lib}" != x; then
5742 clooglibs="-L$with_cloog_lib"
5743 fi
5744
5745
5746
5747
5748
5749 if test "x$with_ppl" = "xno"; then
5750
5751
5752
5753 if test "x${with_cloog}" = xno; then
5754 graphite_requested=no
5755 elif test "x${with_cloog}" != x \
5756 || test "x${with_cloog_include}" != x \
5757 || test "x${with_cloog_lib}" != x ; then
5758 graphite_requested=yes
5759 else
5760 graphite_requested=no
5761 fi
5762
5763
5764 if test "${graphite_requested}" = yes; then
5765 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5766 fi
5767 with_cloog=no
5768 fi
5769 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5770 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5771 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5772 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5773 fi
5774 if test "x$with_cloog" != "xno"; then
5775
5776
5777
5778 _cloog_saved_CFLAGS=$CFLAGS
5779 _cloog_saved_CPPFLAGS=$CPPFLAGS
5780 _cloog_saved_LDFLAGS=$LDFLAGS
5781 _cloog_saved_LIBS=$LIBS
5782
5783 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5784
5785 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5786 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5787 LDFLAGS="${LDFLAGS} ${clooglibs}"
5788
5789 case $cloog_backend in
5790 "ppl-legacy")
5791 CFLAGS="${CFLAGS} ${pplinc}"
5792 LDFLAGS="${LDFLAGS} ${ppllibs}"
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5794 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5795 if test "${gcc_cv_cloog_type+set}" = set; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 LIBS="-lcloog ${_cloog_saved_LIBS}"
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 #include "cloog/cloog.h"
5802 int
5803 main ()
5804 {
5805 #ifndef CLOOG_PPL_BACKEND
5806 choke me
5807 #endif
5808 ;
5809 return 0;
5810 }
5811 _ACEOF
5812 if ac_fn_c_try_link "$LINENO"; then :
5813 gcc_cv_cloog_type="PPL Legacy"
5814 else
5815 gcc_cv_cloog_type=no
5816 fi
5817 rm -f core conftest.err conftest.$ac_objext \
5818 conftest$ac_exeext conftest.$ac_ext
5819 fi
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5821 $as_echo "$gcc_cv_cloog_type" >&6; }
5822 ;;
5823 "isl")
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5825 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5826 if test "${gcc_cv_cloog_type+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #include "cloog/cloog.h"
5833 int
5834 main ()
5835 {
5836 cloog_version ()
5837 ;
5838 return 0;
5839 }
5840 _ACEOF
5841 if ac_fn_c_try_link "$LINENO"; then :
5842 gcc_cv_cloog_type="ISL"
5843 else
5844 gcc_cv_cloog_type=no
5845 fi
5846 rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5848 fi
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5850 $as_echo "$gcc_cv_cloog_type" >&6; }
5851 ;;
5852 "ppl")
5853 CFLAGS="${CFLAGS} ${pplinc}"
5854 LDFLAGS="${LDFLAGS} ${ppllibs}"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5856 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5857 if test "${gcc_cv_cloog_type+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 #include "cloog/cloog.h"
5864 #include "cloog/ppl/cloog.h"
5865 int
5866 main ()
5867 {
5868 cloog_version ()
5869 ;
5870 return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_c_try_link "$LINENO"; then :
5874 gcc_cv_cloog_type="PPL"
5875 else
5876 gcc_cv_cloog_type=no
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext \
5879 conftest$ac_exeext conftest.$ac_ext
5880 fi
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5882 $as_echo "$gcc_cv_cloog_type" >&6; }
5883 ;;
5884 *)
5885 gcc_cv_cloog_type=""
5886 esac
5887
5888 case $gcc_cv_cloog_type in
5889 "PPL Legacy")
5890 clooginc="${clooginc}"
5891 clooglibs="${clooglibs} -lcloog"
5892 cloog_org=no
5893 ;;
5894 "ISL")
5895 clooginc="${clooginc} ${_cloogorginc}"
5896 clooglibs="${clooglibs} -lcloog-isl -lisl"
5897 cloog_org=yes
5898 ;;
5899 "PPL")
5900 clooginc="${clooginc} ${_cloogorginc}"
5901 clooglibs="${clooglibs} -lcloog-ppl"
5902 cloog_org=yes
5903 ;;
5904 *)
5905 clooglibs=
5906 clooginc=
5907 cloog_org=
5908 ;;
5909 esac
5910
5911 LIBS=$_cloog_saved_LIBS
5912 CFLAGS=$_cloog_saved_CFLAGS
5913 CPPFLAGS=$_cloog_saved_CPPFLAGS
5914 LDFLAGS=$_cloog_saved_LDFLAGS
5915
5916
5917
5918
5919
5920 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5921 _cloog_saved_CFLAGS=$CFLAGS
5922 _cloog_saved_LDFLAGS=$LDFLAGS
5923
5924 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5925 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5926
5927 if test "${cloog_org}" = yes ; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5929 $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
5930 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935 #include "cloog/cloog.h"
5936 int
5937 main ()
5938 {
5939 #if CLOOG_VERSION_MAJOR != 0 \
5940 || CLOOG_VERSION_MINOR != 16 \
5941 || CLOOG_VERSION_REVISION < 1
5942 choke me
5943 #endif
5944 ;
5945 return 0;
5946 }
5947 _ACEOF
5948 if ac_fn_c_try_compile "$LINENO"; then :
5949 gcc_cv_cloog_ct_0_14_0=yes
5950 else
5951 gcc_cv_cloog_ct_0_14_0=no
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 fi
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5956 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5957 elif test "${cloog_org}" = no ; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5959 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5960 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5965 #include "cloog/cloog.h"
5966 int
5967 main ()
5968 {
5969 #if CLOOG_VERSION_MAJOR != 0 \
5970 || CLOOG_VERSION_MINOR != 15 \
5971 || CLOOG_VERSION_REVISION < 5
5972 choke me
5973 #endif
5974 ;
5975 return 0;
5976 }
5977 _ACEOF
5978 if ac_fn_c_try_compile "$LINENO"; then :
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 #include "cloog/cloog.h"
5982 int
5983 main ()
5984 {
5985 #if CLOOG_VERSION_MAJOR != 0 \
5986 || CLOOG_VERSION_MINOR != 15 \
5987 || CLOOG_VERSION_REVISION < 9
5988 choke me
5989 #endif
5990 ;
5991 return 0;
5992 }
5993 _ACEOF
5994 if ac_fn_c_try_compile "$LINENO"; then :
5995 gcc_cv_cloog_ct_0_15_5=yes
5996 else
5997 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000 else
6001 gcc_cv_cloog_ct_0_15_5=no
6002 fi
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004 fi
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6006 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6007 fi
6008
6009 CFLAGS=$_cloog_saved_CFLAGS
6010 LDFLAGS=$_cloog_saved_LDFLAGS
6011 fi
6012
6013
6014
6015
6016
6017
6018
6019 if test "x${with_cloog}" = xno; then
6020 graphite_requested=no
6021 elif test "x${with_cloog}" != x \
6022 || test "x${with_cloog_include}" != x \
6023 || test "x${with_cloog_lib}" != x ; then
6024 graphite_requested=yes
6025 else
6026 graphite_requested=no
6027 fi
6028
6029
6030
6031 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6032 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6033 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6034 clooglibs=
6035 clooginc=
6036 fi
6037
6038 if test "${graphite_requested}" = yes \
6039 && test "x${clooglibs}" = x \
6040 && test "x${clooginc}" = x ; then
6041
6042 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6043 fi
6044
6045
6046 fi
6047
6048 # Check for LTO support.
6049 # Check whether --enable-lto was given.
6050 if test "${enable_lto+set}" = set; then :
6051 enableval=$enable_lto; enable_lto=$enableval
6052 else
6053 enable_lto=yes; default_enable_lto=yes
6054 fi
6055
6056
6057
6058
6059
6060 target_elf=no
6061 case $target in
6062 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6063 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6064 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6065 target_elf=no
6066 ;;
6067 *)
6068 target_elf=yes
6069 ;;
6070 esac
6071
6072 if test $target_elf = yes; then :
6073 # ELF platforms build the lto-plugin always.
6074 build_lto_plugin=yes
6075
6076 else
6077 if test x"$default_enable_lto" = x"yes" ; then
6078 case $target in
6079 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6080 # On other non-ELF platforms, LTO has yet to be validated.
6081 *) enable_lto=no ;;
6082 esac
6083 else
6084 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6085 # It would also be nice to check the binutils support, but we don't
6086 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6087 # warn during gcc/ subconfigure; unless you're bootstrapping with
6088 # -flto it won't be needed until after installation anyway.
6089 case $target in
6090 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6091 *) if test x"$enable_lto" = x"yes"; then
6092 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6093 fi
6094 ;;
6095 esac
6096 fi
6097 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6098 # Build it unless LTO was explicitly disabled.
6099 case $target in
6100 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6101 *) ;;
6102 esac
6103
6104 fi
6105
6106
6107
6108 # By default, C is the only stage 1 language.
6109 stage1_languages=,c,
6110
6111 # Target libraries that we bootstrap.
6112 bootstrap_target_libs=,target-libgcc,
6113
6114 # Figure out what language subdirectories are present.
6115 # Look if the user specified --enable-languages="..."; if not, use
6116 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6117 # go away some day.
6118 # NB: embedded tabs in this IF block -- do not untabify
6119 if test -d ${srcdir}/gcc; then
6120 if test x"${enable_languages+set}" != xset; then
6121 if test x"${LANGUAGES+set}" = xset; then
6122 enable_languages="${LANGUAGES}"
6123 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6124 else
6125 enable_languages=all
6126 fi
6127 else
6128 if test x"${enable_languages}" = x ||
6129 test x"${enable_languages}" = xyes;
6130 then
6131 echo configure.in: --enable-languages needs at least one language argument 1>&2
6132 exit 1
6133 fi
6134 fi
6135 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6136
6137 # 'f95' is the old name for the 'fortran' language. We issue a warning
6138 # and make the substitution.
6139 case ,${enable_languages}, in
6140 *,f95,*)
6141 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6142 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6143 ;;
6144 esac
6145
6146 # First scan to see if an enabled language requires some other language.
6147 # We assume that a given config-lang.in will list all the language
6148 # front ends it requires, even if some are required indirectly.
6149 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6150 case ${lang_frag} in
6151 ..) ;;
6152 # The odd quoting in the next line works around
6153 # an apparent bug in bash 1.12 on linux.
6154 ${srcdir}/gcc/[*]/config-lang.in) ;;
6155 *)
6156 # From the config-lang.in, get $language, $lang_requires, and
6157 # $lang_requires_boot_languages.
6158 language=
6159 lang_requires=
6160 lang_requires_boot_languages=
6161 . ${lang_frag}
6162 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6163 case ,${enable_languages}, in
6164 *,$other,*) ;;
6165 *,all,*) ;;
6166 *,$language,*)
6167 echo " \`$other' language required by \`$language'; enabling" 1>&2
6168 enable_languages="${enable_languages},${other}"
6169 ;;
6170 esac
6171 done
6172 for other in ${lang_requires_boot_languages} ; do
6173 if test "$other" != "c"; then
6174 case ,${enable_stage1_languages}, in
6175 *,$other,*) ;;
6176 *,all,*) ;;
6177 *)
6178 case ,${enable_languages}, in
6179 *,$language,*)
6180 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6181 enable_stage1_languages="$enable_stage1_languages,${other}"
6182 ;;
6183 esac
6184 ;;
6185 esac
6186 fi
6187 done
6188 ;;
6189 esac
6190 done
6191
6192 new_enable_languages=,c,
6193
6194 # If LTO is enabled, add the LTO front end.
6195 extra_host_libiberty_configure_flags=
6196 if test "$enable_lto" = "yes" ; then
6197 case ,${enable_languages}, in
6198 *,lto,*) ;;
6199 *) enable_languages="${enable_languages},lto" ;;
6200 esac
6201 if test "${build_lto_plugin}" = "yes" ; then
6202 configdirs="$configdirs lto-plugin"
6203 extra_host_libiberty_configure_flags=--enable-shared
6204 fi
6205 fi
6206
6207
6208 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6209 potential_languages=,c,
6210
6211 enabled_target_libs=
6212 disabled_target_libs=
6213
6214 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6215 case ${lang_frag} in
6216 ..) ;;
6217 # The odd quoting in the next line works around
6218 # an apparent bug in bash 1.12 on linux.
6219 ${srcdir}/gcc/[*]/config-lang.in) ;;
6220 *)
6221 # From the config-lang.in, get $language, $target_libs,
6222 # $lang_dirs, $boot_language, and $build_by_default
6223 language=
6224 target_libs=
6225 lang_dirs=
6226 subdir_requires=
6227 boot_language=no
6228 build_by_default=yes
6229 . ${lang_frag}
6230 if test x${language} = x; then
6231 echo "${lang_frag} doesn't set \$language." 1>&2
6232 exit 1
6233 fi
6234
6235 if test "$language" = "c++" \
6236 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6237 boot_language=yes
6238 fi
6239
6240 case ,${enable_languages}, in
6241 *,${language},*)
6242 # Language was explicitly selected; include it.
6243 add_this_lang=yes
6244 ;;
6245 *,all,*)
6246 # 'all' was selected, select it if it is a default language
6247 add_this_lang=${build_by_default}
6248 ;;
6249 *)
6250 add_this_lang=no
6251 ;;
6252 esac
6253
6254 # Disable languages that need other directories if these aren't available.
6255 for i in $subdir_requires; do
6256 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6257 case ,${enable_languages}, in
6258 *,${language},*)
6259 # Specifically requested language; tell them.
6260 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6261 ;;
6262 *)
6263 # Silently disable.
6264 add_this_lang=unsupported
6265 ;;
6266 esac
6267 done
6268
6269 # Disable Ada if no preexisting GNAT is available.
6270 case ,${enable_languages},:${language}:${have_gnat} in
6271 *,${language},*:ada:no)
6272 # Specifically requested language; tell them.
6273 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6274 ;;
6275 *:ada:no)
6276 # Silently disable.
6277 add_this_lang=unsupported
6278 ;;
6279 esac
6280
6281 # Disable a language that is unsupported by the target.
6282 case " $unsupported_languages " in
6283 *" $language "*)
6284 add_this_lang=unsupported
6285 ;;
6286 esac
6287
6288 case $add_this_lang in
6289 unsupported)
6290 # Remove language-dependent dirs.
6291 disabled_target_libs="$disabled_target_libs $target_libs"
6292 noconfigdirs="$noconfigdirs $lang_dirs"
6293 ;;
6294 no)
6295 # Remove language-dependent dirs; still show language as supported.
6296 disabled_target_libs="$disabled_target_libs $target_libs"
6297 noconfigdirs="$noconfigdirs $lang_dirs"
6298 potential_languages="${potential_languages}${language},"
6299 ;;
6300 yes)
6301 new_enable_languages="${new_enable_languages}${language},"
6302 potential_languages="${potential_languages}${language},"
6303 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6304 enabled_target_libs="$enabled_target_libs $target_libs"
6305 case "${boot_language}:,$enable_stage1_languages," in
6306 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6307 # Add to (comma-separated) list of stage 1 languages.
6308 case ",$stage1_languages," in
6309 *,$language,* | ,yes, | ,all,) ;;
6310 *) stage1_languages="${stage1_languages}${language}," ;;
6311 esac
6312 # We need to bootstrap any supporting libraries.
6313 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6314 ;;
6315 esac
6316 ;;
6317 esac
6318 ;;
6319 esac
6320 done
6321
6322 # Add target libraries which are only needed for disabled languages
6323 # to noconfigdirs.
6324 if test -n "$disabled_target_libs"; then
6325 for dir in $disabled_target_libs; do
6326 case " $enabled_target_libs " in
6327 *" ${dir} "*) ;;
6328 *) noconfigdirs="$noconfigdirs $dir" ;;
6329 esac
6330 done
6331 fi
6332
6333 # Check whether --enable-stage1-languages was given.
6334 if test "${enable_stage1_languages+set}" = set; then :
6335 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6336 ,no,|,,)
6337 # Set it to something that will have no effect in the loop below
6338 enable_stage1_languages=c ;;
6339 ,yes,)
6340 enable_stage1_languages=`echo $new_enable_languages | \
6341 sed -e "s/^,//" -e "s/,$//" ` ;;
6342 *,all,*)
6343 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6344 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6345 esac
6346
6347 # Add "good" languages from enable_stage1_languages to stage1_languages,
6348 # while "bad" languages go in missing_languages. Leave no duplicates.
6349 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6350 case $potential_languages in
6351 *,$i,*)
6352 case $stage1_languages in
6353 *,$i,*) ;;
6354 *) stage1_languages="$stage1_languages$i," ;;
6355 esac ;;
6356 *)
6357 case $missing_languages in
6358 *,$i,*) ;;
6359 *) missing_languages="$missing_languages$i," ;;
6360 esac ;;
6361 esac
6362 done
6363 fi
6364
6365
6366 # Remove leading/trailing commas that were added for simplicity
6367 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6368 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6369 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6370 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6371
6372 if test "x$missing_languages" != x; then
6373 as_fn_error "
6374 The following requested languages could not be built: ${missing_languages}
6375 Supported languages are: ${potential_languages}" "$LINENO" 5
6376 fi
6377 if test "x$new_enable_languages" != "x$enable_languages"; then
6378 echo The following languages will be built: ${new_enable_languages}
6379 enable_languages="$new_enable_languages"
6380 fi
6381
6382
6383 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6384 fi
6385
6386 # Handle --disable-<component> generically.
6387 for dir in $configdirs $build_configdirs $target_configdirs ; do
6388 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6389 varname=`echo $dirname | sed -e s/+/_/g`
6390 if eval test x\${enable_${varname}} "=" xno ; then
6391 noconfigdirs="$noconfigdirs $dir"
6392 fi
6393 done
6394
6395 # Check for Boehm's garbage collector
6396 # Check whether --enable-objc-gc was given.
6397 if test "${enable_objc_gc+set}" = set; then :
6398 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6399 *,objc,*:*:yes:*target-boehm-gc*)
6400 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6401 ;;
6402 esac
6403 fi
6404
6405
6406 # Make sure we only build Boehm's garbage collector if required.
6407 case ,${enable_languages},:${enable_objc_gc} in
6408 *,objc,*:yes)
6409 # Keep target-boehm-gc if requested for Objective-C.
6410 ;;
6411 *)
6412 # Otherwise remove target-boehm-gc depending on target-libjava.
6413 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6414 noconfigdirs="$noconfigdirs target-boehm-gc"
6415 fi
6416 ;;
6417 esac
6418
6419 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6420 # $build_configdirs and $target_configdirs.
6421 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6422
6423 notsupp=""
6424 for dir in . $skipdirs $noconfigdirs ; do
6425 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6426 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6427 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6428 if test -r $srcdir/$dirname/configure ; then
6429 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6430 true
6431 else
6432 notsupp="$notsupp $dir"
6433 fi
6434 fi
6435 fi
6436 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6437 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6438 if test -r $srcdir/$dirname/configure ; then
6439 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6440 true
6441 else
6442 notsupp="$notsupp $dir"
6443 fi
6444 fi
6445 fi
6446 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6447 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6448 if test -r $srcdir/$dirname/configure ; then
6449 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6450 true
6451 else
6452 notsupp="$notsupp $dir"
6453 fi
6454 fi
6455 fi
6456 done
6457
6458 # Sometimes the tools are distributed with libiberty but with no other
6459 # libraries. In that case, we don't want to build target-libiberty.
6460 # Don't let libgcc imply libiberty either.
6461 if test -n "${target_configdirs}" ; then
6462 libgcc=
6463 others=
6464 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6465 if test "$i" = "libgcc"; then
6466 libgcc=target-libgcc
6467 elif test "$i" != "libiberty" ; then
6468 if test -r $srcdir/$i/configure ; then
6469 others=yes;
6470 break;
6471 fi
6472 fi
6473 done
6474 if test -z "${others}" ; then
6475 target_configdirs=$libgcc
6476 fi
6477 fi
6478
6479 # Quietly strip out all directories which aren't configurable in this tree.
6480 # This relies on all configurable subdirectories being autoconfiscated, which
6481 # is now the case.
6482 build_configdirs_all="$build_configdirs"
6483 build_configdirs=
6484 for i in ${build_configdirs_all} ; do
6485 j=`echo $i | sed -e s/build-//g`
6486 if test -f ${srcdir}/$j/configure ; then
6487 build_configdirs="${build_configdirs} $i"
6488 fi
6489 done
6490
6491 configdirs_all="$configdirs"
6492 configdirs=
6493 for i in ${configdirs_all} ; do
6494 if test -f ${srcdir}/$i/configure ; then
6495 configdirs="${configdirs} $i"
6496 fi
6497 done
6498
6499 target_configdirs_all="$target_configdirs"
6500 target_configdirs=
6501 for i in ${target_configdirs_all} ; do
6502 j=`echo $i | sed -e s/target-//g`
6503 if test -f ${srcdir}/$j/configure ; then
6504 target_configdirs="${target_configdirs} $i"
6505 fi
6506 done
6507
6508 # Produce a warning message for the subdirs we can't configure.
6509 # This isn't especially interesting in the Cygnus tree, but in the individual
6510 # FSF releases, it's important to let people know when their machine isn't
6511 # supported by the one or two programs in a package.
6512
6513 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6514 # If $appdirs is non-empty, at least one of those directories must still
6515 # be configured, or we error out. (E.g., if the gas release supports a
6516 # specified target in some subdirs but not the gas subdir, we shouldn't
6517 # pretend that all is well.)
6518 if test -n "$appdirs" ; then
6519 for dir in $appdirs ; do
6520 if test -r $dir/Makefile.in ; then
6521 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6522 appdirs=""
6523 break
6524 fi
6525 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6526 appdirs=""
6527 break
6528 fi
6529 fi
6530 done
6531 if test -n "$appdirs" ; then
6532 echo "*** This configuration is not supported by this package." 1>&2
6533 exit 1
6534 fi
6535 fi
6536 # Okay, some application will build, or we don't care to check. Still
6537 # notify of subdirs not getting built.
6538 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6539 echo " ${notsupp}" 1>&2
6540 echo " (Any other directories should still work fine.)" 1>&2
6541 fi
6542
6543 case "$host" in
6544 *msdosdjgpp*)
6545 enable_gdbtk=no ;;
6546 esac
6547
6548 # To find our prefix, in gcc_cv_tool_prefix.
6549
6550 # The user is always right.
6551 if test "${PATH_SEPARATOR+set}" != set; then
6552 echo "#! /bin/sh" >conf$$.sh
6553 echo "exit 0" >>conf$$.sh
6554 chmod +x conf$$.sh
6555 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6556 PATH_SEPARATOR=';'
6557 else
6558 PATH_SEPARATOR=:
6559 fi
6560 rm -f conf$$.sh
6561 fi
6562
6563
6564
6565 if test "x$exec_prefix" = xNONE; then
6566 if test "x$prefix" = xNONE; then
6567 gcc_cv_tool_prefix=$ac_default_prefix
6568 else
6569 gcc_cv_tool_prefix=$prefix
6570 fi
6571 else
6572 gcc_cv_tool_prefix=$exec_prefix
6573 fi
6574
6575 # If there is no compiler in the tree, use the PATH only. In any
6576 # case, if there is no compiler in the tree nobody should use
6577 # AS_FOR_TARGET and LD_FOR_TARGET.
6578 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6579 gcc_version=`cat $srcdir/gcc/BASE-VER`
6580 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6581 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6582 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6583 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6584 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6585 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6586 else
6587 gcc_cv_tool_dirs=
6588 fi
6589
6590 if test x$build = x$target && test -n "$md_exec_prefix"; then
6591 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6592 fi
6593
6594
6595
6596 copy_dirs=
6597
6598
6599 # Check whether --with-build-sysroot was given.
6600 if test "${with_build_sysroot+set}" = set; then :
6601 withval=$with_build_sysroot; if test x"$withval" != x ; then
6602 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6603 fi
6604 else
6605 SYSROOT_CFLAGS_FOR_TARGET=
6606 fi
6607
6608
6609
6610
6611 # Check whether --with-debug-prefix-map was given.
6612 if test "${with_debug_prefix_map+set}" = set; then :
6613 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6614 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6615 for debug_map in $withval; do
6616 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6617 done
6618 fi
6619 else
6620 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6621 fi
6622
6623
6624
6625 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6626 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6627 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6628 # We want to ensure that TARGET libraries (which we know are built with
6629 # gcc) are built with "-O2 -g", so include those options when setting
6630 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6631 if test "x$CFLAGS_FOR_TARGET" = x; then
6632 CFLAGS_FOR_TARGET=$CFLAGS
6633 case " $CFLAGS " in
6634 *" -O2 "*) ;;
6635 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6636 esac
6637 case " $CFLAGS " in
6638 *" -g "* | *" -g3 "*) ;;
6639 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6640 esac
6641 fi
6642
6643
6644 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6645 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6646 case " $CXXFLAGS " in
6647 *" -O2 "*) ;;
6648 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6649 esac
6650 case " $CXXFLAGS " in
6651 *" -g "* | *" -g3 "*) ;;
6652 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6653 esac
6654 fi
6655
6656
6657 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6658 # the named directory are copied to $(tooldir)/sys-include.
6659 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6660 if test x${is_cross_compiler} = xno ; then
6661 echo 1>&2 '***' --with-headers is only supported when cross compiling
6662 exit 1
6663 fi
6664 if test x"${with_headers}" != xyes ; then
6665 x=${gcc_cv_tool_prefix}
6666 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6667 fi
6668 fi
6669
6670 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6671 # the name directories are copied to $(tooldir)/lib. Multiple directories
6672 # are permitted.
6673 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6674 if test x${is_cross_compiler} = xno ; then
6675 echo 1>&2 '***' --with-libs is only supported when cross compiling
6676 exit 1
6677 fi
6678 if test x"${with_libs}" != xyes ; then
6679 # Copy the libraries in reverse order, so that files in the first named
6680 # library override files in subsequent libraries.
6681 x=${gcc_cv_tool_prefix}
6682 for l in ${with_libs}; do
6683 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6684 done
6685 fi
6686 fi
6687
6688 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6689 #
6690 # This is done by determining whether or not the appropriate directory
6691 # is available, and by checking whether or not specific configurations
6692 # have requested that this magic not happen.
6693 #
6694 # The command line options always override the explicit settings in
6695 # configure.in, and the settings in configure.in override this magic.
6696 #
6697 # If the default for a toolchain is to use GNU as and ld, and you don't
6698 # want to do that, then you should use the --without-gnu-as and
6699 # --without-gnu-ld options for the configure script. Similarly, if
6700 # the default is to use the included zlib and you don't want to do that,
6701 # you should use the --with-system-zlib option for the configure script.
6702
6703 if test x${use_gnu_as} = x &&
6704 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6705 with_gnu_as=yes
6706 extra_host_args="$extra_host_args --with-gnu-as"
6707 fi
6708
6709 if test x${use_gnu_ld} = x &&
6710 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6711 with_gnu_ld=yes
6712 extra_host_args="$extra_host_args --with-gnu-ld"
6713 fi
6714
6715 if test x${use_included_zlib} = x &&
6716 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6717 :
6718 else
6719 with_system_zlib=yes
6720 extra_host_args="$extra_host_args --with-system-zlib"
6721 fi
6722
6723 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6724 # can detect this case.
6725
6726 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6727 with_newlib=yes
6728 extra_host_args="$extra_host_args --with-newlib"
6729 fi
6730
6731 # Handle ${copy_dirs}
6732 set fnord ${copy_dirs}
6733 shift
6734 while test $# != 0 ; do
6735 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6736 :
6737 else
6738 echo Copying $1 to $2
6739
6740 # Use the install script to create the directory and all required
6741 # parent directories.
6742 if test -d $2 ; then
6743 :
6744 else
6745 echo >config.temp
6746 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6747 fi
6748
6749 # Copy the directory, assuming we have tar.
6750 # FIXME: Should we use B in the second tar? Not all systems support it.
6751 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6752
6753 # It is the responsibility of the user to correctly adjust all
6754 # symlinks. If somebody can figure out how to handle them correctly
6755 # here, feel free to add the code.
6756
6757 echo $1 > $2/COPIED
6758 fi
6759 shift; shift
6760 done
6761
6762 # Determine a target-dependent exec_prefix that the installed
6763 # gcc will search in. Keep this list sorted by triplet, with
6764 # the *-*-osname triplets last.
6765 md_exec_prefix=
6766 case "${target}" in
6767 i[34567]86-pc-msdosdjgpp*)
6768 md_exec_prefix=/dev/env/DJDIR/bin
6769 ;;
6770 *-*-hpux* | \
6771 *-*-nto-qnx* | \
6772 *-*-solaris2*)
6773 md_exec_prefix=/usr/ccs/bin
6774 ;;
6775 esac
6776
6777 extra_arflags_for_target=
6778 extra_nmflags_for_target=
6779 extra_ranlibflags_for_target=
6780 target_makefile_frag=/dev/null
6781 case "${target}" in
6782 spu-*-*)
6783 target_makefile_frag="config/mt-spu"
6784 ;;
6785 mips*-sde-elf*)
6786 target_makefile_frag="config/mt-sde"
6787 ;;
6788 mipsisa*-*-elfoabi*)
6789 target_makefile_frag="config/mt-mips-elfoabi"
6790 ;;
6791 mips*-*-*linux* | mips*-*-gnu*)
6792 target_makefile_frag="config/mt-mips-gnu"
6793 ;;
6794 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6795 target_makefile_frag="config/mt-gnu"
6796 ;;
6797 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6798 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6799 # commands to handle both 32-bit and 64-bit objects. These flags are
6800 # harmless if we're using GNU nm or ar.
6801 extra_arflags_for_target=" -X32_64"
6802 extra_nmflags_for_target=" -B -X32_64"
6803 ;;
6804 *-*-darwin[3-9]*)
6805 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6806 extra_ranlibflags_for_target=" -c"
6807 ;;
6808 esac
6809
6810 alphaieee_frag=/dev/null
6811 case $target in
6812 alpha*-*-*)
6813 # This just makes sure to use the -mieee option to build target libs.
6814 # This should probably be set individually by each library.
6815 alphaieee_frag="config/mt-alphaieee"
6816 ;;
6817 esac
6818
6819 # If --enable-target-optspace always use -Os instead of -O2 to build
6820 # the target libraries, similarly if it is not specified, use -Os
6821 # on selected platforms.
6822 ospace_frag=/dev/null
6823 case "${enable_target_optspace}:${target}" in
6824 yes:*)
6825 ospace_frag="config/mt-ospace"
6826 ;;
6827 :d30v-*)
6828 ospace_frag="config/mt-d30v"
6829 ;;
6830 :m32r-* | :d10v-* | :fr30-*)
6831 ospace_frag="config/mt-ospace"
6832 ;;
6833 no:* | :*)
6834 ;;
6835 *)
6836 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6837 ;;
6838 esac
6839
6840 # Default to using --with-stabs for certain targets.
6841 if test x${with_stabs} = x ; then
6842 case "${target}" in
6843 mips*-*-irix[56]*)
6844 ;;
6845 mips*-*-* | alpha*-*-osf*)
6846 with_stabs=yes;
6847 extra_host_args="${extra_host_args} --with-stabs"
6848 ;;
6849 esac
6850 fi
6851
6852 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6853 # them automatically.
6854 case "${host}" in
6855 hppa*64*-*-hpux11*)
6856 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6857 ;;
6858 esac
6859
6860 # Some systems (e.g., one of the i386-aix systems the gas testers are
6861 # using) don't handle "\$" correctly, so don't use it here.
6862 tooldir='${exec_prefix}'/${target_noncanonical}
6863 build_tooldir=${tooldir}
6864
6865 # Create a .gdbinit file which runs the one in srcdir
6866 # and tells GDB to look there for source files.
6867
6868 if test -r ${srcdir}/.gdbinit ; then
6869 case ${srcdir} in
6870 .) ;;
6871 *) cat > ./.gdbinit <<EOF
6872 # ${NO_EDIT}
6873 dir ${srcdir}
6874 dir .
6875 source ${srcdir}/.gdbinit
6876 EOF
6877 ;;
6878 esac
6879 fi
6880
6881 # Make sure that the compiler is able to generate an executable. If it
6882 # can't, we are probably in trouble. We don't care whether we can run the
6883 # executable--we might be using a cross compiler--we only care whether it
6884 # can be created. At this point the main configure script has set CC.
6885 we_are_ok=no
6886 echo "int main () { return 0; }" > conftest.c
6887 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6888 if test $? = 0 ; then
6889 if test -s conftest || test -s conftest.exe ; then
6890 we_are_ok=yes
6891 fi
6892 fi
6893 case $we_are_ok in
6894 no)
6895 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6896 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6897 rm -f conftest*
6898 exit 1
6899 ;;
6900 esac
6901 rm -f conftest*
6902
6903 # The Solaris /usr/ucb/cc compiler does not appear to work.
6904 case "${host}" in
6905 sparc-sun-solaris2*)
6906 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6907 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6908 could_use=
6909 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6910 if test -d /opt/cygnus/bin ; then
6911 if test "$could_use" = "" ; then
6912 could_use="/opt/cygnus/bin"
6913 else
6914 could_use="$could_use or /opt/cygnus/bin"
6915 fi
6916 fi
6917 if test "$could_use" = "" ; then
6918 echo "Warning: compilation may fail because you're using"
6919 echo "/usr/ucb/cc. You should change your PATH or CC "
6920 echo "variable and rerun configure."
6921 else
6922 echo "Warning: compilation may fail because you're using"
6923 echo "/usr/ucb/cc, when you should use the C compiler from"
6924 echo "$could_use. You should change your"
6925 echo "PATH or CC variable and rerun configure."
6926 fi
6927 fi
6928 ;;
6929 esac
6930
6931 # Decide which environment variable is used to find dynamic libraries.
6932 case "${host}" in
6933 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6934 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6935 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6936 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6937 esac
6938
6939 # On systems where the dynamic library environment variable is PATH,
6940 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6941 # built executables to PATH.
6942 if test "$RPATH_ENVVAR" = PATH; then
6943 GCC_SHLIB_SUBDIR=/shlib
6944 else
6945 GCC_SHLIB_SUBDIR=
6946 fi
6947
6948 # Record target_configdirs and the configure arguments for target and
6949 # build configuration in Makefile.
6950 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6951 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6952
6953 # If we are building libgomp, bootstrap it.
6954 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6955 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6956 fi
6957
6958 # Determine whether gdb needs tk/tcl or not.
6959 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6960 # and in that case we want gdb to be built without tk. Ugh!
6961 # In fact I believe gdb is the *only* package directly dependent on tk,
6962 # so we should be able to put the 'maybe's in unconditionally and
6963 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6964 # 100% sure that that's safe though.
6965
6966 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6967 case "$enable_gdbtk" in
6968 no)
6969 GDB_TK="" ;;
6970 yes)
6971 GDB_TK="${gdb_tk}" ;;
6972 *)
6973 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6974 # distro. Eventually someone will fix this and move Insight, nee
6975 # gdbtk to a separate directory.
6976 if test -d ${srcdir}/gdb/gdbtk ; then
6977 GDB_TK="${gdb_tk}"
6978 else
6979 GDB_TK=""
6980 fi
6981 ;;
6982 esac
6983 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6984 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6985
6986 # Strip out unwanted targets.
6987
6988 # While at that, we remove Makefiles if we were started for recursive
6989 # configuration, so that the top-level Makefile reconfigures them,
6990 # like we used to do when configure itself was recursive.
6991
6992 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6993 # but now we're fixing up the Makefile ourselves with the additional
6994 # commands passed to AC_CONFIG_FILES. Use separate variables
6995 # extrasub-{build,host,target} not because there is any reason to split
6996 # the substitutions up that way, but only to remain below the limit of
6997 # 99 commands in a script, for HP-UX sed.
6998 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6999
7000 # Check whether --enable-bootstrap was given.
7001 if test "${enable_bootstrap+set}" = set; then :
7002 enableval=$enable_bootstrap;
7003 else
7004 enable_bootstrap=default
7005 fi
7006
7007
7008 # Issue errors and warnings for invalid/strange bootstrap combinations.
7009 case "$configdirs" in
7010 *gcc*) have_compiler=yes ;;
7011 *) have_compiler=no ;;
7012 esac
7013
7014 case "$have_compiler:$host:$target:$enable_bootstrap" in
7015 *:*:*:no) ;;
7016
7017 # Default behavior. Enable bootstrap if we have a compiler
7018 # and we are in a native configuration.
7019 yes:$build:$build:default)
7020 enable_bootstrap=yes ;;
7021
7022 *:*:*:default)
7023 enable_bootstrap=no ;;
7024
7025 # We have a compiler and we are in a native configuration, bootstrap is ok
7026 yes:$build:$build:yes)
7027 ;;
7028
7029 # Other configurations, but we have a compiler. Assume the user knows
7030 # what he's doing.
7031 yes:*:*:yes)
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7033 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7034 ;;
7035
7036 # No compiler: if they passed --enable-bootstrap explicitly, fail
7037 no:*:*:yes)
7038 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7039
7040 # Fail if wrong command line
7041 *)
7042 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7043 ;;
7044 esac
7045
7046 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7047 *,c++,*:yes:yes) ;;
7048 *:yes:yes)
7049 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7050 ;;
7051 esac
7052
7053 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7054 yes:yes:*\ gold\ *:*,c++,*) ;;
7055 yes:yes:*\ gold\ *:*)
7056 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7057 ;;
7058 esac
7059
7060 # Adjust the toplevel makefile according to whether bootstrap was selected.
7061 case $enable_bootstrap in
7062 yes)
7063 bootstrap_suffix=bootstrap
7064 BUILD_CONFIG=bootstrap-debug
7065 ;;
7066 no)
7067 bootstrap_suffix=no-bootstrap
7068 BUILD_CONFIG=
7069 ;;
7070 esac
7071
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7073 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7074
7075
7076 # Check whether --with-build-config was given.
7077 if test "${with_build_config+set}" = set; then :
7078 withval=$with_build_config; case $with_build_config in
7079 yes) with_build_config= ;;
7080 no) with_build_config= BUILD_CONFIG= ;;
7081 esac
7082 fi
7083
7084
7085 if test "x${with_build_config}" != x; then
7086 BUILD_CONFIG=$with_build_config
7087 else
7088 case $BUILD_CONFIG in
7089 bootstrap-debug)
7090 if echo "int f (void) { return 0; }" > conftest.c &&
7091 ${CC} -c conftest.c &&
7092 mv conftest.o conftest.o.g0 &&
7093 ${CC} -c -g conftest.c &&
7094 mv conftest.o conftest.o.g &&
7095 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7096 :
7097 else
7098 BUILD_CONFIG=
7099 fi
7100 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7101 ;;
7102 esac
7103 fi
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7105 $as_echo "$BUILD_CONFIG" >&6; }
7106
7107
7108 extrasub_build=
7109 for module in ${build_configdirs} ; do
7110 if test -z "${no_recursion}" \
7111 && test -f ${build_subdir}/${module}/Makefile; then
7112 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7113 rm -f ${build_subdir}/${module}/Makefile
7114 fi
7115 extrasub_build="$extrasub_build
7116 /^@if build-$module\$/d
7117 /^@endif build-$module\$/d
7118 /^@if build-$module-$bootstrap_suffix\$/d
7119 /^@endif build-$module-$bootstrap_suffix\$/d"
7120 done
7121 extrasub_host=
7122 for module in ${configdirs} ; do
7123 if test -z "${no_recursion}"; then
7124 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7125 if test -f ${file}; then
7126 echo 1>&2 "*** removing ${file} to force reconfigure"
7127 rm -f ${file}
7128 fi
7129 done
7130 fi
7131 extrasub_host="$extrasub_host
7132 /^@if $module\$/d
7133 /^@endif $module\$/d
7134 /^@if $module-$bootstrap_suffix\$/d
7135 /^@endif $module-$bootstrap_suffix\$/d"
7136 done
7137 extrasub_target=
7138 for module in ${target_configdirs} ; do
7139 if test -z "${no_recursion}" \
7140 && test -f ${target_subdir}/${module}/Makefile; then
7141 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7142 rm -f ${target_subdir}/${module}/Makefile
7143 fi
7144
7145 # We only bootstrap target libraries listed in bootstrap_target_libs.
7146 case $bootstrap_target_libs in
7147 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7148 *) target_bootstrap_suffix=no-bootstrap ;;
7149 esac
7150
7151 extrasub_target="$extrasub_target
7152 /^@if target-$module\$/d
7153 /^@endif target-$module\$/d
7154 /^@if target-$module-$target_bootstrap_suffix\$/d
7155 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7156 done
7157
7158 # Do the final fixup along with target modules.
7159 extrasub_target="$extrasub_target
7160 /^@if /,/^@endif /d"
7161
7162 # Create the serialization dependencies. This uses a temporary file.
7163
7164 # Check whether --enable-serial-configure was given.
7165 if test "${enable_serial_configure+set}" = set; then :
7166 enableval=$enable_serial_configure;
7167 fi
7168
7169
7170 case ${enable_serial_configure} in
7171 yes)
7172 enable_serial_build_configure=yes
7173 enable_serial_host_configure=yes
7174 enable_serial_target_configure=yes
7175 ;;
7176 esac
7177
7178 # These force 'configure's to be done one at a time, to avoid problems
7179 # with contention over a shared config.cache.
7180 rm -f serdep.tmp
7181 echo '# serdep.tmp' > serdep.tmp
7182 olditem=
7183 test "x${enable_serial_build_configure}" = xyes &&
7184 for item in ${build_configdirs} ; do
7185 case ${olditem} in
7186 "") ;;
7187 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7188 esac
7189 olditem=${item}
7190 done
7191 olditem=
7192 test "x${enable_serial_host_configure}" = xyes &&
7193 for item in ${configdirs} ; do
7194 case ${olditem} in
7195 "") ;;
7196 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7197 esac
7198 olditem=${item}
7199 done
7200 olditem=
7201 test "x${enable_serial_target_configure}" = xyes &&
7202 for item in ${target_configdirs} ; do
7203 case ${olditem} in
7204 "") ;;
7205 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7206 esac
7207 olditem=${item}
7208 done
7209 serialization_dependencies=serdep.tmp
7210
7211
7212 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7213 # target, nonopt, and variable assignments. These are the ones we
7214 # might not want to pass down to subconfigures. The exception being
7215 # --cache-file=/dev/null, which is used to turn off the use of cache
7216 # files altogether, and which should be passed on to subconfigures.
7217 # Also strip program-prefix, program-suffix, and program-transform-name,
7218 # so that we can pass down a consistent program-transform-name.
7219 baseargs=
7220 tbaseargs=
7221 keep_next=no
7222 skip_next=no
7223 eval "set -- $ac_configure_args"
7224 for ac_arg
7225 do
7226 if test X"$skip_next" = X"yes"; then
7227 skip_next=no
7228 continue
7229 fi
7230 if test X"$keep_next" = X"yes"; then
7231 case $ac_arg in
7232 *\'*)
7233 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7234 esac
7235 baseargs="$baseargs '$ac_arg'"
7236 tbaseargs="$tbaseargs '$ac_arg'"
7237 keep_next=no
7238 continue
7239 fi
7240
7241 # Handle separated arguments. Based on the logic generated by
7242 # autoconf 2.59.
7243 case $ac_arg in
7244 *=* | --config-cache | -C | -disable-* | --disable-* \
7245 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7246 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7247 | -with-* | --with-* | -without-* | --without-* | --x)
7248 separate_arg=no
7249 ;;
7250 -*)
7251 separate_arg=yes
7252 ;;
7253 *)
7254 separate_arg=no
7255 ;;
7256 esac
7257
7258 skip_targ=no
7259 case $ac_arg in
7260
7261 --with-* | --without-*)
7262 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7263
7264 case $libopt in
7265 *[-_]include)
7266 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7267 ;;
7268 *[-_]lib)
7269 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7270 ;;
7271 *)
7272 lib=$libopt
7273 ;;
7274 esac
7275
7276
7277 case $lib in
7278 mpc | mpfr | gmp | ppl | cloog)
7279 # If we're processing --with-$lib, --with-$lib-include or
7280 # --with-$lib-lib, for one of the libs above, and target is
7281 # different from host, don't pass the current argument to any
7282 # target library's configure.
7283 if test x$is_cross_compiler = xyes; then
7284 skip_targ=yes
7285 fi
7286 ;;
7287 esac
7288 ;;
7289 esac
7290
7291 case "$ac_arg" in
7292 --cache-file=/dev/null | \
7293 -cache-file=/dev/null )
7294 # Handled here to avoid the test to skip args below.
7295 baseargs="$baseargs '$ac_arg'"
7296 tbaseargs="$tbaseargs '$ac_arg'"
7297 # Assert: $separate_arg should always be no.
7298 keep_next=$separate_arg
7299 ;;
7300 --no*)
7301 continue
7302 ;;
7303 --c* | \
7304 --sr* | \
7305 --ho* | \
7306 --bu* | \
7307 --t* | \
7308 --program-* | \
7309 -cache_file* | \
7310 -srcdir* | \
7311 -host* | \
7312 -build* | \
7313 -target* | \
7314 -program-prefix* | \
7315 -program-suffix* | \
7316 -program-transform-name* )
7317 skip_next=$separate_arg
7318 continue
7319 ;;
7320 -*)
7321 # An option. Add it.
7322 case $ac_arg in
7323 *\'*)
7324 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7325 esac
7326 baseargs="$baseargs '$ac_arg'"
7327 if test X"$skip_targ" = Xno; then
7328 tbaseargs="$tbaseargs '$ac_arg'"
7329 fi
7330 keep_next=$separate_arg
7331 ;;
7332 *)
7333 # Either a variable assignment, or a nonopt (triplet). Don't
7334 # pass it down; let the Makefile handle this.
7335 continue
7336 ;;
7337 esac
7338 done
7339 # Remove the initial space we just introduced and, as these will be
7340 # expanded by make, quote '$'.
7341 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7342
7343 # Add in --program-transform-name, after --program-prefix and
7344 # --program-suffix have been applied to it. Autoconf has already
7345 # doubled dollar signs and backslashes in program_transform_name; we want
7346 # the backslashes un-doubled, and then the entire thing wrapped in single
7347 # quotes, because this will be expanded first by make and then by the shell.
7348 # Also, because we want to override the logic in subdir configure scripts to
7349 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7350 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7351 ${program_transform_name}
7352 EOF_SED
7353 gcc_transform_name=`cat conftestsed.out`
7354 rm -f conftestsed.out
7355 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7356 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7357 if test "$silent" = yes; then
7358 baseargs="$baseargs --silent"
7359 tbaseargs="$tbaseargs --silent"
7360 fi
7361 baseargs="$baseargs --disable-option-checking"
7362 tbaseargs="$tbaseargs --disable-option-checking"
7363
7364 # Record and document user additions to sub configure arguments.
7365
7366
7367
7368
7369 # For the build-side libraries, we just need to pretend we're native,
7370 # and not use the same cache file. Multilibs are neither needed nor
7371 # desired.
7372 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7373
7374 # For host modules, accept cache file option, or specification as blank.
7375 case "${cache_file}" in
7376 "") # empty
7377 cache_file_option="" ;;
7378 /* | [A-Za-z]:[\\/]* ) # absolute path
7379 cache_file_option="--cache-file=${cache_file}" ;;
7380 *) # relative path
7381 cache_file_option="--cache-file=../${cache_file}" ;;
7382 esac
7383
7384 # Host dirs don't like to share a cache file either, horribly enough.
7385 # This seems to be due to autoconf 2.5x stupidity.
7386 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7387
7388 target_configargs="$target_configargs ${tbaseargs}"
7389
7390 # Passing a --with-cross-host argument lets the target libraries know
7391 # whether they are being built with a cross-compiler or being built
7392 # native. However, it would be better to use other mechanisms to make the
7393 # sorts of decisions they want to make on this basis. Please consider
7394 # this option to be deprecated. FIXME.
7395 if test x${is_cross_compiler} = xyes ; then
7396 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7397 fi
7398
7399 # Default to --enable-multilib.
7400 if test x${enable_multilib} = x ; then
7401 target_configargs="--enable-multilib ${target_configargs}"
7402 fi
7403
7404 # Pass --with-newlib if appropriate. Note that target_configdirs has
7405 # changed from the earlier setting of with_newlib.
7406 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7407 target_configargs="--with-newlib ${target_configargs}"
7408 fi
7409
7410 # Different target subdirs use different values of certain variables
7411 # (notably CXX). Worse, multilibs use *lots* of different values.
7412 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7413 # it doesn't automatically accept command-line overrides of them.
7414 # This means it's not safe for target subdirs to share a cache file,
7415 # which is disgusting, but there you have it. Hopefully this can be
7416 # fixed in future. It's still worthwhile to use a cache file for each
7417 # directory. I think.
7418
7419 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7420 # We need to pass --target, as newer autoconf's requires consistency
7421 # for target_alias and gcc doesn't manage it consistently.
7422 target_configargs="--cache-file=./config.cache ${target_configargs}"
7423
7424 FLAGS_FOR_TARGET=
7425 case " $target_configdirs " in
7426 *" newlib "*)
7427 case " $target_configargs " in
7428 *" --with-newlib "*)
7429 case "$target" in
7430 *-cygwin*)
7431 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'
7432 ;;
7433 esac
7434
7435 # If we're not building GCC, don't discard standard headers.
7436 if test -d ${srcdir}/gcc; then
7437 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7438
7439 if test "${build}" != "${host}"; then
7440 # On Canadian crosses, CC_FOR_TARGET will have already been set
7441 # by `configure', so we won't have an opportunity to add -Bgcc/
7442 # to it. This is right: we don't want to search that directory
7443 # for binaries, but we want the header files in there, so add
7444 # them explicitly.
7445 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7446
7447 # Someone might think of using the pre-installed headers on
7448 # Canadian crosses, in case the installed compiler is not fully
7449 # compatible with the compiler being built. In this case, it
7450 # would be better to flag an error than risking having
7451 # incompatible object files being constructed. We can't
7452 # guarantee that an error will be flagged, but let's hope the
7453 # compiler will do it, when presented with incompatible header
7454 # files.
7455 fi
7456 fi
7457
7458 case "${target}-${is_cross_compiler}" in
7459 i[3456789]86-*-linux*-no)
7460 # Here host == target, so we don't need to build gcc,
7461 # so we don't want to discard standard headers.
7462 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7463 ;;
7464 *)
7465 # If we're building newlib, use its generic headers last, but search
7466 # for any libc-related directories first (so make it the last -B
7467 # switch).
7468 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7469
7470 # If we're building libgloss, find the startup file, simulator library
7471 # and linker script.
7472 case " $target_configdirs " in
7473 *" libgloss "*)
7474 # Look for startup file, simulator library and maybe linker script.
7475 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7476 # Look for libnosys.a in case the target needs it.
7477 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7478 # Most targets have the linker script in the source directory.
7479 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7480 ;;
7481 esac
7482 ;;
7483 esac
7484 ;;
7485 esac
7486 ;;
7487 esac
7488
7489 case "$target" in
7490 x86_64-*mingw* | *-w64-mingw*)
7491 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7492 # however, use a symlink named 'mingw' in ${prefix} .
7493 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7494 ;;
7495 *-mingw*)
7496 # MinGW can't be handled as Cygwin above since it does not use newlib.
7497 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'
7498 ;;
7499 esac
7500
7501 # Allow the user to override the flags for
7502 # our build compiler if desired.
7503 if test x"${build}" = x"${host}" ; then
7504 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7505 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7506 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7507 fi
7508
7509 # On Canadian crosses, we'll be searching the right directories for
7510 # the previously-installed cross compiler, so don't bother to add
7511 # flags for directories within the install tree of the compiler
7512 # being built; programs in there won't even run.
7513 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7514 # Search for pre-installed headers if nothing else fits.
7515 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7516 fi
7517
7518 if test "x${use_gnu_ld}" = x &&
7519 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7520 # Arrange for us to find uninstalled linker scripts.
7521 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7522 fi
7523
7524 # Search for other target-specific linker scripts and such.
7525 case "${target}" in
7526 mep*)
7527 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7528 ;;
7529 esac
7530
7531 # Makefile fragments.
7532 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7533 do
7534 eval fragval=\$$frag
7535 if test $fragval != /dev/null; then
7536 eval $frag=${srcdir}/$fragval
7537 fi
7538 done
7539
7540
7541
7542
7543
7544 # Miscellanea: directories, flags, etc.
7545
7546
7547
7548
7549
7550
7551
7552
7553 # Build module lists & subconfigure args.
7554
7555
7556
7557 # Host module lists & subconfigure args.
7558
7559
7560
7561
7562 # Target module lists & subconfigure args.
7563
7564
7565
7566 # Build tools.
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584 # Generate default definitions for YACC, M4, LEX and other programs that run
7585 # on the build machine. These are used if the Makefile can't locate these
7586 # programs in objdir.
7587 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7588
7589 for ac_prog in 'bison -y' byacc yacc
7590 do
7591 # Extract the first word of "$ac_prog", so it can be a program name with args.
7592 set dummy $ac_prog; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if test "${ac_cv_prog_YACC+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 if test -n "$YACC"; then
7599 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608 ac_cv_prog_YACC="$ac_prog"
7609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612 done
7613 done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 YACC=$ac_cv_prog_YACC
7619 if test -n "$YACC"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7621 $as_echo "$YACC" >&6; }
7622 else
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627
7628 test -n "$YACC" && break
7629 done
7630 test -n "$YACC" || YACC="$MISSING bison -y"
7631
7632 case " $build_configdirs " in
7633 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7634 esac
7635
7636 for ac_prog in bison
7637 do
7638 # Extract the first word of "$ac_prog", so it can be a program name with args.
7639 set dummy $ac_prog; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if test "${ac_cv_prog_BISON+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 if test -n "$BISON"; then
7646 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7647 else
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7650 do
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7655 ac_cv_prog_BISON="$ac_prog"
7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 break 2
7658 fi
7659 done
7660 done
7661 IFS=$as_save_IFS
7662
7663 fi
7664 fi
7665 BISON=$ac_cv_prog_BISON
7666 if test -n "$BISON"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7668 $as_echo "$BISON" >&6; }
7669 else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7672 fi
7673
7674
7675 test -n "$BISON" && break
7676 done
7677 test -n "$BISON" || BISON="$MISSING bison"
7678
7679 case " $build_configdirs " in
7680 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7681 esac
7682
7683 for ac_prog in gm4 gnum4 m4
7684 do
7685 # Extract the first word of "$ac_prog", so it can be a program name with args.
7686 set dummy $ac_prog; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if test "${ac_cv_prog_M4+set}" = set; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 if test -n "$M4"; then
7693 ac_cv_prog_M4="$M4" # Let the user override the test.
7694 else
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_prog_M4="$ac_prog"
7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710 fi
7711 fi
7712 M4=$ac_cv_prog_M4
7713 if test -n "$M4"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7715 $as_echo "$M4" >&6; }
7716 else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7719 fi
7720
7721
7722 test -n "$M4" && break
7723 done
7724 test -n "$M4" || M4="$MISSING m4"
7725
7726 case " $build_configdirs " in
7727 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7728 esac
7729
7730 for ac_prog in flex lex
7731 do
7732 # Extract the first word of "$ac_prog", so it can be a program name with args.
7733 set dummy $ac_prog; ac_word=$2
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if test "${ac_cv_prog_LEX+set}" = set; then :
7737 $as_echo_n "(cached) " >&6
7738 else
7739 if test -n "$LEX"; then
7740 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745 IFS=$as_save_IFS
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7749 ac_cv_prog_LEX="$ac_prog"
7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 break 2
7752 fi
7753 done
7754 done
7755 IFS=$as_save_IFS
7756
7757 fi
7758 fi
7759 LEX=$ac_cv_prog_LEX
7760 if test -n "$LEX"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7762 $as_echo "$LEX" >&6; }
7763 else
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7766 fi
7767
7768
7769 test -n "$LEX" && break
7770 done
7771 test -n "$LEX" || LEX="$MISSING flex"
7772
7773 case " $build_configdirs " in
7774 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7775 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7776 esac
7777
7778 for ac_prog in flex
7779 do
7780 # Extract the first word of "$ac_prog", so it can be a program name with args.
7781 set dummy $ac_prog; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if test "${ac_cv_prog_FLEX+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 if test -n "$FLEX"; then
7788 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797 ac_cv_prog_FLEX="$ac_prog"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7800 fi
7801 done
7802 done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 FLEX=$ac_cv_prog_FLEX
7808 if test -n "$FLEX"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7810 $as_echo "$FLEX" >&6; }
7811 else
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7814 fi
7815
7816
7817 test -n "$FLEX" && break
7818 done
7819 test -n "$FLEX" || FLEX="$MISSING flex"
7820
7821 case " $build_configdirs " in
7822 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7823 esac
7824
7825 for ac_prog in makeinfo
7826 do
7827 # Extract the first word of "$ac_prog", so it can be a program name with args.
7828 set dummy $ac_prog; ac_word=$2
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 $as_echo_n "checking for $ac_word... " >&6; }
7831 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 if test -n "$MAKEINFO"; then
7835 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7836 else
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7839 do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_prog_MAKEINFO="$ac_prog"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7847 fi
7848 done
7849 done
7850 IFS=$as_save_IFS
7851
7852 fi
7853 fi
7854 MAKEINFO=$ac_cv_prog_MAKEINFO
7855 if test -n "$MAKEINFO"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7857 $as_echo "$MAKEINFO" >&6; }
7858 else
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7861 fi
7862
7863
7864 test -n "$MAKEINFO" && break
7865 done
7866 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7867
7868 case " $build_configdirs " in
7869 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7870 *)
7871
7872 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7873 # higher, else we use the "missing" dummy.
7874 if ${MAKEINFO} --version \
7875 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7876 :
7877 else
7878 MAKEINFO="$MISSING makeinfo"
7879 fi
7880 ;;
7881
7882 esac
7883
7884 # FIXME: expect and dejagnu may become build tools?
7885
7886 for ac_prog in expect
7887 do
7888 # Extract the first word of "$ac_prog", so it can be a program name with args.
7889 set dummy $ac_prog; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 if test -n "$EXPECT"; then
7896 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7900 do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905 ac_cv_prog_EXPECT="$ac_prog"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7908 fi
7909 done
7910 done
7911 IFS=$as_save_IFS
7912
7913 fi
7914 fi
7915 EXPECT=$ac_cv_prog_EXPECT
7916 if test -n "$EXPECT"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7918 $as_echo "$EXPECT" >&6; }
7919 else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7922 fi
7923
7924
7925 test -n "$EXPECT" && break
7926 done
7927 test -n "$EXPECT" || EXPECT="expect"
7928
7929 case " $configdirs " in
7930 *" expect "*)
7931 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7932 ;;
7933 esac
7934
7935 for ac_prog in runtest
7936 do
7937 # Extract the first word of "$ac_prog", so it can be a program name with args.
7938 set dummy $ac_prog; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 if test -n "$RUNTEST"; then
7945 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_prog_RUNTEST="$ac_prog"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958 done
7959 done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 RUNTEST=$ac_cv_prog_RUNTEST
7965 if test -n "$RUNTEST"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7967 $as_echo "$RUNTEST" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973
7974 test -n "$RUNTEST" && break
7975 done
7976 test -n "$RUNTEST" || RUNTEST="runtest"
7977
7978 case " $configdirs " in
7979 *" dejagnu "*)
7980 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7981 ;;
7982 esac
7983
7984
7985 # Host tools.
7986 ncn_tool_prefix=
7987 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7988 ncn_target_tool_prefix=
7989 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7990
7991
7992
7993 if test -n "$AR"; then
7994 ac_cv_prog_AR=$AR
7995 elif test -n "$ac_cv_prog_AR"; then
7996 AR=$ac_cv_prog_AR
7997 fi
7998
7999 if test -n "$ac_cv_prog_AR"; then
8000 for ncn_progname in ar; do
8001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8002 set dummy ${ncn_progname}; ac_word=$2
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 $as_echo_n "checking for $ac_word... " >&6; }
8005 if test "${ac_cv_prog_AR+set}" = set; then :
8006 $as_echo_n "(cached) " >&6
8007 else
8008 if test -n "$AR"; then
8009 ac_cv_prog_AR="$AR" # Let the user override the test.
8010 else
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8013 do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_prog_AR="${ncn_progname}"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022 done
8023 done
8024 IFS=$as_save_IFS
8025
8026 fi
8027 fi
8028 AR=$ac_cv_prog_AR
8029 if test -n "$AR"; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8031 $as_echo "$AR" >&6; }
8032 else
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 $as_echo "no" >&6; }
8035 fi
8036
8037
8038 done
8039 fi
8040
8041 for ncn_progname in ar; do
8042 if test -n "$ncn_tool_prefix"; then
8043 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8044 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8046 $as_echo_n "checking for $ac_word... " >&6; }
8047 if test "${ac_cv_prog_AR+set}" = set; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 if test -n "$AR"; then
8051 ac_cv_prog_AR="$AR" # Let the user override the test.
8052 else
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 for as_dir in $PATH
8055 do
8056 IFS=$as_save_IFS
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8060 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 break 2
8063 fi
8064 done
8065 done
8066 IFS=$as_save_IFS
8067
8068 fi
8069 fi
8070 AR=$ac_cv_prog_AR
8071 if test -n "$AR"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8073 $as_echo "$AR" >&6; }
8074 else
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }
8077 fi
8078
8079
8080 fi
8081 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8083 set dummy ${ncn_progname}; ac_word=$2
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8085 $as_echo_n "checking for $ac_word... " >&6; }
8086 if test "${ac_cv_prog_AR+set}" = set; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 if test -n "$AR"; then
8090 ac_cv_prog_AR="$AR" # Let the user override the test.
8091 else
8092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8093 for as_dir in $PATH
8094 do
8095 IFS=$as_save_IFS
8096 test -z "$as_dir" && as_dir=.
8097 for ac_exec_ext in '' $ac_executable_extensions; do
8098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8099 ac_cv_prog_AR="${ncn_progname}"
8100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8101 break 2
8102 fi
8103 done
8104 done
8105 IFS=$as_save_IFS
8106
8107 fi
8108 fi
8109 AR=$ac_cv_prog_AR
8110 if test -n "$AR"; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8112 $as_echo "$AR" >&6; }
8113 else
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8116 fi
8117
8118
8119 fi
8120 test -n "$ac_cv_prog_AR" && break
8121 done
8122
8123 if test -z "$ac_cv_prog_AR" ; then
8124 set dummy ar
8125 if test $build = $host ; then
8126 AR="$2"
8127 else
8128 AR="${ncn_tool_prefix}$2"
8129 fi
8130 fi
8131
8132
8133
8134 if test -n "$AS"; then
8135 ac_cv_prog_AS=$AS
8136 elif test -n "$ac_cv_prog_AS"; then
8137 AS=$ac_cv_prog_AS
8138 fi
8139
8140 if test -n "$ac_cv_prog_AS"; then
8141 for ncn_progname in as; do
8142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8143 set dummy ${ncn_progname}; ac_word=$2
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8145 $as_echo_n "checking for $ac_word... " >&6; }
8146 if test "${ac_cv_prog_AS+set}" = set; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 if test -n "$AS"; then
8150 ac_cv_prog_AS="$AS" # Let the user override the test.
8151 else
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8154 do
8155 IFS=$as_save_IFS
8156 test -z "$as_dir" && as_dir=.
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159 ac_cv_prog_AS="${ncn_progname}"
8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161 break 2
8162 fi
8163 done
8164 done
8165 IFS=$as_save_IFS
8166
8167 fi
8168 fi
8169 AS=$ac_cv_prog_AS
8170 if test -n "$AS"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8172 $as_echo "$AS" >&6; }
8173 else
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 $as_echo "no" >&6; }
8176 fi
8177
8178
8179 done
8180 fi
8181
8182 for ncn_progname in as; do
8183 if test -n "$ncn_tool_prefix"; then
8184 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8185 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187 $as_echo_n "checking for $ac_word... " >&6; }
8188 if test "${ac_cv_prog_AS+set}" = set; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 if test -n "$AS"; then
8192 ac_cv_prog_AS="$AS" # Let the user override the test.
8193 else
8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 for as_dir in $PATH
8196 do
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8201 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 break 2
8204 fi
8205 done
8206 done
8207 IFS=$as_save_IFS
8208
8209 fi
8210 fi
8211 AS=$ac_cv_prog_AS
8212 if test -n "$AS"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8214 $as_echo "$AS" >&6; }
8215 else
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8218 fi
8219
8220
8221 fi
8222 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8224 set dummy ${ncn_progname}; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if test "${ac_cv_prog_AS+set}" = set; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 if test -n "$AS"; then
8231 ac_cv_prog_AS="$AS" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240 ac_cv_prog_AS="${ncn_progname}"
8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 break 2
8243 fi
8244 done
8245 done
8246 IFS=$as_save_IFS
8247
8248 fi
8249 fi
8250 AS=$ac_cv_prog_AS
8251 if test -n "$AS"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8253 $as_echo "$AS" >&6; }
8254 else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8257 fi
8258
8259
8260 fi
8261 test -n "$ac_cv_prog_AS" && break
8262 done
8263
8264 if test -z "$ac_cv_prog_AS" ; then
8265 set dummy as
8266 if test $build = $host ; then
8267 AS="$2"
8268 else
8269 AS="${ncn_tool_prefix}$2"
8270 fi
8271 fi
8272
8273
8274
8275 if test -n "$DLLTOOL"; then
8276 ac_cv_prog_DLLTOOL=$DLLTOOL
8277 elif test -n "$ac_cv_prog_DLLTOOL"; then
8278 DLLTOOL=$ac_cv_prog_DLLTOOL
8279 fi
8280
8281 if test -n "$ac_cv_prog_DLLTOOL"; then
8282 for ncn_progname in dlltool; do
8283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8284 set dummy ${ncn_progname}; ac_word=$2
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286 $as_echo_n "checking for $ac_word... " >&6; }
8287 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 if test -n "$DLLTOOL"; then
8291 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8292 else
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294 for as_dir in $PATH
8295 do
8296 IFS=$as_save_IFS
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8300 ac_cv_prog_DLLTOOL="${ncn_progname}"
8301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 break 2
8303 fi
8304 done
8305 done
8306 IFS=$as_save_IFS
8307
8308 fi
8309 fi
8310 DLLTOOL=$ac_cv_prog_DLLTOOL
8311 if test -n "$DLLTOOL"; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8313 $as_echo "$DLLTOOL" >&6; }
8314 else
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 $as_echo "no" >&6; }
8317 fi
8318
8319
8320 done
8321 fi
8322
8323 for ncn_progname in dlltool; do
8324 if test -n "$ncn_tool_prefix"; then
8325 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8326 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 if test -n "$DLLTOOL"; then
8333 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8342 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 break 2
8345 fi
8346 done
8347 done
8348 IFS=$as_save_IFS
8349
8350 fi
8351 fi
8352 DLLTOOL=$ac_cv_prog_DLLTOOL
8353 if test -n "$DLLTOOL"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8355 $as_echo "$DLLTOOL" >&6; }
8356 else
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8359 fi
8360
8361
8362 fi
8363 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8365 set dummy ${ncn_progname}; ac_word=$2
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 $as_echo_n "checking for $ac_word... " >&6; }
8368 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 if test -n "$DLLTOOL"; then
8372 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8373 else
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8381 ac_cv_prog_DLLTOOL="${ncn_progname}"
8382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383 break 2
8384 fi
8385 done
8386 done
8387 IFS=$as_save_IFS
8388
8389 fi
8390 fi
8391 DLLTOOL=$ac_cv_prog_DLLTOOL
8392 if test -n "$DLLTOOL"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8394 $as_echo "$DLLTOOL" >&6; }
8395 else
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8398 fi
8399
8400
8401 fi
8402 test -n "$ac_cv_prog_DLLTOOL" && break
8403 done
8404
8405 if test -z "$ac_cv_prog_DLLTOOL" ; then
8406 set dummy dlltool
8407 if test $build = $host ; then
8408 DLLTOOL="$2"
8409 else
8410 DLLTOOL="${ncn_tool_prefix}$2"
8411 fi
8412 fi
8413
8414
8415
8416 if test -n "$LD"; then
8417 ac_cv_prog_LD=$LD
8418 elif test -n "$ac_cv_prog_LD"; then
8419 LD=$ac_cv_prog_LD
8420 fi
8421
8422 if test -n "$ac_cv_prog_LD"; then
8423 for ncn_progname in ld; do
8424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8425 set dummy ${ncn_progname}; ac_word=$2
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427 $as_echo_n "checking for $ac_word... " >&6; }
8428 if test "${ac_cv_prog_LD+set}" = set; then :
8429 $as_echo_n "(cached) " >&6
8430 else
8431 if test -n "$LD"; then
8432 ac_cv_prog_LD="$LD" # Let the user override the test.
8433 else
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 for as_dir in $PATH
8436 do
8437 IFS=$as_save_IFS
8438 test -z "$as_dir" && as_dir=.
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8441 ac_cv_prog_LD="${ncn_progname}"
8442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8443 break 2
8444 fi
8445 done
8446 done
8447 IFS=$as_save_IFS
8448
8449 fi
8450 fi
8451 LD=$ac_cv_prog_LD
8452 if test -n "$LD"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8454 $as_echo "$LD" >&6; }
8455 else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8458 fi
8459
8460
8461 done
8462 fi
8463
8464 for ncn_progname in ld; do
8465 if test -n "$ncn_tool_prefix"; then
8466 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8467 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 $as_echo_n "checking for $ac_word... " >&6; }
8470 if test "${ac_cv_prog_LD+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 if test -n "$LD"; then
8474 ac_cv_prog_LD="$LD" # Let the user override the test.
8475 else
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8478 do
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8486 fi
8487 done
8488 done
8489 IFS=$as_save_IFS
8490
8491 fi
8492 fi
8493 LD=$ac_cv_prog_LD
8494 if test -n "$LD"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8496 $as_echo "$LD" >&6; }
8497 else
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8500 fi
8501
8502
8503 fi
8504 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8506 set dummy ${ncn_progname}; ac_word=$2
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 $as_echo_n "checking for $ac_word... " >&6; }
8509 if test "${ac_cv_prog_LD+set}" = set; then :
8510 $as_echo_n "(cached) " >&6
8511 else
8512 if test -n "$LD"; then
8513 ac_cv_prog_LD="$LD" # Let the user override the test.
8514 else
8515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8516 for as_dir in $PATH
8517 do
8518 IFS=$as_save_IFS
8519 test -z "$as_dir" && as_dir=.
8520 for ac_exec_ext in '' $ac_executable_extensions; do
8521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8522 ac_cv_prog_LD="${ncn_progname}"
8523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8524 break 2
8525 fi
8526 done
8527 done
8528 IFS=$as_save_IFS
8529
8530 fi
8531 fi
8532 LD=$ac_cv_prog_LD
8533 if test -n "$LD"; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8535 $as_echo "$LD" >&6; }
8536 else
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8539 fi
8540
8541
8542 fi
8543 test -n "$ac_cv_prog_LD" && break
8544 done
8545
8546 if test -z "$ac_cv_prog_LD" ; then
8547 set dummy ld
8548 if test $build = $host ; then
8549 LD="$2"
8550 else
8551 LD="${ncn_tool_prefix}$2"
8552 fi
8553 fi
8554
8555
8556
8557 if test -n "$LIPO"; then
8558 ac_cv_prog_LIPO=$LIPO
8559 elif test -n "$ac_cv_prog_LIPO"; then
8560 LIPO=$ac_cv_prog_LIPO
8561 fi
8562
8563 if test -n "$ac_cv_prog_LIPO"; then
8564 for ncn_progname in lipo; do
8565 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8566 set dummy ${ncn_progname}; ac_word=$2
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8568 $as_echo_n "checking for $ac_word... " >&6; }
8569 if test "${ac_cv_prog_LIPO+set}" = set; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 if test -n "$LIPO"; then
8573 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8574 else
8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 for as_dir in $PATH
8577 do
8578 IFS=$as_save_IFS
8579 test -z "$as_dir" && as_dir=.
8580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8582 ac_cv_prog_LIPO="${ncn_progname}"
8583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 break 2
8585 fi
8586 done
8587 done
8588 IFS=$as_save_IFS
8589
8590 fi
8591 fi
8592 LIPO=$ac_cv_prog_LIPO
8593 if test -n "$LIPO"; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8595 $as_echo "$LIPO" >&6; }
8596 else
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598 $as_echo "no" >&6; }
8599 fi
8600
8601
8602 done
8603 fi
8604
8605 for ncn_progname in lipo; do
8606 if test -n "$ncn_tool_prefix"; then
8607 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8608 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8610 $as_echo_n "checking for $ac_word... " >&6; }
8611 if test "${ac_cv_prog_LIPO+set}" = set; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 if test -n "$LIPO"; then
8615 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8616 else
8617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 for as_dir in $PATH
8619 do
8620 IFS=$as_save_IFS
8621 test -z "$as_dir" && as_dir=.
8622 for ac_exec_ext in '' $ac_executable_extensions; do
8623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8624 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 break 2
8627 fi
8628 done
8629 done
8630 IFS=$as_save_IFS
8631
8632 fi
8633 fi
8634 LIPO=$ac_cv_prog_LIPO
8635 if test -n "$LIPO"; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8637 $as_echo "$LIPO" >&6; }
8638 else
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640 $as_echo "no" >&6; }
8641 fi
8642
8643
8644 fi
8645 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8647 set dummy ${ncn_progname}; ac_word=$2
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8649 $as_echo_n "checking for $ac_word... " >&6; }
8650 if test "${ac_cv_prog_LIPO+set}" = set; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 if test -n "$LIPO"; then
8654 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8655 else
8656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657 for as_dir in $PATH
8658 do
8659 IFS=$as_save_IFS
8660 test -z "$as_dir" && as_dir=.
8661 for ac_exec_ext in '' $ac_executable_extensions; do
8662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8663 ac_cv_prog_LIPO="${ncn_progname}"
8664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8665 break 2
8666 fi
8667 done
8668 done
8669 IFS=$as_save_IFS
8670
8671 fi
8672 fi
8673 LIPO=$ac_cv_prog_LIPO
8674 if test -n "$LIPO"; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8676 $as_echo "$LIPO" >&6; }
8677 else
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8680 fi
8681
8682
8683 fi
8684 test -n "$ac_cv_prog_LIPO" && break
8685 done
8686
8687 if test -z "$ac_cv_prog_LIPO" ; then
8688 set dummy lipo
8689 if test $build = $host ; then
8690 LIPO="$2"
8691 else
8692 LIPO="${ncn_tool_prefix}$2"
8693 fi
8694 fi
8695
8696
8697
8698 if test -n "$NM"; then
8699 ac_cv_prog_NM=$NM
8700 elif test -n "$ac_cv_prog_NM"; then
8701 NM=$ac_cv_prog_NM
8702 fi
8703
8704 if test -n "$ac_cv_prog_NM"; then
8705 for ncn_progname in nm; do
8706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8707 set dummy ${ncn_progname}; ac_word=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if test "${ac_cv_prog_NM+set}" = set; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 if test -n "$NM"; then
8714 ac_cv_prog_NM="$NM" # Let the user override the test.
8715 else
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8718 do
8719 IFS=$as_save_IFS
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8723 ac_cv_prog_NM="${ncn_progname}"
8724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 break 2
8726 fi
8727 done
8728 done
8729 IFS=$as_save_IFS
8730
8731 fi
8732 fi
8733 NM=$ac_cv_prog_NM
8734 if test -n "$NM"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8736 $as_echo "$NM" >&6; }
8737 else
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8740 fi
8741
8742
8743 done
8744 fi
8745
8746 for ncn_progname in nm; do
8747 if test -n "$ncn_tool_prefix"; then
8748 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8749 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8751 $as_echo_n "checking for $ac_word... " >&6; }
8752 if test "${ac_cv_prog_NM+set}" = set; then :
8753 $as_echo_n "(cached) " >&6
8754 else
8755 if test -n "$NM"; then
8756 ac_cv_prog_NM="$NM" # Let the user override the test.
8757 else
8758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8759 for as_dir in $PATH
8760 do
8761 IFS=$as_save_IFS
8762 test -z "$as_dir" && as_dir=.
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8765 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 break 2
8768 fi
8769 done
8770 done
8771 IFS=$as_save_IFS
8772
8773 fi
8774 fi
8775 NM=$ac_cv_prog_NM
8776 if test -n "$NM"; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8778 $as_echo "$NM" >&6; }
8779 else
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8782 fi
8783
8784
8785 fi
8786 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8788 set dummy ${ncn_progname}; ac_word=$2
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790 $as_echo_n "checking for $ac_word... " >&6; }
8791 if test "${ac_cv_prog_NM+set}" = set; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 if test -n "$NM"; then
8795 ac_cv_prog_NM="$NM" # Let the user override the test.
8796 else
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798 for as_dir in $PATH
8799 do
8800 IFS=$as_save_IFS
8801 test -z "$as_dir" && as_dir=.
8802 for ac_exec_ext in '' $ac_executable_extensions; do
8803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8804 ac_cv_prog_NM="${ncn_progname}"
8805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8806 break 2
8807 fi
8808 done
8809 done
8810 IFS=$as_save_IFS
8811
8812 fi
8813 fi
8814 NM=$ac_cv_prog_NM
8815 if test -n "$NM"; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8817 $as_echo "$NM" >&6; }
8818 else
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8821 fi
8822
8823
8824 fi
8825 test -n "$ac_cv_prog_NM" && break
8826 done
8827
8828 if test -z "$ac_cv_prog_NM" ; then
8829 set dummy nm
8830 if test $build = $host ; then
8831 NM="$2"
8832 else
8833 NM="${ncn_tool_prefix}$2"
8834 fi
8835 fi
8836
8837
8838
8839 if test -n "$RANLIB"; then
8840 ac_cv_prog_RANLIB=$RANLIB
8841 elif test -n "$ac_cv_prog_RANLIB"; then
8842 RANLIB=$ac_cv_prog_RANLIB
8843 fi
8844
8845 if test -n "$ac_cv_prog_RANLIB"; then
8846 for ncn_progname in ranlib; do
8847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8848 set dummy ${ncn_progname}; ac_word=$2
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850 $as_echo_n "checking for $ac_word... " >&6; }
8851 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8852 $as_echo_n "(cached) " >&6
8853 else
8854 if test -n "$RANLIB"; then
8855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8856 else
8857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8858 for as_dir in $PATH
8859 do
8860 IFS=$as_save_IFS
8861 test -z "$as_dir" && as_dir=.
8862 for ac_exec_ext in '' $ac_executable_extensions; do
8863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8864 ac_cv_prog_RANLIB="${ncn_progname}"
8865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8866 break 2
8867 fi
8868 done
8869 done
8870 IFS=$as_save_IFS
8871
8872 fi
8873 fi
8874 RANLIB=$ac_cv_prog_RANLIB
8875 if test -n "$RANLIB"; then
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8877 $as_echo "$RANLIB" >&6; }
8878 else
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8880 $as_echo "no" >&6; }
8881 fi
8882
8883
8884 done
8885 fi
8886
8887 for ncn_progname in ranlib; do
8888 if test -n "$ncn_tool_prefix"; then
8889 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8890 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892 $as_echo_n "checking for $ac_word... " >&6; }
8893 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 if test -n "$RANLIB"; then
8897 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8898 else
8899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900 for as_dir in $PATH
8901 do
8902 IFS=$as_save_IFS
8903 test -z "$as_dir" && as_dir=.
8904 for ac_exec_ext in '' $ac_executable_extensions; do
8905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8906 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8908 break 2
8909 fi
8910 done
8911 done
8912 IFS=$as_save_IFS
8913
8914 fi
8915 fi
8916 RANLIB=$ac_cv_prog_RANLIB
8917 if test -n "$RANLIB"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8919 $as_echo "$RANLIB" >&6; }
8920 else
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922 $as_echo "no" >&6; }
8923 fi
8924
8925
8926 fi
8927 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8929 set dummy ${ncn_progname}; ac_word=$2
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 $as_echo_n "checking for $ac_word... " >&6; }
8932 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8933 $as_echo_n "(cached) " >&6
8934 else
8935 if test -n "$RANLIB"; then
8936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8937 else
8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939 for as_dir in $PATH
8940 do
8941 IFS=$as_save_IFS
8942 test -z "$as_dir" && as_dir=.
8943 for ac_exec_ext in '' $ac_executable_extensions; do
8944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8945 ac_cv_prog_RANLIB="${ncn_progname}"
8946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8947 break 2
8948 fi
8949 done
8950 done
8951 IFS=$as_save_IFS
8952
8953 fi
8954 fi
8955 RANLIB=$ac_cv_prog_RANLIB
8956 if test -n "$RANLIB"; then
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8958 $as_echo "$RANLIB" >&6; }
8959 else
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 $as_echo "no" >&6; }
8962 fi
8963
8964
8965 fi
8966 test -n "$ac_cv_prog_RANLIB" && break
8967 done
8968
8969 if test -z "$ac_cv_prog_RANLIB" ; then
8970 RANLIB="true"
8971 fi
8972
8973
8974
8975 if test -n "$STRIP"; then
8976 ac_cv_prog_STRIP=$STRIP
8977 elif test -n "$ac_cv_prog_STRIP"; then
8978 STRIP=$ac_cv_prog_STRIP
8979 fi
8980
8981 if test -n "$ac_cv_prog_STRIP"; then
8982 for ncn_progname in strip; do
8983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8984 set dummy ${ncn_progname}; ac_word=$2
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8986 $as_echo_n "checking for $ac_word... " >&6; }
8987 if test "${ac_cv_prog_STRIP+set}" = set; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 if test -n "$STRIP"; then
8991 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8992 else
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in $PATH
8995 do
8996 IFS=$as_save_IFS
8997 test -z "$as_dir" && as_dir=.
8998 for ac_exec_ext in '' $ac_executable_extensions; do
8999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9000 ac_cv_prog_STRIP="${ncn_progname}"
9001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9002 break 2
9003 fi
9004 done
9005 done
9006 IFS=$as_save_IFS
9007
9008 fi
9009 fi
9010 STRIP=$ac_cv_prog_STRIP
9011 if test -n "$STRIP"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9013 $as_echo "$STRIP" >&6; }
9014 else
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016 $as_echo "no" >&6; }
9017 fi
9018
9019
9020 done
9021 fi
9022
9023 for ncn_progname in strip; do
9024 if test -n "$ncn_tool_prefix"; then
9025 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9026 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9028 $as_echo_n "checking for $ac_word... " >&6; }
9029 if test "${ac_cv_prog_STRIP+set}" = set; then :
9030 $as_echo_n "(cached) " >&6
9031 else
9032 if test -n "$STRIP"; then
9033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9034 else
9035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9036 for as_dir in $PATH
9037 do
9038 IFS=$as_save_IFS
9039 test -z "$as_dir" && as_dir=.
9040 for ac_exec_ext in '' $ac_executable_extensions; do
9041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9042 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9044 break 2
9045 fi
9046 done
9047 done
9048 IFS=$as_save_IFS
9049
9050 fi
9051 fi
9052 STRIP=$ac_cv_prog_STRIP
9053 if test -n "$STRIP"; then
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9055 $as_echo "$STRIP" >&6; }
9056 else
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9058 $as_echo "no" >&6; }
9059 fi
9060
9061
9062 fi
9063 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9065 set dummy ${ncn_progname}; ac_word=$2
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067 $as_echo_n "checking for $ac_word... " >&6; }
9068 if test "${ac_cv_prog_STRIP+set}" = set; then :
9069 $as_echo_n "(cached) " >&6
9070 else
9071 if test -n "$STRIP"; then
9072 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9073 else
9074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 for as_dir in $PATH
9076 do
9077 IFS=$as_save_IFS
9078 test -z "$as_dir" && as_dir=.
9079 for ac_exec_ext in '' $ac_executable_extensions; do
9080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9081 ac_cv_prog_STRIP="${ncn_progname}"
9082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083 break 2
9084 fi
9085 done
9086 done
9087 IFS=$as_save_IFS
9088
9089 fi
9090 fi
9091 STRIP=$ac_cv_prog_STRIP
9092 if test -n "$STRIP"; then
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9094 $as_echo "$STRIP" >&6; }
9095 else
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 $as_echo "no" >&6; }
9098 fi
9099
9100
9101 fi
9102 test -n "$ac_cv_prog_STRIP" && break
9103 done
9104
9105 if test -z "$ac_cv_prog_STRIP" ; then
9106 STRIP="true"
9107 fi
9108
9109
9110
9111 if test -n "$WINDRES"; then
9112 ac_cv_prog_WINDRES=$WINDRES
9113 elif test -n "$ac_cv_prog_WINDRES"; then
9114 WINDRES=$ac_cv_prog_WINDRES
9115 fi
9116
9117 if test -n "$ac_cv_prog_WINDRES"; then
9118 for ncn_progname in windres; do
9119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9120 set dummy ${ncn_progname}; ac_word=$2
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122 $as_echo_n "checking for $ac_word... " >&6; }
9123 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 if test -n "$WINDRES"; then
9127 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9128 else
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 for as_dir in $PATH
9131 do
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9136 ac_cv_prog_WINDRES="${ncn_progname}"
9137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9139 fi
9140 done
9141 done
9142 IFS=$as_save_IFS
9143
9144 fi
9145 fi
9146 WINDRES=$ac_cv_prog_WINDRES
9147 if test -n "$WINDRES"; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9149 $as_echo "$WINDRES" >&6; }
9150 else
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152 $as_echo "no" >&6; }
9153 fi
9154
9155
9156 done
9157 fi
9158
9159 for ncn_progname in windres; do
9160 if test -n "$ncn_tool_prefix"; then
9161 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9162 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9164 $as_echo_n "checking for $ac_word... " >&6; }
9165 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9166 $as_echo_n "(cached) " >&6
9167 else
9168 if test -n "$WINDRES"; then
9169 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9170 else
9171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9172 for as_dir in $PATH
9173 do
9174 IFS=$as_save_IFS
9175 test -z "$as_dir" && as_dir=.
9176 for ac_exec_ext in '' $ac_executable_extensions; do
9177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9178 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9180 break 2
9181 fi
9182 done
9183 done
9184 IFS=$as_save_IFS
9185
9186 fi
9187 fi
9188 WINDRES=$ac_cv_prog_WINDRES
9189 if test -n "$WINDRES"; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9191 $as_echo "$WINDRES" >&6; }
9192 else
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194 $as_echo "no" >&6; }
9195 fi
9196
9197
9198 fi
9199 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9201 set dummy ${ncn_progname}; ac_word=$2
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 $as_echo_n "checking for $ac_word... " >&6; }
9204 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 if test -n "$WINDRES"; then
9208 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9209 else
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 for as_dir in $PATH
9212 do
9213 IFS=$as_save_IFS
9214 test -z "$as_dir" && as_dir=.
9215 for ac_exec_ext in '' $ac_executable_extensions; do
9216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9217 ac_cv_prog_WINDRES="${ncn_progname}"
9218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9219 break 2
9220 fi
9221 done
9222 done
9223 IFS=$as_save_IFS
9224
9225 fi
9226 fi
9227 WINDRES=$ac_cv_prog_WINDRES
9228 if test -n "$WINDRES"; then
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9230 $as_echo "$WINDRES" >&6; }
9231 else
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9234 fi
9235
9236
9237 fi
9238 test -n "$ac_cv_prog_WINDRES" && break
9239 done
9240
9241 if test -z "$ac_cv_prog_WINDRES" ; then
9242 set dummy windres
9243 if test $build = $host ; then
9244 WINDRES="$2"
9245 else
9246 WINDRES="${ncn_tool_prefix}$2"
9247 fi
9248 fi
9249
9250
9251
9252 if test -n "$WINDMC"; then
9253 ac_cv_prog_WINDMC=$WINDMC
9254 elif test -n "$ac_cv_prog_WINDMC"; then
9255 WINDMC=$ac_cv_prog_WINDMC
9256 fi
9257
9258 if test -n "$ac_cv_prog_WINDMC"; then
9259 for ncn_progname in windmc; do
9260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9261 set dummy ${ncn_progname}; ac_word=$2
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9263 $as_echo_n "checking for $ac_word... " >&6; }
9264 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 if test -n "$WINDMC"; then
9268 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9269 else
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 for as_dir in $PATH
9272 do
9273 IFS=$as_save_IFS
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
9276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9277 ac_cv_prog_WINDMC="${ncn_progname}"
9278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 break 2
9280 fi
9281 done
9282 done
9283 IFS=$as_save_IFS
9284
9285 fi
9286 fi
9287 WINDMC=$ac_cv_prog_WINDMC
9288 if test -n "$WINDMC"; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9290 $as_echo "$WINDMC" >&6; }
9291 else
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9293 $as_echo "no" >&6; }
9294 fi
9295
9296
9297 done
9298 fi
9299
9300 for ncn_progname in windmc; do
9301 if test -n "$ncn_tool_prefix"; then
9302 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9303 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305 $as_echo_n "checking for $ac_word... " >&6; }
9306 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 if test -n "$WINDMC"; then
9310 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9311 else
9312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313 for as_dir in $PATH
9314 do
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
9317 for ac_exec_ext in '' $ac_executable_extensions; do
9318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9319 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9321 break 2
9322 fi
9323 done
9324 done
9325 IFS=$as_save_IFS
9326
9327 fi
9328 fi
9329 WINDMC=$ac_cv_prog_WINDMC
9330 if test -n "$WINDMC"; then
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9332 $as_echo "$WINDMC" >&6; }
9333 else
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335 $as_echo "no" >&6; }
9336 fi
9337
9338
9339 fi
9340 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9342 set dummy ${ncn_progname}; ac_word=$2
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9344 $as_echo_n "checking for $ac_word... " >&6; }
9345 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 if test -n "$WINDMC"; then
9349 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9350 else
9351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9352 for as_dir in $PATH
9353 do
9354 IFS=$as_save_IFS
9355 test -z "$as_dir" && as_dir=.
9356 for ac_exec_ext in '' $ac_executable_extensions; do
9357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9358 ac_cv_prog_WINDMC="${ncn_progname}"
9359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 break 2
9361 fi
9362 done
9363 done
9364 IFS=$as_save_IFS
9365
9366 fi
9367 fi
9368 WINDMC=$ac_cv_prog_WINDMC
9369 if test -n "$WINDMC"; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9371 $as_echo "$WINDMC" >&6; }
9372 else
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374 $as_echo "no" >&6; }
9375 fi
9376
9377
9378 fi
9379 test -n "$ac_cv_prog_WINDMC" && break
9380 done
9381
9382 if test -z "$ac_cv_prog_WINDMC" ; then
9383 set dummy windmc
9384 if test $build = $host ; then
9385 WINDMC="$2"
9386 else
9387 WINDMC="${ncn_tool_prefix}$2"
9388 fi
9389 fi
9390
9391
9392
9393 if test -n "$OBJCOPY"; then
9394 ac_cv_prog_OBJCOPY=$OBJCOPY
9395 elif test -n "$ac_cv_prog_OBJCOPY"; then
9396 OBJCOPY=$ac_cv_prog_OBJCOPY
9397 fi
9398
9399 if test -n "$ac_cv_prog_OBJCOPY"; then
9400 for ncn_progname in objcopy; do
9401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9402 set dummy ${ncn_progname}; ac_word=$2
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9404 $as_echo_n "checking for $ac_word... " >&6; }
9405 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 if test -n "$OBJCOPY"; then
9409 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9410 else
9411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9412 for as_dir in $PATH
9413 do
9414 IFS=$as_save_IFS
9415 test -z "$as_dir" && as_dir=.
9416 for ac_exec_ext in '' $ac_executable_extensions; do
9417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9418 ac_cv_prog_OBJCOPY="${ncn_progname}"
9419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9420 break 2
9421 fi
9422 done
9423 done
9424 IFS=$as_save_IFS
9425
9426 fi
9427 fi
9428 OBJCOPY=$ac_cv_prog_OBJCOPY
9429 if test -n "$OBJCOPY"; then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9431 $as_echo "$OBJCOPY" >&6; }
9432 else
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9434 $as_echo "no" >&6; }
9435 fi
9436
9437
9438 done
9439 fi
9440
9441 for ncn_progname in objcopy; do
9442 if test -n "$ncn_tool_prefix"; then
9443 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9444 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9446 $as_echo_n "checking for $ac_word... " >&6; }
9447 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 if test -n "$OBJCOPY"; then
9451 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9452 else
9453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9454 for as_dir in $PATH
9455 do
9456 IFS=$as_save_IFS
9457 test -z "$as_dir" && as_dir=.
9458 for ac_exec_ext in '' $ac_executable_extensions; do
9459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9460 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9462 break 2
9463 fi
9464 done
9465 done
9466 IFS=$as_save_IFS
9467
9468 fi
9469 fi
9470 OBJCOPY=$ac_cv_prog_OBJCOPY
9471 if test -n "$OBJCOPY"; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9473 $as_echo "$OBJCOPY" >&6; }
9474 else
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 $as_echo "no" >&6; }
9477 fi
9478
9479
9480 fi
9481 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9482 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9483 set dummy ${ncn_progname}; ac_word=$2
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9485 $as_echo_n "checking for $ac_word... " >&6; }
9486 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 if test -n "$OBJCOPY"; then
9490 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9491 else
9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493 for as_dir in $PATH
9494 do
9495 IFS=$as_save_IFS
9496 test -z "$as_dir" && as_dir=.
9497 for ac_exec_ext in '' $ac_executable_extensions; do
9498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9499 ac_cv_prog_OBJCOPY="${ncn_progname}"
9500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9501 break 2
9502 fi
9503 done
9504 done
9505 IFS=$as_save_IFS
9506
9507 fi
9508 fi
9509 OBJCOPY=$ac_cv_prog_OBJCOPY
9510 if test -n "$OBJCOPY"; then
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9512 $as_echo "$OBJCOPY" >&6; }
9513 else
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 $as_echo "no" >&6; }
9516 fi
9517
9518
9519 fi
9520 test -n "$ac_cv_prog_OBJCOPY" && break
9521 done
9522
9523 if test -z "$ac_cv_prog_OBJCOPY" ; then
9524 set dummy objcopy
9525 if test $build = $host ; then
9526 OBJCOPY="$2"
9527 else
9528 OBJCOPY="${ncn_tool_prefix}$2"
9529 fi
9530 fi
9531
9532
9533
9534 if test -n "$OBJDUMP"; then
9535 ac_cv_prog_OBJDUMP=$OBJDUMP
9536 elif test -n "$ac_cv_prog_OBJDUMP"; then
9537 OBJDUMP=$ac_cv_prog_OBJDUMP
9538 fi
9539
9540 if test -n "$ac_cv_prog_OBJDUMP"; then
9541 for ncn_progname in objdump; do
9542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9543 set dummy ${ncn_progname}; ac_word=$2
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9545 $as_echo_n "checking for $ac_word... " >&6; }
9546 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9547 $as_echo_n "(cached) " >&6
9548 else
9549 if test -n "$OBJDUMP"; then
9550 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9551 else
9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553 for as_dir in $PATH
9554 do
9555 IFS=$as_save_IFS
9556 test -z "$as_dir" && as_dir=.
9557 for ac_exec_ext in '' $ac_executable_extensions; do
9558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9559 ac_cv_prog_OBJDUMP="${ncn_progname}"
9560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9561 break 2
9562 fi
9563 done
9564 done
9565 IFS=$as_save_IFS
9566
9567 fi
9568 fi
9569 OBJDUMP=$ac_cv_prog_OBJDUMP
9570 if test -n "$OBJDUMP"; then
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9572 $as_echo "$OBJDUMP" >&6; }
9573 else
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575 $as_echo "no" >&6; }
9576 fi
9577
9578
9579 done
9580 fi
9581
9582 for ncn_progname in objdump; do
9583 if test -n "$ncn_tool_prefix"; then
9584 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9585 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587 $as_echo_n "checking for $ac_word... " >&6; }
9588 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9589 $as_echo_n "(cached) " >&6
9590 else
9591 if test -n "$OBJDUMP"; then
9592 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9593 else
9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595 for as_dir in $PATH
9596 do
9597 IFS=$as_save_IFS
9598 test -z "$as_dir" && as_dir=.
9599 for ac_exec_ext in '' $ac_executable_extensions; do
9600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9601 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603 break 2
9604 fi
9605 done
9606 done
9607 IFS=$as_save_IFS
9608
9609 fi
9610 fi
9611 OBJDUMP=$ac_cv_prog_OBJDUMP
9612 if test -n "$OBJDUMP"; then
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9614 $as_echo "$OBJDUMP" >&6; }
9615 else
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617 $as_echo "no" >&6; }
9618 fi
9619
9620
9621 fi
9622 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9624 set dummy ${ncn_progname}; ac_word=$2
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9626 $as_echo_n "checking for $ac_word... " >&6; }
9627 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 if test -n "$OBJDUMP"; then
9631 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9632 else
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634 for as_dir in $PATH
9635 do
9636 IFS=$as_save_IFS
9637 test -z "$as_dir" && as_dir=.
9638 for ac_exec_ext in '' $ac_executable_extensions; do
9639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9640 ac_cv_prog_OBJDUMP="${ncn_progname}"
9641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9642 break 2
9643 fi
9644 done
9645 done
9646 IFS=$as_save_IFS
9647
9648 fi
9649 fi
9650 OBJDUMP=$ac_cv_prog_OBJDUMP
9651 if test -n "$OBJDUMP"; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9653 $as_echo "$OBJDUMP" >&6; }
9654 else
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9657 fi
9658
9659
9660 fi
9661 test -n "$ac_cv_prog_OBJDUMP" && break
9662 done
9663
9664 if test -z "$ac_cv_prog_OBJDUMP" ; then
9665 set dummy objdump
9666 if test $build = $host ; then
9667 OBJDUMP="$2"
9668 else
9669 OBJDUMP="${ncn_tool_prefix}$2"
9670 fi
9671 fi
9672
9673
9674
9675
9676
9677
9678 # Target tools.
9679
9680 # Check whether --with-build-time-tools was given.
9681 if test "${with_build_time_tools+set}" = set; then :
9682 withval=$with_build_time_tools; case x"$withval" in
9683 x/*) ;;
9684 *)
9685 with_build_time_tools=
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9687 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9688 ;;
9689 esac
9690 else
9691 with_build_time_tools=
9692 fi
9693
9694
9695
9696
9697 if test -n "$CC_FOR_TARGET"; then
9698 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9699 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9700 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9701 fi
9702
9703 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9704 for ncn_progname in cc gcc; do
9705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9706 set dummy ${ncn_progname}; ac_word=$2
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9708 $as_echo_n "checking for $ac_word... " >&6; }
9709 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712 if test -n "$CC_FOR_TARGET"; then
9713 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9714 else
9715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716 for as_dir in $PATH
9717 do
9718 IFS=$as_save_IFS
9719 test -z "$as_dir" && as_dir=.
9720 for ac_exec_ext in '' $ac_executable_extensions; do
9721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9722 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9724 break 2
9725 fi
9726 done
9727 done
9728 IFS=$as_save_IFS
9729
9730 fi
9731 fi
9732 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9733 if test -n "$CC_FOR_TARGET"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9735 $as_echo "$CC_FOR_TARGET" >&6; }
9736 else
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; }
9739 fi
9740
9741
9742 done
9743 fi
9744
9745 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9746 for ncn_progname in cc gcc; do
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9748 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9749 if test -x $with_build_time_tools/${ncn_progname}; then
9750 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9752 $as_echo "yes" >&6; }
9753 break
9754 else
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9756 $as_echo "no" >&6; }
9757 fi
9758 done
9759 fi
9760
9761 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9762 for ncn_progname in cc gcc; do
9763 if test -n "$ncn_target_tool_prefix"; then
9764 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9765 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9767 $as_echo_n "checking for $ac_word... " >&6; }
9768 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9769 $as_echo_n "(cached) " >&6
9770 else
9771 if test -n "$CC_FOR_TARGET"; then
9772 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9773 else
9774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9775 for as_dir in $PATH
9776 do
9777 IFS=$as_save_IFS
9778 test -z "$as_dir" && as_dir=.
9779 for ac_exec_ext in '' $ac_executable_extensions; do
9780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9781 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9783 break 2
9784 fi
9785 done
9786 done
9787 IFS=$as_save_IFS
9788
9789 fi
9790 fi
9791 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9792 if test -n "$CC_FOR_TARGET"; then
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9794 $as_echo "$CC_FOR_TARGET" >&6; }
9795 else
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797 $as_echo "no" >&6; }
9798 fi
9799
9800
9801 fi
9802 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9803 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9804 set dummy ${ncn_progname}; ac_word=$2
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9806 $as_echo_n "checking for $ac_word... " >&6; }
9807 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 if test -n "$CC_FOR_TARGET"; then
9811 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9812 else
9813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 for as_dir in $PATH
9815 do
9816 IFS=$as_save_IFS
9817 test -z "$as_dir" && as_dir=.
9818 for ac_exec_ext in '' $ac_executable_extensions; do
9819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9820 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822 break 2
9823 fi
9824 done
9825 done
9826 IFS=$as_save_IFS
9827
9828 fi
9829 fi
9830 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9831 if test -n "$CC_FOR_TARGET"; then
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9833 $as_echo "$CC_FOR_TARGET" >&6; }
9834 else
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9836 $as_echo "no" >&6; }
9837 fi
9838
9839
9840 fi
9841 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9842 done
9843 fi
9844
9845 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9846 set dummy cc gcc
9847 if test $build = $target ; then
9848 CC_FOR_TARGET="$2"
9849 else
9850 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9851 fi
9852 else
9853 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9854 fi
9855
9856
9857
9858 if test -n "$CXX_FOR_TARGET"; then
9859 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9860 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9861 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9862 fi
9863
9864 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9865 for ncn_progname in c++ g++ cxx gxx; do
9866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9867 set dummy ${ncn_progname}; ac_word=$2
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869 $as_echo_n "checking for $ac_word... " >&6; }
9870 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9871 $as_echo_n "(cached) " >&6
9872 else
9873 if test -n "$CXX_FOR_TARGET"; then
9874 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9875 else
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 for as_dir in $PATH
9878 do
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 break 2
9886 fi
9887 done
9888 done
9889 IFS=$as_save_IFS
9890
9891 fi
9892 fi
9893 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9894 if test -n "$CXX_FOR_TARGET"; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9896 $as_echo "$CXX_FOR_TARGET" >&6; }
9897 else
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899 $as_echo "no" >&6; }
9900 fi
9901
9902
9903 done
9904 fi
9905
9906 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9907 for ncn_progname in c++ g++ cxx gxx; do
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9909 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9910 if test -x $with_build_time_tools/${ncn_progname}; then
9911 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9913 $as_echo "yes" >&6; }
9914 break
9915 else
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917 $as_echo "no" >&6; }
9918 fi
9919 done
9920 fi
9921
9922 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9923 for ncn_progname in c++ g++ cxx gxx; do
9924 if test -n "$ncn_target_tool_prefix"; then
9925 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9926 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928 $as_echo_n "checking for $ac_word... " >&6; }
9929 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 if test -n "$CXX_FOR_TARGET"; then
9933 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9934 else
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 for as_dir in $PATH
9937 do
9938 IFS=$as_save_IFS
9939 test -z "$as_dir" && as_dir=.
9940 for ac_exec_ext in '' $ac_executable_extensions; do
9941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9942 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9944 break 2
9945 fi
9946 done
9947 done
9948 IFS=$as_save_IFS
9949
9950 fi
9951 fi
9952 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9953 if test -n "$CXX_FOR_TARGET"; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9955 $as_echo "$CXX_FOR_TARGET" >&6; }
9956 else
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9959 fi
9960
9961
9962 fi
9963 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9965 set dummy ${ncn_progname}; ac_word=$2
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967 $as_echo_n "checking for $ac_word... " >&6; }
9968 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 if test -n "$CXX_FOR_TARGET"; then
9972 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9973 else
9974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9975 for as_dir in $PATH
9976 do
9977 IFS=$as_save_IFS
9978 test -z "$as_dir" && as_dir=.
9979 for ac_exec_ext in '' $ac_executable_extensions; do
9980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9981 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9983 break 2
9984 fi
9985 done
9986 done
9987 IFS=$as_save_IFS
9988
9989 fi
9990 fi
9991 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9992 if test -n "$CXX_FOR_TARGET"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9994 $as_echo "$CXX_FOR_TARGET" >&6; }
9995 else
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
9998 fi
9999
10000
10001 fi
10002 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10003 done
10004 fi
10005
10006 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10007 set dummy c++ g++ cxx gxx
10008 if test $build = $target ; then
10009 CXX_FOR_TARGET="$2"
10010 else
10011 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10012 fi
10013 else
10014 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10015 fi
10016
10017
10018
10019 if test -n "$GCC_FOR_TARGET"; then
10020 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10021 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10022 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10023 fi
10024
10025 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10026 for ncn_progname in gcc; do
10027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10028 set dummy ${ncn_progname}; ac_word=$2
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030 $as_echo_n "checking for $ac_word... " >&6; }
10031 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10034 if test -n "$GCC_FOR_TARGET"; then
10035 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10036 else
10037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038 for as_dir in $PATH
10039 do
10040 IFS=$as_save_IFS
10041 test -z "$as_dir" && as_dir=.
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10044 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 break 2
10047 fi
10048 done
10049 done
10050 IFS=$as_save_IFS
10051
10052 fi
10053 fi
10054 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10055 if test -n "$GCC_FOR_TARGET"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10057 $as_echo "$GCC_FOR_TARGET" >&6; }
10058 else
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060 $as_echo "no" >&6; }
10061 fi
10062
10063
10064 done
10065 fi
10066
10067 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10068 for ncn_progname in gcc; do
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10070 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10071 if test -x $with_build_time_tools/${ncn_progname}; then
10072 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10074 $as_echo "yes" >&6; }
10075 break
10076 else
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078 $as_echo "no" >&6; }
10079 fi
10080 done
10081 fi
10082
10083 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10084 for ncn_progname in gcc; do
10085 if test -n "$ncn_target_tool_prefix"; then
10086 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10087 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089 $as_echo_n "checking for $ac_word... " >&6; }
10090 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
10092 else
10093 if test -n "$GCC_FOR_TARGET"; then
10094 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10095 else
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10098 do
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 break 2
10106 fi
10107 done
10108 done
10109 IFS=$as_save_IFS
10110
10111 fi
10112 fi
10113 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10114 if test -n "$GCC_FOR_TARGET"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10116 $as_echo "$GCC_FOR_TARGET" >&6; }
10117 else
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10120 fi
10121
10122
10123 fi
10124 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10126 set dummy ${ncn_progname}; ac_word=$2
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128 $as_echo_n "checking for $ac_word... " >&6; }
10129 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 if test -n "$GCC_FOR_TARGET"; then
10133 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10134 else
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10137 do
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10142 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 break 2
10145 fi
10146 done
10147 done
10148 IFS=$as_save_IFS
10149
10150 fi
10151 fi
10152 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10153 if test -n "$GCC_FOR_TARGET"; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10155 $as_echo "$GCC_FOR_TARGET" >&6; }
10156 else
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10159 fi
10160
10161
10162 fi
10163 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10164 done
10165 fi
10166
10167 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10168 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10169 else
10170 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10171 fi
10172
10173
10174
10175 if test -n "$GCJ_FOR_TARGET"; then
10176 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10177 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10178 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10179 fi
10180
10181 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10182 for ncn_progname in gcj; do
10183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10184 set dummy ${ncn_progname}; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186 $as_echo_n "checking for $ac_word... " >&6; }
10187 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 if test -n "$GCJ_FOR_TARGET"; then
10191 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10192 else
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10195 do
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10200 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 break 2
10203 fi
10204 done
10205 done
10206 IFS=$as_save_IFS
10207
10208 fi
10209 fi
10210 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10211 if test -n "$GCJ_FOR_TARGET"; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10213 $as_echo "$GCJ_FOR_TARGET" >&6; }
10214 else
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10217 fi
10218
10219
10220 done
10221 fi
10222
10223 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10224 for ncn_progname in gcj; do
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10226 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10227 if test -x $with_build_time_tools/${ncn_progname}; then
10228 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10230 $as_echo "yes" >&6; }
10231 break
10232 else
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 $as_echo "no" >&6; }
10235 fi
10236 done
10237 fi
10238
10239 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10240 for ncn_progname in gcj; do
10241 if test -n "$ncn_target_tool_prefix"; then
10242 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10243 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245 $as_echo_n "checking for $ac_word... " >&6; }
10246 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10247 $as_echo_n "(cached) " >&6
10248 else
10249 if test -n "$GCJ_FOR_TARGET"; then
10250 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10251 else
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $PATH
10254 do
10255 IFS=$as_save_IFS
10256 test -z "$as_dir" && as_dir=.
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10259 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10261 break 2
10262 fi
10263 done
10264 done
10265 IFS=$as_save_IFS
10266
10267 fi
10268 fi
10269 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10270 if test -n "$GCJ_FOR_TARGET"; then
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10272 $as_echo "$GCJ_FOR_TARGET" >&6; }
10273 else
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 $as_echo "no" >&6; }
10276 fi
10277
10278
10279 fi
10280 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10282 set dummy ${ncn_progname}; ac_word=$2
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284 $as_echo_n "checking for $ac_word... " >&6; }
10285 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10288 if test -n "$GCJ_FOR_TARGET"; then
10289 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10290 else
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10293 do
10294 IFS=$as_save_IFS
10295 test -z "$as_dir" && as_dir=.
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10298 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10300 break 2
10301 fi
10302 done
10303 done
10304 IFS=$as_save_IFS
10305
10306 fi
10307 fi
10308 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10309 if test -n "$GCJ_FOR_TARGET"; then
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10311 $as_echo "$GCJ_FOR_TARGET" >&6; }
10312 else
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314 $as_echo "no" >&6; }
10315 fi
10316
10317
10318 fi
10319 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10320 done
10321 fi
10322
10323 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10324 set dummy gcj
10325 if test $build = $target ; then
10326 GCJ_FOR_TARGET="$2"
10327 else
10328 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10329 fi
10330 else
10331 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10332 fi
10333
10334
10335
10336 if test -n "$GFORTRAN_FOR_TARGET"; then
10337 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10338 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10339 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10340 fi
10341
10342 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10343 for ncn_progname in gfortran; do
10344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10345 set dummy ${ncn_progname}; ac_word=$2
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347 $as_echo_n "checking for $ac_word... " >&6; }
10348 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10349 $as_echo_n "(cached) " >&6
10350 else
10351 if test -n "$GFORTRAN_FOR_TARGET"; then
10352 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10353 else
10354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10356 do
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10361 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10364 fi
10365 done
10366 done
10367 IFS=$as_save_IFS
10368
10369 fi
10370 fi
10371 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10372 if test -n "$GFORTRAN_FOR_TARGET"; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10374 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10375 else
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377 $as_echo "no" >&6; }
10378 fi
10379
10380
10381 done
10382 fi
10383
10384 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10385 for ncn_progname in gfortran; do
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10387 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10388 if test -x $with_build_time_tools/${ncn_progname}; then
10389 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10391 $as_echo "yes" >&6; }
10392 break
10393 else
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395 $as_echo "no" >&6; }
10396 fi
10397 done
10398 fi
10399
10400 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10401 for ncn_progname in gfortran; do
10402 if test -n "$ncn_target_tool_prefix"; then
10403 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10404 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406 $as_echo_n "checking for $ac_word... " >&6; }
10407 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 if test -n "$GFORTRAN_FOR_TARGET"; then
10411 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10412 else
10413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414 for as_dir in $PATH
10415 do
10416 IFS=$as_save_IFS
10417 test -z "$as_dir" && as_dir=.
10418 for ac_exec_ext in '' $ac_executable_extensions; do
10419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10420 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10422 break 2
10423 fi
10424 done
10425 done
10426 IFS=$as_save_IFS
10427
10428 fi
10429 fi
10430 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10431 if test -n "$GFORTRAN_FOR_TARGET"; then
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10433 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10434 else
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; }
10437 fi
10438
10439
10440 fi
10441 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10443 set dummy ${ncn_progname}; ac_word=$2
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10445 $as_echo_n "checking for $ac_word... " >&6; }
10446 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 if test -n "$GFORTRAN_FOR_TARGET"; then
10450 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10451 else
10452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10453 for as_dir in $PATH
10454 do
10455 IFS=$as_save_IFS
10456 test -z "$as_dir" && as_dir=.
10457 for ac_exec_ext in '' $ac_executable_extensions; do
10458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10459 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10461 break 2
10462 fi
10463 done
10464 done
10465 IFS=$as_save_IFS
10466
10467 fi
10468 fi
10469 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10470 if test -n "$GFORTRAN_FOR_TARGET"; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10472 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10473 else
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10475 $as_echo "no" >&6; }
10476 fi
10477
10478
10479 fi
10480 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10481 done
10482 fi
10483
10484 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10485 set dummy gfortran
10486 if test $build = $target ; then
10487 GFORTRAN_FOR_TARGET="$2"
10488 else
10489 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10490 fi
10491 else
10492 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10493 fi
10494
10495
10496
10497 if test -n "$GOC_FOR_TARGET"; then
10498 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10499 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10500 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10501 fi
10502
10503 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10504 for ncn_progname in gccgo; do
10505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10506 set dummy ${ncn_progname}; ac_word=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 if test -n "$GOC_FOR_TARGET"; then
10513 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10514 else
10515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 for as_dir in $PATH
10517 do
10518 IFS=$as_save_IFS
10519 test -z "$as_dir" && as_dir=.
10520 for ac_exec_ext in '' $ac_executable_extensions; do
10521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10522 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10524 break 2
10525 fi
10526 done
10527 done
10528 IFS=$as_save_IFS
10529
10530 fi
10531 fi
10532 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10533 if test -n "$GOC_FOR_TARGET"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10535 $as_echo "$GOC_FOR_TARGET" >&6; }
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10539 fi
10540
10541
10542 done
10543 fi
10544
10545 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10546 for ncn_progname in gccgo; do
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10548 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10549 if test -x $with_build_time_tools/${ncn_progname}; then
10550 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10552 $as_echo "yes" >&6; }
10553 break
10554 else
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }
10557 fi
10558 done
10559 fi
10560
10561 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10562 for ncn_progname in gccgo; do
10563 if test -n "$ncn_target_tool_prefix"; then
10564 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10565 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567 $as_echo_n "checking for $ac_word... " >&6; }
10568 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 if test -n "$GOC_FOR_TARGET"; then
10572 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10573 else
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10576 do
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10581 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10584 fi
10585 done
10586 done
10587 IFS=$as_save_IFS
10588
10589 fi
10590 fi
10591 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10592 if test -n "$GOC_FOR_TARGET"; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10594 $as_echo "$GOC_FOR_TARGET" >&6; }
10595 else
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597 $as_echo "no" >&6; }
10598 fi
10599
10600
10601 fi
10602 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10604 set dummy ${ncn_progname}; ac_word=$2
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10606 $as_echo_n "checking for $ac_word... " >&6; }
10607 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10608 $as_echo_n "(cached) " >&6
10609 else
10610 if test -n "$GOC_FOR_TARGET"; then
10611 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10612 else
10613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10614 for as_dir in $PATH
10615 do
10616 IFS=$as_save_IFS
10617 test -z "$as_dir" && as_dir=.
10618 for ac_exec_ext in '' $ac_executable_extensions; do
10619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10620 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10622 break 2
10623 fi
10624 done
10625 done
10626 IFS=$as_save_IFS
10627
10628 fi
10629 fi
10630 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10631 if test -n "$GOC_FOR_TARGET"; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10633 $as_echo "$GOC_FOR_TARGET" >&6; }
10634 else
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; }
10637 fi
10638
10639
10640 fi
10641 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10642 done
10643 fi
10644
10645 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10646 set dummy gccgo
10647 if test $build = $target ; then
10648 GOC_FOR_TARGET="$2"
10649 else
10650 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10651 fi
10652 else
10653 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10654 fi
10655
10656
10657
10658 cat > conftest.c << \EOF
10659 #ifdef __GNUC__
10660 gcc_yay;
10661 #endif
10662 EOF
10663 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10664 have_gcc_for_target=yes
10665 else
10666 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10667 have_gcc_for_target=no
10668 fi
10669 rm conftest.c
10670
10671
10672
10673
10674 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10675 if test -n "$with_build_time_tools"; then
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10677 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10678 if test -x $with_build_time_tools/ar; then
10679 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10680 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10682 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10686 fi
10687 elif test $build != $host && test $have_gcc_for_target = yes; then
10688 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10689 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10690 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10691 fi
10692 fi
10693 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10694 # Extract the first word of "ar", so it can be a program name with args.
10695 set dummy ar; ac_word=$2
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697 $as_echo_n "checking for $ac_word... " >&6; }
10698 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 case $AR_FOR_TARGET in
10702 [\\/]* | ?:[\\/]*)
10703 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10704 ;;
10705 *)
10706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707 for as_dir in $gcc_cv_tool_dirs
10708 do
10709 IFS=$as_save_IFS
10710 test -z "$as_dir" && as_dir=.
10711 for ac_exec_ext in '' $ac_executable_extensions; do
10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10713 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10715 break 2
10716 fi
10717 done
10718 done
10719 IFS=$as_save_IFS
10720
10721 ;;
10722 esac
10723 fi
10724 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10725 if test -n "$AR_FOR_TARGET"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10727 $as_echo "$AR_FOR_TARGET" >&6; }
10728 else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730 $as_echo "no" >&6; }
10731 fi
10732
10733
10734 fi
10735 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10736
10737
10738 if test -n "$AR_FOR_TARGET"; then
10739 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10740 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10741 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10742 fi
10743
10744 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10745 for ncn_progname in ar; do
10746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10747 set dummy ${ncn_progname}; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 if test -n "$AR_FOR_TARGET"; then
10754 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10755 else
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10758 do
10759 IFS=$as_save_IFS
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10763 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10765 break 2
10766 fi
10767 done
10768 done
10769 IFS=$as_save_IFS
10770
10771 fi
10772 fi
10773 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10774 if test -n "$AR_FOR_TARGET"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10776 $as_echo "$AR_FOR_TARGET" >&6; }
10777 else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; }
10780 fi
10781
10782
10783 done
10784 fi
10785
10786 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10787 for ncn_progname in ar; do
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10789 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10790 if test -x $with_build_time_tools/${ncn_progname}; then
10791 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10793 $as_echo "yes" >&6; }
10794 break
10795 else
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10797 $as_echo "no" >&6; }
10798 fi
10799 done
10800 fi
10801
10802 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10803 for ncn_progname in ar; do
10804 if test -n "$ncn_target_tool_prefix"; then
10805 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10806 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 $as_echo_n "checking for $ac_word... " >&6; }
10809 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 if test -n "$AR_FOR_TARGET"; then
10813 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10814 else
10815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816 for as_dir in $PATH
10817 do
10818 IFS=$as_save_IFS
10819 test -z "$as_dir" && as_dir=.
10820 for ac_exec_ext in '' $ac_executable_extensions; do
10821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10822 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 break 2
10825 fi
10826 done
10827 done
10828 IFS=$as_save_IFS
10829
10830 fi
10831 fi
10832 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10833 if test -n "$AR_FOR_TARGET"; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10835 $as_echo "$AR_FOR_TARGET" >&6; }
10836 else
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10838 $as_echo "no" >&6; }
10839 fi
10840
10841
10842 fi
10843 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10845 set dummy ${ncn_progname}; ac_word=$2
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10847 $as_echo_n "checking for $ac_word... " >&6; }
10848 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10849 $as_echo_n "(cached) " >&6
10850 else
10851 if test -n "$AR_FOR_TARGET"; then
10852 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10853 else
10854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855 for as_dir in $PATH
10856 do
10857 IFS=$as_save_IFS
10858 test -z "$as_dir" && as_dir=.
10859 for ac_exec_ext in '' $ac_executable_extensions; do
10860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10861 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10863 break 2
10864 fi
10865 done
10866 done
10867 IFS=$as_save_IFS
10868
10869 fi
10870 fi
10871 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10872 if test -n "$AR_FOR_TARGET"; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10874 $as_echo "$AR_FOR_TARGET" >&6; }
10875 else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 $as_echo "no" >&6; }
10878 fi
10879
10880
10881 fi
10882 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10883 done
10884 fi
10885
10886 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10887 set dummy ar
10888 if test $build = $target ; then
10889 AR_FOR_TARGET="$2"
10890 else
10891 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10892 fi
10893 else
10894 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10895 fi
10896
10897 else
10898 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10899 fi
10900
10901
10902
10903
10904 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10905 if test -n "$with_build_time_tools"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10907 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10908 if test -x $with_build_time_tools/as; then
10909 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10910 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10912 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10916 fi
10917 elif test $build != $host && test $have_gcc_for_target = yes; then
10918 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10919 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10920 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10921 fi
10922 fi
10923 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10924 # Extract the first word of "as", so it can be a program name with args.
10925 set dummy as; ac_word=$2
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10927 $as_echo_n "checking for $ac_word... " >&6; }
10928 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 case $AS_FOR_TARGET in
10932 [\\/]* | ?:[\\/]*)
10933 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10934 ;;
10935 *)
10936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937 for as_dir in $gcc_cv_tool_dirs
10938 do
10939 IFS=$as_save_IFS
10940 test -z "$as_dir" && as_dir=.
10941 for ac_exec_ext in '' $ac_executable_extensions; do
10942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10943 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945 break 2
10946 fi
10947 done
10948 done
10949 IFS=$as_save_IFS
10950
10951 ;;
10952 esac
10953 fi
10954 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10955 if test -n "$AS_FOR_TARGET"; then
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10957 $as_echo "$AS_FOR_TARGET" >&6; }
10958 else
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10960 $as_echo "no" >&6; }
10961 fi
10962
10963
10964 fi
10965 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10966
10967
10968 if test -n "$AS_FOR_TARGET"; then
10969 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10970 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10971 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10972 fi
10973
10974 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10975 for ncn_progname in as; do
10976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10977 set dummy ${ncn_progname}; ac_word=$2
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979 $as_echo_n "checking for $ac_word... " >&6; }
10980 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 if test -n "$AS_FOR_TARGET"; then
10984 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10985 else
10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987 for as_dir in $PATH
10988 do
10989 IFS=$as_save_IFS
10990 test -z "$as_dir" && as_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
10992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10993 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 break 2
10996 fi
10997 done
10998 done
10999 IFS=$as_save_IFS
11000
11001 fi
11002 fi
11003 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11004 if test -n "$AS_FOR_TARGET"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11006 $as_echo "$AS_FOR_TARGET" >&6; }
11007 else
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009 $as_echo "no" >&6; }
11010 fi
11011
11012
11013 done
11014 fi
11015
11016 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11017 for ncn_progname in as; do
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11019 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11020 if test -x $with_build_time_tools/${ncn_progname}; then
11021 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11023 $as_echo "yes" >&6; }
11024 break
11025 else
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11027 $as_echo "no" >&6; }
11028 fi
11029 done
11030 fi
11031
11032 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11033 for ncn_progname in as; do
11034 if test -n "$ncn_target_tool_prefix"; then
11035 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11036 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038 $as_echo_n "checking for $ac_word... " >&6; }
11039 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 if test -n "$AS_FOR_TARGET"; then
11043 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11044 else
11045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046 for as_dir in $PATH
11047 do
11048 IFS=$as_save_IFS
11049 test -z "$as_dir" && as_dir=.
11050 for ac_exec_ext in '' $ac_executable_extensions; do
11051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11052 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11054 break 2
11055 fi
11056 done
11057 done
11058 IFS=$as_save_IFS
11059
11060 fi
11061 fi
11062 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11063 if test -n "$AS_FOR_TARGET"; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11065 $as_echo "$AS_FOR_TARGET" >&6; }
11066 else
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068 $as_echo "no" >&6; }
11069 fi
11070
11071
11072 fi
11073 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11075 set dummy ${ncn_progname}; ac_word=$2
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077 $as_echo_n "checking for $ac_word... " >&6; }
11078 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11079 $as_echo_n "(cached) " >&6
11080 else
11081 if test -n "$AS_FOR_TARGET"; then
11082 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11083 else
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11086 do
11087 IFS=$as_save_IFS
11088 test -z "$as_dir" && as_dir=.
11089 for ac_exec_ext in '' $ac_executable_extensions; do
11090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11091 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11093 break 2
11094 fi
11095 done
11096 done
11097 IFS=$as_save_IFS
11098
11099 fi
11100 fi
11101 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11102 if test -n "$AS_FOR_TARGET"; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11104 $as_echo "$AS_FOR_TARGET" >&6; }
11105 else
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107 $as_echo "no" >&6; }
11108 fi
11109
11110
11111 fi
11112 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11113 done
11114 fi
11115
11116 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11117 set dummy as
11118 if test $build = $target ; then
11119 AS_FOR_TARGET="$2"
11120 else
11121 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11122 fi
11123 else
11124 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11125 fi
11126
11127 else
11128 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11129 fi
11130
11131
11132
11133
11134 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11135 if test -n "$with_build_time_tools"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11137 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11138 if test -x $with_build_time_tools/dlltool; then
11139 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11140 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11142 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11146 fi
11147 elif test $build != $host && test $have_gcc_for_target = yes; then
11148 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11149 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11150 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11151 fi
11152 fi
11153 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11154 # Extract the first word of "dlltool", so it can be a program name with args.
11155 set dummy dlltool; ac_word=$2
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157 $as_echo_n "checking for $ac_word... " >&6; }
11158 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11159 $as_echo_n "(cached) " >&6
11160 else
11161 case $DLLTOOL_FOR_TARGET in
11162 [\\/]* | ?:[\\/]*)
11163 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11164 ;;
11165 *)
11166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11167 for as_dir in $gcc_cv_tool_dirs
11168 do
11169 IFS=$as_save_IFS
11170 test -z "$as_dir" && as_dir=.
11171 for ac_exec_ext in '' $ac_executable_extensions; do
11172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11173 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11175 break 2
11176 fi
11177 done
11178 done
11179 IFS=$as_save_IFS
11180
11181 ;;
11182 esac
11183 fi
11184 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11185 if test -n "$DLLTOOL_FOR_TARGET"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11187 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11188 else
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11191 fi
11192
11193
11194 fi
11195 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11196
11197
11198 if test -n "$DLLTOOL_FOR_TARGET"; then
11199 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11200 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11201 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11202 fi
11203
11204 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11205 for ncn_progname in dlltool; do
11206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11207 set dummy ${ncn_progname}; ac_word=$2
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11209 $as_echo_n "checking for $ac_word... " >&6; }
11210 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11211 $as_echo_n "(cached) " >&6
11212 else
11213 if test -n "$DLLTOOL_FOR_TARGET"; then
11214 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11215 else
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11226 fi
11227 done
11228 done
11229 IFS=$as_save_IFS
11230
11231 fi
11232 fi
11233 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11234 if test -n "$DLLTOOL_FOR_TARGET"; then
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11236 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11237 else
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11240 fi
11241
11242
11243 done
11244 fi
11245
11246 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11247 for ncn_progname in dlltool; do
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11249 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11250 if test -x $with_build_time_tools/${ncn_progname}; then
11251 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11253 $as_echo "yes" >&6; }
11254 break
11255 else
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11258 fi
11259 done
11260 fi
11261
11262 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11263 for ncn_progname in dlltool; do
11264 if test -n "$ncn_target_tool_prefix"; then
11265 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11266 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11268 $as_echo_n "checking for $ac_word... " >&6; }
11269 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11270 $as_echo_n "(cached) " >&6
11271 else
11272 if test -n "$DLLTOOL_FOR_TARGET"; then
11273 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11274 else
11275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276 for as_dir in $PATH
11277 do
11278 IFS=$as_save_IFS
11279 test -z "$as_dir" && as_dir=.
11280 for ac_exec_ext in '' $ac_executable_extensions; do
11281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11282 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11284 break 2
11285 fi
11286 done
11287 done
11288 IFS=$as_save_IFS
11289
11290 fi
11291 fi
11292 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11293 if test -n "$DLLTOOL_FOR_TARGET"; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11295 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11296 else
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11299 fi
11300
11301
11302 fi
11303 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11304 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11305 set dummy ${ncn_progname}; ac_word=$2
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11307 $as_echo_n "checking for $ac_word... " >&6; }
11308 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11309 $as_echo_n "(cached) " >&6
11310 else
11311 if test -n "$DLLTOOL_FOR_TARGET"; then
11312 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11313 else
11314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315 for as_dir in $PATH
11316 do
11317 IFS=$as_save_IFS
11318 test -z "$as_dir" && as_dir=.
11319 for ac_exec_ext in '' $ac_executable_extensions; do
11320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11321 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11323 break 2
11324 fi
11325 done
11326 done
11327 IFS=$as_save_IFS
11328
11329 fi
11330 fi
11331 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11332 if test -n "$DLLTOOL_FOR_TARGET"; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11334 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11335 else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11338 fi
11339
11340
11341 fi
11342 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11343 done
11344 fi
11345
11346 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11347 set dummy dlltool
11348 if test $build = $target ; then
11349 DLLTOOL_FOR_TARGET="$2"
11350 else
11351 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11352 fi
11353 else
11354 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11355 fi
11356
11357 else
11358 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11359 fi
11360
11361
11362
11363
11364 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11365 if test -n "$with_build_time_tools"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11367 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11368 if test -x $with_build_time_tools/ld; then
11369 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11370 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11372 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11373 else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11376 fi
11377 elif test $build != $host && test $have_gcc_for_target = yes; then
11378 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11379 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11380 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11381 fi
11382 fi
11383 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11384 # Extract the first word of "ld", so it can be a program name with args.
11385 set dummy ld; ac_word=$2
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11387 $as_echo_n "checking for $ac_word... " >&6; }
11388 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11389 $as_echo_n "(cached) " >&6
11390 else
11391 case $LD_FOR_TARGET in
11392 [\\/]* | ?:[\\/]*)
11393 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11394 ;;
11395 *)
11396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397 for as_dir in $gcc_cv_tool_dirs
11398 do
11399 IFS=$as_save_IFS
11400 test -z "$as_dir" && as_dir=.
11401 for ac_exec_ext in '' $ac_executable_extensions; do
11402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11403 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11405 break 2
11406 fi
11407 done
11408 done
11409 IFS=$as_save_IFS
11410
11411 ;;
11412 esac
11413 fi
11414 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11415 if test -n "$LD_FOR_TARGET"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11417 $as_echo "$LD_FOR_TARGET" >&6; }
11418 else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11421 fi
11422
11423
11424 fi
11425 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11426
11427
11428 if test -n "$LD_FOR_TARGET"; then
11429 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11430 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11431 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11432 fi
11433
11434 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11435 for ncn_progname in ld; do
11436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11437 set dummy ${ncn_progname}; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 if test -n "$LD_FOR_TARGET"; then
11444 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11445 else
11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 for as_dir in $PATH
11448 do
11449 IFS=$as_save_IFS
11450 test -z "$as_dir" && as_dir=.
11451 for ac_exec_ext in '' $ac_executable_extensions; do
11452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11453 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11455 break 2
11456 fi
11457 done
11458 done
11459 IFS=$as_save_IFS
11460
11461 fi
11462 fi
11463 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11464 if test -n "$LD_FOR_TARGET"; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11466 $as_echo "$LD_FOR_TARGET" >&6; }
11467 else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11470 fi
11471
11472
11473 done
11474 fi
11475
11476 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11477 for ncn_progname in ld; do
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11479 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11480 if test -x $with_build_time_tools/${ncn_progname}; then
11481 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11483 $as_echo "yes" >&6; }
11484 break
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11488 fi
11489 done
11490 fi
11491
11492 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11493 for ncn_progname in ld; do
11494 if test -n "$ncn_target_tool_prefix"; then
11495 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11496 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11498 $as_echo_n "checking for $ac_word... " >&6; }
11499 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 if test -n "$LD_FOR_TARGET"; then
11503 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11504 else
11505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11506 for as_dir in $PATH
11507 do
11508 IFS=$as_save_IFS
11509 test -z "$as_dir" && as_dir=.
11510 for ac_exec_ext in '' $ac_executable_extensions; do
11511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11512 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11514 break 2
11515 fi
11516 done
11517 done
11518 IFS=$as_save_IFS
11519
11520 fi
11521 fi
11522 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11523 if test -n "$LD_FOR_TARGET"; then
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11525 $as_echo "$LD_FOR_TARGET" >&6; }
11526 else
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528 $as_echo "no" >&6; }
11529 fi
11530
11531
11532 fi
11533 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11535 set dummy ${ncn_progname}; ac_word=$2
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11537 $as_echo_n "checking for $ac_word... " >&6; }
11538 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
11540 else
11541 if test -n "$LD_FOR_TARGET"; then
11542 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11543 else
11544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545 for as_dir in $PATH
11546 do
11547 IFS=$as_save_IFS
11548 test -z "$as_dir" && as_dir=.
11549 for ac_exec_ext in '' $ac_executable_extensions; do
11550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11551 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11553 break 2
11554 fi
11555 done
11556 done
11557 IFS=$as_save_IFS
11558
11559 fi
11560 fi
11561 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11562 if test -n "$LD_FOR_TARGET"; then
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11564 $as_echo "$LD_FOR_TARGET" >&6; }
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11568 fi
11569
11570
11571 fi
11572 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11573 done
11574 fi
11575
11576 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11577 set dummy ld
11578 if test $build = $target ; then
11579 LD_FOR_TARGET="$2"
11580 else
11581 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11582 fi
11583 else
11584 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11585 fi
11586
11587 else
11588 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11589 fi
11590
11591
11592
11593
11594 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11595 if test -n "$with_build_time_tools"; then
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11597 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11598 if test -x $with_build_time_tools/lipo; then
11599 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11600 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11602 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11603 else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11606 fi
11607 elif test $build != $host && test $have_gcc_for_target = yes; then
11608 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11609 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11610 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11611 fi
11612 fi
11613 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11614 # Extract the first word of "lipo", so it can be a program name with args.
11615 set dummy lipo; ac_word=$2
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11617 $as_echo_n "checking for $ac_word... " >&6; }
11618 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 case $LIPO_FOR_TARGET in
11622 [\\/]* | ?:[\\/]*)
11623 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11624 ;;
11625 *)
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $gcc_cv_tool_dirs
11628 do
11629 IFS=$as_save_IFS
11630 test -z "$as_dir" && as_dir=.
11631 for ac_exec_ext in '' $ac_executable_extensions; do
11632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11633 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11635 break 2
11636 fi
11637 done
11638 done
11639 IFS=$as_save_IFS
11640
11641 ;;
11642 esac
11643 fi
11644 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11645 if test -n "$LIPO_FOR_TARGET"; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11647 $as_echo "$LIPO_FOR_TARGET" >&6; }
11648 else
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11651 fi
11652
11653
11654 fi
11655 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11656
11657
11658 if test -n "$LIPO_FOR_TARGET"; then
11659 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11660 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11661 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11662 fi
11663
11664 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11665 for ncn_progname in lipo; do
11666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11667 set dummy ${ncn_progname}; ac_word=$2
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11669 $as_echo_n "checking for $ac_word... " >&6; }
11670 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11671 $as_echo_n "(cached) " >&6
11672 else
11673 if test -n "$LIPO_FOR_TARGET"; then
11674 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11675 else
11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677 for as_dir in $PATH
11678 do
11679 IFS=$as_save_IFS
11680 test -z "$as_dir" && as_dir=.
11681 for ac_exec_ext in '' $ac_executable_extensions; do
11682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11683 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11685 break 2
11686 fi
11687 done
11688 done
11689 IFS=$as_save_IFS
11690
11691 fi
11692 fi
11693 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11694 if test -n "$LIPO_FOR_TARGET"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11696 $as_echo "$LIPO_FOR_TARGET" >&6; }
11697 else
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11700 fi
11701
11702
11703 done
11704 fi
11705
11706 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11707 for ncn_progname in lipo; do
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11709 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11710 if test -x $with_build_time_tools/${ncn_progname}; then
11711 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11713 $as_echo "yes" >&6; }
11714 break
11715 else
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11718 fi
11719 done
11720 fi
11721
11722 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11723 for ncn_progname in lipo; do
11724 if test -n "$ncn_target_tool_prefix"; then
11725 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11726 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11728 $as_echo_n "checking for $ac_word... " >&6; }
11729 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11730 $as_echo_n "(cached) " >&6
11731 else
11732 if test -n "$LIPO_FOR_TARGET"; then
11733 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11734 else
11735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736 for as_dir in $PATH
11737 do
11738 IFS=$as_save_IFS
11739 test -z "$as_dir" && as_dir=.
11740 for ac_exec_ext in '' $ac_executable_extensions; do
11741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11742 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11744 break 2
11745 fi
11746 done
11747 done
11748 IFS=$as_save_IFS
11749
11750 fi
11751 fi
11752 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11753 if test -n "$LIPO_FOR_TARGET"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11755 $as_echo "$LIPO_FOR_TARGET" >&6; }
11756 else
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11759 fi
11760
11761
11762 fi
11763 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11765 set dummy ${ncn_progname}; ac_word=$2
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11767 $as_echo_n "checking for $ac_word... " >&6; }
11768 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 if test -n "$LIPO_FOR_TARGET"; then
11772 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11773 else
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11776 do
11777 IFS=$as_save_IFS
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11781 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783 break 2
11784 fi
11785 done
11786 done
11787 IFS=$as_save_IFS
11788
11789 fi
11790 fi
11791 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11792 if test -n "$LIPO_FOR_TARGET"; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11794 $as_echo "$LIPO_FOR_TARGET" >&6; }
11795 else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11798 fi
11799
11800
11801 fi
11802 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11803 done
11804 fi
11805
11806 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11807 set dummy lipo
11808 if test $build = $target ; then
11809 LIPO_FOR_TARGET="$2"
11810 else
11811 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11812 fi
11813 else
11814 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11815 fi
11816
11817 else
11818 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11819 fi
11820
11821
11822
11823
11824 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11825 if test -n "$with_build_time_tools"; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11827 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11828 if test -x $with_build_time_tools/nm; then
11829 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11830 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11832 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11833 else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11836 fi
11837 elif test $build != $host && test $have_gcc_for_target = yes; then
11838 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11839 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11840 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11841 fi
11842 fi
11843 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11844 # Extract the first word of "nm", so it can be a program name with args.
11845 set dummy nm; ac_word=$2
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11847 $as_echo_n "checking for $ac_word... " >&6; }
11848 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11849 $as_echo_n "(cached) " >&6
11850 else
11851 case $NM_FOR_TARGET in
11852 [\\/]* | ?:[\\/]*)
11853 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11854 ;;
11855 *)
11856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857 for as_dir in $gcc_cv_tool_dirs
11858 do
11859 IFS=$as_save_IFS
11860 test -z "$as_dir" && as_dir=.
11861 for ac_exec_ext in '' $ac_executable_extensions; do
11862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11863 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11865 break 2
11866 fi
11867 done
11868 done
11869 IFS=$as_save_IFS
11870
11871 ;;
11872 esac
11873 fi
11874 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11875 if test -n "$NM_FOR_TARGET"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11877 $as_echo "$NM_FOR_TARGET" >&6; }
11878 else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11881 fi
11882
11883
11884 fi
11885 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11886
11887
11888 if test -n "$NM_FOR_TARGET"; then
11889 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11890 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11891 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11892 fi
11893
11894 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11895 for ncn_progname in nm; do
11896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11897 set dummy ${ncn_progname}; ac_word=$2
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899 $as_echo_n "checking for $ac_word... " >&6; }
11900 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11901 $as_echo_n "(cached) " >&6
11902 else
11903 if test -n "$NM_FOR_TARGET"; then
11904 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11905 else
11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907 for as_dir in $PATH
11908 do
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
11912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11913 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915 break 2
11916 fi
11917 done
11918 done
11919 IFS=$as_save_IFS
11920
11921 fi
11922 fi
11923 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11924 if test -n "$NM_FOR_TARGET"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11926 $as_echo "$NM_FOR_TARGET" >&6; }
11927 else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11930 fi
11931
11932
11933 done
11934 fi
11935
11936 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11937 for ncn_progname in nm; do
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11939 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11940 if test -x $with_build_time_tools/${ncn_progname}; then
11941 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11943 $as_echo "yes" >&6; }
11944 break
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11948 fi
11949 done
11950 fi
11951
11952 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11953 for ncn_progname in nm; do
11954 if test -n "$ncn_target_tool_prefix"; then
11955 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11956 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11958 $as_echo_n "checking for $ac_word... " >&6; }
11959 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11960 $as_echo_n "(cached) " >&6
11961 else
11962 if test -n "$NM_FOR_TARGET"; then
11963 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11964 else
11965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966 for as_dir in $PATH
11967 do
11968 IFS=$as_save_IFS
11969 test -z "$as_dir" && as_dir=.
11970 for ac_exec_ext in '' $ac_executable_extensions; do
11971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11972 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11974 break 2
11975 fi
11976 done
11977 done
11978 IFS=$as_save_IFS
11979
11980 fi
11981 fi
11982 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11983 if test -n "$NM_FOR_TARGET"; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11985 $as_echo "$NM_FOR_TARGET" >&6; }
11986 else
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988 $as_echo "no" >&6; }
11989 fi
11990
11991
11992 fi
11993 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11995 set dummy ${ncn_progname}; ac_word=$2
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997 $as_echo_n "checking for $ac_word... " >&6; }
11998 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 if test -n "$NM_FOR_TARGET"; then
12002 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12003 else
12004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005 for as_dir in $PATH
12006 do
12007 IFS=$as_save_IFS
12008 test -z "$as_dir" && as_dir=.
12009 for ac_exec_ext in '' $ac_executable_extensions; do
12010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12011 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12013 break 2
12014 fi
12015 done
12016 done
12017 IFS=$as_save_IFS
12018
12019 fi
12020 fi
12021 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12022 if test -n "$NM_FOR_TARGET"; then
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12024 $as_echo "$NM_FOR_TARGET" >&6; }
12025 else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12028 fi
12029
12030
12031 fi
12032 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12033 done
12034 fi
12035
12036 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12037 set dummy nm
12038 if test $build = $target ; then
12039 NM_FOR_TARGET="$2"
12040 else
12041 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12042 fi
12043 else
12044 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12045 fi
12046
12047 else
12048 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12049 fi
12050
12051
12052
12053
12054 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12055 if test -n "$with_build_time_tools"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12057 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12058 if test -x $with_build_time_tools/objdump; then
12059 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12060 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12062 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12063 else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12066 fi
12067 elif test $build != $host && test $have_gcc_for_target = yes; then
12068 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12069 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12070 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12071 fi
12072 fi
12073 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12074 # Extract the first word of "objdump", so it can be a program name with args.
12075 set dummy objdump; ac_word=$2
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077 $as_echo_n "checking for $ac_word... " >&6; }
12078 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 case $OBJDUMP_FOR_TARGET in
12082 [\\/]* | ?:[\\/]*)
12083 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12084 ;;
12085 *)
12086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087 for as_dir in $gcc_cv_tool_dirs
12088 do
12089 IFS=$as_save_IFS
12090 test -z "$as_dir" && as_dir=.
12091 for ac_exec_ext in '' $ac_executable_extensions; do
12092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12093 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12095 break 2
12096 fi
12097 done
12098 done
12099 IFS=$as_save_IFS
12100
12101 ;;
12102 esac
12103 fi
12104 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12105 if test -n "$OBJDUMP_FOR_TARGET"; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12107 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12108 else
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12111 fi
12112
12113
12114 fi
12115 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12116
12117
12118 if test -n "$OBJDUMP_FOR_TARGET"; then
12119 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12120 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12121 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12122 fi
12123
12124 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12125 for ncn_progname in objdump; do
12126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12127 set dummy ${ncn_progname}; ac_word=$2
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12129 $as_echo_n "checking for $ac_word... " >&6; }
12130 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 if test -n "$OBJDUMP_FOR_TARGET"; then
12134 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12135 else
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12138 do
12139 IFS=$as_save_IFS
12140 test -z "$as_dir" && as_dir=.
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12143 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12145 break 2
12146 fi
12147 done
12148 done
12149 IFS=$as_save_IFS
12150
12151 fi
12152 fi
12153 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12154 if test -n "$OBJDUMP_FOR_TARGET"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12156 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12160 fi
12161
12162
12163 done
12164 fi
12165
12166 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12167 for ncn_progname in objdump; do
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12169 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12170 if test -x $with_build_time_tools/${ncn_progname}; then
12171 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12173 $as_echo "yes" >&6; }
12174 break
12175 else
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177 $as_echo "no" >&6; }
12178 fi
12179 done
12180 fi
12181
12182 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12183 for ncn_progname in objdump; do
12184 if test -n "$ncn_target_tool_prefix"; then
12185 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12186 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192 if test -n "$OBJDUMP_FOR_TARGET"; then
12193 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12194 else
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198 IFS=$as_save_IFS
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12202 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12204 break 2
12205 fi
12206 done
12207 done
12208 IFS=$as_save_IFS
12209
12210 fi
12211 fi
12212 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12213 if test -n "$OBJDUMP_FOR_TARGET"; then
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12215 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; }
12219 fi
12220
12221
12222 fi
12223 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12225 set dummy ${ncn_progname}; ac_word=$2
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12227 $as_echo_n "checking for $ac_word... " >&6; }
12228 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12229 $as_echo_n "(cached) " >&6
12230 else
12231 if test -n "$OBJDUMP_FOR_TARGET"; then
12232 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12233 else
12234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in $PATH
12236 do
12237 IFS=$as_save_IFS
12238 test -z "$as_dir" && as_dir=.
12239 for ac_exec_ext in '' $ac_executable_extensions; do
12240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12241 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243 break 2
12244 fi
12245 done
12246 done
12247 IFS=$as_save_IFS
12248
12249 fi
12250 fi
12251 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12252 if test -n "$OBJDUMP_FOR_TARGET"; then
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12254 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12255 else
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12258 fi
12259
12260
12261 fi
12262 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12263 done
12264 fi
12265
12266 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12267 set dummy objdump
12268 if test $build = $target ; then
12269 OBJDUMP_FOR_TARGET="$2"
12270 else
12271 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12272 fi
12273 else
12274 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12275 fi
12276
12277 else
12278 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12279 fi
12280
12281
12282
12283
12284 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12285 if test -n "$with_build_time_tools"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12287 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12288 if test -x $with_build_time_tools/ranlib; then
12289 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12290 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12292 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12293 else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296 fi
12297 elif test $build != $host && test $have_gcc_for_target = yes; then
12298 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12299 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12300 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12301 fi
12302 fi
12303 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12304 # Extract the first word of "ranlib", so it can be a program name with args.
12305 set dummy ranlib; ac_word=$2
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307 $as_echo_n "checking for $ac_word... " >&6; }
12308 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12309 $as_echo_n "(cached) " >&6
12310 else
12311 case $RANLIB_FOR_TARGET in
12312 [\\/]* | ?:[\\/]*)
12313 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12314 ;;
12315 *)
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $gcc_cv_tool_dirs
12318 do
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12323 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12325 break 2
12326 fi
12327 done
12328 done
12329 IFS=$as_save_IFS
12330
12331 ;;
12332 esac
12333 fi
12334 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12335 if test -n "$RANLIB_FOR_TARGET"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12337 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12338 else
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12341 fi
12342
12343
12344 fi
12345 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12346
12347
12348 if test -n "$RANLIB_FOR_TARGET"; then
12349 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12350 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12351 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12352 fi
12353
12354 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12355 for ncn_progname in ranlib; do
12356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12357 set dummy ${ncn_progname}; ac_word=$2
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359 $as_echo_n "checking for $ac_word... " >&6; }
12360 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 if test -n "$RANLIB_FOR_TARGET"; then
12364 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12365 else
12366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367 for as_dir in $PATH
12368 do
12369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
12371 for ac_exec_ext in '' $ac_executable_extensions; do
12372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12373 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12375 break 2
12376 fi
12377 done
12378 done
12379 IFS=$as_save_IFS
12380
12381 fi
12382 fi
12383 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12384 if test -n "$RANLIB_FOR_TARGET"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12386 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12387 else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12390 fi
12391
12392
12393 done
12394 fi
12395
12396 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12397 for ncn_progname in ranlib; do
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12399 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12400 if test -x $with_build_time_tools/${ncn_progname}; then
12401 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12403 $as_echo "yes" >&6; }
12404 break
12405 else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407 $as_echo "no" >&6; }
12408 fi
12409 done
12410 fi
12411
12412 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12413 for ncn_progname in ranlib; do
12414 if test -n "$ncn_target_tool_prefix"; then
12415 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12416 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418 $as_echo_n "checking for $ac_word... " >&6; }
12419 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12420 $as_echo_n "(cached) " >&6
12421 else
12422 if test -n "$RANLIB_FOR_TARGET"; then
12423 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12424 else
12425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426 for as_dir in $PATH
12427 do
12428 IFS=$as_save_IFS
12429 test -z "$as_dir" && as_dir=.
12430 for ac_exec_ext in '' $ac_executable_extensions; do
12431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12432 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434 break 2
12435 fi
12436 done
12437 done
12438 IFS=$as_save_IFS
12439
12440 fi
12441 fi
12442 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12443 if test -n "$RANLIB_FOR_TARGET"; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12445 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12446 else
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12449 fi
12450
12451
12452 fi
12453 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12455 set dummy ${ncn_progname}; ac_word=$2
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457 $as_echo_n "checking for $ac_word... " >&6; }
12458 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12459 $as_echo_n "(cached) " >&6
12460 else
12461 if test -n "$RANLIB_FOR_TARGET"; then
12462 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12463 else
12464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12465 for as_dir in $PATH
12466 do
12467 IFS=$as_save_IFS
12468 test -z "$as_dir" && as_dir=.
12469 for ac_exec_ext in '' $ac_executable_extensions; do
12470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12471 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12473 break 2
12474 fi
12475 done
12476 done
12477 IFS=$as_save_IFS
12478
12479 fi
12480 fi
12481 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12482 if test -n "$RANLIB_FOR_TARGET"; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12484 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12485 else
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487 $as_echo "no" >&6; }
12488 fi
12489
12490
12491 fi
12492 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12493 done
12494 fi
12495
12496 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12497 set dummy ranlib
12498 if test $build = $target ; then
12499 RANLIB_FOR_TARGET="$2"
12500 else
12501 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12502 fi
12503 else
12504 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12505 fi
12506
12507 else
12508 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12509 fi
12510
12511
12512
12513
12514 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12515 if test -n "$with_build_time_tools"; then
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12517 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12518 if test -x $with_build_time_tools/strip; then
12519 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12520 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12522 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12523 else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12526 fi
12527 elif test $build != $host && test $have_gcc_for_target = yes; then
12528 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12529 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12530 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12531 fi
12532 fi
12533 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12534 # Extract the first word of "strip", so it can be a program name with args.
12535 set dummy strip; ac_word=$2
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537 $as_echo_n "checking for $ac_word... " >&6; }
12538 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 case $STRIP_FOR_TARGET in
12542 [\\/]* | ?:[\\/]*)
12543 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12544 ;;
12545 *)
12546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12547 for as_dir in $gcc_cv_tool_dirs
12548 do
12549 IFS=$as_save_IFS
12550 test -z "$as_dir" && as_dir=.
12551 for ac_exec_ext in '' $ac_executable_extensions; do
12552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12553 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12555 break 2
12556 fi
12557 done
12558 done
12559 IFS=$as_save_IFS
12560
12561 ;;
12562 esac
12563 fi
12564 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12565 if test -n "$STRIP_FOR_TARGET"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12567 $as_echo "$STRIP_FOR_TARGET" >&6; }
12568 else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12571 fi
12572
12573
12574 fi
12575 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12576
12577
12578 if test -n "$STRIP_FOR_TARGET"; then
12579 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12580 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12581 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12582 fi
12583
12584 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12585 for ncn_progname in strip; do
12586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12587 set dummy ${ncn_progname}; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 if test -n "$STRIP_FOR_TARGET"; then
12594 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12595 else
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12598 do
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12603 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12606 fi
12607 done
12608 done
12609 IFS=$as_save_IFS
12610
12611 fi
12612 fi
12613 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12614 if test -n "$STRIP_FOR_TARGET"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12616 $as_echo "$STRIP_FOR_TARGET" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12620 fi
12621
12622
12623 done
12624 fi
12625
12626 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12627 for ncn_progname in strip; do
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12629 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12630 if test -x $with_build_time_tools/${ncn_progname}; then
12631 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633 $as_echo "yes" >&6; }
12634 break
12635 else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637 $as_echo "no" >&6; }
12638 fi
12639 done
12640 fi
12641
12642 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12643 for ncn_progname in strip; do
12644 if test -n "$ncn_target_tool_prefix"; then
12645 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12646 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648 $as_echo_n "checking for $ac_word... " >&6; }
12649 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12650 $as_echo_n "(cached) " >&6
12651 else
12652 if test -n "$STRIP_FOR_TARGET"; then
12653 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12654 else
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12657 do
12658 IFS=$as_save_IFS
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12662 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12664 break 2
12665 fi
12666 done
12667 done
12668 IFS=$as_save_IFS
12669
12670 fi
12671 fi
12672 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12673 if test -n "$STRIP_FOR_TARGET"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12675 $as_echo "$STRIP_FOR_TARGET" >&6; }
12676 else
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12679 fi
12680
12681
12682 fi
12683 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12685 set dummy ${ncn_progname}; ac_word=$2
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687 $as_echo_n "checking for $ac_word... " >&6; }
12688 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 if test -n "$STRIP_FOR_TARGET"; then
12692 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12693 else
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12696 do
12697 IFS=$as_save_IFS
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12701 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 break 2
12704 fi
12705 done
12706 done
12707 IFS=$as_save_IFS
12708
12709 fi
12710 fi
12711 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12712 if test -n "$STRIP_FOR_TARGET"; then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12714 $as_echo "$STRIP_FOR_TARGET" >&6; }
12715 else
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12718 fi
12719
12720
12721 fi
12722 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12723 done
12724 fi
12725
12726 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12727 set dummy strip
12728 if test $build = $target ; then
12729 STRIP_FOR_TARGET="$2"
12730 else
12731 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12732 fi
12733 else
12734 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12735 fi
12736
12737 else
12738 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12739 fi
12740
12741
12742
12743
12744 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12745 if test -n "$with_build_time_tools"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12747 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12748 if test -x $with_build_time_tools/windres; then
12749 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12750 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12752 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12753 else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755 $as_echo "no" >&6; }
12756 fi
12757 elif test $build != $host && test $have_gcc_for_target = yes; then
12758 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12759 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12760 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12761 fi
12762 fi
12763 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12764 # Extract the first word of "windres", so it can be a program name with args.
12765 set dummy windres; ac_word=$2
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767 $as_echo_n "checking for $ac_word... " >&6; }
12768 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 case $WINDRES_FOR_TARGET in
12772 [\\/]* | ?:[\\/]*)
12773 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12774 ;;
12775 *)
12776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777 for as_dir in $gcc_cv_tool_dirs
12778 do
12779 IFS=$as_save_IFS
12780 test -z "$as_dir" && as_dir=.
12781 for ac_exec_ext in '' $ac_executable_extensions; do
12782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12783 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12785 break 2
12786 fi
12787 done
12788 done
12789 IFS=$as_save_IFS
12790
12791 ;;
12792 esac
12793 fi
12794 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12795 if test -n "$WINDRES_FOR_TARGET"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12797 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12798 else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12801 fi
12802
12803
12804 fi
12805 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12806
12807
12808 if test -n "$WINDRES_FOR_TARGET"; then
12809 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12810 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12811 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12812 fi
12813
12814 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12815 for ncn_progname in windres; do
12816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12817 set dummy ${ncn_progname}; ac_word=$2
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819 $as_echo_n "checking for $ac_word... " >&6; }
12820 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12821 $as_echo_n "(cached) " >&6
12822 else
12823 if test -n "$WINDRES_FOR_TARGET"; then
12824 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12825 else
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12828 do
12829 IFS=$as_save_IFS
12830 test -z "$as_dir" && as_dir=.
12831 for ac_exec_ext in '' $ac_executable_extensions; do
12832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12833 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12835 break 2
12836 fi
12837 done
12838 done
12839 IFS=$as_save_IFS
12840
12841 fi
12842 fi
12843 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12844 if test -n "$WINDRES_FOR_TARGET"; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12846 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12847 else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849 $as_echo "no" >&6; }
12850 fi
12851
12852
12853 done
12854 fi
12855
12856 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12857 for ncn_progname in windres; do
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12859 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12860 if test -x $with_build_time_tools/${ncn_progname}; then
12861 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12863 $as_echo "yes" >&6; }
12864 break
12865 else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12868 fi
12869 done
12870 fi
12871
12872 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12873 for ncn_progname in windres; do
12874 if test -n "$ncn_target_tool_prefix"; then
12875 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12876 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878 $as_echo_n "checking for $ac_word... " >&6; }
12879 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12880 $as_echo_n "(cached) " >&6
12881 else
12882 if test -n "$WINDRES_FOR_TARGET"; then
12883 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12884 else
12885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12887 do
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12892 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 break 2
12895 fi
12896 done
12897 done
12898 IFS=$as_save_IFS
12899
12900 fi
12901 fi
12902 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12903 if test -n "$WINDRES_FOR_TARGET"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12905 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12906 else
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 $as_echo "no" >&6; }
12909 fi
12910
12911
12912 fi
12913 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12915 set dummy ${ncn_progname}; ac_word=$2
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12917 $as_echo_n "checking for $ac_word... " >&6; }
12918 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12919 $as_echo_n "(cached) " >&6
12920 else
12921 if test -n "$WINDRES_FOR_TARGET"; then
12922 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12923 else
12924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925 for as_dir in $PATH
12926 do
12927 IFS=$as_save_IFS
12928 test -z "$as_dir" && as_dir=.
12929 for ac_exec_ext in '' $ac_executable_extensions; do
12930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12931 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12933 break 2
12934 fi
12935 done
12936 done
12937 IFS=$as_save_IFS
12938
12939 fi
12940 fi
12941 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12942 if test -n "$WINDRES_FOR_TARGET"; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12944 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12945 else
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12947 $as_echo "no" >&6; }
12948 fi
12949
12950
12951 fi
12952 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12953 done
12954 fi
12955
12956 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12957 set dummy windres
12958 if test $build = $target ; then
12959 WINDRES_FOR_TARGET="$2"
12960 else
12961 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12962 fi
12963 else
12964 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12965 fi
12966
12967 else
12968 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12969 fi
12970
12971
12972
12973
12974 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12975 if test -n "$with_build_time_tools"; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12977 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12978 if test -x $with_build_time_tools/windmc; then
12979 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12980 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12982 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12983 else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12986 fi
12987 elif test $build != $host && test $have_gcc_for_target = yes; then
12988 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12989 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12990 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12991 fi
12992 fi
12993 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12994 # Extract the first word of "windmc", so it can be a program name with args.
12995 set dummy windmc; ac_word=$2
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997 $as_echo_n "checking for $ac_word... " >&6; }
12998 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12999 $as_echo_n "(cached) " >&6
13000 else
13001 case $WINDMC_FOR_TARGET in
13002 [\\/]* | ?:[\\/]*)
13003 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13004 ;;
13005 *)
13006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007 for as_dir in $gcc_cv_tool_dirs
13008 do
13009 IFS=$as_save_IFS
13010 test -z "$as_dir" && as_dir=.
13011 for ac_exec_ext in '' $ac_executable_extensions; do
13012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13013 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13015 break 2
13016 fi
13017 done
13018 done
13019 IFS=$as_save_IFS
13020
13021 ;;
13022 esac
13023 fi
13024 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13025 if test -n "$WINDMC_FOR_TARGET"; then
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13027 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13028 else
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13031 fi
13032
13033
13034 fi
13035 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13036
13037
13038 if test -n "$WINDMC_FOR_TARGET"; then
13039 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13040 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13041 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13042 fi
13043
13044 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13045 for ncn_progname in windmc; do
13046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13047 set dummy ${ncn_progname}; ac_word=$2
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049 $as_echo_n "checking for $ac_word... " >&6; }
13050 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13051 $as_echo_n "(cached) " >&6
13052 else
13053 if test -n "$WINDMC_FOR_TARGET"; then
13054 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13055 else
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057 for as_dir in $PATH
13058 do
13059 IFS=$as_save_IFS
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
13062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13063 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 break 2
13066 fi
13067 done
13068 done
13069 IFS=$as_save_IFS
13070
13071 fi
13072 fi
13073 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13074 if test -n "$WINDMC_FOR_TARGET"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13076 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13077 else
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079 $as_echo "no" >&6; }
13080 fi
13081
13082
13083 done
13084 fi
13085
13086 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13087 for ncn_progname in windmc; do
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13089 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13090 if test -x $with_build_time_tools/${ncn_progname}; then
13091 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13093 $as_echo "yes" >&6; }
13094 break
13095 else
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13098 fi
13099 done
13100 fi
13101
13102 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13103 for ncn_progname in windmc; do
13104 if test -n "$ncn_target_tool_prefix"; then
13105 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13106 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13108 $as_echo_n "checking for $ac_word... " >&6; }
13109 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13110 $as_echo_n "(cached) " >&6
13111 else
13112 if test -n "$WINDMC_FOR_TARGET"; then
13113 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13114 else
13115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116 for as_dir in $PATH
13117 do
13118 IFS=$as_save_IFS
13119 test -z "$as_dir" && as_dir=.
13120 for ac_exec_ext in '' $ac_executable_extensions; do
13121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13122 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13124 break 2
13125 fi
13126 done
13127 done
13128 IFS=$as_save_IFS
13129
13130 fi
13131 fi
13132 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13133 if test -n "$WINDMC_FOR_TARGET"; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13135 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13136 else
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138 $as_echo "no" >&6; }
13139 fi
13140
13141
13142 fi
13143 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13145 set dummy ${ncn_progname}; ac_word=$2
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147 $as_echo_n "checking for $ac_word... " >&6; }
13148 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13149 $as_echo_n "(cached) " >&6
13150 else
13151 if test -n "$WINDMC_FOR_TARGET"; then
13152 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13153 else
13154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13155 for as_dir in $PATH
13156 do
13157 IFS=$as_save_IFS
13158 test -z "$as_dir" && as_dir=.
13159 for ac_exec_ext in '' $ac_executable_extensions; do
13160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13161 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13163 break 2
13164 fi
13165 done
13166 done
13167 IFS=$as_save_IFS
13168
13169 fi
13170 fi
13171 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13172 if test -n "$WINDMC_FOR_TARGET"; then
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13174 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13175 else
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13177 $as_echo "no" >&6; }
13178 fi
13179
13180
13181 fi
13182 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13183 done
13184 fi
13185
13186 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13187 set dummy windmc
13188 if test $build = $target ; then
13189 WINDMC_FOR_TARGET="$2"
13190 else
13191 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13192 fi
13193 else
13194 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13195 fi
13196
13197 else
13198 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13199 fi
13200
13201
13202 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13203
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13205 $as_echo_n "checking where to find the target ar... " >&6; }
13206 if test "x${build}" != "x${host}" ; then
13207 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13208 # We already found the complete path
13209 ac_dir=`dirname $AR_FOR_TARGET`
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13211 $as_echo "pre-installed in $ac_dir" >&6; }
13212 else
13213 # Canadian cross, just use what we found
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13215 $as_echo "pre-installed" >&6; }
13216 fi
13217 else
13218 ok=yes
13219 case " ${configdirs} " in
13220 *" binutils "*) ;;
13221 *) ok=no ;;
13222 esac
13223
13224 if test $ok = yes; then
13225 # An in-tree tool is available and we can use it
13226 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13228 $as_echo "just compiled" >&6; }
13229 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13230 # We already found the complete path
13231 ac_dir=`dirname $AR_FOR_TARGET`
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13233 $as_echo "pre-installed in $ac_dir" >&6; }
13234 elif test "x$target" = "x$host"; then
13235 # We can use an host tool
13236 AR_FOR_TARGET='$(AR)'
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13238 $as_echo "host tool" >&6; }
13239 else
13240 # We need a cross tool
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13242 $as_echo "pre-installed" >&6; }
13243 fi
13244 fi
13245
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13247 $as_echo_n "checking where to find the target as... " >&6; }
13248 if test "x${build}" != "x${host}" ; then
13249 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13250 # We already found the complete path
13251 ac_dir=`dirname $AS_FOR_TARGET`
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13253 $as_echo "pre-installed in $ac_dir" >&6; }
13254 else
13255 # Canadian cross, just use what we found
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13257 $as_echo "pre-installed" >&6; }
13258 fi
13259 else
13260 ok=yes
13261 case " ${configdirs} " in
13262 *" gas "*) ;;
13263 *) ok=no ;;
13264 esac
13265
13266 if test $ok = yes; then
13267 # An in-tree tool is available and we can use it
13268 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13270 $as_echo "just compiled" >&6; }
13271 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13272 # We already found the complete path
13273 ac_dir=`dirname $AS_FOR_TARGET`
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13275 $as_echo "pre-installed in $ac_dir" >&6; }
13276 elif test "x$target" = "x$host"; then
13277 # We can use an host tool
13278 AS_FOR_TARGET='$(AS)'
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13280 $as_echo "host tool" >&6; }
13281 else
13282 # We need a cross tool
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13284 $as_echo "pre-installed" >&6; }
13285 fi
13286 fi
13287
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13289 $as_echo_n "checking where to find the target cc... " >&6; }
13290 if test "x${build}" != "x${host}" ; then
13291 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13292 # We already found the complete path
13293 ac_dir=`dirname $CC_FOR_TARGET`
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13295 $as_echo "pre-installed in $ac_dir" >&6; }
13296 else
13297 # Canadian cross, just use what we found
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13299 $as_echo "pre-installed" >&6; }
13300 fi
13301 else
13302 ok=yes
13303 case " ${configdirs} " in
13304 *" gcc "*) ;;
13305 *) ok=no ;;
13306 esac
13307
13308 if test $ok = yes; then
13309 # An in-tree tool is available and we can use it
13310 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13312 $as_echo "just compiled" >&6; }
13313 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13314 # We already found the complete path
13315 ac_dir=`dirname $CC_FOR_TARGET`
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13317 $as_echo "pre-installed in $ac_dir" >&6; }
13318 elif test "x$target" = "x$host"; then
13319 # We can use an host tool
13320 CC_FOR_TARGET='$(CC)'
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13322 $as_echo "host tool" >&6; }
13323 else
13324 # We need a cross tool
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13326 $as_echo "pre-installed" >&6; }
13327 fi
13328 fi
13329
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13331 $as_echo_n "checking where to find the target c++... " >&6; }
13332 if test "x${build}" != "x${host}" ; then
13333 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13334 # We already found the complete path
13335 ac_dir=`dirname $CXX_FOR_TARGET`
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13337 $as_echo "pre-installed in $ac_dir" >&6; }
13338 else
13339 # Canadian cross, just use what we found
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13341 $as_echo "pre-installed" >&6; }
13342 fi
13343 else
13344 ok=yes
13345 case " ${configdirs} " in
13346 *" gcc "*) ;;
13347 *) ok=no ;;
13348 esac
13349 case ,${enable_languages}, in
13350 *,c++,*) ;;
13351 *) ok=no ;;
13352 esac
13353 if test $ok = yes; then
13354 # An in-tree tool is available and we can use it
13355 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13357 $as_echo "just compiled" >&6; }
13358 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13359 # We already found the complete path
13360 ac_dir=`dirname $CXX_FOR_TARGET`
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13362 $as_echo "pre-installed in $ac_dir" >&6; }
13363 elif test "x$target" = "x$host"; then
13364 # We can use an host tool
13365 CXX_FOR_TARGET='$(CXX)'
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13367 $as_echo "host tool" >&6; }
13368 else
13369 # We need a cross tool
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13371 $as_echo "pre-installed" >&6; }
13372 fi
13373 fi
13374
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13376 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13377 if test "x${build}" != "x${host}" ; then
13378 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13379 # We already found the complete path
13380 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13382 $as_echo "pre-installed in $ac_dir" >&6; }
13383 else
13384 # Canadian cross, just use what we found
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13386 $as_echo "pre-installed" >&6; }
13387 fi
13388 else
13389 ok=yes
13390 case " ${configdirs} " in
13391 *" gcc "*) ;;
13392 *) ok=no ;;
13393 esac
13394 case ,${enable_languages}, in
13395 *,c++,*) ;;
13396 *) ok=no ;;
13397 esac
13398 if test $ok = yes; then
13399 # An in-tree tool is available and we can use it
13400 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'
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13402 $as_echo "just compiled" >&6; }
13403 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13404 # We already found the complete path
13405 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13407 $as_echo "pre-installed in $ac_dir" >&6; }
13408 elif test "x$target" = "x$host"; then
13409 # We can use an host tool
13410 RAW_CXX_FOR_TARGET='$(CXX)'
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13412 $as_echo "host tool" >&6; }
13413 else
13414 # We need a cross tool
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13416 $as_echo "pre-installed" >&6; }
13417 fi
13418 fi
13419
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13421 $as_echo_n "checking where to find the target dlltool... " >&6; }
13422 if test "x${build}" != "x${host}" ; then
13423 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13424 # We already found the complete path
13425 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13427 $as_echo "pre-installed in $ac_dir" >&6; }
13428 else
13429 # Canadian cross, just use what we found
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13431 $as_echo "pre-installed" >&6; }
13432 fi
13433 else
13434 ok=yes
13435 case " ${configdirs} " in
13436 *" binutils "*) ;;
13437 *) ok=no ;;
13438 esac
13439
13440 if test $ok = yes; then
13441 # An in-tree tool is available and we can use it
13442 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13444 $as_echo "just compiled" >&6; }
13445 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13446 # We already found the complete path
13447 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13449 $as_echo "pre-installed in $ac_dir" >&6; }
13450 elif test "x$target" = "x$host"; then
13451 # We can use an host tool
13452 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13454 $as_echo "host tool" >&6; }
13455 else
13456 # We need a cross tool
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13458 $as_echo "pre-installed" >&6; }
13459 fi
13460 fi
13461
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13463 $as_echo_n "checking where to find the target gcc... " >&6; }
13464 if test "x${build}" != "x${host}" ; then
13465 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13466 # We already found the complete path
13467 ac_dir=`dirname $GCC_FOR_TARGET`
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13469 $as_echo "pre-installed in $ac_dir" >&6; }
13470 else
13471 # Canadian cross, just use what we found
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13473 $as_echo "pre-installed" >&6; }
13474 fi
13475 else
13476 ok=yes
13477 case " ${configdirs} " in
13478 *" gcc "*) ;;
13479 *) ok=no ;;
13480 esac
13481
13482 if test $ok = yes; then
13483 # An in-tree tool is available and we can use it
13484 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13486 $as_echo "just compiled" >&6; }
13487 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13488 # We already found the complete path
13489 ac_dir=`dirname $GCC_FOR_TARGET`
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13491 $as_echo "pre-installed in $ac_dir" >&6; }
13492 elif test "x$target" = "x$host"; then
13493 # We can use an host tool
13494 GCC_FOR_TARGET='$()'
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13496 $as_echo "host tool" >&6; }
13497 else
13498 # We need a cross tool
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13500 $as_echo "pre-installed" >&6; }
13501 fi
13502 fi
13503
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13505 $as_echo_n "checking where to find the target gcj... " >&6; }
13506 if test "x${build}" != "x${host}" ; then
13507 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13508 # We already found the complete path
13509 ac_dir=`dirname $GCJ_FOR_TARGET`
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13511 $as_echo "pre-installed in $ac_dir" >&6; }
13512 else
13513 # Canadian cross, just use what we found
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13515 $as_echo "pre-installed" >&6; }
13516 fi
13517 else
13518 ok=yes
13519 case " ${configdirs} " in
13520 *" gcc "*) ;;
13521 *) ok=no ;;
13522 esac
13523 case ,${enable_languages}, in
13524 *,java,*) ;;
13525 *) ok=no ;;
13526 esac
13527 if test $ok = yes; then
13528 # An in-tree tool is available and we can use it
13529 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13531 $as_echo "just compiled" >&6; }
13532 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13533 # We already found the complete path
13534 ac_dir=`dirname $GCJ_FOR_TARGET`
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13536 $as_echo "pre-installed in $ac_dir" >&6; }
13537 elif test "x$target" = "x$host"; then
13538 # We can use an host tool
13539 GCJ_FOR_TARGET='$(GCJ)'
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13541 $as_echo "host tool" >&6; }
13542 else
13543 # We need a cross tool
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13545 $as_echo "pre-installed" >&6; }
13546 fi
13547 fi
13548
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13550 $as_echo_n "checking where to find the target gfortran... " >&6; }
13551 if test "x${build}" != "x${host}" ; then
13552 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13553 # We already found the complete path
13554 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13556 $as_echo "pre-installed in $ac_dir" >&6; }
13557 else
13558 # Canadian cross, just use what we found
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13560 $as_echo "pre-installed" >&6; }
13561 fi
13562 else
13563 ok=yes
13564 case " ${configdirs} " in
13565 *" gcc "*) ;;
13566 *) ok=no ;;
13567 esac
13568 case ,${enable_languages}, in
13569 *,fortran,*) ;;
13570 *) ok=no ;;
13571 esac
13572 if test $ok = yes; then
13573 # An in-tree tool is available and we can use it
13574 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13576 $as_echo "just compiled" >&6; }
13577 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13578 # We already found the complete path
13579 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13581 $as_echo "pre-installed in $ac_dir" >&6; }
13582 elif test "x$target" = "x$host"; then
13583 # We can use an host tool
13584 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13586 $as_echo "host tool" >&6; }
13587 else
13588 # We need a cross tool
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13590 $as_echo "pre-installed" >&6; }
13591 fi
13592 fi
13593
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13595 $as_echo_n "checking where to find the target gccgo... " >&6; }
13596 if test "x${build}" != "x${host}" ; then
13597 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13598 # We already found the complete path
13599 ac_dir=`dirname $GOC_FOR_TARGET`
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13601 $as_echo "pre-installed in $ac_dir" >&6; }
13602 else
13603 # Canadian cross, just use what we found
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13605 $as_echo "pre-installed" >&6; }
13606 fi
13607 else
13608 ok=yes
13609 case " ${configdirs} " in
13610 *" gcc "*) ;;
13611 *) ok=no ;;
13612 esac
13613 case ,${enable_languages}, in
13614 *,go,*) ;;
13615 *) ok=no ;;
13616 esac
13617 if test $ok = yes; then
13618 # An in-tree tool is available and we can use it
13619 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13621 $as_echo "just compiled" >&6; }
13622 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13623 # We already found the complete path
13624 ac_dir=`dirname $GOC_FOR_TARGET`
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13626 $as_echo "pre-installed in $ac_dir" >&6; }
13627 elif test "x$target" = "x$host"; then
13628 # We can use an host tool
13629 GOC_FOR_TARGET='$(GOC)'
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13631 $as_echo "host tool" >&6; }
13632 else
13633 # We need a cross tool
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13635 $as_echo "pre-installed" >&6; }
13636 fi
13637 fi
13638
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13640 $as_echo_n "checking where to find the target ld... " >&6; }
13641 if test "x${build}" != "x${host}" ; then
13642 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13643 # We already found the complete path
13644 ac_dir=`dirname $LD_FOR_TARGET`
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13646 $as_echo "pre-installed in $ac_dir" >&6; }
13647 else
13648 # Canadian cross, just use what we found
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13650 $as_echo "pre-installed" >&6; }
13651 fi
13652 else
13653 ok=yes
13654 case " ${configdirs} " in
13655 *" ld "*) ;;
13656 *) ok=no ;;
13657 esac
13658
13659 if test $ok = yes; then
13660 # An in-tree tool is available and we can use it
13661 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13663 $as_echo "just compiled" >&6; }
13664 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13665 # We already found the complete path
13666 ac_dir=`dirname $LD_FOR_TARGET`
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13668 $as_echo "pre-installed in $ac_dir" >&6; }
13669 elif test "x$target" = "x$host"; then
13670 # We can use an host tool
13671 LD_FOR_TARGET='$(LD)'
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13673 $as_echo "host tool" >&6; }
13674 else
13675 # We need a cross tool
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13677 $as_echo "pre-installed" >&6; }
13678 fi
13679 fi
13680
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13682 $as_echo_n "checking where to find the target lipo... " >&6; }
13683 if test "x${build}" != "x${host}" ; then
13684 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13685 # We already found the complete path
13686 ac_dir=`dirname $LIPO_FOR_TARGET`
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13688 $as_echo "pre-installed in $ac_dir" >&6; }
13689 else
13690 # Canadian cross, just use what we found
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13692 $as_echo "pre-installed" >&6; }
13693 fi
13694 else
13695 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13696 # We already found the complete path
13697 ac_dir=`dirname $LIPO_FOR_TARGET`
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13699 $as_echo "pre-installed in $ac_dir" >&6; }
13700 elif test "x$target" = "x$host"; then
13701 # We can use an host tool
13702 LIPO_FOR_TARGET='$(LIPO)'
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13704 $as_echo "host tool" >&6; }
13705 else
13706 # We need a cross tool
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13708 $as_echo "pre-installed" >&6; }
13709 fi
13710 fi
13711
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13713 $as_echo_n "checking where to find the target nm... " >&6; }
13714 if test "x${build}" != "x${host}" ; then
13715 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13716 # We already found the complete path
13717 ac_dir=`dirname $NM_FOR_TARGET`
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13719 $as_echo "pre-installed in $ac_dir" >&6; }
13720 else
13721 # Canadian cross, just use what we found
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13723 $as_echo "pre-installed" >&6; }
13724 fi
13725 else
13726 ok=yes
13727 case " ${configdirs} " in
13728 *" binutils "*) ;;
13729 *) ok=no ;;
13730 esac
13731
13732 if test $ok = yes; then
13733 # An in-tree tool is available and we can use it
13734 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13736 $as_echo "just compiled" >&6; }
13737 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13738 # We already found the complete path
13739 ac_dir=`dirname $NM_FOR_TARGET`
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13741 $as_echo "pre-installed in $ac_dir" >&6; }
13742 elif test "x$target" = "x$host"; then
13743 # We can use an host tool
13744 NM_FOR_TARGET='$(NM)'
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13746 $as_echo "host tool" >&6; }
13747 else
13748 # We need a cross tool
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13750 $as_echo "pre-installed" >&6; }
13751 fi
13752 fi
13753
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13755 $as_echo_n "checking where to find the target objdump... " >&6; }
13756 if test "x${build}" != "x${host}" ; then
13757 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13758 # We already found the complete path
13759 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13761 $as_echo "pre-installed in $ac_dir" >&6; }
13762 else
13763 # Canadian cross, just use what we found
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13765 $as_echo "pre-installed" >&6; }
13766 fi
13767 else
13768 ok=yes
13769 case " ${configdirs} " in
13770 *" binutils "*) ;;
13771 *) ok=no ;;
13772 esac
13773
13774 if test $ok = yes; then
13775 # An in-tree tool is available and we can use it
13776 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13778 $as_echo "just compiled" >&6; }
13779 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13780 # We already found the complete path
13781 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13783 $as_echo "pre-installed in $ac_dir" >&6; }
13784 elif test "x$target" = "x$host"; then
13785 # We can use an host tool
13786 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13788 $as_echo "host tool" >&6; }
13789 else
13790 # We need a cross tool
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13792 $as_echo "pre-installed" >&6; }
13793 fi
13794 fi
13795
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13797 $as_echo_n "checking where to find the target ranlib... " >&6; }
13798 if test "x${build}" != "x${host}" ; then
13799 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13800 # We already found the complete path
13801 ac_dir=`dirname $RANLIB_FOR_TARGET`
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13803 $as_echo "pre-installed in $ac_dir" >&6; }
13804 else
13805 # Canadian cross, just use what we found
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13807 $as_echo "pre-installed" >&6; }
13808 fi
13809 else
13810 ok=yes
13811 case " ${configdirs} " in
13812 *" binutils "*) ;;
13813 *) ok=no ;;
13814 esac
13815
13816 if test $ok = yes; then
13817 # An in-tree tool is available and we can use it
13818 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13820 $as_echo "just compiled" >&6; }
13821 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13822 # We already found the complete path
13823 ac_dir=`dirname $RANLIB_FOR_TARGET`
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13825 $as_echo "pre-installed in $ac_dir" >&6; }
13826 elif test "x$target" = "x$host"; then
13827 # We can use an host tool
13828 RANLIB_FOR_TARGET='$(RANLIB)'
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13830 $as_echo "host tool" >&6; }
13831 else
13832 # We need a cross tool
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13834 $as_echo "pre-installed" >&6; }
13835 fi
13836 fi
13837
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13839 $as_echo_n "checking where to find the target strip... " >&6; }
13840 if test "x${build}" != "x${host}" ; then
13841 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13842 # We already found the complete path
13843 ac_dir=`dirname $STRIP_FOR_TARGET`
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13845 $as_echo "pre-installed in $ac_dir" >&6; }
13846 else
13847 # Canadian cross, just use what we found
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13849 $as_echo "pre-installed" >&6; }
13850 fi
13851 else
13852 ok=yes
13853 case " ${configdirs} " in
13854 *" binutils "*) ;;
13855 *) ok=no ;;
13856 esac
13857
13858 if test $ok = yes; then
13859 # An in-tree tool is available and we can use it
13860 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13862 $as_echo "just compiled" >&6; }
13863 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13864 # We already found the complete path
13865 ac_dir=`dirname $STRIP_FOR_TARGET`
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13867 $as_echo "pre-installed in $ac_dir" >&6; }
13868 elif test "x$target" = "x$host"; then
13869 # We can use an host tool
13870 STRIP_FOR_TARGET='$(STRIP)'
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13872 $as_echo "host tool" >&6; }
13873 else
13874 # We need a cross tool
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13876 $as_echo "pre-installed" >&6; }
13877 fi
13878 fi
13879
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13881 $as_echo_n "checking where to find the target windres... " >&6; }
13882 if test "x${build}" != "x${host}" ; then
13883 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13884 # We already found the complete path
13885 ac_dir=`dirname $WINDRES_FOR_TARGET`
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13887 $as_echo "pre-installed in $ac_dir" >&6; }
13888 else
13889 # Canadian cross, just use what we found
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13891 $as_echo "pre-installed" >&6; }
13892 fi
13893 else
13894 ok=yes
13895 case " ${configdirs} " in
13896 *" binutils "*) ;;
13897 *) ok=no ;;
13898 esac
13899
13900 if test $ok = yes; then
13901 # An in-tree tool is available and we can use it
13902 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13904 $as_echo "just compiled" >&6; }
13905 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13906 # We already found the complete path
13907 ac_dir=`dirname $WINDRES_FOR_TARGET`
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13909 $as_echo "pre-installed in $ac_dir" >&6; }
13910 elif test "x$target" = "x$host"; then
13911 # We can use an host tool
13912 WINDRES_FOR_TARGET='$(WINDRES)'
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13914 $as_echo "host tool" >&6; }
13915 else
13916 # We need a cross tool
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13918 $as_echo "pre-installed" >&6; }
13919 fi
13920 fi
13921
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13923 $as_echo_n "checking where to find the target windmc... " >&6; }
13924 if test "x${build}" != "x${host}" ; then
13925 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13926 # We already found the complete path
13927 ac_dir=`dirname $WINDMC_FOR_TARGET`
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13929 $as_echo "pre-installed in $ac_dir" >&6; }
13930 else
13931 # Canadian cross, just use what we found
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13933 $as_echo "pre-installed" >&6; }
13934 fi
13935 else
13936 ok=yes
13937 case " ${configdirs} " in
13938 *" binutils "*) ;;
13939 *) ok=no ;;
13940 esac
13941
13942 if test $ok = yes; then
13943 # An in-tree tool is available and we can use it
13944 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13946 $as_echo "just compiled" >&6; }
13947 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13948 # We already found the complete path
13949 ac_dir=`dirname $WINDMC_FOR_TARGET`
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13951 $as_echo "pre-installed in $ac_dir" >&6; }
13952 elif test "x$target" = "x$host"; then
13953 # We can use an host tool
13954 WINDMC_FOR_TARGET='$(WINDMC)'
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13956 $as_echo "host tool" >&6; }
13957 else
13958 # We need a cross tool
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13960 $as_echo "pre-installed" >&6; }
13961 fi
13962 fi
13963
13964
13965
13966
13967
13968 # Certain tools may need extra flags.
13969 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13970 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13971 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13972
13973 # When building target libraries, except in a Canadian cross, we use
13974 # the same toolchain as the compiler we just built.
13975 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13976 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13977 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13978 if test $host = $build; then
13979 case " $configdirs " in
13980 *" gcc "*)
13981 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13982 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13983 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13984 ;;
13985 esac
13986 fi
13987
13988
13989
13990
13991
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13993 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13994 # Check whether --enable-maintainer-mode was given.
13995 if test "${enable_maintainer_mode+set}" = set; then :
13996 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13997 else
13998 USE_MAINTAINER_MODE=no
13999 fi
14000
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14002 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14003
14004
14005 if test "$USE_MAINTAINER_MODE" = yes; then
14006 MAINTAINER_MODE_TRUE=
14007 MAINTAINER_MODE_FALSE='#'
14008 else
14009 MAINTAINER_MODE_TRUE='#'
14010 MAINTAINER_MODE_FALSE=
14011 fi
14012 MAINT=$MAINTAINER_MODE_TRUE
14013
14014 # ---------------------
14015 # GCC bootstrap support
14016 # ---------------------
14017
14018 # Stage specific cflags for build.
14019 stage1_cflags="-g"
14020 case $build in
14021 vax-*-*)
14022 case ${GCC} in
14023 yes) stage1_cflags="-g -Wa,-J" ;;
14024 *) stage1_cflags="-g -J" ;;
14025 esac ;;
14026 esac
14027
14028 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14029 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14030 saved_CFLAGS="$CFLAGS"
14031
14032 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14033 CFLAGS="$CFLAGS -fkeep-inline-functions"
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14035 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14038
14039 #if (__GNUC__ < 3) \
14040 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14041 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14042 #error http://gcc.gnu.org/PR29382
14043 #endif
14044
14045 int
14046 main ()
14047 {
14048
14049 ;
14050 return 0;
14051 }
14052 _ACEOF
14053 if ac_fn_c_try_compile "$LINENO"; then :
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14055 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14056 else
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14058 $as_echo "no" >&6; }
14059 fi
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061
14062 CFLAGS="$saved_CFLAGS"
14063 fi
14064
14065
14066
14067 # Enable --enable-checking in stage1 of the compiler.
14068 # Check whether --enable-stage1-checking was given.
14069 if test "${enable_stage1_checking+set}" = set; then :
14070 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14071 else
14072 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14073 stage1_checking=--enable-checking=yes,types
14074 else
14075 stage1_checking=--enable-checking=$enable_checking,types
14076 fi
14077 fi
14078
14079
14080
14081 # Enable -Werror in bootstrap stage2 and later.
14082 # Check whether --enable-werror was given.
14083 if test "${enable_werror+set}" = set; then :
14084 enableval=$enable_werror;
14085 else
14086 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14087 enable_werror=yes
14088 else
14089 enable_werror=no
14090 fi
14091 fi
14092
14093 case ${enable_werror} in
14094 yes) stage2_werror_flag="--enable-werror-always" ;;
14095 *) stage2_werror_flag="" ;;
14096 esac
14097
14098
14099 # Specify what files to not compare during bootstrap.
14100
14101 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14102 case "$target" in
14103 hppa*64*-*-hpux*) ;;
14104 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14105 esac
14106 case " $configdirs " in
14107 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14108 esac
14109
14110
14111 ac_config_files="$ac_config_files Makefile"
14112
14113 cat >confcache <<\_ACEOF
14114 # This file is a shell script that caches the results of configure
14115 # tests run on this system so they can be shared between configure
14116 # scripts and configure runs, see configure's option --config-cache.
14117 # It is not useful on other systems. If it contains results you don't
14118 # want to keep, you may remove or edit it.
14119 #
14120 # config.status only pays attention to the cache file if you give it
14121 # the --recheck option to rerun configure.
14122 #
14123 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14125 # following values.
14126
14127 _ACEOF
14128
14129 # The following way of writing the cache mishandles newlines in values,
14130 # but we know of no workaround that is simple, portable, and efficient.
14131 # So, we kill variables containing newlines.
14132 # Ultrix sh set writes to stderr and can't be redirected directly,
14133 # and sets the high bit in the cache file unless we assign to the vars.
14134 (
14135 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14136 eval ac_val=\$$ac_var
14137 case $ac_val in #(
14138 *${as_nl}*)
14139 case $ac_var in #(
14140 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14141 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14142 esac
14143 case $ac_var in #(
14144 _ | IFS | as_nl) ;; #(
14145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14146 *) { eval $ac_var=; unset $ac_var;} ;;
14147 esac ;;
14148 esac
14149 done
14150
14151 (set) 2>&1 |
14152 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14153 *${as_nl}ac_space=\ *)
14154 # `set' does not quote correctly, so add quotes: double-quote
14155 # substitution turns \\\\ into \\, and sed turns \\ into \.
14156 sed -n \
14157 "s/'/'\\\\''/g;
14158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14159 ;; #(
14160 *)
14161 # `set' quotes correctly as required by POSIX, so do not add quotes.
14162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14163 ;;
14164 esac |
14165 sort
14166 ) |
14167 sed '
14168 /^ac_cv_env_/b end
14169 t clear
14170 :clear
14171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14172 t end
14173 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14174 :end' >>confcache
14175 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14176 if test -w "$cache_file"; then
14177 test "x$cache_file" != "x/dev/null" &&
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14179 $as_echo "$as_me: updating cache $cache_file" >&6;}
14180 cat confcache >$cache_file
14181 else
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14183 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14184 fi
14185 fi
14186 rm -f confcache
14187
14188 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14189 # Let make expand exec_prefix.
14190 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14191
14192 # Transform confdefs.h into DEFS.
14193 # Protect against shell expansion while executing Makefile rules.
14194 # Protect against Makefile macro expansion.
14195 #
14196 # If the first sed substitution is executed (which looks for macros that
14197 # take arguments), then branch to the quote section. Otherwise,
14198 # look for a macro that doesn't take arguments.
14199 ac_script='
14200 :mline
14201 /\\$/{
14202 N
14203 s,\\\n,,
14204 b mline
14205 }
14206 t clear
14207 :clear
14208 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14209 t quote
14210 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14211 t quote
14212 b any
14213 :quote
14214 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14215 s/\[/\\&/g
14216 s/\]/\\&/g
14217 s/\$/$$/g
14218 H
14219 :any
14220 ${
14221 g
14222 s/^\n//
14223 s/\n/ /g
14224 p
14225 }
14226 '
14227 DEFS=`sed -n "$ac_script" confdefs.h`
14228
14229
14230 ac_libobjs=
14231 ac_ltlibobjs=
14232 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14233 # 1. Remove the extension, and $U if already installed.
14234 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14235 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14236 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14237 # will be set to the directory where LIBOBJS objects are built.
14238 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14239 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14240 done
14241 LIBOBJS=$ac_libobjs
14242
14243 LTLIBOBJS=$ac_ltlibobjs
14244
14245
14246
14247 : ${CONFIG_STATUS=./config.status}
14248 ac_write_fail=0
14249 ac_clean_files_save=$ac_clean_files
14250 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14252 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14253 as_write_fail=0
14254 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14255 #! $SHELL
14256 # Generated by $as_me.
14257 # Run this file to recreate the current configuration.
14258 # Compiler output produced by configure, useful for debugging
14259 # configure, is in config.log if it exists.
14260
14261 debug=false
14262 ac_cs_recheck=false
14263 ac_cs_silent=false
14264
14265 SHELL=\${CONFIG_SHELL-$SHELL}
14266 export SHELL
14267 _ASEOF
14268 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14269 ## -------------------- ##
14270 ## M4sh Initialization. ##
14271 ## -------------------- ##
14272
14273 # Be more Bourne compatible
14274 DUALCASE=1; export DUALCASE # for MKS sh
14275 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14276 emulate sh
14277 NULLCMD=:
14278 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14279 # is contrary to our usage. Disable this feature.
14280 alias -g '${1+"$@"}'='"$@"'
14281 setopt NO_GLOB_SUBST
14282 else
14283 case `(set -o) 2>/dev/null` in #(
14284 *posix*) :
14285 set -o posix ;; #(
14286 *) :
14287 ;;
14288 esac
14289 fi
14290
14291
14292 as_nl='
14293 '
14294 export as_nl
14295 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14296 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14297 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14298 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14299 # Prefer a ksh shell builtin over an external printf program on Solaris,
14300 # but without wasting forks for bash or zsh.
14301 if test -z "$BASH_VERSION$ZSH_VERSION" \
14302 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14303 as_echo='print -r --'
14304 as_echo_n='print -rn --'
14305 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14306 as_echo='printf %s\n'
14307 as_echo_n='printf %s'
14308 else
14309 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14310 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14311 as_echo_n='/usr/ucb/echo -n'
14312 else
14313 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14314 as_echo_n_body='eval
14315 arg=$1;
14316 case $arg in #(
14317 *"$as_nl"*)
14318 expr "X$arg" : "X\\(.*\\)$as_nl";
14319 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14320 esac;
14321 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14322 '
14323 export as_echo_n_body
14324 as_echo_n='sh -c $as_echo_n_body as_echo'
14325 fi
14326 export as_echo_body
14327 as_echo='sh -c $as_echo_body as_echo'
14328 fi
14329
14330 # The user is always right.
14331 if test "${PATH_SEPARATOR+set}" != set; then
14332 PATH_SEPARATOR=:
14333 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14334 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14335 PATH_SEPARATOR=';'
14336 }
14337 fi
14338
14339
14340 # IFS
14341 # We need space, tab and new line, in precisely that order. Quoting is
14342 # there to prevent editors from complaining about space-tab.
14343 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14344 # splitting by setting IFS to empty value.)
14345 IFS=" "" $as_nl"
14346
14347 # Find who we are. Look in the path if we contain no directory separator.
14348 case $0 in #((
14349 *[\\/]* ) as_myself=$0 ;;
14350 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14352 do
14353 IFS=$as_save_IFS
14354 test -z "$as_dir" && as_dir=.
14355 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14356 done
14357 IFS=$as_save_IFS
14358
14359 ;;
14360 esac
14361 # We did not find ourselves, most probably we were run as `sh COMMAND'
14362 # in which case we are not to be found in the path.
14363 if test "x$as_myself" = x; then
14364 as_myself=$0
14365 fi
14366 if test ! -f "$as_myself"; then
14367 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14368 exit 1
14369 fi
14370
14371 # Unset variables that we do not need and which cause bugs (e.g. in
14372 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14373 # suppresses any "Segmentation fault" message there. '((' could
14374 # trigger a bug in pdksh 5.2.14.
14375 for as_var in BASH_ENV ENV MAIL MAILPATH
14376 do eval test x\${$as_var+set} = xset \
14377 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14378 done
14379 PS1='$ '
14380 PS2='> '
14381 PS4='+ '
14382
14383 # NLS nuisances.
14384 LC_ALL=C
14385 export LC_ALL
14386 LANGUAGE=C
14387 export LANGUAGE
14388
14389 # CDPATH.
14390 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14391
14392
14393 # as_fn_error ERROR [LINENO LOG_FD]
14394 # ---------------------------------
14395 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14396 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14397 # script with status $?, using 1 if that was 0.
14398 as_fn_error ()
14399 {
14400 as_status=$?; test $as_status -eq 0 && as_status=1
14401 if test "$3"; then
14402 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14403 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14404 fi
14405 $as_echo "$as_me: error: $1" >&2
14406 as_fn_exit $as_status
14407 } # as_fn_error
14408
14409
14410 # as_fn_set_status STATUS
14411 # -----------------------
14412 # Set $? to STATUS, without forking.
14413 as_fn_set_status ()
14414 {
14415 return $1
14416 } # as_fn_set_status
14417
14418 # as_fn_exit STATUS
14419 # -----------------
14420 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14421 as_fn_exit ()
14422 {
14423 set +e
14424 as_fn_set_status $1
14425 exit $1
14426 } # as_fn_exit
14427
14428 # as_fn_unset VAR
14429 # ---------------
14430 # Portably unset VAR.
14431 as_fn_unset ()
14432 {
14433 { eval $1=; unset $1;}
14434 }
14435 as_unset=as_fn_unset
14436 # as_fn_append VAR VALUE
14437 # ----------------------
14438 # Append the text in VALUE to the end of the definition contained in VAR. Take
14439 # advantage of any shell optimizations that allow amortized linear growth over
14440 # repeated appends, instead of the typical quadratic growth present in naive
14441 # implementations.
14442 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14443 eval 'as_fn_append ()
14444 {
14445 eval $1+=\$2
14446 }'
14447 else
14448 as_fn_append ()
14449 {
14450 eval $1=\$$1\$2
14451 }
14452 fi # as_fn_append
14453
14454 # as_fn_arith ARG...
14455 # ------------------
14456 # Perform arithmetic evaluation on the ARGs, and store the result in the
14457 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14458 # must be portable across $(()) and expr.
14459 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14460 eval 'as_fn_arith ()
14461 {
14462 as_val=$(( $* ))
14463 }'
14464 else
14465 as_fn_arith ()
14466 {
14467 as_val=`expr "$@" || test $? -eq 1`
14468 }
14469 fi # as_fn_arith
14470
14471
14472 if expr a : '\(a\)' >/dev/null 2>&1 &&
14473 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14474 as_expr=expr
14475 else
14476 as_expr=false
14477 fi
14478
14479 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14480 as_basename=basename
14481 else
14482 as_basename=false
14483 fi
14484
14485 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14486 as_dirname=dirname
14487 else
14488 as_dirname=false
14489 fi
14490
14491 as_me=`$as_basename -- "$0" ||
14492 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14493 X"$0" : 'X\(//\)$' \| \
14494 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14495 $as_echo X/"$0" |
14496 sed '/^.*\/\([^/][^/]*\)\/*$/{
14497 s//\1/
14498 q
14499 }
14500 /^X\/\(\/\/\)$/{
14501 s//\1/
14502 q
14503 }
14504 /^X\/\(\/\).*/{
14505 s//\1/
14506 q
14507 }
14508 s/.*/./; q'`
14509
14510 # Avoid depending upon Character Ranges.
14511 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14512 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14513 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14514 as_cr_digits='0123456789'
14515 as_cr_alnum=$as_cr_Letters$as_cr_digits
14516
14517 ECHO_C= ECHO_N= ECHO_T=
14518 case `echo -n x` in #(((((
14519 -n*)
14520 case `echo 'xy\c'` in
14521 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14522 xy) ECHO_C='\c';;
14523 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14524 ECHO_T=' ';;
14525 esac;;
14526 *)
14527 ECHO_N='-n';;
14528 esac
14529
14530 rm -f conf$$ conf$$.exe conf$$.file
14531 if test -d conf$$.dir; then
14532 rm -f conf$$.dir/conf$$.file
14533 else
14534 rm -f conf$$.dir
14535 mkdir conf$$.dir 2>/dev/null
14536 fi
14537 if (echo >conf$$.file) 2>/dev/null; then
14538 if ln -s conf$$.file conf$$ 2>/dev/null; then
14539 as_ln_s='ln -s'
14540 # ... but there are two gotchas:
14541 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14542 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14543 # In both cases, we have to default to `cp -p'.
14544 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14545 as_ln_s='cp -p'
14546 elif ln conf$$.file conf$$ 2>/dev/null; then
14547 as_ln_s=ln
14548 else
14549 as_ln_s='cp -p'
14550 fi
14551 else
14552 as_ln_s='cp -p'
14553 fi
14554 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14555 rmdir conf$$.dir 2>/dev/null
14556
14557
14558 # as_fn_mkdir_p
14559 # -------------
14560 # Create "$as_dir" as a directory, including parents if necessary.
14561 as_fn_mkdir_p ()
14562 {
14563
14564 case $as_dir in #(
14565 -*) as_dir=./$as_dir;;
14566 esac
14567 test -d "$as_dir" || eval $as_mkdir_p || {
14568 as_dirs=
14569 while :; do
14570 case $as_dir in #(
14571 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14572 *) as_qdir=$as_dir;;
14573 esac
14574 as_dirs="'$as_qdir' $as_dirs"
14575 as_dir=`$as_dirname -- "$as_dir" ||
14576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14577 X"$as_dir" : 'X\(//\)[^/]' \| \
14578 X"$as_dir" : 'X\(//\)$' \| \
14579 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14580 $as_echo X"$as_dir" |
14581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14582 s//\1/
14583 q
14584 }
14585 /^X\(\/\/\)[^/].*/{
14586 s//\1/
14587 q
14588 }
14589 /^X\(\/\/\)$/{
14590 s//\1/
14591 q
14592 }
14593 /^X\(\/\).*/{
14594 s//\1/
14595 q
14596 }
14597 s/.*/./; q'`
14598 test -d "$as_dir" && break
14599 done
14600 test -z "$as_dirs" || eval "mkdir $as_dirs"
14601 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14602
14603
14604 } # as_fn_mkdir_p
14605 if mkdir -p . 2>/dev/null; then
14606 as_mkdir_p='mkdir -p "$as_dir"'
14607 else
14608 test -d ./-p && rmdir ./-p
14609 as_mkdir_p=false
14610 fi
14611
14612 if test -x / >/dev/null 2>&1; then
14613 as_test_x='test -x'
14614 else
14615 if ls -dL / >/dev/null 2>&1; then
14616 as_ls_L_option=L
14617 else
14618 as_ls_L_option=
14619 fi
14620 as_test_x='
14621 eval sh -c '\''
14622 if test -d "$1"; then
14623 test -d "$1/.";
14624 else
14625 case $1 in #(
14626 -*)set "./$1";;
14627 esac;
14628 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14629 ???[sx]*):;;*)false;;esac;fi
14630 '\'' sh
14631 '
14632 fi
14633 as_executable_p=$as_test_x
14634
14635 # Sed expression to map a string onto a valid CPP name.
14636 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14637
14638 # Sed expression to map a string onto a valid variable name.
14639 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14640
14641
14642 exec 6>&1
14643 ## ----------------------------------- ##
14644 ## Main body of $CONFIG_STATUS script. ##
14645 ## ----------------------------------- ##
14646 _ASEOF
14647 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14648
14649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14650 # Save the log message, to keep $0 and so on meaningful, and to
14651 # report actual input values of CONFIG_FILES etc. instead of their
14652 # values after options handling.
14653 ac_log="
14654 This file was extended by $as_me, which was
14655 generated by GNU Autoconf 2.64. Invocation command line was
14656
14657 CONFIG_FILES = $CONFIG_FILES
14658 CONFIG_HEADERS = $CONFIG_HEADERS
14659 CONFIG_LINKS = $CONFIG_LINKS
14660 CONFIG_COMMANDS = $CONFIG_COMMANDS
14661 $ $0 $@
14662
14663 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14664 "
14665
14666 _ACEOF
14667
14668 case $ac_config_files in *"
14669 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14670 esac
14671
14672
14673
14674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14675 # Files that config.status was made for.
14676 config_files="$ac_config_files"
14677
14678 _ACEOF
14679
14680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14681 ac_cs_usage="\
14682 \`$as_me' instantiates files and other configuration actions
14683 from templates according to the current configuration. Unless the files
14684 and actions are specified as TAGs, all are instantiated by default.
14685
14686 Usage: $0 [OPTION]... [TAG]...
14687
14688 -h, --help print this help, then exit
14689 -V, --version print version number and configuration settings, then exit
14690 -q, --quiet, --silent
14691 do not print progress messages
14692 -d, --debug don't remove temporary files
14693 --recheck update $as_me by reconfiguring in the same conditions
14694 --file=FILE[:TEMPLATE]
14695 instantiate the configuration file FILE
14696
14697 Configuration files:
14698 $config_files
14699
14700 Report bugs to the package provider."
14701
14702 _ACEOF
14703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14704 ac_cs_version="\\
14705 config.status
14706 configured by $0, generated by GNU Autoconf 2.64,
14707 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14708
14709 Copyright (C) 2009 Free Software Foundation, Inc.
14710 This config.status script is free software; the Free Software Foundation
14711 gives unlimited permission to copy, distribute and modify it."
14712
14713 ac_pwd='$ac_pwd'
14714 srcdir='$srcdir'
14715 INSTALL='$INSTALL'
14716 AWK='$AWK'
14717 test -n "\$AWK" || AWK=awk
14718 _ACEOF
14719
14720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14721 # The default lists apply if the user does not specify any file.
14722 ac_need_defaults=:
14723 while test $# != 0
14724 do
14725 case $1 in
14726 --*=*)
14727 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14728 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14729 ac_shift=:
14730 ;;
14731 *)
14732 ac_option=$1
14733 ac_optarg=$2
14734 ac_shift=shift
14735 ;;
14736 esac
14737
14738 case $ac_option in
14739 # Handling of the options.
14740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14741 ac_cs_recheck=: ;;
14742 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14743 $as_echo "$ac_cs_version"; exit ;;
14744 --debug | --debu | --deb | --de | --d | -d )
14745 debug=: ;;
14746 --file | --fil | --fi | --f )
14747 $ac_shift
14748 case $ac_optarg in
14749 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14750 esac
14751 as_fn_append CONFIG_FILES " '$ac_optarg'"
14752 ac_need_defaults=false;;
14753 --he | --h | --help | --hel | -h )
14754 $as_echo "$ac_cs_usage"; exit ;;
14755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14756 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14757 ac_cs_silent=: ;;
14758
14759 # This is an error.
14760 -*) as_fn_error "unrecognized option: \`$1'
14761 Try \`$0 --help' for more information." ;;
14762
14763 *) as_fn_append ac_config_targets " $1"
14764 ac_need_defaults=false ;;
14765
14766 esac
14767 shift
14768 done
14769
14770 ac_configure_extra_args=
14771
14772 if $ac_cs_silent; then
14773 exec 6>/dev/null
14774 ac_configure_extra_args="$ac_configure_extra_args --silent"
14775 fi
14776
14777 _ACEOF
14778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14779 if \$ac_cs_recheck; then
14780 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14781 shift
14782 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14783 CONFIG_SHELL='$SHELL'
14784 export CONFIG_SHELL
14785 exec "\$@"
14786 fi
14787
14788 _ACEOF
14789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14790 exec 5>>config.log
14791 {
14792 echo
14793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14794 ## Running $as_me. ##
14795 _ASBOX
14796 $as_echo "$ac_log"
14797 } >&5
14798
14799 _ACEOF
14800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14801 #
14802 # INIT-COMMANDS
14803 #
14804 extrasub_build="$extrasub_build"
14805 extrasub_host="$extrasub_host"
14806 extrasub_target="$extrasub_target"
14807
14808 _ACEOF
14809
14810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14811
14812 # Handling of arguments.
14813 for ac_config_target in $ac_config_targets
14814 do
14815 case $ac_config_target in
14816 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14817
14818 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14819 esac
14820 done
14821
14822
14823 # If the user did not use the arguments to specify the items to instantiate,
14824 # then the envvar interface is used. Set only those that are not.
14825 # We use the long form for the default assignment because of an extremely
14826 # bizarre bug on SunOS 4.1.3.
14827 if $ac_need_defaults; then
14828 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14829 fi
14830
14831 # Have a temporary directory for convenience. Make it in the build tree
14832 # simply because there is no reason against having it here, and in addition,
14833 # creating and moving files from /tmp can sometimes cause problems.
14834 # Hook for its removal unless debugging.
14835 # Note that there is a small window in which the directory will not be cleaned:
14836 # after its creation but before its name has been assigned to `$tmp'.
14837 $debug ||
14838 {
14839 tmp=
14840 trap 'exit_status=$?
14841 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14842 ' 0
14843 trap 'as_fn_exit 1' 1 2 13 15
14844 }
14845 # Create a (secure) tmp directory for tmp files.
14846
14847 {
14848 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14849 test -n "$tmp" && test -d "$tmp"
14850 } ||
14851 {
14852 tmp=./conf$$-$RANDOM
14853 (umask 077 && mkdir "$tmp")
14854 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14855
14856 # Set up the scripts for CONFIG_FILES section.
14857 # No need to generate them if there are no CONFIG_FILES.
14858 # This happens for instance with `./config.status config.h'.
14859 if test -n "$CONFIG_FILES"; then
14860
14861 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14862 ac_cs_awk_getline=:
14863 ac_cs_awk_pipe_init=
14864 ac_cs_awk_read_file='
14865 while ((getline aline < (F[key])) > 0)
14866 print(aline)
14867 close(F[key])'
14868 ac_cs_awk_pipe_fini=
14869 else
14870 ac_cs_awk_getline=false
14871 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14872 ac_cs_awk_read_file='
14873 print "|#_!!_#|"
14874 print "cat " F[key] " &&"
14875 '$ac_cs_awk_pipe_init
14876 # The final `:' finishes the AND list.
14877 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14878 fi
14879 ac_cr=`echo X | tr X '\015'`
14880 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14881 # But we know of no other shell where ac_cr would be empty at this
14882 # point, so we can use a bashism as a fallback.
14883 if test "x$ac_cr" = x; then
14884 eval ac_cr=\$\'\\r\'
14885 fi
14886 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14887 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14888 ac_cs_awk_cr='\r'
14889 else
14890 ac_cs_awk_cr=$ac_cr
14891 fi
14892
14893 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14894 _ACEOF
14895
14896 # Create commands to substitute file output variables.
14897 {
14898 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14899 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14900 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14901 echo "_ACAWK" &&
14902 echo "_ACEOF"
14903 } >conf$$files.sh &&
14904 . ./conf$$files.sh ||
14905 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14906 rm -f conf$$files.sh
14907
14908 {
14909 echo "cat >conf$$subs.awk <<_ACEOF" &&
14910 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14911 echo "_ACEOF"
14912 } >conf$$subs.sh ||
14913 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14914 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14915 ac_delim='%!_!# '
14916 for ac_last_try in false false false false false :; do
14917 . ./conf$$subs.sh ||
14918 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14919
14920 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14921 if test $ac_delim_n = $ac_delim_num; then
14922 break
14923 elif $ac_last_try; then
14924 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14925 else
14926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14927 fi
14928 done
14929 rm -f conf$$subs.sh
14930
14931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14932 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14933 _ACEOF
14934 sed -n '
14935 h
14936 s/^/S["/; s/!.*/"]=/
14937 p
14938 g
14939 s/^[^!]*!//
14940 :repl
14941 t repl
14942 s/'"$ac_delim"'$//
14943 t delim
14944 :nl
14945 h
14946 s/\(.\{148\}\).*/\1/
14947 t more1
14948 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14949 p
14950 n
14951 b repl
14952 :more1
14953 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14954 p
14955 g
14956 s/.\{148\}//
14957 t nl
14958 :delim
14959 h
14960 s/\(.\{148\}\).*/\1/
14961 t more2
14962 s/["\\]/\\&/g; s/^/"/; s/$/"/
14963 p
14964 b
14965 :more2
14966 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14967 p
14968 g
14969 s/.\{148\}//
14970 t delim
14971 ' <conf$$subs.awk | sed '
14972 /^[^""]/{
14973 N
14974 s/\n//
14975 }
14976 ' >>$CONFIG_STATUS || ac_write_fail=1
14977 rm -f conf$$subs.awk
14978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14979 _ACAWK
14980 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14981 for (key in S) S_is_set[key] = 1
14982 FS = "\a"
14983 \$ac_cs_awk_pipe_init
14984 }
14985 {
14986 line = $ 0
14987 nfields = split(line, field, "@")
14988 substed = 0
14989 len = length(field[1])
14990 for (i = 2; i < nfields; i++) {
14991 key = field[i]
14992 keylen = length(key)
14993 if (S_is_set[key]) {
14994 value = S[key]
14995 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14996 len += length(value) + length(field[++i])
14997 substed = 1
14998 } else
14999 len += 1 + keylen
15000 }
15001 if (nfields == 3 && !substed) {
15002 key = field[2]
15003 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15004 \$ac_cs_awk_read_file
15005 next
15006 }
15007 }
15008 print line
15009 }
15010 \$ac_cs_awk_pipe_fini
15011 _ACAWK
15012 _ACEOF
15013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15014 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15015 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15016 else
15017 cat
15018 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15019 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15020 _ACEOF
15021
15022 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15023 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15024 # trailing colons and then remove the whole line if VPATH becomes empty
15025 # (actually we leave an empty line to preserve line numbers).
15026 if test "x$srcdir" = x.; then
15027 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15028 s/:*\$(srcdir):*/:/
15029 s/:*\${srcdir}:*/:/
15030 s/:*@srcdir@:*/:/
15031 s/^\([^=]*=[ ]*\):*/\1/
15032 s/:*$//
15033 s/^[^=]*=[ ]*$//
15034 }'
15035 fi
15036
15037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15038 fi # test -n "$CONFIG_FILES"
15039
15040
15041 eval set X " :F $CONFIG_FILES "
15042 shift
15043 for ac_tag
15044 do
15045 case $ac_tag in
15046 :[FHLC]) ac_mode=$ac_tag; continue;;
15047 esac
15048 case $ac_mode$ac_tag in
15049 :[FHL]*:*);;
15050 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15051 :[FH]-) ac_tag=-:-;;
15052 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15053 esac
15054 ac_save_IFS=$IFS
15055 IFS=:
15056 set x $ac_tag
15057 IFS=$ac_save_IFS
15058 shift
15059 ac_file=$1
15060 shift
15061
15062 case $ac_mode in
15063 :L) ac_source=$1;;
15064 :[FH])
15065 ac_file_inputs=
15066 for ac_f
15067 do
15068 case $ac_f in
15069 -) ac_f="$tmp/stdin";;
15070 *) # Look for the file first in the build tree, then in the source tree
15071 # (if the path is not absolute). The absolute path cannot be DOS-style,
15072 # because $ac_f cannot contain `:'.
15073 test -f "$ac_f" ||
15074 case $ac_f in
15075 [\\/$]*) false;;
15076 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15077 esac ||
15078 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15079 esac
15080 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15081 as_fn_append ac_file_inputs " '$ac_f'"
15082 done
15083
15084 # Let's still pretend it is `configure' which instantiates (i.e., don't
15085 # use $as_me), people would be surprised to read:
15086 # /* config.h. Generated by config.status. */
15087 configure_input='Generated from '`
15088 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15089 `' by configure.'
15090 if test x"$ac_file" != x-; then
15091 configure_input="$ac_file. $configure_input"
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15093 $as_echo "$as_me: creating $ac_file" >&6;}
15094 fi
15095 # Neutralize special characters interpreted by sed in replacement strings.
15096 case $configure_input in #(
15097 *\&* | *\|* | *\\* )
15098 ac_sed_conf_input=`$as_echo "$configure_input" |
15099 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15100 *) ac_sed_conf_input=$configure_input;;
15101 esac
15102
15103 case $ac_tag in
15104 *:-:* | *:-) cat >"$tmp/stdin" \
15105 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15106 esac
15107 ;;
15108 esac
15109
15110 ac_dir=`$as_dirname -- "$ac_file" ||
15111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15112 X"$ac_file" : 'X\(//\)[^/]' \| \
15113 X"$ac_file" : 'X\(//\)$' \| \
15114 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15115 $as_echo X"$ac_file" |
15116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15117 s//\1/
15118 q
15119 }
15120 /^X\(\/\/\)[^/].*/{
15121 s//\1/
15122 q
15123 }
15124 /^X\(\/\/\)$/{
15125 s//\1/
15126 q
15127 }
15128 /^X\(\/\).*/{
15129 s//\1/
15130 q
15131 }
15132 s/.*/./; q'`
15133 as_dir="$ac_dir"; as_fn_mkdir_p
15134 ac_builddir=.
15135
15136 case "$ac_dir" in
15137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15138 *)
15139 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15140 # A ".." for each directory in $ac_dir_suffix.
15141 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15142 case $ac_top_builddir_sub in
15143 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15144 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15145 esac ;;
15146 esac
15147 ac_abs_top_builddir=$ac_pwd
15148 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15149 # for backward compatibility:
15150 ac_top_builddir=$ac_top_build_prefix
15151
15152 case $srcdir in
15153 .) # We are building in place.
15154 ac_srcdir=.
15155 ac_top_srcdir=$ac_top_builddir_sub
15156 ac_abs_top_srcdir=$ac_pwd ;;
15157 [\\/]* | ?:[\\/]* ) # Absolute name.
15158 ac_srcdir=$srcdir$ac_dir_suffix;
15159 ac_top_srcdir=$srcdir
15160 ac_abs_top_srcdir=$srcdir ;;
15161 *) # Relative name.
15162 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15163 ac_top_srcdir=$ac_top_build_prefix$srcdir
15164 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15165 esac
15166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15167
15168
15169 case $ac_mode in
15170 :F)
15171 #
15172 # CONFIG_FILE
15173 #
15174
15175 case $INSTALL in
15176 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15177 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15178 esac
15179 _ACEOF
15180
15181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15182 # If the template does not know about datarootdir, expand it.
15183 # FIXME: This hack should be removed a few years after 2.60.
15184 ac_datarootdir_hack=; ac_datarootdir_seen=
15185 ac_sed_dataroot='
15186 /datarootdir/ {
15187 p
15188 q
15189 }
15190 /@datadir@/p
15191 /@docdir@/p
15192 /@infodir@/p
15193 /@localedir@/p
15194 /@mandir@/p'
15195 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15196 *datarootdir*) ac_datarootdir_seen=yes;;
15197 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15199 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15200 _ACEOF
15201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15202 ac_datarootdir_hack='
15203 s&@datadir@&$datadir&g
15204 s&@docdir@&$docdir&g
15205 s&@infodir@&$infodir&g
15206 s&@localedir@&$localedir&g
15207 s&@mandir@&$mandir&g
15208 s&\\\${datarootdir}&$datarootdir&g' ;;
15209 esac
15210 _ACEOF
15211
15212 # Neutralize VPATH when `$srcdir' = `.'.
15213 # Shell code in configure.ac might set extrasub.
15214 # FIXME: do we really want to maintain this feature?
15215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15216 ac_sed_extra="$ac_vpsub
15217 $extrasub
15218 _ACEOF
15219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15220 :t
15221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15222 s|@configure_input@|$ac_sed_conf_input|;t t
15223 s&@top_builddir@&$ac_top_builddir_sub&;t t
15224 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15225 s&@srcdir@&$ac_srcdir&;t t
15226 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15227 s&@top_srcdir@&$ac_top_srcdir&;t t
15228 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15229 s&@builddir@&$ac_builddir&;t t
15230 s&@abs_builddir@&$ac_abs_builddir&;t t
15231 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15232 s&@INSTALL@&$ac_INSTALL&;t t
15233 $ac_datarootdir_hack
15234 "
15235 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15236 if $ac_cs_awk_getline; then
15237 $AWK -f "$tmp/subs.awk"
15238 else
15239 $AWK -f "$tmp/subs.awk" | $SHELL
15240 fi >$tmp/out \
15241 || as_fn_error "could not create $ac_file" "$LINENO" 5
15242
15243 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15244 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15245 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15247 which seems to be undefined. Please make sure it is defined." >&5
15248 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15249 which seems to be undefined. Please make sure it is defined." >&2;}
15250
15251 rm -f "$tmp/stdin"
15252 case $ac_file in
15253 -) cat "$tmp/out" && rm -f "$tmp/out";;
15254 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15255 esac \
15256 || as_fn_error "could not create $ac_file" "$LINENO" 5
15257 ;;
15258
15259
15260
15261 esac
15262
15263
15264 case $ac_file$ac_mode in
15265 "Makefile":F) sed "$extrasub_build" Makefile |
15266 sed "$extrasub_host" |
15267 sed "$extrasub_target" > mf$$
15268 mv -f mf$$ Makefile ;;
15269
15270 esac
15271 done # for ac_tag
15272
15273
15274 as_fn_exit 0
15275 _ACEOF
15276 ac_clean_files=$ac_clean_files_save
15277
15278 test $ac_write_fail = 0 ||
15279 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15280
15281
15282 # configure is writing to config.log, and then calls config.status.
15283 # config.status does its own redirection, appending to config.log.
15284 # Unfortunately, on DOS this fails, as config.log is still kept open
15285 # by configure, so config.status won't be able to write to it; its
15286 # output is simply discarded. So we exec the FD to /dev/null,
15287 # effectively closing config.log, so it can be properly (re)opened and
15288 # appended to by config.status. When coming back to configure, we
15289 # need to make the FD available again.
15290 if test "$no_create" != yes; then
15291 ac_cs_success=:
15292 ac_config_status_args=
15293 test "$silent" = yes &&
15294 ac_config_status_args="$ac_config_status_args --quiet"
15295 exec 5>/dev/null
15296 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15297 exec 5>>config.log
15298 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15299 # would make configure fail if this is the last instruction.
15300 $ac_cs_success || as_fn_exit $?
15301 fi
15302 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15304 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15305 fi
15306