configure revision 1.2.2.1 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 (at] 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 # Factoring default headers for most tests.
557 ac_includes_default="\
558 #include <stdio.h>
559 #ifdef HAVE_SYS_TYPES_H
560 # include <sys/types.h>
561 #endif
562 #ifdef HAVE_SYS_STAT_H
563 # include <sys/stat.h>
564 #endif
565 #ifdef STDC_HEADERS
566 # include <stdlib.h>
567 # include <stddef.h>
568 #else
569 # ifdef HAVE_STDLIB_H
570 # include <stdlib.h>
571 # endif
572 #endif
573 #ifdef HAVE_STRING_H
574 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
575 # include <memory.h>
576 # endif
577 # include <string.h>
578 #endif
579 #ifdef HAVE_STRINGS_H
580 # include <strings.h>
581 #endif
582 #ifdef HAVE_INTTYPES_H
583 # include <inttypes.h>
584 #endif
585 #ifdef HAVE_STDINT_H
586 # include <stdint.h>
587 #endif
588 #ifdef HAVE_UNISTD_H
589 # include <unistd.h>
590 #endif"
591
592 ac_subst_vars='LTLIBOBJS
593 LIBOBJS
594 compare_exclusions
595 stage2_werror_flag
596 stage1_checking
597 stage1_cflags
598 MAINT
599 MAINTAINER_MODE_FALSE
600 MAINTAINER_MODE_TRUE
601 COMPILER_NM_FOR_TARGET
602 COMPILER_LD_FOR_TARGET
603 COMPILER_AS_FOR_TARGET
604 FLAGS_FOR_TARGET
605 RAW_CXX_FOR_TARGET
606 WINDMC_FOR_TARGET
607 WINDRES_FOR_TARGET
608 STRIP_FOR_TARGET
609 RANLIB_FOR_TARGET
610 OBJDUMP_FOR_TARGET
611 NM_FOR_TARGET
612 LIPO_FOR_TARGET
613 LD_FOR_TARGET
614 DLLTOOL_FOR_TARGET
615 AS_FOR_TARGET
616 AR_FOR_TARGET
617 GFORTRAN_FOR_TARGET
618 GCJ_FOR_TARGET
619 GCC_FOR_TARGET
620 CXX_FOR_TARGET
621 CC_FOR_TARGET
622 OBJDUMP
623 OBJCOPY
624 WINDMC
625 WINDRES
626 STRIP
627 RANLIB
628 NM
629 LIPO
630 LD
631 DLLTOOL
632 AS
633 AR
634 RUNTEST
635 EXPECT
636 MAKEINFO
637 FLEX
638 LEX
639 M4
640 BISON
641 YACC
642 config_shell
643 WINDRES_FOR_BUILD
644 WINDMC_FOR_BUILD
645 RANLIB_FOR_BUILD
646 NM_FOR_BUILD
647 LD_FOR_BUILD
648 LDFLAGS_FOR_BUILD
649 GFORTRAN_FOR_BUILD
650 GCJ_FOR_BUILD
651 DLLTOOL_FOR_BUILD
652 CXX_FOR_BUILD
653 CXXFLAGS_FOR_BUILD
654 CFLAGS_FOR_BUILD
655 CC_FOR_BUILD
656 AS_FOR_BUILD
657 AR_FOR_BUILD
658 target_configargs
659 target_configdirs
660 configdirs
661 host_configargs
662 build_configdirs
663 build_configargs
664 INSTALL_GDB_TK
665 GDB_TK
666 CONFIGURE_GDB_TK
667 build_tooldir
668 tooldir
669 GCC_SHLIB_SUBDIR
670 RPATH_ENVVAR
671 BUILD_CONFIG
672 CXXFLAGS_FOR_TARGET
673 CFLAGS_FOR_TARGET
674 DEBUG_PREFIX_CFLAGS_FOR_TARGET
675 SYSROOT_CFLAGS_FOR_TARGET
676 stage1_languages
677 extra_host_libiberty_configure_flags
678 libelfinc
679 libelflibs
680 EGREP
681 GREP
682 CPP
683 clooginc
684 clooglibs
685 pplinc
686 ppllibs
687 poststage1_ldflags
688 poststage1_libs
689 stage1_libs
690 stage1_ldflags
691 extra_mpc_mpfr_configure_flags
692 extra_mpc_gmp_configure_flags
693 extra_mpfr_configure_flags
694 gmpinc
695 gmplibs
696 do_compare
697 GNATMAKE
698 GNATBIND
699 ac_ct_CXX
700 CXXFLAGS
701 CXX
702 OBJEXT
703 EXEEXT
704 ac_ct_CC
705 CPPFLAGS
706 LDFLAGS
707 CFLAGS
708 CC
709 target_subdir
710 host_subdir
711 build_subdir
712 build_libsubdir
713 AWK
714 SED
715 LN_S
716 LN
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 target_os
721 target_vendor
722 target_cpu
723 target
724 host_os
725 host_vendor
726 host_cpu
727 host
728 target_noncanonical
729 host_noncanonical
730 build_noncanonical
731 build_os
732 build_vendor
733 build_cpu
734 build
735 TOPLEVEL_CONFIGURE_ARGUMENTS
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files='serialization_dependencies
775 host_makefile_frag
776 target_makefile_frag
777 alphaieee_frag
778 ospace_frag'
779 ac_user_opts='
780 enable_option_checking
781 with_build_libsubdir
782 enable_gold
783 enable_libada
784 enable_libssp
785 enable_build_with_cxx
786 with_mpc
787 with_mpc_include
788 with_mpc_lib
789 with_mpfr_dir
790 with_mpfr
791 with_mpfr_include
792 with_mpfr_lib
793 with_gmp_dir
794 with_gmp
795 with_gmp_include
796 with_gmp_lib
797 with_host_libstdcxx
798 with_stage1_ldflags
799 with_stage1_libs
800 with_boot_libs
801 with_boot_ldflags
802 with_ppl
803 with_ppl_include
804 with_ppl_lib
805 enable_ppl_version_check
806 with_cloog
807 with_cloog_include
808 with_cloog_lib
809 enable_cloog_version_check
810 enable_lto
811 with_libelf
812 with_libelf_include
813 with_libelf_lib
814 enable_stage1_languages
815 enable_objc_gc
816 with_build_sysroot
817 with_debug_prefix_map
818 enable_bootstrap
819 with_build_config
820 enable_serial_configure
821 with_build_time_tools
822 enable_maintainer_mode
823 enable_stage1_checking
824 enable_werror
825 '
826 ac_precious_vars='build_alias
827 host_alias
828 target_alias
829 CC
830 CFLAGS
831 LDFLAGS
832 LIBS
833 CPPFLAGS
834 CXX
835 CXXFLAGS
836 CCC
837 CPP
838 AR
839 AS
840 DLLTOOL
841 LD
842 LIPO
843 NM
844 RANLIB
845 STRIP
846 WINDRES
847 WINDMC
848 OBJCOPY
849 OBJDUMP
850 CC_FOR_TARGET
851 CXX_FOR_TARGET
852 GCC_FOR_TARGET
853 GCJ_FOR_TARGET
854 GFORTRAN_FOR_TARGET
855 AR_FOR_TARGET
856 AS_FOR_TARGET
857 DLLTOOL_FOR_TARGET
858 LD_FOR_TARGET
859 LIPO_FOR_TARGET
860 NM_FOR_TARGET
861 OBJDUMP_FOR_TARGET
862 RANLIB_FOR_TARGET
863 STRIP_FOR_TARGET
864 WINDRES_FOR_TARGET
865 WINDMC_FOR_TARGET'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE}'
907 infodir='${datarootdir}/info'
908 htmldir='${docdir}'
909 dvidir='${docdir}'
910 pdfdir='${docdir}'
911 psdir='${docdir}'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
915
916 ac_prev=
917 ac_dashdash=
918 for ac_option
919 do
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\$ac_option
923 ac_prev=
924 continue
925 fi
926
927 case $ac_option in
928 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 *) ac_optarg=yes ;;
930 esac
931
932 # Accept the important Cygnus configure options, so we can diagnose typos.
933
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
942
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
957
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
962
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
995
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1031
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1036
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1066
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1140
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1176
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1199
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1215
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
1250 -*) as_fn_error "unrecognized option: \`$ac_option'
1251 Try \`$0 --help' for more information."
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
1259 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 ;;
1271
1272 esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 as_fn_error "missing argument to $ac_option"
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1286 fi
1287
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1293 do
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1308
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325 fi
1326
1327 ac_tool_prefix=
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330 test "$silent" = yes && exec 6>/dev/null
1331
1332
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 as_fn_error "working directory cannot be determined"
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 as_fn_error "pwd does not report name of working directory"
1339
1340
1341 # Find the source files, if location was not specified.
1342 if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350 $as_echo X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\).*/{
1364 s//\1/
1365 q
1366 }
1367 s/.*/./; q'`
1368 srcdir=$ac_confdir
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 srcdir=..
1371 fi
1372 else
1373 ac_srcdir_defaulted=no
1374 fi
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1378 fi
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 ac_abs_confdir=`(
1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1382 pwd)`
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 srcdir=.
1386 fi
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1390 case $srcdir in
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 esac
1393 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1394
1395 for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400 done
1401
1402 #
1403 # Report the --help message.
1404 #
1405 if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1408 cat <<_ACEOF
1409 \`configure' configures this package to adapt to many kinds of systems.
1410
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE. See below for descriptions of some of the useful variables.
1415
1416 Defaults for the options are specified in brackets.
1417
1418 Configuration:
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428
1429 Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 [PREFIX]
1434
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1439
1440 For better control, use the options below.
1441
1442 Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --libdir=DIR object code libraries [EPREFIX/lib]
1450 --includedir=DIR C header files [PREFIX/include]
1451 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454 --infodir=DIR info documentation [DATAROOTDIR/info]
1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456 --mandir=DIR man documentation [DATAROOTDIR/man]
1457 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1458 --htmldir=DIR html documentation [DOCDIR]
1459 --dvidir=DIR dvi documentation [DOCDIR]
1460 --pdfdir=DIR pdf documentation [DOCDIR]
1461 --psdir=DIR ps documentation [DOCDIR]
1462 _ACEOF
1463
1464 cat <<\_ACEOF
1465
1466 Program names:
1467 --program-prefix=PREFIX prepend PREFIX to installed program names
1468 --program-suffix=SUFFIX append SUFFIX to installed program names
1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1470
1471 System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 --target=TARGET configure for building compilers for TARGET [HOST]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479
1480 cat <<\_ACEOF
1481
1482 Optional Features:
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --enable-gold use gold instead of ld
1487 --enable-libada build libada directory
1488 --enable-libssp build libssp directory
1489 --enable-build-with-cxx build with C++ compiler instead of C compiler
1490 --disable-ppl-version-check disable check for PPL version
1491 --disable-cloog-version-check disable check for CLooG version
1492 --enable-lto enable link time optimization support
1493 --enable-stage1-languages[=all] choose additional languages to build during
1494 stage1. Mostly useful for compiler development.
1495 --enable-objc-gc enable use of Boehm's garbage collector with the
1496 GNU Objective-C runtime
1497 --enable-bootstrap enable bootstrapping [yes if native build]
1498 --enable-serial-[{host,target,build}-]configure
1499 force sequential configuration of
1500 sub-packages for the host, target or build
1501 machine, or all sub-packages
1502 --enable-maintainer-mode enable make rules and dependencies not useful
1503 (and sometimes confusing) to the casual installer
1504 --enable-stage1-checking[=all] choose additional checking for stage1
1505 of the compiler
1506 --enable-werror enable -Werror in bootstrap stage2 and later
1507
1508 Optional Packages:
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1511 --with-build-libsubdir=DIR Directory where to find libraries for build system
1512 --with-mpc=PATH specify prefix directory for installed MPC package.
1513 Equivalent to --with-mpc-include=PATH/include
1514 plus --with-mpc-lib=PATH/lib
1515 --with-mpc-include=PATH
1516 specify directory for installed MPC include files
1517 --with-mpc-lib=PATH specify directory for the installed MPC library
1518 --with-mpfr-dir=PATH this option has been REMOVED
1519 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1520 Equivalent to --with-mpfr-include=PATH/include
1521 plus --with-mpfr-lib=PATH/lib
1522 --with-mpfr-include=PATH
1523 specify directory for installed MPFR include files
1524 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1525 --with-gmp-dir=PATH this option has been REMOVED
1526 --with-gmp=PATH specify prefix directory for the installed GMP package.
1527 Equivalent to --with-gmp-include=PATH/include
1528 plus --with-gmp-lib=PATH/lib
1529 --with-gmp-include=PATH specify directory for installed GMP include files
1530 --with-gmp-lib=PATH specify directory for the installed GMP library
1531 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1532 when linking with PPL
1533 --with-stage1-ldflags=FLAGS Linker flags for stage1
1534 -with-stage1-libs=LIBS Libraries for stage1
1535 --with-boot-libs=LIBS Libraries for stage2 and later
1536 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1537 --with-ppl=PATH Specify prefix directory for the installed PPL package
1538 Equivalent to --with-ppl-include=PATH/include
1539 plus --with-ppl-lib=PATH/lib
1540 --with-ppl-include=PATH Specify directory for installed PPL include files
1541 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1542 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1543 Equivalent to --with-cloog-include=PATH/include
1544 plus --with-cloog-lib=PATH/lib
1545 --with-cloog-include=PATH Specify directory for installed CLooG include files
1546 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
1547 --with-libelf=PATH Specify prefix directory for the installed libelf package
1548 Equivalent to --with-libelf-include=PATH/include
1549 plus --with-libelf-lib=PATH/lib
1550 --with-libelf-include=PATH Specify directory for installed libelf include files
1551 --with-libelf-lib=PATH Specify the directory for the installed libelf library
1552 --with-build-sysroot=SYSROOT
1553 use sysroot as the system root during the build
1554 --with-debug-prefix-map='A=B C=D ...'
1555 map A to B, C to D ... in debug information
1556 --with-build-config='NAME NAME2...'
1557 Use config/NAME.mk build configuration
1558 --with-build-time-tools=PATH
1559 use given path to find target tools during the build
1560
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
1571 CPP C preprocessor
1572 AR AR for the host
1573 AS AS for the host
1574 DLLTOOL DLLTOOL for the host
1575 LD LD for the host
1576 LIPO LIPO for the host
1577 NM NM for the host
1578 RANLIB RANLIB for the host
1579 STRIP STRIP for the host
1580 WINDRES WINDRES for the host
1581 WINDMC WINDMC for the host
1582 OBJCOPY OBJCOPY for the host
1583 OBJDUMP OBJDUMP for the host
1584 CC_FOR_TARGET
1585 CC for the target
1586 CXX_FOR_TARGET
1587 CXX for the target
1588 GCC_FOR_TARGET
1589 GCC for the target
1590 GCJ_FOR_TARGET
1591 GCJ for the target
1592 GFORTRAN_FOR_TARGET
1593 GFORTRAN for the target
1594 AR_FOR_TARGET
1595 AR for the target
1596 AS_FOR_TARGET
1597 AS for the target
1598 DLLTOOL_FOR_TARGET
1599 DLLTOOL for the target
1600 LD_FOR_TARGET
1601 LD for the target
1602 LIPO_FOR_TARGET
1603 LIPO for the target
1604 NM_FOR_TARGET
1605 NM for the target
1606 OBJDUMP_FOR_TARGET
1607 OBJDUMP for the target
1608 RANLIB_FOR_TARGET
1609 RANLIB for the target
1610 STRIP_FOR_TARGET
1611 STRIP for the target
1612 WINDRES_FOR_TARGET
1613 WINDRES for the target
1614 WINDMC_FOR_TARGET
1615 WINDMC for the target
1616
1617 Use these variables to override the choices made by `configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1619
1620 Report bugs to the package provider.
1621 _ACEOF
1622 ac_status=$?
1623 fi
1624
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 continue
1631 ac_builddir=.
1632
1633 case "$ac_dir" in
1634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *)
1636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 esac ;;
1643 esac
1644 ac_abs_top_builddir=$ac_pwd
1645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646 # for backward compatibility:
1647 ac_top_builddir=$ac_top_build_prefix
1648
1649 case $srcdir in
1650 .) # We are building in place.
1651 ac_srcdir=.
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1655 ac_srcdir=$srcdir$ac_dir_suffix;
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1658 *) # Relative name.
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1662 esac
1663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1673 else
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1677 done
1678 fi
1679
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1682 cat <<\_ACEOF
1683 configure
1684 generated by GNU Autoconf 2.64
1685
1686 Copyright (C) 2009 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1689 _ACEOF
1690 exit
1691 fi
1692
1693 ## ------------------------ ##
1694 ## Autoconf initialization. ##
1695 ## ------------------------ ##
1696
1697 # ac_fn_c_try_compile LINENO
1698 # --------------------------
1699 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_compile ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.$ac_objext; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729 fi
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 return $ac_retval
1732
1733 } # ac_fn_c_try_compile
1734
1735 # ac_fn_cxx_try_compile LINENO
1736 # ----------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_cxx_try_compile ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767 fi
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 return $ac_retval
1770
1771 } # ac_fn_cxx_try_compile
1772
1773 # ac_fn_c_try_link LINENO
1774 # -----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_link ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
1800 $as_test_x conftest$ac_exeext
1801 }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808 fi
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 return $ac_retval
1816
1817 } # ac_fn_c_try_link
1818
1819 # ac_fn_c_try_cpp LINENO
1820 # ----------------------
1821 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_cpp ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if { { ac_try="$ac_cpp conftest.$ac_ext"
1826 case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1833 ac_status=$?
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1838 fi
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } >/dev/null && {
1841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1843 }; then :
1844 ac_retval=0
1845 else
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=1
1850 fi
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 return $ac_retval
1853
1854 } # ac_fn_c_try_cpp
1855
1856 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1857 # -------------------------------------------------------
1858 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1859 # the include files in INCLUDES and setting the cache variable VAR
1860 # accordingly.
1861 ac_fn_c_check_header_mongrel ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1869 fi
1870 eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 else
1874 # Is the header compilable?
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1876 $as_echo_n "checking $2 usability... " >&6; }
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 $4
1880 #include <$2>
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883 ac_header_compiler=yes
1884 else
1885 ac_header_compiler=no
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1889 $as_echo "$ac_header_compiler" >&6; }
1890
1891 # Is the header present?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1893 $as_echo_n "checking $2 presence... " >&6; }
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1896 #include <$2>
1897 _ACEOF
1898 if ac_fn_c_try_cpp "$LINENO"; then :
1899 ac_header_preproc=yes
1900 else
1901 ac_header_preproc=no
1902 fi
1903 rm -f conftest.err conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1905 $as_echo "$ac_header_preproc" >&6; }
1906
1907 # So? What about this header?
1908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1909 yes:no: )
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1911 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914 ;;
1915 no:yes:* )
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1917 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1919 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1921 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1923 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1925 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1926 ;;
1927 esac
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 eval "$3=\$ac_header_compiler"
1934 fi
1935 eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 fi
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940
1941 } # ac_fn_c_check_header_mongrel
1942
1943 # ac_fn_c_try_run LINENO
1944 # ----------------------
1945 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1946 # that executables *can* be run.
1947 ac_fn_c_try_run ()
1948 {
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_link"
1951 case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_link") 2>&5
1958 ac_status=$?
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1961 { { case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_try") 2>&5
1968 ac_status=$?
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; }; }; then :
1971 ac_retval=0
1972 else
1973 $as_echo "$as_me: program exited with status $ac_status" >&5
1974 $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1976
1977 ac_retval=$ac_status
1978 fi
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 return $ac_retval
1982
1983 } # ac_fn_c_try_run
1984
1985 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1986 # -------------------------------------------------------
1987 # Tests whether HEADER exists and can be compiled using the include files in
1988 # INCLUDES, setting the cache variable VAR accordingly.
1989 ac_fn_c_check_header_compile ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 $as_echo_n "(cached) " >&6
1996 else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
1999 $4
2000 #include <$2>
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 eval "$3=yes"
2004 else
2005 eval "$3=no"
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 fi
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013
2014 } # ac_fn_c_check_header_compile
2015 cat >config.log <<_ACEOF
2016 This file contains any messages produced by compilers while
2017 running configure, to aid debugging if configure makes a mistake.
2018
2019 It was created by $as_me, which was
2020 generated by GNU Autoconf 2.64. Invocation command line was
2021
2022 $ $0 $@
2023
2024 _ACEOF
2025 exec 5>>config.log
2026 {
2027 cat <<_ASUNAME
2028 ## --------- ##
2029 ## Platform. ##
2030 ## --------- ##
2031
2032 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2033 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2034 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2035 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2036 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2037
2038 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2039 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2040
2041 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2042 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2043 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2044 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2045 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2046 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2047 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2048
2049 _ASUNAME
2050
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 $as_echo "PATH: $as_dir"
2057 done
2058 IFS=$as_save_IFS
2059
2060 } >&5
2061
2062 cat >&5 <<_ACEOF
2063
2064
2065 ## ----------- ##
2066 ## Core tests. ##
2067 ## ----------- ##
2068
2069 _ACEOF
2070
2071
2072 # Keep a trace of the command line.
2073 # Strip out --no-create and --no-recursion so they do not pile up.
2074 # Strip out --silent because we don't want to record it for future runs.
2075 # Also quote any args containing shell meta-characters.
2076 # Make two passes to allow for proper duplicate-argument suppression.
2077 ac_configure_args=
2078 ac_configure_args0=
2079 ac_configure_args1=
2080 ac_must_keep_next=false
2081 for ac_pass in 1 2
2082 do
2083 for ac_arg
2084 do
2085 case $ac_arg in
2086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2088 | -silent | --silent | --silen | --sile | --sil)
2089 continue ;;
2090 *\'*)
2091 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2092 esac
2093 case $ac_pass in
2094 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2095 2)
2096 as_fn_append ac_configure_args1 " '$ac_arg'"
2097 if test $ac_must_keep_next = true; then
2098 ac_must_keep_next=false # Got value, back to normal.
2099 else
2100 case $ac_arg in
2101 *=* | --config-cache | -C | -disable-* | --disable-* \
2102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2104 | -with-* | --with-* | -without-* | --without-* | --x)
2105 case "$ac_configure_args0 " in
2106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2107 esac
2108 ;;
2109 -* ) ac_must_keep_next=true ;;
2110 esac
2111 fi
2112 as_fn_append ac_configure_args " '$ac_arg'"
2113 ;;
2114 esac
2115 done
2116 done
2117 { ac_configure_args0=; unset ac_configure_args0;}
2118 { ac_configure_args1=; unset ac_configure_args1;}
2119
2120 # When interrupted or exit'd, cleanup temporary files, and complete
2121 # config.log. We remove comments because anyway the quotes in there
2122 # would cause problems or look ugly.
2123 # WARNING: Use '\'' to represent an apostrophe within the trap.
2124 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2125 trap 'exit_status=$?
2126 # Save into config.log some information that might help in debugging.
2127 {
2128 echo
2129
2130 cat <<\_ASBOX
2131 ## ---------------- ##
2132 ## Cache variables. ##
2133 ## ---------------- ##
2134 _ASBOX
2135 echo
2136 # The following way of writing the cache mishandles newlines in values,
2137 (
2138 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in #(
2141 *${as_nl}*)
2142 case $ac_var in #(
2143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145 esac
2146 case $ac_var in #(
2147 _ | IFS | as_nl) ;; #(
2148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149 *) { eval $ac_var=; unset $ac_var;} ;;
2150 esac ;;
2151 esac
2152 done
2153 (set) 2>&1 |
2154 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155 *${as_nl}ac_space=\ *)
2156 sed -n \
2157 "s/'\''/'\''\\\\'\'''\''/g;
2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159 ;; #(
2160 *)
2161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2162 ;;
2163 esac |
2164 sort
2165 )
2166 echo
2167
2168 cat <<\_ASBOX
2169 ## ----------------- ##
2170 ## Output variables. ##
2171 ## ----------------- ##
2172 _ASBOX
2173 echo
2174 for ac_var in $ac_subst_vars
2175 do
2176 eval ac_val=\$$ac_var
2177 case $ac_val in
2178 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179 esac
2180 $as_echo "$ac_var='\''$ac_val'\''"
2181 done | sort
2182 echo
2183
2184 if test -n "$ac_subst_files"; then
2185 cat <<\_ASBOX
2186 ## ------------------- ##
2187 ## File substitutions. ##
2188 ## ------------------- ##
2189 _ASBOX
2190 echo
2191 for ac_var in $ac_subst_files
2192 do
2193 eval ac_val=\$$ac_var
2194 case $ac_val in
2195 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2196 esac
2197 $as_echo "$ac_var='\''$ac_val'\''"
2198 done | sort
2199 echo
2200 fi
2201
2202 if test -s confdefs.h; then
2203 cat <<\_ASBOX
2204 ## ----------- ##
2205 ## confdefs.h. ##
2206 ## ----------- ##
2207 _ASBOX
2208 echo
2209 cat confdefs.h
2210 echo
2211 fi
2212 test "$ac_signal" != 0 &&
2213 $as_echo "$as_me: caught signal $ac_signal"
2214 $as_echo "$as_me: exit $exit_status"
2215 } >&5
2216 rm -f core *.core core.conftest.* &&
2217 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2218 exit $exit_status
2219 ' 0
2220 for ac_signal in 1 2 13 15; do
2221 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2222 done
2223 ac_signal=0
2224
2225 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2226 rm -f -r conftest* confdefs.h
2227
2228 $as_echo "/* confdefs.h */" > confdefs.h
2229
2230 # Predefined preprocessor variables.
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_NAME "$PACKAGE_NAME"
2234 _ACEOF
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2238 _ACEOF
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2242 _ACEOF
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_STRING "$PACKAGE_STRING"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2250 _ACEOF
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_URL "$PACKAGE_URL"
2254 _ACEOF
2255
2256
2257 # Let the site file select an alternate cache file if it wants to.
2258 # Prefer an explicitly selected file to automatically selected ones.
2259 ac_site_file1=NONE
2260 ac_site_file2=NONE
2261 if test -n "$CONFIG_SITE"; then
2262 ac_site_file1=$CONFIG_SITE
2263 elif test "x$prefix" != xNONE; then
2264 ac_site_file1=$prefix/share/config.site
2265 ac_site_file2=$prefix/etc/config.site
2266 else
2267 ac_site_file1=$ac_default_prefix/share/config.site
2268 ac_site_file2=$ac_default_prefix/etc/config.site
2269 fi
2270 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271 do
2272 test "x$ac_site_file" = xNONE && continue
2273 if test -r "$ac_site_file"; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2275 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2276 sed 's/^/| /' "$ac_site_file" >&5
2277 . "$ac_site_file"
2278 fi
2279 done
2280
2281 if test -r "$cache_file"; then
2282 # Some versions of bash will fail to source /dev/null (special
2283 # files actually), so we avoid doing that.
2284 if test -f "$cache_file"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2286 $as_echo "$as_me: loading cache $cache_file" >&6;}
2287 case $cache_file in
2288 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2289 *) . "./$cache_file";;
2290 esac
2291 fi
2292 else
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2294 $as_echo "$as_me: creating cache $cache_file" >&6;}
2295 >$cache_file
2296 fi
2297
2298 # Check that the precious variables saved in the cache have kept the same
2299 # value.
2300 ac_cache_corrupted=false
2301 for ac_var in $ac_precious_vars; do
2302 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2303 eval ac_new_set=\$ac_env_${ac_var}_set
2304 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2305 eval ac_new_val=\$ac_env_${ac_var}_value
2306 case $ac_old_set,$ac_new_set in
2307 set,)
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2309 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2310 ac_cache_corrupted=: ;;
2311 ,set)
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2313 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2314 ac_cache_corrupted=: ;;
2315 ,);;
2316 *)
2317 if test "x$ac_old_val" != "x$ac_new_val"; then
2318 # differences in whitespace do not lead to failure.
2319 ac_old_val_w=`echo x $ac_old_val`
2320 ac_new_val_w=`echo x $ac_new_val`
2321 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2323 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2324 ac_cache_corrupted=:
2325 else
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2327 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2328 eval $ac_var=\$ac_old_val
2329 fi
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2331 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2333 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2334 fi;;
2335 esac
2336 # Pass precious variables to config.status.
2337 if test "$ac_new_set" = set; then
2338 case $ac_new_val in
2339 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2340 *) ac_arg=$ac_var=$ac_new_val ;;
2341 esac
2342 case " $ac_configure_args " in
2343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2344 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2345 esac
2346 fi
2347 done
2348 if $ac_cache_corrupted; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2352 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2353 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2354 fi
2355 ## -------------------- ##
2356 ## Main body of script. ##
2357 ## -------------------- ##
2358
2359 ac_ext=c
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373 progname=$0
2374 # if PWD already has a value, it is probably wrong.
2375 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2376
2377 # Export original configure arguments for use by sub-configures.
2378 # Quote arguments with shell meta charatcers.
2379 TOPLEVEL_CONFIGURE_ARGUMENTS=
2380 set -- "$progname" "$@"
2381 for ac_arg
2382 do
2383 case "$ac_arg" in
2384 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2385 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2386 # if the argument is of the form -foo=baz, quote the baz part only
2387 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2388 *) ;;
2389 esac
2390 # Add the quoted argument to the list.
2391 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2392 done
2393 if test "$silent" = yes; then
2394 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2395 fi
2396 # Remove the initial space we just introduced and, as these will be
2397 # expanded by make, quote '$'.
2398 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2399
2400
2401 # Find the build, host, and target systems.
2402 ac_aux_dir=
2403 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2404 for ac_t in install-sh install.sh shtool; do
2405 if test -f "$ac_dir/$ac_t"; then
2406 ac_aux_dir=$ac_dir
2407 ac_install_sh="$ac_aux_dir/$ac_t -c"
2408 break 2
2409 fi
2410 done
2411 done
2412 if test -z "$ac_aux_dir"; then
2413 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2414 fi
2415
2416 # These three variables are undocumented and unsupported,
2417 # and are intended to be withdrawn in a future Autoconf release.
2418 # They can cause serious problems if a builder's source tree is in a directory
2419 # whose full name contains unusual characters.
2420 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2421 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2422 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2423
2424
2425 # Make sure we can run config.sub.
2426 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2427 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2428
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2430 $as_echo_n "checking build system type... " >&6; }
2431 if test "${ac_cv_build+set}" = set; then :
2432 $as_echo_n "(cached) " >&6
2433 else
2434 ac_build_alias=$build_alias
2435 test "x$ac_build_alias" = x &&
2436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2437 test "x$ac_build_alias" = x &&
2438 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2440 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2441
2442 fi
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2444 $as_echo "$ac_cv_build" >&6; }
2445 case $ac_cv_build in
2446 *-*-*) ;;
2447 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2448 esac
2449 build=$ac_cv_build
2450 ac_save_IFS=$IFS; IFS='-'
2451 set x $ac_cv_build
2452 shift
2453 build_cpu=$1
2454 build_vendor=$2
2455 shift; shift
2456 # Remember, the first character of IFS is used to create $*,
2457 # except with old shells:
2458 build_os=$*
2459 IFS=$ac_save_IFS
2460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2461
2462
2463 case ${build_alias} in
2464 "") build_noncanonical=${build} ;;
2465 *) build_noncanonical=${build_alias} ;;
2466 esac
2467
2468
2469
2470 case ${host_alias} in
2471 "") host_noncanonical=${build_noncanonical} ;;
2472 *) host_noncanonical=${host_alias} ;;
2473 esac
2474
2475
2476
2477 case ${target_alias} in
2478 "") target_noncanonical=${host_noncanonical} ;;
2479 *) target_noncanonical=${target_alias} ;;
2480 esac
2481
2482
2483
2484
2485 test "$host_noncanonical" = "$target_noncanonical" &&
2486 test "$program_prefix$program_suffix$program_transform_name" = \
2487 NONENONEs,x,x, &&
2488 program_transform_name=s,y,y,
2489
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2491 $as_echo_n "checking host system type... " >&6; }
2492 if test "${ac_cv_host+set}" = set; then :
2493 $as_echo_n "(cached) " >&6
2494 else
2495 if test "x$host_alias" = x; then
2496 ac_cv_host=$ac_cv_build
2497 else
2498 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2499 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2500 fi
2501
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2504 $as_echo "$ac_cv_host" >&6; }
2505 case $ac_cv_host in
2506 *-*-*) ;;
2507 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2508 esac
2509 host=$ac_cv_host
2510 ac_save_IFS=$IFS; IFS='-'
2511 set x $ac_cv_host
2512 shift
2513 host_cpu=$1
2514 host_vendor=$2
2515 shift; shift
2516 # Remember, the first character of IFS is used to create $*,
2517 # except with old shells:
2518 host_os=$*
2519 IFS=$ac_save_IFS
2520 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2521
2522
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2524 $as_echo_n "checking target system type... " >&6; }
2525 if test "${ac_cv_target+set}" = set; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 if test "x$target_alias" = x; then
2529 ac_cv_target=$ac_cv_host
2530 else
2531 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2532 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2533 fi
2534
2535 fi
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2537 $as_echo "$ac_cv_target" >&6; }
2538 case $ac_cv_target in
2539 *-*-*) ;;
2540 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2541 esac
2542 target=$ac_cv_target
2543 ac_save_IFS=$IFS; IFS='-'
2544 set x $ac_cv_target
2545 shift
2546 target_cpu=$1
2547 target_vendor=$2
2548 shift; shift
2549 # Remember, the first character of IFS is used to create $*,
2550 # except with old shells:
2551 target_os=$*
2552 IFS=$ac_save_IFS
2553 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2554
2555
2556 # The aliases save the names the user supplied, while $host etc.
2557 # will get canonicalized.
2558 test -n "$target_alias" &&
2559 test "$program_prefix$program_suffix$program_transform_name" = \
2560 NONENONEs,x,x, &&
2561 program_prefix=${target_alias}-
2562
2563 test "$program_prefix" != NONE &&
2564 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2565 # Use a double $ so make ignores it.
2566 test "$program_suffix" != NONE &&
2567 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2568 # Double any \ or $.
2569 # By default was `s,x,x', remove it if useless.
2570 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2571 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2572
2573
2574
2575 # Get 'install' or 'install-sh' and its variants.
2576 # Find a good install program. We prefer a C program (faster),
2577 # so one script is as good as another. But avoid the broken or
2578 # incompatible versions:
2579 # SysV /etc/install, /usr/sbin/install
2580 # SunOS /usr/etc/install
2581 # IRIX /sbin/install
2582 # AIX /bin/install
2583 # AmigaOS /C/install, which installs bootblocks on floppy discs
2584 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2587 # OS/2's system install, which has a completely different semantic
2588 # ./install, which can be erroneously created by make from ./install.sh.
2589 # Reject install programs that cannot install multiple files.
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2591 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2592 if test -z "$INSTALL"; then
2593 if test "${ac_cv_path_install+set}" = set; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 # Account for people who put trailing slashes in PATH elements.
2602 case $as_dir/ in #((
2603 ./ | .// | /[cC]/* | \
2604 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2605 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2606 /usr/ucb/* ) ;;
2607 *)
2608 # OSF1 and SCO ODT 3.0 have their own names for install.
2609 # Don't use installbsd from OSF since it installs stuff as root
2610 # by default.
2611 for ac_prog in ginstall scoinst install; do
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2614 if test $ac_prog = install &&
2615 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2616 # AIX install. It has an incompatible calling convention.
2617 :
2618 elif test $ac_prog = install &&
2619 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2620 # program-specific install script used by HP pwplus--don't use.
2621 :
2622 else
2623 rm -rf conftest.one conftest.two conftest.dir
2624 echo one > conftest.one
2625 echo two > conftest.two
2626 mkdir conftest.dir
2627 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2628 test -s conftest.one && test -s conftest.two &&
2629 test -s conftest.dir/conftest.one &&
2630 test -s conftest.dir/conftest.two
2631 then
2632 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2633 break 3
2634 fi
2635 fi
2636 fi
2637 done
2638 done
2639 ;;
2640 esac
2641
2642 done
2643 IFS=$as_save_IFS
2644
2645 rm -rf conftest.one conftest.two conftest.dir
2646
2647 fi
2648 if test "${ac_cv_path_install+set}" = set; then
2649 INSTALL=$ac_cv_path_install
2650 else
2651 # As a last resort, use the slow shell script. Don't cache a
2652 # value for INSTALL within a source directory, because that will
2653 # break other packages using the cache if that directory is
2654 # removed, or if the value is a relative name.
2655 INSTALL=$ac_install_sh
2656 fi
2657 fi
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2659 $as_echo "$INSTALL" >&6; }
2660
2661 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2662 # It thinks the first close brace ends the variable substitution.
2663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2664
2665 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2666
2667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2668
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2670 $as_echo_n "checking whether ln works... " >&6; }
2671 if test "${acx_cv_prog_LN+set}" = set; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 rm -f conftestdata_t
2675 echo >conftestdata_f
2676 if ln conftestdata_f conftestdata_t 2>/dev/null
2677 then
2678 acx_cv_prog_LN=ln
2679 else
2680 acx_cv_prog_LN=no
2681 fi
2682 rm -f conftestdata_f conftestdata_t
2683
2684 fi
2685 if test $acx_cv_prog_LN = no; then
2686 LN="cp"
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2688 $as_echo "no, using $LN" >&6; }
2689 else
2690 LN="$acx_cv_prog_LN"
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2692 $as_echo "yes" >&6; }
2693 fi
2694
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2696 $as_echo_n "checking whether ln -s works... " >&6; }
2697 LN_S=$as_ln_s
2698 if test "$LN_S" = "ln -s"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2700 $as_echo "yes" >&6; }
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2703 $as_echo "no, using $LN_S" >&6; }
2704 fi
2705
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2707 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2708 if test "${ac_cv_path_SED+set}" = set; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2712 for ac_i in 1 2 3 4 5 6 7; do
2713 ac_script="$ac_script$as_nl$ac_script"
2714 done
2715 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2716 { ac_script=; unset ac_script;}
2717 if test -z "$SED"; then
2718 ac_path_SED_found=false
2719 # Loop through the user's path and test for each of PROGNAME-LIST
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2722 do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_prog in sed gsed; do
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2728 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2729 # Check for GNU ac_path_SED and select it if it is found.
2730 # Check for GNU $ac_path_SED
2731 case `"$ac_path_SED" --version 2>&1` in
2732 *GNU*)
2733 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2734 *)
2735 ac_count=0
2736 $as_echo_n 0123456789 >"conftest.in"
2737 while :
2738 do
2739 cat "conftest.in" "conftest.in" >"conftest.tmp"
2740 mv "conftest.tmp" "conftest.in"
2741 cp "conftest.in" "conftest.nl"
2742 $as_echo '' >> "conftest.nl"
2743 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2744 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2745 as_fn_arith $ac_count + 1 && ac_count=$as_val
2746 if test $ac_count -gt ${ac_path_SED_max-0}; then
2747 # Best one so far, save it but keep looking for a better one
2748 ac_cv_path_SED="$ac_path_SED"
2749 ac_path_SED_max=$ac_count
2750 fi
2751 # 10*(2^10) chars as input seems more than enough
2752 test $ac_count -gt 10 && break
2753 done
2754 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2755 esac
2756
2757 $ac_path_SED_found && break 3
2758 done
2759 done
2760 done
2761 IFS=$as_save_IFS
2762 if test -z "$ac_cv_path_SED"; then
2763 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2764 fi
2765 else
2766 ac_cv_path_SED=$SED
2767 fi
2768
2769 fi
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2771 $as_echo "$ac_cv_path_SED" >&6; }
2772 SED="$ac_cv_path_SED"
2773 rm -f conftest.sed
2774
2775 for ac_prog in gawk mawk nawk awk
2776 do
2777 # Extract the first word of "$ac_prog", so it can be a program name with args.
2778 set dummy $ac_prog; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if test "${ac_cv_prog_AWK+set}" = set; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 if test -n "$AWK"; then
2785 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_AWK="$ac_prog"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798 done
2799 done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 AWK=$ac_cv_prog_AWK
2805 if test -n "$AWK"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2807 $as_echo "$AWK" >&6; }
2808 else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 fi
2812
2813
2814 test -n "$AWK" && break
2815 done
2816
2817
2818 ### we might need to use some other shell than /bin/sh for running subshells
2819 ### If we are on Windows, search for the shell. This will permit people
2820 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2821 ### without also having to set CONFIG_SHELL. This code will work when
2822 ### using bash, which sets OSTYPE.
2823 case "${OSTYPE}" in
2824 *win32*)
2825 if test x${CONFIG_SHELL} = x ; then
2826 if test ! -f /bin/sh ; then
2827 if test x${SHELL} != x && test -f ${SHELL} ; then
2828 CONFIG_SHELL=${SHELL}
2829 export CONFIG_SHELL
2830 else
2831 for prog in sh sh.exe bash bash.exe; do
2832 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2833 for dir in $PATH; do
2834 test -z "$dir" && dir=.
2835 if test -f $dir/$prog; then
2836 CONFIG_SHELL=$dir/$prog
2837 export CONFIG_SHELL
2838 break
2839 fi
2840 done
2841 IFS="$save_ifs"
2842 test -n "${CONFIG_SHELL}" && break
2843 done
2844 fi
2845 fi
2846 fi
2847 ;;
2848 esac
2849
2850 config_shell=${CONFIG_SHELL-/bin/sh}
2851
2852 moveifchange=${srcdir}/move-if-change
2853
2854 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2855
2856 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2857 # a relative path.
2858 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2859 INSTALL="${srcpwd}/install-sh -c"
2860 fi
2861
2862 # Set srcdir to "." if that's what it is.
2863 # This is important for multilib support.
2864 pwd=`${PWDCMD-pwd}`
2865 if test "${pwd}" = "${srcpwd}" ; then
2866 srcdir=.
2867 fi
2868
2869 topsrcdir=$srcpwd
2870
2871 extra_host_args=
2872
2873 ### To add a new directory to the tree, first choose whether it is a target
2874 ### or a host dependent tool. Then put it into the appropriate list
2875 ### (library or tools, host or target), doing a dependency sort.
2876
2877 # Subdirs will be configured in the order listed in build_configdirs,
2878 # configdirs, or target_configdirs; see the serialization section below.
2879
2880 # Dependency sorting is only needed when *configuration* must be done in
2881 # a particular order. In all cases a dependency should be specified in
2882 # the Makefile, whether or not it's implicitly specified here.
2883
2884 # Double entries in build_configdirs, configdirs, or target_configdirs may
2885 # cause circular dependencies and break everything horribly.
2886
2887 # these library is used by various programs built for the build
2888 # environment
2889 #
2890 build_libs="build-libiberty"
2891
2892 # these tools are built for the build environment
2893 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2894
2895 # these libraries are used by various programs built for the host environment
2896 #
2897 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2898
2899 # these tools are built for the host environment
2900 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2901 # know that we are building the simulator.
2902 # binutils, gas and ld appear in that order because it makes sense to run
2903 # "make check" in that particular order.
2904 # If --enable-gold is used, "gold" will replace "ld".
2905 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2906
2907 # libgcj represents the runtime libraries only used by gcj.
2908 libgcj="target-libffi \
2909 target-zlib \
2910 target-qthreads \
2911 target-libjava"
2912
2913 # these libraries are built for the target environment, and are built after
2914 # the host libraries and the host tools (which may be a cross compiler)
2915 # Note that libiberty is not a target library.
2916 target_libraries="target-libgcc \
2917 target-libgloss \
2918 target-newlib \
2919 target-libgomp \
2920 target-libstdc++-v3 \
2921 target-libmudflap \
2922 target-libssp \
2923 target-libgfortran \
2924 target-boehm-gc \
2925 ${libgcj} \
2926 target-libobjc \
2927 target-libada"
2928
2929 # these tools are built using the target libraries, and are intended to
2930 # run only in the target environment
2931 #
2932 # note: any program that *uses* libraries that are in the "target_libraries"
2933 # list belongs in this list. those programs are also very likely
2934 # candidates for the "native_only" list which follows
2935 #
2936 target_tools="target-examples target-groff target-gperf target-rda"
2937
2938 ################################################################################
2939
2940 ## All tools belong in one of the four categories, and are assigned above
2941 ## We assign ${configdirs} this way to remove all embedded newlines. This
2942 ## is important because configure will choke if they ever get through.
2943 ## ${configdirs} is directories we build using the host tools.
2944 ## ${target_configdirs} is directories we build using the target tools.
2945 configdirs=`echo ${host_libs} ${host_tools}`
2946 target_configdirs=`echo ${target_libraries} ${target_tools}`
2947 build_configdirs=`echo ${build_libs} ${build_tools}`
2948
2949
2950
2951 ################################################################################
2952
2953 srcname="gnu development package"
2954
2955 # This gets set non-empty for some net releases of packages.
2956 appdirs=""
2957
2958 # Define is_cross_compiler to save on calls to 'test'.
2959 is_cross_compiler=
2960 if test x"${host}" = x"${target}" ; then
2961 is_cross_compiler=no
2962 else
2963 is_cross_compiler=yes
2964 fi
2965
2966 # Find the build and target subdir names.
2967
2968 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2969 # have matching libraries, they should use host libraries: Makefile.tpl
2970 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2971 # However, they still use the build modules, because the corresponding
2972 # host modules (e.g. bison) are only built for the host when bootstrap
2973 # finishes. So:
2974 # - build_subdir is where we find build modules, and never changes.
2975 # - build_libsubdir is where we find build libraries, and can be overridden.
2976
2977 # Prefix 'build-' so this never conflicts with target_subdir.
2978 build_subdir="build-${build_noncanonical}"
2979
2980 # Check whether --with-build-libsubdir was given.
2981 if test "${with_build_libsubdir+set}" = set; then :
2982 withval=$with_build_libsubdir; build_libsubdir="$withval"
2983 else
2984 build_libsubdir="$build_subdir"
2985 fi
2986
2987 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2988 if ( test $srcdir = . && test -d gcc ) \
2989 || test -d $srcdir/../host-${host_noncanonical}; then
2990 host_subdir="host-${host_noncanonical}"
2991 else
2992 host_subdir=.
2993 fi
2994 # No prefix.
2995 target_subdir=${target_noncanonical}
2996
2997 # Be sure to cover against remnants of an in-tree build.
2998 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2999 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
3000 Use a pristine source tree when building in a separate tree" "$LINENO" 5
3001 fi
3002
3003 # Skipdirs are removed silently.
3004 skipdirs=
3005 # Noconfigdirs are removed loudly.
3006 noconfigdirs=""
3007
3008 use_gnu_ld=
3009 # Make sure we don't let GNU ld be added if we didn't want it.
3010 if test x$with_gnu_ld = xno ; then
3011 use_gnu_ld=no
3012 noconfigdirs="$noconfigdirs ld gold"
3013 fi
3014
3015 use_gnu_as=
3016 # Make sure we don't let GNU as be added if we didn't want it.
3017 if test x$with_gnu_as = xno ; then
3018 use_gnu_as=no
3019 noconfigdirs="$noconfigdirs gas"
3020 fi
3021
3022 use_included_zlib=
3023 # Make sure we don't let ZLIB be added if we didn't want it.
3024 if test x$with_system_zlib = xyes ; then
3025 use_included_zlib=no
3026 noconfigdirs="$noconfigdirs zlib"
3027 fi
3028
3029 # some tools are so dependent upon X11 that if we're not building with X,
3030 # it's not even worth trying to configure, much less build, that tool.
3031
3032 case ${with_x} in
3033 yes | "") ;; # the default value for this tree is that X11 is available
3034 no)
3035 skipdirs="${skipdirs} tk itcl libgui"
3036 # We won't be able to build gdbtk without X.
3037 enable_gdbtk=no
3038 ;;
3039 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3040 esac
3041
3042 # Some tools are only suitable for building in a "native" situation.
3043 # Remove these if host!=target.
3044 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
3045
3046 # Similarly, some are only suitable for cross toolchains.
3047 # Remove these if host=target.
3048 cross_only="target-libgloss target-newlib target-opcodes"
3049
3050 case $is_cross_compiler in
3051 no) skipdirs="${skipdirs} ${cross_only}" ;;
3052 yes) skipdirs="${skipdirs} ${native_only}" ;;
3053 esac
3054
3055 # If both --with-headers and --with-libs are specified, default to
3056 # --without-newlib.
3057 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3058 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
3059 if test x"${with_newlib}" = x ; then
3060 with_newlib=no
3061 fi
3062 fi
3063
3064 # Recognize --with-newlib/--without-newlib.
3065 case ${with_newlib} in
3066 no) skipdirs="${skipdirs} target-newlib" ;;
3067 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3068 esac
3069
3070 # Handle --enable-gold.
3071
3072 # Check whether --enable-gold was given.
3073 if test "${enable_gold+set}" = set; then :
3074 enableval=$enable_gold; ENABLE_GOLD=$enableval
3075 else
3076 ENABLE_GOLD=no
3077 fi
3078
3079 if test "${ENABLE_GOLD}" = "yes"; then
3080 # Check for ELF target.
3081 is_elf=no
3082 case "${target}" in
3083 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3084 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3085 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
3086 case "${target}" in
3087 *-*-linux*aout* | *-*-linux*oldld*)
3088 ;;
3089 *)
3090 is_elf=yes
3091 ;;
3092 esac
3093 esac
3094
3095 if test "$is_elf" = "yes"; then
3096 # Check for target supported by gold.
3097 case "${target}" in
3098 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
3099 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
3100 ;;
3101 esac
3102 fi
3103 fi
3104
3105 # Configure extra directories which are host specific
3106
3107 case "${host}" in
3108 *-cygwin*)
3109 configdirs="$configdirs libtermcap" ;;
3110 esac
3111
3112 # A target can indicate whether a language isn't supported for some reason.
3113 # Only spaces may be used in this macro; not newlines or tabs.
3114 unsupported_languages=
3115
3116 # Remove more programs from consideration, based on the host or
3117 # target this usually means that a port of the program doesn't
3118 # exist yet.
3119
3120 case "${host}" in
3121 hppa*64*-*-*)
3122 noconfigdirs="$noconfigdirs byacc"
3123 ;;
3124 i[3456789]86-*-vsta)
3125 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
3126 ;;
3127 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
3128 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3129 ;;
3130 x86_64-*-mingw*)
3131 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3132 ;;
3133 i[3456789]86-*-mingw32*)
3134 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
3135 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3136 ;;
3137 i[3456789]86-*-beos*)
3138 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3139 ;;
3140 *-*-cygwin*)
3141 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
3142 ;;
3143 *-*-netbsd*)
3144 noconfigdirs="$noconfigdirs rcs"
3145 ;;
3146 ppc*-*-pe)
3147 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
3148 ;;
3149 powerpc-*-beos*)
3150 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
3151 ;;
3152 esac
3153
3154
3155 # Check whether --enable-libada was given.
3156 if test "${enable_libada+set}" = set; then :
3157 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3158 else
3159 ENABLE_LIBADA=yes
3160 fi
3161
3162 if test "${ENABLE_LIBADA}" != "yes" ; then
3163 noconfigdirs="$noconfigdirs gnattools"
3164 fi
3165
3166 # Check whether --enable-libssp was given.
3167 if test "${enable_libssp+set}" = set; then :
3168 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3169 else
3170 ENABLE_LIBSSP=yes
3171 fi
3172
3173
3174 # Save it here so that, even in case of --enable-libgcj, if the Java
3175 # front-end isn't enabled, we still get libgcj disabled.
3176 libgcj_saved=$libgcj
3177 case $enable_libgcj in
3178 yes)
3179 # If we reset it here, it won't get added to noconfigdirs in the
3180 # target-specific build rules, so it will be forcibly enabled
3181 # (unless the Java language itself isn't enabled).
3182 libgcj=
3183 ;;
3184 no)
3185 # Make sure we get it printed in the list of not supported target libs.
3186 noconfigdirs="$noconfigdirs ${libgcj}"
3187 ;;
3188 esac
3189
3190
3191 # Disable libmudflap on some systems.
3192 if test x$enable_libmudflap = x ; then
3193 case "${target}" in
3194 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3195 # Enable libmudflap by default in GNU and friends.
3196 ;;
3197 *-*-freebsd*)
3198 # Enable libmudflap by default in FreeBSD.
3199 ;;
3200 *)
3201 # Disable it by default everywhere else.
3202 noconfigdirs="$noconfigdirs target-libmudflap"
3203 ;;
3204 esac
3205 fi
3206
3207 # Disable libgomp on non POSIX hosted systems.
3208 if test x$enable_libgomp = x ; then
3209 # Enable libgomp by default on hosted POSIX systems.
3210 case "${target}" in
3211 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3212 ;;
3213 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3214 ;;
3215 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3216 ;;
3217 *-*-darwin* | *-*-aix*)
3218 ;;
3219 *)
3220 noconfigdirs="$noconfigdirs target-libgomp"
3221 ;;
3222 esac
3223 fi
3224
3225 # Default libgloss CPU subdirectory.
3226 libgloss_dir="$target_cpu"
3227
3228 case "${target}" in
3229 *-*-chorusos)
3230 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3231 ;;
3232 powerpc-*-darwin*)
3233 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3234 noconfigdirs="$noconfigdirs sim target-rda"
3235 ;;
3236 i[3456789]86-*-darwin*)
3237 noconfigdirs="$noconfigdirs ld gprof"
3238 noconfigdirs="$noconfigdirs sim target-rda"
3239 ;;
3240 x86_64-*-darwin[912]*)
3241 noconfigdirs="$noconfigdirs ld gas gprof"
3242 noconfigdirs="$noconfigdirs sim target-rda"
3243 ;;
3244 *-*-darwin*)
3245 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3246 noconfigdirs="$noconfigdirs sim target-rda"
3247 noconfigdirs="$noconfigdirs ${libgcj}"
3248 ;;
3249 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3250 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3251 ;;
3252 *-*-freebsd*)
3253 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3254 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3255 && test -f /usr/local/include/gmp.h; then
3256 with_gmp=/usr/local
3257 fi
3258
3259 # Skip some stuff that's unsupported on some FreeBSD configurations.
3260 case "${target}" in
3261 i*86-*-*) ;;
3262 alpha*-*-*) ;;
3263 x86_64-*-*) ;;
3264 *)
3265 noconfigdirs="$noconfigdirs ${libgcj}"
3266 ;;
3267 esac
3268 ;;
3269 *-*-kaos*)
3270 # Remove unsupported stuff on all kaOS configurations.
3271 skipdirs="${libgcj} target-libstdc++-v3 target-librx"
3272 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3273 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3274 noconfigdirs="$noconfigdirs target-libgloss"
3275 ;;
3276 *-*-netbsd*)
3277 # Skip some stuff on all NetBSD configurations.
3278 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3279
3280 # Skip some stuff that's unsupported on some NetBSD configurations.
3281 case "${target}" in
3282 i*86-*-netbsdelf*) ;;
3283 arm*-*-netbsdelf*) ;;
3284 *)
3285 noconfigdirs="$noconfigdirs ${libgcj}"
3286 ;;
3287 esac
3288 ;;
3289 *-*-netware*)
3290 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj} target-libmudflap"
3291 ;;
3292 *-*-rtems*)
3293 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3294 ;;
3295 # The tpf target doesn't support gdb yet.
3296 *-*-tpf*)
3297 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3298 ;;
3299 *-*-uclinux*)
3300 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3301 ;;
3302 *-*-vxworks*)
3303 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libstdc++-v3 ${libgcj}"
3304 ;;
3305 alpha*-dec-osf*)
3306 # ld works, but does not support shared libraries.
3307 # newlib is not 64 bit ready. I'm not sure about fileutils.
3308 # gas doesn't generate exception information.
3309 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3310 ;;
3311 alpha*-*-*vms*)
3312 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
3313 ;;
3314 alpha*-*-linux*)
3315 # newlib is not 64 bit ready
3316 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3317 ;;
3318 alpha*-*-*)
3319 # newlib is not 64 bit ready
3320 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3321 ;;
3322 am33_2.0-*-linux*)
3323 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3324 ;;
3325 sh-*-linux*)
3326 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3327 ;;
3328 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3329 noconfigdirs="$noconfigdirs ${libgcj}"
3330 noconfigdirs="$noconfigdirs target-examples"
3331 noconfigdirs="$noconfigdirs texinfo send-pr"
3332 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3333 noconfigdirs="$noconfigdirs expect dejagnu"
3334 # the C++ libraries don't build on top of CE's C libraries
3335 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3336 noconfigdirs="$noconfigdirs target-newlib"
3337 case "${host}" in
3338 *-*-cygwin*) ;; # keep gdb and readline
3339 *) noconfigdirs="$noconfigdirs gdb readline"
3340 ;;
3341 esac
3342 libgloss_dir=wince
3343 ;;
3344 arc-*-*)
3345 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3346 ;;
3347 arm-semi-aof )
3348 ;;
3349 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3350 noconfigdirs="$noconfigdirs ${libgcj}"
3351 libgloss_dir=arm
3352 ;;
3353 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3354 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3355 libgloss_dir=arm
3356 ;;
3357 arm*-*-linux-gnueabi)
3358 noconfigdirs="$noconfigdirs target-qthreads"
3359 case ${with_newlib} in
3360 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3361 esac
3362 libgloss_dir=arm
3363 ;;
3364 arm*-*-symbianelf*)
3365 noconfigdirs="$noconfigdirs ${libgcj}"
3366 libgloss_dir=arm
3367 ;;
3368 arm-*-pe*)
3369 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3370 ;;
3371 thumb-*-coff)
3372 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3373 ;;
3374 thumb-*-elf)
3375 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3376 ;;
3377 thumb-*-pe)
3378 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3379 ;;
3380 arm-*-riscix*)
3381 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3382 ;;
3383 avr-*-*)
3384 noconfigdirs="$noconfigdirs target-libstdc++-v3 ${libgcj} target-libssp"
3385 ;;
3386 bfin-*-*)
3387 unsupported_languages="$unsupported_languages java"
3388 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3389 if test x${is_cross_compiler} != xno ; then
3390 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3391 fi
3392 ;;
3393 c4x-*-* | tic4x-*-*)
3394 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3395 ;;
3396 c54x*-*-* | tic54x-*-*)
3397 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3398 ;;
3399 cr16-*-*)
3400 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3401 ;;
3402 cris-*-* | crisv32-*-*)
3403 unsupported_languages="$unsupported_languages java"
3404 case "${target}" in
3405 *-*-aout)
3406 unsupported_languages="$unsupported_languages fortran"
3407 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3408 *-*-elf)
3409 noconfigdirs="$noconfigdirs target-boehm-gc";;
3410 *-*-linux*)
3411 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3412 *)
3413 unsupported_languages="$unsupported_languages fortran"
3414 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3415 esac
3416 libgloss_dir=cris
3417 ;;
3418 crx-*-*)
3419 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3420 ;;
3421 d10v-*-*)
3422 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3423 ;;
3424 d30v-*-*)
3425 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3426 ;;
3427 ep9312-*-elf | ep9312-*-coff)
3428 libgloss_dir=arm
3429 ;;
3430 fr30-*-elf*)
3431 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3432 ;;
3433 frv-*-*)
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3435 ;;
3436 moxie-*-*)
3437 noconfigdirs="$noconfigdirs ${libgcj}"
3438 noconfigdirs="$noconfigdirs gprof"
3439 ;;
3440 h8300*-*-*)
3441 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3442 ;;
3443 h8500-*-*)
3444 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3445 ;;
3446 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3447 ;;
3448 hppa*64*-*-linux* | parisc*64*-*-linux*)
3449 # In this case, it's because the hppa64-linux target is for
3450 # the kernel only at this point and has no libc, and thus no
3451 # headers, crt*.o, etc., all of which are needed by these.
3452 noconfigdirs="$noconfigdirs target-zlib"
3453 ;;
3454 parisc*-*-linux* | hppa*-*-linux*)
3455 ;;
3456 hppa*-*-*elf* | \
3457 hppa*-*-lites* | \
3458 hppa*-*-openbsd* | \
3459 hppa*64*-*-*)
3460 noconfigdirs="$noconfigdirs ${libgcj}"
3461 ;;
3462 hppa*-hp-hpux11*)
3463 noconfigdirs="$noconfigdirs ld shellutils"
3464 ;;
3465 hppa*-*-pro*)
3466 libgloss_dir=pa
3467 ;;
3468 hppa*-*-*)
3469 # According to Alexandre Oliva <aoliva (at] redhat.com>, libjava won't
3470 # build on HP-UX 10.20.
3471 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3472 ;;
3473 i960-*-*)
3474 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3475 ;;
3476 ia64*-*-elf*)
3477 # No gdb support yet.
3478 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3479 ;;
3480 ia64*-**-hpux*)
3481 # No gdb or ld support yet.
3482 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3483 ;;
3484 ia64*-*-*vms*)
3485 # No gdb or ld support yet.
3486 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3487 ;;
3488 i370-*-opened*)
3489 ;;
3490 i[3456789]86-*-coff | i[3456789]86-*-elf)
3491 noconfigdirs="$noconfigdirs ${libgcj}"
3492 libgloss_dir=i386
3493 ;;
3494 i[3456789]86-*-linux*)
3495 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3496 # not build java stuff by default.
3497 case "${target}" in
3498 *-*-*libc1*)
3499 noconfigdirs="$noconfigdirs ${libgcj}";;
3500 esac
3501
3502 # This section makes it possible to build newlib natively on linux.
3503 # If we are using a cross compiler then don't configure newlib.
3504 if test x${is_cross_compiler} != xno ; then
3505 noconfigdirs="$noconfigdirs target-newlib"
3506 fi
3507 noconfigdirs="$noconfigdirs target-libgloss"
3508 # If we are not using a cross compiler, do configure newlib.
3509 # Note however, that newlib will only be configured in this situation
3510 # if the --with-newlib option has been given, because otherwise
3511 # 'target-newlib' will appear in skipdirs.
3512 ;;
3513 i[3456789]86-w64-mingw*)
3514 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3515 ;;
3516 i[3456789]86-*-mingw*)
3517 target_configdirs="$target_configdirs target-winsup"
3518 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3519 ;;
3520 x86_64-*-mingw*)
3521 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3522 ;;
3523 *-*-cygwin*)
3524 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3525 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3526 # always build newlib if winsup directory is present.
3527 if test -d "$srcdir/winsup/cygwin"; then
3528 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3529 elif test -d "$srcdir/newlib"; then
3530 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3531 fi
3532 ;;
3533 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3534 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3535 ;;
3536 i[3456789]86-*-pe)
3537 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3538 ;;
3539 i[3456789]86-*-sco3.2v5*)
3540 # The linker does not yet know about weak symbols in COFF,
3541 # and is not configured to handle mixed ELF and COFF.
3542 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3543 ;;
3544 i[3456789]86-*-sco*)
3545 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3546 ;;
3547 i[3456789]86-*-solaris2*)
3548 noconfigdirs="$noconfigdirs target-libgloss"
3549 ;;
3550 i[3456789]86-*-sysv4*)
3551 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3552 ;;
3553 i[3456789]86-*-beos*)
3554 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3555 ;;
3556 i[3456789]86-*-rdos*)
3557 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3558 ;;
3559 m32r-*-*)
3560 noconfigdirs="$noconfigdirs ${libgcj}"
3561 ;;
3562 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3563 noconfigdirs="$noconfigdirs target-libstdc++-v3 ${libgcj}"
3564 libgloss_dir=m68hc11
3565 ;;
3566 m68k-*-elf*)
3567 noconfigdirs="$noconfigdirs ${libgcj}"
3568 ;;
3569 m68k-*-coff*)
3570 noconfigdirs="$noconfigdirs ${libgcj}"
3571 ;;
3572 m68*-*-* | fido-*-*)
3573 libgloss_dir=m68k
3574 ;;
3575 mcore-*-pe*)
3576 # The EPOC C++ environment does not support exceptions or rtti,
3577 # and so building libstdc++-v3 tends not to always work.
3578 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3579 ;;
3580 mmix-*-*)
3581 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3582 unsupported_languages="$unsupported_languages fortran java"
3583 ;;
3584 mn10200-*-*)
3585 noconfigdirs="$noconfigdirs ${libgcj}"
3586 ;;
3587 mn10300-*-*)
3588 noconfigdirs="$noconfigdirs ${libgcj}"
3589 ;;
3590 mt-*-*)
3591 noconfigdirs="$noconfigdirs sim"
3592 ;;
3593 powerpc-*-aix*)
3594 # copied from rs6000-*-* entry
3595 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3596 ;;
3597 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3598 target_configdirs="$target_configdirs target-winsup"
3599 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3600 # always build newlib.
3601 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3602 ;;
3603 # This is temporary until we can link against shared libraries
3604 powerpcle-*-solaris*)
3605 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3606 libgloss_dir=rs6000
3607 ;;
3608 powerpc-*-beos*)
3609 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3610 ;;
3611 powerpc-*-eabi)
3612 noconfigdirs="$noconfigdirs ${libgcj}"
3613 libgloss_dir=rs6000
3614 ;;
3615 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3616 libgloss_dir=rs6000
3617 ;;
3618 rs6000-*-lynxos*)
3619 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3620 ;;
3621 rs6000-*-aix*)
3622 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3623 ;;
3624 rs6000-*-*)
3625 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3626 ;;
3627 m68k-apollo-*)
3628 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3629 ;;
3630 microblaze*)
3631 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3632 ;;
3633 mips*-sde-elf*)
3634 noconfigdirs="$noconfigdirs ${libgcj}"
3635 if test x$with_newlib = xyes; then
3636 noconfigdirs="$noconfigdirs gprof"
3637 fi
3638 libgloss_dir=mips
3639 ;;
3640 mips*-*-irix5*)
3641 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3642 ;;
3643 mips*-*-irix6*)
3644 # Linking libjava exceeds command-line length limits on at least
3645 # IRIX 6.2, but not on IRIX 6.5.
3646 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3647 # <oldham (at] codesourcery.com>
3648 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3649 ;;
3650 mips*-*-bsd*)
3651 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3652 ;;
3653 mips*-*-linux*)
3654 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 ;;
3656 mips*-*-*)
3657 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3658 libgloss_dir=mips
3659 ;;
3660 romp-*-*)
3661 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3662 ;;
3663 sh-*-* | sh64-*-*)
3664 case "${host}" in
3665 i[3456789]86-*-vsta) ;; # don't add gprof back in
3666 i[3456789]86-*-go32*) ;; # don't add gprof back in
3667 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3668 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3669 esac
3670 case "${target}" in
3671 sh*-*-elf)
3672 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3673 *)
3674 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3675 esac
3676 ;;
3677 sparclet-*-aout* | sparc86x-*-*)
3678 libgloss_dir=sparc
3679 ;;
3680 sparc-*-elf*)
3681 noconfigdirs="$noconfigdirs ${libgcj}"
3682 ;;
3683 sparc64-*-elf*)
3684 noconfigdirs="$noconfigdirs ${libgcj}"
3685 libgloss_dir=sparc
3686 ;;
3687 sparclite-*-*)
3688 noconfigdirs="$noconfigdirs ${libgcj}"
3689 libgloss_dir=sparc
3690 ;;
3691 sparc-*-sunos4*)
3692 noconfigdirs="$noconfigdirs ${libgcj}"
3693 if test x${is_cross_compiler} != xno ; then
3694 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3695 else
3696 use_gnu_ld=no
3697 fi
3698 ;;
3699 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3700 noconfigdirs="$noconfigdirs ${libgcj}"
3701 ;;
3702 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3703 ;;
3704 tic6x-*-*)
3705 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3706 ;;
3707 v810-*-*)
3708 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3709 ;;
3710 v850-*-*)
3711 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3712 ;;
3713 v850e-*-*)
3714 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3715 ;;
3716 v850ea-*-*)
3717 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3718 ;;
3719 vax-*-vms)
3720 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3721 ;;
3722 vax-*-*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3724 ;;
3725 xtensa*-*-*)
3726 noconfigdirs="$noconfigdirs ${libgcj}"
3727 ;;
3728 ip2k-*-*)
3729 noconfigdirs="$noconfigdirs target-libstdc++-v3 ${libgcj}"
3730 ;;
3731 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3733 ;;
3734 *-*-lynxos*)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3736 ;;
3737 *-*-*)
3738 noconfigdirs="$noconfigdirs ${libgcj}"
3739 ;;
3740 esac
3741
3742 # If we aren't building newlib, then don't build libgloss, since libgloss
3743 # depends upon some newlib header files.
3744 case "${noconfigdirs}" in
3745 *target-libgloss*) ;;
3746 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3747 esac
3748
3749 # Work in distributions that contain no compiler tools, like Autoconf.
3750 tentative_cc=""
3751 host_makefile_frag=/dev/null
3752 if test -d ${srcdir}/config ; then
3753 case "${host}" in
3754 m68k-hp-hpux*)
3755 # Avoid "too much defining" errors from HPUX compiler.
3756 tentative_cc="cc -Wp,-H256000"
3757 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3758 # If it's HP/UX ar, this should be harmless.
3759 RANLIB="ar ts"
3760 ;;
3761 m68k-apollo-sysv*)
3762 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3763 ;;
3764 m68k-apollo-bsd*)
3765 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3766 # chokes on bfd, the compiler won't let you assign integers to enums, and
3767 # other problems. Defining CC to gcc is a questionable way to say "don't use
3768 # the apollo compiler" (the preferred version of GCC could be called cc,
3769 # or whatever), but I'm not sure leaving CC as cc is any better...
3770 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3771 # Used to have BISON=yacc.
3772 tentative_cc=gcc
3773 ;;
3774 m88k-dg-dgux*)
3775 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3776 ;;
3777 m88k-harris-cxux*)
3778 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3779 tentative_cc="cc -Xa"
3780 host_makefile_frag="config/mh-cxux"
3781 ;;
3782 m88k-motorola-sysv*)
3783 ;;
3784 mips*-dec-ultrix*)
3785 tentative_cc="cc -Wf,-XNg1000"
3786 host_makefile_frag="config/mh-decstation"
3787 ;;
3788 mips*-nec-sysv4*)
3789 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3790 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3791 host_makefile_frag="config/mh-necv4"
3792 ;;
3793 mips*-sgi-irix4*)
3794 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3795 # environment. Also bump switch table size so that cp-parse will
3796 # compile. Bump string length limit so linker builds.
3797 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3798 ;;
3799 mips*-*-sysv4*)
3800 host_makefile_frag="config/mh-sysv4"
3801 ;;
3802 mips*-*-sysv*)
3803 # This is for a MIPS running RISC/os 4.52C.
3804
3805 # This is needed for GDB, but needs to be in the top-level make because
3806 # if a library is compiled with the bsd headers and gets linked with the
3807 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3808 # a different size).
3809 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3810 # known except to select the sysv environment. Could we use /proc instead?
3811 # These "sysv environments" and "bsd environments" often end up being a pain.
3812 #
3813 # This is not part of CFLAGS because perhaps not all C compilers have this
3814 # option.
3815 tentative_cc="cc -systype sysv"
3816 ;;
3817 i370-ibm-opened*)
3818 tentative_cc="c89"
3819 ;;
3820 i[3456789]86-*-sysv5*)
3821 host_makefile_frag="config/mh-sysv5"
3822 ;;
3823 i[3456789]86-*-dgux*)
3824 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3825 host_makefile_frag="config/mh-dgux386"
3826 ;;
3827 i[3456789]86-ncr-sysv4.3*)
3828 # The MetaWare compiler will generate a copyright message unless you
3829 # turn it off by adding the -Hnocopyr flag.
3830 tentative_cc="cc -Hnocopyr"
3831 ;;
3832 i[3456789]86-ncr-sysv4*)
3833 # for an NCR 3000 (i486/SVR4) system.
3834 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3835 # This compiler not only emits obnoxious copyright messages every time
3836 # you run it, but it chokes and dies on a whole bunch of GNU source
3837 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3838 tentative_cc="/usr/ccs/ATT/cc"
3839 host_makefile_frag="config/mh-ncr3000"
3840 ;;
3841 i[3456789]86-*-sco3.2v5*)
3842 ;;
3843 i[3456789]86-*-sco*)
3844 # The native C compiler botches some simple uses of const. Unfortunately,
3845 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3846 tentative_cc="cc -Dconst="
3847 host_makefile_frag="config/mh-sco"
3848 ;;
3849 i[3456789]86-*-udk*)
3850 host_makefile_frag="config/mh-sysv5"
3851 ;;
3852 i[3456789]86-*-solaris2*)
3853 host_makefile_frag="config/mh-sysv4"
3854 ;;
3855 i[3456789]86-*-msdosdjgpp*)
3856 host_makefile_frag="config/mh-djgpp"
3857 ;;
3858 *-cygwin*)
3859
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3861 $as_echo_n "checking to see if cat works as expected... " >&6; }
3862 echo a >cygwin-cat-check
3863 if test `cat cygwin-cat-check` = a ; then
3864 rm cygwin-cat-check
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3866 $as_echo "yes" >&6; }
3867 else
3868 rm cygwin-cat-check
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3871 as_fn_error "The cat command does not ignore carriage return characters.
3872 Please either mount the build directory in binary mode or run the following
3873 commands before running any configure script:
3874 set -o igncr
3875 export SHELLOPTS
3876 " "$LINENO" 5
3877 fi
3878
3879 host_makefile_frag="config/mh-cygwin"
3880 ;;
3881 *-mingw*)
3882 host_makefile_frag="config/mh-mingw"
3883 ;;
3884 *-interix*)
3885 host_makefile_frag="config/mh-interix"
3886 ;;
3887 vax-*-ultrix2*)
3888 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3889 tentative_cc=gcc
3890 ;;
3891 *-*-solaris2*)
3892 host_makefile_frag="config/mh-solaris"
3893 ;;
3894 m68k-sun-sunos*)
3895 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3896 # without overflowing the jump tables (-J says to use a 32 bit table)
3897 tentative_cc="cc -J"
3898 ;;
3899 hppa*-hp-hpux10*)
3900 tentative_cc="cc -Wp,-H256000"
3901 host_makefile_frag="config/mh-pa-hpux10"
3902 ;;
3903 hppa*-hp-hpux* | hppa*-*-hiux*)
3904 tentative_cc="cc -Wp,-H256000"
3905 host_makefile_frag="config/mh-pa"
3906 ;;
3907 hppa*-*)
3908 host_makefile_frag="config/mh-pa"
3909 ;;
3910 *-hp-hpux* | *-*-hiux*)
3911 tentative_cc="cc -Wp,-H256000"
3912 ;;
3913 rs6000-*-lynxos*)
3914 # /bin/cc is less than useful for our purposes. Always use GCC
3915 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3916 host_makefile_frag="config/mh-lynxrs6k"
3917 ;;
3918 i[3456789]86-*-darwin* | x86_64-*-darwin*)
3919 host_makefile_frag="config/mh-x86-darwin"
3920 ;;
3921 powerpc-*-darwin*)
3922 host_makefile_frag="config/mh-ppc-darwin"
3923 ;;
3924 powerpc-*-aix*)
3925 host_makefile_frag="config/mh-ppc-aix"
3926 ;;
3927 rs6000-*-aix*)
3928 host_makefile_frag="config/mh-ppc-aix"
3929 ;;
3930 *-*-lynxos*)
3931 # /bin/cc is less than useful for our purposes. Always use GCC
3932 tentative_cc="/bin/gcc"
3933 ;;
3934 *-*-sysv4*)
3935 host_makefile_frag="config/mh-sysv4"
3936 ;;
3937 # This is placed last to prevent interfering with the cases above.
3938 i[3456789]86-*-*)
3939 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3940 host_makefile_frag="config/mh-x86omitfp"
3941 ;;
3942 esac
3943 fi
3944
3945 # If we aren't going to be using gcc, see if we can extract a definition
3946 # of CC from the fragment.
3947 # Actually, use the 'pre-extracted' version above.
3948 if test -z "${CC}" && test "${build}" = "${host}" ; then
3949 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3950 found=
3951 for dir in $PATH; do
3952 test -z "$dir" && dir=.
3953 if test -f $dir/gcc; then
3954 found=yes
3955 break
3956 fi
3957 done
3958 IFS="$save_ifs"
3959 if test -z "${found}" && test -n "${tentative_cc}" ; then
3960 CC=$tentative_cc
3961 fi
3962 fi
3963
3964 if test "${build}" != "${host}" ; then
3965 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3966 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3967 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3968 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3969 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3970 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3971 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3972 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3973 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3974 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3975 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3976 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3977 else
3978 AR_FOR_BUILD="\$(AR)"
3979 AS_FOR_BUILD="\$(AS)"
3980 CC_FOR_BUILD="\$(CC)"
3981 CXX_FOR_BUILD="\$(CXX)"
3982 GCJ_FOR_BUILD="\$(GCJ)"
3983 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3984 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3985 LD_FOR_BUILD="\$(LD)"
3986 NM_FOR_BUILD="\$(NM)"
3987 RANLIB_FOR_BUILD="\$(RANLIB)"
3988 WINDRES_FOR_BUILD="\$(WINDRES)"
3989 WINDMC_FOR_BUILD="\$(WINDMC)"
3990 fi
3991
3992 ac_ext=c
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997 if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001 $as_echo_n "checking for $ac_word... " >&6; }
4002 if test "${ac_cv_prog_CC+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 if test -n "$CC"; then
4006 ac_cv_prog_CC="$CC" # Let the user override the test.
4007 else
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4010 do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4018 fi
4019 done
4020 done
4021 IFS=$as_save_IFS
4022
4023 fi
4024 fi
4025 CC=$ac_cv_prog_CC
4026 if test -n "$CC"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4028 $as_echo "$CC" >&6; }
4029 else
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4032 fi
4033
4034
4035 fi
4036 if test -z "$ac_cv_prog_CC"; then
4037 ac_ct_CC=$CC
4038 # Extract the first word of "gcc", so it can be a program name with args.
4039 set dummy gcc; ac_word=$2
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041 $as_echo_n "checking for $ac_word... " >&6; }
4042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 if test -n "$ac_ct_CC"; then
4046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4050 do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4055 ac_cv_prog_ac_ct_CC="gcc"
4056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 break 2
4058 fi
4059 done
4060 done
4061 IFS=$as_save_IFS
4062
4063 fi
4064 fi
4065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4066 if test -n "$ac_ct_CC"; then
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4068 $as_echo "$ac_ct_CC" >&6; }
4069 else
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071 $as_echo "no" >&6; }
4072 fi
4073
4074 if test "x$ac_ct_CC" = x; then
4075 CC=""
4076 else
4077 case $cross_compiling:$ac_tool_warned in
4078 yes:)
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4081 ac_tool_warned=yes ;;
4082 esac
4083 CC=$ac_ct_CC
4084 fi
4085 else
4086 CC="$ac_cv_prog_CC"
4087 fi
4088
4089 if test -z "$CC"; then
4090 if test -n "$ac_tool_prefix"; then
4091 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4092 set dummy ${ac_tool_prefix}cc; ac_word=$2
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094 $as_echo_n "checking for $ac_word... " >&6; }
4095 if test "${ac_cv_prog_CC+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4097 else
4098 if test -n "$CC"; then
4099 ac_cv_prog_CC="$CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4108 ac_cv_prog_CC="${ac_tool_prefix}cc"
4109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 break 2
4111 fi
4112 done
4113 done
4114 IFS=$as_save_IFS
4115
4116 fi
4117 fi
4118 CC=$ac_cv_prog_CC
4119 if test -n "$CC"; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4121 $as_echo "$CC" >&6; }
4122 else
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4125 fi
4126
4127
4128 fi
4129 fi
4130 if test -z "$CC"; then
4131 # Extract the first word of "cc", so it can be a program name with args.
4132 set dummy cc; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if test "${ac_cv_prog_CC+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if test -n "$CC"; then
4139 ac_cv_prog_CC="$CC" # Let the user override the test.
4140 else
4141 ac_prog_rejected=no
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4144 do
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4149 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4150 ac_prog_rejected=yes
4151 continue
4152 fi
4153 ac_cv_prog_CC="cc"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4156 fi
4157 done
4158 done
4159 IFS=$as_save_IFS
4160
4161 if test $ac_prog_rejected = yes; then
4162 # We found a bogon in the path, so make sure we never use it.
4163 set dummy $ac_cv_prog_CC
4164 shift
4165 if test $# != 0; then
4166 # We chose a different compiler from the bogus one.
4167 # However, it has the same basename, so the bogon will be chosen
4168 # first if we set CC to just the basename; use the full file name.
4169 shift
4170 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4171 fi
4172 fi
4173 fi
4174 fi
4175 CC=$ac_cv_prog_CC
4176 if test -n "$CC"; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4178 $as_echo "$CC" >&6; }
4179 else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4182 fi
4183
4184
4185 fi
4186 if test -z "$CC"; then
4187 if test -n "$ac_tool_prefix"; then
4188 for ac_prog in cl.exe
4189 do
4190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193 $as_echo_n "checking for $ac_word... " >&6; }
4194 if test "${ac_cv_prog_CC+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 if test -n "$CC"; then
4198 ac_cv_prog_CC="$CC" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209 break 2
4210 fi
4211 done
4212 done
4213 IFS=$as_save_IFS
4214
4215 fi
4216 fi
4217 CC=$ac_cv_prog_CC
4218 if test -n "$CC"; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4220 $as_echo "$CC" >&6; }
4221 else
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4224 fi
4225
4226
4227 test -n "$CC" && break
4228 done
4229 fi
4230 if test -z "$CC"; then
4231 ac_ct_CC=$CC
4232 for ac_prog in cl.exe
4233 do
4234 # Extract the first word of "$ac_prog", so it can be a program name with args.
4235 set dummy $ac_prog; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$ac_ct_CC"; then
4242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_ac_ct_CC="$ac_prog"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255 done
4256 done
4257 IFS=$as_save_IFS
4258
4259 fi
4260 fi
4261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4262 if test -n "$ac_ct_CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4264 $as_echo "$ac_ct_CC" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4268 fi
4269
4270
4271 test -n "$ac_ct_CC" && break
4272 done
4273
4274 if test "x$ac_ct_CC" = x; then
4275 CC=""
4276 else
4277 case $cross_compiling:$ac_tool_warned in
4278 yes:)
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4281 ac_tool_warned=yes ;;
4282 esac
4283 CC=$ac_ct_CC
4284 fi
4285 fi
4286
4287 fi
4288
4289
4290 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error "no acceptable C compiler found in \$PATH
4293 See \`config.log' for more details." "$LINENO" 5; }
4294
4295 # Provide some information about the compiler.
4296 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4297 set X $ac_compile
4298 ac_compiler=$2
4299 for ac_option in --version -v -V -qversion; do
4300 { { ac_try="$ac_compiler $ac_option >&5"
4301 case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4308 ac_status=$?
4309 if test -s conftest.err; then
4310 sed '10a\
4311 ... rest of stderr output deleted ...
4312 10q' conftest.err >conftest.er1
4313 cat conftest.er1 >&5
4314 rm -f conftest.er1 conftest.err
4315 fi
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }
4318 done
4319
4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4321 /* end confdefs.h. */
4322
4323 int
4324 main ()
4325 {
4326
4327 ;
4328 return 0;
4329 }
4330 _ACEOF
4331 ac_clean_files_save=$ac_clean_files
4332 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4333 # Try to create an executable without -o first, disregard a.out.
4334 # It will help us diagnose broken compilers, and finding out an intuition
4335 # of exeext.
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4337 $as_echo_n "checking for C compiler default output file name... " >&6; }
4338 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4339
4340 # The possible output files:
4341 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4342
4343 ac_rmfiles=
4344 for ac_file in $ac_files
4345 do
4346 case $ac_file in
4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4348 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4349 esac
4350 done
4351 rm -f $ac_rmfiles
4352
4353 if { { ac_try="$ac_link_default"
4354 case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357 esac
4358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4359 $as_echo "$ac_try_echo"; } >&5
4360 (eval "$ac_link_default") 2>&5
4361 ac_status=$?
4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363 test $ac_status = 0; }; then :
4364 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4365 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4366 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4367 # so that the user can short-circuit this test for compilers unknown to
4368 # Autoconf.
4369 for ac_file in $ac_files ''
4370 do
4371 test -f "$ac_file" || continue
4372 case $ac_file in
4373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4374 ;;
4375 [ab].out )
4376 # We found the default executable, but exeext='' is most
4377 # certainly right.
4378 break;;
4379 *.* )
4380 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4381 then :; else
4382 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4383 fi
4384 # We set ac_cv_exeext here because the later test for it is not
4385 # safe: cross compilers may not add the suffix if given an `-o'
4386 # argument, so we may need to know it at that point already.
4387 # Even if this section looks crufty: it has the advantage of
4388 # actually working.
4389 break;;
4390 * )
4391 break;;
4392 esac
4393 done
4394 test "$ac_cv_exeext" = no && ac_cv_exeext=
4395
4396 else
4397 ac_file=''
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4400 $as_echo "$ac_file" >&6; }
4401 if test -z "$ac_file"; then :
4402 $as_echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4404
4405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407 { as_fn_set_status 77
4408 as_fn_error "C compiler cannot create executables
4409 See \`config.log' for more details." "$LINENO" 5; }; }
4410 fi
4411 ac_exeext=$ac_cv_exeext
4412
4413 # Check that the compiler produces executables we can run. If not, either
4414 # the compiler is broken, or we cross compile.
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4416 $as_echo_n "checking whether the C compiler works... " >&6; }
4417 # If not cross compiling, check that we can run a simple program.
4418 if test "$cross_compiling" != yes; then
4419 if { ac_try='./$ac_file'
4420 { { case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_try") 2>&5
4427 ac_status=$?
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }; }; then
4430 cross_compiling=no
4431 else
4432 if test "$cross_compiling" = maybe; then
4433 cross_compiling=yes
4434 else
4435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4437 as_fn_error "cannot run C compiled programs.
4438 If you meant to cross compile, use \`--host'.
4439 See \`config.log' for more details." "$LINENO" 5; }
4440 fi
4441 fi
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444 $as_echo "yes" >&6; }
4445
4446 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4447 ac_clean_files=$ac_clean_files_save
4448 # Check that the compiler produces executables we can run. If not, either
4449 # the compiler is broken, or we cross compile.
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4451 $as_echo_n "checking whether we are cross compiling... " >&6; }
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4453 $as_echo "$cross_compiling" >&6; }
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4456 $as_echo_n "checking for suffix of executables... " >&6; }
4457 if { { ac_try="$ac_link"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463 $as_echo "$ac_try_echo"; } >&5
4464 (eval "$ac_link") 2>&5
4465 ac_status=$?
4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }; then :
4468 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4469 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4470 # work properly (i.e., refer to `conftest.exe'), while it won't with
4471 # `rm'.
4472 for ac_file in conftest.exe conftest conftest.*; do
4473 test -f "$ac_file" || continue
4474 case $ac_file in
4475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4476 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4477 break;;
4478 * ) break;;
4479 esac
4480 done
4481 else
4482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484 as_fn_error "cannot compute suffix of executables: cannot compile and link
4485 See \`config.log' for more details." "$LINENO" 5; }
4486 fi
4487 rm -f conftest$ac_cv_exeext
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4489 $as_echo "$ac_cv_exeext" >&6; }
4490
4491 rm -f conftest.$ac_ext
4492 EXEEXT=$ac_cv_exeext
4493 ac_exeext=$EXEEXT
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4495 $as_echo_n "checking for suffix of object files... " >&6; }
4496 if test "${ac_cv_objext+set}" = set; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501
4502 int
4503 main ()
4504 {
4505
4506 ;
4507 return 0;
4508 }
4509 _ACEOF
4510 rm -f conftest.o conftest.obj
4511 if { { ac_try="$ac_compile"
4512 case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515 esac
4516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517 $as_echo "$ac_try_echo"; } >&5
4518 (eval "$ac_compile") 2>&5
4519 ac_status=$?
4520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; }; then :
4522 for ac_file in conftest.o conftest.obj conftest.*; do
4523 test -f "$ac_file" || continue;
4524 case $ac_file in
4525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4527 break;;
4528 esac
4529 done
4530 else
4531 $as_echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error "cannot compute suffix of object files: cannot compile
4537 See \`config.log' for more details." "$LINENO" 5; }
4538 fi
4539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4542 $as_echo "$ac_cv_objext" >&6; }
4543 OBJEXT=$ac_cv_objext
4544 ac_objext=$OBJEXT
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4547 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4552
4553 int
4554 main ()
4555 {
4556 #ifndef __GNUC__
4557 choke me
4558 #endif
4559
4560 ;
4561 return 0;
4562 }
4563 _ACEOF
4564 if ac_fn_c_try_compile "$LINENO"; then :
4565 ac_compiler_gnu=yes
4566 else
4567 ac_compiler_gnu=no
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4571
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4574 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4575 if test $ac_compiler_gnu = yes; then
4576 GCC=yes
4577 else
4578 GCC=
4579 fi
4580 ac_test_CFLAGS=${CFLAGS+set}
4581 ac_save_CFLAGS=$CFLAGS
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4583 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4584 if test "${ac_cv_prog_cc_g+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 ac_save_c_werror_flag=$ac_c_werror_flag
4588 ac_c_werror_flag=yes
4589 ac_cv_prog_cc_g=no
4590 CFLAGS="-g"
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593
4594 int
4595 main ()
4596 {
4597
4598 ;
4599 return 0;
4600 }
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_prog_cc_g=yes
4604 else
4605 CFLAGS=""
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608
4609 int
4610 main ()
4611 {
4612
4613 ;
4614 return 0;
4615 }
4616 _ACEOF
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618
4619 else
4620 ac_c_werror_flag=$ac_save_c_werror_flag
4621 CFLAGS="-g"
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624
4625 int
4626 main ()
4627 {
4628
4629 ;
4630 return 0;
4631 }
4632 _ACEOF
4633 if ac_fn_c_try_compile "$LINENO"; then :
4634 ac_cv_prog_cc_g=yes
4635 fi
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 fi
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 fi
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 ac_c_werror_flag=$ac_save_c_werror_flag
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4644 $as_echo "$ac_cv_prog_cc_g" >&6; }
4645 if test "$ac_test_CFLAGS" = set; then
4646 CFLAGS=$ac_save_CFLAGS
4647 elif test $ac_cv_prog_cc_g = yes; then
4648 if test "$GCC" = yes; then
4649 CFLAGS="-g -O2"
4650 else
4651 CFLAGS="-g"
4652 fi
4653 else
4654 if test "$GCC" = yes; then
4655 CFLAGS="-O2"
4656 else
4657 CFLAGS=
4658 fi
4659 fi
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4661 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4662 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 ac_cv_prog_cc_c89=no
4666 ac_save_CC=$CC
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4669 #include <stdarg.h>
4670 #include <stdio.h>
4671 #include <sys/types.h>
4672 #include <sys/stat.h>
4673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4674 struct buf { int x; };
4675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4676 static char *e (p, i)
4677 char **p;
4678 int i;
4679 {
4680 return p[i];
4681 }
4682 static char *f (char * (*g) (char **, int), char **p, ...)
4683 {
4684 char *s;
4685 va_list v;
4686 va_start (v,p);
4687 s = g (p, va_arg (v,int));
4688 va_end (v);
4689 return s;
4690 }
4691
4692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4693 function prototypes and stuff, but not '\xHH' hex character constants.
4694 These don't provoke an error unfortunately, instead are silently treated
4695 as 'x'. The following induces an error, until -std is added to get
4696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4697 array size at least. It's necessary to write '\x00'==0 to get something
4698 that's true only with -std. */
4699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4700
4701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4702 inside strings and character constants. */
4703 #define FOO(x) 'x'
4704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4705
4706 int test (int i, double x);
4707 struct s1 {int (*f) (int a);};
4708 struct s2 {int (*f) (double a);};
4709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4710 int argc;
4711 char **argv;
4712 int
4713 main ()
4714 {
4715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4722 do
4723 CC="$ac_save_CC $ac_arg"
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 ac_cv_prog_cc_c89=$ac_arg
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext
4728 test "x$ac_cv_prog_cc_c89" != "xno" && break
4729 done
4730 rm -f conftest.$ac_ext
4731 CC=$ac_save_CC
4732
4733 fi
4734 # AC_CACHE_VAL
4735 case "x$ac_cv_prog_cc_c89" in
4736 x)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4738 $as_echo "none needed" >&6; } ;;
4739 xno)
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4741 $as_echo "unsupported" >&6; } ;;
4742 *)
4743 CC="$CC $ac_cv_prog_cc_c89"
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4745 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4746 esac
4747 if test "x$ac_cv_prog_cc_c89" != xno; then :
4748
4749 fi
4750
4751 ac_ext=c
4752 ac_cpp='$CPP $CPPFLAGS'
4753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756
4757 ac_ext=cpp
4758 ac_cpp='$CXXCPP $CPPFLAGS'
4759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4762 if test -z "$CXX"; then
4763 if test -n "$CCC"; then
4764 CXX=$CCC
4765 else
4766 if test -n "$ac_tool_prefix"; then
4767 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4768 do
4769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if test "${ac_cv_prog_CXX+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -n "$CXX"; then
4777 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4789 fi
4790 done
4791 done
4792 IFS=$as_save_IFS
4793
4794 fi
4795 fi
4796 CXX=$ac_cv_prog_CXX
4797 if test -n "$CXX"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4799 $as_echo "$CXX" >&6; }
4800 else
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804
4805
4806 test -n "$CXX" && break
4807 done
4808 fi
4809 if test -z "$CXX"; then
4810 ac_ct_CXX=$CXX
4811 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4812 do
4813 # Extract the first word of "$ac_prog", so it can be a program name with args.
4814 set dummy $ac_prog; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test -n "$ac_ct_CXX"; then
4821 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4822 else
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_ac_ct_CXX="$ac_prog"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4832 break 2
4833 fi
4834 done
4835 done
4836 IFS=$as_save_IFS
4837
4838 fi
4839 fi
4840 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4841 if test -n "$ac_ct_CXX"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4843 $as_echo "$ac_ct_CXX" >&6; }
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 fi
4848
4849
4850 test -n "$ac_ct_CXX" && break
4851 done
4852
4853 if test "x$ac_ct_CXX" = x; then
4854 CXX="g++"
4855 else
4856 case $cross_compiling:$ac_tool_warned in
4857 yes:)
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860 ac_tool_warned=yes ;;
4861 esac
4862 CXX=$ac_ct_CXX
4863 fi
4864 fi
4865
4866 fi
4867 fi
4868 # Provide some information about the compiler.
4869 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4870 set X $ac_compile
4871 ac_compiler=$2
4872 for ac_option in --version -v -V -qversion; do
4873 { { ac_try="$ac_compiler $ac_option >&5"
4874 case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877 esac
4878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4879 $as_echo "$ac_try_echo"; } >&5
4880 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4881 ac_status=$?
4882 if test -s conftest.err; then
4883 sed '10a\
4884 ... rest of stderr output deleted ...
4885 10q' conftest.err >conftest.er1
4886 cat conftest.er1 >&5
4887 rm -f conftest.er1 conftest.err
4888 fi
4889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4890 test $ac_status = 0; }
4891 done
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4894 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4895 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899 /* end confdefs.h. */
4900
4901 int
4902 main ()
4903 {
4904 #ifndef __GNUC__
4905 choke me
4906 #endif
4907
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 if ac_fn_cxx_try_compile "$LINENO"; then :
4913 ac_compiler_gnu=yes
4914 else
4915 ac_compiler_gnu=no
4916 fi
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4919
4920 fi
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4922 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4923 if test $ac_compiler_gnu = yes; then
4924 GXX=yes
4925 else
4926 GXX=
4927 fi
4928 ac_test_CXXFLAGS=${CXXFLAGS+set}
4929 ac_save_CXXFLAGS=$CXXFLAGS
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4931 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4932 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4936 ac_cxx_werror_flag=yes
4937 ac_cv_prog_cxx_g=no
4938 CXXFLAGS="-g"
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4941
4942 int
4943 main ()
4944 {
4945
4946 ;
4947 return 0;
4948 }
4949 _ACEOF
4950 if ac_fn_cxx_try_compile "$LINENO"; then :
4951 ac_cv_prog_cxx_g=yes
4952 else
4953 CXXFLAGS=""
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956
4957 int
4958 main ()
4959 {
4960
4961 ;
4962 return 0;
4963 }
4964 _ACEOF
4965 if ac_fn_cxx_try_compile "$LINENO"; then :
4966
4967 else
4968 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4969 CXXFLAGS="-g"
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972
4973 int
4974 main ()
4975 {
4976
4977 ;
4978 return 0;
4979 }
4980 _ACEOF
4981 if ac_fn_cxx_try_compile "$LINENO"; then :
4982 ac_cv_prog_cxx_g=yes
4983 fi
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 fi
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 fi
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4990 fi
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4992 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4993 if test "$ac_test_CXXFLAGS" = set; then
4994 CXXFLAGS=$ac_save_CXXFLAGS
4995 elif test $ac_cv_prog_cxx_g = yes; then
4996 if test "$GXX" = yes; then
4997 CXXFLAGS="-g -O2"
4998 else
4999 CXXFLAGS="-g"
5000 fi
5001 else
5002 if test "$GXX" = yes; then
5003 CXXFLAGS="-O2"
5004 else
5005 CXXFLAGS=
5006 fi
5007 fi
5008 ac_ext=c
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013
5014
5015 # We must set the default linker to the linker used by gcc for the correct
5016 # operation of libtool. If LD is not defined and we are using gcc, try to
5017 # set the LD default to the ld used by gcc.
5018 if test -z "$LD"; then
5019 if test "$GCC" = yes; then
5020 case $build in
5021 *-*-mingw*)
5022 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5023 *)
5024 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5025 esac
5026 case $gcc_prog_ld in
5027 # Accept absolute paths.
5028 [\\/]* | [A-Za-z]:[\\/]*)
5029 LD="$gcc_prog_ld" ;;
5030 esac
5031 fi
5032 fi
5033
5034
5035
5036
5037 if test -n "$ac_tool_prefix"; then
5038 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5039 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$GNATBIND"; then
5046 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5050 do
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5058 fi
5059 done
5060 done
5061 IFS=$as_save_IFS
5062
5063 fi
5064 fi
5065 GNATBIND=$ac_cv_prog_GNATBIND
5066 if test -n "$GNATBIND"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5068 $as_echo "$GNATBIND" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5072 fi
5073
5074
5075 fi
5076 if test -z "$ac_cv_prog_GNATBIND"; then
5077 ac_ct_GNATBIND=$GNATBIND
5078 # Extract the first word of "gnatbind", so it can be a program name with args.
5079 set dummy gnatbind; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test -n "$ac_ct_GNATBIND"; then
5086 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5098 fi
5099 done
5100 done
5101 IFS=$as_save_IFS
5102
5103 fi
5104 fi
5105 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5106 if test -n "$ac_ct_GNATBIND"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5108 $as_echo "$ac_ct_GNATBIND" >&6; }
5109 else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5112 fi
5113
5114 if test "x$ac_ct_GNATBIND" = x; then
5115 GNATBIND="no"
5116 else
5117 case $cross_compiling:$ac_tool_warned in
5118 yes:)
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5121 ac_tool_warned=yes ;;
5122 esac
5123 GNATBIND=$ac_ct_GNATBIND
5124 fi
5125 else
5126 GNATBIND="$ac_cv_prog_GNATBIND"
5127 fi
5128
5129 if test -n "$ac_tool_prefix"; then
5130 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5131 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 if test -n "$GNATMAKE"; then
5138 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5142 do
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5150 fi
5151 done
5152 done
5153 IFS=$as_save_IFS
5154
5155 fi
5156 fi
5157 GNATMAKE=$ac_cv_prog_GNATMAKE
5158 if test -n "$GNATMAKE"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5160 $as_echo "$GNATMAKE" >&6; }
5161 else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5164 fi
5165
5166
5167 fi
5168 if test -z "$ac_cv_prog_GNATMAKE"; then
5169 ac_ct_GNATMAKE=$GNATMAKE
5170 # Extract the first word of "gnatmake", so it can be a program name with args.
5171 set dummy gnatmake; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 if test -n "$ac_ct_GNATMAKE"; then
5178 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5198 if test -n "$ac_ct_GNATMAKE"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5200 $as_echo "$ac_ct_GNATMAKE" >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 fi
5205
5206 if test "x$ac_ct_GNATMAKE" = x; then
5207 GNATMAKE="no"
5208 else
5209 case $cross_compiling:$ac_tool_warned in
5210 yes:)
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5213 ac_tool_warned=yes ;;
5214 esac
5215 GNATMAKE=$ac_ct_GNATMAKE
5216 fi
5217 else
5218 GNATMAKE="$ac_cv_prog_GNATMAKE"
5219 fi
5220
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5222 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5223 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 cat >conftest.adb <<EOF
5227 procedure conftest is begin null; end conftest;
5228 EOF
5229 acx_cv_cc_gcc_supports_ada=no
5230 # There is a bug in old released versions of GCC which causes the
5231 # driver to exit successfully when the appropriate language module
5232 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5233 # Therefore we must check for the error message as well as an
5234 # unsuccessful exit.
5235 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5236 # given a .adb file, but produce no object file. So we must check
5237 # if an object file was really produced to guard against this.
5238 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5239 if test x"$errors" = x && test -f conftest.$ac_objext; then
5240 acx_cv_cc_gcc_supports_ada=yes
5241 fi
5242 rm -f conftest.*
5243 fi
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5245 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5246
5247 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5248 have_gnat=yes
5249 else
5250 have_gnat=no
5251 fi
5252
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5254 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5255 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 echo abfoo >t1
5259 echo cdfoo >t2
5260 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5261 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5262 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5263 :
5264 else
5265 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5266 fi
5267 fi
5268 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5269 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5270 :
5271 else
5272 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5273 fi
5274 fi
5275 rm t1 t2
5276
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5279 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5280 do_compare="$gcc_cv_prog_cmp_skip"
5281
5282
5283
5284 # See if we are building gcc with C++.
5285 # Check whether --enable-build-with-cxx was given.
5286 if test "${enable_build_with_cxx+set}" = set; then :
5287 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5288 else
5289 ENABLE_BUILD_WITH_CXX=no
5290 fi
5291
5292
5293 # Used for setting $lt_cv_objdir
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5295 $as_echo_n "checking for objdir... " >&6; }
5296 if test "${lt_cv_objdir+set}" = set; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 rm -f .libs 2>/dev/null
5300 mkdir .libs 2>/dev/null
5301 if test -d .libs; then
5302 lt_cv_objdir=.libs
5303 else
5304 # MS-DOS does not allow filenames that begin with a dot.
5305 lt_cv_objdir=_libs
5306 fi
5307 rmdir .libs 2>/dev/null
5308 fi
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5310 $as_echo "$lt_cv_objdir" >&6; }
5311 objdir=$lt_cv_objdir
5312
5313
5314
5315
5316
5317 cat >>confdefs.h <<_ACEOF
5318 #define LT_OBJDIR "$lt_cv_objdir/"
5319 _ACEOF
5320
5321
5322
5323 # Check for GMP, MPFR and MPC
5324 gmplibs="-lmpc -lmpfr -lgmp"
5325 gmpinc=
5326 have_gmp=no
5327
5328 # Specify a location for mpc
5329 # check for this first so it ends up on the link line before mpfr.
5330
5331 # Check whether --with-mpc was given.
5332 if test "${with_mpc+set}" = set; then :
5333 withval=$with_mpc;
5334 fi
5335
5336
5337 # Check whether --with-mpc_include was given.
5338 if test "${with_mpc_include+set}" = set; then :
5339 withval=$with_mpc_include;
5340 fi
5341
5342
5343 # Check whether --with-mpc_lib was given.
5344 if test "${with_mpc_lib+set}" = set; then :
5345 withval=$with_mpc_lib;
5346 fi
5347
5348
5349 if test "x$with_mpc" != x; then
5350 gmplibs="-L$with_mpc/lib $gmplibs"
5351 gmpinc="-I$with_mpc/include $gmpinc"
5352 fi
5353 if test "x$with_mpc_include" != x; then
5354 gmpinc="-I$with_mpc_include $gmpinc"
5355 fi
5356 if test "x$with_mpc_lib" != x; then
5357 gmplibs="-L$with_mpc_lib $gmplibs"
5358 fi
5359 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5360 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5361 gmpinc='-I$$s/mpc/src '"$gmpinc"
5362 # Do not test the mpc version. Assume that it is sufficient, since
5363 # it is in the source tree, and the library has not been built yet
5364 # but it would be included on the link line in the version check below
5365 # hence making the test fail.
5366 have_gmp=yes
5367 fi
5368
5369 # Specify a location for mpfr
5370 # check for this first so it ends up on the link line before gmp.
5371
5372 # Check whether --with-mpfr-dir was given.
5373 if test "${with_mpfr_dir+set}" = set; then :
5374 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5375 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5376 fi
5377
5378
5379
5380 # Check whether --with-mpfr was given.
5381 if test "${with_mpfr+set}" = set; then :
5382 withval=$with_mpfr;
5383 fi
5384
5385
5386 # Check whether --with-mpfr_include was given.
5387 if test "${with_mpfr_include+set}" = set; then :
5388 withval=$with_mpfr_include;
5389 fi
5390
5391
5392 # Check whether --with-mpfr_lib was given.
5393 if test "${with_mpfr_lib+set}" = set; then :
5394 withval=$with_mpfr_lib;
5395 fi
5396
5397
5398 if test "x$with_mpfr" != x; then
5399 gmplibs="-L$with_mpfr/lib $gmplibs"
5400 gmpinc="-I$with_mpfr/include $gmpinc"
5401 fi
5402 if test "x$with_mpfr_include" != x; then
5403 gmpinc="-I$with_mpfr_include $gmpinc"
5404 fi
5405 if test "x$with_mpfr_lib" != x; then
5406 gmplibs="-L$with_mpfr_lib $gmplibs"
5407 fi
5408 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5409 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5410 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5411 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5412 # Do not test the mpfr version. Assume that it is sufficient, since
5413 # it is in the source tree, and the library has not been built yet
5414 # but it would be included on the link line in the version check below
5415 # hence making the test fail.
5416 have_gmp=yes
5417 fi
5418
5419 # Specify a location for gmp
5420
5421 # Check whether --with-gmp-dir was given.
5422 if test "${with_gmp_dir+set}" = set; then :
5423 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5424 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5425 fi
5426
5427
5428
5429 # Check whether --with-gmp was given.
5430 if test "${with_gmp+set}" = set; then :
5431 withval=$with_gmp;
5432 fi
5433
5434
5435 # Check whether --with-gmp_include was given.
5436 if test "${with_gmp_include+set}" = set; then :
5437 withval=$with_gmp_include;
5438 fi
5439
5440
5441 # Check whether --with-gmp_lib was given.
5442 if test "${with_gmp_lib+set}" = set; then :
5443 withval=$with_gmp_lib;
5444 fi
5445
5446
5447
5448 if test "x$with_gmp" != x; then
5449 gmplibs="-L$with_gmp/lib $gmplibs"
5450 gmpinc="-I$with_gmp/include $gmpinc"
5451 fi
5452 if test "x$with_gmp_include" != x; then
5453 gmpinc="-I$with_gmp_include $gmpinc"
5454 fi
5455 if test "x$with_gmp_lib" != x; then
5456 gmplibs="-L$with_gmp_lib $gmplibs"
5457 fi
5458 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5459 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5460 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5461 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5462 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5463 # Do not test the gmp version. Assume that it is sufficient, since
5464 # it is in the source tree, and the library has not been built yet
5465 # but it would be included on the link line in the version check below
5466 # hence making the test fail.
5467 have_gmp=yes
5468 fi
5469
5470 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5471 have_gmp=yes
5472 saved_CFLAGS="$CFLAGS"
5473 CFLAGS="$CFLAGS $gmpinc"
5474 # Check for the recommended and required versions of GMP.
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5476 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5477
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 #include "gmp.h"
5481 int
5482 main ()
5483 {
5484
5485 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5486 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5487 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5488 choke me
5489 #endif
5490
5491 ;
5492 return 0;
5493 }
5494 _ACEOF
5495 if ac_fn_c_try_compile "$LINENO"; then :
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5498 #include <gmp.h>
5499 int
5500 main ()
5501 {
5502
5503 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5504 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5505 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5506 choke me
5507 #endif
5508
5509 ;
5510 return 0;
5511 }
5512 _ACEOF
5513 if ac_fn_c_try_compile "$LINENO"; then :
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515 $as_echo "yes" >&6; }
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5518 $as_echo "buggy but acceptable" >&6; }
5519 fi
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }; have_gmp=no
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526
5527 # If we have GMP, check the MPFR version.
5528 if test x"$have_gmp" = xyes; then
5529 # Check for the recommended and required versions of MPFR.
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5531 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 #include <gmp.h>
5535 #include <mpfr.h>
5536 int
5537 main ()
5538 {
5539
5540 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5541 choke me
5542 #endif
5543
5544 ;
5545 return 0;
5546 }
5547 _ACEOF
5548 if ac_fn_c_try_compile "$LINENO"; then :
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <gmp.h>
5552 #include <mpfr.h>
5553 int
5554 main ()
5555 {
5556
5557 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5558 choke me
5559 #endif
5560
5561 ;
5562 return 0;
5563 }
5564 _ACEOF
5565 if ac_fn_c_try_compile "$LINENO"; then :
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5567 $as_echo "yes" >&6; }
5568 else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5570 $as_echo "buggy but acceptable" >&6; }
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }; have_gmp=no
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 fi
5579
5580 # Check for the MPC header version.
5581 if test x"$have_gmp" = xyes ; then
5582 # Check for the recommended and required versions of MPC.
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5584 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5587 #include <mpc.h>
5588 int
5589 main ()
5590 {
5591
5592 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5593 choke me
5594 #endif
5595
5596 ;
5597 return 0;
5598 }
5599 _ACEOF
5600 if ac_fn_c_try_compile "$LINENO"; then :
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5603 #include <mpc.h>
5604 int
5605 main ()
5606 {
5607
5608 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5609 choke me
5610 #endif
5611
5612 ;
5613 return 0;
5614 }
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5618 $as_echo "yes" >&6; }
5619 else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5621 $as_echo "buggy but acceptable" >&6; }
5622 fi
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 else
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 $as_echo "no" >&6; }; have_gmp=no
5627 fi
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 fi
5630
5631 # Now check the MPFR library.
5632 if test x"$have_gmp" = xyes; then
5633 saved_LIBS="$LIBS"
5634 LIBS="$LIBS $gmplibs"
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5636 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 #include <mpc.h>
5640 int
5641 main ()
5642 {
5643
5644 mpfr_t n;
5645 mpfr_t x;
5646 mpc_t c;
5647 int t;
5648 mpfr_init (n);
5649 mpfr_init (x);
5650 mpfr_atan2 (n, n, x, GMP_RNDN);
5651 mpfr_erfc (n, x, GMP_RNDN);
5652 mpfr_subnormalize (x, t, GMP_RNDN);
5653 mpfr_clear(n);
5654 mpfr_clear(x);
5655 mpc_init2 (c, 53);
5656 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5657 mpc_cosh (c, c, MPC_RNDNN);
5658 mpc_pow (c, c, c, MPC_RNDNN);
5659 mpc_acosh (c, c, MPC_RNDNN);
5660 mpc_clear (c);
5661
5662 ;
5663 return 0;
5664 }
5665 _ACEOF
5666 if ac_fn_c_try_link "$LINENO"; then :
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5668 $as_echo "yes" >&6; }
5669 else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }; have_gmp=no
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext \
5674 conftest$ac_exeext conftest.$ac_ext
5675 LIBS="$saved_LIBS"
5676 fi
5677
5678 CFLAGS="$saved_CFLAGS"
5679
5680 # The library versions listed in the error message below should match
5681 # the HARD-minimums enforced above.
5682 if test x$have_gmp != xyes; then
5683 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5684 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5685 their locations. Source code for these libraries can be found at
5686 their respective hosting sites as well as at
5687 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5688 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5689 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5690 make sure that you have installed both the libraries and the header
5691 files. They may be located in separate packages." "$LINENO" 5
5692 fi
5693 fi
5694
5695 # Flags needed for both GMP, MPFR and/or MPC.
5696
5697
5698
5699
5700
5701
5702 # Allow host libstdc++ to be specified for static linking with PPL.
5703
5704 # Check whether --with-host-libstdcxx was given.
5705 if test "${with_host_libstdcxx+set}" = set; then :
5706 withval=$with_host_libstdcxx;
5707 fi
5708
5709
5710 case $with_host_libstdcxx in
5711 no|yes)
5712 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5713 ;;
5714 esac
5715
5716 # Linker flags to use for stage1 or when not boostrapping.
5717
5718 # Check whether --with-stage1-ldflags was given.
5719 if test "${with_stage1_ldflags+set}" = set; then :
5720 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5721 stage1_ldflags=
5722 else
5723 stage1_ldflags=$withval
5724 fi
5725 else
5726 stage1_ldflags=
5727 fi
5728
5729
5730
5731 # Libraries to use for stage1 or when not bootstrapping.
5732
5733 # Check whether --with-stage1-libs was given.
5734 if test "${with_stage1_libs+set}" = set; then :
5735 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5736 stage1_libs=
5737 else
5738 stage1_libs=$withval
5739 fi
5740 else
5741 stage1_libs=$with_host_libstdcxx
5742 fi
5743
5744
5745
5746 # Libraries to use for stage2 and later builds. This defaults to the
5747 # argument passed to --with-host-libstdcxx.
5748
5749 # Check whether --with-boot-libs was given.
5750 if test "${with_boot_libs+set}" = set; then :
5751 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5752 poststage1_libs=
5753 else
5754 poststage1_libs=$withval
5755 fi
5756 else
5757 poststage1_libs=$with_host_libstdcxx
5758 fi
5759
5760
5761
5762 # Linker flags to use for stage2 and later builds.
5763
5764 # Check whether --with-boot-ldflags was given.
5765 if test "${with_boot_ldflags+set}" = set; then :
5766 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5767 poststage1_ldflags=
5768 else
5769 poststage1_ldflags=$withval
5770 fi
5771 else
5772 poststage1_ldflags=
5773 # With --enable-build-with-cxx, default to linking libstdc++ and
5774 # libgcc statically. But if the user explicitly specified the
5775 # libraries to use, trust that they are doing what they want.
5776 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5777 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5778 fi
5779 fi
5780
5781
5782
5783 # Check for PPL
5784 ppllibs=" -lppl_c -lppl -lgmpxx"
5785 pplinc=
5786
5787
5788 # Check whether --with-ppl was given.
5789 if test "${with_ppl+set}" = set; then :
5790 withval=$with_ppl;
5791 fi
5792
5793
5794 # Check whether --with-ppl_include was given.
5795 if test "${with_ppl_include+set}" = set; then :
5796 withval=$with_ppl_include;
5797 fi
5798
5799
5800 # Check whether --with-ppl_lib was given.
5801 if test "${with_ppl_lib+set}" = set; then :
5802 withval=$with_ppl_lib;
5803 fi
5804
5805
5806 case $with_ppl in
5807 no)
5808 ppllibs=
5809 ;;
5810 "" | yes)
5811 ;;
5812 *)
5813 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5814 pplinc="-I$with_ppl/include $pplinc"
5815 ;;
5816 esac
5817 if test "x$with_ppl_include" != x; then
5818 pplinc="-I$with_ppl_include $pplinc"
5819 fi
5820 if test "x$with_ppl_lib" != x; then
5821 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5822 fi
5823 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5824 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5825 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5826 enable_ppl_version_check=no
5827 fi
5828
5829 # Check whether --enable-ppl-version-check was given.
5830 if test "${enable_ppl_version_check+set}" = set; then :
5831 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5832 else
5833 ENABLE_PPL_CHECK=yes
5834 fi
5835
5836
5837 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5838 saved_CFLAGS="$CFLAGS"
5839 CFLAGS="$CFLAGS $pplinc $gmpinc"
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5841 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844 #include "ppl_c.h"
5845 int
5846 main ()
5847 {
5848
5849 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5850 choke me
5851 #endif
5852
5853 ;
5854 return 0;
5855 }
5856 _ACEOF
5857 if ac_fn_c_try_compile "$LINENO"; then :
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5859 $as_echo "yes" >&6; }
5860 else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5863 fi
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 CFLAGS="$saved_CFLAGS"
5866 fi
5867
5868 # Flags needed for PPL
5869
5870
5871
5872
5873 # Check for CLOOG
5874 clooglibs=" -lcloog "
5875 clooginc=" -DCLOOG_PPL_BACKEND "
5876
5877
5878 # Check whether --with-cloog was given.
5879 if test "${with_cloog+set}" = set; then :
5880 withval=$with_cloog;
5881 fi
5882
5883
5884 # Check whether --with-cloog_include was given.
5885 if test "${with_cloog_include+set}" = set; then :
5886 withval=$with_cloog_include;
5887 fi
5888
5889
5890 # Check whether --with-cloog_lib was given.
5891 if test "${with_cloog_lib+set}" = set; then :
5892 withval=$with_cloog_lib;
5893 fi
5894
5895
5896 if test "x$with_ppl" = "xno"; then
5897 with_cloog=no
5898 fi
5899
5900 case $with_cloog in
5901 no)
5902 clooglibs=
5903 clooginc=
5904 ;;
5905 "" | yes)
5906 ;;
5907 *)
5908 clooglibs="-L$with_cloog/lib -lcloog"
5909 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5910 ;;
5911 esac
5912 if test "x$with_cloog_include" != x; then
5913 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5914 fi
5915 if test "x$with_cloog_lib" != x; then
5916 clooglibs="-L$with_cloog_lib -lcloog"
5917 fi
5918 if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5919 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
5920 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5921 enable_cloog_version_check=no
5922 fi
5923
5924 # Check whether --enable-cloog-version-check was given.
5925 if test "${enable_cloog_version_check+set}" = set; then :
5926 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5927 else
5928 ENABLE_CLOOG_CHECK=yes
5929 fi
5930
5931
5932 if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
5933 saved_CFLAGS="$CFLAGS"
5934 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5936 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939 #include "cloog/cloog.h"
5940 int
5941 main ()
5942 {
5943
5944 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
5945 choke me
5946 #endif
5947
5948 ;
5949 return 0;
5950 }
5951 _ACEOF
5952 if ac_fn_c_try_compile "$LINENO"; then :
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5955 #include "cloog/cloog.h"
5956 int
5957 main ()
5958 {
5959
5960 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
5961 choke me
5962 #endif
5963
5964 ;
5965 return 0;
5966 }
5967 _ACEOF
5968 if ac_fn_c_try_compile "$LINENO"; then :
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5970 $as_echo "yes" >&6; }
5971 else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5973 $as_echo "buggy but acceptable" >&6; }
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 else
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }; clooglibs= ; clooginc=
5979 fi
5980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981 CFLAGS="$saved_CFLAGS"
5982 fi
5983
5984 # Flags needed for CLOOG
5985
5986
5987
5988 # Check for LTO support.
5989 # Check whether --enable-lto was given.
5990 if test "${enable_lto+set}" = set; then :
5991 enableval=$enable_lto; enable_lto=$enableval
5992 else
5993 enable_lto=yes; default_enable_lto=yes
5994 fi
5995
5996
5997
5998 ac_ext=c
5999 ac_cpp='$CPP $CPPFLAGS'
6000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6004 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6005 # On Suns, sometimes $CPP names a directory.
6006 if test -n "$CPP" && test -d "$CPP"; then
6007 CPP=
6008 fi
6009 if test -z "$CPP"; then
6010 if test "${ac_cv_prog_CPP+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 # Double quotes because CPP needs to be expanded
6014 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6015 do
6016 ac_preproc_ok=false
6017 for ac_c_preproc_warn_flag in '' yes
6018 do
6019 # Use a header file that comes with gcc, so configuring glibc
6020 # with a fresh cross-compiler works.
6021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6022 # <limits.h> exists even on freestanding compilers.
6023 # On the NeXT, cc -E runs the code through the compiler's parser,
6024 # not just through cpp. "Syntax error" is here to catch this case.
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6027 #ifdef __STDC__
6028 # include <limits.h>
6029 #else
6030 # include <assert.h>
6031 #endif
6032 Syntax error
6033 _ACEOF
6034 if ac_fn_c_try_cpp "$LINENO"; then :
6035
6036 else
6037 # Broken: fails on valid input.
6038 continue
6039 fi
6040 rm -f conftest.err conftest.$ac_ext
6041
6042 # OK, works on sane cases. Now check whether nonexistent headers
6043 # can be detected and how.
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 #include <ac_nonexistent.h>
6047 _ACEOF
6048 if ac_fn_c_try_cpp "$LINENO"; then :
6049 # Broken: success on invalid input.
6050 continue
6051 else
6052 # Passes both tests.
6053 ac_preproc_ok=:
6054 break
6055 fi
6056 rm -f conftest.err conftest.$ac_ext
6057
6058 done
6059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6060 rm -f conftest.err conftest.$ac_ext
6061 if $ac_preproc_ok; then :
6062 break
6063 fi
6064
6065 done
6066 ac_cv_prog_CPP=$CPP
6067
6068 fi
6069 CPP=$ac_cv_prog_CPP
6070 else
6071 ac_cv_prog_CPP=$CPP
6072 fi
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6074 $as_echo "$CPP" >&6; }
6075 ac_preproc_ok=false
6076 for ac_c_preproc_warn_flag in '' yes
6077 do
6078 # Use a header file that comes with gcc, so configuring glibc
6079 # with a fresh cross-compiler works.
6080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6081 # <limits.h> exists even on freestanding compilers.
6082 # On the NeXT, cc -E runs the code through the compiler's parser,
6083 # not just through cpp. "Syntax error" is here to catch this case.
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6086 #ifdef __STDC__
6087 # include <limits.h>
6088 #else
6089 # include <assert.h>
6090 #endif
6091 Syntax error
6092 _ACEOF
6093 if ac_fn_c_try_cpp "$LINENO"; then :
6094
6095 else
6096 # Broken: fails on valid input.
6097 continue
6098 fi
6099 rm -f conftest.err conftest.$ac_ext
6100
6101 # OK, works on sane cases. Now check whether nonexistent headers
6102 # can be detected and how.
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 #include <ac_nonexistent.h>
6106 _ACEOF
6107 if ac_fn_c_try_cpp "$LINENO"; then :
6108 # Broken: success on invalid input.
6109 continue
6110 else
6111 # Passes both tests.
6112 ac_preproc_ok=:
6113 break
6114 fi
6115 rm -f conftest.err conftest.$ac_ext
6116
6117 done
6118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6119 rm -f conftest.err conftest.$ac_ext
6120 if $ac_preproc_ok; then :
6121
6122 else
6123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6125 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6126 See \`config.log' for more details." "$LINENO" 5; }
6127 fi
6128
6129 ac_ext=c
6130 ac_cpp='$CPP $CPPFLAGS'
6131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6134
6135
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6137 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6138 if test "${ac_cv_path_GREP+set}" = set; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if test -z "$GREP"; then
6142 ac_path_GREP_found=false
6143 # Loop through the user's path and test for each of PROGNAME-LIST
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6146 do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_prog in grep ggrep; do
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6152 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6153 # Check for GNU ac_path_GREP and select it if it is found.
6154 # Check for GNU $ac_path_GREP
6155 case `"$ac_path_GREP" --version 2>&1` in
6156 *GNU*)
6157 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6158 *)
6159 ac_count=0
6160 $as_echo_n 0123456789 >"conftest.in"
6161 while :
6162 do
6163 cat "conftest.in" "conftest.in" >"conftest.tmp"
6164 mv "conftest.tmp" "conftest.in"
6165 cp "conftest.in" "conftest.nl"
6166 $as_echo 'GREP' >> "conftest.nl"
6167 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6169 as_fn_arith $ac_count + 1 && ac_count=$as_val
6170 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6171 # Best one so far, save it but keep looking for a better one
6172 ac_cv_path_GREP="$ac_path_GREP"
6173 ac_path_GREP_max=$ac_count
6174 fi
6175 # 10*(2^10) chars as input seems more than enough
6176 test $ac_count -gt 10 && break
6177 done
6178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6179 esac
6180
6181 $ac_path_GREP_found && break 3
6182 done
6183 done
6184 done
6185 IFS=$as_save_IFS
6186 if test -z "$ac_cv_path_GREP"; then
6187 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6188 fi
6189 else
6190 ac_cv_path_GREP=$GREP
6191 fi
6192
6193 fi
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6195 $as_echo "$ac_cv_path_GREP" >&6; }
6196 GREP="$ac_cv_path_GREP"
6197
6198
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6200 $as_echo_n "checking for egrep... " >&6; }
6201 if test "${ac_cv_path_EGREP+set}" = set; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6205 then ac_cv_path_EGREP="$GREP -E"
6206 else
6207 if test -z "$EGREP"; then
6208 ac_path_EGREP_found=false
6209 # Loop through the user's path and test for each of PROGNAME-LIST
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6212 do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_prog in egrep; do
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6218 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6219 # Check for GNU ac_path_EGREP and select it if it is found.
6220 # Check for GNU $ac_path_EGREP
6221 case `"$ac_path_EGREP" --version 2>&1` in
6222 *GNU*)
6223 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6224 *)
6225 ac_count=0
6226 $as_echo_n 0123456789 >"conftest.in"
6227 while :
6228 do
6229 cat "conftest.in" "conftest.in" >"conftest.tmp"
6230 mv "conftest.tmp" "conftest.in"
6231 cp "conftest.in" "conftest.nl"
6232 $as_echo 'EGREP' >> "conftest.nl"
6233 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6235 as_fn_arith $ac_count + 1 && ac_count=$as_val
6236 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6237 # Best one so far, save it but keep looking for a better one
6238 ac_cv_path_EGREP="$ac_path_EGREP"
6239 ac_path_EGREP_max=$ac_count
6240 fi
6241 # 10*(2^10) chars as input seems more than enough
6242 test $ac_count -gt 10 && break
6243 done
6244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6245 esac
6246
6247 $ac_path_EGREP_found && break 3
6248 done
6249 done
6250 done
6251 IFS=$as_save_IFS
6252 if test -z "$ac_cv_path_EGREP"; then
6253 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6254 fi
6255 else
6256 ac_cv_path_EGREP=$EGREP
6257 fi
6258
6259 fi
6260 fi
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6262 $as_echo "$ac_cv_path_EGREP" >&6; }
6263 EGREP="$ac_cv_path_EGREP"
6264
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6267 $as_echo_n "checking for ANSI C header files... " >&6; }
6268 if test "${ac_cv_header_stdc+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6273 #include <stdlib.h>
6274 #include <stdarg.h>
6275 #include <string.h>
6276 #include <float.h>
6277
6278 int
6279 main ()
6280 {
6281
6282 ;
6283 return 0;
6284 }
6285 _ACEOF
6286 if ac_fn_c_try_compile "$LINENO"; then :
6287 ac_cv_header_stdc=yes
6288 else
6289 ac_cv_header_stdc=no
6290 fi
6291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292
6293 if test $ac_cv_header_stdc = yes; then
6294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6297 #include <string.h>
6298
6299 _ACEOF
6300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301 $EGREP "memchr" >/dev/null 2>&1; then :
6302
6303 else
6304 ac_cv_header_stdc=no
6305 fi
6306 rm -f conftest*
6307
6308 fi
6309
6310 if test $ac_cv_header_stdc = yes; then
6311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314 #include <stdlib.h>
6315
6316 _ACEOF
6317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6318 $EGREP "free" >/dev/null 2>&1; then :
6319
6320 else
6321 ac_cv_header_stdc=no
6322 fi
6323 rm -f conftest*
6324
6325 fi
6326
6327 if test $ac_cv_header_stdc = yes; then
6328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6329 if test "$cross_compiling" = yes; then :
6330 :
6331 else
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6334 #include <ctype.h>
6335 #include <stdlib.h>
6336 #if ((' ' & 0x0FF) == 0x020)
6337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6339 #else
6340 # define ISLOWER(c) \
6341 (('a' <= (c) && (c) <= 'i') \
6342 || ('j' <= (c) && (c) <= 'r') \
6343 || ('s' <= (c) && (c) <= 'z'))
6344 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6345 #endif
6346
6347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6348 int
6349 main ()
6350 {
6351 int i;
6352 for (i = 0; i < 256; i++)
6353 if (XOR (islower (i), ISLOWER (i))
6354 || toupper (i) != TOUPPER (i))
6355 return 2;
6356 return 0;
6357 }
6358 _ACEOF
6359 if ac_fn_c_try_run "$LINENO"; then :
6360
6361 else
6362 ac_cv_header_stdc=no
6363 fi
6364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6365 conftest.$ac_objext conftest.beam conftest.$ac_ext
6366 fi
6367
6368 fi
6369 fi
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6371 $as_echo "$ac_cv_header_stdc" >&6; }
6372 if test $ac_cv_header_stdc = yes; then
6373
6374 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6375
6376 fi
6377
6378 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6380 inttypes.h stdint.h unistd.h
6381 do :
6382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6383 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6384 "
6385 eval as_val=\$$as_ac_Header
6386 if test "x$as_val" = x""yes; then :
6387 cat >>confdefs.h <<_ACEOF
6388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6389 _ACEOF
6390
6391 fi
6392
6393 done
6394
6395
6396
6397
6398
6399 target_elf=no
6400 case $target in
6401 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6402 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6403 alpha*-dec-osf* | *-interix*)
6404 target_elf=no
6405 ;;
6406 *)
6407 target_elf=yes
6408 ;;
6409 esac
6410
6411 if test $target_elf = yes; then :
6412 if test x"$enable_lto" = x"yes" ; then
6413 # Make sure that libelf.h and gelf.h are available.
6414
6415 # Check whether --with-libelf was given.
6416 if test "${with_libelf+set}" = set; then :
6417 withval=$with_libelf;
6418 fi
6419
6420
6421
6422 # Check whether --with-libelf_include was given.
6423 if test "${with_libelf_include+set}" = set; then :
6424 withval=$with_libelf_include;
6425 fi
6426
6427
6428
6429 # Check whether --with-libelf_lib was given.
6430 if test "${with_libelf_lib+set}" = set; then :
6431 withval=$with_libelf_lib;
6432 fi
6433
6434
6435 saved_CFLAGS="$CFLAGS"
6436 saved_CPPFLAGS="$CPPFLAGS"
6437 saved_LIBS="$LIBS"
6438
6439 case $with_libelf in
6440 "")
6441 libelflibs="-lelf"
6442 libelfinc="-I/usr/include/libelf"
6443 ;;
6444 *)
6445 libelflibs="-L$with_libelf/lib -lelf"
6446 libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
6447 LIBS="$libelflibs $LIBS"
6448 ;;
6449 esac
6450
6451 if test "x$with_libelf_include" != x; then
6452 libelfinc="-I$with_libelf_include"
6453 fi
6454
6455 if test "x$with_libelf_lib" != x; then
6456 libelflibs="-L$with_libelf_lib -lelf"
6457 LIBS="$libelflibs $LIBS"
6458 fi
6459
6460 if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
6461 && test -d ${srcdir}/libelf; then
6462 libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
6463 libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
6464 LIBS="$libelflibs $LIBS"
6465
6466 else
6467
6468 CFLAGS="$CFLAGS $libelfinc"
6469 CPPFLAGS="$CPPFLAGS $libelfinc"
6470 LIBS="$LIBS $libelflibs"
6471
6472 for ac_header in libelf.h
6473 do :
6474 ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
6475 if test "x$ac_cv_header_libelf_h" = x""yes; then :
6476 cat >>confdefs.h <<_ACEOF
6477 #define HAVE_LIBELF_H 1
6478 _ACEOF
6479 have_libelf_h=yes
6480 fi
6481
6482 done
6483
6484 for ac_header in gelf.h
6485 do :
6486 ac_fn_c_check_header_mongrel "$LINENO" "gelf.h" "ac_cv_header_gelf_h" "$ac_includes_default"
6487 if test "x$ac_cv_header_gelf_h" = x""yes; then :
6488 cat >>confdefs.h <<_ACEOF
6489 #define HAVE_GELF_H 1
6490 _ACEOF
6491 have_gelf_h=yes
6492 fi
6493
6494 done
6495
6496
6497 for ac_header in libelf/libelf.h
6498 do :
6499 ac_fn_c_check_header_mongrel "$LINENO" "libelf/libelf.h" "ac_cv_header_libelf_libelf_h" "$ac_includes_default"
6500 if test "x$ac_cv_header_libelf_libelf_h" = x""yes; then :
6501 cat >>confdefs.h <<_ACEOF
6502 #define HAVE_LIBELF_LIBELF_H 1
6503 _ACEOF
6504 have_libelf_libelf_h=yes
6505 fi
6506
6507 done
6508
6509 for ac_header in libelf/gelf.h
6510 do :
6511 ac_fn_c_check_header_mongrel "$LINENO" "libelf/gelf.h" "ac_cv_header_libelf_gelf_h" "$ac_includes_default"
6512 if test "x$ac_cv_header_libelf_gelf_h" = x""yes; then :
6513 cat >>confdefs.h <<_ACEOF
6514 #define HAVE_LIBELF_GELF_H 1
6515 _ACEOF
6516 have_libelf_gelf_h=yes
6517 fi
6518
6519 done
6520
6521
6522 # If we couldn't find libelf.h and the user forced it, emit an error.
6523 if test x"$have_libelf_h" != x"yes" \
6524 && test x"$have_libelf_libelf_h" != x"yes" ; then
6525 if test x"$default_enable_lto" != x"yes" ; then
6526 as_fn_error "LTO support requires libelf.h or libelf/libelf.h." "$LINENO" 5
6527 else
6528 enable_lto=no
6529 libelflibs=
6530 libelfinc=
6531 fi
6532 fi
6533
6534 # If we couldn't find gelf.h and the user forced it, emit an error.
6535 if test x"$have_gelf_h" != x"yes" \
6536 && test x"$have_libelf_gelf_h" != x"yes" ; then
6537 if test x"$default_enable_lto" != x"yes" ; then
6538 as_fn_error "LTO support requires gelf.h or libelf/gelf.h." "$LINENO" 5
6539 else
6540 enable_lto=no
6541 libelflibs=
6542 libelfinc=
6543 fi
6544 fi
6545
6546 # Check that the detected libelf has the functions we need. We cannot
6547 # rely on just detecting the headers since they do not include
6548 # versioning information. Add functions, if needed.
6549 if test x"$enable_lto" = x"yes" ; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of libelf" >&5
6551 $as_echo_n "checking for the correct version of libelf... " >&6; }
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6554 #include <libelf.h>
6555 int
6556 main ()
6557 {
6558
6559 elf_errmsg (0);
6560 elf_getscn (0, 0);
6561 elf_nextscn (0, 0);
6562 elf_strptr (0, 0, 0);
6563 elf_getident (0, 0);
6564 elf_begin (0, 0, 0);
6565 elf_ndxscn (0);
6566 elf_end (0);
6567
6568 ;
6569 return 0;
6570 }
6571 _ACEOF
6572 if ac_fn_c_try_link "$LINENO"; then :
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6574 $as_echo "yes" >&6; };
6575 else
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6578
6579 fi
6580 rm -f core conftest.err conftest.$ac_objext \
6581 conftest$ac_exeext conftest.$ac_ext
6582
6583 # Check for elf_getshdrstrndx or elf_getshstrndx. The latter's flavor
6584 # is determined in gcc/configure.ac.
6585 if test x"$enable_lto" = x"yes" ; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx" >&5
6587 $as_echo_n "checking for elf_getshdrstrndx... " >&6; }
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590 #include <libelf.h>
6591 int
6592 main ()
6593 {
6594
6595 elf_getshdrstrndx (0, 0);
6596
6597 ;
6598 return 0;
6599 }
6600 _ACEOF
6601 if ac_fn_c_try_link "$LINENO"; then :
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6603 $as_echo "yes" >&6; };
6604 else
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; };
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshstrndx" >&5
6608 $as_echo_n "checking for elf_getshstrndx... " >&6; }
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h. */
6611 #include <libelf.h>
6612 int
6613 main ()
6614 {
6615
6616 elf_getshstrndx (0, 0);
6617
6618 ;
6619 return 0;
6620 }
6621 _ACEOF
6622 if ac_fn_c_try_link "$LINENO"; then :
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6624 $as_echo "yes" >&6; };
6625 else
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6628
6629 fi
6630 rm -f core conftest.err conftest.$ac_objext \
6631 conftest$ac_exeext conftest.$ac_ext
6632
6633 fi
6634 rm -f core conftest.err conftest.$ac_objext \
6635 conftest$ac_exeext conftest.$ac_ext
6636 fi
6637
6638 # If we couldn't enable LTO and the user forced it, emit an error.
6639 if test x"$enable_lto" = x"no" \
6640 && test x"$default_enable_lto" != x"yes" ; then
6641 as_fn_error "To enable LTO, GCC requires libelf v0.8.12+.
6642 Try the --with-libelf, --with-libelf-include and --with-libelf-lib options
6643 to specify its location." "$LINENO" 5
6644 fi
6645 fi
6646
6647 CFLAGS="$saved_CFLAGS"
6648 CPPFLAGS="$saved_CPPFLAGS"
6649 LIBS="$saved_LIBS"
6650
6651 fi
6652
6653 # Flags needed for libelf.
6654
6655
6656 fi
6657 else
6658 if test x"$default_enable_lto" = x"yes" ; then
6659 # On non-ELF platforms, LTO must be explicitly enabled.
6660 enable_lto=no
6661 else
6662 # Apart from ELF platforms, only Windows supports LTO so far. It
6663 # would also be nice to check the binutils support, but we don't
6664 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6665 # warn during gcc/ subconfigure; unless you're bootstrapping with
6666 # -flto it won't be needed until after installation anyway.
6667 case $target in
6668 *-cygwin*|*-mingw*) ;;
6669 x86_64-apple-darwin*) ;;
6670 *) if test x"$enable_lto" = x"yes"; then
6671 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6672 fi
6673 ;;
6674 esac
6675 fi
6676 default_enable_lto=no
6677 fi
6678
6679
6680
6681 # By default, C is the only stage 1 language.
6682 stage1_languages=,c,
6683
6684 # Target libraries that we bootstrap.
6685 bootstrap_target_libs=,target-libgcc,
6686
6687 # Figure out what language subdirectories are present.
6688 # Look if the user specified --enable-languages="..."; if not, use
6689 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6690 # go away some day.
6691 # NB: embedded tabs in this IF block -- do not untabify
6692 if test -d ${srcdir}/gcc; then
6693 if test x"${enable_languages+set}" != xset; then
6694 if test x"${LANGUAGES+set}" = xset; then
6695 enable_languages="${LANGUAGES}"
6696 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6697 else
6698 enable_languages=all
6699 fi
6700 else
6701 if test x"${enable_languages}" = x ||
6702 test x"${enable_languages}" = xyes;
6703 then
6704 echo configure.in: --enable-languages needs at least one language argument 1>&2
6705 exit 1
6706 fi
6707 fi
6708 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6709
6710 # 'f95' is the old name for the 'fortran' language. We issue a warning
6711 # and make the substitution.
6712 case ,${enable_languages}, in
6713 *,f95,*)
6714 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6715 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6716 ;;
6717 esac
6718
6719 # First scan to see if an enabled language requires some other language.
6720 # We assume that a given config-lang.in will list all the language
6721 # front ends it requires, even if some are required indirectly.
6722 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6723 case ${lang_frag} in
6724 ..) ;;
6725 # The odd quoting in the next line works around
6726 # an apparent bug in bash 1.12 on linux.
6727 ${srcdir}/gcc/[*]/config-lang.in) ;;
6728 *)
6729 # From the config-lang.in, get $language, $lang_requires
6730 language=
6731 lang_requires=
6732 . ${lang_frag}
6733 for other in ${lang_requires} ; do
6734 case ,${enable_languages}, in
6735 *,$other,*) ;;
6736 *,all,*) ;;
6737 *,$language,*)
6738 echo " \`$other' language required by \`$language'; enabling" 1>&2
6739 enable_languages="${enable_languages},${other}"
6740 ;;
6741 esac
6742 done
6743 ;;
6744 esac
6745 done
6746
6747 new_enable_languages=,c,
6748
6749 # If LTO is enabled, add the LTO front end.
6750 extra_host_libiberty_configure_flags=
6751 if test "$enable_lto" = "yes" ; then
6752 case ,${enable_languages}, in
6753 *,lto,*) ;;
6754 *) enable_languages="${enable_languages},lto" ;;
6755 esac
6756 if test "${ENABLE_GOLD}" = "yes" ; then
6757 configdirs="$configdirs lto-plugin"
6758 extra_host_libiberty_configure_flags=--enable-shared
6759 fi
6760 fi
6761
6762
6763 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6764 potential_languages=,c,
6765
6766 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6767 case ${lang_frag} in
6768 ..) ;;
6769 # The odd quoting in the next line works around
6770 # an apparent bug in bash 1.12 on linux.
6771 ${srcdir}/gcc/[*]/config-lang.in) ;;
6772 *)
6773 # From the config-lang.in, get $language, $target_libs,
6774 # $lang_dirs, $boot_language, and $build_by_default
6775 language=
6776 target_libs=
6777 lang_dirs=
6778 subdir_requires=
6779 boot_language=no
6780 build_by_default=yes
6781 . ${lang_frag}
6782 if test x${language} = x; then
6783 echo "${lang_frag} doesn't set \$language." 1>&2
6784 exit 1
6785 fi
6786
6787 if test "$language" = "c++" \
6788 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6789 boot_language=yes
6790 fi
6791
6792 case ,${enable_languages}, in
6793 *,${language},*)
6794 # Language was explicitly selected; include it.
6795 add_this_lang=yes
6796 ;;
6797 *,all,*)
6798 # 'all' was selected, select it if it is a default language
6799 add_this_lang=${build_by_default}
6800 ;;
6801 *)
6802 add_this_lang=no
6803 ;;
6804 esac
6805
6806 # Disable languages that need other directories if these aren't available.
6807 for i in $subdir_requires; do
6808 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6809 case ,${enable_languages}, in
6810 *,${language},*)
6811 # Specifically requested language; tell them.
6812 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6813 ;;
6814 *)
6815 # Silently disable.
6816 add_this_lang=unsupported
6817 ;;
6818 esac
6819 done
6820
6821 # Disable Ada if no preexisting GNAT is available.
6822 case ,${enable_languages},:${language}:${have_gnat} in
6823 *,${language},*:ada:no)
6824 # Specifically requested language; tell them.
6825 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6826 ;;
6827 *:ada:no)
6828 # Silently disable.
6829 add_this_lang=unsupported
6830 ;;
6831 esac
6832
6833 # Disable a language that is unsupported by the target.
6834 case " $unsupported_languages " in
6835 *" $language "*)
6836 add_this_lang=unsupported
6837 ;;
6838 esac
6839
6840 case $add_this_lang in
6841 unsupported)
6842 # Remove language-dependent dirs.
6843 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6844 ;;
6845 no)
6846 # Remove language-dependent dirs; still show language as supported.
6847 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6848 potential_languages="${potential_languages}${language},"
6849 ;;
6850 yes)
6851 new_enable_languages="${new_enable_languages}${language},"
6852 potential_languages="${potential_languages}${language},"
6853 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6854 case "${boot_language}:,$enable_stage1_languages," in
6855 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6856 # Add to (comma-separated) list of stage 1 languages.
6857 case ",$stage1_languages," in
6858 *,$language,* | ,yes, | ,all,) ;;
6859 *) stage1_languages="${stage1_languages}${language}," ;;
6860 esac
6861 # We need to bootstrap any supporting libraries.
6862 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6863 ;;
6864 esac
6865 ;;
6866 esac
6867 ;;
6868 esac
6869 done
6870
6871 # Check whether --enable-stage1-languages was given.
6872 if test "${enable_stage1_languages+set}" = set; then :
6873 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6874 ,no,|,,)
6875 # Set it to something that will have no effect in the loop below
6876 enable_stage1_languages=c ;;
6877 ,yes,)
6878 enable_stage1_languages=`echo $new_enable_languages | \
6879 sed -e "s/^,//" -e "s/,$//" ` ;;
6880 *,all,*)
6881 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6882 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6883 esac
6884
6885 # Add "good" languages from enable_stage1_languages to stage1_languages,
6886 # while "bad" languages go in missing_languages. Leave no duplicates.
6887 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6888 case $potential_languages in
6889 *,$i,*)
6890 case $stage1_languages in
6891 *,$i,*) ;;
6892 *) stage1_languages="$stage1_languages$i," ;;
6893 esac ;;
6894 *)
6895 case $missing_languages in
6896 *,$i,*) ;;
6897 *) missing_languages="$missing_languages$i," ;;
6898 esac ;;
6899 esac
6900 done
6901 fi
6902
6903
6904 # Remove leading/trailing commas that were added for simplicity
6905 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6906 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6907 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6908 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6909
6910 if test "x$missing_languages" != x; then
6911 as_fn_error "
6912 The following requested languages could not be built: ${missing_languages}
6913 Supported languages are: ${potential_languages}" "$LINENO" 5
6914 fi
6915 if test "x$new_enable_languages" != "x$enable_languages"; then
6916 echo The following languages will be built: ${new_enable_languages}
6917 enable_languages="$new_enable_languages"
6918 fi
6919
6920
6921 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6922 fi
6923
6924 # Handle --disable-<component> generically.
6925 for dir in $configdirs $build_configdirs $target_configdirs ; do
6926 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6927 varname=`echo $dirname | sed -e s/+/_/g`
6928 if eval test x\${enable_${varname}} "=" xno ; then
6929 noconfigdirs="$noconfigdirs $dir"
6930 fi
6931 done
6932
6933 # Check for Boehm's garbage collector
6934 # Check whether --enable-objc-gc was given.
6935 if test "${enable_objc_gc+set}" = set; then :
6936 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6937 *,objc,*:*:yes:*target-boehm-gc*)
6938 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6939 ;;
6940 esac
6941 fi
6942
6943
6944 # Make sure we only build Boehm's garbage collector if required.
6945 case ,${enable_languages},:${enable_objc_gc} in
6946 *,objc,*:yes)
6947 # Keep target-boehm-gc if requested for Objective-C.
6948 ;;
6949 *)
6950 # Otherwise remove target-boehm-gc depending on target-libjava.
6951 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6952 noconfigdirs="$noconfigdirs target-boehm-gc"
6953 fi
6954 ;;
6955 esac
6956
6957 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6958 # $build_configdirs and $target_configdirs.
6959 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6960
6961 notsupp=""
6962 for dir in . $skipdirs $noconfigdirs ; do
6963 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6964 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6965 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6966 if test -r $srcdir/$dirname/configure ; then
6967 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6968 true
6969 else
6970 notsupp="$notsupp $dir"
6971 fi
6972 fi
6973 fi
6974 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6975 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6976 if test -r $srcdir/$dirname/configure ; then
6977 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6978 true
6979 else
6980 notsupp="$notsupp $dir"
6981 fi
6982 fi
6983 fi
6984 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6985 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6986 if test -r $srcdir/$dirname/configure ; then
6987 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6988 true
6989 else
6990 notsupp="$notsupp $dir"
6991 fi
6992 fi
6993 fi
6994 done
6995
6996 # Quietly strip out all directories which aren't configurable in this tree.
6997 # This relies on all configurable subdirectories being autoconfiscated, which
6998 # is now the case.
6999 build_configdirs_all="$build_configdirs"
7000 build_configdirs=
7001 for i in ${build_configdirs_all} ; do
7002 j=`echo $i | sed -e s/build-//g`
7003 if test -f ${srcdir}/$j/configure ; then
7004 build_configdirs="${build_configdirs} $i"
7005 fi
7006 done
7007
7008 configdirs_all="$configdirs"
7009 configdirs=
7010 for i in ${configdirs_all} ; do
7011 if test -f ${srcdir}/$i/configure ; then
7012 configdirs="${configdirs} $i"
7013 fi
7014 done
7015
7016 target_configdirs_all="$target_configdirs"
7017 target_configdirs=
7018 for i in ${target_configdirs_all} ; do
7019 j=`echo $i | sed -e s/target-//g`
7020 if test -f ${srcdir}/$j/configure ; then
7021 target_configdirs="${target_configdirs} $i"
7022 fi
7023 done
7024
7025 # Produce a warning message for the subdirs we can't configure.
7026 # This isn't especially interesting in the Cygnus tree, but in the individual
7027 # FSF releases, it's important to let people know when their machine isn't
7028 # supported by the one or two programs in a package.
7029
7030 if test -n "${notsupp}" && test -z "${norecursion}" ; then
7031 # If $appdirs is non-empty, at least one of those directories must still
7032 # be configured, or we error out. (E.g., if the gas release supports a
7033 # specified target in some subdirs but not the gas subdir, we shouldn't
7034 # pretend that all is well.)
7035 if test -n "$appdirs" ; then
7036 for dir in $appdirs ; do
7037 if test -r $dir/Makefile.in ; then
7038 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7039 appdirs=""
7040 break
7041 fi
7042 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
7043 appdirs=""
7044 break
7045 fi
7046 fi
7047 done
7048 if test -n "$appdirs" ; then
7049 echo "*** This configuration is not supported by this package." 1>&2
7050 exit 1
7051 fi
7052 fi
7053 # Okay, some application will build, or we don't care to check. Still
7054 # notify of subdirs not getting built.
7055 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7056 echo " ${notsupp}" 1>&2
7057 echo " (Any other directories should still work fine.)" 1>&2
7058 fi
7059
7060 case "$host" in
7061 *msdosdjgpp*)
7062 enable_gdbtk=no ;;
7063 esac
7064
7065 # To find our prefix, in gcc_cv_tool_prefix.
7066
7067 # The user is always right.
7068 if test "${PATH_SEPARATOR+set}" != set; then
7069 echo "#! /bin/sh" >conf$$.sh
7070 echo "exit 0" >>conf$$.sh
7071 chmod +x conf$$.sh
7072 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7073 PATH_SEPARATOR=';'
7074 else
7075 PATH_SEPARATOR=:
7076 fi
7077 rm -f conf$$.sh
7078 fi
7079
7080
7081
7082 if test "x$exec_prefix" = xNONE; then
7083 if test "x$prefix" = xNONE; then
7084 gcc_cv_tool_prefix=$ac_default_prefix
7085 else
7086 gcc_cv_tool_prefix=$prefix
7087 fi
7088 else
7089 gcc_cv_tool_prefix=$exec_prefix
7090 fi
7091
7092 # If there is no compiler in the tree, use the PATH only. In any
7093 # case, if there is no compiler in the tree nobody should use
7094 # AS_FOR_TARGET and LD_FOR_TARGET.
7095 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7096 gcc_version=`cat $srcdir/gcc/BASE-VER`
7097 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7098 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7099 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7100 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7101 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7102 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7103 else
7104 gcc_cv_tool_dirs=
7105 fi
7106
7107 if test x$build = x$target && test -n "$md_exec_prefix"; then
7108 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7109 fi
7110
7111
7112
7113 copy_dirs=
7114
7115
7116 # Check whether --with-build-sysroot was given.
7117 if test "${with_build_sysroot+set}" = set; then :
7118 withval=$with_build_sysroot; if test x"$withval" != x ; then
7119 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7120 fi
7121 else
7122 SYSROOT_CFLAGS_FOR_TARGET=
7123 fi
7124
7125
7126
7127
7128 # Check whether --with-debug-prefix-map was given.
7129 if test "${with_debug_prefix_map+set}" = set; then :
7130 withval=$with_debug_prefix_map; if test x"$withval" != x; then
7131 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7132 for debug_map in $withval; do
7133 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7134 done
7135 fi
7136 else
7137 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7138 fi
7139
7140
7141
7142 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7143 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7144 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7145 # We want to ensure that TARGET libraries (which we know are built with
7146 # gcc) are built with "-O2 -g", so include those options when setting
7147 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7148 if test "x$CFLAGS_FOR_TARGET" = x; then
7149 CFLAGS_FOR_TARGET=$CFLAGS
7150 case " $CFLAGS " in
7151 *" -O2 "*) ;;
7152 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
7153 esac
7154 case " $CFLAGS " in
7155 *" -g "* | *" -g3 "*) ;;
7156 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
7157 esac
7158 fi
7159
7160
7161 if test "x$CXXFLAGS_FOR_TARGET" = x; then
7162 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7163 case " $CXXFLAGS " in
7164 *" -O2 "*) ;;
7165 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
7166 esac
7167 case " $CXXFLAGS " in
7168 *" -g "* | *" -g3 "*) ;;
7169 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
7170 esac
7171 fi
7172
7173
7174 # Handle --with-headers=XXX. If the value is not "yes", the contents of
7175 # the named directory are copied to $(tooldir)/sys-include.
7176 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7177 if test x${is_cross_compiler} = xno ; then
7178 echo 1>&2 '***' --with-headers is only supported when cross compiling
7179 exit 1
7180 fi
7181 if test x"${with_headers}" != xyes ; then
7182 x=${gcc_cv_tool_prefix}
7183 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
7184 fi
7185 fi
7186
7187 # Handle --with-libs=XXX. If the value is not "yes", the contents of
7188 # the name directories are copied to $(tooldir)/lib. Multiple directories
7189 # are permitted.
7190 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7191 if test x${is_cross_compiler} = xno ; then
7192 echo 1>&2 '***' --with-libs is only supported when cross compiling
7193 exit 1
7194 fi
7195 if test x"${with_libs}" != xyes ; then
7196 # Copy the libraries in reverse order, so that files in the first named
7197 # library override files in subsequent libraries.
7198 x=${gcc_cv_tool_prefix}
7199 for l in ${with_libs}; do
7200 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
7201 done
7202 fi
7203 fi
7204
7205 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
7206 #
7207 # This is done by determining whether or not the appropriate directory
7208 # is available, and by checking whether or not specific configurations
7209 # have requested that this magic not happen.
7210 #
7211 # The command line options always override the explicit settings in
7212 # configure.in, and the settings in configure.in override this magic.
7213 #
7214 # If the default for a toolchain is to use GNU as and ld, and you don't
7215 # want to do that, then you should use the --without-gnu-as and
7216 # --without-gnu-ld options for the configure script. Similarly, if
7217 # the default is to use the included zlib and you don't want to do that,
7218 # you should use the --with-system-zlib option for the configure script.
7219
7220 if test x${use_gnu_as} = x &&
7221 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7222 with_gnu_as=yes
7223 extra_host_args="$extra_host_args --with-gnu-as"
7224 fi
7225
7226 if test x${use_gnu_ld} = x &&
7227 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7228 with_gnu_ld=yes
7229 extra_host_args="$extra_host_args --with-gnu-ld"
7230 fi
7231
7232 if test x${use_included_zlib} = x &&
7233 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7234 :
7235 else
7236 with_system_zlib=yes
7237 extra_host_args="$extra_host_args --with-system-zlib"
7238 fi
7239
7240 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7241 # can detect this case.
7242
7243 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7244 with_newlib=yes
7245 extra_host_args="$extra_host_args --with-newlib"
7246 fi
7247
7248 # Handle ${copy_dirs}
7249 set fnord ${copy_dirs}
7250 shift
7251 while test $# != 0 ; do
7252 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7253 :
7254 else
7255 echo Copying $1 to $2
7256
7257 # Use the install script to create the directory and all required
7258 # parent directories.
7259 if test -d $2 ; then
7260 :
7261 else
7262 echo >config.temp
7263 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7264 fi
7265
7266 # Copy the directory, assuming we have tar.
7267 # FIXME: Should we use B in the second tar? Not all systems support it.
7268 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7269
7270 # It is the responsibility of the user to correctly adjust all
7271 # symlinks. If somebody can figure out how to handle them correctly
7272 # here, feel free to add the code.
7273
7274 echo $1 > $2/COPIED
7275 fi
7276 shift; shift
7277 done
7278
7279 # Determine a target-dependent exec_prefix that the installed
7280 # gcc will search in. Keep this list sorted by triplet, with
7281 # the *-*-osname triplets last.
7282 md_exec_prefix=
7283 case "${target}" in
7284 alpha*-*-*vms*)
7285 md_exec_prefix=/gnu/lib/gcc-lib
7286 ;;
7287 i[34567]86-pc-msdosdjgpp*)
7288 md_exec_prefix=/dev/env/DJDIR/bin
7289 ;;
7290 i[34567]86-*-sco3.2v5*)
7291 if test $with_gnu_as = yes; then
7292 md_exec_prefix=/usr/gnu/bin
7293 else
7294 md_exec_prefix=/usr/ccs/bin/elf
7295 fi
7296 ;;
7297
7298 mn10300-*-* | \
7299 powerpc-*-chorusos* | \
7300 powerpc*-*-eabi* | \
7301 powerpc*-*-sysv* | \
7302 powerpc*-*-kaos* | \
7303 s390x-ibm-tpf*)
7304 md_exec_prefix=/usr/ccs/bin
7305 ;;
7306 sparc64-*-elf*)
7307 ;;
7308 v850*-*-*)
7309 md_exec_prefix=/usr/ccs/bin
7310 ;;
7311 xtensa*-*-elf*)
7312 ;;
7313
7314 *-*-beos* | \
7315 *-*-elf* | \
7316 *-*-hpux* | \
7317 *-*-netware* | \
7318 *-*-nto-qnx* | \
7319 *-*-rtems* | \
7320 *-*-solaris2* | \
7321 *-*-sysv[45]* | \
7322 *-*-vxworks* | \
7323 *-wrs-windiss)
7324 md_exec_prefix=/usr/ccs/bin
7325 ;;
7326 esac
7327
7328 extra_arflags_for_target=
7329 extra_nmflags_for_target=
7330 extra_ranlibflags_for_target=
7331 target_makefile_frag=/dev/null
7332 case "${target}" in
7333 mep*-*-*)
7334 target_makefile_frag="config/mt-mep"
7335 ;;
7336 spu-*-*)
7337 target_makefile_frag="config/mt-spu"
7338 ;;
7339 mips*-sde-elf*)
7340 target_makefile_frag="config/mt-sde"
7341 ;;
7342 mipsisa*-*-elfoabi*)
7343 target_makefile_frag="config/mt-mips-elfoabi"
7344 ;;
7345 mips*-*-*linux* | mips*-*-gnu*)
7346 target_makefile_frag="config/mt-mips-gnu"
7347 ;;
7348 *-*-netware*)
7349 target_makefile_frag="config/mt-netware"
7350 ;;
7351 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7352 target_makefile_frag="config/mt-gnu"
7353 ;;
7354 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7355 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7356 # commands to handle both 32-bit and 64-bit objects. These flags are
7357 # harmless if we're using GNU nm or ar.
7358 extra_arflags_for_target=" -X32_64"
7359 extra_nmflags_for_target=" -B -X32_64"
7360 ;;
7361 *-*-darwin[3-9]*)
7362 # ranlib before Darwin10 requires the -c flag to look at common symbols.
7363 extra_ranlibflags_for_target=" -c"
7364 ;;
7365 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
7366 target_makefile_frag="config/mt-wince"
7367 ;;
7368 esac
7369
7370 alphaieee_frag=/dev/null
7371 case $target in
7372 alpha*-*-*)
7373 # This just makes sure to use the -mieee option to build target libs.
7374 # This should probably be set individually by each library.
7375 alphaieee_frag="config/mt-alphaieee"
7376 ;;
7377 esac
7378
7379 # If --enable-target-optspace always use -Os instead of -O2 to build
7380 # the target libraries, similarly if it is not specified, use -Os
7381 # on selected platforms.
7382 ospace_frag=/dev/null
7383 case "${enable_target_optspace}:${target}" in
7384 yes:*)
7385 ospace_frag="config/mt-ospace"
7386 ;;
7387 :d30v-*)
7388 ospace_frag="config/mt-d30v"
7389 ;;
7390 :m32r-* | :d10v-* | :fr30-*)
7391 ospace_frag="config/mt-ospace"
7392 ;;
7393 no:* | :*)
7394 ;;
7395 *)
7396 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7397 ;;
7398 esac
7399
7400 # Default to using --with-stabs for certain targets.
7401 if test x${with_stabs} = x ; then
7402 case "${target}" in
7403 mips*-*-irix[56]*)
7404 ;;
7405 mips*-*-* | alpha*-*-osf*)
7406 with_stabs=yes;
7407 extra_host_args="${extra_host_args} --with-stabs"
7408 ;;
7409 esac
7410 fi
7411
7412 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
7413 # them automatically.
7414 case "${host}" in
7415 hppa*64*-*-hpux11*)
7416 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
7417 ;;
7418 esac
7419
7420 # Some systems (e.g., one of the i386-aix systems the gas testers are
7421 # using) don't handle "\$" correctly, so don't use it here.
7422 tooldir='${exec_prefix}'/${target_noncanonical}
7423 build_tooldir=${tooldir}
7424
7425 # Create a .gdbinit file which runs the one in srcdir
7426 # and tells GDB to look there for source files.
7427
7428 if test -r ${srcdir}/.gdbinit ; then
7429 case ${srcdir} in
7430 .) ;;
7431 *) cat > ./.gdbinit <<EOF
7432 # ${NO_EDIT}
7433 dir ${srcdir}
7434 dir .
7435 source ${srcdir}/.gdbinit
7436 EOF
7437 ;;
7438 esac
7439 fi
7440
7441 # Make sure that the compiler is able to generate an executable. If it
7442 # can't, we are probably in trouble. We don't care whether we can run the
7443 # executable--we might be using a cross compiler--we only care whether it
7444 # can be created. At this point the main configure script has set CC.
7445 we_are_ok=no
7446 echo "int main () { return 0; }" > conftest.c
7447 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7448 if test $? = 0 ; then
7449 if test -s conftest || test -s conftest.exe ; then
7450 we_are_ok=yes
7451 fi
7452 fi
7453 case $we_are_ok in
7454 no)
7455 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7456 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7457 rm -f conftest*
7458 exit 1
7459 ;;
7460 esac
7461 rm -f conftest*
7462
7463 # The Solaris /usr/ucb/cc compiler does not appear to work.
7464 case "${host}" in
7465 sparc-sun-solaris2*)
7466 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
7467 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
7468 could_use=
7469 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
7470 if test -d /opt/cygnus/bin ; then
7471 if test "$could_use" = "" ; then
7472 could_use="/opt/cygnus/bin"
7473 else
7474 could_use="$could_use or /opt/cygnus/bin"
7475 fi
7476 fi
7477 if test "$could_use" = "" ; then
7478 echo "Warning: compilation may fail because you're using"
7479 echo "/usr/ucb/cc. You should change your PATH or CC "
7480 echo "variable and rerun configure."
7481 else
7482 echo "Warning: compilation may fail because you're using"
7483 echo "/usr/ucb/cc, when you should use the C compiler from"
7484 echo "$could_use. You should change your"
7485 echo "PATH or CC variable and rerun configure."
7486 fi
7487 fi
7488 ;;
7489 esac
7490
7491 # Decide which environment variable is used to find dynamic libraries.
7492 case "${host}" in
7493 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7494 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7495 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7496 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7497 esac
7498
7499 # On systems where the dynamic library environment variable is PATH,
7500 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7501 # built executables to PATH.
7502 if test "$RPATH_ENVVAR" = PATH; then
7503 GCC_SHLIB_SUBDIR=/shlib
7504 else
7505 GCC_SHLIB_SUBDIR=
7506 fi
7507
7508 # Record target_configdirs and the configure arguments for target and
7509 # build configuration in Makefile.
7510 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7511 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7512
7513 # If we are building libgomp, bootstrap it.
7514 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7515 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7516 fi
7517
7518 # Determine whether gdb needs tk/tcl or not.
7519 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7520 # and in that case we want gdb to be built without tk. Ugh!
7521 # In fact I believe gdb is the *only* package directly dependent on tk,
7522 # so we should be able to put the 'maybe's in unconditionally and
7523 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7524 # 100% sure that that's safe though.
7525
7526 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7527 case "$enable_gdbtk" in
7528 no)
7529 GDB_TK="" ;;
7530 yes)
7531 GDB_TK="${gdb_tk}" ;;
7532 *)
7533 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7534 # distro. Eventually someone will fix this and move Insight, nee
7535 # gdbtk to a separate directory.
7536 if test -d ${srcdir}/gdb/gdbtk ; then
7537 GDB_TK="${gdb_tk}"
7538 else
7539 GDB_TK=""
7540 fi
7541 ;;
7542 esac
7543 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7544 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7545
7546 # Strip out unwanted targets.
7547
7548 # While at that, we remove Makefiles if we were started for recursive
7549 # configuration, so that the top-level Makefile reconfigures them,
7550 # like we used to do when configure itself was recursive.
7551
7552 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7553 # but now we're fixing up the Makefile ourselves with the additional
7554 # commands passed to AC_CONFIG_FILES. Use separate variables
7555 # extrasub-{build,host,target} not because there is any reason to split
7556 # the substitutions up that way, but only to remain below the limit of
7557 # 99 commands in a script, for HP-UX sed.
7558 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7559
7560 # Check whether --enable-bootstrap was given.
7561 if test "${enable_bootstrap+set}" = set; then :
7562 enableval=$enable_bootstrap;
7563 else
7564 enable_bootstrap=default
7565 fi
7566
7567
7568 # Issue errors and warnings for invalid/strange bootstrap combinations.
7569 case "$configdirs" in
7570 *gcc*) have_compiler=yes ;;
7571 *) have_compiler=no ;;
7572 esac
7573
7574 case "$have_compiler:$host:$target:$enable_bootstrap" in
7575 *:*:*:no) ;;
7576
7577 # Default behavior. Enable bootstrap if we have a compiler
7578 # and we are in a native configuration.
7579 yes:$build:$build:default)
7580 enable_bootstrap=yes ;;
7581
7582 *:*:*:default)
7583 enable_bootstrap=no ;;
7584
7585 # We have a compiler and we are in a native configuration, bootstrap is ok
7586 yes:$build:$build:yes)
7587 ;;
7588
7589 # Other configurations, but we have a compiler. Assume the user knows
7590 # what he's doing.
7591 yes:*:*:yes)
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7593 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7594 ;;
7595
7596 # No compiler: if they passed --enable-bootstrap explicitly, fail
7597 no:*:*:yes)
7598 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7599
7600 # Fail if wrong command line
7601 *)
7602 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7603 ;;
7604 esac
7605
7606 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7607 *,c++,*:yes:yes) ;;
7608 *:yes:yes)
7609 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7610 ;;
7611 esac
7612
7613 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7614 yes:yes:*\ gold\ *:*,c++,*) ;;
7615 yes:yes:*\ gold\ *:*)
7616 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7617 ;;
7618 esac
7619
7620 # Adjust the toplevel makefile according to whether bootstrap was selected.
7621 case $enable_bootstrap in
7622 yes)
7623 bootstrap_suffix=bootstrap
7624 BUILD_CONFIG=bootstrap-debug
7625 ;;
7626 no)
7627 bootstrap_suffix=no-bootstrap
7628 BUILD_CONFIG=
7629 ;;
7630 esac
7631
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7633 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7634
7635
7636 # Check whether --with-build-config was given.
7637 if test "${with_build_config+set}" = set; then :
7638 withval=$with_build_config; case $with_build_config in
7639 yes) with_build_config= ;;
7640 no) with_build_config= BUILD_CONFIG= ;;
7641 esac
7642 fi
7643
7644
7645 if test "x${with_build_config}" != x; then
7646 BUILD_CONFIG=$with_build_config
7647 else
7648 case $BUILD_CONFIG in
7649 bootstrap-debug)
7650 if echo "int f (void) { return 0; }" > conftest.c &&
7651 ${CC} -c conftest.c &&
7652 mv conftest.o conftest.o.g0 &&
7653 ${CC} -c -g conftest.c &&
7654 mv conftest.o conftest.o.g &&
7655 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7656 :
7657 else
7658 BUILD_CONFIG=
7659 fi
7660 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7661 ;;
7662 esac
7663 fi
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7665 $as_echo "$BUILD_CONFIG" >&6; }
7666
7667
7668 extrasub_build=
7669 for module in ${build_configdirs} ; do
7670 if test -z "${no_recursion}" \
7671 && test -f ${build_subdir}/${module}/Makefile; then
7672 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7673 rm -f ${build_subdir}/${module}/Makefile
7674 fi
7675 extrasub_build="$extrasub_build
7676 /^@if build-$module\$/d
7677 /^@endif build-$module\$/d
7678 /^@if build-$module-$bootstrap_suffix\$/d
7679 /^@endif build-$module-$bootstrap_suffix\$/d"
7680 done
7681 extrasub_host=
7682 for module in ${configdirs} ; do
7683 if test -z "${no_recursion}"; then
7684 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7685 if test -f ${file}; then
7686 echo 1>&2 "*** removing ${file} to force reconfigure"
7687 rm -f ${file}
7688 fi
7689 done
7690 fi
7691 extrasub_host="$extrasub_host
7692 /^@if $module\$/d
7693 /^@endif $module\$/d
7694 /^@if $module-$bootstrap_suffix\$/d
7695 /^@endif $module-$bootstrap_suffix\$/d"
7696 done
7697 extrasub_target=
7698 for module in ${target_configdirs} ; do
7699 if test -z "${no_recursion}" \
7700 && test -f ${target_subdir}/${module}/Makefile; then
7701 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7702 rm -f ${target_subdir}/${module}/Makefile
7703 fi
7704
7705 # We only bootstrap target libraries listed in bootstrap_target_libs.
7706 case $bootstrap_target_libs in
7707 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7708 *) target_bootstrap_suffix=no-bootstrap ;;
7709 esac
7710
7711 extrasub_target="$extrasub_target
7712 /^@if target-$module\$/d
7713 /^@endif target-$module\$/d
7714 /^@if target-$module-$target_bootstrap_suffix\$/d
7715 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7716 done
7717
7718 # Do the final fixup along with target modules.
7719 extrasub_target="$extrasub_target
7720 /^@if /,/^@endif /d"
7721
7722 # Create the serialization dependencies. This uses a temporary file.
7723
7724 # Check whether --enable-serial-configure was given.
7725 if test "${enable_serial_configure+set}" = set; then :
7726 enableval=$enable_serial_configure;
7727 fi
7728
7729
7730 case ${enable_serial_configure} in
7731 yes)
7732 enable_serial_build_configure=yes
7733 enable_serial_host_configure=yes
7734 enable_serial_target_configure=yes
7735 ;;
7736 esac
7737
7738 # These force 'configure's to be done one at a time, to avoid problems
7739 # with contention over a shared config.cache.
7740 rm -f serdep.tmp
7741 echo '# serdep.tmp' > serdep.tmp
7742 olditem=
7743 test "x${enable_serial_build_configure}" = xyes &&
7744 for item in ${build_configdirs} ; do
7745 case ${olditem} in
7746 "") ;;
7747 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7748 esac
7749 olditem=${item}
7750 done
7751 olditem=
7752 test "x${enable_serial_host_configure}" = xyes &&
7753 for item in ${configdirs} ; do
7754 case ${olditem} in
7755 "") ;;
7756 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7757 esac
7758 olditem=${item}
7759 done
7760 olditem=
7761 test "x${enable_serial_target_configure}" = xyes &&
7762 for item in ${target_configdirs} ; do
7763 case ${olditem} in
7764 "") ;;
7765 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7766 esac
7767 olditem=${item}
7768 done
7769 serialization_dependencies=serdep.tmp
7770
7771
7772 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7773 # target, nonopt, and variable assignments. These are the ones we
7774 # might not want to pass down to subconfigures. The exception being
7775 # --cache-file=/dev/null, which is used to turn off the use of cache
7776 # files altogether, and which should be passed on to subconfigures.
7777 # Also strip program-prefix, program-suffix, and program-transform-name,
7778 # so that we can pass down a consistent program-transform-name.
7779 baseargs=
7780 keep_next=no
7781 skip_next=no
7782 eval "set -- $ac_configure_args"
7783 for ac_arg
7784 do
7785 if test X"$skip_next" = X"yes"; then
7786 skip_next=no
7787 continue
7788 fi
7789 if test X"$keep_next" = X"yes"; then
7790 case $ac_arg in
7791 *\'*)
7792 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7793 esac
7794 baseargs="$baseargs '$ac_arg'"
7795 keep_next=no
7796 continue
7797 fi
7798
7799 # Handle separated arguments. Based on the logic generated by
7800 # autoconf 2.59.
7801 case $ac_arg in
7802 *=* | --config-cache | -C | -disable-* | --disable-* \
7803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7805 | -with-* | --with-* | -without-* | --without-* | --x)
7806 separate_arg=no
7807 ;;
7808 -*)
7809 separate_arg=yes
7810 ;;
7811 *)
7812 separate_arg=no
7813 ;;
7814 esac
7815
7816 case "$ac_arg" in
7817 --cache-file=/dev/null | \
7818 -cache-file=/dev/null )
7819 # Handled here to avoid the test to skip args below.
7820 baseargs="$baseargs '$ac_arg'"
7821 # Assert: $separate_arg should always be no.
7822 keep_next=$separate_arg
7823 ;;
7824 --no*)
7825 continue
7826 ;;
7827 --c* | \
7828 --sr* | \
7829 --ho* | \
7830 --bu* | \
7831 --t* | \
7832 --program-* | \
7833 -cache_file* | \
7834 -srcdir* | \
7835 -host* | \
7836 -build* | \
7837 -target* | \
7838 -program-prefix* | \
7839 -program-suffix* | \
7840 -program-transform-name* )
7841 skip_next=$separate_arg
7842 continue
7843 ;;
7844 -*)
7845 # An option. Add it.
7846 case $ac_arg in
7847 *\'*)
7848 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7849 esac
7850 baseargs="$baseargs '$ac_arg'"
7851 keep_next=$separate_arg
7852 ;;
7853 *)
7854 # Either a variable assignment, or a nonopt (triplet). Don't
7855 # pass it down; let the Makefile handle this.
7856 continue
7857 ;;
7858 esac
7859 done
7860 # Remove the initial space we just introduced and, as these will be
7861 # expanded by make, quote '$'.
7862 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7863
7864 # Add in --program-transform-name, after --program-prefix and
7865 # --program-suffix have been applied to it. Autoconf has already
7866 # doubled dollar signs and backslashes in program_transform_name; we want
7867 # the backslashes un-doubled, and then the entire thing wrapped in single
7868 # quotes, because this will be expanded first by make and then by the shell.
7869 # Also, because we want to override the logic in subdir configure scripts to
7870 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7871 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7872 ${program_transform_name}
7873 EOF_SED
7874 gcc_transform_name=`cat conftestsed.out`
7875 rm -f conftestsed.out
7876 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7877 if test "$silent" = yes; then
7878 baseargs="$baseargs --silent"
7879 fi
7880 baseargs="$baseargs --disable-option-checking"
7881
7882 # For the build-side libraries, we just need to pretend we're native,
7883 # and not use the same cache file. Multilibs are neither needed nor
7884 # desired.
7885 build_configargs="--cache-file=../config.cache ${baseargs}"
7886
7887 # For host modules, accept cache file option, or specification as blank.
7888 case "${cache_file}" in
7889 "") # empty
7890 cache_file_option="" ;;
7891 /* | [A-Za-z]:[\\/]* ) # absolute path
7892 cache_file_option="--cache-file=${cache_file}" ;;
7893 *) # relative path
7894 cache_file_option="--cache-file=../${cache_file}" ;;
7895 esac
7896
7897 # Host dirs don't like to share a cache file either, horribly enough.
7898 # This seems to be due to autoconf 2.5x stupidity.
7899 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
7900
7901 target_configargs=${baseargs}
7902
7903 # Passing a --with-cross-host argument lets the target libraries know
7904 # whether they are being built with a cross-compiler or being built
7905 # native. However, it would be better to use other mechanisms to make the
7906 # sorts of decisions they want to make on this basis. Please consider
7907 # this option to be deprecated. FIXME.
7908 if test x${is_cross_compiler} = xyes ; then
7909 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7910 fi
7911
7912 # Default to --enable-multilib.
7913 if test x${enable_multilib} = x ; then
7914 target_configargs="--enable-multilib ${target_configargs}"
7915 fi
7916
7917 # Pass --with-newlib if appropriate. Note that target_configdirs has
7918 # changed from the earlier setting of with_newlib.
7919 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7920 target_configargs="--with-newlib ${target_configargs}"
7921 fi
7922
7923 # Different target subdirs use different values of certain variables
7924 # (notably CXX). Worse, multilibs use *lots* of different values.
7925 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7926 # it doesn't automatically accept command-line overrides of them.
7927 # This means it's not safe for target subdirs to share a cache file,
7928 # which is disgusting, but there you have it. Hopefully this can be
7929 # fixed in future. It's still worthwhile to use a cache file for each
7930 # directory. I think.
7931
7932 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7933 # We need to pass --target, as newer autoconf's requires consistency
7934 # for target_alias and gcc doesn't manage it consistently.
7935 target_configargs="--cache-file=./config.cache ${target_configargs}"
7936
7937 FLAGS_FOR_TARGET=
7938 case " $target_configdirs " in
7939 *" newlib "*)
7940 case " $target_configargs " in
7941 *" --with-newlib "*)
7942 case "$target" in
7943 *-cygwin*)
7944 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'
7945 ;;
7946 esac
7947
7948 # If we're not building GCC, don't discard standard headers.
7949 if test -d ${srcdir}/gcc; then
7950 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7951
7952 if test "${build}" != "${host}"; then
7953 # On Canadian crosses, CC_FOR_TARGET will have already been set
7954 # by `configure', so we won't have an opportunity to add -Bgcc/
7955 # to it. This is right: we don't want to search that directory
7956 # for binaries, but we want the header files in there, so add
7957 # them explicitly.
7958 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
7959
7960 # Someone might think of using the pre-installed headers on
7961 # Canadian crosses, in case the installed compiler is not fully
7962 # compatible with the compiler being built. In this case, it
7963 # would be better to flag an error than risking having
7964 # incompatible object files being constructed. We can't
7965 # guarantee that an error will be flagged, but let's hope the
7966 # compiler will do it, when presented with incompatible header
7967 # files.
7968 fi
7969 fi
7970
7971 case "${target}-${is_cross_compiler}" in
7972 i[3456789]86-*-linux*-no)
7973 # Here host == target, so we don't need to build gcc,
7974 # so we don't want to discard standard headers.
7975 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7976 ;;
7977 *)
7978 # If we're building newlib, use its generic headers last, but search
7979 # for any libc-related directories first (so make it the last -B
7980 # switch).
7981 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7982
7983 # If we're building libgloss, find the startup file, simulator library
7984 # and linker script.
7985 case " $target_configdirs " in
7986 *" libgloss "*)
7987 # Look for startup file, simulator library and maybe linker script.
7988 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7989 # Look for libnosys.a in case the target needs it.
7990 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7991 # Most targets have the linker script in the source directory.
7992 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7993 ;;
7994 esac
7995 ;;
7996 esac
7997 ;;
7998 esac
7999 ;;
8000 esac
8001
8002 case "$target" in
8003 x86_64-*mingw* | *-w64-mingw*)
8004 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8005 # however, use a symlink named 'mingw' in ${prefix} .
8006 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8007 ;;
8008 *-mingw*)
8009 # MinGW can't be handled as Cygwin above since it does not use newlib.
8010 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'
8011 ;;
8012 esac
8013
8014 # Allow the user to override the flags for
8015 # our build compiler if desired.
8016 if test x"${build}" = x"${host}" ; then
8017 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8018 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8019 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8020 fi
8021
8022 # On Canadian crosses, we'll be searching the right directories for
8023 # the previously-installed cross compiler, so don't bother to add
8024 # flags for directories within the install tree of the compiler
8025 # being built; programs in there won't even run.
8026 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8027 # Search for pre-installed headers if nothing else fits.
8028 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
8029 fi
8030
8031 if test "x${use_gnu_ld}" = x &&
8032 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8033 # Arrange for us to find uninstalled linker scripts.
8034 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
8035 fi
8036
8037 # Search for other target-specific linker scripts and such.
8038 case "${target}" in
8039 mep*)
8040 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8041 ;;
8042 esac
8043
8044 # Makefile fragments.
8045 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8046 do
8047 eval fragval=\$$frag
8048 if test $fragval != /dev/null; then
8049 eval $frag=${srcdir}/$fragval
8050 fi
8051 done
8052
8053
8054
8055
8056
8057 # Miscellanea: directories, flags, etc.
8058
8059
8060
8061
8062
8063
8064
8065
8066 # Build module lists & subconfigure args.
8067
8068
8069
8070 # Host module lists & subconfigure args.
8071
8072
8073
8074
8075 # Target module lists & subconfigure args.
8076
8077
8078
8079 # Build tools.
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097 # Generate default definitions for YACC, M4, LEX and other programs that run
8098 # on the build machine. These are used if the Makefile can't locate these
8099 # programs in objdir.
8100 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8101
8102 for ac_prog in 'bison -y' byacc yacc
8103 do
8104 # Extract the first word of "$ac_prog", so it can be a program name with args.
8105 set dummy $ac_prog; ac_word=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if test "${ac_cv_prog_YACC+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 if test -n "$YACC"; then
8112 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8113 else
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8116 do
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121 ac_cv_prog_YACC="$ac_prog"
8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 break 2
8124 fi
8125 done
8126 done
8127 IFS=$as_save_IFS
8128
8129 fi
8130 fi
8131 YACC=$ac_cv_prog_YACC
8132 if test -n "$YACC"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8134 $as_echo "$YACC" >&6; }
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8138 fi
8139
8140
8141 test -n "$YACC" && break
8142 done
8143 test -n "$YACC" || YACC="$MISSING bison -y"
8144
8145 case " $build_configdirs " in
8146 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8147 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
8148 esac
8149
8150 for ac_prog in bison
8151 do
8152 # Extract the first word of "$ac_prog", so it can be a program name with args.
8153 set dummy $ac_prog; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if test "${ac_cv_prog_BISON+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 if test -n "$BISON"; then
8160 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_prog_BISON="$ac_prog"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8172 fi
8173 done
8174 done
8175 IFS=$as_save_IFS
8176
8177 fi
8178 fi
8179 BISON=$ac_cv_prog_BISON
8180 if test -n "$BISON"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8182 $as_echo "$BISON" >&6; }
8183 else
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8186 fi
8187
8188
8189 test -n "$BISON" && break
8190 done
8191 test -n "$BISON" || BISON="$MISSING bison"
8192
8193 case " $build_configdirs " in
8194 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8195 esac
8196
8197 for ac_prog in gm4 gnum4 m4
8198 do
8199 # Extract the first word of "$ac_prog", so it can be a program name with args.
8200 set dummy $ac_prog; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if test "${ac_cv_prog_M4+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 if test -n "$M4"; then
8207 ac_cv_prog_M4="$M4" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8211 do
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_prog_M4="$ac_prog"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8219 fi
8220 done
8221 done
8222 IFS=$as_save_IFS
8223
8224 fi
8225 fi
8226 M4=$ac_cv_prog_M4
8227 if test -n "$M4"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8229 $as_echo "$M4" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235
8236 test -n "$M4" && break
8237 done
8238 test -n "$M4" || M4="$MISSING m4"
8239
8240 case " $build_configdirs " in
8241 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8242 esac
8243
8244 for ac_prog in flex lex
8245 do
8246 # Extract the first word of "$ac_prog", so it can be a program name with args.
8247 set dummy $ac_prog; ac_word=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if test "${ac_cv_prog_LEX+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 if test -n "$LEX"; then
8254 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8255 else
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8258 do
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263 ac_cv_prog_LEX="$ac_prog"
8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8266 fi
8267 done
8268 done
8269 IFS=$as_save_IFS
8270
8271 fi
8272 fi
8273 LEX=$ac_cv_prog_LEX
8274 if test -n "$LEX"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8276 $as_echo "$LEX" >&6; }
8277 else
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8280 fi
8281
8282
8283 test -n "$LEX" && break
8284 done
8285 test -n "$LEX" || LEX="$MISSING flex"
8286
8287 case " $build_configdirs " in
8288 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8289 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8290 esac
8291
8292 for ac_prog in flex
8293 do
8294 # Extract the first word of "$ac_prog", so it can be a program name with args.
8295 set dummy $ac_prog; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_FLEX+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 if test -n "$FLEX"; then
8302 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_FLEX="$ac_prog"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8314 fi
8315 done
8316 done
8317 IFS=$as_save_IFS
8318
8319 fi
8320 fi
8321 FLEX=$ac_cv_prog_FLEX
8322 if test -n "$FLEX"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8324 $as_echo "$FLEX" >&6; }
8325 else
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8328 fi
8329
8330
8331 test -n "$FLEX" && break
8332 done
8333 test -n "$FLEX" || FLEX="$MISSING flex"
8334
8335 case " $build_configdirs " in
8336 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8337 esac
8338
8339 for ac_prog in makeinfo
8340 do
8341 # Extract the first word of "$ac_prog", so it can be a program name with args.
8342 set dummy $ac_prog; ac_word=$2
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 $as_echo_n "checking for $ac_word... " >&6; }
8345 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 if test -n "$MAKEINFO"; then
8349 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8350 else
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8353 do
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8358 ac_cv_prog_MAKEINFO="$ac_prog"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 break 2
8361 fi
8362 done
8363 done
8364 IFS=$as_save_IFS
8365
8366 fi
8367 fi
8368 MAKEINFO=$ac_cv_prog_MAKEINFO
8369 if test -n "$MAKEINFO"; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8371 $as_echo "$MAKEINFO" >&6; }
8372 else
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8375 fi
8376
8377
8378 test -n "$MAKEINFO" && break
8379 done
8380 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8381
8382 case " $build_configdirs " in
8383 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8384 *)
8385
8386 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8387 # higher, else we use the "missing" dummy.
8388 if ${MAKEINFO} --version \
8389 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8390 :
8391 else
8392 MAKEINFO="$MISSING makeinfo"
8393 fi
8394 ;;
8395
8396 esac
8397
8398 # FIXME: expect and dejagnu may become build tools?
8399
8400 for ac_prog in expect
8401 do
8402 # Extract the first word of "$ac_prog", so it can be a program name with args.
8403 set dummy $ac_prog; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 if test -n "$EXPECT"; then
8410 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8411 else
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8414 do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419 ac_cv_prog_EXPECT="$ac_prog"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8422 fi
8423 done
8424 done
8425 IFS=$as_save_IFS
8426
8427 fi
8428 fi
8429 EXPECT=$ac_cv_prog_EXPECT
8430 if test -n "$EXPECT"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8432 $as_echo "$EXPECT" >&6; }
8433 else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8436 fi
8437
8438
8439 test -n "$EXPECT" && break
8440 done
8441 test -n "$EXPECT" || EXPECT="expect"
8442
8443 case " $configdirs " in
8444 *" expect "*)
8445 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8446 ;;
8447 esac
8448
8449 for ac_prog in runtest
8450 do
8451 # Extract the first word of "$ac_prog", so it can be a program name with args.
8452 set dummy $ac_prog; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 if test -n "$RUNTEST"; then
8459 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8460 else
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8463 do
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468 ac_cv_prog_RUNTEST="$ac_prog"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 break 2
8471 fi
8472 done
8473 done
8474 IFS=$as_save_IFS
8475
8476 fi
8477 fi
8478 RUNTEST=$ac_cv_prog_RUNTEST
8479 if test -n "$RUNTEST"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8481 $as_echo "$RUNTEST" >&6; }
8482 else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8485 fi
8486
8487
8488 test -n "$RUNTEST" && break
8489 done
8490 test -n "$RUNTEST" || RUNTEST="runtest"
8491
8492 case " $configdirs " in
8493 *" dejagnu "*)
8494 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8495 ;;
8496 esac
8497
8498
8499 # Host tools.
8500 ncn_tool_prefix=
8501 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8502 ncn_target_tool_prefix=
8503 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8504
8505
8506
8507 if test -n "$AR"; then
8508 ac_cv_prog_AR=$AR
8509 elif test -n "$ac_cv_prog_AR"; then
8510 AR=$ac_cv_prog_AR
8511 fi
8512
8513 if test -n "$ac_cv_prog_AR"; then
8514 for ncn_progname in ar; do
8515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8516 set dummy ${ncn_progname}; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if test "${ac_cv_prog_AR+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 if test -n "$AR"; then
8523 ac_cv_prog_AR="$AR" # Let the user override the test.
8524 else
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in $PATH
8527 do
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8532 ac_cv_prog_AR="${ncn_progname}"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 break 2
8535 fi
8536 done
8537 done
8538 IFS=$as_save_IFS
8539
8540 fi
8541 fi
8542 AR=$ac_cv_prog_AR
8543 if test -n "$AR"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8545 $as_echo "$AR" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8549 fi
8550
8551
8552 done
8553 fi
8554
8555 for ncn_progname in ar; do
8556 if test -n "$ncn_tool_prefix"; then
8557 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8558 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if test "${ac_cv_prog_AR+set}" = set; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 if test -n "$AR"; then
8565 ac_cv_prog_AR="$AR" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8574 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8577 fi
8578 done
8579 done
8580 IFS=$as_save_IFS
8581
8582 fi
8583 fi
8584 AR=$ac_cv_prog_AR
8585 if test -n "$AR"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8587 $as_echo "$AR" >&6; }
8588 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8591 fi
8592
8593
8594 fi
8595 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8597 set dummy ${ncn_progname}; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if test "${ac_cv_prog_AR+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 if test -n "$AR"; then
8604 ac_cv_prog_AR="$AR" # Let the user override the test.
8605 else
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8608 do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8613 ac_cv_prog_AR="${ncn_progname}"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 break 2
8616 fi
8617 done
8618 done
8619 IFS=$as_save_IFS
8620
8621 fi
8622 fi
8623 AR=$ac_cv_prog_AR
8624 if test -n "$AR"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8626 $as_echo "$AR" >&6; }
8627 else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8630 fi
8631
8632
8633 fi
8634 test -n "$ac_cv_prog_AR" && break
8635 done
8636
8637 if test -z "$ac_cv_prog_AR" ; then
8638 set dummy ar
8639 if test $build = $host ; then
8640 AR="$2"
8641 else
8642 AR="${ncn_tool_prefix}$2"
8643 fi
8644 fi
8645
8646
8647
8648 if test -n "$AS"; then
8649 ac_cv_prog_AS=$AS
8650 elif test -n "$ac_cv_prog_AS"; then
8651 AS=$ac_cv_prog_AS
8652 fi
8653
8654 if test -n "$ac_cv_prog_AS"; then
8655 for ncn_progname in as; do
8656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8657 set dummy ${ncn_progname}; ac_word=$2
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8659 $as_echo_n "checking for $ac_word... " >&6; }
8660 if test "${ac_cv_prog_AS+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8662 else
8663 if test -n "$AS"; then
8664 ac_cv_prog_AS="$AS" # Let the user override the test.
8665 else
8666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667 for as_dir in $PATH
8668 do
8669 IFS=$as_save_IFS
8670 test -z "$as_dir" && as_dir=.
8671 for ac_exec_ext in '' $ac_executable_extensions; do
8672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8673 ac_cv_prog_AS="${ncn_progname}"
8674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8675 break 2
8676 fi
8677 done
8678 done
8679 IFS=$as_save_IFS
8680
8681 fi
8682 fi
8683 AS=$ac_cv_prog_AS
8684 if test -n "$AS"; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8686 $as_echo "$AS" >&6; }
8687 else
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689 $as_echo "no" >&6; }
8690 fi
8691
8692
8693 done
8694 fi
8695
8696 for ncn_progname in as; do
8697 if test -n "$ncn_tool_prefix"; then
8698 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8699 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if test "${ac_cv_prog_AS+set}" = set; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 if test -n "$AS"; then
8706 ac_cv_prog_AS="$AS" # Let the user override the test.
8707 else
8708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709 for as_dir in $PATH
8710 do
8711 IFS=$as_save_IFS
8712 test -z "$as_dir" && as_dir=.
8713 for ac_exec_ext in '' $ac_executable_extensions; do
8714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8715 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8717 break 2
8718 fi
8719 done
8720 done
8721 IFS=$as_save_IFS
8722
8723 fi
8724 fi
8725 AS=$ac_cv_prog_AS
8726 if test -n "$AS"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8728 $as_echo "$AS" >&6; }
8729 else
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8732 fi
8733
8734
8735 fi
8736 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8738 set dummy ${ncn_progname}; ac_word=$2
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740 $as_echo_n "checking for $ac_word... " >&6; }
8741 if test "${ac_cv_prog_AS+set}" = set; then :
8742 $as_echo_n "(cached) " >&6
8743 else
8744 if test -n "$AS"; then
8745 ac_cv_prog_AS="$AS" # Let the user override the test.
8746 else
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $PATH
8749 do
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8754 ac_cv_prog_AS="${ncn_progname}"
8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 break 2
8757 fi
8758 done
8759 done
8760 IFS=$as_save_IFS
8761
8762 fi
8763 fi
8764 AS=$ac_cv_prog_AS
8765 if test -n "$AS"; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8767 $as_echo "$AS" >&6; }
8768 else
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8771 fi
8772
8773
8774 fi
8775 test -n "$ac_cv_prog_AS" && break
8776 done
8777
8778 if test -z "$ac_cv_prog_AS" ; then
8779 set dummy as
8780 if test $build = $host ; then
8781 AS="$2"
8782 else
8783 AS="${ncn_tool_prefix}$2"
8784 fi
8785 fi
8786
8787
8788
8789 if test -n "$DLLTOOL"; then
8790 ac_cv_prog_DLLTOOL=$DLLTOOL
8791 elif test -n "$ac_cv_prog_DLLTOOL"; then
8792 DLLTOOL=$ac_cv_prog_DLLTOOL
8793 fi
8794
8795 if test -n "$ac_cv_prog_DLLTOOL"; then
8796 for ncn_progname in dlltool; do
8797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8798 set dummy ${ncn_progname}; ac_word=$2
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800 $as_echo_n "checking for $ac_word... " >&6; }
8801 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8802 $as_echo_n "(cached) " >&6
8803 else
8804 if test -n "$DLLTOOL"; then
8805 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8806 else
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 for as_dir in $PATH
8809 do
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8814 ac_cv_prog_DLLTOOL="${ncn_progname}"
8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 break 2
8817 fi
8818 done
8819 done
8820 IFS=$as_save_IFS
8821
8822 fi
8823 fi
8824 DLLTOOL=$ac_cv_prog_DLLTOOL
8825 if test -n "$DLLTOOL"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8827 $as_echo "$DLLTOOL" >&6; }
8828 else
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8831 fi
8832
8833
8834 done
8835 fi
8836
8837 for ncn_progname in dlltool; do
8838 if test -n "$ncn_tool_prefix"; then
8839 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8840 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842 $as_echo_n "checking for $ac_word... " >&6; }
8843 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 if test -n "$DLLTOOL"; then
8847 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8848 else
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 for as_dir in $PATH
8851 do
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8856 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 break 2
8859 fi
8860 done
8861 done
8862 IFS=$as_save_IFS
8863
8864 fi
8865 fi
8866 DLLTOOL=$ac_cv_prog_DLLTOOL
8867 if test -n "$DLLTOOL"; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8869 $as_echo "$DLLTOOL" >&6; }
8870 else
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 $as_echo "no" >&6; }
8873 fi
8874
8875
8876 fi
8877 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8879 set dummy ${ncn_progname}; ac_word=$2
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 $as_echo_n "checking for $ac_word... " >&6; }
8882 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 if test -n "$DLLTOOL"; then
8886 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8887 else
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 for as_dir in $PATH
8890 do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8895 ac_cv_prog_DLLTOOL="${ncn_progname}"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897 break 2
8898 fi
8899 done
8900 done
8901 IFS=$as_save_IFS
8902
8903 fi
8904 fi
8905 DLLTOOL=$ac_cv_prog_DLLTOOL
8906 if test -n "$DLLTOOL"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8908 $as_echo "$DLLTOOL" >&6; }
8909 else
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8912 fi
8913
8914
8915 fi
8916 test -n "$ac_cv_prog_DLLTOOL" && break
8917 done
8918
8919 if test -z "$ac_cv_prog_DLLTOOL" ; then
8920 set dummy dlltool
8921 if test $build = $host ; then
8922 DLLTOOL="$2"
8923 else
8924 DLLTOOL="${ncn_tool_prefix}$2"
8925 fi
8926 fi
8927
8928
8929
8930 if test -n "$LD"; then
8931 ac_cv_prog_LD=$LD
8932 elif test -n "$ac_cv_prog_LD"; then
8933 LD=$ac_cv_prog_LD
8934 fi
8935
8936 if test -n "$ac_cv_prog_LD"; then
8937 for ncn_progname in ld; do
8938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8939 set dummy ${ncn_progname}; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if test "${ac_cv_prog_LD+set}" = set; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 if test -n "$LD"; then
8946 ac_cv_prog_LD="$LD" # Let the user override the test.
8947 else
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8950 do
8951 IFS=$as_save_IFS
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8955 ac_cv_prog_LD="${ncn_progname}"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 break 2
8958 fi
8959 done
8960 done
8961 IFS=$as_save_IFS
8962
8963 fi
8964 fi
8965 LD=$ac_cv_prog_LD
8966 if test -n "$LD"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8968 $as_echo "$LD" >&6; }
8969 else
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8972 fi
8973
8974
8975 done
8976 fi
8977
8978 for ncn_progname in ld; do
8979 if test -n "$ncn_tool_prefix"; then
8980 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8981 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8983 $as_echo_n "checking for $ac_word... " >&6; }
8984 if test "${ac_cv_prog_LD+set}" = set; then :
8985 $as_echo_n "(cached) " >&6
8986 else
8987 if test -n "$LD"; then
8988 ac_cv_prog_LD="$LD" # Let the user override the test.
8989 else
8990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991 for as_dir in $PATH
8992 do
8993 IFS=$as_save_IFS
8994 test -z "$as_dir" && as_dir=.
8995 for ac_exec_ext in '' $ac_executable_extensions; do
8996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8997 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8999 break 2
9000 fi
9001 done
9002 done
9003 IFS=$as_save_IFS
9004
9005 fi
9006 fi
9007 LD=$ac_cv_prog_LD
9008 if test -n "$LD"; then
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9010 $as_echo "$LD" >&6; }
9011 else
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013 $as_echo "no" >&6; }
9014 fi
9015
9016
9017 fi
9018 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020 set dummy ${ncn_progname}; ac_word=$2
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022 $as_echo_n "checking for $ac_word... " >&6; }
9023 if test "${ac_cv_prog_LD+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 if test -n "$LD"; then
9027 ac_cv_prog_LD="$LD" # Let the user override the test.
9028 else
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 for as_dir in $PATH
9031 do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9036 ac_cv_prog_LD="${ncn_progname}"
9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9039 fi
9040 done
9041 done
9042 IFS=$as_save_IFS
9043
9044 fi
9045 fi
9046 LD=$ac_cv_prog_LD
9047 if test -n "$LD"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9049 $as_echo "$LD" >&6; }
9050 else
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9053 fi
9054
9055
9056 fi
9057 test -n "$ac_cv_prog_LD" && break
9058 done
9059
9060 if test -z "$ac_cv_prog_LD" ; then
9061 set dummy ld
9062 if test $build = $host ; then
9063 LD="$2"
9064 else
9065 LD="${ncn_tool_prefix}$2"
9066 fi
9067 fi
9068
9069
9070
9071 if test -n "$LIPO"; then
9072 ac_cv_prog_LIPO=$LIPO
9073 elif test -n "$ac_cv_prog_LIPO"; then
9074 LIPO=$ac_cv_prog_LIPO
9075 fi
9076
9077 if test -n "$ac_cv_prog_LIPO"; then
9078 for ncn_progname in lipo; do
9079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9080 set dummy ${ncn_progname}; ac_word=$2
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9082 $as_echo_n "checking for $ac_word... " >&6; }
9083 if test "${ac_cv_prog_LIPO+set}" = set; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 if test -n "$LIPO"; then
9087 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9088 else
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090 for as_dir in $PATH
9091 do
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9096 ac_cv_prog_LIPO="${ncn_progname}"
9097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 break 2
9099 fi
9100 done
9101 done
9102 IFS=$as_save_IFS
9103
9104 fi
9105 fi
9106 LIPO=$ac_cv_prog_LIPO
9107 if test -n "$LIPO"; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9109 $as_echo "$LIPO" >&6; }
9110 else
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9113 fi
9114
9115
9116 done
9117 fi
9118
9119 for ncn_progname in lipo; do
9120 if test -n "$ncn_tool_prefix"; then
9121 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9122 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 $as_echo_n "checking for $ac_word... " >&6; }
9125 if test "${ac_cv_prog_LIPO+set}" = set; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 if test -n "$LIPO"; then
9129 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9130 else
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132 for as_dir in $PATH
9133 do
9134 IFS=$as_save_IFS
9135 test -z "$as_dir" && as_dir=.
9136 for ac_exec_ext in '' $ac_executable_extensions; do
9137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9138 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
9139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 break 2
9141 fi
9142 done
9143 done
9144 IFS=$as_save_IFS
9145
9146 fi
9147 fi
9148 LIPO=$ac_cv_prog_LIPO
9149 if test -n "$LIPO"; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9151 $as_echo "$LIPO" >&6; }
9152 else
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9155 fi
9156
9157
9158 fi
9159 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9161 set dummy ${ncn_progname}; ac_word=$2
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163 $as_echo_n "checking for $ac_word... " >&6; }
9164 if test "${ac_cv_prog_LIPO+set}" = set; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 if test -n "$LIPO"; then
9168 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9169 else
9170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 for as_dir in $PATH
9172 do
9173 IFS=$as_save_IFS
9174 test -z "$as_dir" && as_dir=.
9175 for ac_exec_ext in '' $ac_executable_extensions; do
9176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9177 ac_cv_prog_LIPO="${ncn_progname}"
9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9179 break 2
9180 fi
9181 done
9182 done
9183 IFS=$as_save_IFS
9184
9185 fi
9186 fi
9187 LIPO=$ac_cv_prog_LIPO
9188 if test -n "$LIPO"; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9190 $as_echo "$LIPO" >&6; }
9191 else
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 $as_echo "no" >&6; }
9194 fi
9195
9196
9197 fi
9198 test -n "$ac_cv_prog_LIPO" && break
9199 done
9200
9201 if test -z "$ac_cv_prog_LIPO" ; then
9202 set dummy lipo
9203 if test $build = $host ; then
9204 LIPO="$2"
9205 else
9206 LIPO="${ncn_tool_prefix}$2"
9207 fi
9208 fi
9209
9210
9211
9212 if test -n "$NM"; then
9213 ac_cv_prog_NM=$NM
9214 elif test -n "$ac_cv_prog_NM"; then
9215 NM=$ac_cv_prog_NM
9216 fi
9217
9218 if test -n "$ac_cv_prog_NM"; then
9219 for ncn_progname in nm; do
9220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9221 set dummy ${ncn_progname}; ac_word=$2
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9223 $as_echo_n "checking for $ac_word... " >&6; }
9224 if test "${ac_cv_prog_NM+set}" = set; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 if test -n "$NM"; then
9228 ac_cv_prog_NM="$NM" # Let the user override the test.
9229 else
9230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 for as_dir in $PATH
9232 do
9233 IFS=$as_save_IFS
9234 test -z "$as_dir" && as_dir=.
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9237 ac_cv_prog_NM="${ncn_progname}"
9238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9239 break 2
9240 fi
9241 done
9242 done
9243 IFS=$as_save_IFS
9244
9245 fi
9246 fi
9247 NM=$ac_cv_prog_NM
9248 if test -n "$NM"; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9250 $as_echo "$NM" >&6; }
9251 else
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 $as_echo "no" >&6; }
9254 fi
9255
9256
9257 done
9258 fi
9259
9260 for ncn_progname in nm; do
9261 if test -n "$ncn_tool_prefix"; then
9262 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9263 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9265 $as_echo_n "checking for $ac_word... " >&6; }
9266 if test "${ac_cv_prog_NM+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 if test -n "$NM"; then
9270 ac_cv_prog_NM="$NM" # Let the user override the test.
9271 else
9272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9273 for as_dir in $PATH
9274 do
9275 IFS=$as_save_IFS
9276 test -z "$as_dir" && as_dir=.
9277 for ac_exec_ext in '' $ac_executable_extensions; do
9278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9279 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9281 break 2
9282 fi
9283 done
9284 done
9285 IFS=$as_save_IFS
9286
9287 fi
9288 fi
9289 NM=$ac_cv_prog_NM
9290 if test -n "$NM"; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9292 $as_echo "$NM" >&6; }
9293 else
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9296 fi
9297
9298
9299 fi
9300 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302 set dummy ${ncn_progname}; ac_word=$2
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304 $as_echo_n "checking for $ac_word... " >&6; }
9305 if test "${ac_cv_prog_NM+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 if test -n "$NM"; then
9309 ac_cv_prog_NM="$NM" # Let the user override the test.
9310 else
9311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312 for as_dir in $PATH
9313 do
9314 IFS=$as_save_IFS
9315 test -z "$as_dir" && as_dir=.
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9318 ac_cv_prog_NM="${ncn_progname}"
9319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9320 break 2
9321 fi
9322 done
9323 done
9324 IFS=$as_save_IFS
9325
9326 fi
9327 fi
9328 NM=$ac_cv_prog_NM
9329 if test -n "$NM"; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9331 $as_echo "$NM" >&6; }
9332 else
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334 $as_echo "no" >&6; }
9335 fi
9336
9337
9338 fi
9339 test -n "$ac_cv_prog_NM" && break
9340 done
9341
9342 if test -z "$ac_cv_prog_NM" ; then
9343 set dummy nm
9344 if test $build = $host ; then
9345 NM="$2"
9346 else
9347 NM="${ncn_tool_prefix}$2"
9348 fi
9349 fi
9350
9351
9352
9353 if test -n "$RANLIB"; then
9354 ac_cv_prog_RANLIB=$RANLIB
9355 elif test -n "$ac_cv_prog_RANLIB"; then
9356 RANLIB=$ac_cv_prog_RANLIB
9357 fi
9358
9359 if test -n "$ac_cv_prog_RANLIB"; then
9360 for ncn_progname in ranlib; do
9361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9362 set dummy ${ncn_progname}; ac_word=$2
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364 $as_echo_n "checking for $ac_word... " >&6; }
9365 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9366 $as_echo_n "(cached) " >&6
9367 else
9368 if test -n "$RANLIB"; then
9369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9370 else
9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 for as_dir in $PATH
9373 do
9374 IFS=$as_save_IFS
9375 test -z "$as_dir" && as_dir=.
9376 for ac_exec_ext in '' $ac_executable_extensions; do
9377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9378 ac_cv_prog_RANLIB="${ncn_progname}"
9379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9380 break 2
9381 fi
9382 done
9383 done
9384 IFS=$as_save_IFS
9385
9386 fi
9387 fi
9388 RANLIB=$ac_cv_prog_RANLIB
9389 if test -n "$RANLIB"; then
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9391 $as_echo "$RANLIB" >&6; }
9392 else
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394 $as_echo "no" >&6; }
9395 fi
9396
9397
9398 done
9399 fi
9400
9401 for ncn_progname in ranlib; do
9402 if test -n "$ncn_tool_prefix"; then
9403 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9404 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 if test -n "$RANLIB"; then
9411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9412 else
9413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414 for as_dir in $PATH
9415 do
9416 IFS=$as_save_IFS
9417 test -z "$as_dir" && as_dir=.
9418 for ac_exec_ext in '' $ac_executable_extensions; do
9419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9420 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9422 break 2
9423 fi
9424 done
9425 done
9426 IFS=$as_save_IFS
9427
9428 fi
9429 fi
9430 RANLIB=$ac_cv_prog_RANLIB
9431 if test -n "$RANLIB"; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9433 $as_echo "$RANLIB" >&6; }
9434 else
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436 $as_echo "no" >&6; }
9437 fi
9438
9439
9440 fi
9441 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9443 set dummy ${ncn_progname}; ac_word=$2
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445 $as_echo_n "checking for $ac_word... " >&6; }
9446 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 if test -n "$RANLIB"; then
9450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9451 else
9452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453 for as_dir in $PATH
9454 do
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9459 ac_cv_prog_RANLIB="${ncn_progname}"
9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 break 2
9462 fi
9463 done
9464 done
9465 IFS=$as_save_IFS
9466
9467 fi
9468 fi
9469 RANLIB=$ac_cv_prog_RANLIB
9470 if test -n "$RANLIB"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9472 $as_echo "$RANLIB" >&6; }
9473 else
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9476 fi
9477
9478
9479 fi
9480 test -n "$ac_cv_prog_RANLIB" && break
9481 done
9482
9483 if test -z "$ac_cv_prog_RANLIB" ; then
9484 RANLIB="true"
9485 fi
9486
9487
9488
9489 if test -n "$STRIP"; then
9490 ac_cv_prog_STRIP=$STRIP
9491 elif test -n "$ac_cv_prog_STRIP"; then
9492 STRIP=$ac_cv_prog_STRIP
9493 fi
9494
9495 if test -n "$ac_cv_prog_STRIP"; then
9496 for ncn_progname in strip; do
9497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9498 set dummy ${ncn_progname}; ac_word=$2
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500 $as_echo_n "checking for $ac_word... " >&6; }
9501 if test "${ac_cv_prog_STRIP+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 if test -n "$STRIP"; then
9505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9506 else
9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508 for as_dir in $PATH
9509 do
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9514 ac_cv_prog_STRIP="${ncn_progname}"
9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 break 2
9517 fi
9518 done
9519 done
9520 IFS=$as_save_IFS
9521
9522 fi
9523 fi
9524 STRIP=$ac_cv_prog_STRIP
9525 if test -n "$STRIP"; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9527 $as_echo "$STRIP" >&6; }
9528 else
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530 $as_echo "no" >&6; }
9531 fi
9532
9533
9534 done
9535 fi
9536
9537 for ncn_progname in strip; do
9538 if test -n "$ncn_tool_prefix"; then
9539 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9540 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542 $as_echo_n "checking for $ac_word... " >&6; }
9543 if test "${ac_cv_prog_STRIP+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 if test -n "$STRIP"; then
9547 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9548 else
9549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550 for as_dir in $PATH
9551 do
9552 IFS=$as_save_IFS
9553 test -z "$as_dir" && as_dir=.
9554 for ac_exec_ext in '' $ac_executable_extensions; do
9555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9556 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 break 2
9559 fi
9560 done
9561 done
9562 IFS=$as_save_IFS
9563
9564 fi
9565 fi
9566 STRIP=$ac_cv_prog_STRIP
9567 if test -n "$STRIP"; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9569 $as_echo "$STRIP" >&6; }
9570 else
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572 $as_echo "no" >&6; }
9573 fi
9574
9575
9576 fi
9577 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579 set dummy ${ncn_progname}; ac_word=$2
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581 $as_echo_n "checking for $ac_word... " >&6; }
9582 if test "${ac_cv_prog_STRIP+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 if test -n "$STRIP"; then
9586 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9587 else
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $PATH
9590 do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_prog_STRIP="${ncn_progname}"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9598 fi
9599 done
9600 done
9601 IFS=$as_save_IFS
9602
9603 fi
9604 fi
9605 STRIP=$ac_cv_prog_STRIP
9606 if test -n "$STRIP"; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9608 $as_echo "$STRIP" >&6; }
9609 else
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9612 fi
9613
9614
9615 fi
9616 test -n "$ac_cv_prog_STRIP" && break
9617 done
9618
9619 if test -z "$ac_cv_prog_STRIP" ; then
9620 STRIP="true"
9621 fi
9622
9623
9624
9625 if test -n "$WINDRES"; then
9626 ac_cv_prog_WINDRES=$WINDRES
9627 elif test -n "$ac_cv_prog_WINDRES"; then
9628 WINDRES=$ac_cv_prog_WINDRES
9629 fi
9630
9631 if test -n "$ac_cv_prog_WINDRES"; then
9632 for ncn_progname in windres; do
9633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9634 set dummy ${ncn_progname}; ac_word=$2
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636 $as_echo_n "checking for $ac_word... " >&6; }
9637 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 if test -n "$WINDRES"; then
9641 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9642 else
9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9645 do
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9650 ac_cv_prog_WINDRES="${ncn_progname}"
9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9653 fi
9654 done
9655 done
9656 IFS=$as_save_IFS
9657
9658 fi
9659 fi
9660 WINDRES=$ac_cv_prog_WINDRES
9661 if test -n "$WINDRES"; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9663 $as_echo "$WINDRES" >&6; }
9664 else
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666 $as_echo "no" >&6; }
9667 fi
9668
9669
9670 done
9671 fi
9672
9673 for ncn_progname in windres; do
9674 if test -n "$ncn_tool_prefix"; then
9675 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9676 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 if test -n "$WINDRES"; then
9683 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9684 else
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686 for as_dir in $PATH
9687 do
9688 IFS=$as_save_IFS
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9692 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 break 2
9695 fi
9696 done
9697 done
9698 IFS=$as_save_IFS
9699
9700 fi
9701 fi
9702 WINDRES=$ac_cv_prog_WINDRES
9703 if test -n "$WINDRES"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9705 $as_echo "$WINDRES" >&6; }
9706 else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9709 fi
9710
9711
9712 fi
9713 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9715 set dummy ${ncn_progname}; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 if test -n "$WINDRES"; then
9722 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9723 else
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 for as_dir in $PATH
9726 do
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9731 ac_cv_prog_WINDRES="${ncn_progname}"
9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733 break 2
9734 fi
9735 done
9736 done
9737 IFS=$as_save_IFS
9738
9739 fi
9740 fi
9741 WINDRES=$ac_cv_prog_WINDRES
9742 if test -n "$WINDRES"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9744 $as_echo "$WINDRES" >&6; }
9745 else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9748 fi
9749
9750
9751 fi
9752 test -n "$ac_cv_prog_WINDRES" && break
9753 done
9754
9755 if test -z "$ac_cv_prog_WINDRES" ; then
9756 set dummy windres
9757 if test $build = $host ; then
9758 WINDRES="$2"
9759 else
9760 WINDRES="${ncn_tool_prefix}$2"
9761 fi
9762 fi
9763
9764
9765
9766 if test -n "$WINDMC"; then
9767 ac_cv_prog_WINDMC=$WINDMC
9768 elif test -n "$ac_cv_prog_WINDMC"; then
9769 WINDMC=$ac_cv_prog_WINDMC
9770 fi
9771
9772 if test -n "$ac_cv_prog_WINDMC"; then
9773 for ncn_progname in windmc; do
9774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9775 set dummy ${ncn_progname}; ac_word=$2
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9777 $as_echo_n "checking for $ac_word... " >&6; }
9778 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 if test -n "$WINDMC"; then
9782 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9783 else
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 for as_dir in $PATH
9786 do
9787 IFS=$as_save_IFS
9788 test -z "$as_dir" && as_dir=.
9789 for ac_exec_ext in '' $ac_executable_extensions; do
9790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9791 ac_cv_prog_WINDMC="${ncn_progname}"
9792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9793 break 2
9794 fi
9795 done
9796 done
9797 IFS=$as_save_IFS
9798
9799 fi
9800 fi
9801 WINDMC=$ac_cv_prog_WINDMC
9802 if test -n "$WINDMC"; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9804 $as_echo "$WINDMC" >&6; }
9805 else
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9807 $as_echo "no" >&6; }
9808 fi
9809
9810
9811 done
9812 fi
9813
9814 for ncn_progname in windmc; do
9815 if test -n "$ncn_tool_prefix"; then
9816 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9817 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9819 $as_echo_n "checking for $ac_word... " >&6; }
9820 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 if test -n "$WINDMC"; then
9824 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9825 else
9826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 for as_dir in $PATH
9828 do
9829 IFS=$as_save_IFS
9830 test -z "$as_dir" && as_dir=.
9831 for ac_exec_ext in '' $ac_executable_extensions; do
9832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9833 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 break 2
9836 fi
9837 done
9838 done
9839 IFS=$as_save_IFS
9840
9841 fi
9842 fi
9843 WINDMC=$ac_cv_prog_WINDMC
9844 if test -n "$WINDMC"; then
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9846 $as_echo "$WINDMC" >&6; }
9847 else
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9850 fi
9851
9852
9853 fi
9854 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9856 set dummy ${ncn_progname}; ac_word=$2
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858 $as_echo_n "checking for $ac_word... " >&6; }
9859 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9860 $as_echo_n "(cached) " >&6
9861 else
9862 if test -n "$WINDMC"; then
9863 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9864 else
9865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866 for as_dir in $PATH
9867 do
9868 IFS=$as_save_IFS
9869 test -z "$as_dir" && as_dir=.
9870 for ac_exec_ext in '' $ac_executable_extensions; do
9871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9872 ac_cv_prog_WINDMC="${ncn_progname}"
9873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9874 break 2
9875 fi
9876 done
9877 done
9878 IFS=$as_save_IFS
9879
9880 fi
9881 fi
9882 WINDMC=$ac_cv_prog_WINDMC
9883 if test -n "$WINDMC"; then
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9885 $as_echo "$WINDMC" >&6; }
9886 else
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888 $as_echo "no" >&6; }
9889 fi
9890
9891
9892 fi
9893 test -n "$ac_cv_prog_WINDMC" && break
9894 done
9895
9896 if test -z "$ac_cv_prog_WINDMC" ; then
9897 set dummy windmc
9898 if test $build = $host ; then
9899 WINDMC="$2"
9900 else
9901 WINDMC="${ncn_tool_prefix}$2"
9902 fi
9903 fi
9904
9905
9906
9907 if test -n "$OBJCOPY"; then
9908 ac_cv_prog_OBJCOPY=$OBJCOPY
9909 elif test -n "$ac_cv_prog_OBJCOPY"; then
9910 OBJCOPY=$ac_cv_prog_OBJCOPY
9911 fi
9912
9913 if test -n "$ac_cv_prog_OBJCOPY"; then
9914 for ncn_progname in objcopy; do
9915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9916 set dummy ${ncn_progname}; ac_word=$2
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 $as_echo_n "checking for $ac_word... " >&6; }
9919 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 if test -n "$OBJCOPY"; then
9923 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9924 else
9925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926 for as_dir in $PATH
9927 do
9928 IFS=$as_save_IFS
9929 test -z "$as_dir" && as_dir=.
9930 for ac_exec_ext in '' $ac_executable_extensions; do
9931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9932 ac_cv_prog_OBJCOPY="${ncn_progname}"
9933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9934 break 2
9935 fi
9936 done
9937 done
9938 IFS=$as_save_IFS
9939
9940 fi
9941 fi
9942 OBJCOPY=$ac_cv_prog_OBJCOPY
9943 if test -n "$OBJCOPY"; then
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9945 $as_echo "$OBJCOPY" >&6; }
9946 else
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948 $as_echo "no" >&6; }
9949 fi
9950
9951
9952 done
9953 fi
9954
9955 for ncn_progname in objcopy; do
9956 if test -n "$ncn_tool_prefix"; then
9957 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9958 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9960 $as_echo_n "checking for $ac_word... " >&6; }
9961 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9962 $as_echo_n "(cached) " >&6
9963 else
9964 if test -n "$OBJCOPY"; then
9965 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9966 else
9967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968 for as_dir in $PATH
9969 do
9970 IFS=$as_save_IFS
9971 test -z "$as_dir" && as_dir=.
9972 for ac_exec_ext in '' $ac_executable_extensions; do
9973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9974 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976 break 2
9977 fi
9978 done
9979 done
9980 IFS=$as_save_IFS
9981
9982 fi
9983 fi
9984 OBJCOPY=$ac_cv_prog_OBJCOPY
9985 if test -n "$OBJCOPY"; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9987 $as_echo "$OBJCOPY" >&6; }
9988 else
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990 $as_echo "no" >&6; }
9991 fi
9992
9993
9994 fi
9995 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9997 set dummy ${ncn_progname}; ac_word=$2
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999 $as_echo_n "checking for $ac_word... " >&6; }
10000 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
10001 $as_echo_n "(cached) " >&6
10002 else
10003 if test -n "$OBJCOPY"; then
10004 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10005 else
10006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in $PATH
10008 do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10013 ac_cv_prog_OBJCOPY="${ncn_progname}"
10014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 break 2
10016 fi
10017 done
10018 done
10019 IFS=$as_save_IFS
10020
10021 fi
10022 fi
10023 OBJCOPY=$ac_cv_prog_OBJCOPY
10024 if test -n "$OBJCOPY"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10026 $as_echo "$OBJCOPY" >&6; }
10027 else
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029 $as_echo "no" >&6; }
10030 fi
10031
10032
10033 fi
10034 test -n "$ac_cv_prog_OBJCOPY" && break
10035 done
10036
10037 if test -z "$ac_cv_prog_OBJCOPY" ; then
10038 set dummy objcopy
10039 if test $build = $host ; then
10040 OBJCOPY="$2"
10041 else
10042 OBJCOPY="${ncn_tool_prefix}$2"
10043 fi
10044 fi
10045
10046
10047
10048 if test -n "$OBJDUMP"; then
10049 ac_cv_prog_OBJDUMP=$OBJDUMP
10050 elif test -n "$ac_cv_prog_OBJDUMP"; then
10051 OBJDUMP=$ac_cv_prog_OBJDUMP
10052 fi
10053
10054 if test -n "$ac_cv_prog_OBJDUMP"; then
10055 for ncn_progname in objdump; do
10056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10057 set dummy ${ncn_progname}; ac_word=$2
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10059 $as_echo_n "checking for $ac_word... " >&6; }
10060 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 if test -n "$OBJDUMP"; then
10064 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10065 else
10066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10067 for as_dir in $PATH
10068 do
10069 IFS=$as_save_IFS
10070 test -z "$as_dir" && as_dir=.
10071 for ac_exec_ext in '' $ac_executable_extensions; do
10072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10073 ac_cv_prog_OBJDUMP="${ncn_progname}"
10074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10075 break 2
10076 fi
10077 done
10078 done
10079 IFS=$as_save_IFS
10080
10081 fi
10082 fi
10083 OBJDUMP=$ac_cv_prog_OBJDUMP
10084 if test -n "$OBJDUMP"; then
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10086 $as_echo "$OBJDUMP" >&6; }
10087 else
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089 $as_echo "no" >&6; }
10090 fi
10091
10092
10093 done
10094 fi
10095
10096 for ncn_progname in objdump; do
10097 if test -n "$ncn_tool_prefix"; then
10098 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10099 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10101 $as_echo_n "checking for $ac_word... " >&6; }
10102 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 if test -n "$OBJDUMP"; then
10106 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10107 else
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10110 do
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10115 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
10116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 break 2
10118 fi
10119 done
10120 done
10121 IFS=$as_save_IFS
10122
10123 fi
10124 fi
10125 OBJDUMP=$ac_cv_prog_OBJDUMP
10126 if test -n "$OBJDUMP"; then
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10128 $as_echo "$OBJDUMP" >&6; }
10129 else
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10132 fi
10133
10134
10135 fi
10136 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10138 set dummy ${ncn_progname}; ac_word=$2
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140 $as_echo_n "checking for $ac_word... " >&6; }
10141 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10144 if test -n "$OBJDUMP"; then
10145 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10146 else
10147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148 for as_dir in $PATH
10149 do
10150 IFS=$as_save_IFS
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
10153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10154 ac_cv_prog_OBJDUMP="${ncn_progname}"
10155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 break 2
10157 fi
10158 done
10159 done
10160 IFS=$as_save_IFS
10161
10162 fi
10163 fi
10164 OBJDUMP=$ac_cv_prog_OBJDUMP
10165 if test -n "$OBJDUMP"; then
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10167 $as_echo "$OBJDUMP" >&6; }
10168 else
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170 $as_echo "no" >&6; }
10171 fi
10172
10173
10174 fi
10175 test -n "$ac_cv_prog_OBJDUMP" && break
10176 done
10177
10178 if test -z "$ac_cv_prog_OBJDUMP" ; then
10179 set dummy objdump
10180 if test $build = $host ; then
10181 OBJDUMP="$2"
10182 else
10183 OBJDUMP="${ncn_tool_prefix}$2"
10184 fi
10185 fi
10186
10187
10188
10189
10190
10191
10192 # Target tools.
10193
10194 # Check whether --with-build-time-tools was given.
10195 if test "${with_build_time_tools+set}" = set; then :
10196 withval=$with_build_time_tools; case x"$withval" in
10197 x/*) ;;
10198 *)
10199 with_build_time_tools=
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10201 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10202 ;;
10203 esac
10204 else
10205 with_build_time_tools=
10206 fi
10207
10208
10209
10210
10211 if test -n "$CC_FOR_TARGET"; then
10212 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10213 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10214 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10215 fi
10216
10217 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10218 for ncn_progname in cc gcc; do
10219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10220 set dummy ${ncn_progname}; ac_word=$2
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10222 $as_echo_n "checking for $ac_word... " >&6; }
10223 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10224 $as_echo_n "(cached) " >&6
10225 else
10226 if test -n "$CC_FOR_TARGET"; then
10227 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10228 else
10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230 for as_dir in $PATH
10231 do
10232 IFS=$as_save_IFS
10233 test -z "$as_dir" && as_dir=.
10234 for ac_exec_ext in '' $ac_executable_extensions; do
10235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10236 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10238 break 2
10239 fi
10240 done
10241 done
10242 IFS=$as_save_IFS
10243
10244 fi
10245 fi
10246 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10247 if test -n "$CC_FOR_TARGET"; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10249 $as_echo "$CC_FOR_TARGET" >&6; }
10250 else
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10252 $as_echo "no" >&6; }
10253 fi
10254
10255
10256 done
10257 fi
10258
10259 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10260 for ncn_progname in cc gcc; do
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10262 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10263 if test -x $with_build_time_tools/${ncn_progname}; then
10264 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10266 $as_echo "yes" >&6; }
10267 break
10268 else
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10271 fi
10272 done
10273 fi
10274
10275 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10276 for ncn_progname in cc gcc; do
10277 if test -n "$ncn_target_tool_prefix"; then
10278 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10279 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10281 $as_echo_n "checking for $ac_word... " >&6; }
10282 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10283 $as_echo_n "(cached) " >&6
10284 else
10285 if test -n "$CC_FOR_TARGET"; then
10286 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10287 else
10288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10290 do
10291 IFS=$as_save_IFS
10292 test -z "$as_dir" && as_dir=.
10293 for ac_exec_ext in '' $ac_executable_extensions; do
10294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10295 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10297 break 2
10298 fi
10299 done
10300 done
10301 IFS=$as_save_IFS
10302
10303 fi
10304 fi
10305 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10306 if test -n "$CC_FOR_TARGET"; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10308 $as_echo "$CC_FOR_TARGET" >&6; }
10309 else
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311 $as_echo "no" >&6; }
10312 fi
10313
10314
10315 fi
10316 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10317 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10318 set dummy ${ncn_progname}; ac_word=$2
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10320 $as_echo_n "checking for $ac_word... " >&6; }
10321 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10322 $as_echo_n "(cached) " >&6
10323 else
10324 if test -n "$CC_FOR_TARGET"; then
10325 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10326 else
10327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328 for as_dir in $PATH
10329 do
10330 IFS=$as_save_IFS
10331 test -z "$as_dir" && as_dir=.
10332 for ac_exec_ext in '' $ac_executable_extensions; do
10333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10334 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10336 break 2
10337 fi
10338 done
10339 done
10340 IFS=$as_save_IFS
10341
10342 fi
10343 fi
10344 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10345 if test -n "$CC_FOR_TARGET"; then
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10347 $as_echo "$CC_FOR_TARGET" >&6; }
10348 else
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10351 fi
10352
10353
10354 fi
10355 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10356 done
10357 fi
10358
10359 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10360 set dummy cc gcc
10361 if test $build = $target ; then
10362 CC_FOR_TARGET="$2"
10363 else
10364 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10365 fi
10366 else
10367 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10368 fi
10369
10370
10371
10372 if test -n "$CXX_FOR_TARGET"; then
10373 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10374 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10375 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10376 fi
10377
10378 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10379 for ncn_progname in c++ g++ cxx gxx; do
10380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10381 set dummy ${ncn_progname}; ac_word=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387 if test -n "$CXX_FOR_TARGET"; then
10388 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10389 else
10390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391 for as_dir in $PATH
10392 do
10393 IFS=$as_save_IFS
10394 test -z "$as_dir" && as_dir=.
10395 for ac_exec_ext in '' $ac_executable_extensions; do
10396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10397 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10399 break 2
10400 fi
10401 done
10402 done
10403 IFS=$as_save_IFS
10404
10405 fi
10406 fi
10407 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10408 if test -n "$CXX_FOR_TARGET"; then
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10410 $as_echo "$CXX_FOR_TARGET" >&6; }
10411 else
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413 $as_echo "no" >&6; }
10414 fi
10415
10416
10417 done
10418 fi
10419
10420 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10421 for ncn_progname in c++ g++ cxx gxx; do
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10423 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10424 if test -x $with_build_time_tools/${ncn_progname}; then
10425 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10427 $as_echo "yes" >&6; }
10428 break
10429 else
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; }
10432 fi
10433 done
10434 fi
10435
10436 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10437 for ncn_progname in c++ g++ cxx gxx; do
10438 if test -n "$ncn_target_tool_prefix"; then
10439 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10440 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442 $as_echo_n "checking for $ac_word... " >&6; }
10443 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 if test -n "$CXX_FOR_TARGET"; then
10447 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10448 else
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10451 do
10452 IFS=$as_save_IFS
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10456 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 break 2
10459 fi
10460 done
10461 done
10462 IFS=$as_save_IFS
10463
10464 fi
10465 fi
10466 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10467 if test -n "$CXX_FOR_TARGET"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10469 $as_echo "$CXX_FOR_TARGET" >&6; }
10470 else
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10473 fi
10474
10475
10476 fi
10477 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10479 set dummy ${ncn_progname}; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10484 else
10485 if test -n "$CXX_FOR_TARGET"; then
10486 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10487 else
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $PATH
10490 do
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
10493 for ac_exec_ext in '' $ac_executable_extensions; do
10494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10495 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497 break 2
10498 fi
10499 done
10500 done
10501 IFS=$as_save_IFS
10502
10503 fi
10504 fi
10505 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10506 if test -n "$CXX_FOR_TARGET"; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10508 $as_echo "$CXX_FOR_TARGET" >&6; }
10509 else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 $as_echo "no" >&6; }
10512 fi
10513
10514
10515 fi
10516 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10517 done
10518 fi
10519
10520 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10521 set dummy c++ g++ cxx gxx
10522 if test $build = $target ; then
10523 CXX_FOR_TARGET="$2"
10524 else
10525 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10526 fi
10527 else
10528 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10529 fi
10530
10531
10532
10533 if test -n "$GCC_FOR_TARGET"; then
10534 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10535 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10536 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10537 fi
10538
10539 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10540 for ncn_progname in gcc; do
10541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10542 set dummy ${ncn_progname}; ac_word=$2
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544 $as_echo_n "checking for $ac_word... " >&6; }
10545 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 if test -n "$GCC_FOR_TARGET"; then
10549 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10550 else
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10553 do
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10558 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 break 2
10561 fi
10562 done
10563 done
10564 IFS=$as_save_IFS
10565
10566 fi
10567 fi
10568 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10569 if test -n "$GCC_FOR_TARGET"; then
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10571 $as_echo "$GCC_FOR_TARGET" >&6; }
10572 else
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 $as_echo "no" >&6; }
10575 fi
10576
10577
10578 done
10579 fi
10580
10581 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10582 for ncn_progname in gcc; do
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10584 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10585 if test -x $with_build_time_tools/${ncn_progname}; then
10586 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10588 $as_echo "yes" >&6; }
10589 break
10590 else
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10593 fi
10594 done
10595 fi
10596
10597 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10598 for ncn_progname in gcc; do
10599 if test -n "$ncn_target_tool_prefix"; then
10600 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10601 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603 $as_echo_n "checking for $ac_word... " >&6; }
10604 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 if test -n "$GCC_FOR_TARGET"; then
10608 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10609 else
10610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10612 do
10613 IFS=$as_save_IFS
10614 test -z "$as_dir" && as_dir=.
10615 for ac_exec_ext in '' $ac_executable_extensions; do
10616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10617 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10619 break 2
10620 fi
10621 done
10622 done
10623 IFS=$as_save_IFS
10624
10625 fi
10626 fi
10627 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10628 if test -n "$GCC_FOR_TARGET"; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10630 $as_echo "$GCC_FOR_TARGET" >&6; }
10631 else
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633 $as_echo "no" >&6; }
10634 fi
10635
10636
10637 fi
10638 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10640 set dummy ${ncn_progname}; ac_word=$2
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642 $as_echo_n "checking for $ac_word... " >&6; }
10643 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10644 $as_echo_n "(cached) " >&6
10645 else
10646 if test -n "$GCC_FOR_TARGET"; then
10647 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10648 else
10649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650 for as_dir in $PATH
10651 do
10652 IFS=$as_save_IFS
10653 test -z "$as_dir" && as_dir=.
10654 for ac_exec_ext in '' $ac_executable_extensions; do
10655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10656 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658 break 2
10659 fi
10660 done
10661 done
10662 IFS=$as_save_IFS
10663
10664 fi
10665 fi
10666 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10667 if test -n "$GCC_FOR_TARGET"; then
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10669 $as_echo "$GCC_FOR_TARGET" >&6; }
10670 else
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672 $as_echo "no" >&6; }
10673 fi
10674
10675
10676 fi
10677 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10678 done
10679 fi
10680
10681 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10682 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10683 else
10684 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10685 fi
10686
10687
10688
10689 if test -n "$GCJ_FOR_TARGET"; then
10690 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10691 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10692 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10693 fi
10694
10695 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10696 for ncn_progname in gcj; do
10697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10698 set dummy ${ncn_progname}; ac_word=$2
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700 $as_echo_n "checking for $ac_word... " >&6; }
10701 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10702 $as_echo_n "(cached) " >&6
10703 else
10704 if test -n "$GCJ_FOR_TARGET"; then
10705 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10706 else
10707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708 for as_dir in $PATH
10709 do
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10714 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10717 fi
10718 done
10719 done
10720 IFS=$as_save_IFS
10721
10722 fi
10723 fi
10724 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10725 if test -n "$GCJ_FOR_TARGET"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10727 $as_echo "$GCJ_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 done
10735 fi
10736
10737 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10738 for ncn_progname in gcj; do
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10740 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10741 if test -x $with_build_time_tools/${ncn_progname}; then
10742 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10744 $as_echo "yes" >&6; }
10745 break
10746 else
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748 $as_echo "no" >&6; }
10749 fi
10750 done
10751 fi
10752
10753 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10754 for ncn_progname in gcj; do
10755 if test -n "$ncn_target_tool_prefix"; then
10756 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10757 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10759 $as_echo_n "checking for $ac_word... " >&6; }
10760 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10763 if test -n "$GCJ_FOR_TARGET"; then
10764 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10765 else
10766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10767 for as_dir in $PATH
10768 do
10769 IFS=$as_save_IFS
10770 test -z "$as_dir" && as_dir=.
10771 for ac_exec_ext in '' $ac_executable_extensions; do
10772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10773 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10775 break 2
10776 fi
10777 done
10778 done
10779 IFS=$as_save_IFS
10780
10781 fi
10782 fi
10783 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10784 if test -n "$GCJ_FOR_TARGET"; then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10786 $as_echo "$GCJ_FOR_TARGET" >&6; }
10787 else
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 $as_echo "no" >&6; }
10790 fi
10791
10792
10793 fi
10794 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10796 set dummy ${ncn_progname}; ac_word=$2
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10798 $as_echo_n "checking for $ac_word... " >&6; }
10799 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10800 $as_echo_n "(cached) " >&6
10801 else
10802 if test -n "$GCJ_FOR_TARGET"; then
10803 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10804 else
10805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806 for as_dir in $PATH
10807 do
10808 IFS=$as_save_IFS
10809 test -z "$as_dir" && as_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10812 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10814 break 2
10815 fi
10816 done
10817 done
10818 IFS=$as_save_IFS
10819
10820 fi
10821 fi
10822 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10823 if test -n "$GCJ_FOR_TARGET"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10825 $as_echo "$GCJ_FOR_TARGET" >&6; }
10826 else
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10829 fi
10830
10831
10832 fi
10833 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10834 done
10835 fi
10836
10837 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10838 set dummy gcj
10839 if test $build = $target ; then
10840 GCJ_FOR_TARGET="$2"
10841 else
10842 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10843 fi
10844 else
10845 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10846 fi
10847
10848
10849
10850 if test -n "$GFORTRAN_FOR_TARGET"; then
10851 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10852 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10853 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10854 fi
10855
10856 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10857 for ncn_progname in gfortran; do
10858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10859 set dummy ${ncn_progname}; ac_word=$2
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10861 $as_echo_n "checking for $ac_word... " >&6; }
10862 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 if test -n "$GFORTRAN_FOR_TARGET"; then
10866 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10867 else
10868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869 for as_dir in $PATH
10870 do
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10875 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10877 break 2
10878 fi
10879 done
10880 done
10881 IFS=$as_save_IFS
10882
10883 fi
10884 fi
10885 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10886 if test -n "$GFORTRAN_FOR_TARGET"; then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10888 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10889 else
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; }
10892 fi
10893
10894
10895 done
10896 fi
10897
10898 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10899 for ncn_progname in gfortran; do
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10901 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10902 if test -x $with_build_time_tools/${ncn_progname}; then
10903 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10905 $as_echo "yes" >&6; }
10906 break
10907 else
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909 $as_echo "no" >&6; }
10910 fi
10911 done
10912 fi
10913
10914 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10915 for ncn_progname in gfortran; do
10916 if test -n "$ncn_target_tool_prefix"; then
10917 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10918 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920 $as_echo_n "checking for $ac_word... " >&6; }
10921 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 if test -n "$GFORTRAN_FOR_TARGET"; then
10925 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10926 else
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in $PATH
10929 do
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10934 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10937 fi
10938 done
10939 done
10940 IFS=$as_save_IFS
10941
10942 fi
10943 fi
10944 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10945 if test -n "$GFORTRAN_FOR_TARGET"; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10947 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10948 else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; }
10951 fi
10952
10953
10954 fi
10955 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10957 set dummy ${ncn_progname}; ac_word=$2
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959 $as_echo_n "checking for $ac_word... " >&6; }
10960 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 if test -n "$GFORTRAN_FOR_TARGET"; then
10964 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10965 else
10966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967 for as_dir in $PATH
10968 do
10969 IFS=$as_save_IFS
10970 test -z "$as_dir" && as_dir=.
10971 for ac_exec_ext in '' $ac_executable_extensions; do
10972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10973 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10975 break 2
10976 fi
10977 done
10978 done
10979 IFS=$as_save_IFS
10980
10981 fi
10982 fi
10983 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10984 if test -n "$GFORTRAN_FOR_TARGET"; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10986 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10987 else
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989 $as_echo "no" >&6; }
10990 fi
10991
10992
10993 fi
10994 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10995 done
10996 fi
10997
10998 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10999 set dummy gfortran
11000 if test $build = $target ; then
11001 GFORTRAN_FOR_TARGET="$2"
11002 else
11003 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11004 fi
11005 else
11006 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
11007 fi
11008
11009
11010
11011 cat > conftest.c << \EOF
11012 #ifdef __GNUC__
11013 gcc_yay;
11014 #endif
11015 EOF
11016 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11017 have_gcc_for_target=yes
11018 else
11019 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11020 have_gcc_for_target=no
11021 fi
11022 rm conftest.c
11023
11024
11025
11026
11027 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11028 if test -n "$with_build_time_tools"; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11030 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11031 if test -x $with_build_time_tools/ar; then
11032 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11033 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11035 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11036 else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11039 fi
11040 elif test $build != $host && test $have_gcc_for_target = yes; then
11041 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11042 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11043 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11044 fi
11045 fi
11046 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11047 # Extract the first word of "ar", so it can be a program name with args.
11048 set dummy ar; ac_word=$2
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11050 $as_echo_n "checking for $ac_word... " >&6; }
11051 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11052 $as_echo_n "(cached) " >&6
11053 else
11054 case $AR_FOR_TARGET in
11055 [\\/]* | ?:[\\/]*)
11056 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11057 ;;
11058 *)
11059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060 for as_dir in $gcc_cv_tool_dirs
11061 do
11062 IFS=$as_save_IFS
11063 test -z "$as_dir" && as_dir=.
11064 for ac_exec_ext in '' $ac_executable_extensions; do
11065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11066 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11068 break 2
11069 fi
11070 done
11071 done
11072 IFS=$as_save_IFS
11073
11074 ;;
11075 esac
11076 fi
11077 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11078 if test -n "$AR_FOR_TARGET"; then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11080 $as_echo "$AR_FOR_TARGET" >&6; }
11081 else
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083 $as_echo "no" >&6; }
11084 fi
11085
11086
11087 fi
11088 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11089
11090
11091 if test -n "$AR_FOR_TARGET"; then
11092 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11093 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11094 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11095 fi
11096
11097 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11098 for ncn_progname in ar; do
11099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11100 set dummy ${ncn_progname}; ac_word=$2
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11102 $as_echo_n "checking for $ac_word... " >&6; }
11103 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 if test -n "$AR_FOR_TARGET"; then
11107 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11108 else
11109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11110 for as_dir in $PATH
11111 do
11112 IFS=$as_save_IFS
11113 test -z "$as_dir" && as_dir=.
11114 for ac_exec_ext in '' $ac_executable_extensions; do
11115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11116 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11118 break 2
11119 fi
11120 done
11121 done
11122 IFS=$as_save_IFS
11123
11124 fi
11125 fi
11126 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11127 if test -n "$AR_FOR_TARGET"; then
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11129 $as_echo "$AR_FOR_TARGET" >&6; }
11130 else
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132 $as_echo "no" >&6; }
11133 fi
11134
11135
11136 done
11137 fi
11138
11139 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11140 for ncn_progname in ar; do
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11142 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11143 if test -x $with_build_time_tools/${ncn_progname}; then
11144 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11146 $as_echo "yes" >&6; }
11147 break
11148 else
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150 $as_echo "no" >&6; }
11151 fi
11152 done
11153 fi
11154
11155 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11156 for ncn_progname in ar; do
11157 if test -n "$ncn_target_tool_prefix"; then
11158 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11159 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11161 $as_echo_n "checking for $ac_word... " >&6; }
11162 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11163 $as_echo_n "(cached) " >&6
11164 else
11165 if test -n "$AR_FOR_TARGET"; then
11166 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11167 else
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11170 do
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11175 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11177 break 2
11178 fi
11179 done
11180 done
11181 IFS=$as_save_IFS
11182
11183 fi
11184 fi
11185 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11186 if test -n "$AR_FOR_TARGET"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11188 $as_echo "$AR_FOR_TARGET" >&6; }
11189 else
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11191 $as_echo "no" >&6; }
11192 fi
11193
11194
11195 fi
11196 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11198 set dummy ${ncn_progname}; ac_word=$2
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200 $as_echo_n "checking for $ac_word... " >&6; }
11201 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 if test -n "$AR_FOR_TARGET"; then
11205 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11206 else
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11209 do
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11214 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216 break 2
11217 fi
11218 done
11219 done
11220 IFS=$as_save_IFS
11221
11222 fi
11223 fi
11224 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11225 if test -n "$AR_FOR_TARGET"; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11227 $as_echo "$AR_FOR_TARGET" >&6; }
11228 else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11231 fi
11232
11233
11234 fi
11235 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11236 done
11237 fi
11238
11239 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11240 set dummy ar
11241 if test $build = $target ; then
11242 AR_FOR_TARGET="$2"
11243 else
11244 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11245 fi
11246 else
11247 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11248 fi
11249
11250 else
11251 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11252 fi
11253
11254
11255
11256
11257 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11258 if test -n "$with_build_time_tools"; then
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11260 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11261 if test -x $with_build_time_tools/as; then
11262 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11263 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11265 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11266 else
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; }
11269 fi
11270 elif test $build != $host && test $have_gcc_for_target = yes; then
11271 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11272 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11273 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11274 fi
11275 fi
11276 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11277 # Extract the first word of "as", so it can be a program name with args.
11278 set dummy as; ac_word=$2
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280 $as_echo_n "checking for $ac_word... " >&6; }
11281 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 case $AS_FOR_TARGET in
11285 [\\/]* | ?:[\\/]*)
11286 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11287 ;;
11288 *)
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $gcc_cv_tool_dirs
11291 do
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11298 break 2
11299 fi
11300 done
11301 done
11302 IFS=$as_save_IFS
11303
11304 ;;
11305 esac
11306 fi
11307 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11308 if test -n "$AS_FOR_TARGET"; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11310 $as_echo "$AS_FOR_TARGET" >&6; }
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11314 fi
11315
11316
11317 fi
11318 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11319
11320
11321 if test -n "$AS_FOR_TARGET"; then
11322 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11323 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11324 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11325 fi
11326
11327 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11328 for ncn_progname in as; do
11329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11330 set dummy ${ncn_progname}; ac_word=$2
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332 $as_echo_n "checking for $ac_word... " >&6; }
11333 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11334 $as_echo_n "(cached) " >&6
11335 else
11336 if test -n "$AS_FOR_TARGET"; then
11337 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11338 else
11339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11341 do
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 for ac_exec_ext in '' $ac_executable_extensions; do
11345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11346 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11348 break 2
11349 fi
11350 done
11351 done
11352 IFS=$as_save_IFS
11353
11354 fi
11355 fi
11356 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11357 if test -n "$AS_FOR_TARGET"; then
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11359 $as_echo "$AS_FOR_TARGET" >&6; }
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11363 fi
11364
11365
11366 done
11367 fi
11368
11369 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11370 for ncn_progname in as; do
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11372 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11373 if test -x $with_build_time_tools/${ncn_progname}; then
11374 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11376 $as_echo "yes" >&6; }
11377 break
11378 else
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11380 $as_echo "no" >&6; }
11381 fi
11382 done
11383 fi
11384
11385 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11386 for ncn_progname in as; do
11387 if test -n "$ncn_target_tool_prefix"; then
11388 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11389 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11391 $as_echo_n "checking for $ac_word... " >&6; }
11392 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 if test -n "$AS_FOR_TARGET"; then
11396 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11397 else
11398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399 for as_dir in $PATH
11400 do
11401 IFS=$as_save_IFS
11402 test -z "$as_dir" && as_dir=.
11403 for ac_exec_ext in '' $ac_executable_extensions; do
11404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11405 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11407 break 2
11408 fi
11409 done
11410 done
11411 IFS=$as_save_IFS
11412
11413 fi
11414 fi
11415 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11416 if test -n "$AS_FOR_TARGET"; then
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11418 $as_echo "$AS_FOR_TARGET" >&6; }
11419 else
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421 $as_echo "no" >&6; }
11422 fi
11423
11424
11425 fi
11426 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11428 set dummy ${ncn_progname}; ac_word=$2
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11430 $as_echo_n "checking for $ac_word... " >&6; }
11431 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11432 $as_echo_n "(cached) " >&6
11433 else
11434 if test -n "$AS_FOR_TARGET"; then
11435 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11436 else
11437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438 for as_dir in $PATH
11439 do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11444 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 break 2
11447 fi
11448 done
11449 done
11450 IFS=$as_save_IFS
11451
11452 fi
11453 fi
11454 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11455 if test -n "$AS_FOR_TARGET"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11457 $as_echo "$AS_FOR_TARGET" >&6; }
11458 else
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 $as_echo "no" >&6; }
11461 fi
11462
11463
11464 fi
11465 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11466 done
11467 fi
11468
11469 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11470 set dummy as
11471 if test $build = $target ; then
11472 AS_FOR_TARGET="$2"
11473 else
11474 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11475 fi
11476 else
11477 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11478 fi
11479
11480 else
11481 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11482 fi
11483
11484
11485
11486
11487 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11488 if test -n "$with_build_time_tools"; then
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11490 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11491 if test -x $with_build_time_tools/dlltool; then
11492 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11493 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11495 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11496 else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11499 fi
11500 elif test $build != $host && test $have_gcc_for_target = yes; then
11501 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11502 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11503 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11504 fi
11505 fi
11506 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11507 # Extract the first word of "dlltool", so it can be a program name with args.
11508 set dummy dlltool; ac_word=$2
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510 $as_echo_n "checking for $ac_word... " >&6; }
11511 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11512 $as_echo_n "(cached) " >&6
11513 else
11514 case $DLLTOOL_FOR_TARGET in
11515 [\\/]* | ?:[\\/]*)
11516 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11517 ;;
11518 *)
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $gcc_cv_tool_dirs
11521 do
11522 IFS=$as_save_IFS
11523 test -z "$as_dir" && as_dir=.
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11526 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11528 break 2
11529 fi
11530 done
11531 done
11532 IFS=$as_save_IFS
11533
11534 ;;
11535 esac
11536 fi
11537 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11538 if test -n "$DLLTOOL_FOR_TARGET"; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11540 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11541 else
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; }
11544 fi
11545
11546
11547 fi
11548 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11549
11550
11551 if test -n "$DLLTOOL_FOR_TARGET"; then
11552 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11553 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11554 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11555 fi
11556
11557 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11558 for ncn_progname in dlltool; do
11559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11560 set dummy ${ncn_progname}; ac_word=$2
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562 $as_echo_n "checking for $ac_word... " >&6; }
11563 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11564 $as_echo_n "(cached) " >&6
11565 else
11566 if test -n "$DLLTOOL_FOR_TARGET"; then
11567 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11568 else
11569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570 for as_dir in $PATH
11571 do
11572 IFS=$as_save_IFS
11573 test -z "$as_dir" && as_dir=.
11574 for ac_exec_ext in '' $ac_executable_extensions; do
11575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11576 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11578 break 2
11579 fi
11580 done
11581 done
11582 IFS=$as_save_IFS
11583
11584 fi
11585 fi
11586 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11587 if test -n "$DLLTOOL_FOR_TARGET"; then
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11589 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11590 else
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 $as_echo "no" >&6; }
11593 fi
11594
11595
11596 done
11597 fi
11598
11599 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11600 for ncn_progname in dlltool; do
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11602 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11603 if test -x $with_build_time_tools/${ncn_progname}; then
11604 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11606 $as_echo "yes" >&6; }
11607 break
11608 else
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11611 fi
11612 done
11613 fi
11614
11615 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11616 for ncn_progname in dlltool; do
11617 if test -n "$ncn_target_tool_prefix"; then
11618 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11619 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11621 $as_echo_n "checking for $ac_word... " >&6; }
11622 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 if test -n "$DLLTOOL_FOR_TARGET"; then
11626 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11627 else
11628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11629 for as_dir in $PATH
11630 do
11631 IFS=$as_save_IFS
11632 test -z "$as_dir" && as_dir=.
11633 for ac_exec_ext in '' $ac_executable_extensions; do
11634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11635 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11637 break 2
11638 fi
11639 done
11640 done
11641 IFS=$as_save_IFS
11642
11643 fi
11644 fi
11645 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11646 if test -n "$DLLTOOL_FOR_TARGET"; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11648 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11649 else
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651 $as_echo "no" >&6; }
11652 fi
11653
11654
11655 fi
11656 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11658 set dummy ${ncn_progname}; ac_word=$2
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11660 $as_echo_n "checking for $ac_word... " >&6; }
11661 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11662 $as_echo_n "(cached) " >&6
11663 else
11664 if test -n "$DLLTOOL_FOR_TARGET"; then
11665 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11666 else
11667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668 for as_dir in $PATH
11669 do
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
11672 for ac_exec_ext in '' $ac_executable_extensions; do
11673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11674 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11676 break 2
11677 fi
11678 done
11679 done
11680 IFS=$as_save_IFS
11681
11682 fi
11683 fi
11684 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11685 if test -n "$DLLTOOL_FOR_TARGET"; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11687 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11688 else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11691 fi
11692
11693
11694 fi
11695 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11696 done
11697 fi
11698
11699 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11700 set dummy dlltool
11701 if test $build = $target ; then
11702 DLLTOOL_FOR_TARGET="$2"
11703 else
11704 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11705 fi
11706 else
11707 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11708 fi
11709
11710 else
11711 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11712 fi
11713
11714
11715
11716
11717 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11718 if test -n "$with_build_time_tools"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11720 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11721 if test -x $with_build_time_tools/ld; then
11722 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11723 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11725 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11726 else
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728 $as_echo "no" >&6; }
11729 fi
11730 elif test $build != $host && test $have_gcc_for_target = yes; then
11731 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11732 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11733 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11734 fi
11735 fi
11736 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11737 # Extract the first word of "ld", so it can be a program name with args.
11738 set dummy ld; ac_word=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 $as_echo_n "checking for $ac_word... " >&6; }
11741 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 case $LD_FOR_TARGET in
11745 [\\/]* | ?:[\\/]*)
11746 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11747 ;;
11748 *)
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $gcc_cv_tool_dirs
11751 do
11752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 break 2
11759 fi
11760 done
11761 done
11762 IFS=$as_save_IFS
11763
11764 ;;
11765 esac
11766 fi
11767 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11768 if test -n "$LD_FOR_TARGET"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11770 $as_echo "$LD_FOR_TARGET" >&6; }
11771 else
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11774 fi
11775
11776
11777 fi
11778 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11779
11780
11781 if test -n "$LD_FOR_TARGET"; then
11782 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11783 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11784 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11785 fi
11786
11787 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11788 for ncn_progname in ld; do
11789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11790 set dummy ${ncn_progname}; ac_word=$2
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11792 $as_echo_n "checking for $ac_word... " >&6; }
11793 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11794 $as_echo_n "(cached) " >&6
11795 else
11796 if test -n "$LD_FOR_TARGET"; then
11797 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11798 else
11799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800 for as_dir in $PATH
11801 do
11802 IFS=$as_save_IFS
11803 test -z "$as_dir" && as_dir=.
11804 for ac_exec_ext in '' $ac_executable_extensions; do
11805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11806 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11808 break 2
11809 fi
11810 done
11811 done
11812 IFS=$as_save_IFS
11813
11814 fi
11815 fi
11816 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11817 if test -n "$LD_FOR_TARGET"; then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11819 $as_echo "$LD_FOR_TARGET" >&6; }
11820 else
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11823 fi
11824
11825
11826 done
11827 fi
11828
11829 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11830 for ncn_progname in ld; do
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11832 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11833 if test -x $with_build_time_tools/${ncn_progname}; then
11834 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11836 $as_echo "yes" >&6; }
11837 break
11838 else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11841 fi
11842 done
11843 fi
11844
11845 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11846 for ncn_progname in ld; do
11847 if test -n "$ncn_target_tool_prefix"; then
11848 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11849 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 if test -n "$LD_FOR_TARGET"; then
11856 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11857 else
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11860 do
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867 break 2
11868 fi
11869 done
11870 done
11871 IFS=$as_save_IFS
11872
11873 fi
11874 fi
11875 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11876 if test -n "$LD_FOR_TARGET"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11878 $as_echo "$LD_FOR_TARGET" >&6; }
11879 else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11882 fi
11883
11884
11885 fi
11886 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11888 set dummy ${ncn_progname}; ac_word=$2
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11890 $as_echo_n "checking for $ac_word... " >&6; }
11891 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 if test -n "$LD_FOR_TARGET"; then
11895 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11896 else
11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898 for as_dir in $PATH
11899 do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11904 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11906 break 2
11907 fi
11908 done
11909 done
11910 IFS=$as_save_IFS
11911
11912 fi
11913 fi
11914 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11915 if test -n "$LD_FOR_TARGET"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11917 $as_echo "$LD_FOR_TARGET" >&6; }
11918 else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920 $as_echo "no" >&6; }
11921 fi
11922
11923
11924 fi
11925 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11926 done
11927 fi
11928
11929 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11930 set dummy ld
11931 if test $build = $target ; then
11932 LD_FOR_TARGET="$2"
11933 else
11934 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11935 fi
11936 else
11937 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11938 fi
11939
11940 else
11941 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11942 fi
11943
11944
11945
11946
11947 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11948 if test -n "$with_build_time_tools"; then
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11950 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11951 if test -x $with_build_time_tools/lipo; then
11952 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11953 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11955 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11956 else
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11959 fi
11960 elif test $build != $host && test $have_gcc_for_target = yes; then
11961 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11962 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11963 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11964 fi
11965 fi
11966 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11967 # Extract the first word of "lipo", so it can be a program name with args.
11968 set dummy lipo; ac_word=$2
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11970 $as_echo_n "checking for $ac_word... " >&6; }
11971 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11972 $as_echo_n "(cached) " >&6
11973 else
11974 case $LIPO_FOR_TARGET in
11975 [\\/]* | ?:[\\/]*)
11976 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11977 ;;
11978 *)
11979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980 for as_dir in $gcc_cv_tool_dirs
11981 do
11982 IFS=$as_save_IFS
11983 test -z "$as_dir" && as_dir=.
11984 for ac_exec_ext in '' $ac_executable_extensions; do
11985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11986 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11988 break 2
11989 fi
11990 done
11991 done
11992 IFS=$as_save_IFS
11993
11994 ;;
11995 esac
11996 fi
11997 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11998 if test -n "$LIPO_FOR_TARGET"; then
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12000 $as_echo "$LIPO_FOR_TARGET" >&6; }
12001 else
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003 $as_echo "no" >&6; }
12004 fi
12005
12006
12007 fi
12008 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12009
12010
12011 if test -n "$LIPO_FOR_TARGET"; then
12012 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12013 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12014 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12015 fi
12016
12017 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12018 for ncn_progname in lipo; do
12019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12020 set dummy ${ncn_progname}; ac_word=$2
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022 $as_echo_n "checking for $ac_word... " >&6; }
12023 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 if test -n "$LIPO_FOR_TARGET"; then
12027 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12028 else
12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030 for as_dir in $PATH
12031 do
12032 IFS=$as_save_IFS
12033 test -z "$as_dir" && as_dir=.
12034 for ac_exec_ext in '' $ac_executable_extensions; do
12035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12036 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12038 break 2
12039 fi
12040 done
12041 done
12042 IFS=$as_save_IFS
12043
12044 fi
12045 fi
12046 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12047 if test -n "$LIPO_FOR_TARGET"; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12049 $as_echo "$LIPO_FOR_TARGET" >&6; }
12050 else
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12053 fi
12054
12055
12056 done
12057 fi
12058
12059 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12060 for ncn_progname in lipo; do
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12062 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12063 if test -x $with_build_time_tools/${ncn_progname}; then
12064 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12066 $as_echo "yes" >&6; }
12067 break
12068 else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070 $as_echo "no" >&6; }
12071 fi
12072 done
12073 fi
12074
12075 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12076 for ncn_progname in lipo; do
12077 if test -n "$ncn_target_tool_prefix"; then
12078 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12079 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081 $as_echo_n "checking for $ac_word... " >&6; }
12082 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
12084 else
12085 if test -n "$LIPO_FOR_TARGET"; then
12086 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12087 else
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12090 do
12091 IFS=$as_save_IFS
12092 test -z "$as_dir" && as_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12095 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12097 break 2
12098 fi
12099 done
12100 done
12101 IFS=$as_save_IFS
12102
12103 fi
12104 fi
12105 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12106 if test -n "$LIPO_FOR_TARGET"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12108 $as_echo "$LIPO_FOR_TARGET" >&6; }
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111 $as_echo "no" >&6; }
12112 fi
12113
12114
12115 fi
12116 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12118 set dummy ${ncn_progname}; ac_word=$2
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120 $as_echo_n "checking for $ac_word... " >&6; }
12121 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 if test -n "$LIPO_FOR_TARGET"; then
12125 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12126 else
12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128 for as_dir in $PATH
12129 do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12134 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 break 2
12137 fi
12138 done
12139 done
12140 IFS=$as_save_IFS
12141
12142 fi
12143 fi
12144 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12145 if test -n "$LIPO_FOR_TARGET"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12147 $as_echo "$LIPO_FOR_TARGET" >&6; }
12148 else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151 fi
12152
12153
12154 fi
12155 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12156 done
12157 fi
12158
12159 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12160 set dummy lipo
12161 if test $build = $target ; then
12162 LIPO_FOR_TARGET="$2"
12163 else
12164 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12165 fi
12166 else
12167 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12168 fi
12169
12170 else
12171 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12172 fi
12173
12174
12175
12176
12177 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12178 if test -n "$with_build_time_tools"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12180 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12181 if test -x $with_build_time_tools/nm; then
12182 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12183 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12185 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12189 fi
12190 elif test $build != $host && test $have_gcc_for_target = yes; then
12191 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12192 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12193 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12194 fi
12195 fi
12196 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12197 # Extract the first word of "nm", so it can be a program name with args.
12198 set dummy nm; ac_word=$2
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12200 $as_echo_n "checking for $ac_word... " >&6; }
12201 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12202 $as_echo_n "(cached) " >&6
12203 else
12204 case $NM_FOR_TARGET in
12205 [\\/]* | ?:[\\/]*)
12206 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12207 ;;
12208 *)
12209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in $gcc_cv_tool_dirs
12211 do
12212 IFS=$as_save_IFS
12213 test -z "$as_dir" && as_dir=.
12214 for ac_exec_ext in '' $ac_executable_extensions; do
12215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12216 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12218 break 2
12219 fi
12220 done
12221 done
12222 IFS=$as_save_IFS
12223
12224 ;;
12225 esac
12226 fi
12227 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12228 if test -n "$NM_FOR_TARGET"; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12230 $as_echo "$NM_FOR_TARGET" >&6; }
12231 else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12234 fi
12235
12236
12237 fi
12238 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12239
12240
12241 if test -n "$NM_FOR_TARGET"; then
12242 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12243 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12244 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12245 fi
12246
12247 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12248 for ncn_progname in nm; do
12249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12250 set dummy ${ncn_progname}; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 if test -n "$NM_FOR_TARGET"; then
12257 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12258 else
12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12261 do
12262 IFS=$as_save_IFS
12263 test -z "$as_dir" && as_dir=.
12264 for ac_exec_ext in '' $ac_executable_extensions; do
12265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12266 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12268 break 2
12269 fi
12270 done
12271 done
12272 IFS=$as_save_IFS
12273
12274 fi
12275 fi
12276 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12277 if test -n "$NM_FOR_TARGET"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12279 $as_echo "$NM_FOR_TARGET" >&6; }
12280 else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12283 fi
12284
12285
12286 done
12287 fi
12288
12289 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12290 for ncn_progname in nm; do
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12292 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12293 if test -x $with_build_time_tools/${ncn_progname}; then
12294 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12296 $as_echo "yes" >&6; }
12297 break
12298 else
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12301 fi
12302 done
12303 fi
12304
12305 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12306 for ncn_progname in nm; do
12307 if test -n "$ncn_target_tool_prefix"; then
12308 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12309 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311 $as_echo_n "checking for $ac_word... " >&6; }
12312 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12313 $as_echo_n "(cached) " >&6
12314 else
12315 if test -n "$NM_FOR_TARGET"; then
12316 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12317 else
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12320 do
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12325 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12327 break 2
12328 fi
12329 done
12330 done
12331 IFS=$as_save_IFS
12332
12333 fi
12334 fi
12335 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12336 if test -n "$NM_FOR_TARGET"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12338 $as_echo "$NM_FOR_TARGET" >&6; }
12339 else
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12342 fi
12343
12344
12345 fi
12346 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12348 set dummy ${ncn_progname}; ac_word=$2
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350 $as_echo_n "checking for $ac_word... " >&6; }
12351 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354 if test -n "$NM_FOR_TARGET"; then
12355 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12356 else
12357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358 for as_dir in $PATH
12359 do
12360 IFS=$as_save_IFS
12361 test -z "$as_dir" && as_dir=.
12362 for ac_exec_ext in '' $ac_executable_extensions; do
12363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12364 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12366 break 2
12367 fi
12368 done
12369 done
12370 IFS=$as_save_IFS
12371
12372 fi
12373 fi
12374 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12375 if test -n "$NM_FOR_TARGET"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12377 $as_echo "$NM_FOR_TARGET" >&6; }
12378 else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; }
12381 fi
12382
12383
12384 fi
12385 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12386 done
12387 fi
12388
12389 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12390 set dummy nm
12391 if test $build = $target ; then
12392 NM_FOR_TARGET="$2"
12393 else
12394 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12395 fi
12396 else
12397 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12398 fi
12399
12400 else
12401 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12402 fi
12403
12404
12405
12406
12407 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12408 if test -n "$with_build_time_tools"; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12410 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12411 if test -x $with_build_time_tools/objdump; then
12412 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12413 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12415 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12416 else
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 $as_echo "no" >&6; }
12419 fi
12420 elif test $build != $host && test $have_gcc_for_target = yes; then
12421 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12422 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12423 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12424 fi
12425 fi
12426 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12427 # Extract the first word of "objdump", so it can be a program name with args.
12428 set dummy objdump; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 case $OBJDUMP_FOR_TARGET in
12435 [\\/]* | ?:[\\/]*)
12436 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12437 ;;
12438 *)
12439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $gcc_cv_tool_dirs
12441 do
12442 IFS=$as_save_IFS
12443 test -z "$as_dir" && as_dir=.
12444 for ac_exec_ext in '' $ac_executable_extensions; do
12445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12446 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448 break 2
12449 fi
12450 done
12451 done
12452 IFS=$as_save_IFS
12453
12454 ;;
12455 esac
12456 fi
12457 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12458 if test -n "$OBJDUMP_FOR_TARGET"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12460 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12464 fi
12465
12466
12467 fi
12468 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12469
12470
12471 if test -n "$OBJDUMP_FOR_TARGET"; then
12472 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12473 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12474 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12475 fi
12476
12477 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12478 for ncn_progname in objdump; do
12479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12480 set dummy ${ncn_progname}; ac_word=$2
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482 $as_echo_n "checking for $ac_word... " >&6; }
12483 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 if test -n "$OBJDUMP_FOR_TARGET"; then
12487 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12488 else
12489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490 for as_dir in $PATH
12491 do
12492 IFS=$as_save_IFS
12493 test -z "$as_dir" && as_dir=.
12494 for ac_exec_ext in '' $ac_executable_extensions; do
12495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12496 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 break 2
12499 fi
12500 done
12501 done
12502 IFS=$as_save_IFS
12503
12504 fi
12505 fi
12506 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12507 if test -n "$OBJDUMP_FOR_TARGET"; then
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12509 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12510 else
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512 $as_echo "no" >&6; }
12513 fi
12514
12515
12516 done
12517 fi
12518
12519 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12520 for ncn_progname in objdump; do
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12522 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12523 if test -x $with_build_time_tools/${ncn_progname}; then
12524 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12526 $as_echo "yes" >&6; }
12527 break
12528 else
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12530 $as_echo "no" >&6; }
12531 fi
12532 done
12533 fi
12534
12535 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12536 for ncn_progname in objdump; do
12537 if test -n "$ncn_target_tool_prefix"; then
12538 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12539 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541 $as_echo_n "checking for $ac_word... " >&6; }
12542 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12543 $as_echo_n "(cached) " >&6
12544 else
12545 if test -n "$OBJDUMP_FOR_TARGET"; then
12546 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12547 else
12548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549 for as_dir in $PATH
12550 do
12551 IFS=$as_save_IFS
12552 test -z "$as_dir" && as_dir=.
12553 for ac_exec_ext in '' $ac_executable_extensions; do
12554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12555 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12557 break 2
12558 fi
12559 done
12560 done
12561 IFS=$as_save_IFS
12562
12563 fi
12564 fi
12565 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12566 if test -n "$OBJDUMP_FOR_TARGET"; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12568 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12569 else
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571 $as_echo "no" >&6; }
12572 fi
12573
12574
12575 fi
12576 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12578 set dummy ${ncn_progname}; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 if test -n "$OBJDUMP_FOR_TARGET"; then
12585 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12586 else
12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588 for as_dir in $PATH
12589 do
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12594 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12596 break 2
12597 fi
12598 done
12599 done
12600 IFS=$as_save_IFS
12601
12602 fi
12603 fi
12604 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12605 if test -n "$OBJDUMP_FOR_TARGET"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12607 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12608 else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12611 fi
12612
12613
12614 fi
12615 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12616 done
12617 fi
12618
12619 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12620 set dummy objdump
12621 if test $build = $target ; then
12622 OBJDUMP_FOR_TARGET="$2"
12623 else
12624 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12625 fi
12626 else
12627 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12628 fi
12629
12630 else
12631 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12632 fi
12633
12634
12635
12636
12637 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12638 if test -n "$with_build_time_tools"; then
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12640 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12641 if test -x $with_build_time_tools/ranlib; then
12642 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12643 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12645 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12646 else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 $as_echo "no" >&6; }
12649 fi
12650 elif test $build != $host && test $have_gcc_for_target = yes; then
12651 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12652 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12653 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12654 fi
12655 fi
12656 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12657 # Extract the first word of "ranlib", so it can be a program name with args.
12658 set dummy ranlib; ac_word=$2
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660 $as_echo_n "checking for $ac_word... " >&6; }
12661 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
12663 else
12664 case $RANLIB_FOR_TARGET in
12665 [\\/]* | ?:[\\/]*)
12666 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12667 ;;
12668 *)
12669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670 for as_dir in $gcc_cv_tool_dirs
12671 do
12672 IFS=$as_save_IFS
12673 test -z "$as_dir" && as_dir=.
12674 for ac_exec_ext in '' $ac_executable_extensions; do
12675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12676 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12678 break 2
12679 fi
12680 done
12681 done
12682 IFS=$as_save_IFS
12683
12684 ;;
12685 esac
12686 fi
12687 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12688 if test -n "$RANLIB_FOR_TARGET"; then
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12690 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12691 else
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693 $as_echo "no" >&6; }
12694 fi
12695
12696
12697 fi
12698 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12699
12700
12701 if test -n "$RANLIB_FOR_TARGET"; then
12702 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12703 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12704 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12705 fi
12706
12707 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12708 for ncn_progname in ranlib; do
12709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12710 set dummy ${ncn_progname}; ac_word=$2
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12712 $as_echo_n "checking for $ac_word... " >&6; }
12713 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12714 $as_echo_n "(cached) " >&6
12715 else
12716 if test -n "$RANLIB_FOR_TARGET"; then
12717 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12718 else
12719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12720 for as_dir in $PATH
12721 do
12722 IFS=$as_save_IFS
12723 test -z "$as_dir" && as_dir=.
12724 for ac_exec_ext in '' $ac_executable_extensions; do
12725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12726 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12728 break 2
12729 fi
12730 done
12731 done
12732 IFS=$as_save_IFS
12733
12734 fi
12735 fi
12736 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12737 if test -n "$RANLIB_FOR_TARGET"; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12739 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12740 else
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12743 fi
12744
12745
12746 done
12747 fi
12748
12749 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12750 for ncn_progname in ranlib; do
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12752 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12753 if test -x $with_build_time_tools/${ncn_progname}; then
12754 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12756 $as_echo "yes" >&6; }
12757 break
12758 else
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760 $as_echo "no" >&6; }
12761 fi
12762 done
12763 fi
12764
12765 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12766 for ncn_progname in ranlib; do
12767 if test -n "$ncn_target_tool_prefix"; then
12768 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12769 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771 $as_echo_n "checking for $ac_word... " >&6; }
12772 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12773 $as_echo_n "(cached) " >&6
12774 else
12775 if test -n "$RANLIB_FOR_TARGET"; then
12776 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12777 else
12778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779 for as_dir in $PATH
12780 do
12781 IFS=$as_save_IFS
12782 test -z "$as_dir" && as_dir=.
12783 for ac_exec_ext in '' $ac_executable_extensions; do
12784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12785 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12787 break 2
12788 fi
12789 done
12790 done
12791 IFS=$as_save_IFS
12792
12793 fi
12794 fi
12795 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12796 if test -n "$RANLIB_FOR_TARGET"; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12798 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12799 else
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801 $as_echo "no" >&6; }
12802 fi
12803
12804
12805 fi
12806 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12808 set dummy ${ncn_progname}; ac_word=$2
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810 $as_echo_n "checking for $ac_word... " >&6; }
12811 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 if test -n "$RANLIB_FOR_TARGET"; then
12815 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12816 else
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12819 do
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12824 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12826 break 2
12827 fi
12828 done
12829 done
12830 IFS=$as_save_IFS
12831
12832 fi
12833 fi
12834 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12835 if test -n "$RANLIB_FOR_TARGET"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12837 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12838 else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12841 fi
12842
12843
12844 fi
12845 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12846 done
12847 fi
12848
12849 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12850 set dummy ranlib
12851 if test $build = $target ; then
12852 RANLIB_FOR_TARGET="$2"
12853 else
12854 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12855 fi
12856 else
12857 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12858 fi
12859
12860 else
12861 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12862 fi
12863
12864
12865
12866
12867 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12868 if test -n "$with_build_time_tools"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12870 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12871 if test -x $with_build_time_tools/strip; then
12872 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12873 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12875 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12876 else
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12879 fi
12880 elif test $build != $host && test $have_gcc_for_target = yes; then
12881 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12882 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12883 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12884 fi
12885 fi
12886 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12887 # Extract the first word of "strip", so it can be a program name with args.
12888 set dummy strip; ac_word=$2
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890 $as_echo_n "checking for $ac_word... " >&6; }
12891 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12892 $as_echo_n "(cached) " >&6
12893 else
12894 case $STRIP_FOR_TARGET in
12895 [\\/]* | ?:[\\/]*)
12896 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12897 ;;
12898 *)
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $gcc_cv_tool_dirs
12901 do
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12906 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12908 break 2
12909 fi
12910 done
12911 done
12912 IFS=$as_save_IFS
12913
12914 ;;
12915 esac
12916 fi
12917 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12918 if test -n "$STRIP_FOR_TARGET"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12920 $as_echo "$STRIP_FOR_TARGET" >&6; }
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12924 fi
12925
12926
12927 fi
12928 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12929
12930
12931 if test -n "$STRIP_FOR_TARGET"; then
12932 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12933 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12934 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12935 fi
12936
12937 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12938 for ncn_progname in strip; do
12939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12940 set dummy ${ncn_progname}; ac_word=$2
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942 $as_echo_n "checking for $ac_word... " >&6; }
12943 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12944 $as_echo_n "(cached) " >&6
12945 else
12946 if test -n "$STRIP_FOR_TARGET"; then
12947 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12948 else
12949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950 for as_dir in $PATH
12951 do
12952 IFS=$as_save_IFS
12953 test -z "$as_dir" && as_dir=.
12954 for ac_exec_ext in '' $ac_executable_extensions; do
12955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12956 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12958 break 2
12959 fi
12960 done
12961 done
12962 IFS=$as_save_IFS
12963
12964 fi
12965 fi
12966 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12967 if test -n "$STRIP_FOR_TARGET"; then
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12969 $as_echo "$STRIP_FOR_TARGET" >&6; }
12970 else
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972 $as_echo "no" >&6; }
12973 fi
12974
12975
12976 done
12977 fi
12978
12979 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12980 for ncn_progname in strip; do
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12982 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12983 if test -x $with_build_time_tools/${ncn_progname}; then
12984 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12986 $as_echo "yes" >&6; }
12987 break
12988 else
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 $as_echo "no" >&6; }
12991 fi
12992 done
12993 fi
12994
12995 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12996 for ncn_progname in strip; do
12997 if test -n "$ncn_target_tool_prefix"; then
12998 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12999 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13001 $as_echo_n "checking for $ac_word... " >&6; }
13002 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13003 $as_echo_n "(cached) " >&6
13004 else
13005 if test -n "$STRIP_FOR_TARGET"; then
13006 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13007 else
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13010 do
13011 IFS=$as_save_IFS
13012 test -z "$as_dir" && as_dir=.
13013 for ac_exec_ext in '' $ac_executable_extensions; do
13014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13015 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13017 break 2
13018 fi
13019 done
13020 done
13021 IFS=$as_save_IFS
13022
13023 fi
13024 fi
13025 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13026 if test -n "$STRIP_FOR_TARGET"; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13028 $as_echo "$STRIP_FOR_TARGET" >&6; }
13029 else
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031 $as_echo "no" >&6; }
13032 fi
13033
13034
13035 fi
13036 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13038 set dummy ${ncn_progname}; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13040 $as_echo_n "checking for $ac_word... " >&6; }
13041 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 if test -n "$STRIP_FOR_TARGET"; then
13045 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13046 else
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13049 do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13054 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13056 break 2
13057 fi
13058 done
13059 done
13060 IFS=$as_save_IFS
13061
13062 fi
13063 fi
13064 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13065 if test -n "$STRIP_FOR_TARGET"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13067 $as_echo "$STRIP_FOR_TARGET" >&6; }
13068 else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070 $as_echo "no" >&6; }
13071 fi
13072
13073
13074 fi
13075 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13076 done
13077 fi
13078
13079 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13080 set dummy strip
13081 if test $build = $target ; then
13082 STRIP_FOR_TARGET="$2"
13083 else
13084 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13085 fi
13086 else
13087 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13088 fi
13089
13090 else
13091 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13092 fi
13093
13094
13095
13096
13097 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13098 if test -n "$with_build_time_tools"; then
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13100 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13101 if test -x $with_build_time_tools/windres; then
13102 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13103 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13105 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13106 else
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 $as_echo "no" >&6; }
13109 fi
13110 elif test $build != $host && test $have_gcc_for_target = yes; then
13111 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13112 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13113 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13114 fi
13115 fi
13116 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13117 # Extract the first word of "windres", so it can be a program name with args.
13118 set dummy windres; ac_word=$2
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13120 $as_echo_n "checking for $ac_word... " >&6; }
13121 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 case $WINDRES_FOR_TARGET in
13125 [\\/]* | ?:[\\/]*)
13126 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13127 ;;
13128 *)
13129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $gcc_cv_tool_dirs
13131 do
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
13135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13136 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 break 2
13139 fi
13140 done
13141 done
13142 IFS=$as_save_IFS
13143
13144 ;;
13145 esac
13146 fi
13147 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13148 if test -n "$WINDRES_FOR_TARGET"; then
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13150 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13151 else
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 $as_echo "no" >&6; }
13154 fi
13155
13156
13157 fi
13158 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13159
13160
13161 if test -n "$WINDRES_FOR_TARGET"; then
13162 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13163 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13164 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13165 fi
13166
13167 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13168 for ncn_progname in windres; do
13169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13170 set dummy ${ncn_progname}; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172 $as_echo_n "checking for $ac_word... " >&6; }
13173 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 if test -n "$WINDRES_FOR_TARGET"; then
13177 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13178 else
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13181 do
13182 IFS=$as_save_IFS
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13186 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13188 break 2
13189 fi
13190 done
13191 done
13192 IFS=$as_save_IFS
13193
13194 fi
13195 fi
13196 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13197 if test -n "$WINDRES_FOR_TARGET"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13199 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13200 else
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13202 $as_echo "no" >&6; }
13203 fi
13204
13205
13206 done
13207 fi
13208
13209 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13210 for ncn_progname in windres; do
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13212 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13213 if test -x $with_build_time_tools/${ncn_progname}; then
13214 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13216 $as_echo "yes" >&6; }
13217 break
13218 else
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220 $as_echo "no" >&6; }
13221 fi
13222 done
13223 fi
13224
13225 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13226 for ncn_progname in windres; do
13227 if test -n "$ncn_target_tool_prefix"; then
13228 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13229 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231 $as_echo_n "checking for $ac_word... " >&6; }
13232 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 if test -n "$WINDRES_FOR_TARGET"; then
13236 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13237 else
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13240 do
13241 IFS=$as_save_IFS
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13245 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13247 break 2
13248 fi
13249 done
13250 done
13251 IFS=$as_save_IFS
13252
13253 fi
13254 fi
13255 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13256 if test -n "$WINDRES_FOR_TARGET"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13258 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13259 else
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13262 fi
13263
13264
13265 fi
13266 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13268 set dummy ${ncn_progname}; ac_word=$2
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13270 $as_echo_n "checking for $ac_word... " >&6; }
13271 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 if test -n "$WINDRES_FOR_TARGET"; then
13275 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13276 else
13277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278 for as_dir in $PATH
13279 do
13280 IFS=$as_save_IFS
13281 test -z "$as_dir" && as_dir=.
13282 for ac_exec_ext in '' $ac_executable_extensions; do
13283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13284 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13286 break 2
13287 fi
13288 done
13289 done
13290 IFS=$as_save_IFS
13291
13292 fi
13293 fi
13294 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13295 if test -n "$WINDRES_FOR_TARGET"; then
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13297 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13298 else
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300 $as_echo "no" >&6; }
13301 fi
13302
13303
13304 fi
13305 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13306 done
13307 fi
13308
13309 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13310 set dummy windres
13311 if test $build = $target ; then
13312 WINDRES_FOR_TARGET="$2"
13313 else
13314 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13315 fi
13316 else
13317 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13318 fi
13319
13320 else
13321 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13322 fi
13323
13324
13325
13326
13327 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13328 if test -n "$with_build_time_tools"; then
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13330 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13331 if test -x $with_build_time_tools/windmc; then
13332 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13333 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13335 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13336 else
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13339 fi
13340 elif test $build != $host && test $have_gcc_for_target = yes; then
13341 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13342 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13343 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13344 fi
13345 fi
13346 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13347 # Extract the first word of "windmc", so it can be a program name with args.
13348 set dummy windmc; ac_word=$2
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13350 $as_echo_n "checking for $ac_word... " >&6; }
13351 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13352 $as_echo_n "(cached) " >&6
13353 else
13354 case $WINDMC_FOR_TARGET in
13355 [\\/]* | ?:[\\/]*)
13356 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13357 ;;
13358 *)
13359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360 for as_dir in $gcc_cv_tool_dirs
13361 do
13362 IFS=$as_save_IFS
13363 test -z "$as_dir" && as_dir=.
13364 for ac_exec_ext in '' $ac_executable_extensions; do
13365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13366 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13368 break 2
13369 fi
13370 done
13371 done
13372 IFS=$as_save_IFS
13373
13374 ;;
13375 esac
13376 fi
13377 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13378 if test -n "$WINDMC_FOR_TARGET"; then
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13380 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13381 else
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383 $as_echo "no" >&6; }
13384 fi
13385
13386
13387 fi
13388 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13389
13390
13391 if test -n "$WINDMC_FOR_TARGET"; then
13392 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13393 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13394 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13395 fi
13396
13397 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13398 for ncn_progname in windmc; do
13399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13400 set dummy ${ncn_progname}; ac_word=$2
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13402 $as_echo_n "checking for $ac_word... " >&6; }
13403 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13404 $as_echo_n "(cached) " >&6
13405 else
13406 if test -n "$WINDMC_FOR_TARGET"; then
13407 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13408 else
13409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410 for as_dir in $PATH
13411 do
13412 IFS=$as_save_IFS
13413 test -z "$as_dir" && as_dir=.
13414 for ac_exec_ext in '' $ac_executable_extensions; do
13415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13416 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13418 break 2
13419 fi
13420 done
13421 done
13422 IFS=$as_save_IFS
13423
13424 fi
13425 fi
13426 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13427 if test -n "$WINDMC_FOR_TARGET"; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13429 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13430 else
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432 $as_echo "no" >&6; }
13433 fi
13434
13435
13436 done
13437 fi
13438
13439 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13440 for ncn_progname in windmc; do
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13442 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13443 if test -x $with_build_time_tools/${ncn_progname}; then
13444 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13446 $as_echo "yes" >&6; }
13447 break
13448 else
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13450 $as_echo "no" >&6; }
13451 fi
13452 done
13453 fi
13454
13455 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13456 for ncn_progname in windmc; do
13457 if test -n "$ncn_target_tool_prefix"; then
13458 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13459 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461 $as_echo_n "checking for $ac_word... " >&6; }
13462 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13463 $as_echo_n "(cached) " >&6
13464 else
13465 if test -n "$WINDMC_FOR_TARGET"; then
13466 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13467 else
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13470 do
13471 IFS=$as_save_IFS
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13475 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13477 break 2
13478 fi
13479 done
13480 done
13481 IFS=$as_save_IFS
13482
13483 fi
13484 fi
13485 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13486 if test -n "$WINDMC_FOR_TARGET"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13488 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13489 else
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 $as_echo "no" >&6; }
13492 fi
13493
13494
13495 fi
13496 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13498 set dummy ${ncn_progname}; ac_word=$2
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500 $as_echo_n "checking for $ac_word... " >&6; }
13501 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13502 $as_echo_n "(cached) " >&6
13503 else
13504 if test -n "$WINDMC_FOR_TARGET"; then
13505 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13506 else
13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508 for as_dir in $PATH
13509 do
13510 IFS=$as_save_IFS
13511 test -z "$as_dir" && as_dir=.
13512 for ac_exec_ext in '' $ac_executable_extensions; do
13513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13514 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13516 break 2
13517 fi
13518 done
13519 done
13520 IFS=$as_save_IFS
13521
13522 fi
13523 fi
13524 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13525 if test -n "$WINDMC_FOR_TARGET"; then
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13527 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13528 else
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13531 fi
13532
13533
13534 fi
13535 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13536 done
13537 fi
13538
13539 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13540 set dummy windmc
13541 if test $build = $target ; then
13542 WINDMC_FOR_TARGET="$2"
13543 else
13544 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13545 fi
13546 else
13547 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13548 fi
13549
13550 else
13551 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13552 fi
13553
13554
13555 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13556
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13558 $as_echo_n "checking where to find the target ar... " >&6; }
13559 if test "x${build}" != "x${host}" ; then
13560 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13561 # We already found the complete path
13562 ac_dir=`dirname $AR_FOR_TARGET`
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13564 $as_echo "pre-installed in $ac_dir" >&6; }
13565 else
13566 # Canadian cross, just use what we found
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13568 $as_echo "pre-installed" >&6; }
13569 fi
13570 else
13571 ok=yes
13572 case " ${configdirs} " in
13573 *" binutils "*) ;;
13574 *) ok=no ;;
13575 esac
13576
13577 if test $ok = yes; then
13578 # An in-tree tool is available and we can use it
13579 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13581 $as_echo "just compiled" >&6; }
13582 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13583 # We already found the complete path
13584 ac_dir=`dirname $AR_FOR_TARGET`
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13586 $as_echo "pre-installed in $ac_dir" >&6; }
13587 elif test "x$target" = "x$host"; then
13588 # We can use an host tool
13589 AR_FOR_TARGET='$(AR)'
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13591 $as_echo "host tool" >&6; }
13592 else
13593 # We need a cross tool
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13595 $as_echo "pre-installed" >&6; }
13596 fi
13597 fi
13598
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13600 $as_echo_n "checking where to find the target as... " >&6; }
13601 if test "x${build}" != "x${host}" ; then
13602 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13603 # We already found the complete path
13604 ac_dir=`dirname $AS_FOR_TARGET`
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13606 $as_echo "pre-installed in $ac_dir" >&6; }
13607 else
13608 # Canadian cross, just use what we found
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13610 $as_echo "pre-installed" >&6; }
13611 fi
13612 else
13613 ok=yes
13614 case " ${configdirs} " in
13615 *" gas "*) ;;
13616 *) ok=no ;;
13617 esac
13618
13619 if test $ok = yes; then
13620 # An in-tree tool is available and we can use it
13621 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13623 $as_echo "just compiled" >&6; }
13624 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13625 # We already found the complete path
13626 ac_dir=`dirname $AS_FOR_TARGET`
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13628 $as_echo "pre-installed in $ac_dir" >&6; }
13629 elif test "x$target" = "x$host"; then
13630 # We can use an host tool
13631 AS_FOR_TARGET='$(AS)'
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13633 $as_echo "host tool" >&6; }
13634 else
13635 # We need a cross tool
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13637 $as_echo "pre-installed" >&6; }
13638 fi
13639 fi
13640
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13642 $as_echo_n "checking where to find the target cc... " >&6; }
13643 if test "x${build}" != "x${host}" ; then
13644 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13645 # We already found the complete path
13646 ac_dir=`dirname $CC_FOR_TARGET`
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13648 $as_echo "pre-installed in $ac_dir" >&6; }
13649 else
13650 # Canadian cross, just use what we found
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13652 $as_echo "pre-installed" >&6; }
13653 fi
13654 else
13655 ok=yes
13656 case " ${configdirs} " in
13657 *" gcc "*) ;;
13658 *) ok=no ;;
13659 esac
13660
13661 if test $ok = yes; then
13662 # An in-tree tool is available and we can use it
13663 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13665 $as_echo "just compiled" >&6; }
13666 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13667 # We already found the complete path
13668 ac_dir=`dirname $CC_FOR_TARGET`
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13670 $as_echo "pre-installed in $ac_dir" >&6; }
13671 elif test "x$target" = "x$host"; then
13672 # We can use an host tool
13673 CC_FOR_TARGET='$(CC)'
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13675 $as_echo "host tool" >&6; }
13676 else
13677 # We need a cross tool
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13679 $as_echo "pre-installed" >&6; }
13680 fi
13681 fi
13682
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13684 $as_echo_n "checking where to find the target c++... " >&6; }
13685 if test "x${build}" != "x${host}" ; then
13686 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13687 # We already found the complete path
13688 ac_dir=`dirname $CXX_FOR_TARGET`
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13690 $as_echo "pre-installed in $ac_dir" >&6; }
13691 else
13692 # Canadian cross, just use what we found
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13694 $as_echo "pre-installed" >&6; }
13695 fi
13696 else
13697 ok=yes
13698 case " ${configdirs} " in
13699 *" gcc "*) ;;
13700 *) ok=no ;;
13701 esac
13702 case ,${enable_languages}, in
13703 *,c++,*) ;;
13704 *) ok=no ;;
13705 esac
13706 if test $ok = yes; then
13707 # An in-tree tool is available and we can use it
13708 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13710 $as_echo "just compiled" >&6; }
13711 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13712 # We already found the complete path
13713 ac_dir=`dirname $CXX_FOR_TARGET`
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13715 $as_echo "pre-installed in $ac_dir" >&6; }
13716 elif test "x$target" = "x$host"; then
13717 # We can use an host tool
13718 CXX_FOR_TARGET='$(CXX)'
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13720 $as_echo "host tool" >&6; }
13721 else
13722 # We need a cross tool
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13724 $as_echo "pre-installed" >&6; }
13725 fi
13726 fi
13727
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13729 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13730 if test "x${build}" != "x${host}" ; then
13731 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13732 # We already found the complete path
13733 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13735 $as_echo "pre-installed in $ac_dir" >&6; }
13736 else
13737 # Canadian cross, just use what we found
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13739 $as_echo "pre-installed" >&6; }
13740 fi
13741 else
13742 ok=yes
13743 case " ${configdirs} " in
13744 *" gcc "*) ;;
13745 *) ok=no ;;
13746 esac
13747 case ,${enable_languages}, in
13748 *,c++,*) ;;
13749 *) ok=no ;;
13750 esac
13751 if test $ok = yes; then
13752 # An in-tree tool is available and we can use it
13753 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'
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13755 $as_echo "just compiled" >&6; }
13756 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13757 # We already found the complete path
13758 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13760 $as_echo "pre-installed in $ac_dir" >&6; }
13761 elif test "x$target" = "x$host"; then
13762 # We can use an host tool
13763 RAW_CXX_FOR_TARGET='$(CXX)'
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13765 $as_echo "host tool" >&6; }
13766 else
13767 # We need a cross tool
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13769 $as_echo "pre-installed" >&6; }
13770 fi
13771 fi
13772
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13774 $as_echo_n "checking where to find the target dlltool... " >&6; }
13775 if test "x${build}" != "x${host}" ; then
13776 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13777 # We already found the complete path
13778 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13780 $as_echo "pre-installed in $ac_dir" >&6; }
13781 else
13782 # Canadian cross, just use what we found
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13784 $as_echo "pre-installed" >&6; }
13785 fi
13786 else
13787 ok=yes
13788 case " ${configdirs} " in
13789 *" binutils "*) ;;
13790 *) ok=no ;;
13791 esac
13792
13793 if test $ok = yes; then
13794 # An in-tree tool is available and we can use it
13795 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13797 $as_echo "just compiled" >&6; }
13798 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13799 # We already found the complete path
13800 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13802 $as_echo "pre-installed in $ac_dir" >&6; }
13803 elif test "x$target" = "x$host"; then
13804 # We can use an host tool
13805 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13807 $as_echo "host tool" >&6; }
13808 else
13809 # We need a cross tool
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13811 $as_echo "pre-installed" >&6; }
13812 fi
13813 fi
13814
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13816 $as_echo_n "checking where to find the target gcc... " >&6; }
13817 if test "x${build}" != "x${host}" ; then
13818 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13819 # We already found the complete path
13820 ac_dir=`dirname $GCC_FOR_TARGET`
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13822 $as_echo "pre-installed in $ac_dir" >&6; }
13823 else
13824 # Canadian cross, just use what we found
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13826 $as_echo "pre-installed" >&6; }
13827 fi
13828 else
13829 ok=yes
13830 case " ${configdirs} " in
13831 *" gcc "*) ;;
13832 *) ok=no ;;
13833 esac
13834
13835 if test $ok = yes; then
13836 # An in-tree tool is available and we can use it
13837 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13839 $as_echo "just compiled" >&6; }
13840 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13841 # We already found the complete path
13842 ac_dir=`dirname $GCC_FOR_TARGET`
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13844 $as_echo "pre-installed in $ac_dir" >&6; }
13845 elif test "x$target" = "x$host"; then
13846 # We can use an host tool
13847 GCC_FOR_TARGET='$()'
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13849 $as_echo "host tool" >&6; }
13850 else
13851 # We need a cross tool
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13853 $as_echo "pre-installed" >&6; }
13854 fi
13855 fi
13856
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13858 $as_echo_n "checking where to find the target gcj... " >&6; }
13859 if test "x${build}" != "x${host}" ; then
13860 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13861 # We already found the complete path
13862 ac_dir=`dirname $GCJ_FOR_TARGET`
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13864 $as_echo "pre-installed in $ac_dir" >&6; }
13865 else
13866 # Canadian cross, just use what we found
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13868 $as_echo "pre-installed" >&6; }
13869 fi
13870 else
13871 ok=yes
13872 case " ${configdirs} " in
13873 *" gcc "*) ;;
13874 *) ok=no ;;
13875 esac
13876 case ,${enable_languages}, in
13877 *,java,*) ;;
13878 *) ok=no ;;
13879 esac
13880 if test $ok = yes; then
13881 # An in-tree tool is available and we can use it
13882 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13884 $as_echo "just compiled" >&6; }
13885 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13886 # We already found the complete path
13887 ac_dir=`dirname $GCJ_FOR_TARGET`
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13889 $as_echo "pre-installed in $ac_dir" >&6; }
13890 elif test "x$target" = "x$host"; then
13891 # We can use an host tool
13892 GCJ_FOR_TARGET='$(GCJ)'
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13894 $as_echo "host tool" >&6; }
13895 else
13896 # We need a cross tool
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13898 $as_echo "pre-installed" >&6; }
13899 fi
13900 fi
13901
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13903 $as_echo_n "checking where to find the target gfortran... " >&6; }
13904 if test "x${build}" != "x${host}" ; then
13905 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13906 # We already found the complete path
13907 ac_dir=`dirname $GFORTRAN_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 else
13911 # Canadian cross, just use what we found
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13913 $as_echo "pre-installed" >&6; }
13914 fi
13915 else
13916 ok=yes
13917 case " ${configdirs} " in
13918 *" gcc "*) ;;
13919 *) ok=no ;;
13920 esac
13921 case ,${enable_languages}, in
13922 *,fortran,*) ;;
13923 *) ok=no ;;
13924 esac
13925 if test $ok = yes; then
13926 # An in-tree tool is available and we can use it
13927 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13929 $as_echo "just compiled" >&6; }
13930 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13931 # We already found the complete path
13932 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13934 $as_echo "pre-installed in $ac_dir" >&6; }
13935 elif test "x$target" = "x$host"; then
13936 # We can use an host tool
13937 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13939 $as_echo "host tool" >&6; }
13940 else
13941 # We need a cross tool
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13943 $as_echo "pre-installed" >&6; }
13944 fi
13945 fi
13946
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13948 $as_echo_n "checking where to find the target ld... " >&6; }
13949 if test "x${build}" != "x${host}" ; then
13950 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13951 # We already found the complete path
13952 ac_dir=`dirname $LD_FOR_TARGET`
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13954 $as_echo "pre-installed in $ac_dir" >&6; }
13955 else
13956 # Canadian cross, just use what we found
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13958 $as_echo "pre-installed" >&6; }
13959 fi
13960 else
13961 ok=yes
13962 case " ${configdirs} " in
13963 *" ld "*) ;;
13964 *) ok=no ;;
13965 esac
13966
13967 if test $ok = yes; then
13968 # An in-tree tool is available and we can use it
13969 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13971 $as_echo "just compiled" >&6; }
13972 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13973 # We already found the complete path
13974 ac_dir=`dirname $LD_FOR_TARGET`
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13976 $as_echo "pre-installed in $ac_dir" >&6; }
13977 elif test "x$target" = "x$host"; then
13978 # We can use an host tool
13979 LD_FOR_TARGET='$(LD)'
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13981 $as_echo "host tool" >&6; }
13982 else
13983 # We need a cross tool
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13985 $as_echo "pre-installed" >&6; }
13986 fi
13987 fi
13988
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13990 $as_echo_n "checking where to find the target lipo... " >&6; }
13991 if test "x${build}" != "x${host}" ; then
13992 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13993 # We already found the complete path
13994 ac_dir=`dirname $LIPO_FOR_TARGET`
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13996 $as_echo "pre-installed in $ac_dir" >&6; }
13997 else
13998 # Canadian cross, just use what we found
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14000 $as_echo "pre-installed" >&6; }
14001 fi
14002 else
14003 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14004 # We already found the complete path
14005 ac_dir=`dirname $LIPO_FOR_TARGET`
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14007 $as_echo "pre-installed in $ac_dir" >&6; }
14008 elif test "x$target" = "x$host"; then
14009 # We can use an host tool
14010 LIPO_FOR_TARGET='$(LIPO)'
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14012 $as_echo "host tool" >&6; }
14013 else
14014 # We need a cross tool
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14016 $as_echo "pre-installed" >&6; }
14017 fi
14018 fi
14019
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14021 $as_echo_n "checking where to find the target nm... " >&6; }
14022 if test "x${build}" != "x${host}" ; then
14023 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14024 # We already found the complete path
14025 ac_dir=`dirname $NM_FOR_TARGET`
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14027 $as_echo "pre-installed in $ac_dir" >&6; }
14028 else
14029 # Canadian cross, just use what we found
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14031 $as_echo "pre-installed" >&6; }
14032 fi
14033 else
14034 ok=yes
14035 case " ${configdirs} " in
14036 *" binutils "*) ;;
14037 *) ok=no ;;
14038 esac
14039
14040 if test $ok = yes; then
14041 # An in-tree tool is available and we can use it
14042 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14044 $as_echo "just compiled" >&6; }
14045 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14046 # We already found the complete path
14047 ac_dir=`dirname $NM_FOR_TARGET`
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14049 $as_echo "pre-installed in $ac_dir" >&6; }
14050 elif test "x$target" = "x$host"; then
14051 # We can use an host tool
14052 NM_FOR_TARGET='$(NM)'
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14054 $as_echo "host tool" >&6; }
14055 else
14056 # We need a cross tool
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14058 $as_echo "pre-installed" >&6; }
14059 fi
14060 fi
14061
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14063 $as_echo_n "checking where to find the target objdump... " >&6; }
14064 if test "x${build}" != "x${host}" ; then
14065 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14066 # We already found the complete path
14067 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14069 $as_echo "pre-installed in $ac_dir" >&6; }
14070 else
14071 # Canadian cross, just use what we found
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14073 $as_echo "pre-installed" >&6; }
14074 fi
14075 else
14076 ok=yes
14077 case " ${configdirs} " in
14078 *" binutils "*) ;;
14079 *) ok=no ;;
14080 esac
14081
14082 if test $ok = yes; then
14083 # An in-tree tool is available and we can use it
14084 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14086 $as_echo "just compiled" >&6; }
14087 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14088 # We already found the complete path
14089 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14091 $as_echo "pre-installed in $ac_dir" >&6; }
14092 elif test "x$target" = "x$host"; then
14093 # We can use an host tool
14094 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14096 $as_echo "host tool" >&6; }
14097 else
14098 # We need a cross tool
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14100 $as_echo "pre-installed" >&6; }
14101 fi
14102 fi
14103
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14105 $as_echo_n "checking where to find the target ranlib... " >&6; }
14106 if test "x${build}" != "x${host}" ; then
14107 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14108 # We already found the complete path
14109 ac_dir=`dirname $RANLIB_FOR_TARGET`
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14111 $as_echo "pre-installed in $ac_dir" >&6; }
14112 else
14113 # Canadian cross, just use what we found
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14115 $as_echo "pre-installed" >&6; }
14116 fi
14117 else
14118 ok=yes
14119 case " ${configdirs} " in
14120 *" binutils "*) ;;
14121 *) ok=no ;;
14122 esac
14123
14124 if test $ok = yes; then
14125 # An in-tree tool is available and we can use it
14126 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14128 $as_echo "just compiled" >&6; }
14129 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14130 # We already found the complete path
14131 ac_dir=`dirname $RANLIB_FOR_TARGET`
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14133 $as_echo "pre-installed in $ac_dir" >&6; }
14134 elif test "x$target" = "x$host"; then
14135 # We can use an host tool
14136 RANLIB_FOR_TARGET='$(RANLIB)'
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14138 $as_echo "host tool" >&6; }
14139 else
14140 # We need a cross tool
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14142 $as_echo "pre-installed" >&6; }
14143 fi
14144 fi
14145
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14147 $as_echo_n "checking where to find the target strip... " >&6; }
14148 if test "x${build}" != "x${host}" ; then
14149 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14150 # We already found the complete path
14151 ac_dir=`dirname $STRIP_FOR_TARGET`
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14153 $as_echo "pre-installed in $ac_dir" >&6; }
14154 else
14155 # Canadian cross, just use what we found
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14157 $as_echo "pre-installed" >&6; }
14158 fi
14159 else
14160 ok=yes
14161 case " ${configdirs} " in
14162 *" binutils "*) ;;
14163 *) ok=no ;;
14164 esac
14165
14166 if test $ok = yes; then
14167 # An in-tree tool is available and we can use it
14168 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14170 $as_echo "just compiled" >&6; }
14171 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14172 # We already found the complete path
14173 ac_dir=`dirname $STRIP_FOR_TARGET`
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14175 $as_echo "pre-installed in $ac_dir" >&6; }
14176 elif test "x$target" = "x$host"; then
14177 # We can use an host tool
14178 STRIP_FOR_TARGET='$(STRIP)'
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14180 $as_echo "host tool" >&6; }
14181 else
14182 # We need a cross tool
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14184 $as_echo "pre-installed" >&6; }
14185 fi
14186 fi
14187
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14189 $as_echo_n "checking where to find the target windres... " >&6; }
14190 if test "x${build}" != "x${host}" ; then
14191 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14192 # We already found the complete path
14193 ac_dir=`dirname $WINDRES_FOR_TARGET`
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14195 $as_echo "pre-installed in $ac_dir" >&6; }
14196 else
14197 # Canadian cross, just use what we found
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14199 $as_echo "pre-installed" >&6; }
14200 fi
14201 else
14202 ok=yes
14203 case " ${configdirs} " in
14204 *" binutils "*) ;;
14205 *) ok=no ;;
14206 esac
14207
14208 if test $ok = yes; then
14209 # An in-tree tool is available and we can use it
14210 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14212 $as_echo "just compiled" >&6; }
14213 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14214 # We already found the complete path
14215 ac_dir=`dirname $WINDRES_FOR_TARGET`
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14217 $as_echo "pre-installed in $ac_dir" >&6; }
14218 elif test "x$target" = "x$host"; then
14219 # We can use an host tool
14220 WINDRES_FOR_TARGET='$(WINDRES)'
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14222 $as_echo "host tool" >&6; }
14223 else
14224 # We need a cross tool
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14226 $as_echo "pre-installed" >&6; }
14227 fi
14228 fi
14229
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14231 $as_echo_n "checking where to find the target windmc... " >&6; }
14232 if test "x${build}" != "x${host}" ; then
14233 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14234 # We already found the complete path
14235 ac_dir=`dirname $WINDMC_FOR_TARGET`
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14237 $as_echo "pre-installed in $ac_dir" >&6; }
14238 else
14239 # Canadian cross, just use what we found
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14241 $as_echo "pre-installed" >&6; }
14242 fi
14243 else
14244 ok=yes
14245 case " ${configdirs} " in
14246 *" binutils "*) ;;
14247 *) ok=no ;;
14248 esac
14249
14250 if test $ok = yes; then
14251 # An in-tree tool is available and we can use it
14252 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14254 $as_echo "just compiled" >&6; }
14255 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14256 # We already found the complete path
14257 ac_dir=`dirname $WINDMC_FOR_TARGET`
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14259 $as_echo "pre-installed in $ac_dir" >&6; }
14260 elif test "x$target" = "x$host"; then
14261 # We can use an host tool
14262 WINDMC_FOR_TARGET='$(WINDMC)'
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14264 $as_echo "host tool" >&6; }
14265 else
14266 # We need a cross tool
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14268 $as_echo "pre-installed" >&6; }
14269 fi
14270 fi
14271
14272
14273
14274
14275
14276 # Certain tools may need extra flags.
14277 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14278 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14279 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14280
14281 # When building target libraries, except in a Canadian cross, we use
14282 # the same toolchain as the compiler we just built.
14283 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14284 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14285 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14286 if test $host = $build; then
14287 case " $configdirs " in
14288 *" gcc "*)
14289 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14290 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14291 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14292 ;;
14293 esac
14294 fi
14295
14296
14297
14298
14299
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14301 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14302 # Check whether --enable-maintainer-mode was given.
14303 if test "${enable_maintainer_mode+set}" = set; then :
14304 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14305 else
14306 USE_MAINTAINER_MODE=no
14307 fi
14308
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14310 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14311
14312
14313 if test "$USE_MAINTAINER_MODE" = yes; then
14314 MAINTAINER_MODE_TRUE=
14315 MAINTAINER_MODE_FALSE='#'
14316 else
14317 MAINTAINER_MODE_TRUE='#'
14318 MAINTAINER_MODE_FALSE=
14319 fi
14320 MAINT=$MAINTAINER_MODE_TRUE
14321
14322 # ---------------------
14323 # GCC bootstrap support
14324 # ---------------------
14325
14326 # Stage specific cflags for build.
14327 stage1_cflags="-g"
14328 case $build in
14329 vax-*-*)
14330 case ${GCC} in
14331 yes) stage1_cflags="-g -Wa,-J" ;;
14332 *) stage1_cflags="-g -J" ;;
14333 esac ;;
14334 esac
14335
14336 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14337 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14338 saved_CFLAGS="$CFLAGS"
14339
14340 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14341 CFLAGS="$CFLAGS -fkeep-inline-functions"
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14343 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14346
14347 #if (__GNUC__ < 3) \
14348 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14349 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14350 #error http://gcc.gnu.org/PR29382
14351 #endif
14352
14353 int
14354 main ()
14355 {
14356
14357 ;
14358 return 0;
14359 }
14360 _ACEOF
14361 if ac_fn_c_try_compile "$LINENO"; then :
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14363 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14364 else
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366 $as_echo "no" >&6; }
14367 fi
14368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369
14370 CFLAGS="$saved_CFLAGS"
14371 fi
14372
14373
14374
14375 # Enable --enable-checking in stage1 of the compiler.
14376 # Check whether --enable-stage1-checking was given.
14377 if test "${enable_stage1_checking+set}" = set; then :
14378 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14379 else
14380 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14381 stage1_checking=--enable-checking=yes,types
14382 else
14383 stage1_checking=--enable-checking=$enable_checking,types
14384 fi
14385 fi
14386
14387
14388
14389 # Enable -Werror in bootstrap stage2 and later.
14390 # Check whether --enable-werror was given.
14391 if test "${enable_werror+set}" = set; then :
14392 enableval=$enable_werror;
14393 else
14394 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14395 enable_werror=yes
14396 else
14397 enable_werror=no
14398 fi
14399 fi
14400
14401 case ${enable_werror} in
14402 yes) stage2_werror_flag="--enable-werror-always" ;;
14403 *) stage2_werror_flag="" ;;
14404 esac
14405
14406
14407 # Specify what files to not compare during bootstrap.
14408
14409 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14410 case "$target" in
14411 hppa*64*-*-hpux*) ;;
14412 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14413 esac
14414 case " $configdirs " in
14415 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14416 esac
14417
14418
14419 ac_config_files="$ac_config_files Makefile"
14420
14421 cat >confcache <<\_ACEOF
14422 # This file is a shell script that caches the results of configure
14423 # tests run on this system so they can be shared between configure
14424 # scripts and configure runs, see configure's option --config-cache.
14425 # It is not useful on other systems. If it contains results you don't
14426 # want to keep, you may remove or edit it.
14427 #
14428 # config.status only pays attention to the cache file if you give it
14429 # the --recheck option to rerun configure.
14430 #
14431 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14432 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14433 # following values.
14434
14435 _ACEOF
14436
14437 # The following way of writing the cache mishandles newlines in values,
14438 # but we know of no workaround that is simple, portable, and efficient.
14439 # So, we kill variables containing newlines.
14440 # Ultrix sh set writes to stderr and can't be redirected directly,
14441 # and sets the high bit in the cache file unless we assign to the vars.
14442 (
14443 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14444 eval ac_val=\$$ac_var
14445 case $ac_val in #(
14446 *${as_nl}*)
14447 case $ac_var in #(
14448 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14449 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14450 esac
14451 case $ac_var in #(
14452 _ | IFS | as_nl) ;; #(
14453 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14454 *) { eval $ac_var=; unset $ac_var;} ;;
14455 esac ;;
14456 esac
14457 done
14458
14459 (set) 2>&1 |
14460 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14461 *${as_nl}ac_space=\ *)
14462 # `set' does not quote correctly, so add quotes: double-quote
14463 # substitution turns \\\\ into \\, and sed turns \\ into \.
14464 sed -n \
14465 "s/'/'\\\\''/g;
14466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14467 ;; #(
14468 *)
14469 # `set' quotes correctly as required by POSIX, so do not add quotes.
14470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14471 ;;
14472 esac |
14473 sort
14474 ) |
14475 sed '
14476 /^ac_cv_env_/b end
14477 t clear
14478 :clear
14479 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14480 t end
14481 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14482 :end' >>confcache
14483 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14484 if test -w "$cache_file"; then
14485 test "x$cache_file" != "x/dev/null" &&
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14487 $as_echo "$as_me: updating cache $cache_file" >&6;}
14488 cat confcache >$cache_file
14489 else
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14491 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14492 fi
14493 fi
14494 rm -f confcache
14495
14496 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14497 # Let make expand exec_prefix.
14498 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14499
14500 # Transform confdefs.h into DEFS.
14501 # Protect against shell expansion while executing Makefile rules.
14502 # Protect against Makefile macro expansion.
14503 #
14504 # If the first sed substitution is executed (which looks for macros that
14505 # take arguments), then branch to the quote section. Otherwise,
14506 # look for a macro that doesn't take arguments.
14507 ac_script='
14508 :mline
14509 /\\$/{
14510 N
14511 s,\\\n,,
14512 b mline
14513 }
14514 t clear
14515 :clear
14516 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14517 t quote
14518 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14519 t quote
14520 b any
14521 :quote
14522 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14523 s/\[/\\&/g
14524 s/\]/\\&/g
14525 s/\$/$$/g
14526 H
14527 :any
14528 ${
14529 g
14530 s/^\n//
14531 s/\n/ /g
14532 p
14533 }
14534 '
14535 DEFS=`sed -n "$ac_script" confdefs.h`
14536
14537
14538 ac_libobjs=
14539 ac_ltlibobjs=
14540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14541 # 1. Remove the extension, and $U if already installed.
14542 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14543 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14545 # will be set to the directory where LIBOBJS objects are built.
14546 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14547 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14548 done
14549 LIBOBJS=$ac_libobjs
14550
14551 LTLIBOBJS=$ac_ltlibobjs
14552
14553
14554
14555 : ${CONFIG_STATUS=./config.status}
14556 ac_write_fail=0
14557 ac_clean_files_save=$ac_clean_files
14558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14560 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14561 as_write_fail=0
14562 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14563 #! $SHELL
14564 # Generated by $as_me.
14565 # Run this file to recreate the current configuration.
14566 # Compiler output produced by configure, useful for debugging
14567 # configure, is in config.log if it exists.
14568
14569 debug=false
14570 ac_cs_recheck=false
14571 ac_cs_silent=false
14572
14573 SHELL=\${CONFIG_SHELL-$SHELL}
14574 export SHELL
14575 _ASEOF
14576 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14577 ## -------------------- ##
14578 ## M4sh Initialization. ##
14579 ## -------------------- ##
14580
14581 # Be more Bourne compatible
14582 DUALCASE=1; export DUALCASE # for MKS sh
14583 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14584 emulate sh
14585 NULLCMD=:
14586 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14587 # is contrary to our usage. Disable this feature.
14588 alias -g '${1+"$@"}'='"$@"'
14589 setopt NO_GLOB_SUBST
14590 else
14591 case `(set -o) 2>/dev/null` in #(
14592 *posix*) :
14593 set -o posix ;; #(
14594 *) :
14595 ;;
14596 esac
14597 fi
14598
14599
14600 as_nl='
14601 '
14602 export as_nl
14603 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14604 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14605 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14606 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14607 # Prefer a ksh shell builtin over an external printf program on Solaris,
14608 # but without wasting forks for bash or zsh.
14609 if test -z "$BASH_VERSION$ZSH_VERSION" \
14610 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14611 as_echo='print -r --'
14612 as_echo_n='print -rn --'
14613 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14614 as_echo='printf %s\n'
14615 as_echo_n='printf %s'
14616 else
14617 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14618 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14619 as_echo_n='/usr/ucb/echo -n'
14620 else
14621 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14622 as_echo_n_body='eval
14623 arg=$1;
14624 case $arg in #(
14625 *"$as_nl"*)
14626 expr "X$arg" : "X\\(.*\\)$as_nl";
14627 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14628 esac;
14629 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14630 '
14631 export as_echo_n_body
14632 as_echo_n='sh -c $as_echo_n_body as_echo'
14633 fi
14634 export as_echo_body
14635 as_echo='sh -c $as_echo_body as_echo'
14636 fi
14637
14638 # The user is always right.
14639 if test "${PATH_SEPARATOR+set}" != set; then
14640 PATH_SEPARATOR=:
14641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14642 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14643 PATH_SEPARATOR=';'
14644 }
14645 fi
14646
14647
14648 # IFS
14649 # We need space, tab and new line, in precisely that order. Quoting is
14650 # there to prevent editors from complaining about space-tab.
14651 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14652 # splitting by setting IFS to empty value.)
14653 IFS=" "" $as_nl"
14654
14655 # Find who we are. Look in the path if we contain no directory separator.
14656 case $0 in #((
14657 *[\\/]* ) as_myself=$0 ;;
14658 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659 for as_dir in $PATH
14660 do
14661 IFS=$as_save_IFS
14662 test -z "$as_dir" && as_dir=.
14663 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14664 done
14665 IFS=$as_save_IFS
14666
14667 ;;
14668 esac
14669 # We did not find ourselves, most probably we were run as `sh COMMAND'
14670 # in which case we are not to be found in the path.
14671 if test "x$as_myself" = x; then
14672 as_myself=$0
14673 fi
14674 if test ! -f "$as_myself"; then
14675 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14676 exit 1
14677 fi
14678
14679 # Unset variables that we do not need and which cause bugs (e.g. in
14680 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14681 # suppresses any "Segmentation fault" message there. '((' could
14682 # trigger a bug in pdksh 5.2.14.
14683 for as_var in BASH_ENV ENV MAIL MAILPATH
14684 do eval test x\${$as_var+set} = xset \
14685 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14686 done
14687 PS1='$ '
14688 PS2='> '
14689 PS4='+ '
14690
14691 # NLS nuisances.
14692 LC_ALL=C
14693 export LC_ALL
14694 LANGUAGE=C
14695 export LANGUAGE
14696
14697 # CDPATH.
14698 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14699
14700
14701 # as_fn_error ERROR [LINENO LOG_FD]
14702 # ---------------------------------
14703 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14704 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14705 # script with status $?, using 1 if that was 0.
14706 as_fn_error ()
14707 {
14708 as_status=$?; test $as_status -eq 0 && as_status=1
14709 if test "$3"; then
14710 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14711 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14712 fi
14713 $as_echo "$as_me: error: $1" >&2
14714 as_fn_exit $as_status
14715 } # as_fn_error
14716
14717
14718 # as_fn_set_status STATUS
14719 # -----------------------
14720 # Set $? to STATUS, without forking.
14721 as_fn_set_status ()
14722 {
14723 return $1
14724 } # as_fn_set_status
14725
14726 # as_fn_exit STATUS
14727 # -----------------
14728 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14729 as_fn_exit ()
14730 {
14731 set +e
14732 as_fn_set_status $1
14733 exit $1
14734 } # as_fn_exit
14735
14736 # as_fn_unset VAR
14737 # ---------------
14738 # Portably unset VAR.
14739 as_fn_unset ()
14740 {
14741 { eval $1=; unset $1;}
14742 }
14743 as_unset=as_fn_unset
14744 # as_fn_append VAR VALUE
14745 # ----------------------
14746 # Append the text in VALUE to the end of the definition contained in VAR. Take
14747 # advantage of any shell optimizations that allow amortized linear growth over
14748 # repeated appends, instead of the typical quadratic growth present in naive
14749 # implementations.
14750 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14751 eval 'as_fn_append ()
14752 {
14753 eval $1+=\$2
14754 }'
14755 else
14756 as_fn_append ()
14757 {
14758 eval $1=\$$1\$2
14759 }
14760 fi # as_fn_append
14761
14762 # as_fn_arith ARG...
14763 # ------------------
14764 # Perform arithmetic evaluation on the ARGs, and store the result in the
14765 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14766 # must be portable across $(()) and expr.
14767 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14768 eval 'as_fn_arith ()
14769 {
14770 as_val=$(( $* ))
14771 }'
14772 else
14773 as_fn_arith ()
14774 {
14775 as_val=`expr "$@" || test $? -eq 1`
14776 }
14777 fi # as_fn_arith
14778
14779
14780 if expr a : '\(a\)' >/dev/null 2>&1 &&
14781 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14782 as_expr=expr
14783 else
14784 as_expr=false
14785 fi
14786
14787 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14788 as_basename=basename
14789 else
14790 as_basename=false
14791 fi
14792
14793 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14794 as_dirname=dirname
14795 else
14796 as_dirname=false
14797 fi
14798
14799 as_me=`$as_basename -- "$0" ||
14800 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14801 X"$0" : 'X\(//\)$' \| \
14802 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14803 $as_echo X/"$0" |
14804 sed '/^.*\/\([^/][^/]*\)\/*$/{
14805 s//\1/
14806 q
14807 }
14808 /^X\/\(\/\/\)$/{
14809 s//\1/
14810 q
14811 }
14812 /^X\/\(\/\).*/{
14813 s//\1/
14814 q
14815 }
14816 s/.*/./; q'`
14817
14818 # Avoid depending upon Character Ranges.
14819 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14820 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14821 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14822 as_cr_digits='0123456789'
14823 as_cr_alnum=$as_cr_Letters$as_cr_digits
14824
14825 ECHO_C= ECHO_N= ECHO_T=
14826 case `echo -n x` in #(((((
14827 -n*)
14828 case `echo 'xy\c'` in
14829 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14830 xy) ECHO_C='\c';;
14831 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14832 ECHO_T=' ';;
14833 esac;;
14834 *)
14835 ECHO_N='-n';;
14836 esac
14837
14838 rm -f conf$$ conf$$.exe conf$$.file
14839 if test -d conf$$.dir; then
14840 rm -f conf$$.dir/conf$$.file
14841 else
14842 rm -f conf$$.dir
14843 mkdir conf$$.dir 2>/dev/null
14844 fi
14845 if (echo >conf$$.file) 2>/dev/null; then
14846 if ln -s conf$$.file conf$$ 2>/dev/null; then
14847 as_ln_s='ln -s'
14848 # ... but there are two gotchas:
14849 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14850 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14851 # In both cases, we have to default to `cp -p'.
14852 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14853 as_ln_s='cp -p'
14854 elif ln conf$$.file conf$$ 2>/dev/null; then
14855 as_ln_s=ln
14856 else
14857 as_ln_s='cp -p'
14858 fi
14859 else
14860 as_ln_s='cp -p'
14861 fi
14862 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14863 rmdir conf$$.dir 2>/dev/null
14864
14865
14866 # as_fn_mkdir_p
14867 # -------------
14868 # Create "$as_dir" as a directory, including parents if necessary.
14869 as_fn_mkdir_p ()
14870 {
14871
14872 case $as_dir in #(
14873 -*) as_dir=./$as_dir;;
14874 esac
14875 test -d "$as_dir" || eval $as_mkdir_p || {
14876 as_dirs=
14877 while :; do
14878 case $as_dir in #(
14879 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14880 *) as_qdir=$as_dir;;
14881 esac
14882 as_dirs="'$as_qdir' $as_dirs"
14883 as_dir=`$as_dirname -- "$as_dir" ||
14884 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14885 X"$as_dir" : 'X\(//\)[^/]' \| \
14886 X"$as_dir" : 'X\(//\)$' \| \
14887 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14888 $as_echo X"$as_dir" |
14889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14890 s//\1/
14891 q
14892 }
14893 /^X\(\/\/\)[^/].*/{
14894 s//\1/
14895 q
14896 }
14897 /^X\(\/\/\)$/{
14898 s//\1/
14899 q
14900 }
14901 /^X\(\/\).*/{
14902 s//\1/
14903 q
14904 }
14905 s/.*/./; q'`
14906 test -d "$as_dir" && break
14907 done
14908 test -z "$as_dirs" || eval "mkdir $as_dirs"
14909 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14910
14911
14912 } # as_fn_mkdir_p
14913 if mkdir -p . 2>/dev/null; then
14914 as_mkdir_p='mkdir -p "$as_dir"'
14915 else
14916 test -d ./-p && rmdir ./-p
14917 as_mkdir_p=false
14918 fi
14919
14920 if test -x / >/dev/null 2>&1; then
14921 as_test_x='test -x'
14922 else
14923 if ls -dL / >/dev/null 2>&1; then
14924 as_ls_L_option=L
14925 else
14926 as_ls_L_option=
14927 fi
14928 as_test_x='
14929 eval sh -c '\''
14930 if test -d "$1"; then
14931 test -d "$1/.";
14932 else
14933 case $1 in #(
14934 -*)set "./$1";;
14935 esac;
14936 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14937 ???[sx]*):;;*)false;;esac;fi
14938 '\'' sh
14939 '
14940 fi
14941 as_executable_p=$as_test_x
14942
14943 # Sed expression to map a string onto a valid CPP name.
14944 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14945
14946 # Sed expression to map a string onto a valid variable name.
14947 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14948
14949
14950 exec 6>&1
14951 ## ----------------------------------- ##
14952 ## Main body of $CONFIG_STATUS script. ##
14953 ## ----------------------------------- ##
14954 _ASEOF
14955 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14956
14957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14958 # Save the log message, to keep $0 and so on meaningful, and to
14959 # report actual input values of CONFIG_FILES etc. instead of their
14960 # values after options handling.
14961 ac_log="
14962 This file was extended by $as_me, which was
14963 generated by GNU Autoconf 2.64. Invocation command line was
14964
14965 CONFIG_FILES = $CONFIG_FILES
14966 CONFIG_HEADERS = $CONFIG_HEADERS
14967 CONFIG_LINKS = $CONFIG_LINKS
14968 CONFIG_COMMANDS = $CONFIG_COMMANDS
14969 $ $0 $@
14970
14971 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14972 "
14973
14974 _ACEOF
14975
14976 case $ac_config_files in *"
14977 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14978 esac
14979
14980
14981
14982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14983 # Files that config.status was made for.
14984 config_files="$ac_config_files"
14985
14986 _ACEOF
14987
14988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14989 ac_cs_usage="\
14990 \`$as_me' instantiates files and other configuration actions
14991 from templates according to the current configuration. Unless the files
14992 and actions are specified as TAGs, all are instantiated by default.
14993
14994 Usage: $0 [OPTION]... [TAG]...
14995
14996 -h, --help print this help, then exit
14997 -V, --version print version number and configuration settings, then exit
14998 -q, --quiet, --silent
14999 do not print progress messages
15000 -d, --debug don't remove temporary files
15001 --recheck update $as_me by reconfiguring in the same conditions
15002 --file=FILE[:TEMPLATE]
15003 instantiate the configuration file FILE
15004
15005 Configuration files:
15006 $config_files
15007
15008 Report bugs to the package provider."
15009
15010 _ACEOF
15011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15012 ac_cs_version="\\
15013 config.status
15014 configured by $0, generated by GNU Autoconf 2.64,
15015 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15016
15017 Copyright (C) 2009 Free Software Foundation, Inc.
15018 This config.status script is free software; the Free Software Foundation
15019 gives unlimited permission to copy, distribute and modify it."
15020
15021 ac_pwd='$ac_pwd'
15022 srcdir='$srcdir'
15023 INSTALL='$INSTALL'
15024 AWK='$AWK'
15025 test -n "\$AWK" || AWK=awk
15026 _ACEOF
15027
15028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15029 # The default lists apply if the user does not specify any file.
15030 ac_need_defaults=:
15031 while test $# != 0
15032 do
15033 case $1 in
15034 --*=*)
15035 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15036 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15037 ac_shift=:
15038 ;;
15039 *)
15040 ac_option=$1
15041 ac_optarg=$2
15042 ac_shift=shift
15043 ;;
15044 esac
15045
15046 case $ac_option in
15047 # Handling of the options.
15048 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15049 ac_cs_recheck=: ;;
15050 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15051 $as_echo "$ac_cs_version"; exit ;;
15052 --debug | --debu | --deb | --de | --d | -d )
15053 debug=: ;;
15054 --file | --fil | --fi | --f )
15055 $ac_shift
15056 case $ac_optarg in
15057 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15058 esac
15059 as_fn_append CONFIG_FILES " '$ac_optarg'"
15060 ac_need_defaults=false;;
15061 --he | --h | --help | --hel | -h )
15062 $as_echo "$ac_cs_usage"; exit ;;
15063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15064 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15065 ac_cs_silent=: ;;
15066
15067 # This is an error.
15068 -*) as_fn_error "unrecognized option: \`$1'
15069 Try \`$0 --help' for more information." ;;
15070
15071 *) as_fn_append ac_config_targets " $1"
15072 ac_need_defaults=false ;;
15073
15074 esac
15075 shift
15076 done
15077
15078 ac_configure_extra_args=
15079
15080 if $ac_cs_silent; then
15081 exec 6>/dev/null
15082 ac_configure_extra_args="$ac_configure_extra_args --silent"
15083 fi
15084
15085 _ACEOF
15086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15087 if \$ac_cs_recheck; then
15088 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15089 shift
15090 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15091 CONFIG_SHELL='$SHELL'
15092 export CONFIG_SHELL
15093 exec "\$@"
15094 fi
15095
15096 _ACEOF
15097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15098 exec 5>>config.log
15099 {
15100 echo
15101 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15102 ## Running $as_me. ##
15103 _ASBOX
15104 $as_echo "$ac_log"
15105 } >&5
15106
15107 _ACEOF
15108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15109 #
15110 # INIT-COMMANDS
15111 #
15112 extrasub_build="$extrasub_build"
15113 extrasub_host="$extrasub_host"
15114 extrasub_target="$extrasub_target"
15115
15116 _ACEOF
15117
15118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15119
15120 # Handling of arguments.
15121 for ac_config_target in $ac_config_targets
15122 do
15123 case $ac_config_target in
15124 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15125
15126 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15127 esac
15128 done
15129
15130
15131 # If the user did not use the arguments to specify the items to instantiate,
15132 # then the envvar interface is used. Set only those that are not.
15133 # We use the long form for the default assignment because of an extremely
15134 # bizarre bug on SunOS 4.1.3.
15135 if $ac_need_defaults; then
15136 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15137 fi
15138
15139 # Have a temporary directory for convenience. Make it in the build tree
15140 # simply because there is no reason against having it here, and in addition,
15141 # creating and moving files from /tmp can sometimes cause problems.
15142 # Hook for its removal unless debugging.
15143 # Note that there is a small window in which the directory will not be cleaned:
15144 # after its creation but before its name has been assigned to `$tmp'.
15145 $debug ||
15146 {
15147 tmp=
15148 trap 'exit_status=$?
15149 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15150 ' 0
15151 trap 'as_fn_exit 1' 1 2 13 15
15152 }
15153 # Create a (secure) tmp directory for tmp files.
15154
15155 {
15156 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15157 test -n "$tmp" && test -d "$tmp"
15158 } ||
15159 {
15160 tmp=./conf$$-$RANDOM
15161 (umask 077 && mkdir "$tmp")
15162 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15163
15164 # Set up the scripts for CONFIG_FILES section.
15165 # No need to generate them if there are no CONFIG_FILES.
15166 # This happens for instance with `./config.status config.h'.
15167 if test -n "$CONFIG_FILES"; then
15168
15169 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15170 ac_cs_awk_getline=:
15171 ac_cs_awk_pipe_init=
15172 ac_cs_awk_read_file='
15173 while ((getline aline < (F[key])) > 0)
15174 print(aline)
15175 close(F[key])'
15176 ac_cs_awk_pipe_fini=
15177 else
15178 ac_cs_awk_getline=false
15179 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15180 ac_cs_awk_read_file='
15181 print "|#_!!_#|"
15182 print "cat " F[key] " &&"
15183 '$ac_cs_awk_pipe_init
15184 # The final `:' finishes the AND list.
15185 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15186 fi
15187 ac_cr=`echo X | tr X '\015'`
15188 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15189 # But we know of no other shell where ac_cr would be empty at this
15190 # point, so we can use a bashism as a fallback.
15191 if test "x$ac_cr" = x; then
15192 eval ac_cr=\$\'\\r\'
15193 fi
15194 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15195 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15196 ac_cs_awk_cr='\r'
15197 else
15198 ac_cs_awk_cr=$ac_cr
15199 fi
15200
15201 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15202 _ACEOF
15203
15204 # Create commands to substitute file output variables.
15205 {
15206 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15207 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15208 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15209 echo "_ACAWK" &&
15210 echo "_ACEOF"
15211 } >conf$$files.sh &&
15212 . ./conf$$files.sh ||
15213 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15214 rm -f conf$$files.sh
15215
15216 {
15217 echo "cat >conf$$subs.awk <<_ACEOF" &&
15218 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15219 echo "_ACEOF"
15220 } >conf$$subs.sh ||
15221 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15222 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15223 ac_delim='%!_!# '
15224 for ac_last_try in false false false false false :; do
15225 . ./conf$$subs.sh ||
15226 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15227
15228 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15229 if test $ac_delim_n = $ac_delim_num; then
15230 break
15231 elif $ac_last_try; then
15232 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15233 else
15234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15235 fi
15236 done
15237 rm -f conf$$subs.sh
15238
15239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15240 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15241 _ACEOF
15242 sed -n '
15243 h
15244 s/^/S["/; s/!.*/"]=/
15245 p
15246 g
15247 s/^[^!]*!//
15248 :repl
15249 t repl
15250 s/'"$ac_delim"'$//
15251 t delim
15252 :nl
15253 h
15254 s/\(.\{148\}\).*/\1/
15255 t more1
15256 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15257 p
15258 n
15259 b repl
15260 :more1
15261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15262 p
15263 g
15264 s/.\{148\}//
15265 t nl
15266 :delim
15267 h
15268 s/\(.\{148\}\).*/\1/
15269 t more2
15270 s/["\\]/\\&/g; s/^/"/; s/$/"/
15271 p
15272 b
15273 :more2
15274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15275 p
15276 g
15277 s/.\{148\}//
15278 t delim
15279 ' <conf$$subs.awk | sed '
15280 /^[^""]/{
15281 N
15282 s/\n//
15283 }
15284 ' >>$CONFIG_STATUS || ac_write_fail=1
15285 rm -f conf$$subs.awk
15286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15287 _ACAWK
15288 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15289 for (key in S) S_is_set[key] = 1
15290 FS = ""
15291 \$ac_cs_awk_pipe_init
15292 }
15293 {
15294 line = $ 0
15295 nfields = split(line, field, "@")
15296 substed = 0
15297 len = length(field[1])
15298 for (i = 2; i < nfields; i++) {
15299 key = field[i]
15300 keylen = length(key)
15301 if (S_is_set[key]) {
15302 value = S[key]
15303 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15304 len += length(value) + length(field[++i])
15305 substed = 1
15306 } else
15307 len += 1 + keylen
15308 }
15309 if (nfields == 3 && !substed) {
15310 key = field[2]
15311 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15312 \$ac_cs_awk_read_file
15313 next
15314 }
15315 }
15316 print line
15317 }
15318 \$ac_cs_awk_pipe_fini
15319 _ACAWK
15320 _ACEOF
15321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15322 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15323 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15324 else
15325 cat
15326 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15327 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15328 _ACEOF
15329
15330 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15331 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15332 # trailing colons and then remove the whole line if VPATH becomes empty
15333 # (actually we leave an empty line to preserve line numbers).
15334 if test "x$srcdir" = x.; then
15335 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15336 s/:*\$(srcdir):*/:/
15337 s/:*\${srcdir}:*/:/
15338 s/:*@srcdir@:*/:/
15339 s/^\([^=]*=[ ]*\):*/\1/
15340 s/:*$//
15341 s/^[^=]*=[ ]*$//
15342 }'
15343 fi
15344
15345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15346 fi # test -n "$CONFIG_FILES"
15347
15348
15349 eval set X " :F $CONFIG_FILES "
15350 shift
15351 for ac_tag
15352 do
15353 case $ac_tag in
15354 :[FHLC]) ac_mode=$ac_tag; continue;;
15355 esac
15356 case $ac_mode$ac_tag in
15357 :[FHL]*:*);;
15358 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15359 :[FH]-) ac_tag=-:-;;
15360 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15361 esac
15362 ac_save_IFS=$IFS
15363 IFS=:
15364 set x $ac_tag
15365 IFS=$ac_save_IFS
15366 shift
15367 ac_file=$1
15368 shift
15369
15370 case $ac_mode in
15371 :L) ac_source=$1;;
15372 :[FH])
15373 ac_file_inputs=
15374 for ac_f
15375 do
15376 case $ac_f in
15377 -) ac_f="$tmp/stdin";;
15378 *) # Look for the file first in the build tree, then in the source tree
15379 # (if the path is not absolute). The absolute path cannot be DOS-style,
15380 # because $ac_f cannot contain `:'.
15381 test -f "$ac_f" ||
15382 case $ac_f in
15383 [\\/$]*) false;;
15384 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15385 esac ||
15386 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15387 esac
15388 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15389 as_fn_append ac_file_inputs " '$ac_f'"
15390 done
15391
15392 # Let's still pretend it is `configure' which instantiates (i.e., don't
15393 # use $as_me), people would be surprised to read:
15394 # /* config.h. Generated by config.status. */
15395 configure_input='Generated from '`
15396 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15397 `' by configure.'
15398 if test x"$ac_file" != x-; then
15399 configure_input="$ac_file. $configure_input"
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15401 $as_echo "$as_me: creating $ac_file" >&6;}
15402 fi
15403 # Neutralize special characters interpreted by sed in replacement strings.
15404 case $configure_input in #(
15405 *\&* | *\|* | *\\* )
15406 ac_sed_conf_input=`$as_echo "$configure_input" |
15407 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15408 *) ac_sed_conf_input=$configure_input;;
15409 esac
15410
15411 case $ac_tag in
15412 *:-:* | *:-) cat >"$tmp/stdin" \
15413 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15414 esac
15415 ;;
15416 esac
15417
15418 ac_dir=`$as_dirname -- "$ac_file" ||
15419 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15420 X"$ac_file" : 'X\(//\)[^/]' \| \
15421 X"$ac_file" : 'X\(//\)$' \| \
15422 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15423 $as_echo X"$ac_file" |
15424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15425 s//\1/
15426 q
15427 }
15428 /^X\(\/\/\)[^/].*/{
15429 s//\1/
15430 q
15431 }
15432 /^X\(\/\/\)$/{
15433 s//\1/
15434 q
15435 }
15436 /^X\(\/\).*/{
15437 s//\1/
15438 q
15439 }
15440 s/.*/./; q'`
15441 as_dir="$ac_dir"; as_fn_mkdir_p
15442 ac_builddir=.
15443
15444 case "$ac_dir" in
15445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15446 *)
15447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15448 # A ".." for each directory in $ac_dir_suffix.
15449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15450 case $ac_top_builddir_sub in
15451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15453 esac ;;
15454 esac
15455 ac_abs_top_builddir=$ac_pwd
15456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15457 # for backward compatibility:
15458 ac_top_builddir=$ac_top_build_prefix
15459
15460 case $srcdir in
15461 .) # We are building in place.
15462 ac_srcdir=.
15463 ac_top_srcdir=$ac_top_builddir_sub
15464 ac_abs_top_srcdir=$ac_pwd ;;
15465 [\\/]* | ?:[\\/]* ) # Absolute name.
15466 ac_srcdir=$srcdir$ac_dir_suffix;
15467 ac_top_srcdir=$srcdir
15468 ac_abs_top_srcdir=$srcdir ;;
15469 *) # Relative name.
15470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15471 ac_top_srcdir=$ac_top_build_prefix$srcdir
15472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15473 esac
15474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15475
15476
15477 case $ac_mode in
15478 :F)
15479 #
15480 # CONFIG_FILE
15481 #
15482
15483 case $INSTALL in
15484 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15485 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15486 esac
15487 _ACEOF
15488
15489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15490 # If the template does not know about datarootdir, expand it.
15491 # FIXME: This hack should be removed a few years after 2.60.
15492 ac_datarootdir_hack=; ac_datarootdir_seen=
15493 ac_sed_dataroot='
15494 /datarootdir/ {
15495 p
15496 q
15497 }
15498 /@datadir@/p
15499 /@docdir@/p
15500 /@infodir@/p
15501 /@localedir@/p
15502 /@mandir@/p'
15503 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15504 *datarootdir*) ac_datarootdir_seen=yes;;
15505 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15507 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15508 _ACEOF
15509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15510 ac_datarootdir_hack='
15511 s&@datadir@&$datadir&g
15512 s&@docdir@&$docdir&g
15513 s&@infodir@&$infodir&g
15514 s&@localedir@&$localedir&g
15515 s&@mandir@&$mandir&g
15516 s&\\\${datarootdir}&$datarootdir&g' ;;
15517 esac
15518 _ACEOF
15519
15520 # Neutralize VPATH when `$srcdir' = `.'.
15521 # Shell code in configure.ac might set extrasub.
15522 # FIXME: do we really want to maintain this feature?
15523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15524 ac_sed_extra="$ac_vpsub
15525 $extrasub
15526 _ACEOF
15527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15528 :t
15529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15530 s|@configure_input@|$ac_sed_conf_input|;t t
15531 s&@top_builddir@&$ac_top_builddir_sub&;t t
15532 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15533 s&@srcdir@&$ac_srcdir&;t t
15534 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15535 s&@top_srcdir@&$ac_top_srcdir&;t t
15536 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15537 s&@builddir@&$ac_builddir&;t t
15538 s&@abs_builddir@&$ac_abs_builddir&;t t
15539 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15540 s&@INSTALL@&$ac_INSTALL&;t t
15541 $ac_datarootdir_hack
15542 "
15543 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15544 if $ac_cs_awk_getline; then
15545 $AWK -f "$tmp/subs.awk"
15546 else
15547 $AWK -f "$tmp/subs.awk" | $SHELL
15548 fi >$tmp/out \
15549 || as_fn_error "could not create $ac_file" "$LINENO" 5
15550
15551 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15552 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15553 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15555 which seems to be undefined. Please make sure it is defined." >&5
15556 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15557 which seems to be undefined. Please make sure it is defined." >&2;}
15558
15559 rm -f "$tmp/stdin"
15560 case $ac_file in
15561 -) cat "$tmp/out" && rm -f "$tmp/out";;
15562 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15563 esac \
15564 || as_fn_error "could not create $ac_file" "$LINENO" 5
15565 ;;
15566
15567
15568
15569 esac
15570
15571
15572 case $ac_file$ac_mode in
15573 "Makefile":F) sed "$extrasub_build" Makefile |
15574 sed "$extrasub_host" |
15575 sed "$extrasub_target" > mf$$
15576 mv -f mf$$ Makefile ;;
15577
15578 esac
15579 done # for ac_tag
15580
15581
15582 as_fn_exit 0
15583 _ACEOF
15584 ac_clean_files=$ac_clean_files_save
15585
15586 test $ac_write_fail = 0 ||
15587 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15588
15589
15590 # configure is writing to config.log, and then calls config.status.
15591 # config.status does its own redirection, appending to config.log.
15592 # Unfortunately, on DOS this fails, as config.log is still kept open
15593 # by configure, so config.status won't be able to write to it; its
15594 # output is simply discarded. So we exec the FD to /dev/null,
15595 # effectively closing config.log, so it can be properly (re)opened and
15596 # appended to by config.status. When coming back to configure, we
15597 # need to make the FD available again.
15598 if test "$no_create" != yes; then
15599 ac_cs_success=:
15600 ac_config_status_args=
15601 test "$silent" = yes &&
15602 ac_config_status_args="$ac_config_status_args --quiet"
15603 exec 5>/dev/null
15604 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15605 exec 5>>config.log
15606 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15607 # would make configure fail if this is the last instruction.
15608 $ac_cs_success || as_fn_exit $?
15609 fi
15610 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15612 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15613 fi
15614
15615