PR go/55969
[deliverable/binutils-gdb.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 READELF_FOR_TARGET
574 RANLIB_FOR_TARGET
575 OBJDUMP_FOR_TARGET
576 NM_FOR_TARGET
577 LIPO_FOR_TARGET
578 LD_FOR_TARGET
579 DLLTOOL_FOR_TARGET
580 AS_FOR_TARGET
581 AR_FOR_TARGET
582 GOC_FOR_TARGET
583 GFORTRAN_FOR_TARGET
584 GCJ_FOR_TARGET
585 GCC_FOR_TARGET
586 CXX_FOR_TARGET
587 CC_FOR_TARGET
588 READELF
589 OBJDUMP
590 OBJCOPY
591 WINDMC
592 WINDRES
593 STRIP
594 RANLIB
595 NM
596 LIPO
597 LD
598 DLLTOOL
599 AS
600 AR
601 RUNTEST
602 EXPECT
603 MAKEINFO
604 FLEX
605 LEX
606 M4
607 BISON
608 YACC
609 WINDRES_FOR_BUILD
610 WINDMC_FOR_BUILD
611 RANLIB_FOR_BUILD
612 NM_FOR_BUILD
613 LD_FOR_BUILD
614 LDFLAGS_FOR_BUILD
615 GOC_FOR_BUILD
616 GFORTRAN_FOR_BUILD
617 GCJ_FOR_BUILD
618 DLLTOOL_FOR_BUILD
619 CXX_FOR_BUILD
620 CXXFLAGS_FOR_BUILD
621 CFLAGS_FOR_BUILD
622 CC_FOR_BUILD
623 AS_FOR_BUILD
624 AR_FOR_BUILD
625 target_configdirs
626 configdirs
627 build_configdirs
628 INSTALL_GDB_TK
629 GDB_TK
630 CONFIGURE_GDB_TK
631 build_tooldir
632 tooldir
633 GCC_SHLIB_SUBDIR
634 RPATH_ENVVAR
635 target_configargs
636 host_configargs
637 build_configargs
638 BUILD_CONFIG
639 LDFLAGS_FOR_TARGET
640 CXXFLAGS_FOR_TARGET
641 CFLAGS_FOR_TARGET
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
644 stage1_languages
645 extra_host_libiberty_configure_flags
646 clooginc
647 clooglibs
648 islinc
649 poststage1_ldflags
650 poststage1_libs
651 stage1_ldflags
652 stage1_libs
653 extra_isl_gmp_configure_flags
654 extra_mpc_mpfr_configure_flags
655 extra_mpc_gmp_configure_flags
656 extra_mpfr_configure_flags
657 gmpinc
658 gmplibs
659 do_compare
660 GNATMAKE
661 GNATBIND
662 ac_ct_CXX
663 CXXFLAGS
664 CXX
665 OBJEXT
666 EXEEXT
667 ac_ct_CC
668 CPPFLAGS
669 LDFLAGS
670 CFLAGS
671 CC
672 EXTRA_CONFIGARGS_LIBJAVA
673 target_subdir
674 host_subdir
675 build_subdir
676 build_libsubdir
677 AWK
678 SED
679 LN_S
680 LN
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 target_os
685 target_vendor
686 target_cpu
687 target
688 host_os
689 host_vendor
690 host_cpu
691 host
692 target_noncanonical
693 host_noncanonical
694 build_noncanonical
695 build_os
696 build_vendor
697 build_cpu
698 build
699 TOPLEVEL_CONFIGURE_ARGUMENTS
700 target_alias
701 host_alias
702 build_alias
703 LIBS
704 ECHO_T
705 ECHO_N
706 ECHO_C
707 DEFS
708 mandir
709 localedir
710 libdir
711 psdir
712 pdfdir
713 dvidir
714 htmldir
715 infodir
716 docdir
717 oldincludedir
718 includedir
719 localstatedir
720 sharedstatedir
721 sysconfdir
722 datadir
723 datarootdir
724 libexecdir
725 sbindir
726 bindir
727 program_transform_name
728 prefix
729 exec_prefix
730 PACKAGE_URL
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files='serialization_dependencies
739 host_makefile_frag
740 target_makefile_frag
741 alphaieee_frag
742 ospace_frag'
743 ac_user_opts='
744 enable_option_checking
745 with_build_libsubdir
746 enable_gold
747 enable_ld
748 enable_libquadmath
749 enable_libquadmath_support
750 enable_libada
751 enable_libssp
752 enable_libstdcxx
753 enable_static_libjava
754 enable_bootstrap
755 with_mpc
756 with_mpc_include
757 with_mpc_lib
758 with_mpfr_dir
759 with_mpfr
760 with_mpfr_include
761 with_mpfr_lib
762 with_gmp_dir
763 with_gmp
764 with_gmp_include
765 with_gmp_lib
766 with_host_libstdcxx
767 with_stage1_libs
768 with_stage1_ldflags
769 with_boot_libs
770 with_boot_ldflags
771 with_cloog
772 with_isl
773 with_isl_include
774 with_isl_lib
775 enable_isl_version_check
776 with_cloog_include
777 with_cloog_lib
778 enable_cloog_version_check
779 enable_lto
780 enable_stage1_languages
781 enable_objc_gc
782 with_build_sysroot
783 with_debug_prefix_map
784 with_build_config
785 enable_serial_configure
786 with_build_time_tools
787 enable_maintainer_mode
788 enable_stage1_checking
789 enable_werror
790 '
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 CXX
800 CXXFLAGS
801 CCC
802 build_configargs
803 host_configargs
804 target_configargs
805 AR
806 AS
807 DLLTOOL
808 LD
809 LIPO
810 NM
811 RANLIB
812 STRIP
813 WINDRES
814 WINDMC
815 OBJCOPY
816 OBJDUMP
817 READELF
818 CC_FOR_TARGET
819 CXX_FOR_TARGET
820 GCC_FOR_TARGET
821 GCJ_FOR_TARGET
822 GFORTRAN_FOR_TARGET
823 GOC_FOR_TARGET
824 AR_FOR_TARGET
825 AS_FOR_TARGET
826 DLLTOOL_FOR_TARGET
827 LD_FOR_TARGET
828 LIPO_FOR_TARGET
829 NM_FOR_TARGET
830 OBJDUMP_FOR_TARGET
831 RANLIB_FOR_TARGET
832 READELF_FOR_TARGET
833 STRIP_FOR_TARGET
834 WINDRES_FOR_TARGET
835 WINDMC_FOR_TARGET'
836
837
838 # Initialize some variables set by options.
839 ac_init_help=
840 ac_init_version=false
841 ac_unrecognized_opts=
842 ac_unrecognized_sep=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
859
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
885
886 ac_prev=
887 ac_dashdash=
888 for ac_option
889 do
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\$ac_option
893 ac_prev=
894 continue
895 fi
896
897 case $ac_option in
898 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information."
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1240 ;;
1241
1242 esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1263 do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295 fi
1296
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300 test "$silent" = yes && exec 6>/dev/null
1301
1302
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 as_fn_error "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308 as_fn_error "pwd does not report name of working directory"
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
1314 # Try the directory containing this script, then the parent directory.
1315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
1338 srcdir=$ac_confdir
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 srcdir=..
1341 fi
1342 else
1343 ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1352 pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356 fi
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 case $srcdir in
1364 *" "*)
1365 as_fn_error "path to source, $srcdir, contains spaces"
1366 ;;
1367 esac
1368 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1369
1370 for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 done
1376
1377 #
1378 # Report the --help message.
1379 #
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1383 cat <<_ACEOF
1384 \`configure' configures this package to adapt to many kinds of systems.
1385
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1390
1391 Defaults for the options are specified in brackets.
1392
1393 Configuration:
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 [PREFIX]
1409
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1414
1415 For better control, use the options below.
1416
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1437 _ACEOF
1438
1439 cat <<\_ACEOF
1440
1441 Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445
1446 System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1450 _ACEOF
1451 fi
1452
1453 if test -n "$ac_init_help"; then
1454
1455 cat <<\_ACEOF
1456
1457 Optional Features:
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1462 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1463 --disable-libquadmath do not build libquadmath directory
1464 --disable-libquadmath-support
1465 disable libquadmath support for Fortran
1466 --enable-libada build libada directory
1467 --enable-libssp build libssp directory
1468 --disable-libstdcxx do not build libstdc++-v3 directory
1469 --enable-static-libjava[=ARG]
1470 build static libjava [default=no]
1471 --enable-bootstrap enable bootstrapping [yes if native build]
1472 --disable-isl-version-check
1473 disable check for ISL version
1474 --disable-cloog-version-check
1475 disable check for CLooG version
1476 --enable-lto enable link time optimization support
1477 --enable-stage1-languages[=all]
1478 choose additional languages to build during stage1.
1479 Mostly useful for compiler development
1480 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1481 Objective-C runtime
1482 --enable-serial-[{host,target,build}-]configure
1483 force sequential configuration of sub-packages for
1484 the host, target or build machine, or all
1485 sub-packages
1486 --enable-maintainer-mode
1487 enable make rules and dependencies not useful (and
1488 sometimes confusing) to the casual installer
1489 --enable-stage1-checking[=all]
1490 choose additional checking for stage1 of the
1491 compiler
1492 --enable-werror enable -Werror in bootstrap stage2 and later
1493
1494 Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-build-libsubdir=DIR Directory where to find libraries for build system
1498 --with-mpc=PATH specify prefix directory for installed MPC package.
1499 Equivalent to --with-mpc-include=PATH/include plus
1500 --with-mpc-lib=PATH/lib
1501 --with-mpc-include=PATH specify directory for installed MPC include files
1502 --with-mpc-lib=PATH specify directory for the installed MPC library
1503 --with-mpfr-dir=PATH this option has been REMOVED
1504 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1505 Equivalent to --with-mpfr-include=PATH/include plus
1506 --with-mpfr-lib=PATH/lib
1507 --with-mpfr-include=PATH
1508 specify directory for installed MPFR include files
1509 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1510 --with-gmp-dir=PATH this option has been REMOVED
1511 --with-gmp=PATH specify prefix directory for the installed GMP
1512 package. Equivalent to
1513 --with-gmp-include=PATH/include plus
1514 --with-gmp-lib=PATH/lib
1515 --with-gmp-include=PATH specify directory for installed GMP include files
1516 --with-gmp-lib=PATH specify directory for the installed GMP library
1517 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1518 linking with PPL
1519 --with-stage1-libs=LIBS libraries for stage1
1520 --with-stage1-ldflags=FLAGS
1521 linker flags for stage1
1522 --with-boot-libs=LIBS libraries for stage2 and later
1523 --with-boot-ldflags=FLAGS
1524 linker flags for stage2 and later
1525 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1526 package. Equivalent to
1527 --with-cloog-include=PATH/include plus
1528 --with-cloog-lib=PATH/lib
1529 --with-isl=PATH Specify prefix directory for the installed ISL
1530 package. Equivalent to
1531 --with-isl-include=PATH/include plus
1532 --with-isl-lib=PATH/lib
1533 --with-isl-include=PATH Specify directory for installed ISL include files
1534 --with-isl-lib=PATH Specify the directory for the installed ISL library
1535 --with-cloog-include=PATH
1536 Specify directory for installed CLooG include files
1537 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1538 library
1539 --with-build-sysroot=SYSROOT
1540 use sysroot as the system root during the build
1541 --with-debug-prefix-map='A=B C=D ...'
1542 map A to B, C to D ... in debug information
1543 --with-build-config='NAME NAME2...'
1544 use config/NAME.mk build configuration
1545 --with-build-time-tools=PATH
1546 use given path to find target tools during the build
1547
1548 Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
1556 CXX C++ compiler command
1557 CXXFLAGS C++ compiler flags
1558 build_configargs
1559 additional configure arguments for build directories
1560 host_configargs
1561 additional configure arguments for host directories
1562 target_configargs
1563 additional configure arguments for target directories
1564 AR AR for the host
1565 AS AS for the host
1566 DLLTOOL DLLTOOL for the host
1567 LD LD for the host
1568 LIPO LIPO for the host
1569 NM NM for the host
1570 RANLIB RANLIB for the host
1571 STRIP STRIP for the host
1572 WINDRES WINDRES for the host
1573 WINDMC WINDMC for the host
1574 OBJCOPY OBJCOPY for the host
1575 OBJDUMP OBJDUMP for the host
1576 READELF READELF for the host
1577 CC_FOR_TARGET
1578 CC for the target
1579 CXX_FOR_TARGET
1580 CXX for the target
1581 GCC_FOR_TARGET
1582 GCC for the target
1583 GCJ_FOR_TARGET
1584 GCJ for the target
1585 GFORTRAN_FOR_TARGET
1586 GFORTRAN for the target
1587 GOC_FOR_TARGET
1588 GOC for the target
1589 AR_FOR_TARGET
1590 AR for the target
1591 AS_FOR_TARGET
1592 AS for the target
1593 DLLTOOL_FOR_TARGET
1594 DLLTOOL for the target
1595 LD_FOR_TARGET
1596 LD for the target
1597 LIPO_FOR_TARGET
1598 LIPO for the target
1599 NM_FOR_TARGET
1600 NM for the target
1601 OBJDUMP_FOR_TARGET
1602 OBJDUMP for the target
1603 RANLIB_FOR_TARGET
1604 RANLIB for the target
1605 READELF_FOR_TARGET
1606 READELF for the target
1607 STRIP_FOR_TARGET
1608 STRIP for the target
1609 WINDRES_FOR_TARGET
1610 WINDRES for the target
1611 WINDMC_FOR_TARGET
1612 WINDMC for the target
1613
1614 Use these variables to override the choices made by `configure' or to help
1615 it to find libraries and programs with nonstandard names/locations.
1616
1617 Report bugs to the package provider.
1618 _ACEOF
1619 ac_status=$?
1620 fi
1621
1622 if test "$ac_init_help" = "recursive"; then
1623 # If there are subdirs, report their specific --help.
1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1625 test -d "$ac_dir" ||
1626 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1627 continue
1628 ac_builddir=.
1629
1630 case "$ac_dir" in
1631 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *)
1633 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1634 # A ".." for each directory in $ac_dir_suffix.
1635 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1636 case $ac_top_builddir_sub in
1637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639 esac ;;
1640 esac
1641 ac_abs_top_builddir=$ac_pwd
1642 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1643 # for backward compatibility:
1644 ac_top_builddir=$ac_top_build_prefix
1645
1646 case $srcdir in
1647 .) # We are building in place.
1648 ac_srcdir=.
1649 ac_top_srcdir=$ac_top_builddir_sub
1650 ac_abs_top_srcdir=$ac_pwd ;;
1651 [\\/]* | ?:[\\/]* ) # Absolute name.
1652 ac_srcdir=$srcdir$ac_dir_suffix;
1653 ac_top_srcdir=$srcdir
1654 ac_abs_top_srcdir=$srcdir ;;
1655 *) # Relative name.
1656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1657 ac_top_srcdir=$ac_top_build_prefix$srcdir
1658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 esac
1660 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661
1662 cd "$ac_dir" || { ac_status=$?; continue; }
1663 # Check for guested configure.
1664 if test -f "$ac_srcdir/configure.gnu"; then
1665 echo &&
1666 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1667 elif test -f "$ac_srcdir/configure"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure" --help=recursive
1670 else
1671 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 fi || ac_status=$?
1673 cd "$ac_pwd" || { ac_status=$?; break; }
1674 done
1675 fi
1676
1677 test -n "$ac_init_help" && exit $ac_status
1678 if $ac_init_version; then
1679 cat <<\_ACEOF
1680 configure
1681 generated by GNU Autoconf 2.64
1682
1683 Copyright (C) 2009 Free Software Foundation, Inc.
1684 This configure script is free software; the Free Software Foundation
1685 gives unlimited permission to copy, distribute and modify it.
1686 _ACEOF
1687 exit
1688 fi
1689
1690 ## ------------------------ ##
1691 ## Autoconf initialization. ##
1692 ## ------------------------ ##
1693
1694 # ac_fn_c_try_compile LINENO
1695 # --------------------------
1696 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_compile ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext
1701 if { { ac_try="$ac_compile"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_compile") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest.$ac_objext; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726 fi
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 return $ac_retval
1729
1730 } # ac_fn_c_try_compile
1731
1732 # ac_fn_cxx_try_compile LINENO
1733 # ----------------------------
1734 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_cxx_try_compile ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 rm -f conftest.$ac_objext
1739 if { { ac_try="$ac_compile"
1740 case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_compile") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && {
1755 test -z "$ac_cxx_werror_flag" ||
1756 test ! -s conftest.err
1757 } && test -s conftest.$ac_objext; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764 fi
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 return $ac_retval
1767
1768 } # ac_fn_cxx_try_compile
1769
1770 # ac_fn_cxx_try_link LINENO
1771 # -------------------------
1772 # Try to link conftest.$ac_ext, and return whether this succeeded.
1773 ac_fn_cxx_try_link ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext conftest$ac_exeext
1777 if { { ac_try="$ac_link"
1778 case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1790 fi
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_cxx_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest$ac_exeext && {
1796 test "$cross_compiling" = yes ||
1797 $as_test_x conftest$ac_exeext
1798 }; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804 ac_retval=1
1805 fi
1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1808 # interfere with the next link command; also delete a directory that is
1809 # left behind by Apple's compiler. We do this before executing the actions.
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 return $ac_retval
1813
1814 } # ac_fn_cxx_try_link
1815
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_link ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 $as_test_x conftest$ac_exeext
1844 }; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=1
1851 fi
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 return $ac_retval
1859
1860 } # ac_fn_c_try_link
1861
1862 # ac_fn_c_try_run LINENO
1863 # ----------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1865 # that executables *can* be run.
1866 ac_fn_c_try_run ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_link"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>&5
1877 ac_status=$?
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1880 { { case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_try") 2>&5
1887 ac_status=$?
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; }; }; then :
1890 ac_retval=0
1891 else
1892 $as_echo "$as_me: program exited with status $ac_status" >&5
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 ac_retval=$ac_status
1897 fi
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900 return $ac_retval
1901
1902 } # ac_fn_c_try_run
1903 cat >config.log <<_ACEOF
1904 This file contains any messages produced by compilers while
1905 running configure, to aid debugging if configure makes a mistake.
1906
1907 It was created by $as_me, which was
1908 generated by GNU Autoconf 2.64. Invocation command line was
1909
1910 $ $0 $@
1911
1912 _ACEOF
1913 exec 5>>config.log
1914 {
1915 cat <<_ASUNAME
1916 ## --------- ##
1917 ## Platform. ##
1918 ## --------- ##
1919
1920 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1921 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1922 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1923 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1924 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1925
1926 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1927 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1928
1929 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1930 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1931 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1932 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1933 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1934 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1935 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1936
1937 _ASUNAME
1938
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1941 do
1942 IFS=$as_save_IFS
1943 test -z "$as_dir" && as_dir=.
1944 $as_echo "PATH: $as_dir"
1945 done
1946 IFS=$as_save_IFS
1947
1948 } >&5
1949
1950 cat >&5 <<_ACEOF
1951
1952
1953 ## ----------- ##
1954 ## Core tests. ##
1955 ## ----------- ##
1956
1957 _ACEOF
1958
1959
1960 # Keep a trace of the command line.
1961 # Strip out --no-create and --no-recursion so they do not pile up.
1962 # Strip out --silent because we don't want to record it for future runs.
1963 # Also quote any args containing shell meta-characters.
1964 # Make two passes to allow for proper duplicate-argument suppression.
1965 ac_configure_args=
1966 ac_configure_args0=
1967 ac_configure_args1=
1968 ac_must_keep_next=false
1969 for ac_pass in 1 2
1970 do
1971 for ac_arg
1972 do
1973 case $ac_arg in
1974 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1976 | -silent | --silent | --silen | --sile | --sil)
1977 continue ;;
1978 *\'*)
1979 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1980 esac
1981 case $ac_pass in
1982 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1983 2)
1984 as_fn_append ac_configure_args1 " '$ac_arg'"
1985 if test $ac_must_keep_next = true; then
1986 ac_must_keep_next=false # Got value, back to normal.
1987 else
1988 case $ac_arg in
1989 *=* | --config-cache | -C | -disable-* | --disable-* \
1990 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1991 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1992 | -with-* | --with-* | -without-* | --without-* | --x)
1993 case "$ac_configure_args0 " in
1994 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1995 esac
1996 ;;
1997 -* ) ac_must_keep_next=true ;;
1998 esac
1999 fi
2000 as_fn_append ac_configure_args " '$ac_arg'"
2001 ;;
2002 esac
2003 done
2004 done
2005 { ac_configure_args0=; unset ac_configure_args0;}
2006 { ac_configure_args1=; unset ac_configure_args1;}
2007
2008 # When interrupted or exit'd, cleanup temporary files, and complete
2009 # config.log. We remove comments because anyway the quotes in there
2010 # would cause problems or look ugly.
2011 # WARNING: Use '\'' to represent an apostrophe within the trap.
2012 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2013 trap 'exit_status=$?
2014 # Save into config.log some information that might help in debugging.
2015 {
2016 echo
2017
2018 cat <<\_ASBOX
2019 ## ---------------- ##
2020 ## Cache variables. ##
2021 ## ---------------- ##
2022 _ASBOX
2023 echo
2024 # The following way of writing the cache mishandles newlines in values,
2025 (
2026 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in #(
2029 *${as_nl}*)
2030 case $ac_var in #(
2031 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2032 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2033 esac
2034 case $ac_var in #(
2035 _ | IFS | as_nl) ;; #(
2036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2037 *) { eval $ac_var=; unset $ac_var;} ;;
2038 esac ;;
2039 esac
2040 done
2041 (set) 2>&1 |
2042 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2043 *${as_nl}ac_space=\ *)
2044 sed -n \
2045 "s/'\''/'\''\\\\'\'''\''/g;
2046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2047 ;; #(
2048 *)
2049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2050 ;;
2051 esac |
2052 sort
2053 )
2054 echo
2055
2056 cat <<\_ASBOX
2057 ## ----------------- ##
2058 ## Output variables. ##
2059 ## ----------------- ##
2060 _ASBOX
2061 echo
2062 for ac_var in $ac_subst_vars
2063 do
2064 eval ac_val=\$$ac_var
2065 case $ac_val in
2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067 esac
2068 $as_echo "$ac_var='\''$ac_val'\''"
2069 done | sort
2070 echo
2071
2072 if test -n "$ac_subst_files"; then
2073 cat <<\_ASBOX
2074 ## ------------------- ##
2075 ## File substitutions. ##
2076 ## ------------------- ##
2077 _ASBOX
2078 echo
2079 for ac_var in $ac_subst_files
2080 do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084 esac
2085 $as_echo "$ac_var='\''$ac_val'\''"
2086 done | sort
2087 echo
2088 fi
2089
2090 if test -s confdefs.h; then
2091 cat <<\_ASBOX
2092 ## ----------- ##
2093 ## confdefs.h. ##
2094 ## ----------- ##
2095 _ASBOX
2096 echo
2097 cat confdefs.h
2098 echo
2099 fi
2100 test "$ac_signal" != 0 &&
2101 $as_echo "$as_me: caught signal $ac_signal"
2102 $as_echo "$as_me: exit $exit_status"
2103 } >&5
2104 rm -f core *.core core.conftest.* &&
2105 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2106 exit $exit_status
2107 ' 0
2108 for ac_signal in 1 2 13 15; do
2109 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2110 done
2111 ac_signal=0
2112
2113 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2114 rm -f -r conftest* confdefs.h
2115
2116 $as_echo "/* confdefs.h */" > confdefs.h
2117
2118 # Predefined preprocessor variables.
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_NAME "$PACKAGE_NAME"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_STRING "$PACKAGE_STRING"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_URL "$PACKAGE_URL"
2142 _ACEOF
2143
2144
2145 # Let the site file select an alternate cache file if it wants to.
2146 # Prefer an explicitly selected file to automatically selected ones.
2147 ac_site_file1=NONE
2148 ac_site_file2=NONE
2149 if test -n "$CONFIG_SITE"; then
2150 ac_site_file1=$CONFIG_SITE
2151 elif test "x$prefix" != xNONE; then
2152 ac_site_file1=$prefix/share/config.site
2153 ac_site_file2=$prefix/etc/config.site
2154 else
2155 ac_site_file1=$ac_default_prefix/share/config.site
2156 ac_site_file2=$ac_default_prefix/etc/config.site
2157 fi
2158 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2159 do
2160 test "x$ac_site_file" = xNONE && continue
2161 if test -r "$ac_site_file"; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2163 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2164 sed 's/^/| /' "$ac_site_file" >&5
2165 . "$ac_site_file"
2166 fi
2167 done
2168
2169 if test -r "$cache_file"; then
2170 # Some versions of bash will fail to source /dev/null (special
2171 # files actually), so we avoid doing that.
2172 if test -f "$cache_file"; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2174 $as_echo "$as_me: loading cache $cache_file" >&6;}
2175 case $cache_file in
2176 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2177 *) . "./$cache_file";;
2178 esac
2179 fi
2180 else
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2182 $as_echo "$as_me: creating cache $cache_file" >&6;}
2183 >$cache_file
2184 fi
2185
2186 # Check that the precious variables saved in the cache have kept the same
2187 # value.
2188 ac_cache_corrupted=false
2189 for ac_var in $ac_precious_vars; do
2190 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2191 eval ac_new_set=\$ac_env_${ac_var}_set
2192 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2193 eval ac_new_val=\$ac_env_${ac_var}_value
2194 case $ac_old_set,$ac_new_set in
2195 set,)
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2197 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2198 ac_cache_corrupted=: ;;
2199 ,set)
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2201 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2202 ac_cache_corrupted=: ;;
2203 ,);;
2204 *)
2205 if test "x$ac_old_val" != "x$ac_new_val"; then
2206 # differences in whitespace do not lead to failure.
2207 ac_old_val_w=`echo x $ac_old_val`
2208 ac_new_val_w=`echo x $ac_new_val`
2209 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2211 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2212 ac_cache_corrupted=:
2213 else
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2215 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2216 eval $ac_var=\$ac_old_val
2217 fi
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2219 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2221 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2222 fi;;
2223 esac
2224 # Pass precious variables to config.status.
2225 if test "$ac_new_set" = set; then
2226 case $ac_new_val in
2227 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2228 *) ac_arg=$ac_var=$ac_new_val ;;
2229 esac
2230 case " $ac_configure_args " in
2231 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2232 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2233 esac
2234 fi
2235 done
2236 if $ac_cache_corrupted; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2240 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2241 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2242 fi
2243 ## -------------------- ##
2244 ## Main body of script. ##
2245 ## -------------------- ##
2246
2247 ac_ext=c
2248 ac_cpp='$CPP $CPPFLAGS'
2249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261 progname=$0
2262 # if PWD already has a value, it is probably wrong.
2263 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2264
2265 # Export original configure arguments for use by sub-configures.
2266 # Quote arguments with shell meta charatcers.
2267 TOPLEVEL_CONFIGURE_ARGUMENTS=
2268 set -- "$progname" "$@"
2269 for ac_arg
2270 do
2271 case "$ac_arg" in
2272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2273 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2274 # if the argument is of the form -foo=baz, quote the baz part only
2275 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2276 *) ;;
2277 esac
2278 # Add the quoted argument to the list.
2279 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2280 done
2281 if test "$silent" = yes; then
2282 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2283 fi
2284 # Remove the initial space we just introduced and, as these will be
2285 # expanded by make, quote '$'.
2286 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2287
2288
2289 # Find the build, host, and target systems.
2290 ac_aux_dir=
2291 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2292 for ac_t in install-sh install.sh shtool; do
2293 if test -f "$ac_dir/$ac_t"; then
2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/$ac_t -c"
2296 break 2
2297 fi
2298 done
2299 done
2300 if test -z "$ac_aux_dir"; then
2301 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2302 fi
2303
2304 # These three variables are undocumented and unsupported,
2305 # and are intended to be withdrawn in a future Autoconf release.
2306 # They can cause serious problems if a builder's source tree is in a directory
2307 # whose full name contains unusual characters.
2308 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2309 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2310 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2311
2312
2313 # Make sure we can run config.sub.
2314 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2315 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2316
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2318 $as_echo_n "checking build system type... " >&6; }
2319 if test "${ac_cv_build+set}" = set; then :
2320 $as_echo_n "(cached) " >&6
2321 else
2322 ac_build_alias=$build_alias
2323 test "x$ac_build_alias" = x &&
2324 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2325 test "x$ac_build_alias" = x &&
2326 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2327 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2328 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2329
2330 fi
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2332 $as_echo "$ac_cv_build" >&6; }
2333 case $ac_cv_build in
2334 *-*-*) ;;
2335 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2336 esac
2337 build=$ac_cv_build
2338 ac_save_IFS=$IFS; IFS='-'
2339 set x $ac_cv_build
2340 shift
2341 build_cpu=$1
2342 build_vendor=$2
2343 shift; shift
2344 # Remember, the first character of IFS is used to create $*,
2345 # except with old shells:
2346 build_os=$*
2347 IFS=$ac_save_IFS
2348 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2349
2350
2351 case ${build_alias} in
2352 "") build_noncanonical=${build} ;;
2353 *) build_noncanonical=${build_alias} ;;
2354 esac
2355
2356
2357
2358 case ${host_alias} in
2359 "") host_noncanonical=${build_noncanonical} ;;
2360 *) host_noncanonical=${host_alias} ;;
2361 esac
2362
2363
2364
2365 case ${target_alias} in
2366 "") target_noncanonical=${host_noncanonical} ;;
2367 *) target_noncanonical=${target_alias} ;;
2368 esac
2369
2370
2371
2372
2373 test "$host_noncanonical" = "$target_noncanonical" &&
2374 test "$program_prefix$program_suffix$program_transform_name" = \
2375 NONENONEs,x,x, &&
2376 program_transform_name=s,y,y,
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2379 $as_echo_n "checking host system type... " >&6; }
2380 if test "${ac_cv_host+set}" = set; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 if test "x$host_alias" = x; then
2384 ac_cv_host=$ac_cv_build
2385 else
2386 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2388 fi
2389
2390 fi
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2392 $as_echo "$ac_cv_host" >&6; }
2393 case $ac_cv_host in
2394 *-*-*) ;;
2395 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2396 esac
2397 host=$ac_cv_host
2398 ac_save_IFS=$IFS; IFS='-'
2399 set x $ac_cv_host
2400 shift
2401 host_cpu=$1
2402 host_vendor=$2
2403 shift; shift
2404 # Remember, the first character of IFS is used to create $*,
2405 # except with old shells:
2406 host_os=$*
2407 IFS=$ac_save_IFS
2408 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2409
2410
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2412 $as_echo_n "checking target system type... " >&6; }
2413 if test "${ac_cv_target+set}" = set; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 if test "x$target_alias" = x; then
2417 ac_cv_target=$ac_cv_host
2418 else
2419 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2420 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2421 fi
2422
2423 fi
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2425 $as_echo "$ac_cv_target" >&6; }
2426 case $ac_cv_target in
2427 *-*-*) ;;
2428 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2429 esac
2430 target=$ac_cv_target
2431 ac_save_IFS=$IFS; IFS='-'
2432 set x $ac_cv_target
2433 shift
2434 target_cpu=$1
2435 target_vendor=$2
2436 shift; shift
2437 # Remember, the first character of IFS is used to create $*,
2438 # except with old shells:
2439 target_os=$*
2440 IFS=$ac_save_IFS
2441 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2442
2443
2444 # The aliases save the names the user supplied, while $host etc.
2445 # will get canonicalized.
2446 test -n "$target_alias" &&
2447 test "$program_prefix$program_suffix$program_transform_name" = \
2448 NONENONEs,x,x, &&
2449 program_prefix=${target_alias}-
2450
2451 test "$program_prefix" != NONE &&
2452 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2453 # Use a double $ so make ignores it.
2454 test "$program_suffix" != NONE &&
2455 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2456 # Double any \ or $.
2457 # By default was `s,x,x', remove it if useless.
2458 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2459 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2460
2461
2462
2463 # Get 'install' or 'install-sh' and its variants.
2464 # Find a good install program. We prefer a C program (faster),
2465 # so one script is as good as another. But avoid the broken or
2466 # incompatible versions:
2467 # SysV /etc/install, /usr/sbin/install
2468 # SunOS /usr/etc/install
2469 # IRIX /sbin/install
2470 # AIX /bin/install
2471 # AmigaOS /C/install, which installs bootblocks on floppy discs
2472 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2473 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2474 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2475 # OS/2's system install, which has a completely different semantic
2476 # ./install, which can be erroneously created by make from ./install.sh.
2477 # Reject install programs that cannot install multiple files.
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2479 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2480 if test -z "$INSTALL"; then
2481 if test "${ac_cv_path_install+set}" = set; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 # Account for people who put trailing slashes in PATH elements.
2490 case $as_dir/ in #((
2491 ./ | .// | /[cC]/* | \
2492 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2493 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2494 /usr/ucb/* ) ;;
2495 *)
2496 # OSF1 and SCO ODT 3.0 have their own names for install.
2497 # Don't use installbsd from OSF since it installs stuff as root
2498 # by default.
2499 for ac_prog in ginstall scoinst install; do
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2502 if test $ac_prog = install &&
2503 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2504 # AIX install. It has an incompatible calling convention.
2505 :
2506 elif test $ac_prog = install &&
2507 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2508 # program-specific install script used by HP pwplus--don't use.
2509 :
2510 else
2511 rm -rf conftest.one conftest.two conftest.dir
2512 echo one > conftest.one
2513 echo two > conftest.two
2514 mkdir conftest.dir
2515 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2516 test -s conftest.one && test -s conftest.two &&
2517 test -s conftest.dir/conftest.one &&
2518 test -s conftest.dir/conftest.two
2519 then
2520 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2521 break 3
2522 fi
2523 fi
2524 fi
2525 done
2526 done
2527 ;;
2528 esac
2529
2530 done
2531 IFS=$as_save_IFS
2532
2533 rm -rf conftest.one conftest.two conftest.dir
2534
2535 fi
2536 if test "${ac_cv_path_install+set}" = set; then
2537 INSTALL=$ac_cv_path_install
2538 else
2539 # As a last resort, use the slow shell script. Don't cache a
2540 # value for INSTALL within a source directory, because that will
2541 # break other packages using the cache if that directory is
2542 # removed, or if the value is a relative name.
2543 INSTALL=$ac_install_sh
2544 fi
2545 fi
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2547 $as_echo "$INSTALL" >&6; }
2548
2549 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2550 # It thinks the first close brace ends the variable substitution.
2551 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2552
2553 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2554
2555 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2556
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2558 $as_echo_n "checking whether ln works... " >&6; }
2559 if test "${acx_cv_prog_LN+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 rm -f conftestdata_t
2563 echo >conftestdata_f
2564 if ln conftestdata_f conftestdata_t 2>/dev/null
2565 then
2566 acx_cv_prog_LN=ln
2567 else
2568 acx_cv_prog_LN=no
2569 fi
2570 rm -f conftestdata_f conftestdata_t
2571
2572 fi
2573 if test $acx_cv_prog_LN = no; then
2574 LN="cp"
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2576 $as_echo "no, using $LN" >&6; }
2577 else
2578 LN="$acx_cv_prog_LN"
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2580 $as_echo "yes" >&6; }
2581 fi
2582
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2584 $as_echo_n "checking whether ln -s works... " >&6; }
2585 LN_S=$as_ln_s
2586 if test "$LN_S" = "ln -s"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588 $as_echo "yes" >&6; }
2589 else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2591 $as_echo "no, using $LN_S" >&6; }
2592 fi
2593
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2595 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2596 if test "${ac_cv_path_SED+set}" = set; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2600 for ac_i in 1 2 3 4 5 6 7; do
2601 ac_script="$ac_script$as_nl$ac_script"
2602 done
2603 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2604 { ac_script=; unset ac_script;}
2605 if test -z "$SED"; then
2606 ac_path_SED_found=false
2607 # Loop through the user's path and test for each of PROGNAME-LIST
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_prog in sed gsed; do
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2616 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2617 # Check for GNU ac_path_SED and select it if it is found.
2618 # Check for GNU $ac_path_SED
2619 case `"$ac_path_SED" --version 2>&1` in
2620 *GNU*)
2621 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2622 *)
2623 ac_count=0
2624 $as_echo_n 0123456789 >"conftest.in"
2625 while :
2626 do
2627 cat "conftest.in" "conftest.in" >"conftest.tmp"
2628 mv "conftest.tmp" "conftest.in"
2629 cp "conftest.in" "conftest.nl"
2630 $as_echo '' >> "conftest.nl"
2631 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2632 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2633 as_fn_arith $ac_count + 1 && ac_count=$as_val
2634 if test $ac_count -gt ${ac_path_SED_max-0}; then
2635 # Best one so far, save it but keep looking for a better one
2636 ac_cv_path_SED="$ac_path_SED"
2637 ac_path_SED_max=$ac_count
2638 fi
2639 # 10*(2^10) chars as input seems more than enough
2640 test $ac_count -gt 10 && break
2641 done
2642 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2643 esac
2644
2645 $ac_path_SED_found && break 3
2646 done
2647 done
2648 done
2649 IFS=$as_save_IFS
2650 if test -z "$ac_cv_path_SED"; then
2651 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2652 fi
2653 else
2654 ac_cv_path_SED=$SED
2655 fi
2656
2657 fi
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2659 $as_echo "$ac_cv_path_SED" >&6; }
2660 SED="$ac_cv_path_SED"
2661 rm -f conftest.sed
2662
2663 for ac_prog in gawk mawk nawk awk
2664 do
2665 # Extract the first word of "$ac_prog", so it can be a program name with args.
2666 set dummy $ac_prog; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if test "${ac_cv_prog_AWK+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test -n "$AWK"; then
2673 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2674 else
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2677 do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 ac_cv_prog_AWK="$ac_prog"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686 done
2687 done
2688 IFS=$as_save_IFS
2689
2690 fi
2691 fi
2692 AWK=$ac_cv_prog_AWK
2693 if test -n "$AWK"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2695 $as_echo "$AWK" >&6; }
2696 else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2699 fi
2700
2701
2702 test -n "$AWK" && break
2703 done
2704
2705
2706 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2707
2708 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2709 # a relative path.
2710 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2711 INSTALL="${srcpwd}/install-sh -c"
2712 fi
2713
2714 # Set srcdir to "." if that's what it is.
2715 # This is important for multilib support.
2716 pwd=`${PWDCMD-pwd}`
2717 if test "${pwd}" = "${srcpwd}" ; then
2718 srcdir=.
2719 fi
2720
2721 topsrcdir=$srcpwd
2722
2723 extra_host_args=
2724
2725 ### To add a new directory to the tree, first choose whether it is a target
2726 ### or a host dependent tool. Then put it into the appropriate list
2727 ### (library or tools, host or target), doing a dependency sort.
2728
2729 # Subdirs will be configured in the order listed in build_configdirs,
2730 # configdirs, or target_configdirs; see the serialization section below.
2731
2732 # Dependency sorting is only needed when *configuration* must be done in
2733 # a particular order. In all cases a dependency should be specified in
2734 # the Makefile, whether or not it's implicitly specified here.
2735
2736 # Double entries in build_configdirs, configdirs, or target_configdirs may
2737 # cause circular dependencies and break everything horribly.
2738
2739 # these library is used by various programs built for the build
2740 # environment
2741 #
2742 build_libs="build-libiberty"
2743
2744 # these tools are built for the build environment
2745 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2746
2747 # these libraries are used by various programs built for the host environment
2748 #
2749 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2750
2751 # these tools are built for the host environment
2752 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2753 # know that we are building the simulator.
2754 # binutils, gas and ld appear in that order because it makes sense to run
2755 # "make check" in that particular order.
2756 # If --enable-gold is used, "gold" may replace "ld".
2757 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2758
2759 # libgcj represents the runtime libraries only used by gcj.
2760 libgcj="target-libffi \
2761 target-zlib \
2762 target-libjava"
2763
2764 # these libraries are built for the target environment, and are built after
2765 # the host libraries and the host tools (which may be a cross compiler)
2766 # Note that libiberty is not a target library.
2767 target_libraries="target-libgcc \
2768 target-libbacktrace \
2769 target-libgloss \
2770 target-newlib \
2771 target-libgomp \
2772 target-libatomic \
2773 target-libitm \
2774 target-libstdc++-v3 \
2775 target-libmudflap \
2776 target-libsanitizer \
2777 target-libssp \
2778 target-libquadmath \
2779 target-libgfortran \
2780 target-boehm-gc \
2781 ${libgcj} \
2782 target-libobjc \
2783 target-libada \
2784 target-libgo"
2785
2786 # these tools are built using the target libraries, and are intended to
2787 # run only in the target environment
2788 #
2789 # note: any program that *uses* libraries that are in the "target_libraries"
2790 # list belongs in this list.
2791 #
2792 target_tools="target-rda"
2793
2794 ################################################################################
2795
2796 ## All tools belong in one of the four categories, and are assigned above
2797 ## We assign ${configdirs} this way to remove all embedded newlines. This
2798 ## is important because configure will choke if they ever get through.
2799 ## ${configdirs} is directories we build using the host tools.
2800 ## ${target_configdirs} is directories we build using the target tools.
2801 configdirs=`echo ${host_libs} ${host_tools}`
2802 target_configdirs=`echo ${target_libraries} ${target_tools}`
2803 build_configdirs=`echo ${build_libs} ${build_tools}`
2804
2805
2806
2807 ################################################################################
2808
2809 srcname="gnu development package"
2810
2811 # This gets set non-empty for some net releases of packages.
2812 appdirs=""
2813
2814 # Define is_cross_compiler to save on calls to 'test'.
2815 is_cross_compiler=
2816 if test x"${host}" = x"${target}" ; then
2817 is_cross_compiler=no
2818 else
2819 is_cross_compiler=yes
2820 fi
2821
2822 # Find the build and target subdir names.
2823
2824 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2825 # have matching libraries, they should use host libraries: Makefile.tpl
2826 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2827 # However, they still use the build modules, because the corresponding
2828 # host modules (e.g. bison) are only built for the host when bootstrap
2829 # finishes. So:
2830 # - build_subdir is where we find build modules, and never changes.
2831 # - build_libsubdir is where we find build libraries, and can be overridden.
2832
2833 # Prefix 'build-' so this never conflicts with target_subdir.
2834 build_subdir="build-${build_noncanonical}"
2835
2836 # Check whether --with-build-libsubdir was given.
2837 if test "${with_build_libsubdir+set}" = set; then :
2838 withval=$with_build_libsubdir; build_libsubdir="$withval"
2839 else
2840 build_libsubdir="$build_subdir"
2841 fi
2842
2843 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2844 if ( test $srcdir = . && test -d gcc ) \
2845 || test -d $srcdir/../host-${host_noncanonical}; then
2846 host_subdir="host-${host_noncanonical}"
2847 else
2848 host_subdir=.
2849 fi
2850 # No prefix.
2851 target_subdir=${target_noncanonical}
2852
2853 # Be sure to cover against remnants of an in-tree build.
2854 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2855 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2856 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2857 fi
2858
2859 # Skipdirs are removed silently.
2860 skipdirs=
2861 # Noconfigdirs are removed loudly.
2862 noconfigdirs=""
2863
2864 use_gnu_ld=
2865 # Make sure we don't let GNU ld be added if we didn't want it.
2866 if test x$with_gnu_ld = xno ; then
2867 use_gnu_ld=no
2868 noconfigdirs="$noconfigdirs ld gold"
2869 fi
2870
2871 use_gnu_as=
2872 # Make sure we don't let GNU as be added if we didn't want it.
2873 if test x$with_gnu_as = xno ; then
2874 use_gnu_as=no
2875 noconfigdirs="$noconfigdirs gas"
2876 fi
2877
2878 use_included_zlib=
2879 # Make sure we don't let ZLIB be added if we didn't want it.
2880 if test x$with_system_zlib = xyes ; then
2881 use_included_zlib=no
2882 noconfigdirs="$noconfigdirs zlib"
2883 fi
2884
2885 # some tools are so dependent upon X11 that if we're not building with X,
2886 # it's not even worth trying to configure, much less build, that tool.
2887
2888 case ${with_x} in
2889 yes | "") ;; # the default value for this tree is that X11 is available
2890 no)
2891 skipdirs="${skipdirs} tk itcl libgui"
2892 # We won't be able to build gdbtk without X.
2893 enable_gdbtk=no
2894 ;;
2895 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2896 esac
2897
2898 # Some are only suitable for cross toolchains.
2899 # Remove these if host=target.
2900 cross_only="target-libgloss target-newlib target-opcodes"
2901
2902 case $is_cross_compiler in
2903 no) skipdirs="${skipdirs} ${cross_only}" ;;
2904 esac
2905
2906 # If both --with-headers and --with-libs are specified, default to
2907 # --without-newlib.
2908 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2909 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2910 if test x"${with_newlib}" = x ; then
2911 with_newlib=no
2912 fi
2913 fi
2914
2915 # Recognize --with-newlib/--without-newlib.
2916 case ${with_newlib} in
2917 no) skipdirs="${skipdirs} target-newlib" ;;
2918 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2919 esac
2920
2921 # Handle --enable-gold, --enable-ld.
2922 # --disable-gold [--enable-ld]
2923 # Build only ld. Default option.
2924 # --enable-gold [--enable-ld]
2925 # Build both gold and ld. Install gold as "ld.gold", install ld
2926 # as "ld.bfd" and "ld".
2927 # --enable-gold=default [--enable-ld]
2928 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2929 # install ld as "ld.bfd".
2930 # --enable-gold[=default] --disable-ld
2931 # Build only gold, which is then installed as both "ld.gold" and "ld".
2932 # --enable-gold --enable-ld=default
2933 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2934 # and ld.bfd).
2935 # In other words, ld is default
2936 # --enable-gold=default --enable-ld=default
2937 # Error.
2938
2939 default_ld=
2940 # Check whether --enable-gold was given.
2941 if test "${enable_gold+set}" = set; then :
2942 enableval=$enable_gold; ENABLE_GOLD=$enableval
2943 else
2944 ENABLE_GOLD=no
2945 fi
2946
2947 case "${ENABLE_GOLD}" in
2948 yes|default)
2949 # Check for ELF target.
2950 is_elf=no
2951 case "${target}" in
2952 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2953 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2954 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2955 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2956 case "${target}" in
2957 *-*-linux*aout* | *-*-linux*oldld*)
2958 ;;
2959 *)
2960 is_elf=yes
2961 ;;
2962 esac
2963 esac
2964
2965 if test "$is_elf" = "yes"; then
2966 # Check for target supported by gold.
2967 case "${target}" in
2968 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2969 configdirs="$configdirs gold"
2970 if test x${ENABLE_GOLD} = xdefault; then
2971 default_ld=gold
2972 fi
2973 ENABLE_GOLD=yes
2974 ;;
2975 esac
2976 fi
2977 ;;
2978 no)
2979 ;;
2980 *)
2981 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2982 ;;
2983 esac
2984
2985 # Check whether --enable-ld was given.
2986 if test "${enable_ld+set}" = set; then :
2987 enableval=$enable_ld; ENABLE_LD=$enableval
2988 else
2989 ENABLE_LD=yes
2990 fi
2991
2992
2993 case "${ENABLE_LD}" in
2994 default)
2995 if test x${default_ld} != x; then
2996 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2997 fi
2998 ;;
2999 yes)
3000 ;;
3001 no)
3002 if test x${ENABLE_GOLD} != xyes; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3004 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3005 fi
3006 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3007 ;;
3008 *)
3009 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3010 ;;
3011 esac
3012
3013 # Configure extra directories which are host specific
3014
3015 case "${host}" in
3016 *-cygwin*)
3017 configdirs="$configdirs libtermcap" ;;
3018 esac
3019
3020 # A target can indicate whether a language isn't supported for some reason.
3021 # Only spaces may be used in this macro; not newlines or tabs.
3022 unsupported_languages=
3023
3024 # Remove more programs from consideration, based on the host or
3025 # target this usually means that a port of the program doesn't
3026 # exist yet.
3027
3028 case "${host}" in
3029 i[3456789]86-*-msdosdjgpp*)
3030 noconfigdirs="$noconfigdirs tcl tk itcl"
3031 ;;
3032 esac
3033
3034
3035 # Check whether --enable-libquadmath was given.
3036 if test "${enable_libquadmath+set}" = set; then :
3037 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3038 else
3039 ENABLE_LIBQUADMATH=yes
3040 fi
3041
3042 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3043 noconfigdirs="$noconfigdirs target-libquadmath"
3044 fi
3045
3046
3047 # Check whether --enable-libquadmath-support was given.
3048 if test "${enable_libquadmath_support+set}" = set; then :
3049 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3050 else
3051 ENABLE_LIBQUADMATH_SUPPORT=yes
3052 fi
3053
3054 enable_libquadmath_support=
3055 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3056 enable_libquadmath_support=no
3057 fi
3058
3059
3060 # Check whether --enable-libada was given.
3061 if test "${enable_libada+set}" = set; then :
3062 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3063 else
3064 ENABLE_LIBADA=yes
3065 fi
3066
3067 if test "${ENABLE_LIBADA}" != "yes" ; then
3068 noconfigdirs="$noconfigdirs gnattools"
3069 fi
3070
3071 # Check whether --enable-libssp was given.
3072 if test "${enable_libssp+set}" = set; then :
3073 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3074 else
3075 ENABLE_LIBSSP=yes
3076 fi
3077
3078
3079 # Check whether --enable-libstdcxx was given.
3080 if test "${enable_libstdcxx+set}" = set; then :
3081 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3082 else
3083 ENABLE_LIBSTDCXX=default
3084 fi
3085
3086 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3087 noconfigdirs="$noconfigdirs libstdc++-v3"
3088 fi
3089
3090 # Save it here so that, even in case of --enable-libgcj, if the Java
3091 # front-end isn't enabled, we still get libgcj disabled.
3092 libgcj_saved=$libgcj
3093 case $enable_libgcj in
3094 yes)
3095 # If we reset it here, it won't get added to noconfigdirs in the
3096 # target-specific build rules, so it will be forcibly enabled
3097 # (unless the Java language itself isn't enabled).
3098 libgcj=
3099 ;;
3100 no)
3101 # Make sure we get it printed in the list of not supported target libs.
3102 # Don't disable libffi, though, other languages use it.
3103 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3104 # Clear libgcj_saved so that even if java is enabled libffi won't be
3105 # built.
3106 libgcj_saved=
3107 ;;
3108 esac
3109
3110 # Check whether --enable-static-libjava was given.
3111 if test "${enable_static_libjava+set}" = set; then :
3112 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3113 else
3114 ENABLE_STATIC_LIBJAVA=no
3115 fi
3116
3117 enable_static_libjava=
3118 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3119 enable_static_libjava=yes
3120 fi
3121
3122 if test x$enable_static_libjava != xyes ; then
3123 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3124 fi
3125
3126
3127 # Disable libmudflap on some systems.
3128 if test x$enable_libmudflap = x ; then
3129 case "${target}" in
3130 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3131 # Enable libmudflap by default in GNU and friends.
3132 ;;
3133 *-*-freebsd*)
3134 # Enable libmudflap by default in FreeBSD.
3135 ;;
3136 *)
3137 # Disable it by default everywhere else.
3138 noconfigdirs="$noconfigdirs target-libmudflap"
3139 ;;
3140 esac
3141 fi
3142
3143 # Disable libgomp on non POSIX hosted systems.
3144 if test x$enable_libgomp = x ; then
3145 # Enable libgomp by default on hosted POSIX systems.
3146 case "${target}" in
3147 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3148 ;;
3149 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3150 ;;
3151 *-*-solaris2* | *-*-hpux11*)
3152 ;;
3153 *-*-darwin* | *-*-aix*)
3154 ;;
3155 *)
3156 noconfigdirs="$noconfigdirs target-libgomp"
3157 ;;
3158 esac
3159 fi
3160
3161 # Disable libatomic on unsupported systems.
3162 if test -d ${srcdir}/libatomic; then
3163 if test x$enable_libatomic = x; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3165 $as_echo_n "checking for libatomic support... " >&6; }
3166 if (srcdir=${srcdir}/libatomic; \
3167 . ${srcdir}/configure.tgt; \
3168 test -n "$UNSUPPORTED")
3169 then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 noconfigdirs="$noconfigdirs target-libatomic"
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175 $as_echo "yes" >&6; }
3176 fi
3177 fi
3178 fi
3179
3180 # Disable libitm on unsupported systems.
3181 if test -d ${srcdir}/libitm; then
3182 if test x$enable_libitm = x; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3184 $as_echo_n "checking for libitm support... " >&6; }
3185 if (srcdir=${srcdir}/libitm; \
3186 . ${srcdir}/configure.tgt; \
3187 test -n "$UNSUPPORTED")
3188 then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 noconfigdirs="$noconfigdirs target-libitm"
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194 $as_echo "yes" >&6; }
3195 fi
3196 fi
3197 fi
3198
3199 # Disable libsanitizer on unsupported systems.
3200 if test -d ${srcdir}/libsanitizer; then
3201 if test x$enable_libsanitizer = x; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3203 $as_echo_n "checking for libsanitizer support... " >&6; }
3204 if (srcdir=${srcdir}/libsanitizer; \
3205 . ${srcdir}/configure.tgt; \
3206 test -n "$UNSUPPORTED")
3207 then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 noconfigdirs="$noconfigdirs target-libsanitizer"
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213 $as_echo "yes" >&6; }
3214 fi
3215 fi
3216 fi
3217
3218 # Disable libquadmath for some systems.
3219 case "${target}" in
3220 avr-*-*)
3221 noconfigdirs="$noconfigdirs target-libquadmath"
3222 ;;
3223 # libquadmath is unused on AIX and libquadmath build process use of
3224 # LD_LIBRARY_PATH can break AIX bootstrap.
3225 powerpc-*-aix* | rs6000-*-aix*)
3226 noconfigdirs="$noconfigdirs target-libquadmath"
3227 ;;
3228 esac
3229
3230 # Disable libssp for some systems.
3231 case "${target}" in
3232 avr-*-*)
3233 # No hosted I/O support.
3234 noconfigdirs="$noconfigdirs target-libssp"
3235 ;;
3236 powerpc-*-aix* | rs6000-*-aix*)
3237 noconfigdirs="$noconfigdirs target-libssp"
3238 ;;
3239 rl78-*-*)
3240 # libssp uses a misaligned load to trigger a fault, but the RL78
3241 # doesn't fault for those - instead, it gives a build-time error
3242 # for explicit misaligned loads.
3243 noconfigdirs="$noconfigdirs target-libssp"
3244 ;;
3245 esac
3246
3247 # Disable libstdc++-v3 for some systems.
3248 # Allow user to override this if they pass --enable-libstdc++-v3
3249 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3250 case "${target}" in
3251 *-*-vxworks*)
3252 # VxWorks uses the Dinkumware C++ library.
3253 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3254 ;;
3255 arm*-wince-pe*)
3256 # the C++ libraries don't build on top of CE's C libraries
3257 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3258 ;;
3259 avr-*-*)
3260 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3261 ;;
3262 esac
3263 fi
3264
3265 # Disable Fortran for some systems.
3266 case "${target}" in
3267 mmix-*-*)
3268 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3269 unsupported_languages="$unsupported_languages fortran"
3270 ;;
3271 esac
3272
3273 # Disable Java if libffi is not supported.
3274 case "${target}" in
3275 alpha*-*-*)
3276 ;;
3277 arm*-*-*)
3278 ;;
3279 cris-*-*)
3280 ;;
3281 frv-*-*)
3282 ;;
3283 hppa*-*-linux*)
3284 ;;
3285 hppa*-*-hpux*)
3286 ;;
3287 i?86-*-*)
3288 ;;
3289 ia64*-*-*)
3290 ;;
3291 m32r*-*-*)
3292 ;;
3293 m68k-*-*)
3294 ;;
3295 mips*-*-rtems*)
3296 ;;
3297 mips*-*-linux*)
3298 ;;
3299 powerpc*-*-linux*)
3300 ;;
3301 powerpc-*-darwin*)
3302 ;;
3303 powerpc-*-aix* | rs6000-*-aix*)
3304 ;;
3305 powerpc-*-freebsd*)
3306 ;;
3307 powerpc64-*-freebsd*)
3308 ;;
3309 powerpc*-*-rtems*)
3310 ;;
3311 s390-*-* | s390x-*-*)
3312 ;;
3313 sh-*-* | sh[34]*-*-*)
3314 ;;
3315 sh64-*-* | sh5*-*-*)
3316 ;;
3317 sparc*-*-*)
3318 ;;
3319 x86_64-*-*)
3320 ;;
3321 *-*-*)
3322 unsupported_languages="$unsupported_languages java"
3323 ;;
3324 esac
3325
3326 # Disable Java, libgcj or related libraries for some systems.
3327 case "${target}" in
3328 powerpc-*-darwin*)
3329 ;;
3330 i[3456789]86-*-darwin*)
3331 ;;
3332 x86_64-*-darwin[912]*)
3333 ;;
3334 *-*-darwin*)
3335 noconfigdirs="$noconfigdirs ${libgcj}"
3336 ;;
3337 *-*-netware*)
3338 noconfigdirs="$noconfigdirs ${libgcj}"
3339 ;;
3340 *-*-rtems*)
3341 noconfigdirs="$noconfigdirs ${libgcj}"
3342 ;;
3343 *-*-tpf*)
3344 noconfigdirs="$noconfigdirs ${libgcj}"
3345 ;;
3346 *-*-uclinux*)
3347 noconfigdirs="$noconfigdirs ${libgcj}"
3348 ;;
3349 *-*-vxworks*)
3350 noconfigdirs="$noconfigdirs ${libgcj}"
3351 ;;
3352 alpha*-*-*vms*)
3353 noconfigdirs="$noconfigdirs ${libgcj}"
3354 ;;
3355 arm-wince-pe)
3356 noconfigdirs="$noconfigdirs ${libgcj}"
3357 ;;
3358 arm*-*-symbianelf*)
3359 noconfigdirs="$noconfigdirs ${libgcj}"
3360 ;;
3361 bfin-*-*)
3362 noconfigdirs="$noconfigdirs target-boehm-gc"
3363 ;;
3364 cris-*-* | crisv32-*-*)
3365 unsupported_languages="$unsupported_languages java"
3366 case "${target}" in
3367 *-*-linux*)
3368 ;;
3369 *) # See PR46792 regarding target-libffi.
3370 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3371 esac
3372 ;;
3373 hppa*64*-*-linux*)
3374 # In this case, it's because the hppa64-linux target is for
3375 # the kernel only at this point and has no libc, and thus no
3376 # headers, crt*.o, etc., all of which are needed by these.
3377 unsupported_languages="$unsupported_languages java"
3378 ;;
3379 hppa*64*-*-hpux*)
3380 noconfigdirs="$noconfigdirs ${libgcj}"
3381 ;;
3382 hppa*-hp-hpux11*)
3383 ;;
3384 hppa*-*-hpux*)
3385 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3386 # build on HP-UX 10.20.
3387 noconfigdirs="$noconfigdirs ${libgcj}"
3388 ;;
3389 ia64*-*-*vms*)
3390 noconfigdirs="$noconfigdirs ${libgcj}"
3391 ;;
3392 i[3456789]86-w64-mingw*)
3393 noconfigdirs="$noconfigdirs ${libgcj}"
3394 ;;
3395 i[3456789]86-*-mingw*)
3396 noconfigdirs="$noconfigdirs ${libgcj}"
3397 ;;
3398 x86_64-*-mingw*)
3399 noconfigdirs="$noconfigdirs ${libgcj}"
3400 ;;
3401 mmix-*-*)
3402 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3403 ;;
3404 powerpc-*-aix*)
3405 # copied from rs6000-*-* entry
3406 noconfigdirs="$noconfigdirs ${libgcj}"
3407 ;;
3408 rs6000-*-aix*)
3409 noconfigdirs="$noconfigdirs ${libgcj}"
3410 ;;
3411 *-*-lynxos*)
3412 noconfigdirs="$noconfigdirs ${libgcj}"
3413 ;;
3414 esac
3415
3416 # Disable libgo for some systems where it is known to not work.
3417 # For testing, you can easily override this with --enable-libgo.
3418 if test x$enable_libgo = x; then
3419 case "${target}" in
3420 *-*-darwin*)
3421 # PR 46986
3422 noconfigdirs="$noconfigdirs target-libgo"
3423 ;;
3424 *-*-cygwin* | *-*-mingw*)
3425 noconfigdirs="$noconfigdirs target-libgo"
3426 ;;
3427 *-*-aix*)
3428 noconfigdirs="$noconfigdirs target-libgo"
3429 ;;
3430 esac
3431 fi
3432
3433 # Default libgloss CPU subdirectory.
3434 libgloss_dir="$target_cpu"
3435
3436 case "${target}" in
3437 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3438 libgloss_dir=wince
3439 ;;
3440 arm*-*-*)
3441 libgloss_dir=arm
3442 ;;
3443 cris-*-* | crisv32-*-*)
3444 libgloss_dir=cris
3445 ;;
3446 hppa*-*-*)
3447 libgloss_dir=pa
3448 ;;
3449 i[3456789]86-*-*)
3450 libgloss_dir=i386
3451 ;;
3452 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3453 libgloss_dir=m68hc11
3454 ;;
3455 m68*-*-* | fido-*-*)
3456 libgloss_dir=m68k
3457 ;;
3458 mips*-*-*)
3459 libgloss_dir=mips
3460 ;;
3461 powerpc*-*-*)
3462 libgloss_dir=rs6000
3463 ;;
3464 sparc*-*-*)
3465 libgloss_dir=sparc
3466 ;;
3467 esac
3468
3469 # Disable newlib and libgloss for various target OSes.
3470 case "${target}" in
3471 alpha*-dec-osf*)
3472 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3473 ;;
3474 i[3456789]86-*-linux*)
3475 # This section makes it possible to build newlib natively on linux.
3476 # If we are using a cross compiler then don't configure newlib.
3477 if test x${is_cross_compiler} != xno ; then
3478 noconfigdirs="$noconfigdirs target-newlib"
3479 fi
3480 noconfigdirs="$noconfigdirs target-libgloss"
3481 # If we are not using a cross compiler, do configure newlib.
3482 # Note however, that newlib will only be configured in this situation
3483 # if the --with-newlib option has been given, because otherwise
3484 # 'target-newlib' will appear in skipdirs.
3485 ;;
3486 i[3456789]86-*-rdos*)
3487 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3488 ;;
3489 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3490 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3491 ;;
3492 sparc-*-sunos4*)
3493 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3494 ;;
3495 *-*-aix*)
3496 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3497 ;;
3498 *-*-beos*)
3499 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3500 ;;
3501 *-*-chorusos)
3502 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3503 ;;
3504 *-*-dragonfly*)
3505 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3506 ;;
3507 *-*-freebsd*)
3508 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3509 ;;
3510 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3511 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3512 ;;
3513 *-*-lynxos*)
3514 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3515 ;;
3516 *-*-mingw*)
3517 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3518 ;;
3519 *-*-netbsd*)
3520 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3521 ;;
3522 *-*-netware*)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 *-*-tpf*)
3526 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 ;;
3528 *-*-uclinux*)
3529 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 ;;
3531 *-*-vxworks*)
3532 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 ;;
3534 esac
3535
3536 case "${target}" in
3537 *-*-chorusos)
3538 ;;
3539 powerpc-*-darwin*)
3540 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3541 noconfigdirs="$noconfigdirs sim target-rda"
3542 ;;
3543 i[3456789]86-*-darwin*)
3544 noconfigdirs="$noconfigdirs ld gprof"
3545 noconfigdirs="$noconfigdirs sim target-rda"
3546 ;;
3547 x86_64-*-darwin[912]*)
3548 noconfigdirs="$noconfigdirs ld gas gprof"
3549 noconfigdirs="$noconfigdirs sim target-rda"
3550 ;;
3551 *-*-darwin*)
3552 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3553 noconfigdirs="$noconfigdirs sim target-rda"
3554 ;;
3555 *-*-dragonfly*)
3556 ;;
3557 *-*-freebsd*)
3558 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3559 && test -f /usr/local/include/gmp.h; then
3560 with_gmp=/usr/local
3561 fi
3562 ;;
3563 *-*-kaos*)
3564 # Remove unsupported stuff on all kaOS configurations.
3565 noconfigdirs="$noconfigdirs target-libgloss"
3566 ;;
3567 *-*-netbsd*)
3568 ;;
3569 *-*-netware*)
3570 ;;
3571 *-*-rtems*)
3572 noconfigdirs="$noconfigdirs target-libgloss"
3573 ;;
3574 # The tpf target doesn't support gdb yet.
3575 *-*-tpf*)
3576 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3577 ;;
3578 *-*-uclinux*)
3579 noconfigdirs="$noconfigdirs target-rda"
3580 ;;
3581 *-*-vxworks*)
3582 ;;
3583 alpha*-dec-osf*)
3584 # ld works, but does not support shared libraries.
3585 # gas doesn't generate exception information.
3586 noconfigdirs="$noconfigdirs gas ld"
3587 ;;
3588 alpha*-*-*vms*)
3589 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3590 ;;
3591 alpha*-*-*)
3592 # newlib is not 64 bit ready
3593 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3594 ;;
3595 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3596 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3597 ;;
3598 arc-*-*)
3599 noconfigdirs="$noconfigdirs target-libgloss"
3600 ;;
3601 arm-*-pe*)
3602 noconfigdirs="$noconfigdirs target-libgloss"
3603 ;;
3604 arm-*-riscix*)
3605 noconfigdirs="$noconfigdirs ld target-libgloss"
3606 ;;
3607 avr-*-rtems*)
3608 ;;
3609 avr-*-*)
3610 if test x${with_avrlibc} != xno; then
3611 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 fi
3613 ;;
3614 c4x-*-* | tic4x-*-*)
3615 noconfigdirs="$noconfigdirs target-libgloss"
3616 ;;
3617 tic54x-*-*)
3618 noconfigdirs="$noconfigdirs target-libgloss gdb"
3619 ;;
3620 d10v-*-*)
3621 noconfigdirs="$noconfigdirs target-libgloss"
3622 ;;
3623 d30v-*-*)
3624 noconfigdirs="$noconfigdirs gdb"
3625 ;;
3626 fr30-*-elf*)
3627 noconfigdirs="$noconfigdirs gdb"
3628 ;;
3629 moxie-*-*)
3630 noconfigdirs="$noconfigdirs gprof"
3631 ;;
3632 h8300*-*-*)
3633 noconfigdirs="$noconfigdirs target-libgloss"
3634 ;;
3635 h8500-*-*)
3636 noconfigdirs="$noconfigdirs target-libgloss"
3637 ;;
3638 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3639 ;;
3640 hppa*64*-*-linux*)
3641 ;;
3642 hppa*-*-linux*)
3643 ;;
3644 hppa*-*-*elf* | \
3645 hppa*-*-lites* | \
3646 hppa*-*-openbsd* | \
3647 hppa*64*-*-*)
3648 ;;
3649 hppa*-hp-hpux11*)
3650 noconfigdirs="$noconfigdirs ld"
3651 ;;
3652 hppa*-*-pro*)
3653 ;;
3654 hppa*-*-*)
3655 noconfigdirs="$noconfigdirs ld"
3656 ;;
3657 i960-*-*)
3658 noconfigdirs="$noconfigdirs gdb"
3659 ;;
3660 ia64*-*-elf*)
3661 # No gdb support yet.
3662 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3663 ;;
3664 ia64*-**-hpux*)
3665 # No ld support yet.
3666 noconfigdirs="$noconfigdirs libgui itcl ld"
3667 ;;
3668 ia64*-*-*vms*)
3669 # No ld support yet.
3670 noconfigdirs="$noconfigdirs libgui itcl ld"
3671 ;;
3672 i[3456789]86-w64-mingw*)
3673 ;;
3674 i[3456789]86-*-mingw*)
3675 target_configdirs="$target_configdirs target-winsup"
3676 ;;
3677 *-*-cygwin*)
3678 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3679 noconfigdirs="$noconfigdirs target-libgloss"
3680 # always build newlib if winsup directory is present.
3681 if test -d "$srcdir/winsup/cygwin"; then
3682 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3683 elif test -d "$srcdir/newlib"; then
3684 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3685 fi
3686 ;;
3687 i[3456789]86-*-pe)
3688 noconfigdirs="$noconfigdirs target-libgloss"
3689 ;;
3690 i[3456789]86-*-sco3.2v5*)
3691 # The linker does not yet know about weak symbols in COFF,
3692 # and is not configured to handle mixed ELF and COFF.
3693 noconfigdirs="$noconfigdirs ld target-libgloss"
3694 ;;
3695 i[3456789]86-*-sco*)
3696 noconfigdirs="$noconfigdirs gprof target-libgloss"
3697 ;;
3698 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3699 noconfigdirs="$noconfigdirs target-libgloss"
3700 ;;
3701 i[3456789]86-*-sysv4*)
3702 noconfigdirs="$noconfigdirs target-libgloss"
3703 ;;
3704 i[3456789]86-*-beos*)
3705 noconfigdirs="$noconfigdirs gdb"
3706 ;;
3707 i[3456789]86-*-rdos*)
3708 noconfigdirs="$noconfigdirs gdb"
3709 ;;
3710 mmix-*-*)
3711 noconfigdirs="$noconfigdirs gdb"
3712 ;;
3713 mt-*-*)
3714 noconfigdirs="$noconfigdirs sim"
3715 ;;
3716 powerpc-*-aix*)
3717 # copied from rs6000-*-* entry
3718 noconfigdirs="$noconfigdirs gprof"
3719 ;;
3720 powerpc*-*-winnt* | powerpc*-*-pe*)
3721 target_configdirs="$target_configdirs target-winsup"
3722 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3723 # always build newlib.
3724 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3725 ;;
3726 # This is temporary until we can link against shared libraries
3727 powerpcle-*-solaris*)
3728 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3729 ;;
3730 powerpc-*-beos*)
3731 noconfigdirs="$noconfigdirs gdb"
3732 ;;
3733 rs6000-*-lynxos*)
3734 noconfigdirs="$noconfigdirs gprof"
3735 ;;
3736 rs6000-*-aix*)
3737 noconfigdirs="$noconfigdirs gprof"
3738 ;;
3739 rs6000-*-*)
3740 noconfigdirs="$noconfigdirs gprof"
3741 ;;
3742 m68k-apollo-*)
3743 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3744 ;;
3745 microblaze*)
3746 noconfigdirs="$noconfigdirs gprof"
3747 ;;
3748 mips*-sde-elf* | mips*-mti-elf*)
3749 if test x$with_newlib = xyes; then
3750 noconfigdirs="$noconfigdirs gprof"
3751 fi
3752 ;;
3753 mips*-*-irix5*)
3754 noconfigdirs="$noconfigdirs gprof target-libgloss"
3755 ;;
3756 mips*-*-irix6*)
3757 noconfigdirs="$noconfigdirs gprof target-libgloss"
3758 ;;
3759 mips*-*-bsd*)
3760 noconfigdirs="$noconfigdirs gprof target-libgloss"
3761 ;;
3762 mips*-*-linux*)
3763 ;;
3764 mips*-*-*)
3765 noconfigdirs="$noconfigdirs gprof"
3766 ;;
3767 sh-*-* | sh64-*-*)
3768 case "${target}" in
3769 sh*-*-elf)
3770 ;;
3771 *)
3772 noconfigdirs="$noconfigdirs target-libgloss" ;;
3773 esac
3774 ;;
3775 sparc-*-sunos4*)
3776 if test x${is_cross_compiler} = xno ; then
3777 use_gnu_ld=no
3778 fi
3779 ;;
3780 tic6x-*-*)
3781 noconfigdirs="$noconfigdirs sim"
3782 ;;
3783 tilepro-*-* | tilegx-*-*)
3784 noconfigdirs="$noconfigdirs sim"
3785 ;;
3786 v810-*-*)
3787 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3788 ;;
3789 vax-*-*)
3790 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3791 ;;
3792 esac
3793
3794 # If we aren't building newlib, then don't build libgloss, since libgloss
3795 # depends upon some newlib header files.
3796 case "${noconfigdirs}" in
3797 *target-libgloss*) ;;
3798 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3799 esac
3800
3801 # Work in distributions that contain no compiler tools, like Autoconf.
3802 host_makefile_frag=/dev/null
3803 if test -d ${srcdir}/config ; then
3804 case "${host}" in
3805 i[3456789]86-*-msdosdjgpp*)
3806 host_makefile_frag="config/mh-djgpp"
3807 ;;
3808 *-cygwin*)
3809
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3811 $as_echo_n "checking to see if cat works as expected... " >&6; }
3812 echo a >cygwin-cat-check
3813 if test `cat cygwin-cat-check` = a ; then
3814 rm cygwin-cat-check
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3816 $as_echo "yes" >&6; }
3817 else
3818 rm cygwin-cat-check
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3821 as_fn_error "The cat command does not ignore carriage return characters.
3822 Please either mount the build directory in binary mode or run the following
3823 commands before running any configure script:
3824 set -o igncr
3825 export SHELLOPTS
3826 " "$LINENO" 5
3827 fi
3828
3829 host_makefile_frag="config/mh-cygwin"
3830 ;;
3831 *-mingw*)
3832 host_makefile_frag="config/mh-mingw"
3833 ;;
3834 hppa*-hp-hpux10*)
3835 host_makefile_frag="config/mh-pa-hpux10"
3836 ;;
3837 hppa*-hp-hpux*)
3838 host_makefile_frag="config/mh-pa"
3839 ;;
3840 hppa*-*)
3841 host_makefile_frag="config/mh-pa"
3842 ;;
3843 *-*-darwin*)
3844 host_makefile_frag="config/mh-darwin"
3845 ;;
3846 powerpc-*-aix*)
3847 host_makefile_frag="config/mh-ppc-aix"
3848 ;;
3849 rs6000-*-aix*)
3850 host_makefile_frag="config/mh-ppc-aix"
3851 ;;
3852 esac
3853 fi
3854
3855 if test "${build}" != "${host}" ; then
3856 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3857 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3858 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3859 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3860 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3861 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3862 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3863 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3864 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3865 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3866 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3867 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3868 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3869 else
3870 AR_FOR_BUILD="\$(AR)"
3871 AS_FOR_BUILD="\$(AS)"
3872 CC_FOR_BUILD="\$(CC)"
3873 CXX_FOR_BUILD="\$(CXX)"
3874 GCJ_FOR_BUILD="\$(GCJ)"
3875 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3876 GOC_FOR_BUILD="\$(GOC)"
3877 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3878 LD_FOR_BUILD="\$(LD)"
3879 NM_FOR_BUILD="\$(NM)"
3880 RANLIB_FOR_BUILD="\$(RANLIB)"
3881 WINDRES_FOR_BUILD="\$(WINDRES)"
3882 WINDMC_FOR_BUILD="\$(WINDMC)"
3883 fi
3884
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890 if test -n "$ac_tool_prefix"; then
3891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if test "${ac_cv_prog_CC+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 if test -n "$CC"; then
3899 ac_cv_prog_CC="$CC" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3903 do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912 done
3913 done
3914 IFS=$as_save_IFS
3915
3916 fi
3917 fi
3918 CC=$ac_cv_prog_CC
3919 if test -n "$CC"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3921 $as_echo "$CC" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3925 fi
3926
3927
3928 fi
3929 if test -z "$ac_cv_prog_CC"; then
3930 ac_ct_CC=$CC
3931 # Extract the first word of "gcc", so it can be a program name with args.
3932 set dummy gcc; ac_word=$2
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 if test -n "$ac_ct_CC"; then
3939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3940 else
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3943 do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948 ac_cv_prog_ac_ct_CC="gcc"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952 done
3953 done
3954 IFS=$as_save_IFS
3955
3956 fi
3957 fi
3958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3959 if test -n "$ac_ct_CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3961 $as_echo "$ac_ct_CC" >&6; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3965 fi
3966
3967 if test "x$ac_ct_CC" = x; then
3968 CC=""
3969 else
3970 case $cross_compiling:$ac_tool_warned in
3971 yes:)
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974 ac_tool_warned=yes ;;
3975 esac
3976 CC=$ac_ct_CC
3977 fi
3978 else
3979 CC="$ac_cv_prog_CC"
3980 fi
3981
3982 if test -z "$CC"; then
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3985 set dummy ${ac_tool_prefix}cc; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if test "${ac_cv_prog_CC+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if test -n "$CC"; then
3992 ac_cv_prog_CC="$CC" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3996 do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4001 ac_cv_prog_CC="${ac_tool_prefix}cc"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4004 fi
4005 done
4006 done
4007 IFS=$as_save_IFS
4008
4009 fi
4010 fi
4011 CC=$ac_cv_prog_CC
4012 if test -n "$CC"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 $as_echo "$CC" >&6; }
4015 else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4018 fi
4019
4020
4021 fi
4022 fi
4023 if test -z "$CC"; then
4024 # Extract the first word of "cc", so it can be a program name with args.
4025 set dummy cc; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if test "${ac_cv_prog_CC+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 if test -n "$CC"; then
4032 ac_cv_prog_CC="$CC" # Let the user override the test.
4033 else
4034 ac_prog_rejected=no
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4043 ac_prog_rejected=yes
4044 continue
4045 fi
4046 ac_cv_prog_CC="cc"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050 done
4051 done
4052 IFS=$as_save_IFS
4053
4054 if test $ac_prog_rejected = yes; then
4055 # We found a bogon in the path, so make sure we never use it.
4056 set dummy $ac_cv_prog_CC
4057 shift
4058 if test $# != 0; then
4059 # We chose a different compiler from the bogus one.
4060 # However, it has the same basename, so the bogon will be chosen
4061 # first if we set CC to just the basename; use the full file name.
4062 shift
4063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4064 fi
4065 fi
4066 fi
4067 fi
4068 CC=$ac_cv_prog_CC
4069 if test -n "$CC"; then
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071 $as_echo "$CC" >&6; }
4072 else
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4075 fi
4076
4077
4078 fi
4079 if test -z "$CC"; then
4080 if test -n "$ac_tool_prefix"; then
4081 for ac_prog in cl.exe
4082 do
4083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if test "${ac_cv_prog_CC+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC="$CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4103 fi
4104 done
4105 done
4106 IFS=$as_save_IFS
4107
4108 fi
4109 fi
4110 CC=$ac_cv_prog_CC
4111 if test -n "$CC"; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113 $as_echo "$CC" >&6; }
4114 else
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4117 fi
4118
4119
4120 test -n "$CC" && break
4121 done
4122 fi
4123 if test -z "$CC"; then
4124 ac_ct_CC=$CC
4125 for ac_prog in cl.exe
4126 do
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128 set dummy $ac_prog; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$ac_ct_CC"; then
4135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_prog_ac_ct_CC="$ac_prog"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148 done
4149 done
4150 IFS=$as_save_IFS
4151
4152 fi
4153 fi
4154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4155 if test -n "$ac_ct_CC"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4157 $as_echo "$ac_ct_CC" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4161 fi
4162
4163
4164 test -n "$ac_ct_CC" && break
4165 done
4166
4167 if test "x$ac_ct_CC" = x; then
4168 CC=""
4169 else
4170 case $cross_compiling:$ac_tool_warned in
4171 yes:)
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4174 ac_tool_warned=yes ;;
4175 esac
4176 CC=$ac_ct_CC
4177 fi
4178 fi
4179
4180 fi
4181
4182
4183 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185 as_fn_error "no acceptable C compiler found in \$PATH
4186 See \`config.log' for more details." "$LINENO" 5; }
4187
4188 # Provide some information about the compiler.
4189 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4190 set X $ac_compile
4191 ac_compiler=$2
4192 for ac_option in --version -v -V -qversion; do
4193 { { ac_try="$ac_compiler $ac_option >&5"
4194 case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197 esac
4198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199 $as_echo "$ac_try_echo"; } >&5
4200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4201 ac_status=$?
4202 if test -s conftest.err; then
4203 sed '10a\
4204 ... rest of stderr output deleted ...
4205 10q' conftest.err >conftest.er1
4206 cat conftest.er1 >&5
4207 rm -f conftest.er1 conftest.err
4208 fi
4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210 test $ac_status = 0; }
4211 done
4212
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215
4216 int
4217 main ()
4218 {
4219
4220 ;
4221 return 0;
4222 }
4223 _ACEOF
4224 ac_clean_files_save=$ac_clean_files
4225 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4226 # Try to create an executable without -o first, disregard a.out.
4227 # It will help us diagnose broken compilers, and finding out an intuition
4228 # of exeext.
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4230 $as_echo_n "checking for C compiler default output file name... " >&6; }
4231 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4232
4233 # The possible output files:
4234 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4235
4236 ac_rmfiles=
4237 for ac_file in $ac_files
4238 do
4239 case $ac_file in
4240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4242 esac
4243 done
4244 rm -f $ac_rmfiles
4245
4246 if { { ac_try="$ac_link_default"
4247 case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250 esac
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_link_default") 2>&5
4254 ac_status=$?
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; }; then :
4257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4258 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4259 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4260 # so that the user can short-circuit this test for compilers unknown to
4261 # Autoconf.
4262 for ac_file in $ac_files ''
4263 do
4264 test -f "$ac_file" || continue
4265 case $ac_file in
4266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4267 ;;
4268 [ab].out )
4269 # We found the default executable, but exeext='' is most
4270 # certainly right.
4271 break;;
4272 *.* )
4273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4274 then :; else
4275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4276 fi
4277 # We set ac_cv_exeext here because the later test for it is not
4278 # safe: cross compilers may not add the suffix if given an `-o'
4279 # argument, so we may need to know it at that point already.
4280 # Even if this section looks crufty: it has the advantage of
4281 # actually working.
4282 break;;
4283 * )
4284 break;;
4285 esac
4286 done
4287 test "$ac_cv_exeext" = no && ac_cv_exeext=
4288
4289 else
4290 ac_file=''
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4293 $as_echo "$ac_file" >&6; }
4294 if test -z "$ac_file"; then :
4295 $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300 { as_fn_set_status 77
4301 as_fn_error "C compiler cannot create executables
4302 See \`config.log' for more details." "$LINENO" 5; }; }
4303 fi
4304 ac_exeext=$ac_cv_exeext
4305
4306 # Check that the compiler produces executables we can run. If not, either
4307 # the compiler is broken, or we cross compile.
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4309 $as_echo_n "checking whether the C compiler works... " >&6; }
4310 # If not cross compiling, check that we can run a simple program.
4311 if test "$cross_compiling" != yes; then
4312 if { ac_try='./$ac_file'
4313 { { case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316 esac
4317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_try") 2>&5
4320 ac_status=$?
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }; }; then
4323 cross_compiling=no
4324 else
4325 if test "$cross_compiling" = maybe; then
4326 cross_compiling=yes
4327 else
4328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330 as_fn_error "cannot run C compiled programs.
4331 If you meant to cross compile, use \`--host'.
4332 See \`config.log' for more details." "$LINENO" 5; }
4333 fi
4334 fi
4335 fi
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4337 $as_echo "yes" >&6; }
4338
4339 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4340 ac_clean_files=$ac_clean_files_save
4341 # Check that the compiler produces executables we can run. If not, either
4342 # the compiler is broken, or we cross compile.
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4344 $as_echo_n "checking whether we are cross compiling... " >&6; }
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4346 $as_echo "$cross_compiling" >&6; }
4347
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4349 $as_echo_n "checking for suffix of executables... " >&6; }
4350 if { { ac_try="$ac_link"
4351 case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4354 esac
4355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4356 $as_echo "$ac_try_echo"; } >&5
4357 (eval "$ac_link") 2>&5
4358 ac_status=$?
4359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360 test $ac_status = 0; }; then :
4361 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4362 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4363 # work properly (i.e., refer to `conftest.exe'), while it won't with
4364 # `rm'.
4365 for ac_file in conftest.exe conftest conftest.*; do
4366 test -f "$ac_file" || continue
4367 case $ac_file in
4368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4369 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4370 break;;
4371 * ) break;;
4372 esac
4373 done
4374 else
4375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4377 as_fn_error "cannot compute suffix of executables: cannot compile and link
4378 See \`config.log' for more details." "$LINENO" 5; }
4379 fi
4380 rm -f conftest$ac_cv_exeext
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4382 $as_echo "$ac_cv_exeext" >&6; }
4383
4384 rm -f conftest.$ac_ext
4385 EXEEXT=$ac_cv_exeext
4386 ac_exeext=$EXEEXT
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4388 $as_echo_n "checking for suffix of object files... " >&6; }
4389 if test "${ac_cv_objext+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394
4395 int
4396 main ()
4397 {
4398
4399 ;
4400 return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.o conftest.obj
4404 if { { ac_try="$ac_compile"
4405 case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408 esac
4409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410 $as_echo "$ac_try_echo"; } >&5
4411 (eval "$ac_compile") 2>&5
4412 ac_status=$?
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; }; then :
4415 for ac_file in conftest.o conftest.obj conftest.*; do
4416 test -f "$ac_file" || continue;
4417 case $ac_file in
4418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4419 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4420 break;;
4421 esac
4422 done
4423 else
4424 $as_echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4429 as_fn_error "cannot compute suffix of object files: cannot compile
4430 See \`config.log' for more details." "$LINENO" 5; }
4431 fi
4432 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4435 $as_echo "$ac_cv_objext" >&6; }
4436 OBJEXT=$ac_cv_objext
4437 ac_objext=$OBJEXT
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4439 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4440 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445
4446 int
4447 main ()
4448 {
4449 #ifndef __GNUC__
4450 choke me
4451 #endif
4452
4453 ;
4454 return 0;
4455 }
4456 _ACEOF
4457 if ac_fn_c_try_compile "$LINENO"; then :
4458 ac_compiler_gnu=yes
4459 else
4460 ac_compiler_gnu=no
4461 fi
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4464
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4467 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4468 if test $ac_compiler_gnu = yes; then
4469 GCC=yes
4470 else
4471 GCC=
4472 fi
4473 ac_test_CFLAGS=${CFLAGS+set}
4474 ac_save_CFLAGS=$CFLAGS
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4476 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4477 if test "${ac_cv_prog_cc_g+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 ac_save_c_werror_flag=$ac_c_werror_flag
4481 ac_c_werror_flag=yes
4482 ac_cv_prog_cc_g=no
4483 CFLAGS="-g"
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486
4487 int
4488 main ()
4489 {
4490
4491 ;
4492 return 0;
4493 }
4494 _ACEOF
4495 if ac_fn_c_try_compile "$LINENO"; then :
4496 ac_cv_prog_cc_g=yes
4497 else
4498 CFLAGS=""
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 if ac_fn_c_try_compile "$LINENO"; then :
4511
4512 else
4513 ac_c_werror_flag=$ac_save_c_werror_flag
4514 CFLAGS="-g"
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517
4518 int
4519 main ()
4520 {
4521
4522 ;
4523 return 0;
4524 }
4525 _ACEOF
4526 if ac_fn_c_try_compile "$LINENO"; then :
4527 ac_cv_prog_cc_g=yes
4528 fi
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 fi
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 fi
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 ac_c_werror_flag=$ac_save_c_werror_flag
4535 fi
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4537 $as_echo "$ac_cv_prog_cc_g" >&6; }
4538 if test "$ac_test_CFLAGS" = set; then
4539 CFLAGS=$ac_save_CFLAGS
4540 elif test $ac_cv_prog_cc_g = yes; then
4541 if test "$GCC" = yes; then
4542 CFLAGS="-g -O2"
4543 else
4544 CFLAGS="-g"
4545 fi
4546 else
4547 if test "$GCC" = yes; then
4548 CFLAGS="-O2"
4549 else
4550 CFLAGS=
4551 fi
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4554 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4555 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 ac_cv_prog_cc_c89=no
4559 ac_save_CC=$CC
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4562 #include <stdarg.h>
4563 #include <stdio.h>
4564 #include <sys/types.h>
4565 #include <sys/stat.h>
4566 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4567 struct buf { int x; };
4568 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4569 static char *e (p, i)
4570 char **p;
4571 int i;
4572 {
4573 return p[i];
4574 }
4575 static char *f (char * (*g) (char **, int), char **p, ...)
4576 {
4577 char *s;
4578 va_list v;
4579 va_start (v,p);
4580 s = g (p, va_arg (v,int));
4581 va_end (v);
4582 return s;
4583 }
4584
4585 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4586 function prototypes and stuff, but not '\xHH' hex character constants.
4587 These don't provoke an error unfortunately, instead are silently treated
4588 as 'x'. The following induces an error, until -std is added to get
4589 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4590 array size at least. It's necessary to write '\x00'==0 to get something
4591 that's true only with -std. */
4592 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4593
4594 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4595 inside strings and character constants. */
4596 #define FOO(x) 'x'
4597 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4598
4599 int test (int i, double x);
4600 struct s1 {int (*f) (int a);};
4601 struct s2 {int (*f) (double a);};
4602 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4603 int argc;
4604 char **argv;
4605 int
4606 main ()
4607 {
4608 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4609 ;
4610 return 0;
4611 }
4612 _ACEOF
4613 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4614 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4615 do
4616 CC="$ac_save_CC $ac_arg"
4617 if ac_fn_c_try_compile "$LINENO"; then :
4618 ac_cv_prog_cc_c89=$ac_arg
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext
4621 test "x$ac_cv_prog_cc_c89" != "xno" && break
4622 done
4623 rm -f conftest.$ac_ext
4624 CC=$ac_save_CC
4625
4626 fi
4627 # AC_CACHE_VAL
4628 case "x$ac_cv_prog_cc_c89" in
4629 x)
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4631 $as_echo "none needed" >&6; } ;;
4632 xno)
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4634 $as_echo "unsupported" >&6; } ;;
4635 *)
4636 CC="$CC $ac_cv_prog_cc_c89"
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4638 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4639 esac
4640 if test "x$ac_cv_prog_cc_c89" != xno; then :
4641
4642 fi
4643
4644 ac_ext=c
4645 ac_cpp='$CPP $CPPFLAGS'
4646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649
4650 ac_ext=cpp
4651 ac_cpp='$CXXCPP $CPPFLAGS'
4652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4655 if test -z "$CXX"; then
4656 if test -n "$CCC"; then
4657 CXX=$CCC
4658 else
4659 if test -n "$ac_tool_prefix"; then
4660 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4661 do
4662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665 $as_echo_n "checking for $ac_word... " >&6; }
4666 if test "${ac_cv_prog_CXX+set}" = set; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 if test -n "$CXX"; then
4670 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4682 fi
4683 done
4684 done
4685 IFS=$as_save_IFS
4686
4687 fi
4688 fi
4689 CXX=$ac_cv_prog_CXX
4690 if test -n "$CXX"; then
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4692 $as_echo "$CXX" >&6; }
4693 else
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4696 fi
4697
4698
4699 test -n "$CXX" && break
4700 done
4701 fi
4702 if test -z "$CXX"; then
4703 ac_ct_CXX=$CXX
4704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4705 do
4706 # Extract the first word of "$ac_prog", so it can be a program name with args.
4707 set dummy $ac_prog; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 if test -n "$ac_ct_CXX"; then
4714 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4715 else
4716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 for as_dir in $PATH
4718 do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4723 ac_cv_prog_ac_ct_CXX="$ac_prog"
4724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727 done
4728 done
4729 IFS=$as_save_IFS
4730
4731 fi
4732 fi
4733 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4734 if test -n "$ac_ct_CXX"; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4736 $as_echo "$ac_ct_CXX" >&6; }
4737 else
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4740 fi
4741
4742
4743 test -n "$ac_ct_CXX" && break
4744 done
4745
4746 if test "x$ac_ct_CXX" = x; then
4747 CXX="g++"
4748 else
4749 case $cross_compiling:$ac_tool_warned in
4750 yes:)
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4753 ac_tool_warned=yes ;;
4754 esac
4755 CXX=$ac_ct_CXX
4756 fi
4757 fi
4758
4759 fi
4760 fi
4761 # Provide some information about the compiler.
4762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4763 set X $ac_compile
4764 ac_compiler=$2
4765 for ac_option in --version -v -V -qversion; do
4766 { { ac_try="$ac_compiler $ac_option >&5"
4767 case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770 esac
4771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4772 $as_echo "$ac_try_echo"; } >&5
4773 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4774 ac_status=$?
4775 if test -s conftest.err; then
4776 sed '10a\
4777 ... rest of stderr output deleted ...
4778 10q' conftest.err >conftest.er1
4779 cat conftest.er1 >&5
4780 rm -f conftest.er1 conftest.err
4781 fi
4782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783 test $ac_status = 0; }
4784 done
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4787 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4788 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4793
4794 int
4795 main ()
4796 {
4797 #ifndef __GNUC__
4798 choke me
4799 #endif
4800
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_cxx_try_compile "$LINENO"; then :
4806 ac_compiler_gnu=yes
4807 else
4808 ac_compiler_gnu=no
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4812
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4815 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4816 if test $ac_compiler_gnu = yes; then
4817 GXX=yes
4818 else
4819 GXX=
4820 fi
4821 ac_test_CXXFLAGS=${CXXFLAGS+set}
4822 ac_save_CXXFLAGS=$CXXFLAGS
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4824 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4825 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4829 ac_cxx_werror_flag=yes
4830 ac_cv_prog_cxx_g=no
4831 CXXFLAGS="-g"
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834
4835 int
4836 main ()
4837 {
4838
4839 ;
4840 return 0;
4841 }
4842 _ACEOF
4843 if ac_fn_cxx_try_compile "$LINENO"; then :
4844 ac_cv_prog_cxx_g=yes
4845 else
4846 CXXFLAGS=""
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849
4850 int
4851 main ()
4852 {
4853
4854 ;
4855 return 0;
4856 }
4857 _ACEOF
4858 if ac_fn_cxx_try_compile "$LINENO"; then :
4859
4860 else
4861 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4862 CXXFLAGS="-g"
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865
4866 int
4867 main ()
4868 {
4869
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 if ac_fn_cxx_try_compile "$LINENO"; then :
4875 ac_cv_prog_cxx_g=yes
4876 fi
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 fi
4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4885 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4886 if test "$ac_test_CXXFLAGS" = set; then
4887 CXXFLAGS=$ac_save_CXXFLAGS
4888 elif test $ac_cv_prog_cxx_g = yes; then
4889 if test "$GXX" = yes; then
4890 CXXFLAGS="-g -O2"
4891 else
4892 CXXFLAGS="-g"
4893 fi
4894 else
4895 if test "$GXX" = yes; then
4896 CXXFLAGS="-O2"
4897 else
4898 CXXFLAGS=
4899 fi
4900 fi
4901 ac_ext=c
4902 ac_cpp='$CPP $CPPFLAGS'
4903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4906
4907
4908 # We must set the default linker to the linker used by gcc for the correct
4909 # operation of libtool. If LD is not defined and we are using gcc, try to
4910 # set the LD default to the ld used by gcc.
4911 if test -z "$LD"; then
4912 if test "$GCC" = yes; then
4913 case $build in
4914 *-*-mingw*)
4915 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4916 *)
4917 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4918 esac
4919 case $gcc_prog_ld in
4920 # Accept absolute paths.
4921 [\\/]* | [A-Za-z]:[\\/]*)
4922 LD="$gcc_prog_ld" ;;
4923 esac
4924 fi
4925 fi
4926
4927 # Check whether -static-libstdc++ -static-libgcc is supported.
4928 have_static_libs=no
4929 if test "$GCC" = yes; then
4930 saved_LDFLAGS="$LDFLAGS"
4931
4932 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4934 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4935 ac_ext=cpp
4936 ac_cpp='$CXXCPP $CPPFLAGS'
4937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4940
4941
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944
4945 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4946 #error -static-libstdc++ not implemented
4947 #endif
4948 int main() {}
4949 _ACEOF
4950 if ac_fn_cxx_try_link "$LINENO"; then :
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4952 $as_echo "yes" >&6; }; have_static_libs=yes
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 $as_echo "no" >&6; }
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext \
4958 conftest$ac_exeext conftest.$ac_ext
4959 ac_ext=c
4960 ac_cpp='$CPP $CPPFLAGS'
4961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964
4965
4966 LDFLAGS="$saved_LDFLAGS"
4967 fi
4968
4969
4970
4971
4972 if test -n "$ac_tool_prefix"; then
4973 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4974 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 if test -n "$GNATBIND"; then
4981 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4993 fi
4994 done
4995 done
4996 IFS=$as_save_IFS
4997
4998 fi
4999 fi
5000 GNATBIND=$ac_cv_prog_GNATBIND
5001 if test -n "$GNATBIND"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5003 $as_echo "$GNATBIND" >&6; }
5004 else
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5007 fi
5008
5009
5010 fi
5011 if test -z "$ac_cv_prog_GNATBIND"; then
5012 ac_ct_GNATBIND=$GNATBIND
5013 # Extract the first word of "gnatbind", so it can be a program name with args.
5014 set dummy gnatbind; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if test -n "$ac_ct_GNATBIND"; then
5021 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034 done
5035 done
5036 IFS=$as_save_IFS
5037
5038 fi
5039 fi
5040 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5041 if test -n "$ac_ct_GNATBIND"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5043 $as_echo "$ac_ct_GNATBIND" >&6; }
5044 else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5047 fi
5048
5049 if test "x$ac_ct_GNATBIND" = x; then
5050 GNATBIND="no"
5051 else
5052 case $cross_compiling:$ac_tool_warned in
5053 yes:)
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5056 ac_tool_warned=yes ;;
5057 esac
5058 GNATBIND=$ac_ct_GNATBIND
5059 fi
5060 else
5061 GNATBIND="$ac_cv_prog_GNATBIND"
5062 fi
5063
5064 if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5066 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -n "$GNATMAKE"; then
5073 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5077 do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086 done
5087 done
5088 IFS=$as_save_IFS
5089
5090 fi
5091 fi
5092 GNATMAKE=$ac_cv_prog_GNATMAKE
5093 if test -n "$GNATMAKE"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5095 $as_echo "$GNATMAKE" >&6; }
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5099 fi
5100
5101
5102 fi
5103 if test -z "$ac_cv_prog_GNATMAKE"; then
5104 ac_ct_GNATMAKE=$GNATMAKE
5105 # Extract the first word of "gnatmake", so it can be a program name with args.
5106 set dummy gnatmake; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$ac_ct_GNATMAKE"; then
5113 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130 fi
5131 fi
5132 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5133 if test -n "$ac_ct_GNATMAKE"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5135 $as_echo "$ac_ct_GNATMAKE" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140
5141 if test "x$ac_ct_GNATMAKE" = x; then
5142 GNATMAKE="no"
5143 else
5144 case $cross_compiling:$ac_tool_warned in
5145 yes:)
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148 ac_tool_warned=yes ;;
5149 esac
5150 GNATMAKE=$ac_ct_GNATMAKE
5151 fi
5152 else
5153 GNATMAKE="$ac_cv_prog_GNATMAKE"
5154 fi
5155
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5157 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5158 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 cat >conftest.adb <<EOF
5162 procedure conftest is begin null; end conftest;
5163 EOF
5164 acx_cv_cc_gcc_supports_ada=no
5165 # There is a bug in old released versions of GCC which causes the
5166 # driver to exit successfully when the appropriate language module
5167 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5168 # Therefore we must check for the error message as well as an
5169 # unsuccessful exit.
5170 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5171 # given a .adb file, but produce no object file. So we must check
5172 # if an object file was really produced to guard against this.
5173 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5174 if test x"$errors" = x && test -f conftest.$ac_objext; then
5175 acx_cv_cc_gcc_supports_ada=yes
5176 fi
5177 rm -f conftest.*
5178 fi
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5180 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5181
5182 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5183 have_gnat=yes
5184 else
5185 have_gnat=no
5186 fi
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5189 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5190 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 echo abfoo >t1
5194 echo cdfoo >t2
5195 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5196 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5197 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5198 :
5199 else
5200 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5201 fi
5202 fi
5203 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5204 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5205 :
5206 else
5207 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5208 fi
5209 fi
5210 rm t1 t2
5211
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5214 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5215 do_compare="$gcc_cv_prog_cmp_skip"
5216
5217
5218
5219 # Check whether --enable-bootstrap was given.
5220 if test "${enable_bootstrap+set}" = set; then :
5221 enableval=$enable_bootstrap;
5222 else
5223 enable_bootstrap=default
5224 fi
5225
5226
5227 # Issue errors and warnings for invalid/strange bootstrap combinations.
5228 if test -r $srcdir/gcc/configure; then
5229 have_compiler=yes
5230 else
5231 have_compiler=no
5232 fi
5233
5234 case "$have_compiler:$host:$target:$enable_bootstrap" in
5235 *:*:*:no) ;;
5236
5237 # Default behavior. Enable bootstrap if we have a compiler
5238 # and we are in a native configuration.
5239 yes:$build:$build:default)
5240 enable_bootstrap=yes ;;
5241
5242 *:*:*:default)
5243 enable_bootstrap=no ;;
5244
5245 # We have a compiler and we are in a native configuration, bootstrap is ok
5246 yes:$build:$build:yes)
5247 ;;
5248
5249 # Other configurations, but we have a compiler. Assume the user knows
5250 # what he's doing.
5251 yes:*:*:yes)
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5253 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5254 ;;
5255
5256 # No compiler: if they passed --enable-bootstrap explicitly, fail
5257 no:*:*:yes)
5258 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5259
5260 # Fail if wrong command line
5261 *)
5262 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5263 ;;
5264 esac
5265
5266 # Used for setting $lt_cv_objdir
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5268 $as_echo_n "checking for objdir... " >&6; }
5269 if test "${lt_cv_objdir+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 rm -f .libs 2>/dev/null
5273 mkdir .libs 2>/dev/null
5274 if test -d .libs; then
5275 lt_cv_objdir=.libs
5276 else
5277 # MS-DOS does not allow filenames that begin with a dot.
5278 lt_cv_objdir=_libs
5279 fi
5280 rmdir .libs 2>/dev/null
5281 fi
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5283 $as_echo "$lt_cv_objdir" >&6; }
5284 objdir=$lt_cv_objdir
5285
5286
5287
5288
5289
5290 cat >>confdefs.h <<_ACEOF
5291 #define LT_OBJDIR "$lt_cv_objdir/"
5292 _ACEOF
5293
5294
5295
5296 # Check for GMP, MPFR and MPC
5297 gmplibs="-lmpc -lmpfr -lgmp"
5298 gmpinc=
5299 have_gmp=no
5300
5301 # Specify a location for mpc
5302 # check for this first so it ends up on the link line before mpfr.
5303
5304 # Check whether --with-mpc was given.
5305 if test "${with_mpc+set}" = set; then :
5306 withval=$with_mpc;
5307 fi
5308
5309
5310 # Check whether --with-mpc-include was given.
5311 if test "${with_mpc_include+set}" = set; then :
5312 withval=$with_mpc_include;
5313 fi
5314
5315
5316 # Check whether --with-mpc-lib was given.
5317 if test "${with_mpc_lib+set}" = set; then :
5318 withval=$with_mpc_lib;
5319 fi
5320
5321
5322 if test "x$with_mpc" != x; then
5323 gmplibs="-L$with_mpc/lib $gmplibs"
5324 gmpinc="-I$with_mpc/include $gmpinc"
5325 fi
5326 if test "x$with_mpc_include" != x; then
5327 gmpinc="-I$with_mpc_include $gmpinc"
5328 fi
5329 if test "x$with_mpc_lib" != x; then
5330 gmplibs="-L$with_mpc_lib $gmplibs"
5331 fi
5332 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5333 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5334 gmpinc='-I$$s/mpc/src '"$gmpinc"
5335 # Do not test the mpc version. Assume that it is sufficient, since
5336 # it is in the source tree, and the library has not been built yet
5337 # but it would be included on the link line in the version check below
5338 # hence making the test fail.
5339 have_gmp=yes
5340 fi
5341
5342 # Specify a location for mpfr
5343 # check for this first so it ends up on the link line before gmp.
5344
5345 # Check whether --with-mpfr-dir was given.
5346 if test "${with_mpfr_dir+set}" = set; then :
5347 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5348 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5349 fi
5350
5351
5352
5353 # Check whether --with-mpfr was given.
5354 if test "${with_mpfr+set}" = set; then :
5355 withval=$with_mpfr;
5356 fi
5357
5358
5359 # Check whether --with-mpfr-include was given.
5360 if test "${with_mpfr_include+set}" = set; then :
5361 withval=$with_mpfr_include;
5362 fi
5363
5364
5365 # Check whether --with-mpfr-lib was given.
5366 if test "${with_mpfr_lib+set}" = set; then :
5367 withval=$with_mpfr_lib;
5368 fi
5369
5370
5371 if test "x$with_mpfr" != x; then
5372 gmplibs="-L$with_mpfr/lib $gmplibs"
5373 gmpinc="-I$with_mpfr/include $gmpinc"
5374 fi
5375 if test "x$with_mpfr_include" != x; then
5376 gmpinc="-I$with_mpfr_include $gmpinc"
5377 fi
5378 if test "x$with_mpfr_lib" != x; then
5379 gmplibs="-L$with_mpfr_lib $gmplibs"
5380 fi
5381 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5382 # MPFR v3.1.0 moved the sources into a src sub-directory.
5383 if test -d ${srcdir}/mpfr/src; then
5384 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5385 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5386 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5387 else
5388 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5389 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5390 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5391 fi
5392 # Do not test the mpfr version. Assume that it is sufficient, since
5393 # it is in the source tree, and the library has not been built yet
5394 # but it would be included on the link line in the version check below
5395 # hence making the test fail.
5396 have_gmp=yes
5397 fi
5398
5399 # Specify a location for gmp
5400
5401 # Check whether --with-gmp-dir was given.
5402 if test "${with_gmp_dir+set}" = set; then :
5403 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5404 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5405 fi
5406
5407
5408
5409 # Check whether --with-gmp was given.
5410 if test "${with_gmp+set}" = set; then :
5411 withval=$with_gmp;
5412 fi
5413
5414
5415 # Check whether --with-gmp-include was given.
5416 if test "${with_gmp_include+set}" = set; then :
5417 withval=$with_gmp_include;
5418 fi
5419
5420
5421 # Check whether --with-gmp-lib was given.
5422 if test "${with_gmp_lib+set}" = set; then :
5423 withval=$with_gmp_lib;
5424 fi
5425
5426
5427
5428 if test "x$with_gmp" != x; then
5429 gmplibs="-L$with_gmp/lib $gmplibs"
5430 gmpinc="-I$with_gmp/include $gmpinc"
5431 fi
5432 if test "x$with_gmp_include" != x; then
5433 gmpinc="-I$with_gmp_include $gmpinc"
5434 fi
5435 if test "x$with_gmp_lib" != x; then
5436 gmplibs="-L$with_gmp_lib $gmplibs"
5437 fi
5438 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5439 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5440 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5441 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5442 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5443 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5444 # Do not test the gmp version. Assume that it is sufficient, since
5445 # it is in the source tree, and the library has not been built yet
5446 # but it would be included on the link line in the version check below
5447 # hence making the test fail.
5448 have_gmp=yes
5449 fi
5450
5451 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5452 have_gmp=yes
5453 saved_CFLAGS="$CFLAGS"
5454 CFLAGS="$CFLAGS $gmpinc"
5455 # Check for the recommended and required versions of GMP.
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5457 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5458
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 #include "gmp.h"
5462 int
5463 main ()
5464 {
5465
5466 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5467 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5468 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5469 choke me
5470 #endif
5471
5472 ;
5473 return 0;
5474 }
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5479 #include <gmp.h>
5480 int
5481 main ()
5482 {
5483
5484 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5485 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5486 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5487 choke me
5488 #endif
5489
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 if ac_fn_c_try_compile "$LINENO"; then :
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5496 $as_echo "yes" >&6; }
5497 else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5499 $as_echo "buggy but acceptable" >&6; }
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502 else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }; have_gmp=no
5505 fi
5506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507
5508 # If we have GMP, check the MPFR version.
5509 if test x"$have_gmp" = xyes; then
5510 # Check for the recommended and required versions of MPFR.
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5512 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 #include <gmp.h>
5516 #include <mpfr.h>
5517 int
5518 main ()
5519 {
5520
5521 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5522 choke me
5523 #endif
5524
5525 ;
5526 return 0;
5527 }
5528 _ACEOF
5529 if ac_fn_c_try_compile "$LINENO"; then :
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 #include <gmp.h>
5533 #include <mpfr.h>
5534 int
5535 main ()
5536 {
5537
5538 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5539 choke me
5540 #endif
5541
5542 ;
5543 return 0;
5544 }
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5548 $as_echo "yes" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5551 $as_echo "buggy but acceptable" >&6; }
5552 fi
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }; have_gmp=no
5557 fi
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 fi
5560
5561 # Check for the MPC header version.
5562 if test x"$have_gmp" = xyes ; then
5563 # Check for the recommended and required versions of MPC.
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5565 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #include <mpc.h>
5569 int
5570 main ()
5571 {
5572
5573 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5574 choke me
5575 #endif
5576
5577 ;
5578 return 0;
5579 }
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #include <mpc.h>
5585 int
5586 main ()
5587 {
5588
5589 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5590 choke me
5591 #endif
5592
5593 ;
5594 return 0;
5595 }
5596 _ACEOF
5597 if ac_fn_c_try_compile "$LINENO"; then :
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5599 $as_echo "yes" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5602 $as_echo "buggy but acceptable" >&6; }
5603 fi
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }; have_gmp=no
5608 fi
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610 fi
5611
5612 # Now check the MPFR library.
5613 if test x"$have_gmp" = xyes; then
5614 saved_LIBS="$LIBS"
5615 LIBS="$LIBS $gmplibs"
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5617 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 #include <mpc.h>
5621 int
5622 main ()
5623 {
5624
5625 mpfr_t n;
5626 mpfr_t x;
5627 mpc_t c;
5628 int t;
5629 mpfr_init (n);
5630 mpfr_init (x);
5631 mpfr_atan2 (n, n, x, GMP_RNDN);
5632 mpfr_erfc (n, x, GMP_RNDN);
5633 mpfr_subnormalize (x, t, GMP_RNDN);
5634 mpfr_clear(n);
5635 mpfr_clear(x);
5636 mpc_init2 (c, 53);
5637 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5638 mpc_cosh (c, c, MPC_RNDNN);
5639 mpc_pow (c, c, c, MPC_RNDNN);
5640 mpc_acosh (c, c, MPC_RNDNN);
5641 mpc_clear (c);
5642
5643 ;
5644 return 0;
5645 }
5646 _ACEOF
5647 if ac_fn_c_try_link "$LINENO"; then :
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649 $as_echo "yes" >&6; }
5650 else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }; have_gmp=no
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext \
5655 conftest$ac_exeext conftest.$ac_ext
5656 LIBS="$saved_LIBS"
5657 fi
5658
5659 CFLAGS="$saved_CFLAGS"
5660
5661 # The library versions listed in the error message below should match
5662 # the HARD-minimums enforced above.
5663 if test x$have_gmp != xyes; then
5664 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5665 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5666 their locations. Source code for these libraries can be found at
5667 their respective hosting sites as well as at
5668 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5669 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5670 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5671 make sure that you have installed both the libraries and the header
5672 files. They may be located in separate packages." "$LINENO" 5
5673 fi
5674 fi
5675
5676 # Flags needed for both GMP, MPFR and/or MPC.
5677
5678
5679
5680
5681
5682
5683
5684 # Allow host libstdc++ to be specified for static linking with PPL.
5685
5686 # Check whether --with-host-libstdcxx was given.
5687 if test "${with_host_libstdcxx+set}" = set; then :
5688 withval=$with_host_libstdcxx;
5689 fi
5690
5691
5692 case $with_host_libstdcxx in
5693 no|yes)
5694 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5695 ;;
5696 esac
5697
5698 # Libraries to use for stage1 or when not bootstrapping.
5699
5700 # Check whether --with-stage1-libs was given.
5701 if test "${with_stage1_libs+set}" = set; then :
5702 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5703 stage1_libs=
5704 else
5705 stage1_libs=$withval
5706 fi
5707 else
5708 stage1_libs=$with_host_libstdcxx
5709 fi
5710
5711
5712
5713 # Linker flags to use for stage1 or when not bootstrapping.
5714
5715 # Check whether --with-stage1-ldflags was given.
5716 if test "${with_stage1_ldflags+set}" = set; then :
5717 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5718 stage1_ldflags=
5719 else
5720 stage1_ldflags=$withval
5721 fi
5722 else
5723 stage1_ldflags=
5724 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5725 # if supported. But if the user explicitly specified the libraries to use,
5726 # trust that they are doing what they want.
5727 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5728 stage1_ldflags="-static-libstdc++ -static-libgcc"
5729 fi
5730 fi
5731
5732
5733
5734 # Libraries to use for stage2 and later builds. This defaults to the
5735 # argument passed to --with-host-libstdcxx.
5736
5737 # Check whether --with-boot-libs was given.
5738 if test "${with_boot_libs+set}" = set; then :
5739 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5740 poststage1_libs=
5741 else
5742 poststage1_libs=$withval
5743 fi
5744 else
5745 poststage1_libs=$with_host_libstdcxx
5746 fi
5747
5748
5749
5750 # Linker flags to use for stage2 and later builds.
5751
5752 # Check whether --with-boot-ldflags was given.
5753 if test "${with_boot_ldflags+set}" = set; then :
5754 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5755 poststage1_ldflags=
5756 else
5757 poststage1_ldflags=$withval
5758 fi
5759 else
5760 poststage1_ldflags=
5761 # In stages 2 and 3, default to linking libstdc++ and libgcc
5762 # statically. But if the user explicitly specified the libraries to
5763 # use, trust that they are doing what they want.
5764 if test "$poststage1_libs" = ""; then
5765 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5766 fi
5767 fi
5768
5769
5770
5771 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5772 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5773 # config/isl.m4
5774
5775
5776 # Check whether --with-cloog was given.
5777 if test "${with_cloog+set}" = set; then :
5778 withval=$with_cloog;
5779 fi
5780
5781
5782 # Check whether --with-isl was given.
5783 if test "${with_isl+set}" = set; then :
5784 withval=$with_isl;
5785 fi
5786
5787
5788 # Treat either --without-cloog or --without-isl as a request to disable
5789 # GRAPHITE support and skip all following checks.
5790 if test "x$with_isl" != "xno" &&
5791 test "x$with_cloog" != "xno"; then
5792 # Check for ISL
5793
5794
5795 # Check whether --with-isl-include was given.
5796 if test "${with_isl_include+set}" = set; then :
5797 withval=$with_isl_include;
5798 fi
5799
5800
5801 # Check whether --with-isl-lib was given.
5802 if test "${with_isl_lib+set}" = set; then :
5803 withval=$with_isl_lib;
5804 fi
5805
5806
5807 # Check whether --enable-isl-version-check was given.
5808 if test "${enable_isl_version_check+set}" = set; then :
5809 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5810 else
5811 ENABLE_ISL_CHECK=yes
5812 fi
5813
5814
5815 # Initialize isllibs and islinc.
5816 case $with_isl in
5817 no)
5818 isllibs=
5819 islinc=
5820 ;;
5821 "" | yes)
5822 ;;
5823 *)
5824 isllibs="-L$with_isl/lib"
5825 islinc="-I$with_isl/include"
5826 ;;
5827 esac
5828 if test "x${with_isl_include}" != x ; then
5829 islinc="-I$with_isl_include"
5830 fi
5831 if test "x${with_isl_lib}" != x; then
5832 isllibs="-L$with_isl_lib"
5833 fi
5834 if test "x${islinc}" = x && test "x${isllibs}" = x \
5835 && test -d ${srcdir}/isl; then
5836 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5837 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5838 ENABLE_ISL_CHECK=no
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5840 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5841 fi
5842
5843
5844
5845 if test "${ENABLE_ISL_CHECK}" = yes ; then
5846 _isl_saved_CFLAGS=$CFLAGS
5847 _isl_saved_LDFLAGS=$LDFLAGS
5848 _isl_saved_LIBS=$LIBS
5849
5850 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5851 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5852 LIBS="${_isl_saved_LIBS} -lisl"
5853
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5855 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5856 if test "$cross_compiling" = yes; then :
5857 gcc_cv_isl=yes
5858 else
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5861 #include <isl/version.h>
5862 #include <string.h>
5863 int
5864 main ()
5865 {
5866 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5867 return 1;
5868
5869 ;
5870 return 0;
5871 }
5872 _ACEOF
5873 if ac_fn_c_try_run "$LINENO"; then :
5874 gcc_cv_isl=yes
5875 else
5876 gcc_cv_isl=no
5877 fi
5878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5879 conftest.$ac_objext conftest.beam conftest.$ac_ext
5880 fi
5881
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5883 $as_echo "$gcc_cv_isl" >&6; }
5884
5885 CFLAGS=$_isl_saved_CFLAGS
5886 LDFLAGS=$_isl_saved_LDFLAGS
5887 LIBS=$_isl_saved_LIBS
5888 fi
5889
5890
5891 if test "${gcc_cv_isl}" = no ; then
5892
5893 if test "${ENABLE_ISL_CHECK}" = yes ; then
5894 _isl_saved_CFLAGS=$CFLAGS
5895 _isl_saved_LDFLAGS=$LDFLAGS
5896 _isl_saved_LIBS=$LIBS
5897
5898 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5899 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5900 LIBS="${_isl_saved_LIBS} -lisl"
5901
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5903 $as_echo_n "checking for version 0.11 of ISL... " >&6; }
5904 if test "$cross_compiling" = yes; then :
5905 gcc_cv_isl=yes
5906 else
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 #include <isl/version.h>
5910 #include <string.h>
5911 int
5912 main ()
5913 {
5914 if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5915 return 1;
5916
5917 ;
5918 return 0;
5919 }
5920 _ACEOF
5921 if ac_fn_c_try_run "$LINENO"; then :
5922 gcc_cv_isl=yes
5923 else
5924 gcc_cv_isl=no
5925 fi
5926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5927 conftest.$ac_objext conftest.beam conftest.$ac_ext
5928 fi
5929
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5931 $as_echo "$gcc_cv_isl" >&6; }
5932
5933 CFLAGS=$_isl_saved_CFLAGS
5934 LDFLAGS=$_isl_saved_LDFLAGS
5935 LIBS=$_isl_saved_LIBS
5936 fi
5937
5938
5939 fi
5940
5941
5942
5943
5944 if test "x${with_isl}" = xno; then
5945 graphite_requested=no
5946 elif test "x${with_isl}" != x \
5947 || test "x${with_isl_include}" != x \
5948 || test "x${with_isl_lib}" != x ; then
5949 graphite_requested=yes
5950 else
5951 graphite_requested=no
5952 fi
5953
5954
5955
5956 if test "${gcc_cv_isl}" = no ; then
5957 isllibs=
5958 islinc=
5959 fi
5960
5961 if test "${graphite_requested}" = yes \
5962 && test "x${isllibs}" = x \
5963 && test "x${islinc}" = x ; then
5964
5965 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5966 fi
5967
5968
5969
5970 if test "x$gcc_cv_isl" != "xno"; then
5971 # Check for CLOOG
5972
5973
5974 # Check whether --with-cloog-include was given.
5975 if test "${with_cloog_include+set}" = set; then :
5976 withval=$with_cloog_include;
5977 fi
5978
5979
5980 # Check whether --with-cloog-lib was given.
5981 if test "${with_cloog_lib+set}" = set; then :
5982 withval=$with_cloog_lib;
5983 fi
5984
5985
5986 # Check whether --enable-cloog-version-check was given.
5987 if test "${enable_cloog_version_check+set}" = set; then :
5988 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5989 else
5990 ENABLE_CLOOG_CHECK=yes
5991 fi
5992
5993
5994 # Initialize clooglibs and clooginc.
5995 case $with_cloog in
5996 no)
5997 clooglibs=
5998 clooginc=
5999 ;;
6000 "" | yes)
6001 ;;
6002 *)
6003 clooglibs="-L$with_cloog/lib"
6004 clooginc="-I$with_cloog/include"
6005 ;;
6006 esac
6007 if test "x${with_cloog_include}" != x ; then
6008 clooginc="-I$with_cloog_include"
6009 fi
6010 if test "x${with_cloog_lib}" != x; then
6011 clooglibs="-L$with_cloog_lib"
6012 fi
6013 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6014 && test -d ${srcdir}/cloog; then
6015 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6016 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
6017 ENABLE_CLOOG_CHECK=no
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6019 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6020 fi
6021
6022 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6023 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
6024
6025
6026
6027
6028
6029 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6030 _cloog_saved_CFLAGS=$CFLAGS
6031 _cloog_saved_LDFLAGS=$LDFLAGS
6032
6033 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6034 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6037 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 #include "cloog/version.h"
6041 int
6042 main ()
6043 {
6044 #if CLOOG_VERSION_MAJOR != 0 \
6045 || CLOOG_VERSION_MINOR != 17 \
6046 || CLOOG_VERSION_REVISION < 0
6047 choke me
6048 #endif
6049 ;
6050 return 0;
6051 }
6052 _ACEOF
6053 if ac_fn_c_try_compile "$LINENO"; then :
6054 gcc_cv_cloog=yes
6055 else
6056 gcc_cv_cloog=no
6057 fi
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6060 $as_echo "$gcc_cv_cloog" >&6; }
6061
6062 CFLAGS=$_cloog_saved_CFLAGS
6063 LDFLAGS=$_cloog_saved_LDFLAGS
6064 fi
6065
6066
6067 if test "${gcc_cv_cloog}" = no ; then
6068
6069
6070
6071 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6072 _cloog_saved_CFLAGS=$CFLAGS
6073 _cloog_saved_LDFLAGS=$LDFLAGS
6074
6075 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6076 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6079 $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082 #include "cloog/version.h"
6083 int
6084 main ()
6085 {
6086 #if CLOOG_VERSION_MAJOR != 0 \
6087 || CLOOG_VERSION_MINOR != 18 \
6088 || CLOOG_VERSION_REVISION < 0
6089 choke me
6090 #endif
6091 ;
6092 return 0;
6093 }
6094 _ACEOF
6095 if ac_fn_c_try_compile "$LINENO"; then :
6096 gcc_cv_cloog=yes
6097 else
6098 gcc_cv_cloog=no
6099 fi
6100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6102 $as_echo "$gcc_cv_cloog" >&6; }
6103
6104 CFLAGS=$_cloog_saved_CFLAGS
6105 LDFLAGS=$_cloog_saved_LDFLAGS
6106 fi
6107
6108
6109 fi
6110
6111
6112
6113
6114
6115 if test "x${with_cloog}" = xno; then
6116 graphite_requested=no
6117 elif test "x${with_cloog}" != x \
6118 || test "x${with_cloog_include}" != x \
6119 || test "x${with_cloog_lib}" != x ; then
6120 graphite_requested=yes
6121 else
6122 graphite_requested=no
6123 fi
6124
6125
6126
6127 if test "${gcc_cv_cloog}" = no ; then
6128 clooglibs=
6129 clooginc=
6130 fi
6131
6132 if test "${graphite_requested}" = yes \
6133 && test "x${clooglibs}" = x \
6134 && test "x${clooginc}" = x ; then
6135
6136 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6137 fi
6138
6139
6140 fi
6141 fi
6142
6143 # If either the ISL or the CLooG check failed, disable builds of in-tree
6144 # variants of both
6145 if test "x$with_isl" = xno ||
6146 test "x$with_cloog" = xno ||
6147 test "x$gcc_cv_cloog" = xno ||
6148 test "x$gcc_cv_isl" = xno; then
6149 noconfigdirs="$noconfigdirs cloog isl"
6150 islinc=
6151 clooginc=
6152 clooglibs=
6153 fi
6154
6155
6156
6157
6158
6159
6160 # Check for LTO support.
6161 # Check whether --enable-lto was given.
6162 if test "${enable_lto+set}" = set; then :
6163 enableval=$enable_lto; enable_lto=$enableval
6164 else
6165 enable_lto=yes; default_enable_lto=yes
6166 fi
6167
6168
6169
6170
6171
6172 target_elf=no
6173 case $target in
6174 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6175 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6176 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6177 target_elf=no
6178 ;;
6179 *)
6180 target_elf=yes
6181 ;;
6182 esac
6183
6184 if test $target_elf = yes; then :
6185 # ELF platforms build the lto-plugin always.
6186 build_lto_plugin=yes
6187
6188 else
6189 if test x"$default_enable_lto" = x"yes" ; then
6190 case $target in
6191 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6192 # On other non-ELF platforms, LTO has yet to be validated.
6193 *) enable_lto=no ;;
6194 esac
6195 else
6196 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6197 # It would also be nice to check the binutils support, but we don't
6198 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6199 # warn during gcc/ subconfigure; unless you're bootstrapping with
6200 # -flto it won't be needed until after installation anyway.
6201 case $target in
6202 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6203 *) if test x"$enable_lto" = x"yes"; then
6204 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6205 fi
6206 ;;
6207 esac
6208 fi
6209 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6210 # Build it unless LTO was explicitly disabled.
6211 case $target in
6212 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6213 *) ;;
6214 esac
6215
6216 fi
6217
6218
6219
6220 # By default, C and C++ are the only stage 1 languages.
6221 stage1_languages=,c,
6222
6223 # Target libraries that we bootstrap.
6224 bootstrap_target_libs=,target-libgcc,
6225
6226 # Figure out what language subdirectories are present.
6227 # Look if the user specified --enable-languages="..."; if not, use
6228 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6229 # go away some day.
6230 # NB: embedded tabs in this IF block -- do not untabify
6231 if test -d ${srcdir}/gcc; then
6232 if test x"${enable_languages+set}" != xset; then
6233 if test x"${LANGUAGES+set}" = xset; then
6234 enable_languages="${LANGUAGES}"
6235 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6236 else
6237 enable_languages=all
6238 fi
6239 else
6240 if test x"${enable_languages}" = x ||
6241 test x"${enable_languages}" = xyes;
6242 then
6243 echo configure.in: --enable-languages needs at least one language argument 1>&2
6244 exit 1
6245 fi
6246 fi
6247 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6248
6249 # 'f95' is the old name for the 'fortran' language. We issue a warning
6250 # and make the substitution.
6251 case ,${enable_languages}, in
6252 *,f95,*)
6253 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6254 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6255 ;;
6256 esac
6257
6258 # If bootstrapping, C++ must be enabled.
6259 case ",$enable_languages,:$enable_bootstrap" in
6260 *,c++,*:*) ;;
6261 *:yes)
6262 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6263 enable_languages="${enable_languages},c++"
6264 else
6265 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6266 fi
6267 ;;
6268 esac
6269
6270 # First scan to see if an enabled language requires some other language.
6271 # We assume that a given config-lang.in will list all the language
6272 # front ends it requires, even if some are required indirectly.
6273 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6274 case ${lang_frag} in
6275 ..) ;;
6276 # The odd quoting in the next line works around
6277 # an apparent bug in bash 1.12 on linux.
6278 ${srcdir}/gcc/[*]/config-lang.in) ;;
6279 *)
6280 # From the config-lang.in, get $language, $lang_requires, and
6281 # $lang_requires_boot_languages.
6282 language=
6283 lang_requires=
6284 lang_requires_boot_languages=
6285 . ${lang_frag}
6286 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6287 case ,${enable_languages}, in
6288 *,$other,*) ;;
6289 *,all,*) ;;
6290 *,$language,*)
6291 echo " \`$other' language required by \`$language'; enabling" 1>&2
6292 enable_languages="${enable_languages},${other}"
6293 ;;
6294 esac
6295 done
6296 for other in ${lang_requires_boot_languages} ; do
6297 if test "$other" != "c"; then
6298 case ,${enable_stage1_languages}, in
6299 *,$other,*) ;;
6300 *,all,*) ;;
6301 *)
6302 case ,${enable_languages}, in
6303 *,$language,*)
6304 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6305 enable_stage1_languages="$enable_stage1_languages,${other}"
6306 ;;
6307 esac
6308 ;;
6309 esac
6310 fi
6311 done
6312 ;;
6313 esac
6314 done
6315
6316 new_enable_languages=,c,
6317
6318 # If LTO is enabled, add the LTO front end.
6319 extra_host_libiberty_configure_flags=
6320 if test "$enable_lto" = "yes" ; then
6321 case ,${enable_languages}, in
6322 *,lto,*) ;;
6323 *) enable_languages="${enable_languages},lto" ;;
6324 esac
6325 if test "${build_lto_plugin}" = "yes" ; then
6326 configdirs="$configdirs lto-plugin"
6327 extra_host_libiberty_configure_flags=--enable-shared
6328 fi
6329 fi
6330
6331
6332 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6333 potential_languages=,c,
6334
6335 enabled_target_libs=
6336 disabled_target_libs=
6337
6338 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6339 case ${lang_frag} in
6340 ..) ;;
6341 # The odd quoting in the next line works around
6342 # an apparent bug in bash 1.12 on linux.
6343 ${srcdir}/gcc/[*]/config-lang.in) ;;
6344 *)
6345 # From the config-lang.in, get $language, $target_libs,
6346 # $lang_dirs, $boot_language, and $build_by_default
6347 language=
6348 target_libs=
6349 lang_dirs=
6350 subdir_requires=
6351 boot_language=no
6352 build_by_default=yes
6353 . ${lang_frag}
6354 if test x${language} = x; then
6355 echo "${lang_frag} doesn't set \$language." 1>&2
6356 exit 1
6357 fi
6358
6359 if test "$language" = "c++"; then
6360 boot_language=yes
6361 fi
6362
6363 add_this_lang=no
6364 case ,${enable_languages}, in
6365 *,${language},*)
6366 # Language was explicitly selected; include it
6367 # unless it is C, which is enabled by default.
6368 if test "$language" != "c"; then
6369 add_this_lang=yes
6370 fi
6371 ;;
6372 *,all,*)
6373 # 'all' was selected, select it if it is a default language
6374 if test "$language" != "c"; then
6375 add_this_lang=${build_by_default}
6376 fi
6377 ;;
6378 esac
6379
6380 # Disable languages that need other directories if these aren't available.
6381 for i in $subdir_requires; do
6382 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6383 case ,${enable_languages}, in
6384 *,${language},*)
6385 # Specifically requested language; tell them.
6386 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6387 ;;
6388 *)
6389 # Silently disable.
6390 add_this_lang=unsupported
6391 ;;
6392 esac
6393 done
6394
6395 # Disable Ada if no preexisting GNAT is available.
6396 case ,${enable_languages},:${language}:${have_gnat} in
6397 *,${language},*:ada:no)
6398 # Specifically requested language; tell them.
6399 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6400 ;;
6401 *:ada:no)
6402 # Silently disable.
6403 add_this_lang=unsupported
6404 ;;
6405 esac
6406
6407 # Disable a language that is unsupported by the target.
6408 case " $unsupported_languages " in
6409 *" $language "*)
6410 add_this_lang=unsupported
6411 ;;
6412 esac
6413
6414 case $add_this_lang in
6415 unsupported)
6416 # Remove language-dependent dirs.
6417 disabled_target_libs="$disabled_target_libs $target_libs"
6418 noconfigdirs="$noconfigdirs $lang_dirs"
6419 ;;
6420 no)
6421 # Remove language-dependent dirs; still show language as supported.
6422 disabled_target_libs="$disabled_target_libs $target_libs"
6423 noconfigdirs="$noconfigdirs $lang_dirs"
6424 potential_languages="${potential_languages}${language},"
6425 ;;
6426 yes)
6427 new_enable_languages="${new_enable_languages}${language},"
6428 potential_languages="${potential_languages}${language},"
6429 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6430 enabled_target_libs="$enabled_target_libs $target_libs"
6431 case "${boot_language}:,$enable_stage1_languages," in
6432 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6433 # Add to (comma-separated) list of stage 1 languages.
6434 case ",$stage1_languages," in
6435 *,$language,* | ,yes, | ,all,) ;;
6436 *) stage1_languages="${stage1_languages}${language}," ;;
6437 esac
6438 # We need to bootstrap any supporting libraries.
6439 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6440 ;;
6441 esac
6442 ;;
6443 esac
6444 ;;
6445 esac
6446 done
6447
6448 # Add target libraries which are only needed for disabled languages
6449 # to noconfigdirs.
6450 if test -n "$disabled_target_libs"; then
6451 for dir in $disabled_target_libs; do
6452 case " $enabled_target_libs " in
6453 *" ${dir} "*) ;;
6454 *) noconfigdirs="$noconfigdirs $dir" ;;
6455 esac
6456 done
6457 fi
6458
6459 # Check whether --enable-stage1-languages was given.
6460 if test "${enable_stage1_languages+set}" = set; then :
6461 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6462 ,no,|,,)
6463 # Set it to something that will have no effect in the loop below
6464 enable_stage1_languages=c ;;
6465 ,yes,)
6466 enable_stage1_languages=`echo $new_enable_languages | \
6467 sed -e "s/^,//" -e "s/,$//" ` ;;
6468 *,all,*)
6469 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6470 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6471 esac
6472
6473 # Add "good" languages from enable_stage1_languages to stage1_languages,
6474 # while "bad" languages go in missing_languages. Leave no duplicates.
6475 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6476 case $potential_languages in
6477 *,$i,*)
6478 case $stage1_languages in
6479 *,$i,*) ;;
6480 *) stage1_languages="$stage1_languages$i," ;;
6481 esac ;;
6482 *)
6483 case $missing_languages in
6484 *,$i,*) ;;
6485 *) missing_languages="$missing_languages$i," ;;
6486 esac ;;
6487 esac
6488 done
6489 fi
6490
6491
6492 # Remove leading/trailing commas that were added for simplicity
6493 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6494 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6495 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6496 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6497
6498 if test "x$missing_languages" != x; then
6499 as_fn_error "
6500 The following requested languages could not be built: ${missing_languages}
6501 Supported languages are: ${potential_languages}" "$LINENO" 5
6502 fi
6503 if test "x$new_enable_languages" != "x$enable_languages"; then
6504 echo The following languages will be built: ${new_enable_languages}
6505 enable_languages="$new_enable_languages"
6506 fi
6507
6508
6509 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6510 fi
6511
6512 # Handle --disable-<component> generically.
6513 for dir in $configdirs $build_configdirs $target_configdirs ; do
6514 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6515 varname=`echo $dirname | sed -e s/+/_/g`
6516 if eval test x\${enable_${varname}} "=" xno ; then
6517 noconfigdirs="$noconfigdirs $dir"
6518 fi
6519 done
6520
6521 # Check for Boehm's garbage collector
6522 # Check whether --enable-objc-gc was given.
6523 if test "${enable_objc_gc+set}" = set; then :
6524 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6525 *,objc,*:*:yes:*target-boehm-gc*)
6526 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6527 ;;
6528 esac
6529 fi
6530
6531
6532 # Make sure we only build Boehm's garbage collector if required.
6533 case ,${enable_languages},:${enable_objc_gc} in
6534 *,objc,*:yes)
6535 # Keep target-boehm-gc if requested for Objective-C.
6536 ;;
6537 *)
6538 # Otherwise remove target-boehm-gc depending on target-libjava.
6539 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6540 noconfigdirs="$noconfigdirs target-boehm-gc"
6541 fi
6542 ;;
6543 esac
6544
6545 # Disable libitm and libsanitizer if we're not building C++
6546 case ,${enable_languages}, in
6547 *,c++,*) ;;
6548 *)
6549 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6550 ;;
6551 esac
6552
6553 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6554 # $build_configdirs and $target_configdirs.
6555 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6556
6557 notsupp=""
6558 for dir in . $skipdirs $noconfigdirs ; do
6559 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6560 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6561 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6562 if test -r $srcdir/$dirname/configure ; then
6563 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6564 true
6565 else
6566 notsupp="$notsupp $dir"
6567 fi
6568 fi
6569 fi
6570 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6571 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6572 if test -r $srcdir/$dirname/configure ; then
6573 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6574 true
6575 else
6576 notsupp="$notsupp $dir"
6577 fi
6578 fi
6579 fi
6580 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6581 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6582 if test -r $srcdir/$dirname/configure ; then
6583 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6584 true
6585 else
6586 notsupp="$notsupp $dir"
6587 fi
6588 fi
6589 fi
6590 done
6591
6592 # Quietly strip out all directories which aren't configurable in this tree.
6593 # This relies on all configurable subdirectories being autoconfiscated, which
6594 # is now the case.
6595 build_configdirs_all="$build_configdirs"
6596 build_configdirs=
6597 for i in ${build_configdirs_all} ; do
6598 j=`echo $i | sed -e s/build-//g`
6599 if test -f ${srcdir}/$j/configure ; then
6600 build_configdirs="${build_configdirs} $i"
6601 fi
6602 done
6603
6604 configdirs_all="$configdirs"
6605 configdirs=
6606 for i in ${configdirs_all} ; do
6607 if test -f ${srcdir}/$i/configure ; then
6608 configdirs="${configdirs} $i"
6609 fi
6610 done
6611
6612 target_configdirs_all="$target_configdirs"
6613 target_configdirs=
6614 for i in ${target_configdirs_all} ; do
6615 j=`echo $i | sed -e s/target-//g`
6616 if test -f ${srcdir}/$j/configure ; then
6617 target_configdirs="${target_configdirs} $i"
6618 fi
6619 done
6620
6621 # Produce a warning message for the subdirs we can't configure.
6622 # This isn't especially interesting in the Cygnus tree, but in the individual
6623 # FSF releases, it's important to let people know when their machine isn't
6624 # supported by the one or two programs in a package.
6625
6626 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6627 # If $appdirs is non-empty, at least one of those directories must still
6628 # be configured, or we error out. (E.g., if the gas release supports a
6629 # specified target in some subdirs but not the gas subdir, we shouldn't
6630 # pretend that all is well.)
6631 if test -n "$appdirs" ; then
6632 for dir in $appdirs ; do
6633 if test -r $dir/Makefile.in ; then
6634 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6635 appdirs=""
6636 break
6637 fi
6638 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6639 appdirs=""
6640 break
6641 fi
6642 fi
6643 done
6644 if test -n "$appdirs" ; then
6645 echo "*** This configuration is not supported by this package." 1>&2
6646 exit 1
6647 fi
6648 fi
6649 # Okay, some application will build, or we don't care to check. Still
6650 # notify of subdirs not getting built.
6651 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6652 echo " ${notsupp}" 1>&2
6653 echo " (Any other directories should still work fine.)" 1>&2
6654 fi
6655
6656 case "$host" in
6657 *msdosdjgpp*)
6658 enable_gdbtk=no ;;
6659 esac
6660
6661 # To find our prefix, in gcc_cv_tool_prefix.
6662
6663 # The user is always right.
6664 if test "${PATH_SEPARATOR+set}" != set; then
6665 echo "#! /bin/sh" >conf$$.sh
6666 echo "exit 0" >>conf$$.sh
6667 chmod +x conf$$.sh
6668 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6669 PATH_SEPARATOR=';'
6670 else
6671 PATH_SEPARATOR=:
6672 fi
6673 rm -f conf$$.sh
6674 fi
6675
6676
6677
6678 if test "x$exec_prefix" = xNONE; then
6679 if test "x$prefix" = xNONE; then
6680 gcc_cv_tool_prefix=$ac_default_prefix
6681 else
6682 gcc_cv_tool_prefix=$prefix
6683 fi
6684 else
6685 gcc_cv_tool_prefix=$exec_prefix
6686 fi
6687
6688 # If there is no compiler in the tree, use the PATH only. In any
6689 # case, if there is no compiler in the tree nobody should use
6690 # AS_FOR_TARGET and LD_FOR_TARGET.
6691 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6692 gcc_version=`cat $srcdir/gcc/BASE-VER`
6693 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6694 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6695 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6696 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6697 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6698 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6699 else
6700 gcc_cv_tool_dirs=
6701 fi
6702
6703 if test x$build = x$target && test -n "$md_exec_prefix"; then
6704 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6705 fi
6706
6707
6708
6709 copy_dirs=
6710
6711
6712 # Check whether --with-build-sysroot was given.
6713 if test "${with_build_sysroot+set}" = set; then :
6714 withval=$with_build_sysroot; if test x"$withval" != x ; then
6715 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6716 fi
6717 else
6718 SYSROOT_CFLAGS_FOR_TARGET=
6719 fi
6720
6721
6722
6723
6724 # Check whether --with-debug-prefix-map was given.
6725 if test "${with_debug_prefix_map+set}" = set; then :
6726 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6727 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6728 for debug_map in $withval; do
6729 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6730 done
6731 fi
6732 else
6733 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6734 fi
6735
6736
6737
6738 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6739 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6740 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6741 # We want to ensure that TARGET libraries (which we know are built with
6742 # gcc) are built with "-O2 -g", so include those options when setting
6743 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6744 if test "x$CFLAGS_FOR_TARGET" = x; then
6745 CFLAGS_FOR_TARGET=$CFLAGS
6746 case " $CFLAGS " in
6747 *" -O2 "*) ;;
6748 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6749 esac
6750 case " $CFLAGS " in
6751 *" -g "* | *" -g3 "*) ;;
6752 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6753 esac
6754 fi
6755
6756
6757 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6758 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6759 case " $CXXFLAGS " in
6760 *" -O2 "*) ;;
6761 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6762 esac
6763 case " $CXXFLAGS " in
6764 *" -g "* | *" -g3 "*) ;;
6765 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6766 esac
6767 fi
6768
6769
6770
6771
6772 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6773 # the named directory are copied to $(tooldir)/sys-include.
6774 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6775 if test x${is_cross_compiler} = xno ; then
6776 echo 1>&2 '***' --with-headers is only supported when cross compiling
6777 exit 1
6778 fi
6779 if test x"${with_headers}" != xyes ; then
6780 x=${gcc_cv_tool_prefix}
6781 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6782 fi
6783 fi
6784
6785 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6786 # the name directories are copied to $(tooldir)/lib. Multiple directories
6787 # are permitted.
6788 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6789 if test x${is_cross_compiler} = xno ; then
6790 echo 1>&2 '***' --with-libs is only supported when cross compiling
6791 exit 1
6792 fi
6793 if test x"${with_libs}" != xyes ; then
6794 # Copy the libraries in reverse order, so that files in the first named
6795 # library override files in subsequent libraries.
6796 x=${gcc_cv_tool_prefix}
6797 for l in ${with_libs}; do
6798 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6799 done
6800 fi
6801 fi
6802
6803 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6804 #
6805 # This is done by determining whether or not the appropriate directory
6806 # is available, and by checking whether or not specific configurations
6807 # have requested that this magic not happen.
6808 #
6809 # The command line options always override the explicit settings in
6810 # configure.in, and the settings in configure.in override this magic.
6811 #
6812 # If the default for a toolchain is to use GNU as and ld, and you don't
6813 # want to do that, then you should use the --without-gnu-as and
6814 # --without-gnu-ld options for the configure script. Similarly, if
6815 # the default is to use the included zlib and you don't want to do that,
6816 # you should use the --with-system-zlib option for the configure script.
6817
6818 if test x${use_gnu_as} = x &&
6819 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6820 with_gnu_as=yes
6821 extra_host_args="$extra_host_args --with-gnu-as"
6822 fi
6823
6824 if test x${use_gnu_ld} = x &&
6825 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6826 with_gnu_ld=yes
6827 extra_host_args="$extra_host_args --with-gnu-ld"
6828 fi
6829
6830 if test x${use_included_zlib} = x &&
6831 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6832 :
6833 else
6834 with_system_zlib=yes
6835 extra_host_args="$extra_host_args --with-system-zlib"
6836 fi
6837
6838 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6839 # can detect this case.
6840
6841 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6842 with_newlib=yes
6843 extra_host_args="$extra_host_args --with-newlib"
6844 fi
6845
6846 # Handle ${copy_dirs}
6847 set fnord ${copy_dirs}
6848 shift
6849 while test $# != 0 ; do
6850 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6851 :
6852 else
6853 echo Copying $1 to $2
6854
6855 # Use the install script to create the directory and all required
6856 # parent directories.
6857 if test -d $2 ; then
6858 :
6859 else
6860 echo >config.temp
6861 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6862 fi
6863
6864 # Copy the directory, assuming we have tar.
6865 # FIXME: Should we use B in the second tar? Not all systems support it.
6866 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6867
6868 # It is the responsibility of the user to correctly adjust all
6869 # symlinks. If somebody can figure out how to handle them correctly
6870 # here, feel free to add the code.
6871
6872 echo $1 > $2/COPIED
6873 fi
6874 shift; shift
6875 done
6876
6877 # Determine a target-dependent exec_prefix that the installed
6878 # gcc will search in. Keep this list sorted by triplet, with
6879 # the *-*-osname triplets last.
6880 md_exec_prefix=
6881 case "${target}" in
6882 i[34567]86-pc-msdosdjgpp*)
6883 md_exec_prefix=/dev/env/DJDIR/bin
6884 ;;
6885 *-*-hpux* | \
6886 *-*-nto-qnx* | \
6887 *-*-solaris2*)
6888 md_exec_prefix=/usr/ccs/bin
6889 ;;
6890 esac
6891
6892 extra_arflags_for_target=
6893 extra_nmflags_for_target=
6894 extra_ranlibflags_for_target=
6895 target_makefile_frag=/dev/null
6896 case "${target}" in
6897 spu-*-*)
6898 target_makefile_frag="config/mt-spu"
6899 ;;
6900 mips*-sde-elf* | mips*-mti-elf*)
6901 target_makefile_frag="config/mt-sde"
6902 ;;
6903 mipsisa*-*-elfoabi*)
6904 target_makefile_frag="config/mt-mips-elfoabi"
6905 ;;
6906 mips*-*-*linux* | mips*-*-gnu*)
6907 target_makefile_frag="config/mt-mips-gnu"
6908 ;;
6909 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6910 target_makefile_frag="config/mt-gnu"
6911 ;;
6912 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6913 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6914 # commands to handle both 32-bit and 64-bit objects. These flags are
6915 # harmless if we're using GNU nm or ar.
6916 extra_arflags_for_target=" -X32_64"
6917 extra_nmflags_for_target=" -B -X32_64"
6918 ;;
6919 esac
6920
6921 alphaieee_frag=/dev/null
6922 case $target in
6923 alpha*-*-*)
6924 # This just makes sure to use the -mieee option to build target libs.
6925 # This should probably be set individually by each library.
6926 alphaieee_frag="config/mt-alphaieee"
6927 ;;
6928 esac
6929
6930 # If --enable-target-optspace always use -Os instead of -O2 to build
6931 # the target libraries, similarly if it is not specified, use -Os
6932 # on selected platforms.
6933 ospace_frag=/dev/null
6934 case "${enable_target_optspace}:${target}" in
6935 yes:*)
6936 ospace_frag="config/mt-ospace"
6937 ;;
6938 :d30v-*)
6939 ospace_frag="config/mt-d30v"
6940 ;;
6941 :m32r-* | :d10v-* | :fr30-*)
6942 ospace_frag="config/mt-ospace"
6943 ;;
6944 no:* | :*)
6945 ;;
6946 *)
6947 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6948 ;;
6949 esac
6950
6951 # Some systems (e.g., one of the i386-aix systems the gas testers are
6952 # using) don't handle "\$" correctly, so don't use it here.
6953 tooldir='${exec_prefix}'/${target_noncanonical}
6954 build_tooldir=${tooldir}
6955
6956 # Create a .gdbinit file which runs the one in srcdir
6957 # and tells GDB to look there for source files.
6958
6959 if test -r ${srcdir}/.gdbinit ; then
6960 case ${srcdir} in
6961 .) ;;
6962 *) cat > ./.gdbinit <<EOF
6963 # ${NO_EDIT}
6964 dir ${srcdir}
6965 dir .
6966 source ${srcdir}/.gdbinit
6967 EOF
6968 ;;
6969 esac
6970 fi
6971
6972 # Make sure that the compiler is able to generate an executable. If it
6973 # can't, we are probably in trouble. We don't care whether we can run the
6974 # executable--we might be using a cross compiler--we only care whether it
6975 # can be created. At this point the main configure script has set CC.
6976 we_are_ok=no
6977 echo "int main () { return 0; }" > conftest.c
6978 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6979 if test $? = 0 ; then
6980 if test -s conftest || test -s conftest.exe ; then
6981 we_are_ok=yes
6982 fi
6983 fi
6984 case $we_are_ok in
6985 no)
6986 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6987 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6988 rm -f conftest*
6989 exit 1
6990 ;;
6991 esac
6992 rm -f conftest*
6993
6994 # Decide which environment variable is used to find dynamic libraries.
6995 case "${host}" in
6996 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6997 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6998 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6999 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7000 esac
7001
7002 # On systems where the dynamic library environment variable is PATH,
7003 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7004 # built executables to PATH.
7005 if test "$RPATH_ENVVAR" = PATH; then
7006 GCC_SHLIB_SUBDIR=/shlib
7007 else
7008 GCC_SHLIB_SUBDIR=
7009 fi
7010
7011 # Record target_configdirs and the configure arguments for target and
7012 # build configuration in Makefile.
7013 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7014 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7015
7016 # If we are building libgomp, bootstrap it.
7017 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7018 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7019 fi
7020
7021 # If we are building libsanitizer, bootstrap it.
7022 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1 ; then
7023 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7024 fi
7025
7026 # Determine whether gdb needs tk/tcl or not.
7027 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7028 # and in that case we want gdb to be built without tk. Ugh!
7029 # In fact I believe gdb is the *only* package directly dependent on tk,
7030 # so we should be able to put the 'maybe's in unconditionally and
7031 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7032 # 100% sure that that's safe though.
7033
7034 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7035 case "$enable_gdbtk" in
7036 no)
7037 GDB_TK="" ;;
7038 yes)
7039 GDB_TK="${gdb_tk}" ;;
7040 *)
7041 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7042 # distro. Eventually someone will fix this and move Insight, nee
7043 # gdbtk to a separate directory.
7044 if test -d ${srcdir}/gdb/gdbtk ; then
7045 GDB_TK="${gdb_tk}"
7046 else
7047 GDB_TK=""
7048 fi
7049 ;;
7050 esac
7051 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7052 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7053
7054 # Strip out unwanted targets.
7055
7056 # While at that, we remove Makefiles if we were started for recursive
7057 # configuration, so that the top-level Makefile reconfigures them,
7058 # like we used to do when configure itself was recursive.
7059
7060 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7061 # but now we're fixing up the Makefile ourselves with the additional
7062 # commands passed to AC_CONFIG_FILES. Use separate variables
7063 # extrasub-{build,host,target} not because there is any reason to split
7064 # the substitutions up that way, but only to remain below the limit of
7065 # 99 commands in a script, for HP-UX sed.
7066 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7067
7068 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7069 yes:yes:*\ gold\ *:*,c++,*) ;;
7070 yes:yes:*\ gold\ *:*)
7071 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7072 ;;
7073 esac
7074
7075 # Adjust the toplevel makefile according to whether bootstrap was selected.
7076 case $enable_bootstrap in
7077 yes)
7078 bootstrap_suffix=bootstrap
7079 BUILD_CONFIG=bootstrap-debug
7080 ;;
7081 no)
7082 bootstrap_suffix=no-bootstrap
7083 BUILD_CONFIG=
7084 ;;
7085 esac
7086
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7088 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7089
7090
7091 # Check whether --with-build-config was given.
7092 if test "${with_build_config+set}" = set; then :
7093 withval=$with_build_config; case $with_build_config in
7094 yes) with_build_config= ;;
7095 no) with_build_config= BUILD_CONFIG= ;;
7096 esac
7097 fi
7098
7099
7100 if test "x${with_build_config}" != x; then
7101 BUILD_CONFIG=$with_build_config
7102 else
7103 case $BUILD_CONFIG in
7104 bootstrap-debug)
7105 if echo "int f (void) { return 0; }" > conftest.c &&
7106 ${CC} -c conftest.c &&
7107 mv conftest.o conftest.o.g0 &&
7108 ${CC} -c -g conftest.c &&
7109 mv conftest.o conftest.o.g &&
7110 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7111 :
7112 else
7113 BUILD_CONFIG=
7114 fi
7115 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7116 ;;
7117 esac
7118 fi
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7120 $as_echo "$BUILD_CONFIG" >&6; }
7121
7122
7123 extrasub_build=
7124 for module in ${build_configdirs} ; do
7125 if test -z "${no_recursion}" \
7126 && test -f ${build_subdir}/${module}/Makefile; then
7127 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7128 rm -f ${build_subdir}/${module}/Makefile
7129 fi
7130 extrasub_build="$extrasub_build
7131 /^@if build-$module\$/d
7132 /^@endif build-$module\$/d
7133 /^@if build-$module-$bootstrap_suffix\$/d
7134 /^@endif build-$module-$bootstrap_suffix\$/d"
7135 done
7136 extrasub_host=
7137 for module in ${configdirs} ; do
7138 if test -z "${no_recursion}"; then
7139 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7140 if test -f ${file}; then
7141 echo 1>&2 "*** removing ${file} to force reconfigure"
7142 rm -f ${file}
7143 fi
7144 done
7145 fi
7146 extrasub_host="$extrasub_host
7147 /^@if $module\$/d
7148 /^@endif $module\$/d
7149 /^@if $module-$bootstrap_suffix\$/d
7150 /^@endif $module-$bootstrap_suffix\$/d"
7151 done
7152 extrasub_target=
7153 for module in ${target_configdirs} ; do
7154 if test -z "${no_recursion}" \
7155 && test -f ${target_subdir}/${module}/Makefile; then
7156 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7157 rm -f ${target_subdir}/${module}/Makefile
7158 fi
7159
7160 # We only bootstrap target libraries listed in bootstrap_target_libs.
7161 case $bootstrap_target_libs in
7162 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7163 *) target_bootstrap_suffix=no-bootstrap ;;
7164 esac
7165
7166 extrasub_target="$extrasub_target
7167 /^@if target-$module\$/d
7168 /^@endif target-$module\$/d
7169 /^@if target-$module-$target_bootstrap_suffix\$/d
7170 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7171 done
7172
7173 # Do the final fixup along with target modules.
7174 extrasub_target="$extrasub_target
7175 /^@if /,/^@endif /d"
7176
7177 # Create the serialization dependencies. This uses a temporary file.
7178
7179 # Check whether --enable-serial-configure was given.
7180 if test "${enable_serial_configure+set}" = set; then :
7181 enableval=$enable_serial_configure;
7182 fi
7183
7184
7185 case ${enable_serial_configure} in
7186 yes)
7187 enable_serial_build_configure=yes
7188 enable_serial_host_configure=yes
7189 enable_serial_target_configure=yes
7190 ;;
7191 esac
7192
7193 # These force 'configure's to be done one at a time, to avoid problems
7194 # with contention over a shared config.cache.
7195 rm -f serdep.tmp
7196 echo '# serdep.tmp' > serdep.tmp
7197 olditem=
7198 test "x${enable_serial_build_configure}" = xyes &&
7199 for item in ${build_configdirs} ; do
7200 case ${olditem} in
7201 "") ;;
7202 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7203 esac
7204 olditem=${item}
7205 done
7206 olditem=
7207 test "x${enable_serial_host_configure}" = xyes &&
7208 for item in ${configdirs} ; do
7209 case ${olditem} in
7210 "") ;;
7211 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7212 esac
7213 olditem=${item}
7214 done
7215 olditem=
7216 test "x${enable_serial_target_configure}" = xyes &&
7217 for item in ${target_configdirs} ; do
7218 case ${olditem} in
7219 "") ;;
7220 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7221 esac
7222 olditem=${item}
7223 done
7224 serialization_dependencies=serdep.tmp
7225
7226
7227 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7228 # target, nonopt, and variable assignments. These are the ones we
7229 # might not want to pass down to subconfigures. The exception being
7230 # --cache-file=/dev/null, which is used to turn off the use of cache
7231 # files altogether, and which should be passed on to subconfigures.
7232 # Also strip program-prefix, program-suffix, and program-transform-name,
7233 # so that we can pass down a consistent program-transform-name.
7234 baseargs=
7235 tbaseargs=
7236 keep_next=no
7237 skip_next=no
7238 eval "set -- $ac_configure_args"
7239 for ac_arg
7240 do
7241 if test X"$skip_next" = X"yes"; then
7242 skip_next=no
7243 continue
7244 fi
7245 if test X"$keep_next" = X"yes"; then
7246 case $ac_arg in
7247 *\'*)
7248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7249 esac
7250 baseargs="$baseargs '$ac_arg'"
7251 tbaseargs="$tbaseargs '$ac_arg'"
7252 keep_next=no
7253 continue
7254 fi
7255
7256 # Handle separated arguments. Based on the logic generated by
7257 # autoconf 2.59.
7258 case $ac_arg in
7259 *=* | --config-cache | -C | -disable-* | --disable-* \
7260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7262 | -with-* | --with-* | -without-* | --without-* | --x)
7263 separate_arg=no
7264 ;;
7265 -*)
7266 separate_arg=yes
7267 ;;
7268 *)
7269 separate_arg=no
7270 ;;
7271 esac
7272
7273 skip_targ=no
7274 case $ac_arg in
7275
7276 --with-* | --without-*)
7277 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7278
7279 case $libopt in
7280 *[-_]include)
7281 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7282 ;;
7283 *[-_]lib)
7284 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7285 ;;
7286 *)
7287 lib=$libopt
7288 ;;
7289 esac
7290
7291
7292 case $lib in
7293 mpc | mpfr | gmp | cloog)
7294 # If we're processing --with-$lib, --with-$lib-include or
7295 # --with-$lib-lib, for one of the libs above, and target is
7296 # different from host, don't pass the current argument to any
7297 # target library's configure.
7298 if test x$is_cross_compiler = xyes; then
7299 skip_targ=yes
7300 fi
7301 ;;
7302 esac
7303 ;;
7304 esac
7305
7306 case "$ac_arg" in
7307 --cache-file=/dev/null | \
7308 -cache-file=/dev/null )
7309 # Handled here to avoid the test to skip args below.
7310 baseargs="$baseargs '$ac_arg'"
7311 tbaseargs="$tbaseargs '$ac_arg'"
7312 # Assert: $separate_arg should always be no.
7313 keep_next=$separate_arg
7314 ;;
7315 --no*)
7316 continue
7317 ;;
7318 --c* | \
7319 --sr* | \
7320 --ho* | \
7321 --bu* | \
7322 --t* | \
7323 --program-* | \
7324 -cache_file* | \
7325 -srcdir* | \
7326 -host* | \
7327 -build* | \
7328 -target* | \
7329 -program-prefix* | \
7330 -program-suffix* | \
7331 -program-transform-name* )
7332 skip_next=$separate_arg
7333 continue
7334 ;;
7335 -*)
7336 # An option. Add it.
7337 case $ac_arg in
7338 *\'*)
7339 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7340 esac
7341 baseargs="$baseargs '$ac_arg'"
7342 if test X"$skip_targ" = Xno; then
7343 tbaseargs="$tbaseargs '$ac_arg'"
7344 fi
7345 keep_next=$separate_arg
7346 ;;
7347 *)
7348 # Either a variable assignment, or a nonopt (triplet). Don't
7349 # pass it down; let the Makefile handle this.
7350 continue
7351 ;;
7352 esac
7353 done
7354 # Remove the initial space we just introduced and, as these will be
7355 # expanded by make, quote '$'.
7356 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7357
7358 # Add in --program-transform-name, after --program-prefix and
7359 # --program-suffix have been applied to it. Autoconf has already
7360 # doubled dollar signs and backslashes in program_transform_name; we want
7361 # the backslashes un-doubled, and then the entire thing wrapped in single
7362 # quotes, because this will be expanded first by make and then by the shell.
7363 # Also, because we want to override the logic in subdir configure scripts to
7364 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7365 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7366 ${program_transform_name}
7367 EOF_SED
7368 gcc_transform_name=`cat conftestsed.out`
7369 rm -f conftestsed.out
7370 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7371 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7372 if test "$silent" = yes; then
7373 baseargs="$baseargs --silent"
7374 tbaseargs="$tbaseargs --silent"
7375 fi
7376 baseargs="$baseargs --disable-option-checking"
7377 tbaseargs="$tbaseargs --disable-option-checking"
7378
7379 # Record and document user additions to sub configure arguments.
7380
7381
7382
7383
7384 # For the build-side libraries, we just need to pretend we're native,
7385 # and not use the same cache file. Multilibs are neither needed nor
7386 # desired.
7387 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7388
7389 # For host modules, accept cache file option, or specification as blank.
7390 case "${cache_file}" in
7391 "") # empty
7392 cache_file_option="" ;;
7393 /* | [A-Za-z]:[\\/]* ) # absolute path
7394 cache_file_option="--cache-file=${cache_file}" ;;
7395 *) # relative path
7396 cache_file_option="--cache-file=../${cache_file}" ;;
7397 esac
7398
7399 # Host dirs don't like to share a cache file either, horribly enough.
7400 # This seems to be due to autoconf 2.5x stupidity.
7401 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7402
7403 target_configargs="$target_configargs ${tbaseargs}"
7404
7405 # Passing a --with-cross-host argument lets the target libraries know
7406 # whether they are being built with a cross-compiler or being built
7407 # native. However, it would be better to use other mechanisms to make the
7408 # sorts of decisions they want to make on this basis. Please consider
7409 # this option to be deprecated. FIXME.
7410 if test x${is_cross_compiler} = xyes ; then
7411 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7412 fi
7413
7414 # Default to --enable-multilib.
7415 if test x${enable_multilib} = x ; then
7416 target_configargs="--enable-multilib ${target_configargs}"
7417 fi
7418
7419 # Pass --with-newlib if appropriate. Note that target_configdirs has
7420 # changed from the earlier setting of with_newlib.
7421 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7422 target_configargs="--with-newlib ${target_configargs}"
7423 fi
7424
7425 # Different target subdirs use different values of certain variables
7426 # (notably CXX). Worse, multilibs use *lots* of different values.
7427 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7428 # it doesn't automatically accept command-line overrides of them.
7429 # This means it's not safe for target subdirs to share a cache file,
7430 # which is disgusting, but there you have it. Hopefully this can be
7431 # fixed in future. It's still worthwhile to use a cache file for each
7432 # directory. I think.
7433
7434 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7435 # We need to pass --target, as newer autoconf's requires consistency
7436 # for target_alias and gcc doesn't manage it consistently.
7437 target_configargs="--cache-file=./config.cache ${target_configargs}"
7438
7439 FLAGS_FOR_TARGET=
7440 case " $target_configdirs " in
7441 *" newlib "*)
7442 case " $target_configargs " in
7443 *" --with-newlib "*)
7444 case "$target" in
7445 *-cygwin*)
7446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7447 ;;
7448 esac
7449
7450 # If we're not building GCC, don't discard standard headers.
7451 if test -d ${srcdir}/gcc; then
7452 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7453
7454 if test "${build}" != "${host}"; then
7455 # On Canadian crosses, CC_FOR_TARGET will have already been set
7456 # by `configure', so we won't have an opportunity to add -Bgcc/
7457 # to it. This is right: we don't want to search that directory
7458 # for binaries, but we want the header files in there, so add
7459 # them explicitly.
7460 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7461
7462 # Someone might think of using the pre-installed headers on
7463 # Canadian crosses, in case the installed compiler is not fully
7464 # compatible with the compiler being built. In this case, it
7465 # would be better to flag an error than risking having
7466 # incompatible object files being constructed. We can't
7467 # guarantee that an error will be flagged, but let's hope the
7468 # compiler will do it, when presented with incompatible header
7469 # files.
7470 fi
7471 fi
7472
7473 case "${target}-${is_cross_compiler}" in
7474 i[3456789]86-*-linux*-no)
7475 # Here host == target, so we don't need to build gcc,
7476 # so we don't want to discard standard headers.
7477 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7478 ;;
7479 *)
7480 # If we're building newlib, use its generic headers last, but search
7481 # for any libc-related directories first (so make it the last -B
7482 # switch).
7483 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7484
7485 # If we're building libgloss, find the startup file, simulator library
7486 # and linker script.
7487 case " $target_configdirs " in
7488 *" libgloss "*)
7489 # Look for startup file, simulator library and maybe linker script.
7490 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7491 # Look for libnosys.a in case the target needs it.
7492 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7493 # Most targets have the linker script in the source directory.
7494 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7495 ;;
7496 esac
7497 ;;
7498 esac
7499 ;;
7500 esac
7501 ;;
7502 esac
7503
7504 case "$target" in
7505 x86_64-*mingw* | *-w64-mingw*)
7506 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7507 # however, use a symlink named 'mingw' in ${prefix} .
7508 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7509 ;;
7510 *-mingw*)
7511 # MinGW can't be handled as Cygwin above since it does not use newlib.
7512 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'
7513 ;;
7514 esac
7515
7516 # Allow the user to override the flags for
7517 # our build compiler if desired.
7518 if test x"${build}" = x"${host}" ; then
7519 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7520 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7521 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7522 fi
7523
7524 # On Canadian crosses, we'll be searching the right directories for
7525 # the previously-installed cross compiler, so don't bother to add
7526 # flags for directories within the install tree of the compiler
7527 # being built; programs in there won't even run.
7528 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7529 # Search for pre-installed headers if nothing else fits.
7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7531 fi
7532
7533 if test "x${use_gnu_ld}" = x &&
7534 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7535 # Arrange for us to find uninstalled linker scripts.
7536 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7537 fi
7538
7539 # Search for other target-specific linker scripts and such.
7540 case "${target}" in
7541 mep*)
7542 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7543 ;;
7544 esac
7545
7546 # Makefile fragments.
7547 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7548 do
7549 eval fragval=\$$frag
7550 if test $fragval != /dev/null; then
7551 eval $frag=${srcdir}/$fragval
7552 fi
7553 done
7554
7555
7556
7557
7558
7559 # Miscellanea: directories, flags, etc.
7560
7561
7562
7563
7564
7565
7566
7567
7568 # Build module lists & subconfigure args.
7569
7570
7571
7572 # Host module lists & subconfigure args.
7573
7574
7575
7576
7577 # Target module lists & subconfigure args.
7578
7579
7580
7581 # Build tools.
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599 # Generate default definitions for YACC, M4, LEX and other programs that run
7600 # on the build machine. These are used if the Makefile can't locate these
7601 # programs in objdir.
7602 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7603
7604 for ac_prog in 'bison -y' byacc yacc
7605 do
7606 # Extract the first word of "$ac_prog", so it can be a program name with args.
7607 set dummy $ac_prog; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if test "${ac_cv_prog_YACC+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 if test -n "$YACC"; then
7614 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7623 ac_cv_prog_YACC="$ac_prog"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7626 fi
7627 done
7628 done
7629 IFS=$as_save_IFS
7630
7631 fi
7632 fi
7633 YACC=$ac_cv_prog_YACC
7634 if test -n "$YACC"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7636 $as_echo "$YACC" >&6; }
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7640 fi
7641
7642
7643 test -n "$YACC" && break
7644 done
7645 test -n "$YACC" || YACC="$MISSING bison -y"
7646
7647 case " $build_configdirs " in
7648 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7649 esac
7650
7651 for ac_prog in bison
7652 do
7653 # Extract the first word of "$ac_prog", so it can be a program name with args.
7654 set dummy $ac_prog; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if test "${ac_cv_prog_BISON+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 if test -n "$BISON"; then
7661 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_prog_BISON="$ac_prog"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7673 fi
7674 done
7675 done
7676 IFS=$as_save_IFS
7677
7678 fi
7679 fi
7680 BISON=$ac_cv_prog_BISON
7681 if test -n "$BISON"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7683 $as_echo "$BISON" >&6; }
7684 else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7687 fi
7688
7689
7690 test -n "$BISON" && break
7691 done
7692 test -n "$BISON" || BISON="$MISSING bison"
7693
7694 case " $build_configdirs " in
7695 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7696 esac
7697
7698 for ac_prog in gm4 gnum4 m4
7699 do
7700 # Extract the first word of "$ac_prog", so it can be a program name with args.
7701 set dummy $ac_prog; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if test "${ac_cv_prog_M4+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
7706 else
7707 if test -n "$M4"; then
7708 ac_cv_prog_M4="$M4" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717 ac_cv_prog_M4="$ac_prog"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721 done
7722 done
7723 IFS=$as_save_IFS
7724
7725 fi
7726 fi
7727 M4=$ac_cv_prog_M4
7728 if test -n "$M4"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7730 $as_echo "$M4" >&6; }
7731 else
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7734 fi
7735
7736
7737 test -n "$M4" && break
7738 done
7739 test -n "$M4" || M4="$MISSING m4"
7740
7741 case " $build_configdirs " in
7742 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7743 esac
7744
7745 for ac_prog in flex lex
7746 do
7747 # Extract the first word of "$ac_prog", so it can be a program name with args.
7748 set dummy $ac_prog; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if test "${ac_cv_prog_LEX+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 if test -n "$LEX"; then
7755 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7756 else
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_prog_LEX="$ac_prog"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 break 2
7767 fi
7768 done
7769 done
7770 IFS=$as_save_IFS
7771
7772 fi
7773 fi
7774 LEX=$ac_cv_prog_LEX
7775 if test -n "$LEX"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7777 $as_echo "$LEX" >&6; }
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7781 fi
7782
7783
7784 test -n "$LEX" && break
7785 done
7786 test -n "$LEX" || LEX="$MISSING flex"
7787
7788 case " $build_configdirs " in
7789 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7790 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7791 esac
7792
7793 for ac_prog in flex
7794 do
7795 # Extract the first word of "$ac_prog", so it can be a program name with args.
7796 set dummy $ac_prog; ac_word=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if test "${ac_cv_prog_FLEX+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 if test -n "$FLEX"; then
7803 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7804 else
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7807 do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_prog_FLEX="$ac_prog"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816 done
7817 done
7818 IFS=$as_save_IFS
7819
7820 fi
7821 fi
7822 FLEX=$ac_cv_prog_FLEX
7823 if test -n "$FLEX"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7825 $as_echo "$FLEX" >&6; }
7826 else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7829 fi
7830
7831
7832 test -n "$FLEX" && break
7833 done
7834 test -n "$FLEX" || FLEX="$MISSING flex"
7835
7836 case " $build_configdirs " in
7837 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7838 esac
7839
7840 for ac_prog in makeinfo
7841 do
7842 # Extract the first word of "$ac_prog", so it can be a program name with args.
7843 set dummy $ac_prog; ac_word=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 if test -n "$MAKEINFO"; then
7850 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7851 else
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7854 do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_prog_MAKEINFO="$ac_prog"
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 break 2
7862 fi
7863 done
7864 done
7865 IFS=$as_save_IFS
7866
7867 fi
7868 fi
7869 MAKEINFO=$ac_cv_prog_MAKEINFO
7870 if test -n "$MAKEINFO"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7872 $as_echo "$MAKEINFO" >&6; }
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 fi
7877
7878
7879 test -n "$MAKEINFO" && break
7880 done
7881 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7882
7883 case " $build_configdirs " in
7884 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7885 *)
7886
7887 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7888 # higher, else we use the "missing" dummy.
7889 if ${MAKEINFO} --version \
7890 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7891 :
7892 else
7893 MAKEINFO="$MISSING makeinfo"
7894 fi
7895 ;;
7896
7897 esac
7898
7899 # FIXME: expect and dejagnu may become build tools?
7900
7901 for ac_prog in expect
7902 do
7903 # Extract the first word of "$ac_prog", so it can be a program name with args.
7904 set dummy $ac_prog; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 if test -n "$EXPECT"; then
7911 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7912 else
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7915 do
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7920 ac_cv_prog_EXPECT="$ac_prog"
7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 break 2
7923 fi
7924 done
7925 done
7926 IFS=$as_save_IFS
7927
7928 fi
7929 fi
7930 EXPECT=$ac_cv_prog_EXPECT
7931 if test -n "$EXPECT"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7933 $as_echo "$EXPECT" >&6; }
7934 else
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7937 fi
7938
7939
7940 test -n "$EXPECT" && break
7941 done
7942 test -n "$EXPECT" || EXPECT="expect"
7943
7944 case " $configdirs " in
7945 *" expect "*)
7946 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7947 ;;
7948 esac
7949
7950 for ac_prog in runtest
7951 do
7952 # Extract the first word of "$ac_prog", so it can be a program name with args.
7953 set dummy $ac_prog; ac_word=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 if test -n "$RUNTEST"; then
7960 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7969 ac_cv_prog_RUNTEST="$ac_prog"
7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973 done
7974 done
7975 IFS=$as_save_IFS
7976
7977 fi
7978 fi
7979 RUNTEST=$ac_cv_prog_RUNTEST
7980 if test -n "$RUNTEST"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7982 $as_echo "$RUNTEST" >&6; }
7983 else
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }
7986 fi
7987
7988
7989 test -n "$RUNTEST" && break
7990 done
7991 test -n "$RUNTEST" || RUNTEST="runtest"
7992
7993 case " $configdirs " in
7994 *" dejagnu "*)
7995 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7996 ;;
7997 esac
7998
7999
8000 # Host tools.
8001 ncn_tool_prefix=
8002 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8003 ncn_target_tool_prefix=
8004 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8005
8006
8007
8008 if test -n "$AR"; then
8009 ac_cv_prog_AR=$AR
8010 elif test -n "$ac_cv_prog_AR"; then
8011 AR=$ac_cv_prog_AR
8012 fi
8013
8014 if test -n "$ac_cv_prog_AR"; then
8015 for ncn_progname in ar; do
8016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8017 set dummy ${ncn_progname}; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if test "${ac_cv_prog_AR+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 if test -n "$AR"; then
8024 ac_cv_prog_AR="$AR" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033 ac_cv_prog_AR="${ncn_progname}"
8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8036 fi
8037 done
8038 done
8039 IFS=$as_save_IFS
8040
8041 fi
8042 fi
8043 AR=$ac_cv_prog_AR
8044 if test -n "$AR"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8046 $as_echo "$AR" >&6; }
8047 else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050 fi
8051
8052
8053 done
8054 fi
8055
8056 for ncn_progname in ar; do
8057 if test -n "$ncn_tool_prefix"; then
8058 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8059 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061 $as_echo_n "checking for $ac_word... " >&6; }
8062 if test "${ac_cv_prog_AR+set}" = set; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 if test -n "$AR"; then
8066 ac_cv_prog_AR="$AR" # Let the user override the test.
8067 else
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 for as_dir in $PATH
8070 do
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8075 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8078 fi
8079 done
8080 done
8081 IFS=$as_save_IFS
8082
8083 fi
8084 fi
8085 AR=$ac_cv_prog_AR
8086 if test -n "$AR"; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8088 $as_echo "$AR" >&6; }
8089 else
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }
8092 fi
8093
8094
8095 fi
8096 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8098 set dummy ${ncn_progname}; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if test "${ac_cv_prog_AR+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 if test -n "$AR"; then
8105 ac_cv_prog_AR="$AR" # Let the user override the test.
8106 else
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 for as_dir in $PATH
8109 do
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8114 ac_cv_prog_AR="${ncn_progname}"
8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8117 fi
8118 done
8119 done
8120 IFS=$as_save_IFS
8121
8122 fi
8123 fi
8124 AR=$ac_cv_prog_AR
8125 if test -n "$AR"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8127 $as_echo "$AR" >&6; }
8128 else
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8131 fi
8132
8133
8134 fi
8135 test -n "$ac_cv_prog_AR" && break
8136 done
8137
8138 if test -z "$ac_cv_prog_AR" ; then
8139 set dummy ar
8140 if test $build = $host ; then
8141 AR="$2"
8142 else
8143 AR="${ncn_tool_prefix}$2"
8144 fi
8145 fi
8146
8147
8148
8149 if test -n "$AS"; then
8150 ac_cv_prog_AS=$AS
8151 elif test -n "$ac_cv_prog_AS"; then
8152 AS=$ac_cv_prog_AS
8153 fi
8154
8155 if test -n "$ac_cv_prog_AS"; then
8156 for ncn_progname in as; do
8157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8158 set dummy ${ncn_progname}; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if test "${ac_cv_prog_AS+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 if test -n "$AS"; then
8165 ac_cv_prog_AS="$AS" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8174 ac_cv_prog_AS="${ncn_progname}"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178 done
8179 done
8180 IFS=$as_save_IFS
8181
8182 fi
8183 fi
8184 AS=$ac_cv_prog_AS
8185 if test -n "$AS"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8187 $as_echo "$AS" >&6; }
8188 else
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8191 fi
8192
8193
8194 done
8195 fi
8196
8197 for ncn_progname in as; do
8198 if test -n "$ncn_tool_prefix"; then
8199 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8200 set dummy ${ncn_tool_prefix}${ncn_progname}; 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_AS+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 if test -n "$AS"; then
8207 ac_cv_prog_AS="$AS" # 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_AS="${ncn_tool_prefix}${ncn_progname}"
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 AS=$ac_cv_prog_AS
8227 if test -n "$AS"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8229 $as_echo "$AS" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 fi
8234
8235
8236 fi
8237 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8239 set dummy ${ncn_progname}; ac_word=$2
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 $as_echo_n "checking for $ac_word... " >&6; }
8242 if test "${ac_cv_prog_AS+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 if test -n "$AS"; then
8246 ac_cv_prog_AS="$AS" # Let the user override the test.
8247 else
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 for as_dir in $PATH
8250 do
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8255 ac_cv_prog_AS="${ncn_progname}"
8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 break 2
8258 fi
8259 done
8260 done
8261 IFS=$as_save_IFS
8262
8263 fi
8264 fi
8265 AS=$ac_cv_prog_AS
8266 if test -n "$AS"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8268 $as_echo "$AS" >&6; }
8269 else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8272 fi
8273
8274
8275 fi
8276 test -n "$ac_cv_prog_AS" && break
8277 done
8278
8279 if test -z "$ac_cv_prog_AS" ; then
8280 set dummy as
8281 if test $build = $host ; then
8282 AS="$2"
8283 else
8284 AS="${ncn_tool_prefix}$2"
8285 fi
8286 fi
8287
8288
8289
8290 if test -n "$DLLTOOL"; then
8291 ac_cv_prog_DLLTOOL=$DLLTOOL
8292 elif test -n "$ac_cv_prog_DLLTOOL"; then
8293 DLLTOOL=$ac_cv_prog_DLLTOOL
8294 fi
8295
8296 if test -n "$ac_cv_prog_DLLTOOL"; then
8297 for ncn_progname in dlltool; do
8298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8299 set dummy ${ncn_progname}; ac_word=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 if test -n "$DLLTOOL"; then
8306 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8307 else
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8310 do
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 ac_cv_prog_DLLTOOL="${ncn_progname}"
8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 break 2
8318 fi
8319 done
8320 done
8321 IFS=$as_save_IFS
8322
8323 fi
8324 fi
8325 DLLTOOL=$ac_cv_prog_DLLTOOL
8326 if test -n "$DLLTOOL"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8328 $as_echo "$DLLTOOL" >&6; }
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8332 fi
8333
8334
8335 done
8336 fi
8337
8338 for ncn_progname in dlltool; do
8339 if test -n "$ncn_tool_prefix"; then
8340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8341 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 if test -n "$DLLTOOL"; then
8348 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8349 else
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 for as_dir in $PATH
8352 do
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8357 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359 break 2
8360 fi
8361 done
8362 done
8363 IFS=$as_save_IFS
8364
8365 fi
8366 fi
8367 DLLTOOL=$ac_cv_prog_DLLTOOL
8368 if test -n "$DLLTOOL"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8370 $as_echo "$DLLTOOL" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8374 fi
8375
8376
8377 fi
8378 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8380 set dummy ${ncn_progname}; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 if test -n "$DLLTOOL"; then
8387 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8388 else
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8391 do
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8396 ac_cv_prog_DLLTOOL="${ncn_progname}"
8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 break 2
8399 fi
8400 done
8401 done
8402 IFS=$as_save_IFS
8403
8404 fi
8405 fi
8406 DLLTOOL=$ac_cv_prog_DLLTOOL
8407 if test -n "$DLLTOOL"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8409 $as_echo "$DLLTOOL" >&6; }
8410 else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8413 fi
8414
8415
8416 fi
8417 test -n "$ac_cv_prog_DLLTOOL" && break
8418 done
8419
8420 if test -z "$ac_cv_prog_DLLTOOL" ; then
8421 set dummy dlltool
8422 if test $build = $host ; then
8423 DLLTOOL="$2"
8424 else
8425 DLLTOOL="${ncn_tool_prefix}$2"
8426 fi
8427 fi
8428
8429
8430
8431 if test -n "$LD"; then
8432 ac_cv_prog_LD=$LD
8433 elif test -n "$ac_cv_prog_LD"; then
8434 LD=$ac_cv_prog_LD
8435 fi
8436
8437 if test -n "$ac_cv_prog_LD"; then
8438 for ncn_progname in ld; do
8439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8440 set dummy ${ncn_progname}; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if test "${ac_cv_prog_LD+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 if test -n "$LD"; then
8447 ac_cv_prog_LD="$LD" # Let the user override the test.
8448 else
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8451 do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_prog_LD="${ncn_progname}"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8459 fi
8460 done
8461 done
8462 IFS=$as_save_IFS
8463
8464 fi
8465 fi
8466 LD=$ac_cv_prog_LD
8467 if test -n "$LD"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8469 $as_echo "$LD" >&6; }
8470 else
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8473 fi
8474
8475
8476 done
8477 fi
8478
8479 for ncn_progname in ld; do
8480 if test -n "$ncn_tool_prefix"; then
8481 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8482 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if test "${ac_cv_prog_LD+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 if test -n "$LD"; then
8489 ac_cv_prog_LD="$LD" # Let the user override the test.
8490 else
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8493 do
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8498 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8500 break 2
8501 fi
8502 done
8503 done
8504 IFS=$as_save_IFS
8505
8506 fi
8507 fi
8508 LD=$ac_cv_prog_LD
8509 if test -n "$LD"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8511 $as_echo "$LD" >&6; }
8512 else
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8515 fi
8516
8517
8518 fi
8519 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8521 set dummy ${ncn_progname}; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if test "${ac_cv_prog_LD+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 if test -n "$LD"; then
8528 ac_cv_prog_LD="$LD" # Let the user override the test.
8529 else
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8532 do
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8537 ac_cv_prog_LD="${ncn_progname}"
8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 break 2
8540 fi
8541 done
8542 done
8543 IFS=$as_save_IFS
8544
8545 fi
8546 fi
8547 LD=$ac_cv_prog_LD
8548 if test -n "$LD"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8550 $as_echo "$LD" >&6; }
8551 else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8554 fi
8555
8556
8557 fi
8558 test -n "$ac_cv_prog_LD" && break
8559 done
8560
8561 if test -z "$ac_cv_prog_LD" ; then
8562 set dummy ld
8563 if test $build = $host ; then
8564 LD="$2"
8565 else
8566 LD="${ncn_tool_prefix}$2"
8567 fi
8568 fi
8569
8570
8571
8572 if test -n "$LIPO"; then
8573 ac_cv_prog_LIPO=$LIPO
8574 elif test -n "$ac_cv_prog_LIPO"; then
8575 LIPO=$ac_cv_prog_LIPO
8576 fi
8577
8578 if test -n "$ac_cv_prog_LIPO"; then
8579 for ncn_progname in lipo; do
8580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8581 set dummy ${ncn_progname}; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if test "${ac_cv_prog_LIPO+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 if test -n "$LIPO"; then
8588 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8589 else
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8592 do
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8597 ac_cv_prog_LIPO="${ncn_progname}"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 break 2
8600 fi
8601 done
8602 done
8603 IFS=$as_save_IFS
8604
8605 fi
8606 fi
8607 LIPO=$ac_cv_prog_LIPO
8608 if test -n "$LIPO"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8610 $as_echo "$LIPO" >&6; }
8611 else
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8614 fi
8615
8616
8617 done
8618 fi
8619
8620 for ncn_progname in lipo; do
8621 if test -n "$ncn_tool_prefix"; then
8622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8623 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8625 $as_echo_n "checking for $ac_word... " >&6; }
8626 if test "${ac_cv_prog_LIPO+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 if test -n "$LIPO"; then
8630 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8631 else
8632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 for as_dir in $PATH
8634 do
8635 IFS=$as_save_IFS
8636 test -z "$as_dir" && as_dir=.
8637 for ac_exec_ext in '' $ac_executable_extensions; do
8638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8639 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8641 break 2
8642 fi
8643 done
8644 done
8645 IFS=$as_save_IFS
8646
8647 fi
8648 fi
8649 LIPO=$ac_cv_prog_LIPO
8650 if test -n "$LIPO"; then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8652 $as_echo "$LIPO" >&6; }
8653 else
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655 $as_echo "no" >&6; }
8656 fi
8657
8658
8659 fi
8660 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8662 set dummy ${ncn_progname}; ac_word=$2
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if test "${ac_cv_prog_LIPO+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
8667 else
8668 if test -n "$LIPO"; then
8669 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8670 else
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672 for as_dir in $PATH
8673 do
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8678 ac_cv_prog_LIPO="${ncn_progname}"
8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 break 2
8681 fi
8682 done
8683 done
8684 IFS=$as_save_IFS
8685
8686 fi
8687 fi
8688 LIPO=$ac_cv_prog_LIPO
8689 if test -n "$LIPO"; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8691 $as_echo "$LIPO" >&6; }
8692 else
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694 $as_echo "no" >&6; }
8695 fi
8696
8697
8698 fi
8699 test -n "$ac_cv_prog_LIPO" && break
8700 done
8701
8702 if test -z "$ac_cv_prog_LIPO" ; then
8703 set dummy lipo
8704 if test $build = $host ; then
8705 LIPO="$2"
8706 else
8707 LIPO="${ncn_tool_prefix}$2"
8708 fi
8709 fi
8710
8711
8712
8713 if test -n "$NM"; then
8714 ac_cv_prog_NM=$NM
8715 elif test -n "$ac_cv_prog_NM"; then
8716 NM=$ac_cv_prog_NM
8717 fi
8718
8719 if test -n "$ac_cv_prog_NM"; then
8720 for ncn_progname in nm; do
8721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8722 set dummy ${ncn_progname}; ac_word=$2
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724 $as_echo_n "checking for $ac_word... " >&6; }
8725 if test "${ac_cv_prog_NM+set}" = set; then :
8726 $as_echo_n "(cached) " >&6
8727 else
8728 if test -n "$NM"; then
8729 ac_cv_prog_NM="$NM" # Let the user override the test.
8730 else
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8733 do
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8738 ac_cv_prog_NM="${ncn_progname}"
8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 break 2
8741 fi
8742 done
8743 done
8744 IFS=$as_save_IFS
8745
8746 fi
8747 fi
8748 NM=$ac_cv_prog_NM
8749 if test -n "$NM"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8751 $as_echo "$NM" >&6; }
8752 else
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 $as_echo "no" >&6; }
8755 fi
8756
8757
8758 done
8759 fi
8760
8761 for ncn_progname in nm; do
8762 if test -n "$ncn_tool_prefix"; then
8763 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8764 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766 $as_echo_n "checking for $ac_word... " >&6; }
8767 if test "${ac_cv_prog_NM+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 if test -n "$NM"; then
8771 ac_cv_prog_NM="$NM" # Let the user override the test.
8772 else
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $PATH
8775 do
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8780 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8783 fi
8784 done
8785 done
8786 IFS=$as_save_IFS
8787
8788 fi
8789 fi
8790 NM=$ac_cv_prog_NM
8791 if test -n "$NM"; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8793 $as_echo "$NM" >&6; }
8794 else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8797 fi
8798
8799
8800 fi
8801 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8803 set dummy ${ncn_progname}; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if test "${ac_cv_prog_NM+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 if test -n "$NM"; then
8810 ac_cv_prog_NM="$NM" # Let the user override the test.
8811 else
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8814 do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8819 ac_cv_prog_NM="${ncn_progname}"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8822 fi
8823 done
8824 done
8825 IFS=$as_save_IFS
8826
8827 fi
8828 fi
8829 NM=$ac_cv_prog_NM
8830 if test -n "$NM"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8832 $as_echo "$NM" >&6; }
8833 else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8836 fi
8837
8838
8839 fi
8840 test -n "$ac_cv_prog_NM" && break
8841 done
8842
8843 if test -z "$ac_cv_prog_NM" ; then
8844 set dummy nm
8845 if test $build = $host ; then
8846 NM="$2"
8847 else
8848 NM="${ncn_tool_prefix}$2"
8849 fi
8850 fi
8851
8852
8853
8854 if test -n "$RANLIB"; then
8855 ac_cv_prog_RANLIB=$RANLIB
8856 elif test -n "$ac_cv_prog_RANLIB"; then
8857 RANLIB=$ac_cv_prog_RANLIB
8858 fi
8859
8860 if test -n "$ac_cv_prog_RANLIB"; then
8861 for ncn_progname in ranlib; do
8862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8863 set dummy ${ncn_progname}; ac_word=$2
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865 $as_echo_n "checking for $ac_word... " >&6; }
8866 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 if test -n "$RANLIB"; then
8870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8871 else
8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 for as_dir in $PATH
8874 do
8875 IFS=$as_save_IFS
8876 test -z "$as_dir" && as_dir=.
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8879 ac_cv_prog_RANLIB="${ncn_progname}"
8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881 break 2
8882 fi
8883 done
8884 done
8885 IFS=$as_save_IFS
8886
8887 fi
8888 fi
8889 RANLIB=$ac_cv_prog_RANLIB
8890 if test -n "$RANLIB"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8892 $as_echo "$RANLIB" >&6; }
8893 else
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8896 fi
8897
8898
8899 done
8900 fi
8901
8902 for ncn_progname in ranlib; do
8903 if test -n "$ncn_tool_prefix"; then
8904 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8905 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907 $as_echo_n "checking for $ac_word... " >&6; }
8908 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8909 $as_echo_n "(cached) " >&6
8910 else
8911 if test -n "$RANLIB"; then
8912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8913 else
8914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915 for as_dir in $PATH
8916 do
8917 IFS=$as_save_IFS
8918 test -z "$as_dir" && as_dir=.
8919 for ac_exec_ext in '' $ac_executable_extensions; do
8920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8921 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8923 break 2
8924 fi
8925 done
8926 done
8927 IFS=$as_save_IFS
8928
8929 fi
8930 fi
8931 RANLIB=$ac_cv_prog_RANLIB
8932 if test -n "$RANLIB"; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8934 $as_echo "$RANLIB" >&6; }
8935 else
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 $as_echo "no" >&6; }
8938 fi
8939
8940
8941 fi
8942 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8944 set dummy ${ncn_progname}; ac_word=$2
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946 $as_echo_n "checking for $ac_word... " >&6; }
8947 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 if test -n "$RANLIB"; then
8951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8952 else
8953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954 for as_dir in $PATH
8955 do
8956 IFS=$as_save_IFS
8957 test -z "$as_dir" && as_dir=.
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8960 ac_cv_prog_RANLIB="${ncn_progname}"
8961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 break 2
8963 fi
8964 done
8965 done
8966 IFS=$as_save_IFS
8967
8968 fi
8969 fi
8970 RANLIB=$ac_cv_prog_RANLIB
8971 if test -n "$RANLIB"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8973 $as_echo "$RANLIB" >&6; }
8974 else
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976 $as_echo "no" >&6; }
8977 fi
8978
8979
8980 fi
8981 test -n "$ac_cv_prog_RANLIB" && break
8982 done
8983
8984 if test -z "$ac_cv_prog_RANLIB" ; then
8985 RANLIB="true"
8986 fi
8987
8988
8989
8990 if test -n "$STRIP"; then
8991 ac_cv_prog_STRIP=$STRIP
8992 elif test -n "$ac_cv_prog_STRIP"; then
8993 STRIP=$ac_cv_prog_STRIP
8994 fi
8995
8996 if test -n "$ac_cv_prog_STRIP"; then
8997 for ncn_progname in strip; do
8998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8999 set dummy ${ncn_progname}; ac_word=$2
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001 $as_echo_n "checking for $ac_word... " >&6; }
9002 if test "${ac_cv_prog_STRIP+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 if test -n "$STRIP"; then
9006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9007 else
9008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009 for as_dir in $PATH
9010 do
9011 IFS=$as_save_IFS
9012 test -z "$as_dir" && as_dir=.
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9015 ac_cv_prog_STRIP="${ncn_progname}"
9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9017 break 2
9018 fi
9019 done
9020 done
9021 IFS=$as_save_IFS
9022
9023 fi
9024 fi
9025 STRIP=$ac_cv_prog_STRIP
9026 if test -n "$STRIP"; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9028 $as_echo "$STRIP" >&6; }
9029 else
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9032 fi
9033
9034
9035 done
9036 fi
9037
9038 for ncn_progname in strip; do
9039 if test -n "$ncn_tool_prefix"; then
9040 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9041 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 $as_echo_n "checking for $ac_word... " >&6; }
9044 if test "${ac_cv_prog_STRIP+set}" = set; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 if test -n "$STRIP"; then
9048 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9049 else
9050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051 for as_dir in $PATH
9052 do
9053 IFS=$as_save_IFS
9054 test -z "$as_dir" && as_dir=.
9055 for ac_exec_ext in '' $ac_executable_extensions; do
9056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9057 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059 break 2
9060 fi
9061 done
9062 done
9063 IFS=$as_save_IFS
9064
9065 fi
9066 fi
9067 STRIP=$ac_cv_prog_STRIP
9068 if test -n "$STRIP"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9070 $as_echo "$STRIP" >&6; }
9071 else
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073 $as_echo "no" >&6; }
9074 fi
9075
9076
9077 fi
9078 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
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_STRIP+set}" = set; then :
9084 $as_echo_n "(cached) " >&6
9085 else
9086 if test -n "$STRIP"; then
9087 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${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 STRIP=$ac_cv_prog_STRIP
9107 if test -n "$STRIP"; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9109 $as_echo "$STRIP" >&6; }
9110 else
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9112 $as_echo "no" >&6; }
9113 fi
9114
9115
9116 fi
9117 test -n "$ac_cv_prog_STRIP" && break
9118 done
9119
9120 if test -z "$ac_cv_prog_STRIP" ; then
9121 STRIP="true"
9122 fi
9123
9124
9125
9126 if test -n "$WINDRES"; then
9127 ac_cv_prog_WINDRES=$WINDRES
9128 elif test -n "$ac_cv_prog_WINDRES"; then
9129 WINDRES=$ac_cv_prog_WINDRES
9130 fi
9131
9132 if test -n "$ac_cv_prog_WINDRES"; then
9133 for ncn_progname in windres; do
9134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9135 set dummy ${ncn_progname}; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 if test -n "$WINDRES"; then
9142 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9143 else
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9146 do
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9151 ac_cv_prog_WINDRES="${ncn_progname}"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153 break 2
9154 fi
9155 done
9156 done
9157 IFS=$as_save_IFS
9158
9159 fi
9160 fi
9161 WINDRES=$ac_cv_prog_WINDRES
9162 if test -n "$WINDRES"; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9164 $as_echo "$WINDRES" >&6; }
9165 else
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 fi
9169
9170
9171 done
9172 fi
9173
9174 for ncn_progname in windres; do
9175 if test -n "$ncn_tool_prefix"; then
9176 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9177 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 if test -n "$WINDRES"; then
9184 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9185 else
9186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187 for as_dir in $PATH
9188 do
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9193 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195 break 2
9196 fi
9197 done
9198 done
9199 IFS=$as_save_IFS
9200
9201 fi
9202 fi
9203 WINDRES=$ac_cv_prog_WINDRES
9204 if test -n "$WINDRES"; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9206 $as_echo "$WINDRES" >&6; }
9207 else
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9210 fi
9211
9212
9213 fi
9214 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9216 set dummy ${ncn_progname}; ac_word=$2
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218 $as_echo_n "checking for $ac_word... " >&6; }
9219 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 if test -n "$WINDRES"; then
9223 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9224 else
9225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226 for as_dir in $PATH
9227 do
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9232 ac_cv_prog_WINDRES="${ncn_progname}"
9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 break 2
9235 fi
9236 done
9237 done
9238 IFS=$as_save_IFS
9239
9240 fi
9241 fi
9242 WINDRES=$ac_cv_prog_WINDRES
9243 if test -n "$WINDRES"; then
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9245 $as_echo "$WINDRES" >&6; }
9246 else
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248 $as_echo "no" >&6; }
9249 fi
9250
9251
9252 fi
9253 test -n "$ac_cv_prog_WINDRES" && break
9254 done
9255
9256 if test -z "$ac_cv_prog_WINDRES" ; then
9257 set dummy windres
9258 if test $build = $host ; then
9259 WINDRES="$2"
9260 else
9261 WINDRES="${ncn_tool_prefix}$2"
9262 fi
9263 fi
9264
9265
9266
9267 if test -n "$WINDMC"; then
9268 ac_cv_prog_WINDMC=$WINDMC
9269 elif test -n "$ac_cv_prog_WINDMC"; then
9270 WINDMC=$ac_cv_prog_WINDMC
9271 fi
9272
9273 if test -n "$ac_cv_prog_WINDMC"; then
9274 for ncn_progname in windmc; do
9275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9276 set dummy ${ncn_progname}; ac_word=$2
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278 $as_echo_n "checking for $ac_word... " >&6; }
9279 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 if test -n "$WINDMC"; then
9283 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9284 else
9285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286 for as_dir in $PATH
9287 do
9288 IFS=$as_save_IFS
9289 test -z "$as_dir" && as_dir=.
9290 for ac_exec_ext in '' $ac_executable_extensions; do
9291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9292 ac_cv_prog_WINDMC="${ncn_progname}"
9293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9294 break 2
9295 fi
9296 done
9297 done
9298 IFS=$as_save_IFS
9299
9300 fi
9301 fi
9302 WINDMC=$ac_cv_prog_WINDMC
9303 if test -n "$WINDMC"; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9305 $as_echo "$WINDMC" >&6; }
9306 else
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308 $as_echo "no" >&6; }
9309 fi
9310
9311
9312 done
9313 fi
9314
9315 for ncn_progname in windmc; do
9316 if test -n "$ncn_tool_prefix"; then
9317 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9318 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9320 $as_echo_n "checking for $ac_word... " >&6; }
9321 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 if test -n "$WINDMC"; then
9325 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9326 else
9327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328 for as_dir in $PATH
9329 do
9330 IFS=$as_save_IFS
9331 test -z "$as_dir" && as_dir=.
9332 for ac_exec_ext in '' $ac_executable_extensions; do
9333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9334 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9336 break 2
9337 fi
9338 done
9339 done
9340 IFS=$as_save_IFS
9341
9342 fi
9343 fi
9344 WINDMC=$ac_cv_prog_WINDMC
9345 if test -n "$WINDMC"; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9347 $as_echo "$WINDMC" >&6; }
9348 else
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350 $as_echo "no" >&6; }
9351 fi
9352
9353
9354 fi
9355 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9357 set dummy ${ncn_progname}; ac_word=$2
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359 $as_echo_n "checking for $ac_word... " >&6; }
9360 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 if test -n "$WINDMC"; then
9364 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9365 else
9366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9367 for as_dir in $PATH
9368 do
9369 IFS=$as_save_IFS
9370 test -z "$as_dir" && as_dir=.
9371 for ac_exec_ext in '' $ac_executable_extensions; do
9372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9373 ac_cv_prog_WINDMC="${ncn_progname}"
9374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9375 break 2
9376 fi
9377 done
9378 done
9379 IFS=$as_save_IFS
9380
9381 fi
9382 fi
9383 WINDMC=$ac_cv_prog_WINDMC
9384 if test -n "$WINDMC"; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9386 $as_echo "$WINDMC" >&6; }
9387 else
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389 $as_echo "no" >&6; }
9390 fi
9391
9392
9393 fi
9394 test -n "$ac_cv_prog_WINDMC" && break
9395 done
9396
9397 if test -z "$ac_cv_prog_WINDMC" ; then
9398 set dummy windmc
9399 if test $build = $host ; then
9400 WINDMC="$2"
9401 else
9402 WINDMC="${ncn_tool_prefix}$2"
9403 fi
9404 fi
9405
9406
9407
9408 if test -n "$OBJCOPY"; then
9409 ac_cv_prog_OBJCOPY=$OBJCOPY
9410 elif test -n "$ac_cv_prog_OBJCOPY"; then
9411 OBJCOPY=$ac_cv_prog_OBJCOPY
9412 fi
9413
9414 if test -n "$ac_cv_prog_OBJCOPY"; then
9415 for ncn_progname in objcopy; do
9416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9417 set dummy ${ncn_progname}; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 if test -n "$OBJCOPY"; then
9424 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9425 else
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9428 do
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9433 ac_cv_prog_OBJCOPY="${ncn_progname}"
9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435 break 2
9436 fi
9437 done
9438 done
9439 IFS=$as_save_IFS
9440
9441 fi
9442 fi
9443 OBJCOPY=$ac_cv_prog_OBJCOPY
9444 if test -n "$OBJCOPY"; then
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9446 $as_echo "$OBJCOPY" >&6; }
9447 else
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449 $as_echo "no" >&6; }
9450 fi
9451
9452
9453 done
9454 fi
9455
9456 for ncn_progname in objcopy; do
9457 if test -n "$ncn_tool_prefix"; then
9458 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9459 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461 $as_echo_n "checking for $ac_word... " >&6; }
9462 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9465 if test -n "$OBJCOPY"; then
9466 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9467 else
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469 for as_dir in $PATH
9470 do
9471 IFS=$as_save_IFS
9472 test -z "$as_dir" && as_dir=.
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9475 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9477 break 2
9478 fi
9479 done
9480 done
9481 IFS=$as_save_IFS
9482
9483 fi
9484 fi
9485 OBJCOPY=$ac_cv_prog_OBJCOPY
9486 if test -n "$OBJCOPY"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9488 $as_echo "$OBJCOPY" >&6; }
9489 else
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491 $as_echo "no" >&6; }
9492 fi
9493
9494
9495 fi
9496 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
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_OBJCOPY+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 if test -n "$OBJCOPY"; then
9505 ac_cv_prog_OBJCOPY="$OBJCOPY" # 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_OBJCOPY="${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 OBJCOPY=$ac_cv_prog_OBJCOPY
9525 if test -n "$OBJCOPY"; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9527 $as_echo "$OBJCOPY" >&6; }
9528 else
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530 $as_echo "no" >&6; }
9531 fi
9532
9533
9534 fi
9535 test -n "$ac_cv_prog_OBJCOPY" && break
9536 done
9537
9538 if test -z "$ac_cv_prog_OBJCOPY" ; then
9539 set dummy objcopy
9540 if test $build = $host ; then
9541 OBJCOPY="$2"
9542 else
9543 OBJCOPY="${ncn_tool_prefix}$2"
9544 fi
9545 fi
9546
9547
9548
9549 if test -n "$OBJDUMP"; then
9550 ac_cv_prog_OBJDUMP=$OBJDUMP
9551 elif test -n "$ac_cv_prog_OBJDUMP"; then
9552 OBJDUMP=$ac_cv_prog_OBJDUMP
9553 fi
9554
9555 if test -n "$ac_cv_prog_OBJDUMP"; then
9556 for ncn_progname in objdump; do
9557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9558 set dummy ${ncn_progname}; ac_word=$2
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560 $as_echo_n "checking for $ac_word... " >&6; }
9561 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9562 $as_echo_n "(cached) " >&6
9563 else
9564 if test -n "$OBJDUMP"; then
9565 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9566 else
9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568 for as_dir in $PATH
9569 do
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9574 ac_cv_prog_OBJDUMP="${ncn_progname}"
9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 break 2
9577 fi
9578 done
9579 done
9580 IFS=$as_save_IFS
9581
9582 fi
9583 fi
9584 OBJDUMP=$ac_cv_prog_OBJDUMP
9585 if test -n "$OBJDUMP"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9587 $as_echo "$OBJDUMP" >&6; }
9588 else
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9591 fi
9592
9593
9594 done
9595 fi
9596
9597 for ncn_progname in objdump; do
9598 if test -n "$ncn_tool_prefix"; then
9599 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9600 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9602 $as_echo_n "checking for $ac_word... " >&6; }
9603 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 if test -n "$OBJDUMP"; then
9607 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9608 else
9609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 for as_dir in $PATH
9611 do
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9616 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9618 break 2
9619 fi
9620 done
9621 done
9622 IFS=$as_save_IFS
9623
9624 fi
9625 fi
9626 OBJDUMP=$ac_cv_prog_OBJDUMP
9627 if test -n "$OBJDUMP"; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9629 $as_echo "$OBJDUMP" >&6; }
9630 else
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632 $as_echo "no" >&6; }
9633 fi
9634
9635
9636 fi
9637 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9639 set dummy ${ncn_progname}; ac_word=$2
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641 $as_echo_n "checking for $ac_word... " >&6; }
9642 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 if test -n "$OBJDUMP"; then
9646 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9647 else
9648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649 for as_dir in $PATH
9650 do
9651 IFS=$as_save_IFS
9652 test -z "$as_dir" && as_dir=.
9653 for ac_exec_ext in '' $ac_executable_extensions; do
9654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9655 ac_cv_prog_OBJDUMP="${ncn_progname}"
9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9657 break 2
9658 fi
9659 done
9660 done
9661 IFS=$as_save_IFS
9662
9663 fi
9664 fi
9665 OBJDUMP=$ac_cv_prog_OBJDUMP
9666 if test -n "$OBJDUMP"; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9668 $as_echo "$OBJDUMP" >&6; }
9669 else
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9672 fi
9673
9674
9675 fi
9676 test -n "$ac_cv_prog_OBJDUMP" && break
9677 done
9678
9679 if test -z "$ac_cv_prog_OBJDUMP" ; then
9680 set dummy objdump
9681 if test $build = $host ; then
9682 OBJDUMP="$2"
9683 else
9684 OBJDUMP="${ncn_tool_prefix}$2"
9685 fi
9686 fi
9687
9688
9689
9690 if test -n "$READELF"; then
9691 ac_cv_prog_READELF=$READELF
9692 elif test -n "$ac_cv_prog_READELF"; then
9693 READELF=$ac_cv_prog_READELF
9694 fi
9695
9696 if test -n "$ac_cv_prog_READELF"; then
9697 for ncn_progname in readelf; do
9698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9699 set dummy ${ncn_progname}; ac_word=$2
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701 $as_echo_n "checking for $ac_word... " >&6; }
9702 if test "${ac_cv_prog_READELF+set}" = set; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 if test -n "$READELF"; then
9706 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9707 else
9708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709 for as_dir in $PATH
9710 do
9711 IFS=$as_save_IFS
9712 test -z "$as_dir" && as_dir=.
9713 for ac_exec_ext in '' $ac_executable_extensions; do
9714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9715 ac_cv_prog_READELF="${ncn_progname}"
9716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 break 2
9718 fi
9719 done
9720 done
9721 IFS=$as_save_IFS
9722
9723 fi
9724 fi
9725 READELF=$ac_cv_prog_READELF
9726 if test -n "$READELF"; then
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9728 $as_echo "$READELF" >&6; }
9729 else
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9731 $as_echo "no" >&6; }
9732 fi
9733
9734
9735 done
9736 fi
9737
9738 for ncn_progname in readelf; do
9739 if test -n "$ncn_tool_prefix"; then
9740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9741 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9743 $as_echo_n "checking for $ac_word... " >&6; }
9744 if test "${ac_cv_prog_READELF+set}" = set; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 if test -n "$READELF"; then
9748 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9749 else
9750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751 for as_dir in $PATH
9752 do
9753 IFS=$as_save_IFS
9754 test -z "$as_dir" && as_dir=.
9755 for ac_exec_ext in '' $ac_executable_extensions; do
9756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9757 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9759 break 2
9760 fi
9761 done
9762 done
9763 IFS=$as_save_IFS
9764
9765 fi
9766 fi
9767 READELF=$ac_cv_prog_READELF
9768 if test -n "$READELF"; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9770 $as_echo "$READELF" >&6; }
9771 else
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9774 fi
9775
9776
9777 fi
9778 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9780 set dummy ${ncn_progname}; ac_word=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if test "${ac_cv_prog_READELF+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9785 else
9786 if test -n "$READELF"; then
9787 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9788 else
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790 for as_dir in $PATH
9791 do
9792 IFS=$as_save_IFS
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9796 ac_cv_prog_READELF="${ncn_progname}"
9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798 break 2
9799 fi
9800 done
9801 done
9802 IFS=$as_save_IFS
9803
9804 fi
9805 fi
9806 READELF=$ac_cv_prog_READELF
9807 if test -n "$READELF"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9809 $as_echo "$READELF" >&6; }
9810 else
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9813 fi
9814
9815
9816 fi
9817 test -n "$ac_cv_prog_READELF" && break
9818 done
9819
9820 if test -z "$ac_cv_prog_READELF" ; then
9821 set dummy readelf
9822 if test $build = $host ; then
9823 READELF="$2"
9824 else
9825 READELF="${ncn_tool_prefix}$2"
9826 fi
9827 fi
9828
9829
9830
9831
9832
9833
9834 # Target tools.
9835
9836 # Check whether --with-build-time-tools was given.
9837 if test "${with_build_time_tools+set}" = set; then :
9838 withval=$with_build_time_tools; case x"$withval" in
9839 x/*) ;;
9840 *)
9841 with_build_time_tools=
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9843 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9844 ;;
9845 esac
9846 else
9847 with_build_time_tools=
9848 fi
9849
9850
9851
9852
9853 if test -n "$CC_FOR_TARGET"; then
9854 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9855 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9856 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9857 fi
9858
9859 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9860 for ncn_progname in cc gcc; do
9861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9862 set dummy ${ncn_progname}; ac_word=$2
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864 $as_echo_n "checking for $ac_word... " >&6; }
9865 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 if test -n "$CC_FOR_TARGET"; then
9869 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9870 else
9871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 for as_dir in $PATH
9873 do
9874 IFS=$as_save_IFS
9875 test -z "$as_dir" && as_dir=.
9876 for ac_exec_ext in '' $ac_executable_extensions; do
9877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9878 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880 break 2
9881 fi
9882 done
9883 done
9884 IFS=$as_save_IFS
9885
9886 fi
9887 fi
9888 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9889 if test -n "$CC_FOR_TARGET"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9891 $as_echo "$CC_FOR_TARGET" >&6; }
9892 else
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9895 fi
9896
9897
9898 done
9899 fi
9900
9901 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9902 for ncn_progname in cc gcc; do
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9904 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9905 if test -x $with_build_time_tools/${ncn_progname}; then
9906 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9908 $as_echo "yes" >&6; }
9909 break
9910 else
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912 $as_echo "no" >&6; }
9913 fi
9914 done
9915 fi
9916
9917 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9918 for ncn_progname in cc gcc; do
9919 if test -n "$ncn_target_tool_prefix"; then
9920 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9921 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9923 $as_echo_n "checking for $ac_word... " >&6; }
9924 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 if test -n "$CC_FOR_TARGET"; then
9928 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9929 else
9930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931 for as_dir in $PATH
9932 do
9933 IFS=$as_save_IFS
9934 test -z "$as_dir" && as_dir=.
9935 for ac_exec_ext in '' $ac_executable_extensions; do
9936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9937 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9939 break 2
9940 fi
9941 done
9942 done
9943 IFS=$as_save_IFS
9944
9945 fi
9946 fi
9947 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9948 if test -n "$CC_FOR_TARGET"; then
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9950 $as_echo "$CC_FOR_TARGET" >&6; }
9951 else
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 $as_echo "no" >&6; }
9954 fi
9955
9956
9957 fi
9958 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9960 set dummy ${ncn_progname}; ac_word=$2
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 if test -n "$CC_FOR_TARGET"; then
9967 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9968 else
9969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970 for as_dir in $PATH
9971 do
9972 IFS=$as_save_IFS
9973 test -z "$as_dir" && as_dir=.
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9976 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9978 break 2
9979 fi
9980 done
9981 done
9982 IFS=$as_save_IFS
9983
9984 fi
9985 fi
9986 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9987 if test -n "$CC_FOR_TARGET"; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9989 $as_echo "$CC_FOR_TARGET" >&6; }
9990 else
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992 $as_echo "no" >&6; }
9993 fi
9994
9995
9996 fi
9997 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9998 done
9999 fi
10000
10001 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10002 set dummy cc gcc
10003 if test $build = $target ; then
10004 CC_FOR_TARGET="$2"
10005 else
10006 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10007 fi
10008 else
10009 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10010 fi
10011
10012
10013
10014 if test -n "$CXX_FOR_TARGET"; then
10015 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10016 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10017 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10018 fi
10019
10020 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10021 for ncn_progname in c++ g++ cxx gxx; do
10022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10023 set dummy ${ncn_progname}; ac_word=$2
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025 $as_echo_n "checking for $ac_word... " >&6; }
10026 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10027 $as_echo_n "(cached) " >&6
10028 else
10029 if test -n "$CXX_FOR_TARGET"; then
10030 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10031 else
10032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033 for as_dir in $PATH
10034 do
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10039 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10041 break 2
10042 fi
10043 done
10044 done
10045 IFS=$as_save_IFS
10046
10047 fi
10048 fi
10049 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10050 if test -n "$CXX_FOR_TARGET"; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10052 $as_echo "$CXX_FOR_TARGET" >&6; }
10053 else
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10056 fi
10057
10058
10059 done
10060 fi
10061
10062 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10063 for ncn_progname in c++ g++ cxx gxx; do
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10065 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10066 if test -x $with_build_time_tools/${ncn_progname}; then
10067 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10069 $as_echo "yes" >&6; }
10070 break
10071 else
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073 $as_echo "no" >&6; }
10074 fi
10075 done
10076 fi
10077
10078 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10079 for ncn_progname in c++ g++ cxx gxx; do
10080 if test -n "$ncn_target_tool_prefix"; then
10081 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10082 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10084 $as_echo_n "checking for $ac_word... " >&6; }
10085 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 if test -n "$CXX_FOR_TARGET"; then
10089 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10090 else
10091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092 for as_dir in $PATH
10093 do
10094 IFS=$as_save_IFS
10095 test -z "$as_dir" && as_dir=.
10096 for ac_exec_ext in '' $ac_executable_extensions; do
10097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10098 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10100 break 2
10101 fi
10102 done
10103 done
10104 IFS=$as_save_IFS
10105
10106 fi
10107 fi
10108 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10109 if test -n "$CXX_FOR_TARGET"; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10111 $as_echo "$CXX_FOR_TARGET" >&6; }
10112 else
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; }
10115 fi
10116
10117
10118 fi
10119 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10121 set dummy ${ncn_progname}; ac_word=$2
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10127 if test -n "$CXX_FOR_TARGET"; then
10128 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10129 else
10130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131 for as_dir in $PATH
10132 do
10133 IFS=$as_save_IFS
10134 test -z "$as_dir" && as_dir=.
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10137 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10139 break 2
10140 fi
10141 done
10142 done
10143 IFS=$as_save_IFS
10144
10145 fi
10146 fi
10147 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10148 if test -n "$CXX_FOR_TARGET"; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10150 $as_echo "$CXX_FOR_TARGET" >&6; }
10151 else
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153 $as_echo "no" >&6; }
10154 fi
10155
10156
10157 fi
10158 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10159 done
10160 fi
10161
10162 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10163 set dummy c++ g++ cxx gxx
10164 if test $build = $target ; then
10165 CXX_FOR_TARGET="$2"
10166 else
10167 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10168 fi
10169 else
10170 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10171 fi
10172
10173
10174
10175 if test -n "$GCC_FOR_TARGET"; then
10176 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10177 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10178 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10179 fi
10180
10181 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10182 for ncn_progname in gcc; do
10183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10184 set dummy ${ncn_progname}; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186 $as_echo_n "checking for $ac_word... " >&6; }
10187 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 if test -n "$GCC_FOR_TARGET"; then
10191 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10192 else
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10195 do
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10200 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 break 2
10203 fi
10204 done
10205 done
10206 IFS=$as_save_IFS
10207
10208 fi
10209 fi
10210 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10211 if test -n "$GCC_FOR_TARGET"; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10213 $as_echo "$GCC_FOR_TARGET" >&6; }
10214 else
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10217 fi
10218
10219
10220 done
10221 fi
10222
10223 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10224 for ncn_progname in gcc; do
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10226 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10227 if test -x $with_build_time_tools/${ncn_progname}; then
10228 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10230 $as_echo "yes" >&6; }
10231 break
10232 else
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 $as_echo "no" >&6; }
10235 fi
10236 done
10237 fi
10238
10239 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10240 for ncn_progname in gcc; do
10241 if test -n "$ncn_target_tool_prefix"; then
10242 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10243 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245 $as_echo_n "checking for $ac_word... " >&6; }
10246 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10247 $as_echo_n "(cached) " >&6
10248 else
10249 if test -n "$GCC_FOR_TARGET"; then
10250 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10251 else
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $PATH
10254 do
10255 IFS=$as_save_IFS
10256 test -z "$as_dir" && as_dir=.
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10259 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10261 break 2
10262 fi
10263 done
10264 done
10265 IFS=$as_save_IFS
10266
10267 fi
10268 fi
10269 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10270 if test -n "$GCC_FOR_TARGET"; then
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10272 $as_echo "$GCC_FOR_TARGET" >&6; }
10273 else
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 $as_echo "no" >&6; }
10276 fi
10277
10278
10279 fi
10280 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10282 set dummy ${ncn_progname}; ac_word=$2
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284 $as_echo_n "checking for $ac_word... " >&6; }
10285 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10288 if test -n "$GCC_FOR_TARGET"; then
10289 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10290 else
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10293 do
10294 IFS=$as_save_IFS
10295 test -z "$as_dir" && as_dir=.
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10298 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10300 break 2
10301 fi
10302 done
10303 done
10304 IFS=$as_save_IFS
10305
10306 fi
10307 fi
10308 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10309 if test -n "$GCC_FOR_TARGET"; then
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10311 $as_echo "$GCC_FOR_TARGET" >&6; }
10312 else
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314 $as_echo "no" >&6; }
10315 fi
10316
10317
10318 fi
10319 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10320 done
10321 fi
10322
10323 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10324 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10325 else
10326 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10327 fi
10328
10329
10330
10331 if test -n "$GCJ_FOR_TARGET"; then
10332 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10333 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10334 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10335 fi
10336
10337 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10338 for ncn_progname in gcj; do
10339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10340 set dummy ${ncn_progname}; ac_word=$2
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342 $as_echo_n "checking for $ac_word... " >&6; }
10343 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
10345 else
10346 if test -n "$GCJ_FOR_TARGET"; then
10347 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10348 else
10349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350 for as_dir in $PATH
10351 do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10356 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10358 break 2
10359 fi
10360 done
10361 done
10362 IFS=$as_save_IFS
10363
10364 fi
10365 fi
10366 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10367 if test -n "$GCJ_FOR_TARGET"; then
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10369 $as_echo "$GCJ_FOR_TARGET" >&6; }
10370 else
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; }
10373 fi
10374
10375
10376 done
10377 fi
10378
10379 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10380 for ncn_progname in gcj; do
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10382 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10383 if test -x $with_build_time_tools/${ncn_progname}; then
10384 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10386 $as_echo "yes" >&6; }
10387 break
10388 else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10391 fi
10392 done
10393 fi
10394
10395 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10396 for ncn_progname in gcj; do
10397 if test -n "$ncn_target_tool_prefix"; then
10398 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10399 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401 $as_echo_n "checking for $ac_word... " >&6; }
10402 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 if test -n "$GCJ_FOR_TARGET"; then
10406 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10407 else
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409 for as_dir in $PATH
10410 do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10415 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 break 2
10418 fi
10419 done
10420 done
10421 IFS=$as_save_IFS
10422
10423 fi
10424 fi
10425 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10426 if test -n "$GCJ_FOR_TARGET"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10428 $as_echo "$GCJ_FOR_TARGET" >&6; }
10429 else
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; }
10432 fi
10433
10434
10435 fi
10436 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10438 set dummy ${ncn_progname}; ac_word=$2
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440 $as_echo_n "checking for $ac_word... " >&6; }
10441 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 if test -n "$GCJ_FOR_TARGET"; then
10445 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10446 else
10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in $PATH
10449 do
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10454 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10457 fi
10458 done
10459 done
10460 IFS=$as_save_IFS
10461
10462 fi
10463 fi
10464 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10465 if test -n "$GCJ_FOR_TARGET"; then
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10467 $as_echo "$GCJ_FOR_TARGET" >&6; }
10468 else
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470 $as_echo "no" >&6; }
10471 fi
10472
10473
10474 fi
10475 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10476 done
10477 fi
10478
10479 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10480 set dummy gcj
10481 if test $build = $target ; then
10482 GCJ_FOR_TARGET="$2"
10483 else
10484 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10485 fi
10486 else
10487 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10488 fi
10489
10490
10491
10492 if test -n "$GFORTRAN_FOR_TARGET"; then
10493 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10494 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10495 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10496 fi
10497
10498 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10499 for ncn_progname in gfortran; do
10500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10501 set dummy ${ncn_progname}; ac_word=$2
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10503 $as_echo_n "checking for $ac_word... " >&6; }
10504 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10505 $as_echo_n "(cached) " >&6
10506 else
10507 if test -n "$GFORTRAN_FOR_TARGET"; then
10508 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10509 else
10510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH
10512 do
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519 break 2
10520 fi
10521 done
10522 done
10523 IFS=$as_save_IFS
10524
10525 fi
10526 fi
10527 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10528 if test -n "$GFORTRAN_FOR_TARGET"; then
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10530 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10531 else
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533 $as_echo "no" >&6; }
10534 fi
10535
10536
10537 done
10538 fi
10539
10540 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10541 for ncn_progname in gfortran; do
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10543 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10544 if test -x $with_build_time_tools/${ncn_progname}; then
10545 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10547 $as_echo "yes" >&6; }
10548 break
10549 else
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10552 fi
10553 done
10554 fi
10555
10556 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10557 for ncn_progname in gfortran; do
10558 if test -n "$ncn_target_tool_prefix"; then
10559 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10560 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 if test -n "$GFORTRAN_FOR_TARGET"; then
10567 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10568 else
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10571 do
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10576 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 break 2
10579 fi
10580 done
10581 done
10582 IFS=$as_save_IFS
10583
10584 fi
10585 fi
10586 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10587 if test -n "$GFORTRAN_FOR_TARGET"; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10589 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10590 else
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10593 fi
10594
10595
10596 fi
10597 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10599 set dummy ${ncn_progname}; ac_word=$2
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10601 $as_echo_n "checking for $ac_word... " >&6; }
10602 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 if test -n "$GFORTRAN_FOR_TARGET"; then
10606 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10607 else
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10610 do
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
10613 for ac_exec_ext in '' $ac_executable_extensions; do
10614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10615 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10617 break 2
10618 fi
10619 done
10620 done
10621 IFS=$as_save_IFS
10622
10623 fi
10624 fi
10625 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10626 if test -n "$GFORTRAN_FOR_TARGET"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10628 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10629 else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10632 fi
10633
10634
10635 fi
10636 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10637 done
10638 fi
10639
10640 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10641 set dummy gfortran
10642 if test $build = $target ; then
10643 GFORTRAN_FOR_TARGET="$2"
10644 else
10645 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10646 fi
10647 else
10648 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10649 fi
10650
10651
10652
10653 if test -n "$GOC_FOR_TARGET"; then
10654 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10655 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10656 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10657 fi
10658
10659 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10660 for ncn_progname in gccgo; do
10661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10662 set dummy ${ncn_progname}; ac_word=$2
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664 $as_echo_n "checking for $ac_word... " >&6; }
10665 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10666 $as_echo_n "(cached) " >&6
10667 else
10668 if test -n "$GOC_FOR_TARGET"; then
10669 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10670 else
10671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672 for as_dir in $PATH
10673 do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10678 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 break 2
10681 fi
10682 done
10683 done
10684 IFS=$as_save_IFS
10685
10686 fi
10687 fi
10688 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10689 if test -n "$GOC_FOR_TARGET"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10691 $as_echo "$GOC_FOR_TARGET" >&6; }
10692 else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10695 fi
10696
10697
10698 done
10699 fi
10700
10701 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10702 for ncn_progname in gccgo; do
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10704 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10705 if test -x $with_build_time_tools/${ncn_progname}; then
10706 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10708 $as_echo "yes" >&6; }
10709 break
10710 else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712 $as_echo "no" >&6; }
10713 fi
10714 done
10715 fi
10716
10717 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10718 for ncn_progname in gccgo; do
10719 if test -n "$ncn_target_tool_prefix"; then
10720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10721 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723 $as_echo_n "checking for $ac_word... " >&6; }
10724 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 if test -n "$GOC_FOR_TARGET"; then
10728 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10729 else
10730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10731 for as_dir in $PATH
10732 do
10733 IFS=$as_save_IFS
10734 test -z "$as_dir" && as_dir=.
10735 for ac_exec_ext in '' $ac_executable_extensions; do
10736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10737 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10739 break 2
10740 fi
10741 done
10742 done
10743 IFS=$as_save_IFS
10744
10745 fi
10746 fi
10747 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10748 if test -n "$GOC_FOR_TARGET"; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10750 $as_echo "$GOC_FOR_TARGET" >&6; }
10751 else
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753 $as_echo "no" >&6; }
10754 fi
10755
10756
10757 fi
10758 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10760 set dummy ${ncn_progname}; ac_word=$2
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10762 $as_echo_n "checking for $ac_word... " >&6; }
10763 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10764 $as_echo_n "(cached) " >&6
10765 else
10766 if test -n "$GOC_FOR_TARGET"; then
10767 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10768 else
10769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10770 for as_dir in $PATH
10771 do
10772 IFS=$as_save_IFS
10773 test -z "$as_dir" && as_dir=.
10774 for ac_exec_ext in '' $ac_executable_extensions; do
10775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10776 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10778 break 2
10779 fi
10780 done
10781 done
10782 IFS=$as_save_IFS
10783
10784 fi
10785 fi
10786 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10787 if test -n "$GOC_FOR_TARGET"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10789 $as_echo "$GOC_FOR_TARGET" >&6; }
10790 else
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792 $as_echo "no" >&6; }
10793 fi
10794
10795
10796 fi
10797 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10798 done
10799 fi
10800
10801 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10802 set dummy gccgo
10803 if test $build = $target ; then
10804 GOC_FOR_TARGET="$2"
10805 else
10806 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10807 fi
10808 else
10809 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10810 fi
10811
10812
10813
10814 cat > conftest.c << \EOF
10815 #ifdef __GNUC__
10816 gcc_yay;
10817 #endif
10818 EOF
10819 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10820 have_gcc_for_target=yes
10821 else
10822 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10823 have_gcc_for_target=no
10824 fi
10825 rm conftest.c
10826
10827
10828
10829
10830 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10831 if test -n "$with_build_time_tools"; then
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10833 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10834 if test -x $with_build_time_tools/ar; then
10835 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10836 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10838 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10839 else
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10842 fi
10843 elif test $build != $host && test $have_gcc_for_target = yes; then
10844 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10845 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10846 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10847 fi
10848 fi
10849 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10850 # Extract the first word of "ar", so it can be a program name with args.
10851 set dummy ar; ac_word=$2
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10853 $as_echo_n "checking for $ac_word... " >&6; }
10854 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10855 $as_echo_n "(cached) " >&6
10856 else
10857 case $AR_FOR_TARGET in
10858 [\\/]* | ?:[\\/]*)
10859 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10860 ;;
10861 *)
10862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863 for as_dir in $gcc_cv_tool_dirs
10864 do
10865 IFS=$as_save_IFS
10866 test -z "$as_dir" && as_dir=.
10867 for ac_exec_ext in '' $ac_executable_extensions; do
10868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10869 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10871 break 2
10872 fi
10873 done
10874 done
10875 IFS=$as_save_IFS
10876
10877 ;;
10878 esac
10879 fi
10880 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10881 if test -n "$AR_FOR_TARGET"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10883 $as_echo "$AR_FOR_TARGET" >&6; }
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886 $as_echo "no" >&6; }
10887 fi
10888
10889
10890 fi
10891 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10892
10893
10894 if test -n "$AR_FOR_TARGET"; then
10895 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10896 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10897 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10898 fi
10899
10900 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10901 for ncn_progname in ar; do
10902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10903 set dummy ${ncn_progname}; ac_word=$2
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10905 $as_echo_n "checking for $ac_word... " >&6; }
10906 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10907 $as_echo_n "(cached) " >&6
10908 else
10909 if test -n "$AR_FOR_TARGET"; then
10910 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10911 else
10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913 for as_dir in $PATH
10914 do
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10919 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 break 2
10922 fi
10923 done
10924 done
10925 IFS=$as_save_IFS
10926
10927 fi
10928 fi
10929 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10930 if test -n "$AR_FOR_TARGET"; then
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10932 $as_echo "$AR_FOR_TARGET" >&6; }
10933 else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; }
10936 fi
10937
10938
10939 done
10940 fi
10941
10942 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10943 for ncn_progname in ar; do
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10945 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10946 if test -x $with_build_time_tools/${ncn_progname}; then
10947 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10949 $as_echo "yes" >&6; }
10950 break
10951 else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10954 fi
10955 done
10956 fi
10957
10958 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10959 for ncn_progname in ar; do
10960 if test -n "$ncn_target_tool_prefix"; then
10961 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10962 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10964 $as_echo_n "checking for $ac_word... " >&6; }
10965 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 if test -n "$AR_FOR_TARGET"; then
10969 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10970 else
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10973 do
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10978 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 break 2
10981 fi
10982 done
10983 done
10984 IFS=$as_save_IFS
10985
10986 fi
10987 fi
10988 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10989 if test -n "$AR_FOR_TARGET"; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10991 $as_echo "$AR_FOR_TARGET" >&6; }
10992 else
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 $as_echo "no" >&6; }
10995 fi
10996
10997
10998 fi
10999 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11001 set dummy ${ncn_progname}; ac_word=$2
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003 $as_echo_n "checking for $ac_word... " >&6; }
11004 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11007 if test -n "$AR_FOR_TARGET"; then
11008 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11009 else
11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011 for as_dir in $PATH
11012 do
11013 IFS=$as_save_IFS
11014 test -z "$as_dir" && as_dir=.
11015 for ac_exec_ext in '' $ac_executable_extensions; do
11016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11017 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11019 break 2
11020 fi
11021 done
11022 done
11023 IFS=$as_save_IFS
11024
11025 fi
11026 fi
11027 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11028 if test -n "$AR_FOR_TARGET"; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11030 $as_echo "$AR_FOR_TARGET" >&6; }
11031 else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11034 fi
11035
11036
11037 fi
11038 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11039 done
11040 fi
11041
11042 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11043 set dummy ar
11044 if test $build = $target ; then
11045 AR_FOR_TARGET="$2"
11046 else
11047 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11048 fi
11049 else
11050 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11051 fi
11052
11053 else
11054 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11055 fi
11056
11057
11058
11059
11060 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11061 if test -n "$with_build_time_tools"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11063 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11064 if test -x $with_build_time_tools/as; then
11065 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11066 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11068 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11069 else
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071 $as_echo "no" >&6; }
11072 fi
11073 elif test $build != $host && test $have_gcc_for_target = yes; then
11074 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11075 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11076 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11077 fi
11078 fi
11079 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11080 # Extract the first word of "as", so it can be a program name with args.
11081 set dummy as; ac_word=$2
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11083 $as_echo_n "checking for $ac_word... " >&6; }
11084 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11085 $as_echo_n "(cached) " >&6
11086 else
11087 case $AS_FOR_TARGET in
11088 [\\/]* | ?:[\\/]*)
11089 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11090 ;;
11091 *)
11092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093 for as_dir in $gcc_cv_tool_dirs
11094 do
11095 IFS=$as_save_IFS
11096 test -z "$as_dir" && as_dir=.
11097 for ac_exec_ext in '' $ac_executable_extensions; do
11098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11099 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11101 break 2
11102 fi
11103 done
11104 done
11105 IFS=$as_save_IFS
11106
11107 ;;
11108 esac
11109 fi
11110 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11111 if test -n "$AS_FOR_TARGET"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11113 $as_echo "$AS_FOR_TARGET" >&6; }
11114 else
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11117 fi
11118
11119
11120 fi
11121 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11122
11123
11124 if test -n "$AS_FOR_TARGET"; then
11125 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11126 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11127 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11128 fi
11129
11130 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11131 for ncn_progname in as; do
11132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11133 set dummy ${ncn_progname}; ac_word=$2
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11135 $as_echo_n "checking for $ac_word... " >&6; }
11136 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11137 $as_echo_n "(cached) " >&6
11138 else
11139 if test -n "$AS_FOR_TARGET"; then
11140 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11141 else
11142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143 for as_dir in $PATH
11144 do
11145 IFS=$as_save_IFS
11146 test -z "$as_dir" && as_dir=.
11147 for ac_exec_ext in '' $ac_executable_extensions; do
11148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11149 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11151 break 2
11152 fi
11153 done
11154 done
11155 IFS=$as_save_IFS
11156
11157 fi
11158 fi
11159 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11160 if test -n "$AS_FOR_TARGET"; then
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11162 $as_echo "$AS_FOR_TARGET" >&6; }
11163 else
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 $as_echo "no" >&6; }
11166 fi
11167
11168
11169 done
11170 fi
11171
11172 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11173 for ncn_progname in as; do
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11175 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11176 if test -x $with_build_time_tools/${ncn_progname}; then
11177 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11179 $as_echo "yes" >&6; }
11180 break
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11184 fi
11185 done
11186 fi
11187
11188 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11189 for ncn_progname in as; do
11190 if test -n "$ncn_target_tool_prefix"; then
11191 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11192 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11194 $as_echo_n "checking for $ac_word... " >&6; }
11195 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11196 $as_echo_n "(cached) " >&6
11197 else
11198 if test -n "$AS_FOR_TARGET"; then
11199 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11200 else
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11203 do
11204 IFS=$as_save_IFS
11205 test -z "$as_dir" && as_dir=.
11206 for ac_exec_ext in '' $ac_executable_extensions; do
11207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 break 2
11211 fi
11212 done
11213 done
11214 IFS=$as_save_IFS
11215
11216 fi
11217 fi
11218 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11219 if test -n "$AS_FOR_TARGET"; then
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11221 $as_echo "$AS_FOR_TARGET" >&6; }
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11225 fi
11226
11227
11228 fi
11229 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11231 set dummy ${ncn_progname}; ac_word=$2
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11233 $as_echo_n "checking for $ac_word... " >&6; }
11234 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237 if test -n "$AS_FOR_TARGET"; then
11238 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11239 else
11240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11241 for as_dir in $PATH
11242 do
11243 IFS=$as_save_IFS
11244 test -z "$as_dir" && as_dir=.
11245 for ac_exec_ext in '' $ac_executable_extensions; do
11246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11247 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11249 break 2
11250 fi
11251 done
11252 done
11253 IFS=$as_save_IFS
11254
11255 fi
11256 fi
11257 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11258 if test -n "$AS_FOR_TARGET"; then
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11260 $as_echo "$AS_FOR_TARGET" >&6; }
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11263 $as_echo "no" >&6; }
11264 fi
11265
11266
11267 fi
11268 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11269 done
11270 fi
11271
11272 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11273 set dummy as
11274 if test $build = $target ; then
11275 AS_FOR_TARGET="$2"
11276 else
11277 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11278 fi
11279 else
11280 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11281 fi
11282
11283 else
11284 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11285 fi
11286
11287
11288
11289
11290 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11291 if test -n "$with_build_time_tools"; then
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11293 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11294 if test -x $with_build_time_tools/dlltool; then
11295 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11296 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11298 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11299 else
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301 $as_echo "no" >&6; }
11302 fi
11303 elif test $build != $host && test $have_gcc_for_target = yes; then
11304 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11305 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11306 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11307 fi
11308 fi
11309 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11310 # Extract the first word of "dlltool", so it can be a program name with args.
11311 set dummy dlltool; ac_word=$2
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313 $as_echo_n "checking for $ac_word... " >&6; }
11314 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 case $DLLTOOL_FOR_TARGET in
11318 [\\/]* | ?:[\\/]*)
11319 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11320 ;;
11321 *)
11322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323 for as_dir in $gcc_cv_tool_dirs
11324 do
11325 IFS=$as_save_IFS
11326 test -z "$as_dir" && as_dir=.
11327 for ac_exec_ext in '' $ac_executable_extensions; do
11328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11329 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11331 break 2
11332 fi
11333 done
11334 done
11335 IFS=$as_save_IFS
11336
11337 ;;
11338 esac
11339 fi
11340 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11341 if test -n "$DLLTOOL_FOR_TARGET"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11343 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11347 fi
11348
11349
11350 fi
11351 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11352
11353
11354 if test -n "$DLLTOOL_FOR_TARGET"; then
11355 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11356 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11357 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11358 fi
11359
11360 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11361 for ncn_progname in dlltool; do
11362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11363 set dummy ${ncn_progname}; ac_word=$2
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11365 $as_echo_n "checking for $ac_word... " >&6; }
11366 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 if test -n "$DLLTOOL_FOR_TARGET"; then
11370 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11371 else
11372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373 for as_dir in $PATH
11374 do
11375 IFS=$as_save_IFS
11376 test -z "$as_dir" && as_dir=.
11377 for ac_exec_ext in '' $ac_executable_extensions; do
11378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11379 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11381 break 2
11382 fi
11383 done
11384 done
11385 IFS=$as_save_IFS
11386
11387 fi
11388 fi
11389 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11390 if test -n "$DLLTOOL_FOR_TARGET"; then
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11392 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11393 else
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11395 $as_echo "no" >&6; }
11396 fi
11397
11398
11399 done
11400 fi
11401
11402 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11403 for ncn_progname in dlltool; do
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11405 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11406 if test -x $with_build_time_tools/${ncn_progname}; then
11407 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11409 $as_echo "yes" >&6; }
11410 break
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11414 fi
11415 done
11416 fi
11417
11418 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11419 for ncn_progname in dlltool; do
11420 if test -n "$ncn_target_tool_prefix"; then
11421 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11422 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424 $as_echo_n "checking for $ac_word... " >&6; }
11425 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11428 if test -n "$DLLTOOL_FOR_TARGET"; then
11429 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11430 else
11431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432 for as_dir in $PATH
11433 do
11434 IFS=$as_save_IFS
11435 test -z "$as_dir" && as_dir=.
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11438 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11440 break 2
11441 fi
11442 done
11443 done
11444 IFS=$as_save_IFS
11445
11446 fi
11447 fi
11448 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11449 if test -n "$DLLTOOL_FOR_TARGET"; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11451 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11452 else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454 $as_echo "no" >&6; }
11455 fi
11456
11457
11458 fi
11459 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11461 set dummy ${ncn_progname}; ac_word=$2
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11463 $as_echo_n "checking for $ac_word... " >&6; }
11464 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11465 $as_echo_n "(cached) " >&6
11466 else
11467 if test -n "$DLLTOOL_FOR_TARGET"; then
11468 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11469 else
11470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471 for as_dir in $PATH
11472 do
11473 IFS=$as_save_IFS
11474 test -z "$as_dir" && as_dir=.
11475 for ac_exec_ext in '' $ac_executable_extensions; do
11476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11477 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11479 break 2
11480 fi
11481 done
11482 done
11483 IFS=$as_save_IFS
11484
11485 fi
11486 fi
11487 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11488 if test -n "$DLLTOOL_FOR_TARGET"; then
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11490 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11491 else
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11493 $as_echo "no" >&6; }
11494 fi
11495
11496
11497 fi
11498 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11499 done
11500 fi
11501
11502 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11503 set dummy dlltool
11504 if test $build = $target ; then
11505 DLLTOOL_FOR_TARGET="$2"
11506 else
11507 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11508 fi
11509 else
11510 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11511 fi
11512
11513 else
11514 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11515 fi
11516
11517
11518
11519
11520 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11521 if test -n "$with_build_time_tools"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11523 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11524 if test -x $with_build_time_tools/ld; then
11525 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11526 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11528 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11529 else
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531 $as_echo "no" >&6; }
11532 fi
11533 elif test $build != $host && test $have_gcc_for_target = yes; then
11534 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11535 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11536 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11537 fi
11538 fi
11539 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11540 # Extract the first word of "ld", so it can be a program name with args.
11541 set dummy ld; ac_word=$2
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11543 $as_echo_n "checking for $ac_word... " >&6; }
11544 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 case $LD_FOR_TARGET in
11548 [\\/]* | ?:[\\/]*)
11549 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11550 ;;
11551 *)
11552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553 for as_dir in $gcc_cv_tool_dirs
11554 do
11555 IFS=$as_save_IFS
11556 test -z "$as_dir" && as_dir=.
11557 for ac_exec_ext in '' $ac_executable_extensions; do
11558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11559 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11561 break 2
11562 fi
11563 done
11564 done
11565 IFS=$as_save_IFS
11566
11567 ;;
11568 esac
11569 fi
11570 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11571 if test -n "$LD_FOR_TARGET"; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11573 $as_echo "$LD_FOR_TARGET" >&6; }
11574 else
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576 $as_echo "no" >&6; }
11577 fi
11578
11579
11580 fi
11581 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11582
11583
11584 if test -n "$LD_FOR_TARGET"; then
11585 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11586 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11587 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11588 fi
11589
11590 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11591 for ncn_progname in ld; do
11592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11593 set dummy ${ncn_progname}; ac_word=$2
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595 $as_echo_n "checking for $ac_word... " >&6; }
11596 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599 if test -n "$LD_FOR_TARGET"; then
11600 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11601 else
11602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603 for as_dir in $PATH
11604 do
11605 IFS=$as_save_IFS
11606 test -z "$as_dir" && as_dir=.
11607 for ac_exec_ext in '' $ac_executable_extensions; do
11608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11609 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11611 break 2
11612 fi
11613 done
11614 done
11615 IFS=$as_save_IFS
11616
11617 fi
11618 fi
11619 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11620 if test -n "$LD_FOR_TARGET"; then
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11622 $as_echo "$LD_FOR_TARGET" >&6; }
11623 else
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11625 $as_echo "no" >&6; }
11626 fi
11627
11628
11629 done
11630 fi
11631
11632 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11633 for ncn_progname in ld; do
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11635 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11636 if test -x $with_build_time_tools/${ncn_progname}; then
11637 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11639 $as_echo "yes" >&6; }
11640 break
11641 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11644 fi
11645 done
11646 fi
11647
11648 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11649 for ncn_progname in ld; do
11650 if test -n "$ncn_target_tool_prefix"; then
11651 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11652 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654 $as_echo_n "checking for $ac_word... " >&6; }
11655 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 if test -n "$LD_FOR_TARGET"; then
11659 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11660 else
11661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662 for as_dir in $PATH
11663 do
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
11666 for ac_exec_ext in '' $ac_executable_extensions; do
11667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11668 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 break 2
11671 fi
11672 done
11673 done
11674 IFS=$as_save_IFS
11675
11676 fi
11677 fi
11678 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11679 if test -n "$LD_FOR_TARGET"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11681 $as_echo "$LD_FOR_TARGET" >&6; }
11682 else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11685 fi
11686
11687
11688 fi
11689 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11691 set dummy ${ncn_progname}; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 if test -n "$LD_FOR_TARGET"; then
11698 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11699 else
11700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701 for as_dir in $PATH
11702 do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
11705 for ac_exec_ext in '' $ac_executable_extensions; do
11706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11707 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11709 break 2
11710 fi
11711 done
11712 done
11713 IFS=$as_save_IFS
11714
11715 fi
11716 fi
11717 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11718 if test -n "$LD_FOR_TARGET"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11720 $as_echo "$LD_FOR_TARGET" >&6; }
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11724 fi
11725
11726
11727 fi
11728 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11729 done
11730 fi
11731
11732 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11733 set dummy ld
11734 if test $build = $target ; then
11735 LD_FOR_TARGET="$2"
11736 else
11737 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11738 fi
11739 else
11740 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11741 fi
11742
11743 else
11744 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11745 fi
11746
11747
11748
11749
11750 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11751 if test -n "$with_build_time_tools"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11753 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11754 if test -x $with_build_time_tools/lipo; then
11755 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11756 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11758 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11759 else
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761 $as_echo "no" >&6; }
11762 fi
11763 elif test $build != $host && test $have_gcc_for_target = yes; then
11764 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11765 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11766 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11767 fi
11768 fi
11769 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11770 # Extract the first word of "lipo", so it can be a program name with args.
11771 set dummy lipo; ac_word=$2
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773 $as_echo_n "checking for $ac_word... " >&6; }
11774 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 case $LIPO_FOR_TARGET in
11778 [\\/]* | ?:[\\/]*)
11779 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11780 ;;
11781 *)
11782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783 for as_dir in $gcc_cv_tool_dirs
11784 do
11785 IFS=$as_save_IFS
11786 test -z "$as_dir" && as_dir=.
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11789 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11791 break 2
11792 fi
11793 done
11794 done
11795 IFS=$as_save_IFS
11796
11797 ;;
11798 esac
11799 fi
11800 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11801 if test -n "$LIPO_FOR_TARGET"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11803 $as_echo "$LIPO_FOR_TARGET" >&6; }
11804 else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11807 fi
11808
11809
11810 fi
11811 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11812
11813
11814 if test -n "$LIPO_FOR_TARGET"; then
11815 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11816 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11817 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11818 fi
11819
11820 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11821 for ncn_progname in lipo; do
11822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11823 set dummy ${ncn_progname}; ac_word=$2
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825 $as_echo_n "checking for $ac_word... " >&6; }
11826 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11827 $as_echo_n "(cached) " >&6
11828 else
11829 if test -n "$LIPO_FOR_TARGET"; then
11830 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11831 else
11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833 for as_dir in $PATH
11834 do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11839 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11842 fi
11843 done
11844 done
11845 IFS=$as_save_IFS
11846
11847 fi
11848 fi
11849 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11850 if test -n "$LIPO_FOR_TARGET"; then
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11852 $as_echo "$LIPO_FOR_TARGET" >&6; }
11853 else
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 $as_echo "no" >&6; }
11856 fi
11857
11858
11859 done
11860 fi
11861
11862 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11863 for ncn_progname in lipo; do
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11865 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11866 if test -x $with_build_time_tools/${ncn_progname}; then
11867 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11869 $as_echo "yes" >&6; }
11870 break
11871 else
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11874 fi
11875 done
11876 fi
11877
11878 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11879 for ncn_progname in lipo; do
11880 if test -n "$ncn_target_tool_prefix"; then
11881 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11882 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884 $as_echo_n "checking for $ac_word... " >&6; }
11885 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 if test -n "$LIPO_FOR_TARGET"; then
11889 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11890 else
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $PATH
11893 do
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11898 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11901 fi
11902 done
11903 done
11904 IFS=$as_save_IFS
11905
11906 fi
11907 fi
11908 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11909 if test -n "$LIPO_FOR_TARGET"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11911 $as_echo "$LIPO_FOR_TARGET" >&6; }
11912 else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11915 fi
11916
11917
11918 fi
11919 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11921 set dummy ${ncn_progname}; ac_word=$2
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11923 $as_echo_n "checking for $ac_word... " >&6; }
11924 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 if test -n "$LIPO_FOR_TARGET"; then
11928 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11929 else
11930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11931 for as_dir in $PATH
11932 do
11933 IFS=$as_save_IFS
11934 test -z "$as_dir" && as_dir=.
11935 for ac_exec_ext in '' $ac_executable_extensions; do
11936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11937 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11939 break 2
11940 fi
11941 done
11942 done
11943 IFS=$as_save_IFS
11944
11945 fi
11946 fi
11947 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11948 if test -n "$LIPO_FOR_TARGET"; then
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11950 $as_echo "$LIPO_FOR_TARGET" >&6; }
11951 else
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11953 $as_echo "no" >&6; }
11954 fi
11955
11956
11957 fi
11958 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11959 done
11960 fi
11961
11962 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11963 set dummy lipo
11964 if test $build = $target ; then
11965 LIPO_FOR_TARGET="$2"
11966 else
11967 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11968 fi
11969 else
11970 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11971 fi
11972
11973 else
11974 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11975 fi
11976
11977
11978
11979
11980 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11981 if test -n "$with_build_time_tools"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11983 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11984 if test -x $with_build_time_tools/nm; then
11985 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11986 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11988 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11989 else
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11992 fi
11993 elif test $build != $host && test $have_gcc_for_target = yes; then
11994 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11995 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11996 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11997 fi
11998 fi
11999 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12000 # Extract the first word of "nm", so it can be a program name with args.
12001 set dummy nm; ac_word=$2
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003 $as_echo_n "checking for $ac_word... " >&6; }
12004 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007 case $NM_FOR_TARGET in
12008 [\\/]* | ?:[\\/]*)
12009 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12010 ;;
12011 *)
12012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12013 for as_dir in $gcc_cv_tool_dirs
12014 do
12015 IFS=$as_save_IFS
12016 test -z "$as_dir" && as_dir=.
12017 for ac_exec_ext in '' $ac_executable_extensions; do
12018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12019 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12021 break 2
12022 fi
12023 done
12024 done
12025 IFS=$as_save_IFS
12026
12027 ;;
12028 esac
12029 fi
12030 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12031 if test -n "$NM_FOR_TARGET"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12033 $as_echo "$NM_FOR_TARGET" >&6; }
12034 else
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12037 fi
12038
12039
12040 fi
12041 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12042
12043
12044 if test -n "$NM_FOR_TARGET"; then
12045 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12046 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12047 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12048 fi
12049
12050 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12051 for ncn_progname in nm; do
12052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12053 set dummy ${ncn_progname}; ac_word=$2
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055 $as_echo_n "checking for $ac_word... " >&6; }
12056 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 if test -n "$NM_FOR_TARGET"; then
12060 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12061 else
12062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063 for as_dir in $PATH
12064 do
12065 IFS=$as_save_IFS
12066 test -z "$as_dir" && as_dir=.
12067 for ac_exec_ext in '' $ac_executable_extensions; do
12068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12069 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12071 break 2
12072 fi
12073 done
12074 done
12075 IFS=$as_save_IFS
12076
12077 fi
12078 fi
12079 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12080 if test -n "$NM_FOR_TARGET"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12082 $as_echo "$NM_FOR_TARGET" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12086 fi
12087
12088
12089 done
12090 fi
12091
12092 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12093 for ncn_progname in nm; do
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12095 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12096 if test -x $with_build_time_tools/${ncn_progname}; then
12097 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099 $as_echo "yes" >&6; }
12100 break
12101 else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12104 fi
12105 done
12106 fi
12107
12108 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12109 for ncn_progname in nm; do
12110 if test -n "$ncn_target_tool_prefix"; then
12111 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12112 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12114 $as_echo_n "checking for $ac_word... " >&6; }
12115 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 if test -n "$NM_FOR_TARGET"; then
12119 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12120 else
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12123 do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12128 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 break 2
12131 fi
12132 done
12133 done
12134 IFS=$as_save_IFS
12135
12136 fi
12137 fi
12138 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12139 if test -n "$NM_FOR_TARGET"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12141 $as_echo "$NM_FOR_TARGET" >&6; }
12142 else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12145 fi
12146
12147
12148 fi
12149 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12151 set dummy ${ncn_progname}; ac_word=$2
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12153 $as_echo_n "checking for $ac_word... " >&6; }
12154 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 if test -n "$NM_FOR_TARGET"; then
12158 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12159 else
12160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $PATH
12162 do
12163 IFS=$as_save_IFS
12164 test -z "$as_dir" && as_dir=.
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12167 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12169 break 2
12170 fi
12171 done
12172 done
12173 IFS=$as_save_IFS
12174
12175 fi
12176 fi
12177 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12178 if test -n "$NM_FOR_TARGET"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12180 $as_echo "$NM_FOR_TARGET" >&6; }
12181 else
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183 $as_echo "no" >&6; }
12184 fi
12185
12186
12187 fi
12188 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12189 done
12190 fi
12191
12192 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12193 set dummy nm
12194 if test $build = $target ; then
12195 NM_FOR_TARGET="$2"
12196 else
12197 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12198 fi
12199 else
12200 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12201 fi
12202
12203 else
12204 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12205 fi
12206
12207
12208
12209
12210 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12211 if test -n "$with_build_time_tools"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12213 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12214 if test -x $with_build_time_tools/objdump; then
12215 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12216 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12218 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12219 else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221 $as_echo "no" >&6; }
12222 fi
12223 elif test $build != $host && test $have_gcc_for_target = yes; then
12224 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12225 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12226 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12227 fi
12228 fi
12229 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12230 # Extract the first word of "objdump", so it can be a program name with args.
12231 set dummy objdump; ac_word=$2
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233 $as_echo_n "checking for $ac_word... " >&6; }
12234 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 case $OBJDUMP_FOR_TARGET in
12238 [\\/]* | ?:[\\/]*)
12239 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12240 ;;
12241 *)
12242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243 for as_dir in $gcc_cv_tool_dirs
12244 do
12245 IFS=$as_save_IFS
12246 test -z "$as_dir" && as_dir=.
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12249 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12251 break 2
12252 fi
12253 done
12254 done
12255 IFS=$as_save_IFS
12256
12257 ;;
12258 esac
12259 fi
12260 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12261 if test -n "$OBJDUMP_FOR_TARGET"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12263 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 fi
12268
12269
12270 fi
12271 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12272
12273
12274 if test -n "$OBJDUMP_FOR_TARGET"; then
12275 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12276 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12277 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12278 fi
12279
12280 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12281 for ncn_progname in objdump; do
12282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12283 set dummy ${ncn_progname}; ac_word=$2
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12285 $as_echo_n "checking for $ac_word... " >&6; }
12286 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12287 $as_echo_n "(cached) " >&6
12288 else
12289 if test -n "$OBJDUMP_FOR_TARGET"; then
12290 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12291 else
12292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293 for as_dir in $PATH
12294 do
12295 IFS=$as_save_IFS
12296 test -z "$as_dir" && as_dir=.
12297 for ac_exec_ext in '' $ac_executable_extensions; do
12298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12299 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12301 break 2
12302 fi
12303 done
12304 done
12305 IFS=$as_save_IFS
12306
12307 fi
12308 fi
12309 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12310 if test -n "$OBJDUMP_FOR_TARGET"; then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12312 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12313 else
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 $as_echo "no" >&6; }
12316 fi
12317
12318
12319 done
12320 fi
12321
12322 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12323 for ncn_progname in objdump; do
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12325 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12326 if test -x $with_build_time_tools/${ncn_progname}; then
12327 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12329 $as_echo "yes" >&6; }
12330 break
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12334 fi
12335 done
12336 fi
12337
12338 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12339 for ncn_progname in objdump; do
12340 if test -n "$ncn_target_tool_prefix"; then
12341 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12342 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344 $as_echo_n "checking for $ac_word... " >&6; }
12345 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 if test -n "$OBJDUMP_FOR_TARGET"; then
12349 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12350 else
12351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12352 for as_dir in $PATH
12353 do
12354 IFS=$as_save_IFS
12355 test -z "$as_dir" && as_dir=.
12356 for ac_exec_ext in '' $ac_executable_extensions; do
12357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12358 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12360 break 2
12361 fi
12362 done
12363 done
12364 IFS=$as_save_IFS
12365
12366 fi
12367 fi
12368 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12369 if test -n "$OBJDUMP_FOR_TARGET"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12371 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12372 else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12375 fi
12376
12377
12378 fi
12379 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12381 set dummy ${ncn_progname}; ac_word=$2
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12383 $as_echo_n "checking for $ac_word... " >&6; }
12384 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12385 $as_echo_n "(cached) " >&6
12386 else
12387 if test -n "$OBJDUMP_FOR_TARGET"; then
12388 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12389 else
12390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12391 for as_dir in $PATH
12392 do
12393 IFS=$as_save_IFS
12394 test -z "$as_dir" && as_dir=.
12395 for ac_exec_ext in '' $ac_executable_extensions; do
12396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12397 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12399 break 2
12400 fi
12401 done
12402 done
12403 IFS=$as_save_IFS
12404
12405 fi
12406 fi
12407 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12408 if test -n "$OBJDUMP_FOR_TARGET"; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12410 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12411 else
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413 $as_echo "no" >&6; }
12414 fi
12415
12416
12417 fi
12418 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12419 done
12420 fi
12421
12422 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12423 set dummy objdump
12424 if test $build = $target ; then
12425 OBJDUMP_FOR_TARGET="$2"
12426 else
12427 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12428 fi
12429 else
12430 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12431 fi
12432
12433 else
12434 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12435 fi
12436
12437
12438
12439
12440 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12441 if test -n "$with_build_time_tools"; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12443 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12444 if test -x $with_build_time_tools/ranlib; then
12445 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12446 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12448 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12449 else
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451 $as_echo "no" >&6; }
12452 fi
12453 elif test $build != $host && test $have_gcc_for_target = yes; then
12454 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12455 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12456 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12457 fi
12458 fi
12459 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12460 # Extract the first word of "ranlib", so it can be a program name with args.
12461 set dummy ranlib; ac_word=$2
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463 $as_echo_n "checking for $ac_word... " >&6; }
12464 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 case $RANLIB_FOR_TARGET in
12468 [\\/]* | ?:[\\/]*)
12469 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12470 ;;
12471 *)
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473 for as_dir in $gcc_cv_tool_dirs
12474 do
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12479 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12481 break 2
12482 fi
12483 done
12484 done
12485 IFS=$as_save_IFS
12486
12487 ;;
12488 esac
12489 fi
12490 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12491 if test -n "$RANLIB_FOR_TARGET"; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12493 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12494 else
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496 $as_echo "no" >&6; }
12497 fi
12498
12499
12500 fi
12501 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12502
12503
12504 if test -n "$RANLIB_FOR_TARGET"; then
12505 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12506 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12507 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12508 fi
12509
12510 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12511 for ncn_progname in ranlib; do
12512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12513 set dummy ${ncn_progname}; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 if test -n "$RANLIB_FOR_TARGET"; then
12520 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12521 else
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12524 do
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12529 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531 break 2
12532 fi
12533 done
12534 done
12535 IFS=$as_save_IFS
12536
12537 fi
12538 fi
12539 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12540 if test -n "$RANLIB_FOR_TARGET"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12542 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12546 fi
12547
12548
12549 done
12550 fi
12551
12552 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12553 for ncn_progname in ranlib; do
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12555 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12556 if test -x $with_build_time_tools/${ncn_progname}; then
12557 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12559 $as_echo "yes" >&6; }
12560 break
12561 else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 $as_echo "no" >&6; }
12564 fi
12565 done
12566 fi
12567
12568 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12569 for ncn_progname in ranlib; do
12570 if test -n "$ncn_target_tool_prefix"; then
12571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12572 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12574 $as_echo_n "checking for $ac_word... " >&6; }
12575 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12576 $as_echo_n "(cached) " >&6
12577 else
12578 if test -n "$RANLIB_FOR_TARGET"; then
12579 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12580 else
12581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12582 for as_dir in $PATH
12583 do
12584 IFS=$as_save_IFS
12585 test -z "$as_dir" && as_dir=.
12586 for ac_exec_ext in '' $ac_executable_extensions; do
12587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12588 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12590 break 2
12591 fi
12592 done
12593 done
12594 IFS=$as_save_IFS
12595
12596 fi
12597 fi
12598 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12599 if test -n "$RANLIB_FOR_TARGET"; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12601 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12602 else
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12605 fi
12606
12607
12608 fi
12609 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12611 set dummy ${ncn_progname}; ac_word=$2
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613 $as_echo_n "checking for $ac_word... " >&6; }
12614 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 if test -n "$RANLIB_FOR_TARGET"; then
12618 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12619 else
12620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12621 for as_dir in $PATH
12622 do
12623 IFS=$as_save_IFS
12624 test -z "$as_dir" && as_dir=.
12625 for ac_exec_ext in '' $ac_executable_extensions; do
12626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12627 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12629 break 2
12630 fi
12631 done
12632 done
12633 IFS=$as_save_IFS
12634
12635 fi
12636 fi
12637 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12638 if test -n "$RANLIB_FOR_TARGET"; then
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12640 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12641 else
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643 $as_echo "no" >&6; }
12644 fi
12645
12646
12647 fi
12648 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12649 done
12650 fi
12651
12652 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12653 set dummy ranlib
12654 if test $build = $target ; then
12655 RANLIB_FOR_TARGET="$2"
12656 else
12657 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12658 fi
12659 else
12660 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12661 fi
12662
12663 else
12664 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12665 fi
12666
12667
12668
12669
12670 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12671 if test -n "$with_build_time_tools"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12673 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12674 if test -x $with_build_time_tools/readelf; then
12675 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12676 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12678 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12679 else
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681 $as_echo "no" >&6; }
12682 fi
12683 elif test $build != $host && test $have_gcc_for_target = yes; then
12684 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12685 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12686 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12687 fi
12688 fi
12689 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12690 # Extract the first word of "readelf", so it can be a program name with args.
12691 set dummy readelf; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 case $READELF_FOR_TARGET in
12698 [\\/]* | ?:[\\/]*)
12699 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12700 ;;
12701 *)
12702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703 for as_dir in $gcc_cv_tool_dirs
12704 do
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
12707 for ac_exec_ext in '' $ac_executable_extensions; do
12708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12709 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12711 break 2
12712 fi
12713 done
12714 done
12715 IFS=$as_save_IFS
12716
12717 ;;
12718 esac
12719 fi
12720 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12721 if test -n "$READELF_FOR_TARGET"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12723 $as_echo "$READELF_FOR_TARGET" >&6; }
12724 else
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12727 fi
12728
12729
12730 fi
12731 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12732
12733
12734 if test -n "$READELF_FOR_TARGET"; then
12735 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12736 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12737 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12738 fi
12739
12740 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12741 for ncn_progname in readelf; do
12742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12743 set dummy ${ncn_progname}; ac_word=$2
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745 $as_echo_n "checking for $ac_word... " >&6; }
12746 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 if test -n "$READELF_FOR_TARGET"; then
12750 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12751 else
12752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753 for as_dir in $PATH
12754 do
12755 IFS=$as_save_IFS
12756 test -z "$as_dir" && as_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12759 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12761 break 2
12762 fi
12763 done
12764 done
12765 IFS=$as_save_IFS
12766
12767 fi
12768 fi
12769 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12770 if test -n "$READELF_FOR_TARGET"; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12772 $as_echo "$READELF_FOR_TARGET" >&6; }
12773 else
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12776 fi
12777
12778
12779 done
12780 fi
12781
12782 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12783 for ncn_progname in readelf; do
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12785 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12786 if test -x $with_build_time_tools/${ncn_progname}; then
12787 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12789 $as_echo "yes" >&6; }
12790 break
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12794 fi
12795 done
12796 fi
12797
12798 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12799 for ncn_progname in readelf; do
12800 if test -n "$ncn_target_tool_prefix"; then
12801 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12802 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804 $as_echo_n "checking for $ac_word... " >&6; }
12805 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 if test -n "$READELF_FOR_TARGET"; then
12809 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12810 else
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12813 do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12818 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12820 break 2
12821 fi
12822 done
12823 done
12824 IFS=$as_save_IFS
12825
12826 fi
12827 fi
12828 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12829 if test -n "$READELF_FOR_TARGET"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12831 $as_echo "$READELF_FOR_TARGET" >&6; }
12832 else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834 $as_echo "no" >&6; }
12835 fi
12836
12837
12838 fi
12839 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12841 set dummy ${ncn_progname}; ac_word=$2
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12843 $as_echo_n "checking for $ac_word... " >&6; }
12844 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 if test -n "$READELF_FOR_TARGET"; then
12848 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12849 else
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in $PATH
12852 do
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12857 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12860 fi
12861 done
12862 done
12863 IFS=$as_save_IFS
12864
12865 fi
12866 fi
12867 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12868 if test -n "$READELF_FOR_TARGET"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12870 $as_echo "$READELF_FOR_TARGET" >&6; }
12871 else
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873 $as_echo "no" >&6; }
12874 fi
12875
12876
12877 fi
12878 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12879 done
12880 fi
12881
12882 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12883 set dummy readelf
12884 if test $build = $target ; then
12885 READELF_FOR_TARGET="$2"
12886 else
12887 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12888 fi
12889 else
12890 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12891 fi
12892
12893 else
12894 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12895 fi
12896
12897
12898
12899
12900 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12901 if test -n "$with_build_time_tools"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12903 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12904 if test -x $with_build_time_tools/strip; then
12905 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12906 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12908 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12909 else
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12912 fi
12913 elif test $build != $host && test $have_gcc_for_target = yes; then
12914 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12915 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12916 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12917 fi
12918 fi
12919 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12920 # Extract the first word of "strip", so it can be a program name with args.
12921 set dummy strip; ac_word=$2
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923 $as_echo_n "checking for $ac_word... " >&6; }
12924 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12925 $as_echo_n "(cached) " >&6
12926 else
12927 case $STRIP_FOR_TARGET in
12928 [\\/]* | ?:[\\/]*)
12929 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12930 ;;
12931 *)
12932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933 for as_dir in $gcc_cv_tool_dirs
12934 do
12935 IFS=$as_save_IFS
12936 test -z "$as_dir" && as_dir=.
12937 for ac_exec_ext in '' $ac_executable_extensions; do
12938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12939 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12941 break 2
12942 fi
12943 done
12944 done
12945 IFS=$as_save_IFS
12946
12947 ;;
12948 esac
12949 fi
12950 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12951 if test -n "$STRIP_FOR_TARGET"; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12953 $as_echo "$STRIP_FOR_TARGET" >&6; }
12954 else
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12956 $as_echo "no" >&6; }
12957 fi
12958
12959
12960 fi
12961 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12962
12963
12964 if test -n "$STRIP_FOR_TARGET"; then
12965 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12966 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12967 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12968 fi
12969
12970 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12971 for ncn_progname in strip; do
12972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12973 set dummy ${ncn_progname}; ac_word=$2
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12975 $as_echo_n "checking for $ac_word... " >&6; }
12976 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12977 $as_echo_n "(cached) " >&6
12978 else
12979 if test -n "$STRIP_FOR_TARGET"; then
12980 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12981 else
12982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12983 for as_dir in $PATH
12984 do
12985 IFS=$as_save_IFS
12986 test -z "$as_dir" && as_dir=.
12987 for ac_exec_ext in '' $ac_executable_extensions; do
12988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12989 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12991 break 2
12992 fi
12993 done
12994 done
12995 IFS=$as_save_IFS
12996
12997 fi
12998 fi
12999 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13000 if test -n "$STRIP_FOR_TARGET"; then
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13002 $as_echo "$STRIP_FOR_TARGET" >&6; }
13003 else
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13005 $as_echo "no" >&6; }
13006 fi
13007
13008
13009 done
13010 fi
13011
13012 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13013 for ncn_progname in strip; do
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13015 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13016 if test -x $with_build_time_tools/${ncn_progname}; then
13017 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13019 $as_echo "yes" >&6; }
13020 break
13021 else
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 $as_echo "no" >&6; }
13024 fi
13025 done
13026 fi
13027
13028 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13029 for ncn_progname in strip; do
13030 if test -n "$ncn_target_tool_prefix"; then
13031 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13032 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13034 $as_echo_n "checking for $ac_word... " >&6; }
13035 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13036 $as_echo_n "(cached) " >&6
13037 else
13038 if test -n "$STRIP_FOR_TARGET"; then
13039 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13040 else
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13043 do
13044 IFS=$as_save_IFS
13045 test -z "$as_dir" && as_dir=.
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13048 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13050 break 2
13051 fi
13052 done
13053 done
13054 IFS=$as_save_IFS
13055
13056 fi
13057 fi
13058 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13059 if test -n "$STRIP_FOR_TARGET"; then
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13061 $as_echo "$STRIP_FOR_TARGET" >&6; }
13062 else
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064 $as_echo "no" >&6; }
13065 fi
13066
13067
13068 fi
13069 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13071 set dummy ${ncn_progname}; ac_word=$2
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13073 $as_echo_n "checking for $ac_word... " >&6; }
13074 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13075 $as_echo_n "(cached) " >&6
13076 else
13077 if test -n "$STRIP_FOR_TARGET"; then
13078 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13079 else
13080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13081 for as_dir in $PATH
13082 do
13083 IFS=$as_save_IFS
13084 test -z "$as_dir" && as_dir=.
13085 for ac_exec_ext in '' $ac_executable_extensions; do
13086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13087 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13089 break 2
13090 fi
13091 done
13092 done
13093 IFS=$as_save_IFS
13094
13095 fi
13096 fi
13097 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13098 if test -n "$STRIP_FOR_TARGET"; then
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13100 $as_echo "$STRIP_FOR_TARGET" >&6; }
13101 else
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13103 $as_echo "no" >&6; }
13104 fi
13105
13106
13107 fi
13108 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13109 done
13110 fi
13111
13112 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13113 set dummy strip
13114 if test $build = $target ; then
13115 STRIP_FOR_TARGET="$2"
13116 else
13117 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13118 fi
13119 else
13120 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13121 fi
13122
13123 else
13124 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13125 fi
13126
13127
13128
13129
13130 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13131 if test -n "$with_build_time_tools"; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13133 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13134 if test -x $with_build_time_tools/windres; then
13135 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13136 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13138 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13139 else
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13142 fi
13143 elif test $build != $host && test $have_gcc_for_target = yes; then
13144 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13145 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13146 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13147 fi
13148 fi
13149 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13150 # Extract the first word of "windres", so it can be a program name with args.
13151 set dummy windres; ac_word=$2
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153 $as_echo_n "checking for $ac_word... " >&6; }
13154 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 case $WINDRES_FOR_TARGET in
13158 [\\/]* | ?:[\\/]*)
13159 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13160 ;;
13161 *)
13162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163 for as_dir in $gcc_cv_tool_dirs
13164 do
13165 IFS=$as_save_IFS
13166 test -z "$as_dir" && as_dir=.
13167 for ac_exec_ext in '' $ac_executable_extensions; do
13168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13169 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13171 break 2
13172 fi
13173 done
13174 done
13175 IFS=$as_save_IFS
13176
13177 ;;
13178 esac
13179 fi
13180 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13181 if test -n "$WINDRES_FOR_TARGET"; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13183 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13184 else
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13187 fi
13188
13189
13190 fi
13191 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13192
13193
13194 if test -n "$WINDRES_FOR_TARGET"; then
13195 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13196 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13197 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13198 fi
13199
13200 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13201 for ncn_progname in windres; do
13202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13203 set dummy ${ncn_progname}; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 if test -n "$WINDRES_FOR_TARGET"; then
13210 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13211 else
13212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213 for as_dir in $PATH
13214 do
13215 IFS=$as_save_IFS
13216 test -z "$as_dir" && as_dir=.
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13219 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13221 break 2
13222 fi
13223 done
13224 done
13225 IFS=$as_save_IFS
13226
13227 fi
13228 fi
13229 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13230 if test -n "$WINDRES_FOR_TARGET"; then
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13232 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13233 else
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235 $as_echo "no" >&6; }
13236 fi
13237
13238
13239 done
13240 fi
13241
13242 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13243 for ncn_progname in windres; do
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13245 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13246 if test -x $with_build_time_tools/${ncn_progname}; then
13247 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13249 $as_echo "yes" >&6; }
13250 break
13251 else
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13254 fi
13255 done
13256 fi
13257
13258 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13259 for ncn_progname in windres; do
13260 if test -n "$ncn_target_tool_prefix"; then
13261 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13262 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13264 $as_echo_n "checking for $ac_word... " >&6; }
13265 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13266 $as_echo_n "(cached) " >&6
13267 else
13268 if test -n "$WINDRES_FOR_TARGET"; then
13269 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13270 else
13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13273 do
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
13276 for ac_exec_ext in '' $ac_executable_extensions; do
13277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13278 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280 break 2
13281 fi
13282 done
13283 done
13284 IFS=$as_save_IFS
13285
13286 fi
13287 fi
13288 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13289 if test -n "$WINDRES_FOR_TARGET"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13291 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13292 else
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13295 fi
13296
13297
13298 fi
13299 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13301 set dummy ${ncn_progname}; ac_word=$2
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303 $as_echo_n "checking for $ac_word... " >&6; }
13304 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13305 $as_echo_n "(cached) " >&6
13306 else
13307 if test -n "$WINDRES_FOR_TARGET"; then
13308 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13309 else
13310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311 for as_dir in $PATH
13312 do
13313 IFS=$as_save_IFS
13314 test -z "$as_dir" && as_dir=.
13315 for ac_exec_ext in '' $ac_executable_extensions; do
13316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13317 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13319 break 2
13320 fi
13321 done
13322 done
13323 IFS=$as_save_IFS
13324
13325 fi
13326 fi
13327 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13328 if test -n "$WINDRES_FOR_TARGET"; then
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13330 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13331 else
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13334 fi
13335
13336
13337 fi
13338 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13339 done
13340 fi
13341
13342 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13343 set dummy windres
13344 if test $build = $target ; then
13345 WINDRES_FOR_TARGET="$2"
13346 else
13347 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13348 fi
13349 else
13350 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13351 fi
13352
13353 else
13354 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13355 fi
13356
13357
13358
13359
13360 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13361 if test -n "$with_build_time_tools"; then
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13363 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13364 if test -x $with_build_time_tools/windmc; then
13365 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13366 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13368 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13369 else
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371 $as_echo "no" >&6; }
13372 fi
13373 elif test $build != $host && test $have_gcc_for_target = yes; then
13374 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13375 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13376 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13377 fi
13378 fi
13379 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13380 # Extract the first word of "windmc", so it can be a program name with args.
13381 set dummy windmc; ac_word=$2
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
13386 else
13387 case $WINDMC_FOR_TARGET in
13388 [\\/]* | ?:[\\/]*)
13389 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13390 ;;
13391 *)
13392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13393 for as_dir in $gcc_cv_tool_dirs
13394 do
13395 IFS=$as_save_IFS
13396 test -z "$as_dir" && as_dir=.
13397 for ac_exec_ext in '' $ac_executable_extensions; do
13398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13399 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13401 break 2
13402 fi
13403 done
13404 done
13405 IFS=$as_save_IFS
13406
13407 ;;
13408 esac
13409 fi
13410 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13411 if test -n "$WINDMC_FOR_TARGET"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13413 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13414 else
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13416 $as_echo "no" >&6; }
13417 fi
13418
13419
13420 fi
13421 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13422
13423
13424 if test -n "$WINDMC_FOR_TARGET"; then
13425 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13426 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13427 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13428 fi
13429
13430 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13431 for ncn_progname in windmc; do
13432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13433 set dummy ${ncn_progname}; ac_word=$2
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13435 $as_echo_n "checking for $ac_word... " >&6; }
13436 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13437 $as_echo_n "(cached) " >&6
13438 else
13439 if test -n "$WINDMC_FOR_TARGET"; then
13440 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13441 else
13442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443 for as_dir in $PATH
13444 do
13445 IFS=$as_save_IFS
13446 test -z "$as_dir" && as_dir=.
13447 for ac_exec_ext in '' $ac_executable_extensions; do
13448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13449 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13451 break 2
13452 fi
13453 done
13454 done
13455 IFS=$as_save_IFS
13456
13457 fi
13458 fi
13459 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13460 if test -n "$WINDMC_FOR_TARGET"; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13462 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13463 else
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13465 $as_echo "no" >&6; }
13466 fi
13467
13468
13469 done
13470 fi
13471
13472 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13473 for ncn_progname in windmc; do
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13475 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13476 if test -x $with_build_time_tools/${ncn_progname}; then
13477 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13479 $as_echo "yes" >&6; }
13480 break
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 $as_echo "no" >&6; }
13484 fi
13485 done
13486 fi
13487
13488 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13489 for ncn_progname in windmc; do
13490 if test -n "$ncn_target_tool_prefix"; then
13491 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13492 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13494 $as_echo_n "checking for $ac_word... " >&6; }
13495 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 if test -n "$WINDMC_FOR_TARGET"; then
13499 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13500 else
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13503 do
13504 IFS=$as_save_IFS
13505 test -z "$as_dir" && as_dir=.
13506 for ac_exec_ext in '' $ac_executable_extensions; do
13507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13508 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13510 break 2
13511 fi
13512 done
13513 done
13514 IFS=$as_save_IFS
13515
13516 fi
13517 fi
13518 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13519 if test -n "$WINDMC_FOR_TARGET"; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13521 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13522 else
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524 $as_echo "no" >&6; }
13525 fi
13526
13527
13528 fi
13529 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13531 set dummy ${ncn_progname}; ac_word=$2
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13533 $as_echo_n "checking for $ac_word... " >&6; }
13534 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13535 $as_echo_n "(cached) " >&6
13536 else
13537 if test -n "$WINDMC_FOR_TARGET"; then
13538 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13539 else
13540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13541 for as_dir in $PATH
13542 do
13543 IFS=$as_save_IFS
13544 test -z "$as_dir" && as_dir=.
13545 for ac_exec_ext in '' $ac_executable_extensions; do
13546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13547 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13549 break 2
13550 fi
13551 done
13552 done
13553 IFS=$as_save_IFS
13554
13555 fi
13556 fi
13557 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13558 if test -n "$WINDMC_FOR_TARGET"; then
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13560 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13561 else
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563 $as_echo "no" >&6; }
13564 fi
13565
13566
13567 fi
13568 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13569 done
13570 fi
13571
13572 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13573 set dummy windmc
13574 if test $build = $target ; then
13575 WINDMC_FOR_TARGET="$2"
13576 else
13577 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13578 fi
13579 else
13580 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13581 fi
13582
13583 else
13584 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13585 fi
13586
13587
13588 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13589
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13591 $as_echo_n "checking where to find the target ar... " >&6; }
13592 if test "x${build}" != "x${host}" ; then
13593 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13594 # We already found the complete path
13595 ac_dir=`dirname $AR_FOR_TARGET`
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13597 $as_echo "pre-installed in $ac_dir" >&6; }
13598 else
13599 # Canadian cross, just use what we found
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13601 $as_echo "pre-installed" >&6; }
13602 fi
13603 else
13604 ok=yes
13605 case " ${configdirs} " in
13606 *" binutils "*) ;;
13607 *) ok=no ;;
13608 esac
13609
13610 if test $ok = yes; then
13611 # An in-tree tool is available and we can use it
13612 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13614 $as_echo "just compiled" >&6; }
13615 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13616 # We already found the complete path
13617 ac_dir=`dirname $AR_FOR_TARGET`
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13619 $as_echo "pre-installed in $ac_dir" >&6; }
13620 elif test "x$target" = "x$host"; then
13621 # We can use an host tool
13622 AR_FOR_TARGET='$(AR)'
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13624 $as_echo "host tool" >&6; }
13625 else
13626 # We need a cross tool
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13628 $as_echo "pre-installed" >&6; }
13629 fi
13630 fi
13631
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13633 $as_echo_n "checking where to find the target as... " >&6; }
13634 if test "x${build}" != "x${host}" ; then
13635 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13636 # We already found the complete path
13637 ac_dir=`dirname $AS_FOR_TARGET`
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13639 $as_echo "pre-installed in $ac_dir" >&6; }
13640 else
13641 # Canadian cross, just use what we found
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13643 $as_echo "pre-installed" >&6; }
13644 fi
13645 else
13646 ok=yes
13647 case " ${configdirs} " in
13648 *" gas "*) ;;
13649 *) ok=no ;;
13650 esac
13651
13652 if test $ok = yes; then
13653 # An in-tree tool is available and we can use it
13654 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13656 $as_echo "just compiled" >&6; }
13657 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13658 # We already found the complete path
13659 ac_dir=`dirname $AS_FOR_TARGET`
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13661 $as_echo "pre-installed in $ac_dir" >&6; }
13662 elif test "x$target" = "x$host"; then
13663 # We can use an host tool
13664 AS_FOR_TARGET='$(AS)'
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13666 $as_echo "host tool" >&6; }
13667 else
13668 # We need a cross tool
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13670 $as_echo "pre-installed" >&6; }
13671 fi
13672 fi
13673
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13675 $as_echo_n "checking where to find the target cc... " >&6; }
13676 if test "x${build}" != "x${host}" ; then
13677 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13678 # We already found the complete path
13679 ac_dir=`dirname $CC_FOR_TARGET`
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13681 $as_echo "pre-installed in $ac_dir" >&6; }
13682 else
13683 # Canadian cross, just use what we found
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13685 $as_echo "pre-installed" >&6; }
13686 fi
13687 else
13688 ok=yes
13689 case " ${configdirs} " in
13690 *" gcc "*) ;;
13691 *) ok=no ;;
13692 esac
13693
13694 if test $ok = yes; then
13695 # An in-tree tool is available and we can use it
13696 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13698 $as_echo "just compiled" >&6; }
13699 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13700 # We already found the complete path
13701 ac_dir=`dirname $CC_FOR_TARGET`
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13703 $as_echo "pre-installed in $ac_dir" >&6; }
13704 elif test "x$target" = "x$host"; then
13705 # We can use an host tool
13706 CC_FOR_TARGET='$(CC)'
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13708 $as_echo "host tool" >&6; }
13709 else
13710 # We need a cross tool
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13712 $as_echo "pre-installed" >&6; }
13713 fi
13714 fi
13715
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13717 $as_echo_n "checking where to find the target c++... " >&6; }
13718 if test "x${build}" != "x${host}" ; then
13719 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13720 # We already found the complete path
13721 ac_dir=`dirname $CXX_FOR_TARGET`
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13723 $as_echo "pre-installed in $ac_dir" >&6; }
13724 else
13725 # Canadian cross, just use what we found
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13727 $as_echo "pre-installed" >&6; }
13728 fi
13729 else
13730 ok=yes
13731 case " ${configdirs} " in
13732 *" gcc "*) ;;
13733 *) ok=no ;;
13734 esac
13735 case ,${enable_languages}, in
13736 *,c++,*) ;;
13737 *) ok=no ;;
13738 esac
13739 if test $ok = yes; then
13740 # An in-tree tool is available and we can use it
13741 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13743 $as_echo "just compiled" >&6; }
13744 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13745 # We already found the complete path
13746 ac_dir=`dirname $CXX_FOR_TARGET`
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13748 $as_echo "pre-installed in $ac_dir" >&6; }
13749 elif test "x$target" = "x$host"; then
13750 # We can use an host tool
13751 CXX_FOR_TARGET='$(CXX)'
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13753 $as_echo "host tool" >&6; }
13754 else
13755 # We need a cross tool
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13757 $as_echo "pre-installed" >&6; }
13758 fi
13759 fi
13760
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13762 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13763 if test "x${build}" != "x${host}" ; then
13764 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13765 # We already found the complete path
13766 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13768 $as_echo "pre-installed in $ac_dir" >&6; }
13769 else
13770 # Canadian cross, just use what we found
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13772 $as_echo "pre-installed" >&6; }
13773 fi
13774 else
13775 ok=yes
13776 case " ${configdirs} " in
13777 *" gcc "*) ;;
13778 *) ok=no ;;
13779 esac
13780 case ,${enable_languages}, in
13781 *,c++,*) ;;
13782 *) ok=no ;;
13783 esac
13784 if test $ok = yes; then
13785 # An in-tree tool is available and we can use it
13786 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'
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13788 $as_echo "just compiled" >&6; }
13789 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13790 # We already found the complete path
13791 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13793 $as_echo "pre-installed in $ac_dir" >&6; }
13794 elif test "x$target" = "x$host"; then
13795 # We can use an host tool
13796 RAW_CXX_FOR_TARGET='$(CXX)'
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13798 $as_echo "host tool" >&6; }
13799 else
13800 # We need a cross tool
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802 $as_echo "pre-installed" >&6; }
13803 fi
13804 fi
13805
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13807 $as_echo_n "checking where to find the target dlltool... " >&6; }
13808 if test "x${build}" != "x${host}" ; then
13809 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13810 # We already found the complete path
13811 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13813 $as_echo "pre-installed in $ac_dir" >&6; }
13814 else
13815 # Canadian cross, just use what we found
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817 $as_echo "pre-installed" >&6; }
13818 fi
13819 else
13820 ok=yes
13821 case " ${configdirs} " in
13822 *" binutils "*) ;;
13823 *) ok=no ;;
13824 esac
13825
13826 if test $ok = yes; then
13827 # An in-tree tool is available and we can use it
13828 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13830 $as_echo "just compiled" >&6; }
13831 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13832 # We already found the complete path
13833 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13835 $as_echo "pre-installed in $ac_dir" >&6; }
13836 elif test "x$target" = "x$host"; then
13837 # We can use an host tool
13838 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13840 $as_echo "host tool" >&6; }
13841 else
13842 # We need a cross tool
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13844 $as_echo "pre-installed" >&6; }
13845 fi
13846 fi
13847
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13849 $as_echo_n "checking where to find the target gcc... " >&6; }
13850 if test "x${build}" != "x${host}" ; then
13851 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13852 # We already found the complete path
13853 ac_dir=`dirname $GCC_FOR_TARGET`
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13855 $as_echo "pre-installed in $ac_dir" >&6; }
13856 else
13857 # Canadian cross, just use what we found
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13859 $as_echo "pre-installed" >&6; }
13860 fi
13861 else
13862 ok=yes
13863 case " ${configdirs} " in
13864 *" gcc "*) ;;
13865 *) ok=no ;;
13866 esac
13867
13868 if test $ok = yes; then
13869 # An in-tree tool is available and we can use it
13870 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13872 $as_echo "just compiled" >&6; }
13873 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13874 # We already found the complete path
13875 ac_dir=`dirname $GCC_FOR_TARGET`
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13877 $as_echo "pre-installed in $ac_dir" >&6; }
13878 elif test "x$target" = "x$host"; then
13879 # We can use an host tool
13880 GCC_FOR_TARGET='$()'
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13882 $as_echo "host tool" >&6; }
13883 else
13884 # We need a cross tool
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13886 $as_echo "pre-installed" >&6; }
13887 fi
13888 fi
13889
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13891 $as_echo_n "checking where to find the target gcj... " >&6; }
13892 if test "x${build}" != "x${host}" ; then
13893 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13894 # We already found the complete path
13895 ac_dir=`dirname $GCJ_FOR_TARGET`
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13897 $as_echo "pre-installed in $ac_dir" >&6; }
13898 else
13899 # Canadian cross, just use what we found
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13901 $as_echo "pre-installed" >&6; }
13902 fi
13903 else
13904 ok=yes
13905 case " ${configdirs} " in
13906 *" gcc "*) ;;
13907 *) ok=no ;;
13908 esac
13909 case ,${enable_languages}, in
13910 *,java,*) ;;
13911 *) ok=no ;;
13912 esac
13913 if test $ok = yes; then
13914 # An in-tree tool is available and we can use it
13915 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13917 $as_echo "just compiled" >&6; }
13918 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13919 # We already found the complete path
13920 ac_dir=`dirname $GCJ_FOR_TARGET`
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13922 $as_echo "pre-installed in $ac_dir" >&6; }
13923 elif test "x$target" = "x$host"; then
13924 # We can use an host tool
13925 GCJ_FOR_TARGET='$(GCJ)'
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13927 $as_echo "host tool" >&6; }
13928 else
13929 # We need a cross tool
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931 $as_echo "pre-installed" >&6; }
13932 fi
13933 fi
13934
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13936 $as_echo_n "checking where to find the target gfortran... " >&6; }
13937 if test "x${build}" != "x${host}" ; then
13938 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13939 # We already found the complete path
13940 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13942 $as_echo "pre-installed in $ac_dir" >&6; }
13943 else
13944 # Canadian cross, just use what we found
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13946 $as_echo "pre-installed" >&6; }
13947 fi
13948 else
13949 ok=yes
13950 case " ${configdirs} " in
13951 *" gcc "*) ;;
13952 *) ok=no ;;
13953 esac
13954 case ,${enable_languages}, in
13955 *,fortran,*) ;;
13956 *) ok=no ;;
13957 esac
13958 if test $ok = yes; then
13959 # An in-tree tool is available and we can use it
13960 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13962 $as_echo "just compiled" >&6; }
13963 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
13965 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13967 $as_echo "pre-installed in $ac_dir" >&6; }
13968 elif test "x$target" = "x$host"; then
13969 # We can use an host tool
13970 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13972 $as_echo "host tool" >&6; }
13973 else
13974 # We need a cross tool
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976 $as_echo "pre-installed" >&6; }
13977 fi
13978 fi
13979
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13981 $as_echo_n "checking where to find the target gccgo... " >&6; }
13982 if test "x${build}" != "x${host}" ; then
13983 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
13985 ac_dir=`dirname $GOC_FOR_TARGET`
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987 $as_echo "pre-installed in $ac_dir" >&6; }
13988 else
13989 # Canadian cross, just use what we found
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991 $as_echo "pre-installed" >&6; }
13992 fi
13993 else
13994 ok=yes
13995 case " ${configdirs} " in
13996 *" gcc "*) ;;
13997 *) ok=no ;;
13998 esac
13999 case ,${enable_languages}, in
14000 *,go,*) ;;
14001 *) ok=no ;;
14002 esac
14003 if test $ok = yes; then
14004 # An in-tree tool is available and we can use it
14005 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14007 $as_echo "just compiled" >&6; }
14008 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14009 # We already found the complete path
14010 ac_dir=`dirname $GOC_FOR_TARGET`
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14012 $as_echo "pre-installed in $ac_dir" >&6; }
14013 elif test "x$target" = "x$host"; then
14014 # We can use an host tool
14015 GOC_FOR_TARGET='$(GOC)'
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14017 $as_echo "host tool" >&6; }
14018 else
14019 # We need a cross tool
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021 $as_echo "pre-installed" >&6; }
14022 fi
14023 fi
14024
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14026 $as_echo_n "checking where to find the target ld... " >&6; }
14027 if test "x${build}" != "x${host}" ; then
14028 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14029 # We already found the complete path
14030 ac_dir=`dirname $LD_FOR_TARGET`
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14032 $as_echo "pre-installed in $ac_dir" >&6; }
14033 else
14034 # Canadian cross, just use what we found
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14036 $as_echo "pre-installed" >&6; }
14037 fi
14038 else
14039 ok=yes
14040 case " ${configdirs} " in
14041 *" ld "*) ;;
14042 *) ok=no ;;
14043 esac
14044
14045 if test $ok = yes; then
14046 # An in-tree tool is available and we can use it
14047 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14049 $as_echo "just compiled" >&6; }
14050 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14051 # We already found the complete path
14052 ac_dir=`dirname $LD_FOR_TARGET`
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14054 $as_echo "pre-installed in $ac_dir" >&6; }
14055 elif test "x$target" = "x$host"; then
14056 # We can use an host tool
14057 LD_FOR_TARGET='$(LD)'
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14059 $as_echo "host tool" >&6; }
14060 else
14061 # We need a cross tool
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063 $as_echo "pre-installed" >&6; }
14064 fi
14065 fi
14066
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14068 $as_echo_n "checking where to find the target lipo... " >&6; }
14069 if test "x${build}" != "x${host}" ; then
14070 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14071 # We already found the complete path
14072 ac_dir=`dirname $LIPO_FOR_TARGET`
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14074 $as_echo "pre-installed in $ac_dir" >&6; }
14075 else
14076 # Canadian cross, just use what we found
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14078 $as_echo "pre-installed" >&6; }
14079 fi
14080 else
14081 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14082 # We already found the complete path
14083 ac_dir=`dirname $LIPO_FOR_TARGET`
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14085 $as_echo "pre-installed in $ac_dir" >&6; }
14086 elif test "x$target" = "x$host"; then
14087 # We can use an host tool
14088 LIPO_FOR_TARGET='$(LIPO)'
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14090 $as_echo "host tool" >&6; }
14091 else
14092 # We need a cross tool
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14094 $as_echo "pre-installed" >&6; }
14095 fi
14096 fi
14097
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14099 $as_echo_n "checking where to find the target nm... " >&6; }
14100 if test "x${build}" != "x${host}" ; then
14101 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14102 # We already found the complete path
14103 ac_dir=`dirname $NM_FOR_TARGET`
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14105 $as_echo "pre-installed in $ac_dir" >&6; }
14106 else
14107 # Canadian cross, just use what we found
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14109 $as_echo "pre-installed" >&6; }
14110 fi
14111 else
14112 ok=yes
14113 case " ${configdirs} " in
14114 *" binutils "*) ;;
14115 *) ok=no ;;
14116 esac
14117
14118 if test $ok = yes; then
14119 # An in-tree tool is available and we can use it
14120 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14122 $as_echo "just compiled" >&6; }
14123 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14124 # We already found the complete path
14125 ac_dir=`dirname $NM_FOR_TARGET`
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14127 $as_echo "pre-installed in $ac_dir" >&6; }
14128 elif test "x$target" = "x$host"; then
14129 # We can use an host tool
14130 NM_FOR_TARGET='$(NM)'
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14132 $as_echo "host tool" >&6; }
14133 else
14134 # We need a cross tool
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14136 $as_echo "pre-installed" >&6; }
14137 fi
14138 fi
14139
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14141 $as_echo_n "checking where to find the target objdump... " >&6; }
14142 if test "x${build}" != "x${host}" ; then
14143 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14144 # We already found the complete path
14145 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14147 $as_echo "pre-installed in $ac_dir" >&6; }
14148 else
14149 # Canadian cross, just use what we found
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14151 $as_echo "pre-installed" >&6; }
14152 fi
14153 else
14154 ok=yes
14155 case " ${configdirs} " in
14156 *" binutils "*) ;;
14157 *) ok=no ;;
14158 esac
14159
14160 if test $ok = yes; then
14161 # An in-tree tool is available and we can use it
14162 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14164 $as_echo "just compiled" >&6; }
14165 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14166 # We already found the complete path
14167 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14169 $as_echo "pre-installed in $ac_dir" >&6; }
14170 elif test "x$target" = "x$host"; then
14171 # We can use an host tool
14172 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14174 $as_echo "host tool" >&6; }
14175 else
14176 # We need a cross tool
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14178 $as_echo "pre-installed" >&6; }
14179 fi
14180 fi
14181
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14183 $as_echo_n "checking where to find the target ranlib... " >&6; }
14184 if test "x${build}" != "x${host}" ; then
14185 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14186 # We already found the complete path
14187 ac_dir=`dirname $RANLIB_FOR_TARGET`
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14189 $as_echo "pre-installed in $ac_dir" >&6; }
14190 else
14191 # Canadian cross, just use what we found
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14193 $as_echo "pre-installed" >&6; }
14194 fi
14195 else
14196 ok=yes
14197 case " ${configdirs} " in
14198 *" binutils "*) ;;
14199 *) ok=no ;;
14200 esac
14201
14202 if test $ok = yes; then
14203 # An in-tree tool is available and we can use it
14204 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14206 $as_echo "just compiled" >&6; }
14207 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14208 # We already found the complete path
14209 ac_dir=`dirname $RANLIB_FOR_TARGET`
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14211 $as_echo "pre-installed in $ac_dir" >&6; }
14212 elif test "x$target" = "x$host"; then
14213 # We can use an host tool
14214 RANLIB_FOR_TARGET='$(RANLIB)'
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14216 $as_echo "host tool" >&6; }
14217 else
14218 # We need a cross tool
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14220 $as_echo "pre-installed" >&6; }
14221 fi
14222 fi
14223
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14225 $as_echo_n "checking where to find the target readelf... " >&6; }
14226 if test "x${build}" != "x${host}" ; then
14227 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14228 # We already found the complete path
14229 ac_dir=`dirname $READELF_FOR_TARGET`
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14231 $as_echo "pre-installed in $ac_dir" >&6; }
14232 else
14233 # Canadian cross, just use what we found
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14235 $as_echo "pre-installed" >&6; }
14236 fi
14237 else
14238 ok=yes
14239 case " ${configdirs} " in
14240 *" binutils "*) ;;
14241 *) ok=no ;;
14242 esac
14243
14244 if test $ok = yes; then
14245 # An in-tree tool is available and we can use it
14246 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14248 $as_echo "just compiled" >&6; }
14249 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14250 # We already found the complete path
14251 ac_dir=`dirname $READELF_FOR_TARGET`
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14253 $as_echo "pre-installed in $ac_dir" >&6; }
14254 elif test "x$target" = "x$host"; then
14255 # We can use an host tool
14256 READELF_FOR_TARGET='$(READELF)'
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14258 $as_echo "host tool" >&6; }
14259 else
14260 # We need a cross tool
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262 $as_echo "pre-installed" >&6; }
14263 fi
14264 fi
14265
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14267 $as_echo_n "checking where to find the target strip... " >&6; }
14268 if test "x${build}" != "x${host}" ; then
14269 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14270 # We already found the complete path
14271 ac_dir=`dirname $STRIP_FOR_TARGET`
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14273 $as_echo "pre-installed in $ac_dir" >&6; }
14274 else
14275 # Canadian cross, just use what we found
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14277 $as_echo "pre-installed" >&6; }
14278 fi
14279 else
14280 ok=yes
14281 case " ${configdirs} " in
14282 *" binutils "*) ;;
14283 *) ok=no ;;
14284 esac
14285
14286 if test $ok = yes; then
14287 # An in-tree tool is available and we can use it
14288 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14290 $as_echo "just compiled" >&6; }
14291 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14292 # We already found the complete path
14293 ac_dir=`dirname $STRIP_FOR_TARGET`
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14295 $as_echo "pre-installed in $ac_dir" >&6; }
14296 elif test "x$target" = "x$host"; then
14297 # We can use an host tool
14298 STRIP_FOR_TARGET='$(STRIP)'
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14300 $as_echo "host tool" >&6; }
14301 else
14302 # We need a cross tool
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304 $as_echo "pre-installed" >&6; }
14305 fi
14306 fi
14307
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14309 $as_echo_n "checking where to find the target windres... " >&6; }
14310 if test "x${build}" != "x${host}" ; then
14311 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14312 # We already found the complete path
14313 ac_dir=`dirname $WINDRES_FOR_TARGET`
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14315 $as_echo "pre-installed in $ac_dir" >&6; }
14316 else
14317 # Canadian cross, just use what we found
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14319 $as_echo "pre-installed" >&6; }
14320 fi
14321 else
14322 ok=yes
14323 case " ${configdirs} " in
14324 *" binutils "*) ;;
14325 *) ok=no ;;
14326 esac
14327
14328 if test $ok = yes; then
14329 # An in-tree tool is available and we can use it
14330 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14332 $as_echo "just compiled" >&6; }
14333 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14334 # We already found the complete path
14335 ac_dir=`dirname $WINDRES_FOR_TARGET`
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14337 $as_echo "pre-installed in $ac_dir" >&6; }
14338 elif test "x$target" = "x$host"; then
14339 # We can use an host tool
14340 WINDRES_FOR_TARGET='$(WINDRES)'
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14342 $as_echo "host tool" >&6; }
14343 else
14344 # We need a cross tool
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14346 $as_echo "pre-installed" >&6; }
14347 fi
14348 fi
14349
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14351 $as_echo_n "checking where to find the target windmc... " >&6; }
14352 if test "x${build}" != "x${host}" ; then
14353 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14354 # We already found the complete path
14355 ac_dir=`dirname $WINDMC_FOR_TARGET`
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14357 $as_echo "pre-installed in $ac_dir" >&6; }
14358 else
14359 # Canadian cross, just use what we found
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14361 $as_echo "pre-installed" >&6; }
14362 fi
14363 else
14364 ok=yes
14365 case " ${configdirs} " in
14366 *" binutils "*) ;;
14367 *) ok=no ;;
14368 esac
14369
14370 if test $ok = yes; then
14371 # An in-tree tool is available and we can use it
14372 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14374 $as_echo "just compiled" >&6; }
14375 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14376 # We already found the complete path
14377 ac_dir=`dirname $WINDMC_FOR_TARGET`
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14379 $as_echo "pre-installed in $ac_dir" >&6; }
14380 elif test "x$target" = "x$host"; then
14381 # We can use an host tool
14382 WINDMC_FOR_TARGET='$(WINDMC)'
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14384 $as_echo "host tool" >&6; }
14385 else
14386 # We need a cross tool
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388 $as_echo "pre-installed" >&6; }
14389 fi
14390 fi
14391
14392
14393
14394
14395
14396 # Certain tools may need extra flags.
14397 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14398 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14399 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14400
14401 # When building target libraries, except in a Canadian cross, we use
14402 # the same toolchain as the compiler we just built.
14403 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14404 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14405 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14406 if test $host = $build; then
14407 case " $configdirs " in
14408 *" gcc "*)
14409 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14410 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14411 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14412 ;;
14413 esac
14414 fi
14415
14416
14417
14418
14419
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14421 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14422 # Check whether --enable-maintainer-mode was given.
14423 if test "${enable_maintainer_mode+set}" = set; then :
14424 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14425 else
14426 USE_MAINTAINER_MODE=no
14427 fi
14428
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14430 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14431
14432
14433 if test "$USE_MAINTAINER_MODE" = yes; then
14434 MAINTAINER_MODE_TRUE=
14435 MAINTAINER_MODE_FALSE='#'
14436 else
14437 MAINTAINER_MODE_TRUE='#'
14438 MAINTAINER_MODE_FALSE=
14439 fi
14440 MAINT=$MAINTAINER_MODE_TRUE
14441
14442 # ---------------------
14443 # GCC bootstrap support
14444 # ---------------------
14445
14446 # Stage specific cflags for build.
14447 stage1_cflags="-g"
14448 case $build in
14449 vax-*-*)
14450 case ${GCC} in
14451 yes) stage1_cflags="-g -Wa,-J" ;;
14452 *) stage1_cflags="-g -J" ;;
14453 esac ;;
14454 esac
14455
14456
14457
14458 # Enable --enable-checking in stage1 of the compiler.
14459 # Check whether --enable-stage1-checking was given.
14460 if test "${enable_stage1_checking+set}" = set; then :
14461 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14462 else
14463 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14464 stage1_checking=--enable-checking=yes,types
14465 else
14466 stage1_checking=--enable-checking=$enable_checking,types
14467 fi
14468 fi
14469
14470
14471
14472 # Enable -Werror in bootstrap stage2 and later.
14473 # Check whether --enable-werror was given.
14474 if test "${enable_werror+set}" = set; then :
14475 enableval=$enable_werror;
14476 else
14477 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14478 enable_werror=yes
14479 else
14480 enable_werror=no
14481 fi
14482 fi
14483
14484 case ${enable_werror} in
14485 yes) stage2_werror_flag="--enable-werror-always" ;;
14486 *) stage2_werror_flag="" ;;
14487 esac
14488
14489
14490 # Specify what files to not compare during bootstrap.
14491
14492 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14493 case "$target" in
14494 hppa*64*-*-hpux*) ;;
14495 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14496 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14497 esac
14498
14499
14500 ac_config_files="$ac_config_files Makefile"
14501
14502 cat >confcache <<\_ACEOF
14503 # This file is a shell script that caches the results of configure
14504 # tests run on this system so they can be shared between configure
14505 # scripts and configure runs, see configure's option --config-cache.
14506 # It is not useful on other systems. If it contains results you don't
14507 # want to keep, you may remove or edit it.
14508 #
14509 # config.status only pays attention to the cache file if you give it
14510 # the --recheck option to rerun configure.
14511 #
14512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14514 # following values.
14515
14516 _ACEOF
14517
14518 # The following way of writing the cache mishandles newlines in values,
14519 # but we know of no workaround that is simple, portable, and efficient.
14520 # So, we kill variables containing newlines.
14521 # Ultrix sh set writes to stderr and can't be redirected directly,
14522 # and sets the high bit in the cache file unless we assign to the vars.
14523 (
14524 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14525 eval ac_val=\$$ac_var
14526 case $ac_val in #(
14527 *${as_nl}*)
14528 case $ac_var in #(
14529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14531 esac
14532 case $ac_var in #(
14533 _ | IFS | as_nl) ;; #(
14534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14535 *) { eval $ac_var=; unset $ac_var;} ;;
14536 esac ;;
14537 esac
14538 done
14539
14540 (set) 2>&1 |
14541 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14542 *${as_nl}ac_space=\ *)
14543 # `set' does not quote correctly, so add quotes: double-quote
14544 # substitution turns \\\\ into \\, and sed turns \\ into \.
14545 sed -n \
14546 "s/'/'\\\\''/g;
14547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14548 ;; #(
14549 *)
14550 # `set' quotes correctly as required by POSIX, so do not add quotes.
14551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14552 ;;
14553 esac |
14554 sort
14555 ) |
14556 sed '
14557 /^ac_cv_env_/b end
14558 t clear
14559 :clear
14560 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14561 t end
14562 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14563 :end' >>confcache
14564 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14565 if test -w "$cache_file"; then
14566 test "x$cache_file" != "x/dev/null" &&
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14568 $as_echo "$as_me: updating cache $cache_file" >&6;}
14569 cat confcache >$cache_file
14570 else
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14572 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14573 fi
14574 fi
14575 rm -f confcache
14576
14577 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14578 # Let make expand exec_prefix.
14579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14580
14581 # Transform confdefs.h into DEFS.
14582 # Protect against shell expansion while executing Makefile rules.
14583 # Protect against Makefile macro expansion.
14584 #
14585 # If the first sed substitution is executed (which looks for macros that
14586 # take arguments), then branch to the quote section. Otherwise,
14587 # look for a macro that doesn't take arguments.
14588 ac_script='
14589 :mline
14590 /\\$/{
14591 N
14592 s,\\\n,,
14593 b mline
14594 }
14595 t clear
14596 :clear
14597 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14598 t quote
14599 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14600 t quote
14601 b any
14602 :quote
14603 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14604 s/\[/\\&/g
14605 s/\]/\\&/g
14606 s/\$/$$/g
14607 H
14608 :any
14609 ${
14610 g
14611 s/^\n//
14612 s/\n/ /g
14613 p
14614 }
14615 '
14616 DEFS=`sed -n "$ac_script" confdefs.h`
14617
14618
14619 ac_libobjs=
14620 ac_ltlibobjs=
14621 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14622 # 1. Remove the extension, and $U if already installed.
14623 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14624 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14625 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14626 # will be set to the directory where LIBOBJS objects are built.
14627 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14628 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14629 done
14630 LIBOBJS=$ac_libobjs
14631
14632 LTLIBOBJS=$ac_ltlibobjs
14633
14634
14635
14636 : ${CONFIG_STATUS=./config.status}
14637 ac_write_fail=0
14638 ac_clean_files_save=$ac_clean_files
14639 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14641 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14642 as_write_fail=0
14643 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14644 #! $SHELL
14645 # Generated by $as_me.
14646 # Run this file to recreate the current configuration.
14647 # Compiler output produced by configure, useful for debugging
14648 # configure, is in config.log if it exists.
14649
14650 debug=false
14651 ac_cs_recheck=false
14652 ac_cs_silent=false
14653
14654 SHELL=\${CONFIG_SHELL-$SHELL}
14655 export SHELL
14656 _ASEOF
14657 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14658 ## -------------------- ##
14659 ## M4sh Initialization. ##
14660 ## -------------------- ##
14661
14662 # Be more Bourne compatible
14663 DUALCASE=1; export DUALCASE # for MKS sh
14664 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14665 emulate sh
14666 NULLCMD=:
14667 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14668 # is contrary to our usage. Disable this feature.
14669 alias -g '${1+"$@"}'='"$@"'
14670 setopt NO_GLOB_SUBST
14671 else
14672 case `(set -o) 2>/dev/null` in #(
14673 *posix*) :
14674 set -o posix ;; #(
14675 *) :
14676 ;;
14677 esac
14678 fi
14679
14680
14681 as_nl='
14682 '
14683 export as_nl
14684 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14685 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14686 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14687 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14688 # Prefer a ksh shell builtin over an external printf program on Solaris,
14689 # but without wasting forks for bash or zsh.
14690 if test -z "$BASH_VERSION$ZSH_VERSION" \
14691 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14692 as_echo='print -r --'
14693 as_echo_n='print -rn --'
14694 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14695 as_echo='printf %s\n'
14696 as_echo_n='printf %s'
14697 else
14698 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14699 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14700 as_echo_n='/usr/ucb/echo -n'
14701 else
14702 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14703 as_echo_n_body='eval
14704 arg=$1;
14705 case $arg in #(
14706 *"$as_nl"*)
14707 expr "X$arg" : "X\\(.*\\)$as_nl";
14708 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14709 esac;
14710 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14711 '
14712 export as_echo_n_body
14713 as_echo_n='sh -c $as_echo_n_body as_echo'
14714 fi
14715 export as_echo_body
14716 as_echo='sh -c $as_echo_body as_echo'
14717 fi
14718
14719 # The user is always right.
14720 if test "${PATH_SEPARATOR+set}" != set; then
14721 PATH_SEPARATOR=:
14722 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14723 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14724 PATH_SEPARATOR=';'
14725 }
14726 fi
14727
14728
14729 # IFS
14730 # We need space, tab and new line, in precisely that order. Quoting is
14731 # there to prevent editors from complaining about space-tab.
14732 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14733 # splitting by setting IFS to empty value.)
14734 IFS=" "" $as_nl"
14735
14736 # Find who we are. Look in the path if we contain no directory separator.
14737 case $0 in #((
14738 *[\\/]* ) as_myself=$0 ;;
14739 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14740 for as_dir in $PATH
14741 do
14742 IFS=$as_save_IFS
14743 test -z "$as_dir" && as_dir=.
14744 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14745 done
14746 IFS=$as_save_IFS
14747
14748 ;;
14749 esac
14750 # We did not find ourselves, most probably we were run as `sh COMMAND'
14751 # in which case we are not to be found in the path.
14752 if test "x$as_myself" = x; then
14753 as_myself=$0
14754 fi
14755 if test ! -f "$as_myself"; then
14756 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14757 exit 1
14758 fi
14759
14760 # Unset variables that we do not need and which cause bugs (e.g. in
14761 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14762 # suppresses any "Segmentation fault" message there. '((' could
14763 # trigger a bug in pdksh 5.2.14.
14764 for as_var in BASH_ENV ENV MAIL MAILPATH
14765 do eval test x\${$as_var+set} = xset \
14766 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14767 done
14768 PS1='$ '
14769 PS2='> '
14770 PS4='+ '
14771
14772 # NLS nuisances.
14773 LC_ALL=C
14774 export LC_ALL
14775 LANGUAGE=C
14776 export LANGUAGE
14777
14778 # CDPATH.
14779 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14780
14781
14782 # as_fn_error ERROR [LINENO LOG_FD]
14783 # ---------------------------------
14784 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14785 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14786 # script with status $?, using 1 if that was 0.
14787 as_fn_error ()
14788 {
14789 as_status=$?; test $as_status -eq 0 && as_status=1
14790 if test "$3"; then
14791 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14792 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14793 fi
14794 $as_echo "$as_me: error: $1" >&2
14795 as_fn_exit $as_status
14796 } # as_fn_error
14797
14798
14799 # as_fn_set_status STATUS
14800 # -----------------------
14801 # Set $? to STATUS, without forking.
14802 as_fn_set_status ()
14803 {
14804 return $1
14805 } # as_fn_set_status
14806
14807 # as_fn_exit STATUS
14808 # -----------------
14809 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14810 as_fn_exit ()
14811 {
14812 set +e
14813 as_fn_set_status $1
14814 exit $1
14815 } # as_fn_exit
14816
14817 # as_fn_unset VAR
14818 # ---------------
14819 # Portably unset VAR.
14820 as_fn_unset ()
14821 {
14822 { eval $1=; unset $1;}
14823 }
14824 as_unset=as_fn_unset
14825 # as_fn_append VAR VALUE
14826 # ----------------------
14827 # Append the text in VALUE to the end of the definition contained in VAR. Take
14828 # advantage of any shell optimizations that allow amortized linear growth over
14829 # repeated appends, instead of the typical quadratic growth present in naive
14830 # implementations.
14831 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14832 eval 'as_fn_append ()
14833 {
14834 eval $1+=\$2
14835 }'
14836 else
14837 as_fn_append ()
14838 {
14839 eval $1=\$$1\$2
14840 }
14841 fi # as_fn_append
14842
14843 # as_fn_arith ARG...
14844 # ------------------
14845 # Perform arithmetic evaluation on the ARGs, and store the result in the
14846 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14847 # must be portable across $(()) and expr.
14848 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14849 eval 'as_fn_arith ()
14850 {
14851 as_val=$(( $* ))
14852 }'
14853 else
14854 as_fn_arith ()
14855 {
14856 as_val=`expr "$@" || test $? -eq 1`
14857 }
14858 fi # as_fn_arith
14859
14860
14861 if expr a : '\(a\)' >/dev/null 2>&1 &&
14862 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14863 as_expr=expr
14864 else
14865 as_expr=false
14866 fi
14867
14868 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14869 as_basename=basename
14870 else
14871 as_basename=false
14872 fi
14873
14874 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14875 as_dirname=dirname
14876 else
14877 as_dirname=false
14878 fi
14879
14880 as_me=`$as_basename -- "$0" ||
14881 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14882 X"$0" : 'X\(//\)$' \| \
14883 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14884 $as_echo X/"$0" |
14885 sed '/^.*\/\([^/][^/]*\)\/*$/{
14886 s//\1/
14887 q
14888 }
14889 /^X\/\(\/\/\)$/{
14890 s//\1/
14891 q
14892 }
14893 /^X\/\(\/\).*/{
14894 s//\1/
14895 q
14896 }
14897 s/.*/./; q'`
14898
14899 # Avoid depending upon Character Ranges.
14900 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14901 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14902 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14903 as_cr_digits='0123456789'
14904 as_cr_alnum=$as_cr_Letters$as_cr_digits
14905
14906 ECHO_C= ECHO_N= ECHO_T=
14907 case `echo -n x` in #(((((
14908 -n*)
14909 case `echo 'xy\c'` in
14910 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14911 xy) ECHO_C='\c';;
14912 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14913 ECHO_T=' ';;
14914 esac;;
14915 *)
14916 ECHO_N='-n';;
14917 esac
14918
14919 rm -f conf$$ conf$$.exe conf$$.file
14920 if test -d conf$$.dir; then
14921 rm -f conf$$.dir/conf$$.file
14922 else
14923 rm -f conf$$.dir
14924 mkdir conf$$.dir 2>/dev/null
14925 fi
14926 if (echo >conf$$.file) 2>/dev/null; then
14927 if ln -s conf$$.file conf$$ 2>/dev/null; then
14928 as_ln_s='ln -s'
14929 # ... but there are two gotchas:
14930 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14931 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14932 # In both cases, we have to default to `cp -p'.
14933 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14934 as_ln_s='cp -p'
14935 elif ln conf$$.file conf$$ 2>/dev/null; then
14936 as_ln_s=ln
14937 else
14938 as_ln_s='cp -p'
14939 fi
14940 else
14941 as_ln_s='cp -p'
14942 fi
14943 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14944 rmdir conf$$.dir 2>/dev/null
14945
14946
14947 # as_fn_mkdir_p
14948 # -------------
14949 # Create "$as_dir" as a directory, including parents if necessary.
14950 as_fn_mkdir_p ()
14951 {
14952
14953 case $as_dir in #(
14954 -*) as_dir=./$as_dir;;
14955 esac
14956 test -d "$as_dir" || eval $as_mkdir_p || {
14957 as_dirs=
14958 while :; do
14959 case $as_dir in #(
14960 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14961 *) as_qdir=$as_dir;;
14962 esac
14963 as_dirs="'$as_qdir' $as_dirs"
14964 as_dir=`$as_dirname -- "$as_dir" ||
14965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14966 X"$as_dir" : 'X\(//\)[^/]' \| \
14967 X"$as_dir" : 'X\(//\)$' \| \
14968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14969 $as_echo X"$as_dir" |
14970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14971 s//\1/
14972 q
14973 }
14974 /^X\(\/\/\)[^/].*/{
14975 s//\1/
14976 q
14977 }
14978 /^X\(\/\/\)$/{
14979 s//\1/
14980 q
14981 }
14982 /^X\(\/\).*/{
14983 s//\1/
14984 q
14985 }
14986 s/.*/./; q'`
14987 test -d "$as_dir" && break
14988 done
14989 test -z "$as_dirs" || eval "mkdir $as_dirs"
14990 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14991
14992
14993 } # as_fn_mkdir_p
14994 if mkdir -p . 2>/dev/null; then
14995 as_mkdir_p='mkdir -p "$as_dir"'
14996 else
14997 test -d ./-p && rmdir ./-p
14998 as_mkdir_p=false
14999 fi
15000
15001 if test -x / >/dev/null 2>&1; then
15002 as_test_x='test -x'
15003 else
15004 if ls -dL / >/dev/null 2>&1; then
15005 as_ls_L_option=L
15006 else
15007 as_ls_L_option=
15008 fi
15009 as_test_x='
15010 eval sh -c '\''
15011 if test -d "$1"; then
15012 test -d "$1/.";
15013 else
15014 case $1 in #(
15015 -*)set "./$1";;
15016 esac;
15017 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15018 ???[sx]*):;;*)false;;esac;fi
15019 '\'' sh
15020 '
15021 fi
15022 as_executable_p=$as_test_x
15023
15024 # Sed expression to map a string onto a valid CPP name.
15025 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15026
15027 # Sed expression to map a string onto a valid variable name.
15028 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15029
15030
15031 exec 6>&1
15032 ## ----------------------------------- ##
15033 ## Main body of $CONFIG_STATUS script. ##
15034 ## ----------------------------------- ##
15035 _ASEOF
15036 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15037
15038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15039 # Save the log message, to keep $0 and so on meaningful, and to
15040 # report actual input values of CONFIG_FILES etc. instead of their
15041 # values after options handling.
15042 ac_log="
15043 This file was extended by $as_me, which was
15044 generated by GNU Autoconf 2.64. Invocation command line was
15045
15046 CONFIG_FILES = $CONFIG_FILES
15047 CONFIG_HEADERS = $CONFIG_HEADERS
15048 CONFIG_LINKS = $CONFIG_LINKS
15049 CONFIG_COMMANDS = $CONFIG_COMMANDS
15050 $ $0 $@
15051
15052 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15053 "
15054
15055 _ACEOF
15056
15057 case $ac_config_files in *"
15058 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15059 esac
15060
15061
15062
15063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15064 # Files that config.status was made for.
15065 config_files="$ac_config_files"
15066
15067 _ACEOF
15068
15069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15070 ac_cs_usage="\
15071 \`$as_me' instantiates files and other configuration actions
15072 from templates according to the current configuration. Unless the files
15073 and actions are specified as TAGs, all are instantiated by default.
15074
15075 Usage: $0 [OPTION]... [TAG]...
15076
15077 -h, --help print this help, then exit
15078 -V, --version print version number and configuration settings, then exit
15079 -q, --quiet, --silent
15080 do not print progress messages
15081 -d, --debug don't remove temporary files
15082 --recheck update $as_me by reconfiguring in the same conditions
15083 --file=FILE[:TEMPLATE]
15084 instantiate the configuration file FILE
15085
15086 Configuration files:
15087 $config_files
15088
15089 Report bugs to the package provider."
15090
15091 _ACEOF
15092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15093 ac_cs_version="\\
15094 config.status
15095 configured by $0, generated by GNU Autoconf 2.64,
15096 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15097
15098 Copyright (C) 2009 Free Software Foundation, Inc.
15099 This config.status script is free software; the Free Software Foundation
15100 gives unlimited permission to copy, distribute and modify it."
15101
15102 ac_pwd='$ac_pwd'
15103 srcdir='$srcdir'
15104 INSTALL='$INSTALL'
15105 AWK='$AWK'
15106 test -n "\$AWK" || AWK=awk
15107 _ACEOF
15108
15109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15110 # The default lists apply if the user does not specify any file.
15111 ac_need_defaults=:
15112 while test $# != 0
15113 do
15114 case $1 in
15115 --*=*)
15116 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15117 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15118 ac_shift=:
15119 ;;
15120 *)
15121 ac_option=$1
15122 ac_optarg=$2
15123 ac_shift=shift
15124 ;;
15125 esac
15126
15127 case $ac_option in
15128 # Handling of the options.
15129 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15130 ac_cs_recheck=: ;;
15131 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15132 $as_echo "$ac_cs_version"; exit ;;
15133 --debug | --debu | --deb | --de | --d | -d )
15134 debug=: ;;
15135 --file | --fil | --fi | --f )
15136 $ac_shift
15137 case $ac_optarg in
15138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15139 esac
15140 as_fn_append CONFIG_FILES " '$ac_optarg'"
15141 ac_need_defaults=false;;
15142 --he | --h | --help | --hel | -h )
15143 $as_echo "$ac_cs_usage"; exit ;;
15144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15146 ac_cs_silent=: ;;
15147
15148 # This is an error.
15149 -*) as_fn_error "unrecognized option: \`$1'
15150 Try \`$0 --help' for more information." ;;
15151
15152 *) as_fn_append ac_config_targets " $1"
15153 ac_need_defaults=false ;;
15154
15155 esac
15156 shift
15157 done
15158
15159 ac_configure_extra_args=
15160
15161 if $ac_cs_silent; then
15162 exec 6>/dev/null
15163 ac_configure_extra_args="$ac_configure_extra_args --silent"
15164 fi
15165
15166 _ACEOF
15167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15168 if \$ac_cs_recheck; then
15169 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15170 shift
15171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15172 CONFIG_SHELL='$SHELL'
15173 export CONFIG_SHELL
15174 exec "\$@"
15175 fi
15176
15177 _ACEOF
15178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15179 exec 5>>config.log
15180 {
15181 echo
15182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15183 ## Running $as_me. ##
15184 _ASBOX
15185 $as_echo "$ac_log"
15186 } >&5
15187
15188 _ACEOF
15189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15190 #
15191 # INIT-COMMANDS
15192 #
15193 extrasub_build="$extrasub_build"
15194 extrasub_host="$extrasub_host"
15195 extrasub_target="$extrasub_target"
15196
15197 _ACEOF
15198
15199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15200
15201 # Handling of arguments.
15202 for ac_config_target in $ac_config_targets
15203 do
15204 case $ac_config_target in
15205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15206
15207 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15208 esac
15209 done
15210
15211
15212 # If the user did not use the arguments to specify the items to instantiate,
15213 # then the envvar interface is used. Set only those that are not.
15214 # We use the long form for the default assignment because of an extremely
15215 # bizarre bug on SunOS 4.1.3.
15216 if $ac_need_defaults; then
15217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15218 fi
15219
15220 # Have a temporary directory for convenience. Make it in the build tree
15221 # simply because there is no reason against having it here, and in addition,
15222 # creating and moving files from /tmp can sometimes cause problems.
15223 # Hook for its removal unless debugging.
15224 # Note that there is a small window in which the directory will not be cleaned:
15225 # after its creation but before its name has been assigned to `$tmp'.
15226 $debug ||
15227 {
15228 tmp=
15229 trap 'exit_status=$?
15230 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15231 ' 0
15232 trap 'as_fn_exit 1' 1 2 13 15
15233 }
15234 # Create a (secure) tmp directory for tmp files.
15235
15236 {
15237 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15238 test -n "$tmp" && test -d "$tmp"
15239 } ||
15240 {
15241 tmp=./conf$$-$RANDOM
15242 (umask 077 && mkdir "$tmp")
15243 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15244
15245 # Set up the scripts for CONFIG_FILES section.
15246 # No need to generate them if there are no CONFIG_FILES.
15247 # This happens for instance with `./config.status config.h'.
15248 if test -n "$CONFIG_FILES"; then
15249
15250 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15251 ac_cs_awk_getline=:
15252 ac_cs_awk_pipe_init=
15253 ac_cs_awk_read_file='
15254 while ((getline aline < (F[key])) > 0)
15255 print(aline)
15256 close(F[key])'
15257 ac_cs_awk_pipe_fini=
15258 else
15259 ac_cs_awk_getline=false
15260 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15261 ac_cs_awk_read_file='
15262 print "|#_!!_#|"
15263 print "cat " F[key] " &&"
15264 '$ac_cs_awk_pipe_init
15265 # The final `:' finishes the AND list.
15266 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15267 fi
15268 ac_cr=`echo X | tr X '\015'`
15269 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15270 # But we know of no other shell where ac_cr would be empty at this
15271 # point, so we can use a bashism as a fallback.
15272 if test "x$ac_cr" = x; then
15273 eval ac_cr=\$\'\\r\'
15274 fi
15275 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15276 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15277 ac_cs_awk_cr='\r'
15278 else
15279 ac_cs_awk_cr=$ac_cr
15280 fi
15281
15282 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15283 _ACEOF
15284
15285 # Create commands to substitute file output variables.
15286 {
15287 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15288 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15289 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15290 echo "_ACAWK" &&
15291 echo "_ACEOF"
15292 } >conf$$files.sh &&
15293 . ./conf$$files.sh ||
15294 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15295 rm -f conf$$files.sh
15296
15297 {
15298 echo "cat >conf$$subs.awk <<_ACEOF" &&
15299 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15300 echo "_ACEOF"
15301 } >conf$$subs.sh ||
15302 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15303 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15304 ac_delim='%!_!# '
15305 for ac_last_try in false false false false false :; do
15306 . ./conf$$subs.sh ||
15307 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15308
15309 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15310 if test $ac_delim_n = $ac_delim_num; then
15311 break
15312 elif $ac_last_try; then
15313 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15314 else
15315 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15316 fi
15317 done
15318 rm -f conf$$subs.sh
15319
15320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15321 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15322 _ACEOF
15323 sed -n '
15324 h
15325 s/^/S["/; s/!.*/"]=/
15326 p
15327 g
15328 s/^[^!]*!//
15329 :repl
15330 t repl
15331 s/'"$ac_delim"'$//
15332 t delim
15333 :nl
15334 h
15335 s/\(.\{148\}\).*/\1/
15336 t more1
15337 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15338 p
15339 n
15340 b repl
15341 :more1
15342 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15343 p
15344 g
15345 s/.\{148\}//
15346 t nl
15347 :delim
15348 h
15349 s/\(.\{148\}\).*/\1/
15350 t more2
15351 s/["\\]/\\&/g; s/^/"/; s/$/"/
15352 p
15353 b
15354 :more2
15355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15356 p
15357 g
15358 s/.\{148\}//
15359 t delim
15360 ' <conf$$subs.awk | sed '
15361 /^[^""]/{
15362 N
15363 s/\n//
15364 }
15365 ' >>$CONFIG_STATUS || ac_write_fail=1
15366 rm -f conf$$subs.awk
15367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15368 _ACAWK
15369 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15370 for (key in S) S_is_set[key] = 1
15371 FS = "\a"
15372 \$ac_cs_awk_pipe_init
15373 }
15374 {
15375 line = $ 0
15376 nfields = split(line, field, "@")
15377 substed = 0
15378 len = length(field[1])
15379 for (i = 2; i < nfields; i++) {
15380 key = field[i]
15381 keylen = length(key)
15382 if (S_is_set[key]) {
15383 value = S[key]
15384 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15385 len += length(value) + length(field[++i])
15386 substed = 1
15387 } else
15388 len += 1 + keylen
15389 }
15390 if (nfields == 3 && !substed) {
15391 key = field[2]
15392 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15393 \$ac_cs_awk_read_file
15394 next
15395 }
15396 }
15397 print line
15398 }
15399 \$ac_cs_awk_pipe_fini
15400 _ACAWK
15401 _ACEOF
15402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15403 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15404 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15405 else
15406 cat
15407 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15408 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15409 _ACEOF
15410
15411 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15412 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15413 # trailing colons and then remove the whole line if VPATH becomes empty
15414 # (actually we leave an empty line to preserve line numbers).
15415 if test "x$srcdir" = x.; then
15416 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15417 s/:*\$(srcdir):*/:/
15418 s/:*\${srcdir}:*/:/
15419 s/:*@srcdir@:*/:/
15420 s/^\([^=]*=[ ]*\):*/\1/
15421 s/:*$//
15422 s/^[^=]*=[ ]*$//
15423 }'
15424 fi
15425
15426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15427 fi # test -n "$CONFIG_FILES"
15428
15429
15430 eval set X " :F $CONFIG_FILES "
15431 shift
15432 for ac_tag
15433 do
15434 case $ac_tag in
15435 :[FHLC]) ac_mode=$ac_tag; continue;;
15436 esac
15437 case $ac_mode$ac_tag in
15438 :[FHL]*:*);;
15439 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15440 :[FH]-) ac_tag=-:-;;
15441 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15442 esac
15443 ac_save_IFS=$IFS
15444 IFS=:
15445 set x $ac_tag
15446 IFS=$ac_save_IFS
15447 shift
15448 ac_file=$1
15449 shift
15450
15451 case $ac_mode in
15452 :L) ac_source=$1;;
15453 :[FH])
15454 ac_file_inputs=
15455 for ac_f
15456 do
15457 case $ac_f in
15458 -) ac_f="$tmp/stdin";;
15459 *) # Look for the file first in the build tree, then in the source tree
15460 # (if the path is not absolute). The absolute path cannot be DOS-style,
15461 # because $ac_f cannot contain `:'.
15462 test -f "$ac_f" ||
15463 case $ac_f in
15464 [\\/$]*) false;;
15465 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15466 esac ||
15467 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15468 esac
15469 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15470 as_fn_append ac_file_inputs " '$ac_f'"
15471 done
15472
15473 # Let's still pretend it is `configure' which instantiates (i.e., don't
15474 # use $as_me), people would be surprised to read:
15475 # /* config.h. Generated by config.status. */
15476 configure_input='Generated from '`
15477 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15478 `' by configure.'
15479 if test x"$ac_file" != x-; then
15480 configure_input="$ac_file. $configure_input"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15482 $as_echo "$as_me: creating $ac_file" >&6;}
15483 fi
15484 # Neutralize special characters interpreted by sed in replacement strings.
15485 case $configure_input in #(
15486 *\&* | *\|* | *\\* )
15487 ac_sed_conf_input=`$as_echo "$configure_input" |
15488 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15489 *) ac_sed_conf_input=$configure_input;;
15490 esac
15491
15492 case $ac_tag in
15493 *:-:* | *:-) cat >"$tmp/stdin" \
15494 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15495 esac
15496 ;;
15497 esac
15498
15499 ac_dir=`$as_dirname -- "$ac_file" ||
15500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15501 X"$ac_file" : 'X\(//\)[^/]' \| \
15502 X"$ac_file" : 'X\(//\)$' \| \
15503 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15504 $as_echo X"$ac_file" |
15505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15506 s//\1/
15507 q
15508 }
15509 /^X\(\/\/\)[^/].*/{
15510 s//\1/
15511 q
15512 }
15513 /^X\(\/\/\)$/{
15514 s//\1/
15515 q
15516 }
15517 /^X\(\/\).*/{
15518 s//\1/
15519 q
15520 }
15521 s/.*/./; q'`
15522 as_dir="$ac_dir"; as_fn_mkdir_p
15523 ac_builddir=.
15524
15525 case "$ac_dir" in
15526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15527 *)
15528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15529 # A ".." for each directory in $ac_dir_suffix.
15530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15531 case $ac_top_builddir_sub in
15532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15534 esac ;;
15535 esac
15536 ac_abs_top_builddir=$ac_pwd
15537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15538 # for backward compatibility:
15539 ac_top_builddir=$ac_top_build_prefix
15540
15541 case $srcdir in
15542 .) # We are building in place.
15543 ac_srcdir=.
15544 ac_top_srcdir=$ac_top_builddir_sub
15545 ac_abs_top_srcdir=$ac_pwd ;;
15546 [\\/]* | ?:[\\/]* ) # Absolute name.
15547 ac_srcdir=$srcdir$ac_dir_suffix;
15548 ac_top_srcdir=$srcdir
15549 ac_abs_top_srcdir=$srcdir ;;
15550 *) # Relative name.
15551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15552 ac_top_srcdir=$ac_top_build_prefix$srcdir
15553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15554 esac
15555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15556
15557
15558 case $ac_mode in
15559 :F)
15560 #
15561 # CONFIG_FILE
15562 #
15563
15564 case $INSTALL in
15565 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15566 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15567 esac
15568 _ACEOF
15569
15570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15571 # If the template does not know about datarootdir, expand it.
15572 # FIXME: This hack should be removed a few years after 2.60.
15573 ac_datarootdir_hack=; ac_datarootdir_seen=
15574 ac_sed_dataroot='
15575 /datarootdir/ {
15576 p
15577 q
15578 }
15579 /@datadir@/p
15580 /@docdir@/p
15581 /@infodir@/p
15582 /@localedir@/p
15583 /@mandir@/p'
15584 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15585 *datarootdir*) ac_datarootdir_seen=yes;;
15586 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15588 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15589 _ACEOF
15590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15591 ac_datarootdir_hack='
15592 s&@datadir@&$datadir&g
15593 s&@docdir@&$docdir&g
15594 s&@infodir@&$infodir&g
15595 s&@localedir@&$localedir&g
15596 s&@mandir@&$mandir&g
15597 s&\\\${datarootdir}&$datarootdir&g' ;;
15598 esac
15599 _ACEOF
15600
15601 # Neutralize VPATH when `$srcdir' = `.'.
15602 # Shell code in configure.ac might set extrasub.
15603 # FIXME: do we really want to maintain this feature?
15604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15605 ac_sed_extra="$ac_vpsub
15606 $extrasub
15607 _ACEOF
15608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15609 :t
15610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15611 s|@configure_input@|$ac_sed_conf_input|;t t
15612 s&@top_builddir@&$ac_top_builddir_sub&;t t
15613 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15614 s&@srcdir@&$ac_srcdir&;t t
15615 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15616 s&@top_srcdir@&$ac_top_srcdir&;t t
15617 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15618 s&@builddir@&$ac_builddir&;t t
15619 s&@abs_builddir@&$ac_abs_builddir&;t t
15620 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15621 s&@INSTALL@&$ac_INSTALL&;t t
15622 $ac_datarootdir_hack
15623 "
15624 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15625 if $ac_cs_awk_getline; then
15626 $AWK -f "$tmp/subs.awk"
15627 else
15628 $AWK -f "$tmp/subs.awk" | $SHELL
15629 fi >$tmp/out \
15630 || as_fn_error "could not create $ac_file" "$LINENO" 5
15631
15632 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15633 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15634 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15636 which seems to be undefined. Please make sure it is defined." >&5
15637 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15638 which seems to be undefined. Please make sure it is defined." >&2;}
15639
15640 rm -f "$tmp/stdin"
15641 case $ac_file in
15642 -) cat "$tmp/out" && rm -f "$tmp/out";;
15643 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15644 esac \
15645 || as_fn_error "could not create $ac_file" "$LINENO" 5
15646 ;;
15647
15648
15649
15650 esac
15651
15652
15653 case $ac_file$ac_mode in
15654 "Makefile":F) sed "$extrasub_build" Makefile |
15655 sed "$extrasub_host" |
15656 sed "$extrasub_target" > mf$$
15657 mv -f mf$$ Makefile ;;
15658
15659 esac
15660 done # for ac_tag
15661
15662
15663 as_fn_exit 0
15664 _ACEOF
15665 ac_clean_files=$ac_clean_files_save
15666
15667 test $ac_write_fail = 0 ||
15668 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15669
15670
15671 # configure is writing to config.log, and then calls config.status.
15672 # config.status does its own redirection, appending to config.log.
15673 # Unfortunately, on DOS this fails, as config.log is still kept open
15674 # by configure, so config.status won't be able to write to it; its
15675 # output is simply discarded. So we exec the FD to /dev/null,
15676 # effectively closing config.log, so it can be properly (re)opened and
15677 # appended to by config.status. When coming back to configure, we
15678 # need to make the FD available again.
15679 if test "$no_create" != yes; then
15680 ac_cs_success=:
15681 ac_config_status_args=
15682 test "$silent" = yes &&
15683 ac_config_status_args="$ac_config_status_args --quiet"
15684 exec 5>/dev/null
15685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15686 exec 5>>config.log
15687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15688 # would make configure fail if this is the last instruction.
15689 $ac_cs_success || as_fn_exit $?
15690 fi
15691 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15693 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15694 fi
15695
This page took 0.380262 seconds and 5 git commands to generate.