re PR inline-asm/61692 (ICE in extract_insn in recog.c for asm with many parameters)
[official-gcc.git] / libgcc / configure
blob87924653210b506dccc6a2e0039e6f15697c0048
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU C Runtime Library 1.0.
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.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
148 esac
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; }
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 :
164 else
165 exitcode=1; echo positional parameters were not saved.
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
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
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
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
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+"$@"}
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."
234 exit 1
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
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
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 ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
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/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
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"
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 ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
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 ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
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 ()
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
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
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
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
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
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/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
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
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 '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
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; }
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
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;;
460 ECHO_N='-n';;
461 esac
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
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'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
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
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=
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
518 as_executable_p=$as_test_x
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'"
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'"
527 exec 7<&0 </dev/null 6>&1
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`
535 # Initializations.
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=
546 # Identity of this package.
547 PACKAGE_NAME='GNU C Runtime Library'
548 PACKAGE_TARNAME='libgcc'
549 PACKAGE_VERSION='1.0'
550 PACKAGE_STRING='GNU C Runtime Library 1.0'
551 PACKAGE_BUGREPORT=''
552 PACKAGE_URL='http://www.gnu.org/software/libgcc/'
554 ac_unique_file="static-object.mk"
555 ac_includes_default='/* none */'
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 asm_hidden_op
559 extra_parts
560 cpu_type
561 thread_header
562 tm_defines
563 tm_file
564 tmake_file
565 sfp_machine_header
566 set_use_emutls
567 set_have_cc_tls
568 vis_hide
569 accel_dir_suffix
570 force_explicit_eh_registry
571 fixed_point
572 enable_decimal_float
573 decimal_float
574 long_double_type_size
575 double_type_size
577 OBJEXT
578 EXEEXT
579 ac_ct_CC
580 CPPFLAGS
581 LDFLAGS
582 CFLAGS
584 LN_S
585 STRIP
586 RANLIB
588 LIPO
590 toolexeclibdir
591 toolexecdir
592 target_subdir
593 host_subdir
594 build_subdir
595 build_libsubdir
596 target_noncanonical
597 host_noncanonical
599 INSTALL_DATA
600 INSTALL_SCRIPT
601 INSTALL_PROGRAM
602 MAINT
603 slibdir
604 PICFLAG
605 host_os
606 host_vendor
607 host_cpu
608 host
609 build_os
610 build_vendor
611 build_cpu
612 build
613 enable_vtable_verify
614 enable_shared
615 libgcc_topdir
616 target_alias
617 host_alias
618 build_alias
619 LIBS
620 ECHO_T
621 ECHO_N
622 ECHO_C
623 DEFS
624 mandir
625 localedir
626 libdir
627 psdir
628 pdfdir
629 dvidir
630 htmldir
631 infodir
632 docdir
633 oldincludedir
634 includedir
635 localstatedir
636 sharedstatedir
637 sysconfdir
638 datadir
639 datarootdir
640 libexecdir
641 sbindir
642 bindir
643 program_transform_name
644 prefix
645 exec_prefix
646 PACKAGE_URL
647 PACKAGE_BUGREPORT
648 PACKAGE_STRING
649 PACKAGE_VERSION
650 PACKAGE_TARNAME
651 PACKAGE_NAME
652 PATH_SEPARATOR
653 SHELL'
654 ac_subst_files=''
655 ac_user_opts='
656 enable_option_checking
657 with_target_subdir
658 with_cross_host
659 with_ld
660 enable_shared
661 enable_vtable_verify
662 enable_version_specific_runtime_libs
663 with_slibdir
664 enable_maintainer_mode
665 with_build_libsubdir
666 enable_decimal_float
667 with_system_libunwind
668 enable_sjlj_exceptions
669 enable_explicit_exception_frame_registration
670 with_glibc_version
671 enable_tls
673 ac_precious_vars='build_alias
674 host_alias
675 target_alias
677 CFLAGS
678 LDFLAGS
679 LIBS
680 CPPFLAGS
681 CPP'
684 # Initialize some variables set by options.
685 ac_init_help=
686 ac_init_version=false
687 ac_unrecognized_opts=
688 ac_unrecognized_sep=
689 # The variables have the same names as the options, with
690 # dashes changed to underlines.
691 cache_file=/dev/null
692 exec_prefix=NONE
693 no_create=
694 no_recursion=
695 prefix=NONE
696 program_prefix=NONE
697 program_suffix=NONE
698 program_transform_name=s,x,x,
699 silent=
700 site=
701 srcdir=
702 verbose=
703 x_includes=NONE
704 x_libraries=NONE
706 # Installation directory options.
707 # These are left unexpanded so users can "make install exec_prefix=/foo"
708 # and all the variables that are supposed to be based on exec_prefix
709 # by default will actually change.
710 # Use braces instead of parens because sh, perl, etc. also accept them.
711 # (The list follows the same order as the GNU Coding Standards.)
712 bindir='${exec_prefix}/bin'
713 sbindir='${exec_prefix}/sbin'
714 libexecdir='${exec_prefix}/libexec'
715 datarootdir='${prefix}/share'
716 datadir='${datarootdir}'
717 sysconfdir='${prefix}/etc'
718 sharedstatedir='${prefix}/com'
719 localstatedir='${prefix}/var'
720 includedir='${prefix}/include'
721 oldincludedir='/usr/include'
722 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
723 infodir='${datarootdir}/info'
724 htmldir='${docdir}'
725 dvidir='${docdir}'
726 pdfdir='${docdir}'
727 psdir='${docdir}'
728 libdir='${exec_prefix}/lib'
729 localedir='${datarootdir}/locale'
730 mandir='${datarootdir}/man'
732 ac_prev=
733 ac_dashdash=
734 for ac_option
736 # If the previous option needs an argument, assign it.
737 if test -n "$ac_prev"; then
738 eval $ac_prev=\$ac_option
739 ac_prev=
740 continue
743 case $ac_option in
744 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
745 *) ac_optarg=yes ;;
746 esac
748 # Accept the important Cygnus configure options, so we can diagnose typos.
750 case $ac_dashdash$ac_option in
752 ac_dashdash=yes ;;
754 -bindir | --bindir | --bindi | --bind | --bin | --bi)
755 ac_prev=bindir ;;
756 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
757 bindir=$ac_optarg ;;
759 -build | --build | --buil | --bui | --bu)
760 ac_prev=build_alias ;;
761 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
762 build_alias=$ac_optarg ;;
764 -cache-file | --cache-file | --cache-fil | --cache-fi \
765 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
766 ac_prev=cache_file ;;
767 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
768 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
769 cache_file=$ac_optarg ;;
771 --config-cache | -C)
772 cache_file=config.cache ;;
774 -datadir | --datadir | --datadi | --datad)
775 ac_prev=datadir ;;
776 -datadir=* | --datadir=* | --datadi=* | --datad=*)
777 datadir=$ac_optarg ;;
779 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
780 | --dataroo | --dataro | --datar)
781 ac_prev=datarootdir ;;
782 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
783 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
784 datarootdir=$ac_optarg ;;
786 -disable-* | --disable-*)
787 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
790 as_fn_error "invalid feature name: $ac_useropt"
791 ac_useropt_orig=$ac_useropt
792 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
793 case $ac_user_opts in
795 "enable_$ac_useropt"
796 "*) ;;
797 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
798 ac_unrecognized_sep=', ';;
799 esac
800 eval enable_$ac_useropt=no ;;
802 -docdir | --docdir | --docdi | --doc | --do)
803 ac_prev=docdir ;;
804 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
805 docdir=$ac_optarg ;;
807 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
808 ac_prev=dvidir ;;
809 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
810 dvidir=$ac_optarg ;;
812 -enable-* | --enable-*)
813 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
814 # Reject names that are not valid shell variable names.
815 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
816 as_fn_error "invalid feature name: $ac_useropt"
817 ac_useropt_orig=$ac_useropt
818 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
819 case $ac_user_opts in
821 "enable_$ac_useropt"
822 "*) ;;
823 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
824 ac_unrecognized_sep=', ';;
825 esac
826 eval enable_$ac_useropt=\$ac_optarg ;;
828 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
829 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
830 | --exec | --exe | --ex)
831 ac_prev=exec_prefix ;;
832 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
833 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
834 | --exec=* | --exe=* | --ex=*)
835 exec_prefix=$ac_optarg ;;
837 -gas | --gas | --ga | --g)
838 # Obsolete; use --with-gas.
839 with_gas=yes ;;
841 -help | --help | --hel | --he | -h)
842 ac_init_help=long ;;
843 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
844 ac_init_help=recursive ;;
845 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
846 ac_init_help=short ;;
848 -host | --host | --hos | --ho)
849 ac_prev=host_alias ;;
850 -host=* | --host=* | --hos=* | --ho=*)
851 host_alias=$ac_optarg ;;
853 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
854 ac_prev=htmldir ;;
855 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
856 | --ht=*)
857 htmldir=$ac_optarg ;;
859 -includedir | --includedir | --includedi | --included | --include \
860 | --includ | --inclu | --incl | --inc)
861 ac_prev=includedir ;;
862 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
863 | --includ=* | --inclu=* | --incl=* | --inc=*)
864 includedir=$ac_optarg ;;
866 -infodir | --infodir | --infodi | --infod | --info | --inf)
867 ac_prev=infodir ;;
868 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
869 infodir=$ac_optarg ;;
871 -libdir | --libdir | --libdi | --libd)
872 ac_prev=libdir ;;
873 -libdir=* | --libdir=* | --libdi=* | --libd=*)
874 libdir=$ac_optarg ;;
876 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
877 | --libexe | --libex | --libe)
878 ac_prev=libexecdir ;;
879 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
880 | --libexe=* | --libex=* | --libe=*)
881 libexecdir=$ac_optarg ;;
883 -localedir | --localedir | --localedi | --localed | --locale)
884 ac_prev=localedir ;;
885 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
886 localedir=$ac_optarg ;;
888 -localstatedir | --localstatedir | --localstatedi | --localstated \
889 | --localstate | --localstat | --localsta | --localst | --locals)
890 ac_prev=localstatedir ;;
891 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
892 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
893 localstatedir=$ac_optarg ;;
895 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
896 ac_prev=mandir ;;
897 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
898 mandir=$ac_optarg ;;
900 -nfp | --nfp | --nf)
901 # Obsolete; use --without-fp.
902 with_fp=no ;;
904 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
905 | --no-cr | --no-c | -n)
906 no_create=yes ;;
908 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
909 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
910 no_recursion=yes ;;
912 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
913 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
914 | --oldin | --oldi | --old | --ol | --o)
915 ac_prev=oldincludedir ;;
916 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
917 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
918 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
919 oldincludedir=$ac_optarg ;;
921 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
922 ac_prev=prefix ;;
923 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
924 prefix=$ac_optarg ;;
926 -program-prefix | --program-prefix | --program-prefi | --program-pref \
927 | --program-pre | --program-pr | --program-p)
928 ac_prev=program_prefix ;;
929 -program-prefix=* | --program-prefix=* | --program-prefi=* \
930 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
931 program_prefix=$ac_optarg ;;
933 -program-suffix | --program-suffix | --program-suffi | --program-suff \
934 | --program-suf | --program-su | --program-s)
935 ac_prev=program_suffix ;;
936 -program-suffix=* | --program-suffix=* | --program-suffi=* \
937 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
938 program_suffix=$ac_optarg ;;
940 -program-transform-name | --program-transform-name \
941 | --program-transform-nam | --program-transform-na \
942 | --program-transform-n | --program-transform- \
943 | --program-transform | --program-transfor \
944 | --program-transfo | --program-transf \
945 | --program-trans | --program-tran \
946 | --progr-tra | --program-tr | --program-t)
947 ac_prev=program_transform_name ;;
948 -program-transform-name=* | --program-transform-name=* \
949 | --program-transform-nam=* | --program-transform-na=* \
950 | --program-transform-n=* | --program-transform-=* \
951 | --program-transform=* | --program-transfor=* \
952 | --program-transfo=* | --program-transf=* \
953 | --program-trans=* | --program-tran=* \
954 | --progr-tra=* | --program-tr=* | --program-t=*)
955 program_transform_name=$ac_optarg ;;
957 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
958 ac_prev=pdfdir ;;
959 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
960 pdfdir=$ac_optarg ;;
962 -psdir | --psdir | --psdi | --psd | --ps)
963 ac_prev=psdir ;;
964 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
965 psdir=$ac_optarg ;;
967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
968 | -silent | --silent | --silen | --sile | --sil)
969 silent=yes ;;
971 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
972 ac_prev=sbindir ;;
973 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
974 | --sbi=* | --sb=*)
975 sbindir=$ac_optarg ;;
977 -sharedstatedir | --sharedstatedir | --sharedstatedi \
978 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
979 | --sharedst | --shareds | --shared | --share | --shar \
980 | --sha | --sh)
981 ac_prev=sharedstatedir ;;
982 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
983 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
984 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
985 | --sha=* | --sh=*)
986 sharedstatedir=$ac_optarg ;;
988 -site | --site | --sit)
989 ac_prev=site ;;
990 -site=* | --site=* | --sit=*)
991 site=$ac_optarg ;;
993 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
994 ac_prev=srcdir ;;
995 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
996 srcdir=$ac_optarg ;;
998 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
999 | --syscon | --sysco | --sysc | --sys | --sy)
1000 ac_prev=sysconfdir ;;
1001 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1002 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1003 sysconfdir=$ac_optarg ;;
1005 -target | --target | --targe | --targ | --tar | --ta | --t)
1006 ac_prev=target_alias ;;
1007 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1008 target_alias=$ac_optarg ;;
1010 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1011 verbose=yes ;;
1013 -version | --version | --versio | --versi | --vers | -V)
1014 ac_init_version=: ;;
1016 -with-* | --with-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 as_fn_error "invalid package name: $ac_useropt"
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1025 "with_$ac_useropt"
1026 "*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval with_$ac_useropt=\$ac_optarg ;;
1032 -without-* | --without-*)
1033 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error "invalid package name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1041 "with_$ac_useropt"
1042 "*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval with_$ac_useropt=no ;;
1048 --x)
1049 # Obsolete; use --with-x.
1050 with_x=yes ;;
1052 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1053 | --x-incl | --x-inc | --x-in | --x-i)
1054 ac_prev=x_includes ;;
1055 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1056 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1057 x_includes=$ac_optarg ;;
1059 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1060 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1061 ac_prev=x_libraries ;;
1062 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1063 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1064 x_libraries=$ac_optarg ;;
1066 -*) as_fn_error "unrecognized option: \`$ac_option'
1067 Try \`$0 --help' for more information."
1070 *=*)
1071 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1072 # Reject names that are not valid shell variable names.
1073 case $ac_envvar in #(
1074 '' | [0-9]* | *[!_$as_cr_alnum]* )
1075 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1076 esac
1077 eval $ac_envvar=\$ac_optarg
1078 export $ac_envvar ;;
1081 # FIXME: should be removed in autoconf 3.0.
1082 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1083 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1085 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1088 esac
1089 done
1091 if test -n "$ac_prev"; then
1092 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1093 as_fn_error "missing argument to $ac_option"
1096 if test -n "$ac_unrecognized_opts"; then
1097 case $enable_option_checking in
1098 no) ;;
1099 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1100 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1101 esac
1104 # Check all directory arguments for consistency.
1105 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1106 datadir sysconfdir sharedstatedir localstatedir includedir \
1107 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1108 libdir localedir mandir
1110 eval ac_val=\$$ac_var
1111 # Remove trailing slashes.
1112 case $ac_val in
1113 */ )
1114 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1115 eval $ac_var=\$ac_val;;
1116 esac
1117 # Be sure to have absolute directory names.
1118 case $ac_val in
1119 [\\/$]* | ?:[\\/]* ) continue;;
1120 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1121 esac
1122 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1123 done
1125 # There might be people who depend on the old broken behavior: `$host'
1126 # used to hold the argument of --host etc.
1127 # FIXME: To remove some day.
1128 build=$build_alias
1129 host=$host_alias
1130 target=$target_alias
1132 # FIXME: To remove some day.
1133 if test "x$host_alias" != x; then
1134 if test "x$build_alias" = x; then
1135 cross_compiling=maybe
1136 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1137 If a cross compiler is detected then cross compile mode will be used." >&2
1138 elif test "x$build_alias" != "x$host_alias"; then
1139 cross_compiling=yes
1143 ac_tool_prefix=
1144 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1146 test "$silent" = yes && exec 6>/dev/null
1149 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1150 ac_ls_di=`ls -di .` &&
1151 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1152 as_fn_error "working directory cannot be determined"
1153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154 as_fn_error "pwd does not report name of working directory"
1157 # Find the source files, if location was not specified.
1158 if test -z "$srcdir"; then
1159 ac_srcdir_defaulted=yes
1160 # Try the directory containing this script, then the parent directory.
1161 ac_confdir=`$as_dirname -- "$as_myself" ||
1162 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1163 X"$as_myself" : 'X\(//\)[^/]' \| \
1164 X"$as_myself" : 'X\(//\)$' \| \
1165 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1166 $as_echo X"$as_myself" |
1167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1168 s//\1/
1171 /^X\(\/\/\)[^/].*/{
1172 s//\1/
1175 /^X\(\/\/\)$/{
1176 s//\1/
1179 /^X\(\/\).*/{
1180 s//\1/
1183 s/.*/./; q'`
1184 srcdir=$ac_confdir
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186 srcdir=..
1188 else
1189 ac_srcdir_defaulted=no
1191 if test ! -r "$srcdir/$ac_unique_file"; then
1192 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1193 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1195 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1196 ac_abs_confdir=`(
1197 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1198 pwd)`
1199 # When building in place, set srcdir=.
1200 if test "$ac_abs_confdir" = "$ac_pwd"; then
1201 srcdir=.
1203 # Remove unnecessary trailing slashes from srcdir.
1204 # Double slashes in file names in object file debugging info
1205 # mess up M-x gdb in Emacs.
1206 case $srcdir in
1207 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1208 esac
1209 for ac_var in $ac_precious_vars; do
1210 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1211 eval ac_env_${ac_var}_value=\$${ac_var}
1212 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1213 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1214 done
1217 # Report the --help message.
1219 if test "$ac_init_help" = "long"; then
1220 # Omit some internal or obsolete options to make the list less imposing.
1221 # This message is too long to be a string in the A/UX 3.1 sh.
1222 cat <<_ACEOF
1223 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1225 Usage: $0 [OPTION]... [VAR=VALUE]...
1227 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1228 VAR=VALUE. See below for descriptions of some of the useful variables.
1230 Defaults for the options are specified in brackets.
1232 Configuration:
1233 -h, --help display this help and exit
1234 --help=short display options specific to this package
1235 --help=recursive display the short help of all the included packages
1236 -V, --version display version information and exit
1237 -q, --quiet, --silent do not print \`checking...' messages
1238 --cache-file=FILE cache test results in FILE [disabled]
1239 -C, --config-cache alias for \`--cache-file=config.cache'
1240 -n, --no-create do not create output files
1241 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1243 Installation directories:
1244 --prefix=PREFIX install architecture-independent files in PREFIX
1245 [$ac_default_prefix]
1246 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1247 [PREFIX]
1249 By default, \`make install' will install all the files in
1250 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1251 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1252 for instance \`--prefix=\$HOME'.
1254 For better control, use the options below.
1256 Fine tuning of the installation directories:
1257 --bindir=DIR user executables [EPREFIX/bin]
1258 --sbindir=DIR system admin executables [EPREFIX/sbin]
1259 --libexecdir=DIR program executables [EPREFIX/libexec]
1260 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1261 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1262 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1263 --libdir=DIR object code libraries [EPREFIX/lib]
1264 --includedir=DIR C header files [PREFIX/include]
1265 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1266 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1267 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1268 --infodir=DIR info documentation [DATAROOTDIR/info]
1269 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1270 --mandir=DIR man documentation [DATAROOTDIR/man]
1271 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1272 --htmldir=DIR html documentation [DOCDIR]
1273 --dvidir=DIR dvi documentation [DOCDIR]
1274 --pdfdir=DIR pdf documentation [DOCDIR]
1275 --psdir=DIR ps documentation [DOCDIR]
1276 _ACEOF
1278 cat <<\_ACEOF
1280 System types:
1281 --build=BUILD configure for building on BUILD [guessed]
1282 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1283 _ACEOF
1286 if test -n "$ac_init_help"; then
1287 case $ac_init_help in
1288 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1289 esac
1290 cat <<\_ACEOF
1292 Optional Features:
1293 --disable-option-checking ignore unrecognized --enable/--with options
1294 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1295 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1296 --disable-shared don't provide a shared libgcc
1297 --enable-vtable-verify Enable vtable verification feature
1298 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1299 --enable-maintainer-mode
1300 enable make rules and dependencies not useful (and
1301 sometimes confusing) to the casual installer
1302 --enable-decimal-float={no,yes,bid,dpd}
1303 enable decimal float extension to C. Selecting 'bid'
1304 or 'dpd' choses which decimal floating point format
1305 to use
1306 --enable-sjlj-exceptions
1307 force use of builtin_setjmp for exceptions
1308 --enable-explicit-exception-frame-registration
1309 register exception tables explicitly at module
1310 start, for use e.g. for compatibility with
1311 installations without PT_GNU_EH_FRAME support
1312 --enable-tls Use thread-local storage [default=yes]
1314 Optional Packages:
1315 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1316 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1317 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1318 --with-cross-host=HOST Configuring with a cross compiler
1319 --with-ld arrange to use the specified ld (full pathname)
1320 --with-slibdir=DIR shared libraries in DIR LIBDIR
1321 --with-build-libsubdir=DIR Directory where to find libraries for build system
1322 --with-system-libunwind use installed libunwind
1323 --with-glibc-version=M.N
1324 assume GCC used with glibc version M.N or later
1326 Some influential environment variables:
1327 CC C compiler command
1328 CFLAGS C compiler flags
1329 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1330 nonstandard directory <lib dir>
1331 LIBS libraries to pass to the linker, e.g. -l<library>
1332 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1333 you have headers in a nonstandard directory <include dir>
1334 CPP C preprocessor
1336 Use these variables to override the choices made by `configure' or to help
1337 it to find libraries and programs with nonstandard names/locations.
1339 Report bugs to the package provider.
1340 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1341 General help using GNU software: <http://www.gnu.org/gethelp/>.
1342 _ACEOF
1343 ac_status=$?
1346 if test "$ac_init_help" = "recursive"; then
1347 # If there are subdirs, report their specific --help.
1348 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1349 test -d "$ac_dir" ||
1350 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1351 continue
1352 ac_builddir=.
1354 case "$ac_dir" in
1355 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1358 # A ".." for each directory in $ac_dir_suffix.
1359 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1360 case $ac_top_builddir_sub in
1361 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1362 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1363 esac ;;
1364 esac
1365 ac_abs_top_builddir=$ac_pwd
1366 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1367 # for backward compatibility:
1368 ac_top_builddir=$ac_top_build_prefix
1370 case $srcdir in
1371 .) # We are building in place.
1372 ac_srcdir=.
1373 ac_top_srcdir=$ac_top_builddir_sub
1374 ac_abs_top_srcdir=$ac_pwd ;;
1375 [\\/]* | ?:[\\/]* ) # Absolute name.
1376 ac_srcdir=$srcdir$ac_dir_suffix;
1377 ac_top_srcdir=$srcdir
1378 ac_abs_top_srcdir=$srcdir ;;
1379 *) # Relative name.
1380 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1381 ac_top_srcdir=$ac_top_build_prefix$srcdir
1382 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1383 esac
1384 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1386 cd "$ac_dir" || { ac_status=$?; continue; }
1387 # Check for guested configure.
1388 if test -f "$ac_srcdir/configure.gnu"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1391 elif test -f "$ac_srcdir/configure"; then
1392 echo &&
1393 $SHELL "$ac_srcdir/configure" --help=recursive
1394 else
1395 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1396 fi || ac_status=$?
1397 cd "$ac_pwd" || { ac_status=$?; break; }
1398 done
1401 test -n "$ac_init_help" && exit $ac_status
1402 if $ac_init_version; then
1403 cat <<\_ACEOF
1404 GNU C Runtime Library configure 1.0
1405 generated by GNU Autoconf 2.64
1407 Copyright (C) 2009 Free Software Foundation, Inc.
1408 This configure script is free software; the Free Software Foundation
1409 gives unlimited permission to copy, distribute and modify it.
1410 _ACEOF
1411 exit
1414 ## ------------------------ ##
1415 ## Autoconf initialization. ##
1416 ## ------------------------ ##
1418 # ac_fn_c_try_compile LINENO
1419 # --------------------------
1420 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1421 ac_fn_c_try_compile ()
1423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1424 rm -f conftest.$ac_objext
1425 if { { ac_try="$ac_compile"
1426 case "(($ac_try" in
1427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1428 *) ac_try_echo=$ac_try;;
1429 esac
1430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1431 $as_echo "$ac_try_echo"; } >&5
1432 (eval "$ac_compile") 2>conftest.err
1433 ac_status=$?
1434 if test -s conftest.err; then
1435 grep -v '^ *+' conftest.err >conftest.er1
1436 cat conftest.er1 >&5
1437 mv -f conftest.er1 conftest.err
1439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1440 test $ac_status = 0; } && {
1441 test -z "$ac_c_werror_flag" ||
1442 test ! -s conftest.err
1443 } && test -s conftest.$ac_objext; then :
1444 ac_retval=0
1445 else
1446 $as_echo "$as_me: failed program was:" >&5
1447 sed 's/^/| /' conftest.$ac_ext >&5
1449 ac_retval=1
1451 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1452 return $ac_retval
1454 } # ac_fn_c_try_compile
1456 # ac_fn_c_try_cpp LINENO
1457 # ----------------------
1458 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1459 ac_fn_c_try_cpp ()
1461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1462 if { { ac_try="$ac_cpp conftest.$ac_ext"
1463 case "(($ac_try" in
1464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1465 *) ac_try_echo=$ac_try;;
1466 esac
1467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1468 $as_echo "$ac_try_echo"; } >&5
1469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1470 ac_status=$?
1471 if test -s conftest.err; then
1472 grep -v '^ *+' conftest.err >conftest.er1
1473 cat conftest.er1 >&5
1474 mv -f conftest.er1 conftest.err
1476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1477 test $ac_status = 0; } >/dev/null && {
1478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1479 test ! -s conftest.err
1480 }; then :
1481 ac_retval=0
1482 else
1483 $as_echo "$as_me: failed program was:" >&5
1484 sed 's/^/| /' conftest.$ac_ext >&5
1486 ac_retval=1
1488 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1489 return $ac_retval
1491 } # ac_fn_c_try_cpp
1493 # ac_fn_c_try_run LINENO
1494 # ----------------------
1495 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1496 # that executables *can* be run.
1497 ac_fn_c_try_run ()
1499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500 if { { ac_try="$ac_link"
1501 case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504 esac
1505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506 $as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_link") 2>&5
1508 ac_status=$?
1509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1511 { { case "(($ac_try" in
1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513 *) ac_try_echo=$ac_try;;
1514 esac
1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516 $as_echo "$ac_try_echo"; } >&5
1517 (eval "$ac_try") 2>&5
1518 ac_status=$?
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; }; }; then :
1521 ac_retval=0
1522 else
1523 $as_echo "$as_me: program exited with status $ac_status" >&5
1524 $as_echo "$as_me: failed program was:" >&5
1525 sed 's/^/| /' conftest.$ac_ext >&5
1527 ac_retval=$ac_status
1529 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1531 return $ac_retval
1533 } # ac_fn_c_try_run
1535 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1536 # --------------------------------------------
1537 # Tries to find the compile-time value of EXPR in a program that includes
1538 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1539 # computed
1540 ac_fn_c_compute_int ()
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 if test "$cross_compiling" = yes; then
1544 # Depending upon the size, compute the lo and hi bounds.
1545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1546 /* end confdefs.h. */
1549 main ()
1551 static int test_array [1 - 2 * !(($2) >= 0)];
1552 test_array [0] = 0
1555 return 0;
1557 _ACEOF
1558 if ac_fn_c_try_compile "$LINENO"; then :
1559 ac_lo=0 ac_mid=0
1560 while :; do
1561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1562 /* end confdefs.h. */
1565 main ()
1567 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1568 test_array [0] = 0
1571 return 0;
1573 _ACEOF
1574 if ac_fn_c_try_compile "$LINENO"; then :
1575 ac_hi=$ac_mid; break
1576 else
1577 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1578 if test $ac_lo -le $ac_mid; then
1579 ac_lo= ac_hi=
1580 break
1582 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1585 done
1586 else
1587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1588 /* end confdefs.h. */
1591 main ()
1593 static int test_array [1 - 2 * !(($2) < 0)];
1594 test_array [0] = 0
1597 return 0;
1599 _ACEOF
1600 if ac_fn_c_try_compile "$LINENO"; then :
1601 ac_hi=-1 ac_mid=-1
1602 while :; do
1603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604 /* end confdefs.h. */
1607 main ()
1609 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1610 test_array [0] = 0
1613 return 0;
1615 _ACEOF
1616 if ac_fn_c_try_compile "$LINENO"; then :
1617 ac_lo=$ac_mid; break
1618 else
1619 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1620 if test $ac_mid -le $ac_hi; then
1621 ac_lo= ac_hi=
1622 break
1624 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1627 done
1628 else
1629 ac_lo= ac_hi=
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 # Binary search between lo and hi bounds.
1635 while test "x$ac_lo" != "x$ac_hi"; do
1636 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638 /* end confdefs.h. */
1641 main ()
1643 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1644 test_array [0] = 0
1647 return 0;
1649 _ACEOF
1650 if ac_fn_c_try_compile "$LINENO"; then :
1651 ac_hi=$ac_mid
1652 else
1653 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656 done
1657 case $ac_lo in #((
1658 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1659 '') ac_retval=1 ;;
1660 esac
1661 else
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663 /* end confdefs.h. */
1665 static long int longval () { return $2; }
1666 static unsigned long int ulongval () { return $2; }
1667 #include <stdio.h>
1668 #include <stdlib.h>
1670 main ()
1673 FILE *f = fopen ("conftest.val", "w");
1674 if (! f)
1675 return 1;
1676 if (($2) < 0)
1678 long int i = longval ();
1679 if (i != ($2))
1680 return 1;
1681 fprintf (f, "%ld", i);
1683 else
1685 unsigned long int i = ulongval ();
1686 if (i != ($2))
1687 return 1;
1688 fprintf (f, "%lu", i);
1690 /* Do not output a trailing newline, as this causes \r\n confusion
1691 on some platforms. */
1692 return ferror (f) || fclose (f) != 0;
1695 return 0;
1697 _ACEOF
1698 if ac_fn_c_try_run "$LINENO"; then :
1699 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1700 else
1701 ac_retval=1
1703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1704 conftest.$ac_objext conftest.beam conftest.$ac_ext
1705 rm -f conftest.val
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 return $ac_retval
1711 } # ac_fn_c_compute_int
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1716 It was created by GNU C Runtime Library $as_me 1.0, which was
1717 generated by GNU Autoconf 2.64. Invocation command line was
1719 $ $0 $@
1721 _ACEOF
1722 exec 5>>config.log
1724 cat <<_ASUNAME
1725 ## --------- ##
1726 ## Platform. ##
1727 ## --------- ##
1729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1738 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1739 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1742 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1743 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1744 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1746 _ASUNAME
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 $as_echo "PATH: $as_dir"
1754 done
1755 IFS=$as_save_IFS
1757 } >&5
1759 cat >&5 <<_ACEOF
1762 ## ----------- ##
1763 ## Core tests. ##
1764 ## ----------- ##
1766 _ACEOF
1769 # Keep a trace of the command line.
1770 # Strip out --no-create and --no-recursion so they do not pile up.
1771 # Strip out --silent because we don't want to record it for future runs.
1772 # Also quote any args containing shell meta-characters.
1773 # Make two passes to allow for proper duplicate-argument suppression.
1774 ac_configure_args=
1775 ac_configure_args0=
1776 ac_configure_args1=
1777 ac_must_keep_next=false
1778 for ac_pass in 1 2
1780 for ac_arg
1782 case $ac_arg in
1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785 | -silent | --silent | --silen | --sile | --sil)
1786 continue ;;
1787 *\'*)
1788 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789 esac
1790 case $ac_pass in
1791 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1793 as_fn_append ac_configure_args1 " '$ac_arg'"
1794 if test $ac_must_keep_next = true; then
1795 ac_must_keep_next=false # Got value, back to normal.
1796 else
1797 case $ac_arg in
1798 *=* | --config-cache | -C | -disable-* | --disable-* \
1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801 | -with-* | --with-* | -without-* | --without-* | --x)
1802 case "$ac_configure_args0 " in
1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1804 esac
1806 -* ) ac_must_keep_next=true ;;
1807 esac
1809 as_fn_append ac_configure_args " '$ac_arg'"
1811 esac
1812 done
1813 done
1814 { ac_configure_args0=; unset ac_configure_args0;}
1815 { ac_configure_args1=; unset ac_configure_args1;}
1817 # When interrupted or exit'd, cleanup temporary files, and complete
1818 # config.log. We remove comments because anyway the quotes in there
1819 # would cause problems or look ugly.
1820 # WARNING: Use '\'' to represent an apostrophe within the trap.
1821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822 trap 'exit_status=$?
1823 # Save into config.log some information that might help in debugging.
1825 echo
1827 cat <<\_ASBOX
1828 ## ---------------- ##
1829 ## Cache variables. ##
1830 ## ---------------- ##
1831 _ASBOX
1832 echo
1833 # The following way of writing the cache mishandles newlines in values,
1835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836 eval ac_val=\$$ac_var
1837 case $ac_val in #(
1838 *${as_nl}*)
1839 case $ac_var in #(
1840 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1841 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1842 esac
1843 case $ac_var in #(
1844 _ | IFS | as_nl) ;; #(
1845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1846 *) { eval $ac_var=; unset $ac_var;} ;;
1847 esac ;;
1848 esac
1849 done
1850 (set) 2>&1 |
1851 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1852 *${as_nl}ac_space=\ *)
1853 sed -n \
1854 "s/'\''/'\''\\\\'\'''\''/g;
1855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1856 ;; #(
1858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1860 esac |
1861 sort
1863 echo
1865 cat <<\_ASBOX
1866 ## ----------------- ##
1867 ## Output variables. ##
1868 ## ----------------- ##
1869 _ASBOX
1870 echo
1871 for ac_var in $ac_subst_vars
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 $as_echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1881 if test -n "$ac_subst_files"; then
1882 cat <<\_ASBOX
1883 ## ------------------- ##
1884 ## File substitutions. ##
1885 ## ------------------- ##
1886 _ASBOX
1887 echo
1888 for ac_var in $ac_subst_files
1890 eval ac_val=\$$ac_var
1891 case $ac_val in
1892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893 esac
1894 $as_echo "$ac_var='\''$ac_val'\''"
1895 done | sort
1896 echo
1899 if test -s confdefs.h; then
1900 cat <<\_ASBOX
1901 ## ----------- ##
1902 ## confdefs.h. ##
1903 ## ----------- ##
1904 _ASBOX
1905 echo
1906 cat confdefs.h
1907 echo
1909 test "$ac_signal" != 0 &&
1910 $as_echo "$as_me: caught signal $ac_signal"
1911 $as_echo "$as_me: exit $exit_status"
1912 } >&5
1913 rm -f core *.core core.conftest.* &&
1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1915 exit $exit_status
1917 for ac_signal in 1 2 13 15; do
1918 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1919 done
1920 ac_signal=0
1922 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1923 rm -f -r conftest* confdefs.h
1925 $as_echo "/* confdefs.h */" > confdefs.h
1927 # Predefined preprocessor variables.
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_NAME "$PACKAGE_NAME"
1931 _ACEOF
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1935 _ACEOF
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1939 _ACEOF
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_STRING "$PACKAGE_STRING"
1943 _ACEOF
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1947 _ACEOF
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_URL "$PACKAGE_URL"
1951 _ACEOF
1954 # Let the site file select an alternate cache file if it wants to.
1955 # Prefer an explicitly selected file to automatically selected ones.
1956 ac_site_file1=NONE
1957 ac_site_file2=NONE
1958 if test -n "$CONFIG_SITE"; then
1959 ac_site_file1=$CONFIG_SITE
1960 elif test "x$prefix" != xNONE; then
1961 ac_site_file1=$prefix/share/config.site
1962 ac_site_file2=$prefix/etc/config.site
1963 else
1964 ac_site_file1=$ac_default_prefix/share/config.site
1965 ac_site_file2=$ac_default_prefix/etc/config.site
1967 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1969 test "x$ac_site_file" = xNONE && continue
1970 if test -r "$ac_site_file"; then
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1972 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1973 sed 's/^/| /' "$ac_site_file" >&5
1974 . "$ac_site_file"
1976 done
1978 if test -r "$cache_file"; then
1979 # Some versions of bash will fail to source /dev/null (special
1980 # files actually), so we avoid doing that.
1981 if test -f "$cache_file"; then
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1983 $as_echo "$as_me: loading cache $cache_file" >&6;}
1984 case $cache_file in
1985 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1986 *) . "./$cache_file";;
1987 esac
1989 else
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1991 $as_echo "$as_me: creating cache $cache_file" >&6;}
1992 >$cache_file
1995 # Check that the precious variables saved in the cache have kept the same
1996 # value.
1997 ac_cache_corrupted=false
1998 for ac_var in $ac_precious_vars; do
1999 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2000 eval ac_new_set=\$ac_env_${ac_var}_set
2001 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2002 eval ac_new_val=\$ac_env_${ac_var}_value
2003 case $ac_old_set,$ac_new_set in
2004 set,)
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2006 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2007 ac_cache_corrupted=: ;;
2008 ,set)
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2010 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2011 ac_cache_corrupted=: ;;
2012 ,);;
2014 if test "x$ac_old_val" != "x$ac_new_val"; then
2015 # differences in whitespace do not lead to failure.
2016 ac_old_val_w=`echo x $ac_old_val`
2017 ac_new_val_w=`echo x $ac_new_val`
2018 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2020 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2021 ac_cache_corrupted=:
2022 else
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2024 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2025 eval $ac_var=\$ac_old_val
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2028 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2030 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2031 fi;;
2032 esac
2033 # Pass precious variables to config.status.
2034 if test "$ac_new_set" = set; then
2035 case $ac_new_val in
2036 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2037 *) ac_arg=$ac_var=$ac_new_val ;;
2038 esac
2039 case " $ac_configure_args " in
2040 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2041 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2042 esac
2044 done
2045 if $ac_cache_corrupted; then
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2049 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2050 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2052 ## -------------------- ##
2053 ## Main body of script. ##
2054 ## -------------------- ##
2056 ac_ext=c
2057 ac_cpp='$CPP $CPPFLAGS'
2058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2068 # The libgcc should not depend on any header files
2072 # Check whether --with-target-subdir was given.
2073 if test "${with_target_subdir+set}" = set; then :
2074 withval=$with_target_subdir;
2078 # Check whether --with-cross-host was given.
2079 if test "${with_cross_host+set}" = set; then :
2080 withval=$with_cross_host;
2084 # Check whether --with-ld was given.
2085 if test "${with_ld+set}" = set; then :
2086 withval=$with_ld;
2090 if test "${srcdir}" = "."; then
2091 if test -n "${with_build_subdir}"; then
2092 libgcc_topdir="${srcdir}/../.."
2093 with_target_subdir=
2094 elif test -z "${with_target_subdir}"; then
2095 libgcc_topdir="${srcdir}/.."
2096 else
2097 if test "${with_target_subdir}" != "."; then
2098 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2099 else
2100 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2103 else
2104 libgcc_topdir="${srcdir}/.."
2107 ac_aux_dir=
2108 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2109 for ac_t in install-sh install.sh shtool; do
2110 if test -f "$ac_dir/$ac_t"; then
2111 ac_aux_dir=$ac_dir
2112 ac_install_sh="$ac_aux_dir/$ac_t -c"
2113 break 2
2115 done
2116 done
2117 if test -z "$ac_aux_dir"; then
2118 as_fn_error "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2121 # These three variables are undocumented and unsupported,
2122 # and are intended to be withdrawn in a future Autoconf release.
2123 # They can cause serious problems if a builder's source tree is in a directory
2124 # whose full name contains unusual characters.
2125 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2126 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2127 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2130 ac_config_headers="$ac_config_headers auto-target.h:config.in"
2133 # Check whether --enable-shared was given.
2134 if test "${enable_shared+set}" = set; then :
2135 enableval=$enable_shared;
2136 case $enable_shared in
2137 yes | no) ;;
2139 enable_shared=no
2140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2141 for pkg in $enableval; do
2142 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2143 enable_shared=yes
2145 done
2146 IFS="$ac_save_ifs"
2148 esac
2150 else
2151 enable_shared=yes
2156 # Check whether --enable-vtable-verify was given.
2157 if test "${enable_vtable_verify+set}" = set; then :
2158 enableval=$enable_vtable_verify; case "$enableval" in
2159 yes) enable_vtable_verify=yes ;;
2160 no) enable_vtable_verify=no ;;
2161 *) enable_vtable_verify=no;;
2162 esac
2163 else
2164 enable_vtable_verify=no
2169 # Make sure we can run config.sub.
2170 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2171 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2174 $as_echo_n "checking build system type... " >&6; }
2175 if test "${ac_cv_build+set}" = set; then :
2176 $as_echo_n "(cached) " >&6
2177 else
2178 ac_build_alias=$build_alias
2179 test "x$ac_build_alias" = x &&
2180 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2181 test "x$ac_build_alias" = x &&
2182 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2183 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2184 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2188 $as_echo "$ac_cv_build" >&6; }
2189 case $ac_cv_build in
2190 *-*-*) ;;
2191 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2192 esac
2193 build=$ac_cv_build
2194 ac_save_IFS=$IFS; IFS='-'
2195 set x $ac_cv_build
2196 shift
2197 build_cpu=$1
2198 build_vendor=$2
2199 shift; shift
2200 # Remember, the first character of IFS is used to create $*,
2201 # except with old shells:
2202 build_os=$*
2203 IFS=$ac_save_IFS
2204 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2208 $as_echo_n "checking host system type... " >&6; }
2209 if test "${ac_cv_host+set}" = set; then :
2210 $as_echo_n "(cached) " >&6
2211 else
2212 if test "x$host_alias" = x; then
2213 ac_cv_host=$ac_cv_build
2214 else
2215 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2216 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2221 $as_echo "$ac_cv_host" >&6; }
2222 case $ac_cv_host in
2223 *-*-*) ;;
2224 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2225 esac
2226 host=$ac_cv_host
2227 ac_save_IFS=$IFS; IFS='-'
2228 set x $ac_cv_host
2229 shift
2230 host_cpu=$1
2231 host_vendor=$2
2232 shift; shift
2233 # Remember, the first character of IFS is used to create $*,
2234 # except with old shells:
2235 host_os=$*
2236 IFS=$ac_save_IFS
2237 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2244 case "${host}" in
2245 # PIC is the default on some targets or must not be used.
2246 *-*-darwin*)
2247 # PIC is the default on this platform
2248 # Common symbols not allowed in MH_DYLIB files
2249 PICFLAG=-fno-common
2251 alpha*-dec-osf5*)
2252 # PIC is the default.
2254 hppa*64*-*-hpux*)
2255 # PIC is the default for 64-bit PA HP-UX.
2257 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2259 i[34567]86-*-mingw* | x86_64-*-mingw*)
2261 i[34567]86-*-interix[3-9]*)
2262 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2263 # Instead, we relocate shared libraries at runtime.
2265 i[34567]86-*-nto-qnx*)
2266 # QNX uses GNU C++, but need to define -shared option too, otherwise
2267 # it will coredump.
2268 PICFLAG='-fPIC -shared'
2270 i[34567]86-pc-msdosdjgpp*)
2271 # DJGPP does not support shared libraries at all.
2273 ia64*-*-hpux*)
2274 # On IA64 HP-UX, PIC is the default but the pic flag
2275 # sets the default TLS model and affects inlining.
2276 PICFLAG=-fPIC
2278 mips-sgi-irix6*)
2279 # PIC is the default.
2281 rs6000-ibm-aix* | powerpc-ibm-aix*)
2282 # All AIX code is PIC.
2285 # Some targets support both -fPIC and -fpic, but prefer the latter.
2286 # FIXME: Why?
2287 i[34567]86-*-* | x86_64-*-*)
2288 PICFLAG=-fpic
2290 # FIXME: Override -fPIC default in libgcc only?
2291 sh-*-linux* | sh[2346lbe]*-*-linux*)
2292 PICFLAG=-fpic
2294 # FIXME: Simplify to sh*-*-netbsd*?
2295 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2296 sh64-*-netbsd* | sh64l*-*-netbsd*)
2297 PICFLAG=-fpic
2299 # Default to -fPIC unless specified otherwise.
2301 PICFLAG=-fPIC
2303 esac
2305 # If the user explicitly uses -fpic/-fPIC, keep that.
2306 case "${CFLAGS}" in
2307 *-fpic*)
2308 PICFLAG=-fpic
2310 *-fPIC*)
2311 PICFLAG=-fPIC
2313 esac
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2318 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2319 # Check whether --enable-version-specific-runtime-libs was given.
2320 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2321 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2322 yes) version_specific_libs=yes ;;
2323 no) version_specific_libs=no ;;
2324 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2325 esac
2326 else
2327 version_specific_libs=no
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2331 $as_echo "$version_specific_libs" >&6; }
2334 # Check whether --with-slibdir was given.
2335 if test "${with_slibdir+set}" = set; then :
2336 withval=$with_slibdir; slibdir="$with_slibdir"
2337 else
2338 if test "${version_specific_libs}" = yes; then
2339 slibdir='$(libsubdir)'
2340 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2341 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2342 else
2343 slibdir='$(libdir)'
2349 # Command-line options.
2350 # Very limited version of AC_MAINTAINER_MODE.
2351 # Check whether --enable-maintainer-mode was given.
2352 if test "${enable_maintainer_mode+set}" = set; then :
2353 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2354 yes) MAINT='' ;;
2355 no) MAINT='#' ;;
2356 *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2357 esac
2358 maintainer_mode=${enableval}
2359 else
2360 MAINT='#'
2364 # Find a good install program. We prefer a C program (faster),
2365 # so one script is as good as another. But avoid the broken or
2366 # incompatible versions:
2367 # SysV /etc/install, /usr/sbin/install
2368 # SunOS /usr/etc/install
2369 # IRIX /sbin/install
2370 # AIX /bin/install
2371 # AmigaOS /C/install, which installs bootblocks on floppy discs
2372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2375 # OS/2's system install, which has a completely different semantic
2376 # ./install, which can be erroneously created by make from ./install.sh.
2377 # Reject install programs that cannot install multiple files.
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2379 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2380 if test -z "$INSTALL"; then
2381 if test "${ac_cv_path_install+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 # Account for people who put trailing slashes in PATH elements.
2390 case $as_dir/ in #((
2391 ./ | .// | /[cC]/* | \
2392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2394 /usr/ucb/* ) ;;
2396 # OSF1 and SCO ODT 3.0 have their own names for install.
2397 # Don't use installbsd from OSF since it installs stuff as root
2398 # by default.
2399 for ac_prog in ginstall scoinst install; do
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2402 if test $ac_prog = install &&
2403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404 # AIX install. It has an incompatible calling convention.
2406 elif test $ac_prog = install &&
2407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408 # program-specific install script used by HP pwplus--don't use.
2410 else
2411 rm -rf conftest.one conftest.two conftest.dir
2412 echo one > conftest.one
2413 echo two > conftest.two
2414 mkdir conftest.dir
2415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2416 test -s conftest.one && test -s conftest.two &&
2417 test -s conftest.dir/conftest.one &&
2418 test -s conftest.dir/conftest.two
2419 then
2420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2421 break 3
2425 done
2426 done
2428 esac
2430 done
2431 IFS=$as_save_IFS
2433 rm -rf conftest.one conftest.two conftest.dir
2436 if test "${ac_cv_path_install+set}" = set; then
2437 INSTALL=$ac_cv_path_install
2438 else
2439 # As a last resort, use the slow shell script. Don't cache a
2440 # value for INSTALL within a source directory, because that will
2441 # break other packages using the cache if that directory is
2442 # removed, or if the value is a relative name.
2443 INSTALL=$ac_install_sh
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2447 $as_echo "$INSTALL" >&6; }
2449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2450 # It thinks the first close brace ends the variable substitution.
2451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2458 for ac_prog in gawk mawk nawk awk
2460 # Extract the first word of "$ac_prog", so it can be a program name with args.
2461 set dummy $ac_prog; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if test "${ac_cv_prog_AWK+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
2466 else
2467 if test -n "$AWK"; then
2468 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_AWK="$ac_prog"
2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2481 done
2482 done
2483 IFS=$as_save_IFS
2487 AWK=$ac_cv_prog_AWK
2488 if test -n "$AWK"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2490 $as_echo "$AWK" >&6; }
2491 else
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2497 test -n "$AWK" && break
2498 done
2500 # We need awk; bail out if it's missing.
2501 case ${AWK} in
2502 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
2503 esac
2506 case ${build_alias} in
2507 "") build_noncanonical=${build} ;;
2508 *) build_noncanonical=${build_alias} ;;
2509 esac
2511 case ${host_alias} in
2512 "") host_noncanonical=${build_noncanonical} ;;
2513 *) host_noncanonical=${host_alias} ;;
2514 esac
2518 case ${target_alias} in
2519 "") target_noncanonical=${host_noncanonical} ;;
2520 *) target_noncanonical=${target_alias} ;;
2521 esac
2526 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2527 # have matching libraries, they should use host libraries: Makefile.tpl
2528 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2529 # However, they still use the build modules, because the corresponding
2530 # host modules (e.g. bison) are only built for the host when bootstrap
2531 # finishes. So:
2532 # - build_subdir is where we find build modules, and never changes.
2533 # - build_libsubdir is where we find build libraries, and can be overridden.
2535 # Prefix 'build-' so this never conflicts with target_subdir.
2536 build_subdir="build-${build_noncanonical}"
2538 # Check whether --with-build-libsubdir was given.
2539 if test "${with_build_libsubdir+set}" = set; then :
2540 withval=$with_build_libsubdir; build_libsubdir="$withval"
2541 else
2542 build_libsubdir="$build_subdir"
2545 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2546 if ( test $srcdir = . && test -d gcc ) \
2547 || test -d $srcdir/../host-${host_noncanonical}; then
2548 host_subdir="host-${host_noncanonical}"
2549 else
2550 host_subdir=.
2552 # No prefix.
2553 target_subdir=${target_noncanonical}
2556 # Calculate toolexeclibdir
2557 # Also toolexecdir, though it's only used in toolexeclibdir
2558 case ${version_specific_libs} in
2559 yes)
2560 # Need the gcc compiler version to know where to install libraries
2561 # and header files if --enable-version-specific-runtime-libs option
2562 # is selected.
2563 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2564 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2567 if test -n "$with_cross_host" &&
2568 test x"$with_cross_host" != x"no"; then
2569 # Install a library built with a cross compiler in tooldir, not libdir.
2570 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2571 toolexeclibdir='$(toolexecdir)/lib'
2572 else
2573 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2574 toolexeclibdir='$(libdir)'
2576 multi_os_directory=`$CC -print-multi-os-directory`
2577 case $multi_os_directory in
2578 .) ;; # Avoid trailing /.
2579 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2580 esac
2582 esac
2586 if test -n "$ac_tool_prefix"; then
2587 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2588 set dummy ${ac_tool_prefix}ar; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if test "${ac_cv_prog_AR+set}" = set; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test -n "$AR"; then
2595 ac_cv_prog_AR="$AR" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_AR="${ac_tool_prefix}ar"
2605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2608 done
2609 done
2610 IFS=$as_save_IFS
2614 AR=$ac_cv_prog_AR
2615 if test -n "$AR"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2617 $as_echo "$AR" >&6; }
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2625 if test -z "$ac_cv_prog_AR"; then
2626 ac_ct_AR=$AR
2627 # Extract the first word of "ar", so it can be a program name with args.
2628 set dummy ar; ac_word=$2
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630 $as_echo_n "checking for $ac_word... " >&6; }
2631 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 if test -n "$ac_ct_AR"; then
2635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2636 else
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2640 IFS=$as_save_IFS
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_ac_ct_AR="ar"
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2648 done
2649 done
2650 IFS=$as_save_IFS
2654 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2655 if test -n "$ac_ct_AR"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2657 $as_echo "$ac_ct_AR" >&6; }
2658 else
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660 $as_echo "no" >&6; }
2663 if test "x$ac_ct_AR" = x; then
2664 AR=""
2665 else
2666 case $cross_compiling:$ac_tool_warned in
2667 yes:)
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2670 ac_tool_warned=yes ;;
2671 esac
2672 AR=$ac_ct_AR
2674 else
2675 AR="$ac_cv_prog_AR"
2678 if test -n "$ac_tool_prefix"; then
2679 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2680 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_prog_LIPO+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
2685 else
2686 if test -n "$LIPO"; then
2687 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2700 done
2701 done
2702 IFS=$as_save_IFS
2706 LIPO=$ac_cv_prog_LIPO
2707 if test -n "$LIPO"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2709 $as_echo "$LIPO" >&6; }
2710 else
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2717 if test -z "$ac_cv_prog_LIPO"; then
2718 ac_ct_LIPO=$LIPO
2719 # Extract the first word of "lipo", so it can be a program name with args.
2720 set dummy lipo; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 if test -n "$ac_ct_LIPO"; then
2727 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_ac_ct_LIPO="lipo"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2740 done
2741 done
2742 IFS=$as_save_IFS
2746 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2747 if test -n "$ac_ct_LIPO"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2749 $as_echo "$ac_ct_LIPO" >&6; }
2750 else
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2755 if test "x$ac_ct_LIPO" = x; then
2756 LIPO=":"
2757 else
2758 case $cross_compiling:$ac_tool_warned in
2759 yes:)
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2762 ac_tool_warned=yes ;;
2763 esac
2764 LIPO=$ac_ct_LIPO
2766 else
2767 LIPO="$ac_cv_prog_LIPO"
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2772 set dummy ${ac_tool_prefix}nm; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_NM+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test -n "$NM"; then
2779 ac_cv_prog_NM="$NM" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_NM="${ac_tool_prefix}nm"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2792 done
2793 done
2794 IFS=$as_save_IFS
2798 NM=$ac_cv_prog_NM
2799 if test -n "$NM"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2801 $as_echo "$NM" >&6; }
2802 else
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2809 if test -z "$ac_cv_prog_NM"; then
2810 ac_ct_NM=$NM
2811 # Extract the first word of "nm", so it can be a program name with args.
2812 set dummy nm; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 if test -n "$ac_ct_NM"; then
2819 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_NM="nm"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2832 done
2833 done
2834 IFS=$as_save_IFS
2838 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2839 if test -n "$ac_ct_NM"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2841 $as_echo "$ac_ct_NM" >&6; }
2842 else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2847 if test "x$ac_ct_NM" = x; then
2848 NM=""
2849 else
2850 case $cross_compiling:$ac_tool_warned in
2851 yes:)
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2854 ac_tool_warned=yes ;;
2855 esac
2856 NM=$ac_ct_NM
2858 else
2859 NM="$ac_cv_prog_NM"
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2864 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 $as_echo_n "checking for $ac_word... " >&6; }
2867 if test "${ac_cv_prog_RANLIB+set}" = set; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 if test -n "$RANLIB"; then
2871 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2884 done
2885 done
2886 IFS=$as_save_IFS
2890 RANLIB=$ac_cv_prog_RANLIB
2891 if test -n "$RANLIB"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2893 $as_echo "$RANLIB" >&6; }
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2901 if test -z "$ac_cv_prog_RANLIB"; then
2902 ac_ct_RANLIB=$RANLIB
2903 # Extract the first word of "ranlib", so it can be a program name with args.
2904 set dummy ranlib; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$ac_ct_RANLIB"; then
2911 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_ac_ct_RANLIB="ranlib"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2924 done
2925 done
2926 IFS=$as_save_IFS
2930 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2931 if test -n "$ac_ct_RANLIB"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2933 $as_echo "$ac_ct_RANLIB" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2939 if test "x$ac_ct_RANLIB" = x; then
2940 RANLIB=":"
2941 else
2942 case $cross_compiling:$ac_tool_warned in
2943 yes:)
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2946 ac_tool_warned=yes ;;
2947 esac
2948 RANLIB=$ac_ct_RANLIB
2950 else
2951 RANLIB="$ac_cv_prog_RANLIB"
2954 if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2956 set dummy ${ac_tool_prefix}strip; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_STRIP+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$STRIP"; then
2963 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2976 done
2977 done
2978 IFS=$as_save_IFS
2982 STRIP=$ac_cv_prog_STRIP
2983 if test -n "$STRIP"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2985 $as_echo "$STRIP" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2993 if test -z "$ac_cv_prog_STRIP"; then
2994 ac_ct_STRIP=$STRIP
2995 # Extract the first word of "strip", so it can be a program name with args.
2996 set dummy strip; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$ac_ct_STRIP"; then
3003 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_ac_ct_STRIP="strip"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3016 done
3017 done
3018 IFS=$as_save_IFS
3022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3023 if test -n "$ac_ct_STRIP"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3025 $as_echo "$ac_ct_STRIP" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3031 if test "x$ac_ct_STRIP" = x; then
3032 STRIP=":"
3033 else
3034 case $cross_compiling:$ac_tool_warned in
3035 yes:)
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038 ac_tool_warned=yes ;;
3039 esac
3040 STRIP=$ac_ct_STRIP
3042 else
3043 STRIP="$ac_cv_prog_STRIP"
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3047 $as_echo_n "checking whether ln -s works... " >&6; }
3048 LN_S=$as_ln_s
3049 if test "$LN_S" = "ln -s"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3051 $as_echo "yes" >&6; }
3052 else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3054 $as_echo "no, using $LN_S" >&6; }
3059 ac_ext=c
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064 if test -n "$ac_tool_prefix"; then
3065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3066 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_CC+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3086 done
3087 done
3088 IFS=$as_save_IFS
3092 CC=$ac_cv_prog_CC
3093 if test -n "$CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3095 $as_echo "$CC" >&6; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3103 if test -z "$ac_cv_prog_CC"; then
3104 ac_ct_CC=$CC
3105 # Extract the first word of "gcc", so it can be a program name with args.
3106 set dummy gcc; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122 ac_cv_prog_ac_ct_CC="gcc"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3126 done
3127 done
3128 IFS=$as_save_IFS
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3141 if test "x$ac_ct_CC" = x; then
3142 CC=""
3143 else
3144 case $cross_compiling:$ac_tool_warned in
3145 yes:)
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3148 ac_tool_warned=yes ;;
3149 esac
3150 CC=$ac_ct_CC
3152 else
3153 CC="$ac_cv_prog_CC"
3156 if test -z "$CC"; then
3157 if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3159 set dummy ${ac_tool_prefix}cc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if test "${ac_cv_prog_CC+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_CC="${ac_tool_prefix}cc"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3179 done
3180 done
3181 IFS=$as_save_IFS
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3197 if test -z "$CC"; then
3198 # Extract the first word of "cc", so it can be a program name with args.
3199 set dummy cc; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if test "${ac_cv_prog_CC+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$CC"; then
3206 ac_cv_prog_CC="$CC" # Let the user override the test.
3207 else
3208 ac_prog_rejected=no
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3217 ac_prog_rejected=yes
3218 continue
3220 ac_cv_prog_CC="cc"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3224 done
3225 done
3226 IFS=$as_save_IFS
3228 if test $ac_prog_rejected = yes; then
3229 # We found a bogon in the path, so make sure we never use it.
3230 set dummy $ac_cv_prog_CC
3231 shift
3232 if test $# != 0; then
3233 # We chose a different compiler from the bogus one.
3234 # However, it has the same basename, so the bogon will be chosen
3235 # first if we set CC to just the basename; use the full file name.
3236 shift
3237 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3242 CC=$ac_cv_prog_CC
3243 if test -n "$CC"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3245 $as_echo "$CC" >&6; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3253 if test -z "$CC"; then
3254 if test -n "$ac_tool_prefix"; then
3255 for ac_prog in cl.exe
3257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if test "${ac_cv_prog_CC+set}" = set; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3278 done
3279 done
3280 IFS=$as_save_IFS
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3294 test -n "$CC" && break
3295 done
3297 if test -z "$CC"; then
3298 ac_ct_CC=$CC
3299 for ac_prog in cl.exe
3301 # Extract the first word of "$ac_prog", so it can be a program name with args.
3302 set dummy $ac_prog; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 if test -n "$ac_ct_CC"; then
3309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_ac_ct_CC="$ac_prog"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3322 done
3323 done
3324 IFS=$as_save_IFS
3328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3329 if test -n "$ac_ct_CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3331 $as_echo "$ac_ct_CC" >&6; }
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3338 test -n "$ac_ct_CC" && break
3339 done
3341 if test "x$ac_ct_CC" = x; then
3342 CC=""
3343 else
3344 case $cross_compiling:$ac_tool_warned in
3345 yes:)
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3348 ac_tool_warned=yes ;;
3349 esac
3350 CC=$ac_ct_CC
3357 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error "no acceptable C compiler found in \$PATH
3360 See \`config.log' for more details." "$LINENO" 5; }
3362 # Provide some information about the compiler.
3363 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3364 set X $ac_compile
3365 ac_compiler=$2
3366 for ac_option in --version -v -V -qversion; do
3367 { { ac_try="$ac_compiler $ac_option >&5"
3368 case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3375 ac_status=$?
3376 if test -s conftest.err; then
3377 sed '10a\
3378 ... rest of stderr output deleted ...
3379 10q' conftest.err >conftest.er1
3380 cat conftest.er1 >&5
3381 rm -f conftest.er1 conftest.err
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }
3385 done
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3391 main ()
3395 return 0;
3397 _ACEOF
3398 # FIXME: Cleanup?
3399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3400 (eval $ac_link) 2>&5
3401 ac_status=$?
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
3404 gcc_no_link=no
3405 else
3406 gcc_no_link=yes
3408 if test x$gcc_no_link = xyes; then
3409 # Setting cross_compile will disable run tests; it will
3410 # also disable AC_CHECK_FILE but that's generally
3411 # correct if we can't link.
3412 cross_compiling=yes
3413 EXEEXT=
3414 else
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3419 main ()
3423 return 0;
3425 _ACEOF
3426 ac_clean_files_save=$ac_clean_files
3427 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3428 # Try to create an executable without -o first, disregard a.out.
3429 # It will help us diagnose broken compilers, and finding out an intuition
3430 # of exeext.
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3432 $as_echo_n "checking for C compiler default output file name... " >&6; }
3433 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3435 # The possible output files:
3436 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3438 ac_rmfiles=
3439 for ac_file in $ac_files
3441 case $ac_file in
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3444 esac
3445 done
3446 rm -f $ac_rmfiles
3448 if { { ac_try="$ac_link_default"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_link_default") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
3459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3461 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3462 # so that the user can short-circuit this test for compilers unknown to
3463 # Autoconf.
3464 for ac_file in $ac_files ''
3466 test -f "$ac_file" || continue
3467 case $ac_file in
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3470 [ab].out )
3471 # We found the default executable, but exeext='' is most
3472 # certainly right.
3473 break;;
3474 *.* )
3475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3476 then :; else
3477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3479 # We set ac_cv_exeext here because the later test for it is not
3480 # safe: cross compilers may not add the suffix if given an `-o'
3481 # argument, so we may need to know it at that point already.
3482 # Even if this section looks crufty: it has the advantage of
3483 # actually working.
3484 break;;
3486 break;;
3487 esac
3488 done
3489 test "$ac_cv_exeext" = no && ac_cv_exeext=
3491 else
3492 ac_file=''
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3495 $as_echo "$ac_file" >&6; }
3496 if test -z "$ac_file"; then :
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 { as_fn_set_status 77
3503 as_fn_error "C compiler cannot create executables
3504 See \`config.log' for more details." "$LINENO" 5; }; }
3506 ac_exeext=$ac_cv_exeext
3508 # Check that the compiler produces executables we can run. If not, either
3509 # the compiler is broken, or we cross compile.
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3511 $as_echo_n "checking whether the C compiler works... " >&6; }
3512 # If not cross compiling, check that we can run a simple program.
3513 if test "$cross_compiling" != yes; then
3514 if { ac_try='./$ac_file'
3515 { { case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521 (eval "$ac_try") 2>&5
3522 ac_status=$?
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }; }; then
3525 cross_compiling=no
3526 else
3527 if test "$cross_compiling" = maybe; then
3528 cross_compiling=yes
3529 else
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error "cannot run C compiled programs.
3533 If you meant to cross compile, use \`--host'.
3534 See \`config.log' for more details." "$LINENO" 5; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3539 $as_echo "yes" >&6; }
3541 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3542 ac_clean_files=$ac_clean_files_save
3543 # Check that the compiler produces executables we can run. If not, either
3544 # the compiler is broken, or we cross compile.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3546 $as_echo_n "checking whether we are cross compiling... " >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3548 $as_echo "$cross_compiling" >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3551 $as_echo_n "checking for suffix of executables... " >&6; }
3552 if { { ac_try="$ac_link"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559 (eval "$ac_link") 2>&5
3560 ac_status=$?
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }; then :
3563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3564 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3565 # work properly (i.e., refer to `conftest.exe'), while it won't with
3566 # `rm'.
3567 for ac_file in conftest.exe conftest conftest.*; do
3568 test -f "$ac_file" || continue
3569 case $ac_file in
3570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3572 break;;
3573 * ) break;;
3574 esac
3575 done
3576 else
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error "cannot compute suffix of executables: cannot compile and link
3580 See \`config.log' for more details." "$LINENO" 5; }
3582 rm -f conftest$ac_cv_exeext
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3584 $as_echo "$ac_cv_exeext" >&6; }
3586 rm -f conftest.$ac_ext
3587 EXEEXT=$ac_cv_exeext
3588 ac_exeext=$EXEEXT
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3591 $as_echo_n "checking for suffix of object files... " >&6; }
3592 if test "${ac_cv_objext+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3599 main ()
3603 return 0;
3605 _ACEOF
3606 rm -f conftest.o conftest.obj
3607 if { { ac_try="$ac_compile"
3608 case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614 (eval "$ac_compile") 2>&5
3615 ac_status=$?
3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617 test $ac_status = 0; }; then :
3618 for ac_file in conftest.o conftest.obj conftest.*; do
3619 test -f "$ac_file" || continue;
3620 case $ac_file in
3621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3622 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3623 break;;
3624 esac
3625 done
3626 else
3627 $as_echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632 as_fn_error "cannot compute suffix of object files: cannot compile
3633 See \`config.log' for more details." "$LINENO" 5; }
3635 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3638 $as_echo "$ac_cv_objext" >&6; }
3639 OBJEXT=$ac_cv_objext
3640 ac_objext=$OBJEXT
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3642 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3643 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3650 main ()
3652 #ifndef __GNUC__
3653 choke me
3654 #endif
3657 return 0;
3659 _ACEOF
3660 if ac_fn_c_try_compile "$LINENO"; then :
3661 ac_compiler_gnu=yes
3662 else
3663 ac_compiler_gnu=no
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3671 if test $ac_compiler_gnu = yes; then
3672 GCC=yes
3673 else
3674 GCC=
3676 ac_test_CFLAGS=${CFLAGS+set}
3677 ac_save_CFLAGS=$CFLAGS
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3679 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3680 if test "${ac_cv_prog_cc_g+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 ac_save_c_werror_flag=$ac_c_werror_flag
3684 ac_c_werror_flag=yes
3685 ac_cv_prog_cc_g=no
3686 CFLAGS="-g"
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3691 main ()
3695 return 0;
3697 _ACEOF
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699 ac_cv_prog_cc_g=yes
3700 else
3701 CFLAGS=""
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3706 main ()
3710 return 0;
3712 _ACEOF
3713 if ac_fn_c_try_compile "$LINENO"; then :
3715 else
3716 ac_c_werror_flag=$ac_save_c_werror_flag
3717 CFLAGS="-g"
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3722 main ()
3726 return 0;
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_cv_prog_cc_g=yes
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 ac_c_werror_flag=$ac_save_c_werror_flag
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3740 $as_echo "$ac_cv_prog_cc_g" >&6; }
3741 if test "$ac_test_CFLAGS" = set; then
3742 CFLAGS=$ac_save_CFLAGS
3743 elif test $ac_cv_prog_cc_g = yes; then
3744 if test "$GCC" = yes; then
3745 CFLAGS="-g -O2"
3746 else
3747 CFLAGS="-g"
3749 else
3750 if test "$GCC" = yes; then
3751 CFLAGS="-O2"
3752 else
3753 CFLAGS=
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3757 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3758 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 ac_cv_prog_cc_c89=no
3762 ac_save_CC=$CC
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765 #include <stdarg.h>
3766 #include <stdio.h>
3767 #include <sys/types.h>
3768 #include <sys/stat.h>
3769 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3770 struct buf { int x; };
3771 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3772 static char *e (p, i)
3773 char **p;
3774 int i;
3776 return p[i];
3778 static char *f (char * (*g) (char **, int), char **p, ...)
3780 char *s;
3781 va_list v;
3782 va_start (v,p);
3783 s = g (p, va_arg (v,int));
3784 va_end (v);
3785 return s;
3788 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3789 function prototypes and stuff, but not '\xHH' hex character constants.
3790 These don't provoke an error unfortunately, instead are silently treated
3791 as 'x'. The following induces an error, until -std is added to get
3792 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3793 array size at least. It's necessary to write '\x00'==0 to get something
3794 that's true only with -std. */
3795 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3797 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3798 inside strings and character constants. */
3799 #define FOO(x) 'x'
3800 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3802 int test (int i, double x);
3803 struct s1 {int (*f) (int a);};
3804 struct s2 {int (*f) (double a);};
3805 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3806 int argc;
3807 char **argv;
3809 main ()
3811 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3813 return 0;
3815 _ACEOF
3816 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3817 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3819 CC="$ac_save_CC $ac_arg"
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_cv_prog_cc_c89=$ac_arg
3823 rm -f core conftest.err conftest.$ac_objext
3824 test "x$ac_cv_prog_cc_c89" != "xno" && break
3825 done
3826 rm -f conftest.$ac_ext
3827 CC=$ac_save_CC
3830 # AC_CACHE_VAL
3831 case "x$ac_cv_prog_cc_c89" in
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3834 $as_echo "none needed" >&6; } ;;
3835 xno)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3837 $as_echo "unsupported" >&6; } ;;
3839 CC="$CC $ac_cv_prog_cc_c89"
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3841 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3842 esac
3843 if test "x$ac_cv_prog_cc_c89" != xno; then :
3847 ac_ext=c
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3859 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3860 # On Suns, sometimes $CPP names a directory.
3861 if test -n "$CPP" && test -d "$CPP"; then
3862 CPP=
3864 if test -z "$CPP"; then
3865 if test "${ac_cv_prog_CPP+set}" = set; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 # Double quotes because CPP needs to be expanded
3869 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3871 ac_preproc_ok=false
3872 for ac_c_preproc_warn_flag in '' yes
3874 # Use a header file that comes with gcc, so configuring glibc
3875 # with a fresh cross-compiler works.
3876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877 # <limits.h> exists even on freestanding compilers.
3878 # On the NeXT, cc -E runs the code through the compiler's parser,
3879 # not just through cpp. "Syntax error" is here to catch this case.
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882 #ifdef __STDC__
3883 # include <limits.h>
3884 #else
3885 # include <assert.h>
3886 #endif
3887 Syntax error
3888 _ACEOF
3889 if ac_fn_c_try_cpp "$LINENO"; then :
3891 else
3892 # Broken: fails on valid input.
3893 continue
3895 rm -f conftest.err conftest.$ac_ext
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901 #include <ac_nonexistent.h>
3902 _ACEOF
3903 if ac_fn_c_try_cpp "$LINENO"; then :
3904 # Broken: success on invalid input.
3905 continue
3906 else
3907 # Passes both tests.
3908 ac_preproc_ok=:
3909 break
3911 rm -f conftest.err conftest.$ac_ext
3913 done
3914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3915 rm -f conftest.err conftest.$ac_ext
3916 if $ac_preproc_ok; then :
3917 break
3920 done
3921 ac_cv_prog_CPP=$CPP
3924 CPP=$ac_cv_prog_CPP
3925 else
3926 ac_cv_prog_CPP=$CPP
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3929 $as_echo "$CPP" >&6; }
3930 ac_preproc_ok=false
3931 for ac_c_preproc_warn_flag in '' yes
3933 # Use a header file that comes with gcc, so configuring glibc
3934 # with a fresh cross-compiler works.
3935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3936 # <limits.h> exists even on freestanding compilers.
3937 # On the NeXT, cc -E runs the code through the compiler's parser,
3938 # not just through cpp. "Syntax error" is here to catch this case.
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941 #ifdef __STDC__
3942 # include <limits.h>
3943 #else
3944 # include <assert.h>
3945 #endif
3946 Syntax error
3947 _ACEOF
3948 if ac_fn_c_try_cpp "$LINENO"; then :
3950 else
3951 # Broken: fails on valid input.
3952 continue
3954 rm -f conftest.err conftest.$ac_ext
3956 # OK, works on sane cases. Now check whether nonexistent headers
3957 # can be detected and how.
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <ac_nonexistent.h>
3961 _ACEOF
3962 if ac_fn_c_try_cpp "$LINENO"; then :
3963 # Broken: success on invalid input.
3964 continue
3965 else
3966 # Passes both tests.
3967 ac_preproc_ok=:
3968 break
3970 rm -f conftest.err conftest.$ac_ext
3972 done
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then :
3977 else
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3981 See \`config.log' for more details." "$LINENO" 5; }
3984 ac_ext=c
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991 ac_c_preproc_warn_flag=yes
3995 # The cast to long int works around a bug in the HP C Compiler
3996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3998 # This bug is HP SR number 8606223364.
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
4000 $as_echo_n "checking size of double... " >&6; }
4001 if test "${ac_cv_sizeof_double+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
4006 else
4007 if test "$ac_cv_type_double" = yes; then
4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010 { as_fn_set_status 77
4011 as_fn_error "cannot compute sizeof (double)
4012 See \`config.log' for more details." "$LINENO" 5; }; }
4013 else
4014 ac_cv_sizeof_double=0
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
4020 $as_echo "$ac_cv_sizeof_double" >&6; }
4024 cat >>confdefs.h <<_ACEOF
4025 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4026 _ACEOF
4029 # The cast to long int works around a bug in the HP C Compiler
4030 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4031 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4032 # This bug is HP SR number 8606223364.
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4034 $as_echo_n "checking size of long double... " >&6; }
4035 if test "${ac_cv_sizeof_long_double+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4040 else
4041 if test "$ac_cv_type_long_double" = yes; then
4042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4044 { as_fn_set_status 77
4045 as_fn_error "cannot compute sizeof (long double)
4046 See \`config.log' for more details." "$LINENO" 5; }; }
4047 else
4048 ac_cv_sizeof_long_double=0
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4054 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4058 cat >>confdefs.h <<_ACEOF
4059 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4060 _ACEOF
4063 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4064 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4068 # Check for decimal float support.
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4070 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4071 if test "${libgcc_cv_dfp+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4077 #include <fenv.h>
4080 main ()
4083 _Decimal32 x;
4084 int fe_except =
4085 FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
4088 return 0;
4090 _ACEOF
4091 if ac_fn_c_try_compile "$LINENO"; then :
4092 libgcc_cv_dfp=yes
4093 else
4094 libgcc_cv_dfp=no
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4099 $as_echo "$libgcc_cv_dfp" >&6; }
4100 decimal_float=$libgcc_cv_dfp
4104 # Check whether --enable-decimal-float was given.
4105 if test "${enable_decimal_float+set}" = set; then :
4106 enableval=$enable_decimal_float;
4107 case $enable_decimal_float in
4108 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4109 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4110 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4111 esac
4113 else
4115 case $host in
4116 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4117 i?86*-*-gnu* | \
4118 i?86*-*-mingw* | x86_64*-*-mingw* | \
4119 i?86*-*-cygwin* | x86_64*-*-cygwin*)
4120 enable_decimal_float=yes
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4124 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4125 enable_decimal_float=no
4127 esac
4132 # x86's use BID format instead of DPD
4133 case x$enable_decimal_float in
4134 xyes)
4135 case $host in
4136 i?86*-*-* | x86_64*-*-*)
4137 enable_decimal_float=bid
4140 enable_decimal_float=dpd
4142 esac
4143 default_decimal_float=$enable_decimal_float
4145 xno)
4146 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4147 # dependency on libdecnumber.
4148 default_decimal_float=dpd
4150 esac
4155 # Check for fixed-point support.
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4157 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4158 if test "${libgcc_cv_fixed_point+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163 _Sat _Fract x;
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166 libgcc_cv_fixed_point=yes
4167 else
4168 libgcc_cv_fixed_point=no
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4173 $as_echo "$libgcc_cv_fixed_point" >&6; }
4174 fixed_point=$libgcc_cv_fixed_point
4177 # For platforms with the unwind ABI which includes an unwind library,
4178 # libunwind, we can choose to use the system libunwind.
4179 # config.gcc also contains tests of with_system_libunwind.
4182 # Check whether --with-system-libunwind was given.
4183 if test "${with_system_libunwind+set}" = set; then :
4184 withval=$with_system_libunwind;
4187 # If system-libunwind was not specifically set, pick a default setting.
4188 if test x$with_system_libunwind = x; then
4189 case ${target} in
4190 ia64-*-hpux*) with_system_libunwind=yes ;;
4191 *) with_system_libunwind=no ;;
4192 esac
4194 # Based on system-libunwind and target, do we have ipinfo?
4195 if test x$with_system_libunwind = xyes; then
4196 case ${target} in
4197 ia64-*-*) have_unwind_getipinfo=no ;;
4198 *) have_unwind_getipinfo=yes ;;
4199 esac
4200 else
4201 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4203 case ${target} in
4204 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4205 *) have_unwind_getipinfo=yes ;;
4206 esac
4210 if test x$have_unwind_getipinfo = xyes; then
4212 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4217 # The sjlj test is almost duplicated here and in libgo/configure.ac (for C),
4218 # libstdc++-v3/acinclude.m4 and libjava/configure.ac (for C++), and
4219 # libobjc/configure.ac (for Objective-C).
4220 # FIXME: This should be centralized in config/sjlj.m4.
4221 # Check whether --enable-sjlj-exceptions was given.
4222 if test "${enable_sjlj_exceptions+set}" = set; then :
4223 enableval=$enable_sjlj_exceptions; case "$enableval" in
4224 yes|no|auto) ;;
4225 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
4226 esac
4227 else
4228 enable_sjlj_exceptions=auto
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
4233 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
4234 if test "${libgcc_cv_lib_sjlj_exceptions+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4240 void bar ();
4241 void clean (int *);
4242 void foo ()
4244 int i __attribute__ ((cleanup (clean)));
4245 bar();
4248 _ACEOF
4249 CFLAGS_hold=$CFLAGS
4250 CFLAGS="--save-temps -fexceptions"
4251 libgcc_cv_lib_sjlj_exceptions=unknown
4252 if ac_fn_c_try_compile; then :
4253 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
4254 libgcc_cv_lib_sjlj_exceptions=yes
4255 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
4256 libgcc_cv_lib_sjlj_exceptions=no
4259 CFLAGS=$CFLAGS_hold
4260 rm -f conftest*
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_lib_sjlj_exceptions" >&5
4264 $as_echo "$libgcc_cv_lib_sjlj_exceptions" >&6; }
4266 if test "$enable_sjlj_exceptions" = "auto"; then
4267 enable_sjlj_exceptions=$libgcc_cv_lib_sjlj_exceptions
4270 case $enable_sjlj_exceptions in
4271 yes)
4273 $as_echo "#define LIBGCC_SJLJ_EXCEPTIONS 1" >>confdefs.h
4279 as_fn_error "unable to detect exception model" "$LINENO" 5
4281 esac
4283 # Check whether --enable-explicit-exception-frame-registration was given.
4284 if test "${enable_explicit_exception_frame_registration+set}" = set; then :
4285 enableval=$enable_explicit_exception_frame_registration;
4286 force_explicit_eh_registry=
4287 if test "$enable_explicit_exception_frame_registration" = yes; then
4288 if test "$enable_sjlj_exceptions" = yes; then
4289 as_fn_error "Can't enable both of --enable-sjlj-exceptions
4290 and --enable-explicit-exception-frame-registration" "$LINENO" 5
4292 force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4300 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4301 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4305 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4306 acl_cv_prog_gnu_ld=yes
4307 else
4308 acl_cv_prog_gnu_ld=no
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4312 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4313 with_gnu_ld=$acl_cv_prog_gnu_ld
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4317 $as_echo_n "checking for thread model used by GCC... " >&6; }
4318 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
4320 $as_echo "$target_thread_file" >&6; }
4322 # Check for assembler CFI support.
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
4324 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
4325 if test "${libgcc_cv_cfi+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330 asm("\n\
4331 .text\n\
4332 .cfi_startproc\n\
4333 .cfi_personality 0, symbol\n\
4334 .cfi_endproc");
4335 _ACEOF
4336 if ac_fn_c_try_compile "$LINENO"; then :
4337 libgcc_cv_cfi=yes
4338 else
4339 libgcc_cv_cfi=no
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
4344 $as_echo "$libgcc_cv_cfi" >&6; }
4346 # Check 32bit or 64bit. In the case of MIPS, this really determines the
4347 # word size rather than the address size.
4348 cat > conftest.c <<EOF
4349 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
4350 || defined(__mips64)
4351 host_address=64
4352 #else
4353 host_address=32
4354 #endif
4356 eval `${CC-cc} -E conftest.c | grep host_address=`
4357 rm -f conftest.c
4359 case ${host} in
4360 mips*-*-*)
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5
4362 $as_echo_n "checking whether the target is hard-float... " >&6; }
4363 if test "${libgcc_cv_mips_hard_float+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4368 #ifndef __mips_hard_float
4369 #error FOO
4370 #endif
4371 _ACEOF
4372 if ac_fn_c_try_compile "$LINENO"; then :
4373 libgcc_cv_mips_hard_float=yes
4374 else
4375 libgcc_cv_mips_hard_float=no
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5
4380 $as_echo "$libgcc_cv_mips_hard_float" >&6; }
4381 esac
4383 # Determine the version of glibc, if any, used on the target.
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
4385 $as_echo_n "checking for target glibc version... " >&6; }
4387 # Check whether --with-glibc-version was given.
4388 if test "${with_glibc_version+set}" = set; then :
4389 withval=$with_glibc_version;
4390 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
4391 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
4392 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
4393 else
4394 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
4396 else
4398 if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then :
4400 else
4401 glibc_version_major=0
4404 if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then :
4406 else
4407 glibc_version_minor=0
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
4413 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
4415 # Determine floating-point type for powerpc*-*-linux*.
4416 # Single-precision-only FPRs are not a supported configuration for
4417 # this target, so are not allowed for in this test.
4418 case ${host} in
4419 powerpc*-*-linux*)
4420 cat > conftest.c <<EOF
4421 #ifdef __powerpc64__
4422 ppc_fp_type=64
4423 #elif defined _SOFT_FLOAT
4424 ppc_fp_type=soft
4425 #elif defined _SOFT_DOUBLE
4426 ppc_fp_type=e500v1
4427 #elif defined __NO_FPRS__
4428 ppc_fp_type=e500v2
4429 #else
4430 ppc_fp_type=hard
4431 #endif
4433 eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
4434 rm -f conftest.c
4435 # glibc 2.19 and later provide all the soft-fp functions, with proper
4436 # interactions with <fenv.h> exception and rounding mode handling, so
4437 # make libgcc's versions into compat symbols if a recent enough glibc
4438 # version is being used.
4439 ppc_fp_compat=
4440 case ${ppc_fp_type} in
4441 soft|e500v1|e500v2)
4442 if test $glibc_version_major -gt 2 \
4443 || ( test $glibc_version_major -eq 2 \
4444 && test $glibc_version_minor -ge 19 ); then
4445 ppc_fp_compat="t-softfp-compat"
4448 esac
4450 esac
4452 # Collect host-machine-specific information.
4453 . ${srcdir}/config.host
4455 # Used for constructing correct paths for offload compilers.
4456 accel_dir_suffix=
4457 if test x"$enable_as_accelerator_for" != x; then
4458 accel_dir_suffix=/accel/${target_noncanonical}
4459 case "${target_noncanonical}" in
4460 *-intelmicemul-*)
4461 # In this case we expect offload compiler to be built as native, so we
4462 # need to change install directory for driver to be able to find libgcc.
4463 host_noncanonical=${enable_as_accelerator_for} ;;
4464 esac
4468 if test x"$enable_offload_targets" != x; then
4469 extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o"
4472 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
4473 # This is after config.host so we can augment tmake_file.
4474 # Link with -nostartfiles -nodefaultlibs since neither are present while
4475 # building libgcc.
4476 case ${host} in
4477 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
4478 cat > conftest.s <<EOF
4479 .section .eh_frame,"a",@unwind
4480 .zero 4
4481 .section .jcr,"aw",@progbits
4482 .zero 8
4484 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
4485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4489 test $ac_status = 0; }; }; then
4490 tmake_file="${tmake_file} i386/t-crtstuff"
4493 esac
4495 # Check for visibility support. This is after config.host so that
4496 # we can check for asm_hidden_op.
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
4498 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
4499 if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4503 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
4504 libgcc_cv_hidden_visibility_attribute=no
4505 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4507 (eval $ac_try) 2>&5
4508 ac_status=$?
4509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4510 test $ac_status = 0; }; }; then
4511 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
4512 libgcc_cv_hidden_visibility_attribute=yes
4515 rm -f conftest.*
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
4519 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
4521 if test $libgcc_cv_hidden_visibility_attribute = yes; then
4522 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
4523 else
4524 vis_hide=
4528 # See if we have thread-local storage. We can only test assembler
4529 # since link-time and run-time tests require the newly built
4530 # gcc, which can't be used to build executable due to that libgcc
4531 # is yet to be built here.
4533 # Check whether --enable-tls was given.
4534 if test "${enable_tls+set}" = set; then :
4535 enableval=$enable_tls;
4536 case "$enableval" in
4537 yes|no) ;;
4538 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
4539 esac
4541 else
4542 enable_tls=yes
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
4547 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
4548 if test "${gcc_cv_have_cc_tls+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554 __thread int a; int b; int main() { return a = b; }
4555 _ACEOF
4556 if ac_fn_c_try_compile "$LINENO"; then :
4557 gcc_cv_have_cc_tls=yes
4558 else
4559 gcc_cv_have_cc_tls=no
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
4565 $as_echo "$gcc_cv_have_cc_tls" >&6; }
4566 set_have_cc_tls=
4567 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
4568 set_have_cc_tls="-DHAVE_CC_TLS"
4572 # See if we have emulated thread-local storage.
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
4575 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
4576 if test "${gcc_cv_use_emutls+set}" = set; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4580 gcc_cv_use_emutls=no
4581 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
4582 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
4583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587 test $ac_status = 0; }; }; then
4588 if grep __emutls_get_address conftest.s > /dev/null; then
4589 gcc_cv_use_emutls=yes
4592 rm -f conftest.*
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
4596 $as_echo "$gcc_cv_use_emutls" >&6; }
4597 if test "$gcc_cv_use_emutls" = "yes" ; then
4599 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
4602 set_use_emutls=
4603 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
4604 set_use_emutls="-DUSE_EMUTLS"
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
4609 $as_echo_n "checking for init priority support... " >&6; }
4610 if test "${libgcc_cv_init_priority+set}" = set; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4618 main ()
4620 void ip (void) __attribute__ ((constructor (1)));
4622 return 0;
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626 libgcc_cv_init_priority=yes
4627 else
4628 libgcc_cv_init_priority=no
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
4633 $as_echo "$libgcc_cv_init_priority" >&6; }
4634 if test $libgcc_cv_init_priority = yes; then
4636 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
4640 # Conditionalize the sfp-machine.h header for this target machine.
4641 if test -z "${sfp_machine_header}"; then
4642 sfp_machine_header=$cpu_type/sfp-machine.h
4643 if test -f ${srcdir}/config/${sfp_machine_header}; then
4645 else
4646 sfp_machine_header=no-sfp-machine.h
4651 # Conditionalize the makefile for this target machine.
4652 tmake_file_=
4653 for f in ${tmake_file}
4655 if test -f ${srcdir}/config/$f
4656 then
4657 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
4659 done
4660 tmake_file="${tmake_file_}"
4663 # Likewise export definitions for libgcc_tm.h
4664 tm_file_=
4665 for f in ${tm_file}
4667 tm_file_="${tm_file_} \$(srcdir)/config/$f"
4668 done
4669 tm_file="${tm_file_}"
4673 # Map from thread model to thread header.
4675 case $target_thread_file in
4676 aix) thread_header=config/rs6000/gthr-aix.h ;;
4677 dce) thread_header=config/pa/gthr-dce.h ;;
4678 lynx) thread_header=config/gthr-lynx.h ;;
4679 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
4680 posix) thread_header=gthr-posix.h ;;
4681 rtems) thread_header=config/gthr-rtems.h ;;
4682 single) thread_header=gthr-single.h ;;
4683 tpf) thread_header=config/s390/gthr-tpf.h ;;
4684 vxworks) thread_header=config/gthr-vxworks.h ;;
4685 win32) thread_header=config/i386/gthr-win32.h ;;
4686 esac
4690 # Substitute configuration variables
4694 ac_config_links="$ac_config_links enable-execute-stack.c:$enable_execute_stack"
4696 ac_config_links="$ac_config_links unwind.h:$unwind_header"
4698 ac_config_links="$ac_config_links md-unwind-support.h:config/$md_unwind_header"
4700 ac_config_links="$ac_config_links sfp-machine.h:config/$sfp_machine_header"
4702 ac_config_links="$ac_config_links gthr-default.h:$thread_header"
4705 # We need multilib support.
4706 ac_config_files="$ac_config_files Makefile"
4708 ac_config_commands="$ac_config_commands default"
4710 cat >confcache <<\_ACEOF
4711 # This file is a shell script that caches the results of configure
4712 # tests run on this system so they can be shared between configure
4713 # scripts and configure runs, see configure's option --config-cache.
4714 # It is not useful on other systems. If it contains results you don't
4715 # want to keep, you may remove or edit it.
4717 # config.status only pays attention to the cache file if you give it
4718 # the --recheck option to rerun configure.
4720 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4721 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4722 # following values.
4724 _ACEOF
4726 # The following way of writing the cache mishandles newlines in values,
4727 # but we know of no workaround that is simple, portable, and efficient.
4728 # So, we kill variables containing newlines.
4729 # Ultrix sh set writes to stderr and can't be redirected directly,
4730 # and sets the high bit in the cache file unless we assign to the vars.
4732 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4733 eval ac_val=\$$ac_var
4734 case $ac_val in #(
4735 *${as_nl}*)
4736 case $ac_var in #(
4737 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4738 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4739 esac
4740 case $ac_var in #(
4741 _ | IFS | as_nl) ;; #(
4742 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4743 *) { eval $ac_var=; unset $ac_var;} ;;
4744 esac ;;
4745 esac
4746 done
4748 (set) 2>&1 |
4749 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4750 *${as_nl}ac_space=\ *)
4751 # `set' does not quote correctly, so add quotes: double-quote
4752 # substitution turns \\\\ into \\, and sed turns \\ into \.
4753 sed -n \
4754 "s/'/'\\\\''/g;
4755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4756 ;; #(
4758 # `set' quotes correctly as required by POSIX, so do not add quotes.
4759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4761 esac |
4762 sort
4764 sed '
4765 /^ac_cv_env_/b end
4766 t clear
4767 :clear
4768 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4769 t end
4770 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4771 :end' >>confcache
4772 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4773 if test -w "$cache_file"; then
4774 test "x$cache_file" != "x/dev/null" &&
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4776 $as_echo "$as_me: updating cache $cache_file" >&6;}
4777 cat confcache >$cache_file
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4780 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4783 rm -f confcache
4785 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4786 # Let make expand exec_prefix.
4787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4789 DEFS=-DHAVE_CONFIG_H
4791 ac_libobjs=
4792 ac_ltlibobjs=
4793 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4794 # 1. Remove the extension, and $U if already installed.
4795 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4796 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4797 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4798 # will be set to the directory where LIBOBJS objects are built.
4799 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4800 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4801 done
4802 LIBOBJS=$ac_libobjs
4804 LTLIBOBJS=$ac_ltlibobjs
4808 : ${CONFIG_STATUS=./config.status}
4809 ac_write_fail=0
4810 ac_clean_files_save=$ac_clean_files
4811 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4813 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4814 as_write_fail=0
4815 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4816 #! $SHELL
4817 # Generated by $as_me.
4818 # Run this file to recreate the current configuration.
4819 # Compiler output produced by configure, useful for debugging
4820 # configure, is in config.log if it exists.
4822 debug=false
4823 ac_cs_recheck=false
4824 ac_cs_silent=false
4826 SHELL=\${CONFIG_SHELL-$SHELL}
4827 export SHELL
4828 _ASEOF
4829 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4830 ## -------------------- ##
4831 ## M4sh Initialization. ##
4832 ## -------------------- ##
4834 # Be more Bourne compatible
4835 DUALCASE=1; export DUALCASE # for MKS sh
4836 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4837 emulate sh
4838 NULLCMD=:
4839 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4840 # is contrary to our usage. Disable this feature.
4841 alias -g '${1+"$@"}'='"$@"'
4842 setopt NO_GLOB_SUBST
4843 else
4844 case `(set -o) 2>/dev/null` in #(
4845 *posix*) :
4846 set -o posix ;; #(
4847 *) :
4849 esac
4853 as_nl='
4855 export as_nl
4856 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4857 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4858 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4859 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4860 # Prefer a ksh shell builtin over an external printf program on Solaris,
4861 # but without wasting forks for bash or zsh.
4862 if test -z "$BASH_VERSION$ZSH_VERSION" \
4863 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4864 as_echo='print -r --'
4865 as_echo_n='print -rn --'
4866 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4867 as_echo='printf %s\n'
4868 as_echo_n='printf %s'
4869 else
4870 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4871 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4872 as_echo_n='/usr/ucb/echo -n'
4873 else
4874 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4875 as_echo_n_body='eval
4876 arg=$1;
4877 case $arg in #(
4878 *"$as_nl"*)
4879 expr "X$arg" : "X\\(.*\\)$as_nl";
4880 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4881 esac;
4882 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4884 export as_echo_n_body
4885 as_echo_n='sh -c $as_echo_n_body as_echo'
4887 export as_echo_body
4888 as_echo='sh -c $as_echo_body as_echo'
4891 # The user is always right.
4892 if test "${PATH_SEPARATOR+set}" != set; then
4893 PATH_SEPARATOR=:
4894 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4895 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4896 PATH_SEPARATOR=';'
4901 # IFS
4902 # We need space, tab and new line, in precisely that order. Quoting is
4903 # there to prevent editors from complaining about space-tab.
4904 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4905 # splitting by setting IFS to empty value.)
4906 IFS=" "" $as_nl"
4908 # Find who we are. Look in the path if we contain no directory separator.
4909 case $0 in #((
4910 *[\\/]* ) as_myself=$0 ;;
4911 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4917 done
4918 IFS=$as_save_IFS
4921 esac
4922 # We did not find ourselves, most probably we were run as `sh COMMAND'
4923 # in which case we are not to be found in the path.
4924 if test "x$as_myself" = x; then
4925 as_myself=$0
4927 if test ! -f "$as_myself"; then
4928 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4929 exit 1
4932 # Unset variables that we do not need and which cause bugs (e.g. in
4933 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4934 # suppresses any "Segmentation fault" message there. '((' could
4935 # trigger a bug in pdksh 5.2.14.
4936 for as_var in BASH_ENV ENV MAIL MAILPATH
4937 do eval test x\${$as_var+set} = xset \
4938 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4939 done
4940 PS1='$ '
4941 PS2='> '
4942 PS4='+ '
4944 # NLS nuisances.
4945 LC_ALL=C
4946 export LC_ALL
4947 LANGUAGE=C
4948 export LANGUAGE
4950 # CDPATH.
4951 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4954 # as_fn_error ERROR [LINENO LOG_FD]
4955 # ---------------------------------
4956 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4957 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4958 # script with status $?, using 1 if that was 0.
4959 as_fn_error ()
4961 as_status=$?; test $as_status -eq 0 && as_status=1
4962 if test "$3"; then
4963 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4964 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4966 $as_echo "$as_me: error: $1" >&2
4967 as_fn_exit $as_status
4968 } # as_fn_error
4971 # as_fn_set_status STATUS
4972 # -----------------------
4973 # Set $? to STATUS, without forking.
4974 as_fn_set_status ()
4976 return $1
4977 } # as_fn_set_status
4979 # as_fn_exit STATUS
4980 # -----------------
4981 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4982 as_fn_exit ()
4984 set +e
4985 as_fn_set_status $1
4986 exit $1
4987 } # as_fn_exit
4989 # as_fn_unset VAR
4990 # ---------------
4991 # Portably unset VAR.
4992 as_fn_unset ()
4994 { eval $1=; unset $1;}
4996 as_unset=as_fn_unset
4997 # as_fn_append VAR VALUE
4998 # ----------------------
4999 # Append the text in VALUE to the end of the definition contained in VAR. Take
5000 # advantage of any shell optimizations that allow amortized linear growth over
5001 # repeated appends, instead of the typical quadratic growth present in naive
5002 # implementations.
5003 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5004 eval 'as_fn_append ()
5006 eval $1+=\$2
5008 else
5009 as_fn_append ()
5011 eval $1=\$$1\$2
5013 fi # as_fn_append
5015 # as_fn_arith ARG...
5016 # ------------------
5017 # Perform arithmetic evaluation on the ARGs, and store the result in the
5018 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5019 # must be portable across $(()) and expr.
5020 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5021 eval 'as_fn_arith ()
5023 as_val=$(( $* ))
5025 else
5026 as_fn_arith ()
5028 as_val=`expr "$@" || test $? -eq 1`
5030 fi # as_fn_arith
5033 if expr a : '\(a\)' >/dev/null 2>&1 &&
5034 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5035 as_expr=expr
5036 else
5037 as_expr=false
5040 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5041 as_basename=basename
5042 else
5043 as_basename=false
5046 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5047 as_dirname=dirname
5048 else
5049 as_dirname=false
5052 as_me=`$as_basename -- "$0" ||
5053 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5054 X"$0" : 'X\(//\)$' \| \
5055 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5056 $as_echo X/"$0" |
5057 sed '/^.*\/\([^/][^/]*\)\/*$/{
5058 s//\1/
5061 /^X\/\(\/\/\)$/{
5062 s//\1/
5065 /^X\/\(\/\).*/{
5066 s//\1/
5069 s/.*/./; q'`
5071 # Avoid depending upon Character Ranges.
5072 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5073 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5074 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5075 as_cr_digits='0123456789'
5076 as_cr_alnum=$as_cr_Letters$as_cr_digits
5078 ECHO_C= ECHO_N= ECHO_T=
5079 case `echo -n x` in #(((((
5080 -n*)
5081 case `echo 'xy\c'` in
5082 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5083 xy) ECHO_C='\c';;
5084 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5085 ECHO_T=' ';;
5086 esac;;
5088 ECHO_N='-n';;
5089 esac
5091 rm -f conf$$ conf$$.exe conf$$.file
5092 if test -d conf$$.dir; then
5093 rm -f conf$$.dir/conf$$.file
5094 else
5095 rm -f conf$$.dir
5096 mkdir conf$$.dir 2>/dev/null
5098 if (echo >conf$$.file) 2>/dev/null; then
5099 if ln -s conf$$.file conf$$ 2>/dev/null; then
5100 as_ln_s='ln -s'
5101 # ... but there are two gotchas:
5102 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5103 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5104 # In both cases, we have to default to `cp -p'.
5105 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5106 as_ln_s='cp -p'
5107 elif ln conf$$.file conf$$ 2>/dev/null; then
5108 as_ln_s=ln
5109 else
5110 as_ln_s='cp -p'
5112 else
5113 as_ln_s='cp -p'
5115 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5116 rmdir conf$$.dir 2>/dev/null
5119 # as_fn_mkdir_p
5120 # -------------
5121 # Create "$as_dir" as a directory, including parents if necessary.
5122 as_fn_mkdir_p ()
5125 case $as_dir in #(
5126 -*) as_dir=./$as_dir;;
5127 esac
5128 test -d "$as_dir" || eval $as_mkdir_p || {
5129 as_dirs=
5130 while :; do
5131 case $as_dir in #(
5132 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5133 *) as_qdir=$as_dir;;
5134 esac
5135 as_dirs="'$as_qdir' $as_dirs"
5136 as_dir=`$as_dirname -- "$as_dir" ||
5137 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5138 X"$as_dir" : 'X\(//\)[^/]' \| \
5139 X"$as_dir" : 'X\(//\)$' \| \
5140 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5141 $as_echo X"$as_dir" |
5142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5143 s//\1/
5146 /^X\(\/\/\)[^/].*/{
5147 s//\1/
5150 /^X\(\/\/\)$/{
5151 s//\1/
5154 /^X\(\/\).*/{
5155 s//\1/
5158 s/.*/./; q'`
5159 test -d "$as_dir" && break
5160 done
5161 test -z "$as_dirs" || eval "mkdir $as_dirs"
5162 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5165 } # as_fn_mkdir_p
5166 if mkdir -p . 2>/dev/null; then
5167 as_mkdir_p='mkdir -p "$as_dir"'
5168 else
5169 test -d ./-p && rmdir ./-p
5170 as_mkdir_p=false
5173 if test -x / >/dev/null 2>&1; then
5174 as_test_x='test -x'
5175 else
5176 if ls -dL / >/dev/null 2>&1; then
5177 as_ls_L_option=L
5178 else
5179 as_ls_L_option=
5181 as_test_x='
5182 eval sh -c '\''
5183 if test -d "$1"; then
5184 test -d "$1/.";
5185 else
5186 case $1 in #(
5187 -*)set "./$1";;
5188 esac;
5189 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5190 ???[sx]*):;;*)false;;esac;fi
5191 '\'' sh
5194 as_executable_p=$as_test_x
5196 # Sed expression to map a string onto a valid CPP name.
5197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5199 # Sed expression to map a string onto a valid variable name.
5200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5203 exec 6>&1
5204 ## ----------------------------------- ##
5205 ## Main body of $CONFIG_STATUS script. ##
5206 ## ----------------------------------- ##
5207 _ASEOF
5208 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5211 # Save the log message, to keep $0 and so on meaningful, and to
5212 # report actual input values of CONFIG_FILES etc. instead of their
5213 # values after options handling.
5214 ac_log="
5215 This file was extended by GNU C Runtime Library $as_me 1.0, which was
5216 generated by GNU Autoconf 2.64. Invocation command line was
5218 CONFIG_FILES = $CONFIG_FILES
5219 CONFIG_HEADERS = $CONFIG_HEADERS
5220 CONFIG_LINKS = $CONFIG_LINKS
5221 CONFIG_COMMANDS = $CONFIG_COMMANDS
5222 $ $0 $@
5224 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5227 _ACEOF
5229 case $ac_config_files in *"
5230 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5231 esac
5233 case $ac_config_headers in *"
5234 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5235 esac
5238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5239 # Files that config.status was made for.
5240 config_files="$ac_config_files"
5241 config_headers="$ac_config_headers"
5242 config_links="$ac_config_links"
5243 config_commands="$ac_config_commands"
5245 _ACEOF
5247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5248 ac_cs_usage="\
5249 \`$as_me' instantiates files and other configuration actions
5250 from templates according to the current configuration. Unless the files
5251 and actions are specified as TAGs, all are instantiated by default.
5253 Usage: $0 [OPTION]... [TAG]...
5255 -h, --help print this help, then exit
5256 -V, --version print version number and configuration settings, then exit
5257 -q, --quiet, --silent
5258 do not print progress messages
5259 -d, --debug don't remove temporary files
5260 --recheck update $as_me by reconfiguring in the same conditions
5261 --file=FILE[:TEMPLATE]
5262 instantiate the configuration file FILE
5263 --header=FILE[:TEMPLATE]
5264 instantiate the configuration header FILE
5266 Configuration files:
5267 $config_files
5269 Configuration headers:
5270 $config_headers
5272 Configuration links:
5273 $config_links
5275 Configuration commands:
5276 $config_commands
5278 Report bugs to the package provider.
5279 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
5280 General help using GNU software: <http://www.gnu.org/gethelp/>."
5282 _ACEOF
5283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5284 ac_cs_version="\\
5285 GNU C Runtime Library config.status 1.0
5286 configured by $0, generated by GNU Autoconf 2.64,
5287 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5289 Copyright (C) 2009 Free Software Foundation, Inc.
5290 This config.status script is free software; the Free Software Foundation
5291 gives unlimited permission to copy, distribute and modify it."
5293 ac_pwd='$ac_pwd'
5294 srcdir='$srcdir'
5295 INSTALL='$INSTALL'
5296 AWK='$AWK'
5297 test -n "\$AWK" || AWK=awk
5298 _ACEOF
5300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5301 # The default lists apply if the user does not specify any file.
5302 ac_need_defaults=:
5303 while test $# != 0
5305 case $1 in
5306 --*=*)
5307 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5308 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5309 ac_shift=:
5312 ac_option=$1
5313 ac_optarg=$2
5314 ac_shift=shift
5316 esac
5318 case $ac_option in
5319 # Handling of the options.
5320 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5321 ac_cs_recheck=: ;;
5322 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5323 $as_echo "$ac_cs_version"; exit ;;
5324 --debug | --debu | --deb | --de | --d | -d )
5325 debug=: ;;
5326 --file | --fil | --fi | --f )
5327 $ac_shift
5328 case $ac_optarg in
5329 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5330 esac
5331 as_fn_append CONFIG_FILES " '$ac_optarg'"
5332 ac_need_defaults=false;;
5333 --header | --heade | --head | --hea )
5334 $ac_shift
5335 case $ac_optarg in
5336 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5337 esac
5338 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5339 ac_need_defaults=false;;
5340 --he | --h)
5341 # Conflict between --help and --header
5342 as_fn_error "ambiguous option: \`$1'
5343 Try \`$0 --help' for more information.";;
5344 --help | --hel | -h )
5345 $as_echo "$ac_cs_usage"; exit ;;
5346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5347 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5348 ac_cs_silent=: ;;
5350 # This is an error.
5351 -*) as_fn_error "unrecognized option: \`$1'
5352 Try \`$0 --help' for more information." ;;
5354 *) as_fn_append ac_config_targets " $1"
5355 ac_need_defaults=false ;;
5357 esac
5358 shift
5359 done
5361 ac_configure_extra_args=
5363 if $ac_cs_silent; then
5364 exec 6>/dev/null
5365 ac_configure_extra_args="$ac_configure_extra_args --silent"
5368 _ACEOF
5369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5370 if \$ac_cs_recheck; then
5371 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5372 shift
5373 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5374 CONFIG_SHELL='$SHELL'
5375 export CONFIG_SHELL
5376 exec "\$@"
5379 _ACEOF
5380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5381 exec 5>>config.log
5383 echo
5384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5385 ## Running $as_me. ##
5386 _ASBOX
5387 $as_echo "$ac_log"
5388 } >&5
5390 _ACEOF
5391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5393 # INIT-COMMANDS
5395 srcdir=${srcdir}
5396 host=${host}
5397 with_target_subdir=${with_target_subdir}
5398 with_multisubdir=${with_multisubdir}
5399 ac_configure_args="--enable-multilib ${ac_configure_args}"
5400 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5401 libgcc_topdir=${libgcc_topdir}
5402 CC="${CC}"
5405 _ACEOF
5407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5409 # Handling of arguments.
5410 for ac_config_target in $ac_config_targets
5412 case $ac_config_target in
5413 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
5414 "enable-execute-stack.c") CONFIG_LINKS="$CONFIG_LINKS enable-execute-stack.c:$enable_execute_stack" ;;
5415 "unwind.h") CONFIG_LINKS="$CONFIG_LINKS unwind.h:$unwind_header" ;;
5416 "md-unwind-support.h") CONFIG_LINKS="$CONFIG_LINKS md-unwind-support.h:config/$md_unwind_header" ;;
5417 "sfp-machine.h") CONFIG_LINKS="$CONFIG_LINKS sfp-machine.h:config/$sfp_machine_header" ;;
5418 "gthr-default.h") CONFIG_LINKS="$CONFIG_LINKS gthr-default.h:$thread_header" ;;
5419 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5420 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5422 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5423 esac
5424 done
5427 # If the user did not use the arguments to specify the items to instantiate,
5428 # then the envvar interface is used. Set only those that are not.
5429 # We use the long form for the default assignment because of an extremely
5430 # bizarre bug on SunOS 4.1.3.
5431 if $ac_need_defaults; then
5432 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5433 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5434 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5435 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5438 # Have a temporary directory for convenience. Make it in the build tree
5439 # simply because there is no reason against having it here, and in addition,
5440 # creating and moving files from /tmp can sometimes cause problems.
5441 # Hook for its removal unless debugging.
5442 # Note that there is a small window in which the directory will not be cleaned:
5443 # after its creation but before its name has been assigned to `$tmp'.
5444 $debug ||
5446 tmp=
5447 trap 'exit_status=$?
5448 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5450 trap 'as_fn_exit 1' 1 2 13 15
5452 # Create a (secure) tmp directory for tmp files.
5455 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5456 test -n "$tmp" && test -d "$tmp"
5457 } ||
5459 tmp=./conf$$-$RANDOM
5460 (umask 077 && mkdir "$tmp")
5461 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5463 # Set up the scripts for CONFIG_FILES section.
5464 # No need to generate them if there are no CONFIG_FILES.
5465 # This happens for instance with `./config.status config.h'.
5466 if test -n "$CONFIG_FILES"; then
5469 ac_cr=`echo X | tr X '\015'`
5470 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5471 # But we know of no other shell where ac_cr would be empty at this
5472 # point, so we can use a bashism as a fallback.
5473 if test "x$ac_cr" = x; then
5474 eval ac_cr=\$\'\\r\'
5476 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5477 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5478 ac_cs_awk_cr='\r'
5479 else
5480 ac_cs_awk_cr=$ac_cr
5483 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5484 _ACEOF
5488 echo "cat >conf$$subs.awk <<_ACEOF" &&
5489 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5490 echo "_ACEOF"
5491 } >conf$$subs.sh ||
5492 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5493 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5494 ac_delim='%!_!# '
5495 for ac_last_try in false false false false false :; do
5496 . ./conf$$subs.sh ||
5497 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5499 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5500 if test $ac_delim_n = $ac_delim_num; then
5501 break
5502 elif $ac_last_try; then
5503 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5504 else
5505 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5507 done
5508 rm -f conf$$subs.sh
5510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5511 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5512 _ACEOF
5513 sed -n '
5515 s/^/S["/; s/!.*/"]=/
5518 s/^[^!]*!//
5519 :repl
5520 t repl
5521 s/'"$ac_delim"'$//
5522 t delim
5525 s/\(.\{148\}\).*/\1/
5526 t more1
5527 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5530 b repl
5531 :more1
5532 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5535 s/.\{148\}//
5536 t nl
5537 :delim
5539 s/\(.\{148\}\).*/\1/
5540 t more2
5541 s/["\\]/\\&/g; s/^/"/; s/$/"/
5544 :more2
5545 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5548 s/.\{148\}//
5549 t delim
5550 ' <conf$$subs.awk | sed '
5551 /^[^""]/{
5553 s/\n//
5555 ' >>$CONFIG_STATUS || ac_write_fail=1
5556 rm -f conf$$subs.awk
5557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5558 _ACAWK
5559 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5560 for (key in S) S_is_set[key] = 1
5561 FS = "\a"
5565 line = $ 0
5566 nfields = split(line, field, "@")
5567 substed = 0
5568 len = length(field[1])
5569 for (i = 2; i < nfields; i++) {
5570 key = field[i]
5571 keylen = length(key)
5572 if (S_is_set[key]) {
5573 value = S[key]
5574 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5575 len += length(value) + length(field[++i])
5576 substed = 1
5577 } else
5578 len += 1 + keylen
5581 print line
5584 _ACAWK
5585 _ACEOF
5586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5587 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5588 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5589 else
5591 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5592 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5593 _ACEOF
5595 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5596 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5597 # trailing colons and then remove the whole line if VPATH becomes empty
5598 # (actually we leave an empty line to preserve line numbers).
5599 if test "x$srcdir" = x.; then
5600 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5601 s/:*\$(srcdir):*/:/
5602 s/:*\${srcdir}:*/:/
5603 s/:*@srcdir@:*/:/
5604 s/^\([^=]*=[ ]*\):*/\1/
5605 s/:*$//
5606 s/^[^=]*=[ ]*$//
5610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5611 fi # test -n "$CONFIG_FILES"
5613 # Set up the scripts for CONFIG_HEADERS section.
5614 # No need to generate them if there are no CONFIG_HEADERS.
5615 # This happens for instance with `./config.status Makefile'.
5616 if test -n "$CONFIG_HEADERS"; then
5617 cat >"$tmp/defines.awk" <<\_ACAWK ||
5618 BEGIN {
5619 _ACEOF
5621 # Transform confdefs.h into an awk script `defines.awk', embedded as
5622 # here-document in config.status, that substitutes the proper values into
5623 # config.h.in to produce config.h.
5625 # Create a delimiter string that does not exist in confdefs.h, to ease
5626 # handling of long lines.
5627 ac_delim='%!_!# '
5628 for ac_last_try in false false :; do
5629 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5630 if test -z "$ac_t"; then
5631 break
5632 elif $ac_last_try; then
5633 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5634 else
5635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5637 done
5639 # For the awk script, D is an array of macro values keyed by name,
5640 # likewise P contains macro parameters if any. Preserve backslash
5641 # newline sequences.
5643 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5644 sed -n '
5645 s/.\{148\}/&'"$ac_delim"'/g
5646 t rset
5647 :rset
5648 s/^[ ]*#[ ]*define[ ][ ]*/ /
5649 t def
5651 :def
5652 s/\\$//
5653 t bsnl
5654 s/["\\]/\\&/g
5655 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5656 D["\1"]=" \3"/p
5657 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5659 :bsnl
5660 s/["\\]/\\&/g
5661 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5662 D["\1"]=" \3\\\\\\n"\\/p
5663 t cont
5664 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5665 t cont
5667 :cont
5669 s/.\{148\}/&'"$ac_delim"'/g
5670 t clear
5671 :clear
5672 s/\\$//
5673 t bsnlc
5674 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5676 :bsnlc
5677 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5678 b cont
5679 ' <confdefs.h | sed '
5680 s/'"$ac_delim"'/"\\\
5681 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5684 for (key in D) D_is_set[key] = 1
5685 FS = "\a"
5687 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5688 line = \$ 0
5689 split(line, arg, " ")
5690 if (arg[1] == "#") {
5691 defundef = arg[2]
5692 mac1 = arg[3]
5693 } else {
5694 defundef = substr(arg[1], 2)
5695 mac1 = arg[2]
5697 split(mac1, mac2, "(") #)
5698 macro = mac2[1]
5699 prefix = substr(line, 1, index(line, defundef) - 1)
5700 if (D_is_set[macro]) {
5701 # Preserve the white space surrounding the "#".
5702 print prefix "define", macro P[macro] D[macro]
5703 next
5704 } else {
5705 # Replace #undef with comments. This is necessary, for example,
5706 # in the case of _POSIX_SOURCE, which is predefined and required
5707 # on some systems where configure will not decide to define it.
5708 if (defundef == "undef") {
5709 print "/*", prefix defundef, macro, "*/"
5710 next
5714 { print }
5715 _ACAWK
5716 _ACEOF
5717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5718 as_fn_error "could not setup config headers machinery" "$LINENO" 5
5719 fi # test -n "$CONFIG_HEADERS"
5722 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
5723 shift
5724 for ac_tag
5726 case $ac_tag in
5727 :[FHLC]) ac_mode=$ac_tag; continue;;
5728 esac
5729 case $ac_mode$ac_tag in
5730 :[FHL]*:*);;
5731 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5732 :[FH]-) ac_tag=-:-;;
5733 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5734 esac
5735 ac_save_IFS=$IFS
5736 IFS=:
5737 set x $ac_tag
5738 IFS=$ac_save_IFS
5739 shift
5740 ac_file=$1
5741 shift
5743 case $ac_mode in
5744 :L) ac_source=$1;;
5745 :[FH])
5746 ac_file_inputs=
5747 for ac_f
5749 case $ac_f in
5750 -) ac_f="$tmp/stdin";;
5751 *) # Look for the file first in the build tree, then in the source tree
5752 # (if the path is not absolute). The absolute path cannot be DOS-style,
5753 # because $ac_f cannot contain `:'.
5754 test -f "$ac_f" ||
5755 case $ac_f in
5756 [\\/$]*) false;;
5757 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5758 esac ||
5759 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5760 esac
5761 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5762 as_fn_append ac_file_inputs " '$ac_f'"
5763 done
5765 # Let's still pretend it is `configure' which instantiates (i.e., don't
5766 # use $as_me), people would be surprised to read:
5767 # /* config.h. Generated by config.status. */
5768 configure_input='Generated from '`
5769 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5770 `' by configure.'
5771 if test x"$ac_file" != x-; then
5772 configure_input="$ac_file. $configure_input"
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5774 $as_echo "$as_me: creating $ac_file" >&6;}
5776 # Neutralize special characters interpreted by sed in replacement strings.
5777 case $configure_input in #(
5778 *\&* | *\|* | *\\* )
5779 ac_sed_conf_input=`$as_echo "$configure_input" |
5780 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5781 *) ac_sed_conf_input=$configure_input;;
5782 esac
5784 case $ac_tag in
5785 *:-:* | *:-) cat >"$tmp/stdin" \
5786 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5787 esac
5789 esac
5791 ac_dir=`$as_dirname -- "$ac_file" ||
5792 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5793 X"$ac_file" : 'X\(//\)[^/]' \| \
5794 X"$ac_file" : 'X\(//\)$' \| \
5795 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5796 $as_echo X"$ac_file" |
5797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5798 s//\1/
5801 /^X\(\/\/\)[^/].*/{
5802 s//\1/
5805 /^X\(\/\/\)$/{
5806 s//\1/
5809 /^X\(\/\).*/{
5810 s//\1/
5813 s/.*/./; q'`
5814 as_dir="$ac_dir"; as_fn_mkdir_p
5815 ac_builddir=.
5817 case "$ac_dir" in
5818 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5820 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5821 # A ".." for each directory in $ac_dir_suffix.
5822 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5823 case $ac_top_builddir_sub in
5824 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5825 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5826 esac ;;
5827 esac
5828 ac_abs_top_builddir=$ac_pwd
5829 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5830 # for backward compatibility:
5831 ac_top_builddir=$ac_top_build_prefix
5833 case $srcdir in
5834 .) # We are building in place.
5835 ac_srcdir=.
5836 ac_top_srcdir=$ac_top_builddir_sub
5837 ac_abs_top_srcdir=$ac_pwd ;;
5838 [\\/]* | ?:[\\/]* ) # Absolute name.
5839 ac_srcdir=$srcdir$ac_dir_suffix;
5840 ac_top_srcdir=$srcdir
5841 ac_abs_top_srcdir=$srcdir ;;
5842 *) # Relative name.
5843 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5844 ac_top_srcdir=$ac_top_build_prefix$srcdir
5845 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5846 esac
5847 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5850 case $ac_mode in
5853 # CONFIG_FILE
5856 case $INSTALL in
5857 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5858 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5859 esac
5860 _ACEOF
5862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5863 # If the template does not know about datarootdir, expand it.
5864 # FIXME: This hack should be removed a few years after 2.60.
5865 ac_datarootdir_hack=; ac_datarootdir_seen=
5866 ac_sed_dataroot='
5867 /datarootdir/ {
5871 /@datadir@/p
5872 /@docdir@/p
5873 /@infodir@/p
5874 /@localedir@/p
5875 /@mandir@/p'
5876 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5877 *datarootdir*) ac_datarootdir_seen=yes;;
5878 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5880 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5881 _ACEOF
5882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5883 ac_datarootdir_hack='
5884 s&@datadir@&$datadir&g
5885 s&@docdir@&$docdir&g
5886 s&@infodir@&$infodir&g
5887 s&@localedir@&$localedir&g
5888 s&@mandir@&$mandir&g
5889 s&\\\${datarootdir}&$datarootdir&g' ;;
5890 esac
5891 _ACEOF
5893 # Neutralize VPATH when `$srcdir' = `.'.
5894 # Shell code in configure.ac might set extrasub.
5895 # FIXME: do we really want to maintain this feature?
5896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5897 ac_sed_extra="$ac_vpsub
5898 $extrasub
5899 _ACEOF
5900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5902 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5903 s|@configure_input@|$ac_sed_conf_input|;t t
5904 s&@top_builddir@&$ac_top_builddir_sub&;t t
5905 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5906 s&@srcdir@&$ac_srcdir&;t t
5907 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5908 s&@top_srcdir@&$ac_top_srcdir&;t t
5909 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5910 s&@builddir@&$ac_builddir&;t t
5911 s&@abs_builddir@&$ac_abs_builddir&;t t
5912 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5913 s&@INSTALL@&$ac_INSTALL&;t t
5914 $ac_datarootdir_hack
5916 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5917 || as_fn_error "could not create $ac_file" "$LINENO" 5
5919 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5920 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5921 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5923 which seems to be undefined. Please make sure it is defined." >&5
5924 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5925 which seems to be undefined. Please make sure it is defined." >&2;}
5927 rm -f "$tmp/stdin"
5928 case $ac_file in
5929 -) cat "$tmp/out" && rm -f "$tmp/out";;
5930 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5931 esac \
5932 || as_fn_error "could not create $ac_file" "$LINENO" 5
5936 # CONFIG_HEADER
5938 if test x"$ac_file" != x-; then
5940 $as_echo "/* $configure_input */" \
5941 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5942 } >"$tmp/config.h" \
5943 || as_fn_error "could not create $ac_file" "$LINENO" 5
5944 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5946 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5947 else
5948 rm -f "$ac_file"
5949 mv "$tmp/config.h" "$ac_file" \
5950 || as_fn_error "could not create $ac_file" "$LINENO" 5
5952 else
5953 $as_echo "/* $configure_input */" \
5954 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5955 || as_fn_error "could not create -" "$LINENO" 5
5960 # CONFIG_LINK
5963 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
5965 else
5966 # Prefer the file from the source tree if names are identical.
5967 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
5968 ac_source=$srcdir/$ac_source
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
5972 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
5974 if test ! -r "$ac_source"; then
5975 as_fn_error "$ac_source: file not found" "$LINENO" 5
5977 rm -f "$ac_file"
5979 # Try a relative symlink, then a hard link, then a copy.
5980 case $srcdir in
5981 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
5982 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
5983 esac
5984 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
5985 ln "$ac_source" "$ac_file" 2>/dev/null ||
5986 cp -p "$ac_source" "$ac_file" ||
5987 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
5990 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5991 $as_echo "$as_me: executing $ac_file commands" >&6;}
5993 esac
5996 case $ac_file$ac_mode in
5997 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5998 if test -n "$CONFIG_FILES"; then
5999 # FIXME: We shouldn't need to set ac_file
6000 ac_file=Makefile
6001 . ${libgcc_topdir}/config-ml.in
6002 fi ;;
6004 esac
6005 done # for ac_tag
6008 as_fn_exit 0
6009 _ACEOF
6010 ac_clean_files=$ac_clean_files_save
6012 test $ac_write_fail = 0 ||
6013 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6016 # configure is writing to config.log, and then calls config.status.
6017 # config.status does its own redirection, appending to config.log.
6018 # Unfortunately, on DOS this fails, as config.log is still kept open
6019 # by configure, so config.status won't be able to write to it; its
6020 # output is simply discarded. So we exec the FD to /dev/null,
6021 # effectively closing config.log, so it can be properly (re)opened and
6022 # appended to by config.status. When coming back to configure, we
6023 # need to make the FD available again.
6024 if test "$no_create" != yes; then
6025 ac_cs_success=:
6026 ac_config_status_args=
6027 test "$silent" = yes &&
6028 ac_config_status_args="$ac_config_status_args --quiet"
6029 exec 5>/dev/null
6030 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6031 exec 5>>config.log
6032 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6033 # would make configure fail if this is the last instruction.
6034 $ac_cs_success || as_fn_exit $?
6036 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6038 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}