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
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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
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 :
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+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
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 :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
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 :
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
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.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
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."
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."
238 SHELL=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
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
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
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 :
352 as_val=`expr "$@" || test $? -eq 1`
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.
364 as_status=$?; test $as_status -eq 0 && as_status=1
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
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
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
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 ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
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"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
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
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`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
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'
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
571 long_double_type_size
639 program_transform_name
652 enable_option_checking
657 enable_version_specific_runtime_libs
659 enable_maintainer_mode
662 with_system_libunwind
663 enable_sjlj_exceptions
666 ac_precious_vars='build_alias
677 # Initialize some variables set by options.
679 ac_init_version=false
680 ac_unrecognized_opts=
682 # The variables have the same names as the options, with
683 # dashes changed to underlines.
691 program_transform_name=s,x,x,
699 # Installation directory options.
700 # These are left unexpanded so users can "make install exec_prefix=/foo"
701 # and all the variables that are supposed to be based on exec_prefix
702 # by default will actually change.
703 # Use braces instead of parens because sh, perl, etc. also accept them.
704 # (The list follows the same order as the GNU Coding Standards.)
705 bindir='${exec_prefix}/bin'
706 sbindir='${exec_prefix}/sbin'
707 libexecdir='${exec_prefix}/libexec'
708 datarootdir='${prefix}/share'
709 datadir='${datarootdir}'
710 sysconfdir='${prefix}/etc'
711 sharedstatedir='${prefix}/com'
712 localstatedir='${prefix}/var'
713 includedir='${prefix}/include'
714 oldincludedir='/usr/include'
715 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
716 infodir='${datarootdir}/info'
721 libdir='${exec_prefix}/lib'
722 localedir='${datarootdir}/locale'
723 mandir='${datarootdir}/man'
729 # If the previous option needs an argument, assign it.
730 if test -n "$ac_prev"; then
731 eval $ac_prev=\$ac_option
737 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
741 # Accept the important Cygnus configure options, so we can diagnose typos.
743 case $ac_dashdash$ac_option in
747 -bindir | --bindir | --bindi | --bind | --bin | --bi)
749 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
752 -build | --build | --buil | --bui | --bu)
753 ac_prev=build_alias ;;
754 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
755 build_alias=$ac_optarg ;;
757 -cache-file | --cache-file | --cache-fil | --cache-fi \
758 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
759 ac_prev=cache_file ;;
760 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
761 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
762 cache_file=$ac_optarg ;;
765 cache_file=config.cache ;;
767 -datadir | --datadir | --datadi | --datad)
769 -datadir=* | --datadir=* | --datadi=* | --datad=*)
770 datadir=$ac_optarg ;;
772 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
773 | --dataroo | --dataro | --datar)
774 ac_prev=datarootdir ;;
775 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
776 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
777 datarootdir=$ac_optarg ;;
779 -disable-* | --disable-*)
780 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
783 as_fn_error "invalid feature name: $ac_useropt"
784 ac_useropt_orig=$ac_useropt
785 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
786 case $ac_user_opts in
790 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
791 ac_unrecognized_sep=', ';;
793 eval enable_$ac_useropt=no ;;
795 -docdir | --docdir | --docdi | --doc | --do)
797 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
800 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
802 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
805 -enable-* | --enable-*)
806 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
807 # Reject names that are not valid shell variable names.
808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809 as_fn_error "invalid feature name: $ac_useropt"
810 ac_useropt_orig=$ac_useropt
811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812 case $ac_user_opts in
816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
817 ac_unrecognized_sep=', ';;
819 eval enable_$ac_useropt=\$ac_optarg ;;
821 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
822 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
823 | --exec | --exe | --ex)
824 ac_prev=exec_prefix ;;
825 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
826 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
827 | --exec=* | --exe=* | --ex=*)
828 exec_prefix=$ac_optarg ;;
830 -gas | --gas | --ga | --g)
831 # Obsolete; use --with-gas.
834 -help | --help | --hel | --he | -h)
836 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
837 ac_init_help=recursive ;;
838 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
839 ac_init_help=short ;;
841 -host | --host | --hos | --ho)
842 ac_prev=host_alias ;;
843 -host=* | --host=* | --hos=* | --ho=*)
844 host_alias=$ac_optarg ;;
846 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
848 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
850 htmldir=$ac_optarg ;;
852 -includedir | --includedir | --includedi | --included | --include \
853 | --includ | --inclu | --incl | --inc)
854 ac_prev=includedir ;;
855 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
856 | --includ=* | --inclu=* | --incl=* | --inc=*)
857 includedir=$ac_optarg ;;
859 -infodir | --infodir | --infodi | --infod | --info | --inf)
861 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
862 infodir=$ac_optarg ;;
864 -libdir | --libdir | --libdi | --libd)
866 -libdir=* | --libdir=* | --libdi=* | --libd=*)
869 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
870 | --libexe | --libex | --libe)
871 ac_prev=libexecdir ;;
872 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
873 | --libexe=* | --libex=* | --libe=*)
874 libexecdir=$ac_optarg ;;
876 -localedir | --localedir | --localedi | --localed | --locale)
878 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
879 localedir=$ac_optarg ;;
881 -localstatedir | --localstatedir | --localstatedi | --localstated \
882 | --localstate | --localstat | --localsta | --localst | --locals)
883 ac_prev=localstatedir ;;
884 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
885 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
886 localstatedir=$ac_optarg ;;
888 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
890 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
894 # Obsolete; use --without-fp.
897 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
898 | --no-cr | --no-c | -n)
901 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
902 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
905 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
906 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
907 | --oldin | --oldi | --old | --ol | --o)
908 ac_prev=oldincludedir ;;
909 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
910 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
911 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
912 oldincludedir=$ac_optarg ;;
914 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
916 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
919 -program-prefix | --program-prefix | --program-prefi | --program-pref \
920 | --program-pre | --program-pr | --program-p)
921 ac_prev=program_prefix ;;
922 -program-prefix=* | --program-prefix=* | --program-prefi=* \
923 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
924 program_prefix=$ac_optarg ;;
926 -program-suffix | --program-suffix | --program-suffi | --program-suff \
927 | --program-suf | --program-su | --program-s)
928 ac_prev=program_suffix ;;
929 -program-suffix=* | --program-suffix=* | --program-suffi=* \
930 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
931 program_suffix=$ac_optarg ;;
933 -program-transform-name | --program-transform-name \
934 | --program-transform-nam | --program-transform-na \
935 | --program-transform-n | --program-transform- \
936 | --program-transform | --program-transfor \
937 | --program-transfo | --program-transf \
938 | --program-trans | --program-tran \
939 | --progr-tra | --program-tr | --program-t)
940 ac_prev=program_transform_name ;;
941 -program-transform-name=* | --program-transform-name=* \
942 | --program-transform-nam=* | --program-transform-na=* \
943 | --program-transform-n=* | --program-transform-=* \
944 | --program-transform=* | --program-transfor=* \
945 | --program-transfo=* | --program-transf=* \
946 | --program-trans=* | --program-tran=* \
947 | --progr-tra=* | --program-tr=* | --program-t=*)
948 program_transform_name=$ac_optarg ;;
950 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
952 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
955 -psdir | --psdir | --psdi | --psd | --ps)
957 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
961 | -silent | --silent | --silen | --sile | --sil)
964 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
966 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
968 sbindir=$ac_optarg ;;
970 -sharedstatedir | --sharedstatedir | --sharedstatedi \
971 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
972 | --sharedst | --shareds | --shared | --share | --shar \
974 ac_prev=sharedstatedir ;;
975 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
976 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
977 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
979 sharedstatedir=$ac_optarg ;;
981 -site | --site | --sit)
983 -site=* | --site=* | --sit=*)
986 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
988 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
991 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
992 | --syscon | --sysco | --sysc | --sys | --sy)
993 ac_prev=sysconfdir ;;
994 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
995 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
996 sysconfdir=$ac_optarg ;;
998 -target | --target | --targe | --targ | --tar | --ta | --t)
999 ac_prev=target_alias ;;
1000 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1001 target_alias=$ac_optarg ;;
1003 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1006 -version | --version | --versio | --versi | --vers | -V)
1007 ac_init_version=: ;;
1010 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error "invalid package name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1023 eval with_$ac_useropt=\$ac_optarg ;;
1025 -without-* | --without-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error "invalid package name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1039 eval with_$ac_useropt=no ;;
1042 # Obsolete; use --with-x.
1045 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1046 | --x-incl | --x-inc | --x-in | --x-i)
1047 ac_prev=x_includes ;;
1048 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1049 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1050 x_includes=$ac_optarg ;;
1052 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1053 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1054 ac_prev=x_libraries ;;
1055 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1056 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1057 x_libraries=$ac_optarg ;;
1059 -*) as_fn_error "unrecognized option: \`$ac_option'
1060 Try \`$0 --help' for more information."
1064 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1065 # Reject names that are not valid shell variable names.
1066 case $ac_envvar in #(
1067 '' | [0-9]* | *[!_$as_cr_alnum]* )
1068 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1070 eval $ac_envvar=\$ac_optarg
1071 export $ac_envvar ;;
1074 # FIXME: should be removed in autoconf 3.0.
1075 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1076 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1078 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1084 if test -n "$ac_prev"; then
1085 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1086 as_fn_error "missing argument to $ac_option"
1089 if test -n "$ac_unrecognized_opts"; then
1090 case $enable_option_checking in
1092 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1093 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1097 # Check all directory arguments for consistency.
1098 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1099 datadir sysconfdir sharedstatedir localstatedir includedir \
1100 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1101 libdir localedir mandir
1103 eval ac_val=\$$ac_var
1104 # Remove trailing slashes.
1107 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1108 eval $ac_var=\$ac_val;;
1110 # Be sure to have absolute directory names.
1112 [\\/$]* | ?:[\\/]* ) continue;;
1113 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1115 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1118 # There might be people who depend on the old broken behavior: `$host'
1119 # used to hold the argument of --host etc.
1120 # FIXME: To remove some day.
1123 target=$target_alias
1125 # FIXME: To remove some day.
1126 if test "x$host_alias" != x; then
1127 if test "x$build_alias" = x; then
1128 cross_compiling=maybe
1129 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1130 If a cross compiler is detected then cross compile mode will be used." >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1137 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1139 test "$silent" = yes && exec 6>/dev/null
1142 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di=`ls -di .` &&
1144 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1145 as_fn_error "working directory cannot be determined"
1146 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147 as_fn_error "pwd does not report name of working directory"
1150 # Find the source files, if location was not specified.
1151 if test -z "$srcdir"; then
1152 ac_srcdir_defaulted=yes
1153 # Try the directory containing this script, then the parent directory.
1154 ac_confdir=`$as_dirname -- "$as_myself" ||
1155 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1156 X"$as_myself" : 'X\(//\)[^/]' \| \
1157 X"$as_myself" : 'X\(//\)$' \| \
1158 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1159 $as_echo X"$as_myself" |
1160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178 if test ! -r "$srcdir/$ac_unique_file"; then
1182 ac_srcdir_defaulted=no
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1185 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1186 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1188 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1190 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1192 # When building in place, set srcdir=.
1193 if test "$ac_abs_confdir" = "$ac_pwd"; then
1196 # Remove unnecessary trailing slashes from srcdir.
1197 # Double slashes in file names in object file debugging info
1198 # mess up M-x gdb in Emacs.
1200 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1202 for ac_var in $ac_precious_vars; do
1203 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1204 eval ac_env_${ac_var}_value=\$${ac_var}
1205 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1210 # Report the --help message.
1212 if test "$ac_init_help" = "long"; then
1213 # Omit some internal or obsolete options to make the list less imposing.
1214 # This message is too long to be a string in the A/UX 3.1 sh.
1216 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1218 Usage: $0 [OPTION]... [VAR=VALUE]...
1220 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1221 VAR=VALUE. See below for descriptions of some of the useful variables.
1223 Defaults for the options are specified in brackets.
1226 -h, --help display this help and exit
1227 --help=short display options specific to this package
1228 --help=recursive display the short help of all the included packages
1229 -V, --version display version information and exit
1230 -q, --quiet, --silent do not print \`checking...' messages
1231 --cache-file=FILE cache test results in FILE [disabled]
1232 -C, --config-cache alias for \`--cache-file=config.cache'
1233 -n, --no-create do not create output files
1234 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1236 Installation directories:
1237 --prefix=PREFIX install architecture-independent files in PREFIX
1238 [$ac_default_prefix]
1239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1242 By default, \`make install' will install all the files in
1243 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1244 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1245 for instance \`--prefix=\$HOME'.
1247 For better control, use the options below.
1249 Fine tuning of the installation directories:
1250 --bindir=DIR user executables [EPREFIX/bin]
1251 --sbindir=DIR system admin executables [EPREFIX/sbin]
1252 --libexecdir=DIR program executables [EPREFIX/libexec]
1253 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1254 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1255 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1256 --libdir=DIR object code libraries [EPREFIX/lib]
1257 --includedir=DIR C header files [PREFIX/include]
1258 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1259 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1260 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1261 --infodir=DIR info documentation [DATAROOTDIR/info]
1262 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1263 --mandir=DIR man documentation [DATAROOTDIR/man]
1264 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1265 --htmldir=DIR html documentation [DOCDIR]
1266 --dvidir=DIR dvi documentation [DOCDIR]
1267 --pdfdir=DIR pdf documentation [DOCDIR]
1268 --psdir=DIR ps documentation [DOCDIR]
1274 --build=BUILD configure for building on BUILD [guessed]
1275 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1279 if test -n "$ac_init_help"; then
1280 case $ac_init_help in
1281 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1286 --disable-option-checking ignore unrecognized --enable/--with options
1287 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1288 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1289 --disable-shared don't provide a shared libgcc
1290 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1291 --enable-maintainer-mode
1292 enable make rules and dependencies not useful (and
1293 sometimes confusing) to the casual installer
1294 --enable-decimal-float={no,yes,bid,dpd}
1295 enable decimal float extension to C. Selecting 'bid'
1296 or 'dpd' choses which decimal floating point format
1298 --enable-sjlj-exceptions
1299 force use of builtin_setjmp for exceptions
1300 --enable-tls Use thread-local storage [default=yes]
1303 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1304 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1305 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1306 --with-cross-host=HOST Configuring with a cross compiler
1307 --with-ld arrange to use the specified ld (full pathname)
1308 --with-slibdir=DIR shared libraries in DIR LIBDIR
1309 --with-build-libsubdir=DIR Directory where to find libraries for build system
1310 --with-system-libunwind use installed libunwind
1312 Some influential environment variables:
1313 CC C compiler command
1314 CFLAGS C compiler flags
1315 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1316 nonstandard directory <lib dir>
1317 LIBS libraries to pass to the linker, e.g. -l<library>
1318 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1319 you have headers in a nonstandard directory <include dir>
1322 Use these variables to override the choices made by `configure' or to help
1323 it to find libraries and programs with nonstandard names/locations.
1325 Report bugs to the package provider.
1326 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1327 General help using GNU software: <http://www.gnu.org/gethelp/>.
1332 if test "$ac_init_help" = "recursive"; then
1333 # If there are subdirs, report their specific --help.
1334 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1335 test -d "$ac_dir" ||
1336 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1341 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1343 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1344 # A ".." for each directory in $ac_dir_suffix.
1345 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1346 case $ac_top_builddir_sub in
1347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351 ac_abs_top_builddir=$ac_pwd
1352 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1353 # for backward compatibility:
1354 ac_top_builddir=$ac_top_build_prefix
1357 .) # We are building in place.
1359 ac_top_srcdir=$ac_top_builddir_sub
1360 ac_abs_top_srcdir=$ac_pwd ;;
1361 [\\/]* | ?:[\\/]* ) # Absolute name.
1362 ac_srcdir=$srcdir$ac_dir_suffix;
1363 ac_top_srcdir=$srcdir
1364 ac_abs_top_srcdir=$srcdir ;;
1366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1367 ac_top_srcdir=$ac_top_build_prefix$srcdir
1368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1370 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1372 cd "$ac_dir" || { ac_status=$?; continue; }
1373 # Check for guested configure.
1374 if test -f "$ac_srcdir/configure.gnu"; then
1376 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1377 elif test -f "$ac_srcdir/configure"; then
1379 $SHELL "$ac_srcdir/configure" --help=recursive
1381 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1383 cd "$ac_pwd" || { ac_status=$?; break; }
1387 test -n "$ac_init_help" && exit $ac_status
1388 if $ac_init_version; then
1390 GNU C Runtime Library configure 1.0
1391 generated by GNU Autoconf 2.64
1393 Copyright (C) 2009 Free Software Foundation, Inc.
1394 This configure script is free software; the Free Software Foundation
1395 gives unlimited permission to copy, distribute and modify it.
1400 ## ------------------------ ##
1401 ## Autoconf initialization. ##
1402 ## ------------------------ ##
1404 # ac_fn_c_try_compile LINENO
1405 # --------------------------
1406 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1407 ac_fn_c_try_compile ()
1409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1410 rm -f conftest.$ac_objext
1411 if { { ac_try="$ac_compile"
1413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1414 *) ac_try_echo=$ac_try;;
1416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1417 $as_echo "$ac_try_echo"; } >&5
1418 (eval "$ac_compile") 2>conftest.err
1420 if test -s conftest.err; then
1421 grep -v '^ *+' conftest.err >conftest.er1
1422 cat conftest.er1 >&5
1423 mv -f conftest.er1 conftest.err
1425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1426 test $ac_status = 0; } && {
1427 test -z "$ac_c_werror_flag" ||
1428 test ! -s conftest.err
1429 } && test -s conftest.$ac_objext; then :
1432 $as_echo "$as_me: failed program was:" >&5
1433 sed 's/^/| /' conftest.$ac_ext >&5
1437 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1440 } # ac_fn_c_try_compile
1442 # ac_fn_c_try_cpp LINENO
1443 # ----------------------
1444 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1448 if { { ac_try="$ac_cpp conftest.$ac_ext"
1450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1451 *) ac_try_echo=$ac_try;;
1453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1454 $as_echo "$ac_try_echo"; } >&5
1455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1457 if test -s conftest.err; then
1458 grep -v '^ *+' conftest.err >conftest.er1
1459 cat conftest.er1 >&5
1460 mv -f conftest.er1 conftest.err
1462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1463 test $ac_status = 0; } >/dev/null && {
1464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1465 test ! -s conftest.err
1469 $as_echo "$as_me: failed program was:" >&5
1470 sed 's/^/| /' conftest.$ac_ext >&5
1474 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1479 # ac_fn_c_try_run LINENO
1480 # ----------------------
1481 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1482 # that executables *can* be run.
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 if { { ac_try="$ac_link"
1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_link") 2>&5
1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1496 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1497 { { case "(($ac_try" in
1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_try") 2>&5
1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506 test $ac_status = 0; }; }; then :
1509 $as_echo "$as_me: program exited with status $ac_status" >&5
1510 $as_echo "$as_me: failed program was:" >&5
1511 sed 's/^/| /' conftest.$ac_ext >&5
1513 ac_retval=$ac_status
1515 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1521 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1522 # --------------------------------------------
1523 # Tries to find the compile-time value of EXPR in a program that includes
1524 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1526 ac_fn_c_compute_int ()
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 if test "$cross_compiling" = yes; then
1530 # Depending upon the size, compute the lo and hi bounds.
1531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1532 /* end confdefs.h. */
1537 static int test_array [1 - 2 * !(($2) >= 0)];
1544 if ac_fn_c_try_compile "$LINENO"; then :
1547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1548 /* end confdefs.h. */
1553 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1560 if ac_fn_c_try_compile "$LINENO"; then :
1561 ac_hi=$ac_mid; break
1563 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1564 if test $ac_lo -le $ac_mid; then
1568 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h. */
1579 static int test_array [1 - 2 * !(($2) < 0)];
1586 if ac_fn_c_try_compile "$LINENO"; then :
1589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1590 /* end confdefs.h. */
1595 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1602 if ac_fn_c_try_compile "$LINENO"; then :
1603 ac_lo=$ac_mid; break
1605 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1606 if test $ac_mid -le $ac_hi; then
1610 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1620 # Binary search between lo and hi bounds.
1621 while test "x$ac_lo" != "x$ac_hi"; do
1622 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1629 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1636 if ac_fn_c_try_compile "$LINENO"; then :
1639 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1651 static long int longval () { return $2; }
1652 static unsigned long int ulongval () { return $2; }
1659 FILE *f = fopen ("conftest.val", "w");
1664 long int i = longval ();
1667 fprintf (f, "%ld", i);
1671 unsigned long int i = ulongval ();
1674 fprintf (f, "%lu", i);
1676 /* Do not output a trailing newline, as this causes \r\n confusion
1677 on some platforms. */
1678 return ferror (f) || fclose (f) != 0;
1684 if ac_fn_c_try_run "$LINENO"; then :
1685 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1690 conftest.$ac_objext conftest.beam conftest.$ac_ext
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697 } # ac_fn_c_compute_int
1698 cat >config.log <<_ACEOF
1699 This file contains any messages produced by compilers while
1700 running configure, to aid debugging if configure makes a mistake.
1702 It was created by GNU C Runtime Library $as_me 1.0, which was
1703 generated by GNU Autoconf 2.64. Invocation command line was
1715 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1716 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1717 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1718 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1719 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1721 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1722 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1724 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1725 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1726 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1727 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1728 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1729 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1730 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 test -z "$as_dir" && as_dir=.
1739 $as_echo "PATH: $as_dir"
1755 # Keep a trace of the command line.
1756 # Strip out --no-create and --no-recursion so they do not pile up.
1757 # Strip out --silent because we don't want to record it for future runs.
1758 # Also quote any args containing shell meta-characters.
1759 # Make two passes to allow for proper duplicate-argument suppression.
1763 ac_must_keep_next=false
1769 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1771 | -silent | --silent | --silen | --sile | --sil)
1774 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1777 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1779 as_fn_append ac_configure_args1 " '$ac_arg'"
1780 if test $ac_must_keep_next = true; then
1781 ac_must_keep_next=false # Got value, back to normal.
1784 *=* | --config-cache | -C | -disable-* | --disable-* \
1785 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1786 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1787 | -with-* | --with-* | -without-* | --without-* | --x)
1788 case "$ac_configure_args0 " in
1789 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1792 -* ) ac_must_keep_next=true ;;
1795 as_fn_append ac_configure_args " '$ac_arg'"
1800 { ac_configure_args0=; unset ac_configure_args0;}
1801 { ac_configure_args1=; unset ac_configure_args1;}
1803 # When interrupted or exit'd, cleanup temporary files, and complete
1804 # config.log. We remove comments because anyway the quotes in there
1805 # would cause problems or look ugly.
1806 # WARNING: Use '\'' to represent an apostrophe within the trap.
1807 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1808 trap 'exit_status=$?
1809 # Save into config.log some information that might help in debugging.
1814 ## ---------------- ##
1815 ## Cache variables. ##
1816 ## ---------------- ##
1819 # The following way of writing the cache mishandles newlines in values,
1821 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1822 eval ac_val=\$$ac_var
1826 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1827 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1830 _ | IFS | as_nl) ;; #(
1831 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1832 *) { eval $ac_var=; unset $ac_var;} ;;
1837 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1838 *${as_nl}ac_space=\ *)
1840 "s/'\''/'\''\\\\'\'''\''/g;
1841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1852 ## ----------------- ##
1853 ## Output variables. ##
1854 ## ----------------- ##
1857 for ac_var in $ac_subst_vars
1859 eval ac_val=\$$ac_var
1861 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1863 $as_echo "$ac_var='\''$ac_val'\''"
1867 if test -n "$ac_subst_files"; then
1869 ## ------------------- ##
1870 ## File substitutions. ##
1871 ## ------------------- ##
1874 for ac_var in $ac_subst_files
1876 eval ac_val=\$$ac_var
1878 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880 $as_echo "$ac_var='\''$ac_val'\''"
1885 if test -s confdefs.h; then
1895 test "$ac_signal" != 0 &&
1896 $as_echo "$as_me: caught signal $ac_signal"
1897 $as_echo "$as_me: exit $exit_status"
1899 rm -f core *.core core.conftest.* &&
1900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1903 for ac_signal in 1 2 13 15; do
1904 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1909 rm -f -r conftest* confdefs.h
1911 $as_echo "/* confdefs.h */" > confdefs.h
1913 # Predefined preprocessor variables.
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_NAME "$PACKAGE_NAME"
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_STRING "$PACKAGE_STRING"
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1935 cat >>confdefs.h <<_ACEOF
1936 #define PACKAGE_URL "$PACKAGE_URL"
1940 # Let the site file select an alternate cache file if it wants to.
1941 # Prefer an explicitly selected file to automatically selected ones.
1944 if test -n "$CONFIG_SITE"; then
1945 ac_site_file1=$CONFIG_SITE
1946 elif test "x$prefix" != xNONE; then
1947 ac_site_file1=$prefix/share/config.site
1948 ac_site_file2=$prefix/etc/config.site
1950 ac_site_file1=$ac_default_prefix/share/config.site
1951 ac_site_file2=$ac_default_prefix/etc/config.site
1953 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1955 test "x$ac_site_file" = xNONE && continue
1956 if test -r "$ac_site_file"; then
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1958 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1959 sed 's/^/| /' "$ac_site_file" >&5
1964 if test -r "$cache_file"; then
1965 # Some versions of bash will fail to source /dev/null (special
1966 # files actually), so we avoid doing that.
1967 if test -f "$cache_file"; then
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1969 $as_echo "$as_me: loading cache $cache_file" >&6;}
1971 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1972 *) . "./$cache_file";;
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1977 $as_echo "$as_me: creating cache $cache_file" >&6;}
1981 # Check that the precious variables saved in the cache have kept the same
1983 ac_cache_corrupted=false
1984 for ac_var in $ac_precious_vars; do
1985 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1986 eval ac_new_set=\$ac_env_${ac_var}_set
1987 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1988 eval ac_new_val=\$ac_env_${ac_var}_value
1989 case $ac_old_set,$ac_new_set in
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1992 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1993 ac_cache_corrupted=: ;;
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1996 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1997 ac_cache_corrupted=: ;;
2000 if test "x$ac_old_val" != "x$ac_new_val"; then
2001 # differences in whitespace do not lead to failure.
2002 ac_old_val_w=`echo x $ac_old_val`
2003 ac_new_val_w=`echo x $ac_new_val`
2004 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2006 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2007 ac_cache_corrupted=:
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2010 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2011 eval $ac_var=\$ac_old_val
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2014 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2016 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2019 # Pass precious variables to config.status.
2020 if test "$ac_new_set" = set; then
2022 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2023 *) ac_arg=$ac_var=$ac_new_val ;;
2025 case " $ac_configure_args " in
2026 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2027 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2031 if $ac_cache_corrupted; then
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2035 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2036 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2038 ## -------------------- ##
2039 ## Main body of script. ##
2040 ## -------------------- ##
2043 ac_cpp='$CPP $CPPFLAGS'
2044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054 # The libgcc should not depend on any header files
2058 # Check whether --with-target-subdir was given.
2059 if test "${with_target_subdir+set}" = set; then :
2060 withval=$with_target_subdir;
2064 # Check whether --with-cross-host was given.
2065 if test "${with_cross_host+set}" = set; then :
2066 withval=$with_cross_host;
2070 # Check whether --with-ld was given.
2071 if test "${with_ld+set}" = set; then :
2076 if test "${srcdir}" = "."; then
2077 if test -n "${with_build_subdir}"; then
2078 libgcc_topdir="${srcdir}/../.."
2080 elif test -z "${with_target_subdir}"; then
2081 libgcc_topdir="${srcdir}/.."
2083 if test "${with_target_subdir}" != "."; then
2084 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2086 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2090 libgcc_topdir="${srcdir}/.."
2094 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2095 for ac_t in install-sh install.sh shtool; do
2096 if test -f "$ac_dir/$ac_t"; then
2098 ac_install_sh="$ac_aux_dir/$ac_t -c"
2103 if test -z "$ac_aux_dir"; then
2104 as_fn_error "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2107 # These three variables are undocumented and unsupported,
2108 # and are intended to be withdrawn in a future Autoconf release.
2109 # They can cause serious problems if a builder's source tree is in a directory
2110 # whose full name contains unusual characters.
2111 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2112 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2113 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2117 # Check whether --enable-shared was given.
2118 if test "${enable_shared+set}" = set; then :
2119 enableval=$enable_shared;
2120 case $enable_shared in
2124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2125 for pkg in $enableval; do
2126 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2140 # Make sure we can run config.sub.
2141 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2142 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2145 $as_echo_n "checking build system type... " >&6; }
2146 if test "${ac_cv_build+set}" = set; then :
2147 $as_echo_n "(cached) " >&6
2149 ac_build_alias=$build_alias
2150 test "x$ac_build_alias" = x &&
2151 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2152 test "x$ac_build_alias" = x &&
2153 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2154 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2155 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2159 $as_echo "$ac_cv_build" >&6; }
2160 case $ac_cv_build in
2162 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2165 ac_save_IFS=$IFS; IFS='-'
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2179 $as_echo_n "checking host system type... " >&6; }
2180 if test "${ac_cv_host+set}" = set; then :
2181 $as_echo_n "(cached) " >&6
2183 if test "x$host_alias" = x; then
2184 ac_cv_host=$ac_cv_build
2186 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2187 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2192 $as_echo "$ac_cv_host" >&6; }
2195 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2198 ac_save_IFS=$IFS; IFS='-'
2204 # Remember, the first character of IFS is used to create $*,
2205 # except with old shells:
2208 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2216 # PIC is the default on some targets or must not be used.
2218 # PIC is the default on this platform
2219 # Common symbols not allowed in MH_DYLIB files
2223 # PIC is the default.
2226 # PIC is the default for 64-bit PA HP-UX.
2228 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
2230 i[34567]86-*-interix[3-9]*)
2231 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2232 # Instead, we relocate shared libraries at runtime.
2234 i[34567]86-*-nto-qnx*)
2235 # QNX uses GNU C++, but need to define -shared option too, otherwise
2237 PICFLAG='-fPIC -shared'
2239 i[34567]86-pc-msdosdjgpp*)
2240 # DJGPP does not support shared libraries at all.
2243 # On IA64 HP-UX, PIC is the default but the pic flag
2244 # sets the default TLS model and affects inlining.
2248 # PIC is the default.
2250 rs6000-ibm-aix* | powerpc-ibm-aix*)
2251 # All AIX code is PIC.
2254 # Some targets support both -fPIC and -fpic, but prefer the latter.
2256 i[34567]86-*-* | x86_64-*-*)
2262 # FIXME: Override -fPIC default in libgcc only?
2263 sh-*-linux* | sh[2346lbe]*-*-linux*)
2266 # FIXME: Simplify to sh*-*-netbsd*?
2267 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2268 sh64-*-netbsd* | sh64l*-*-netbsd*)
2271 # Default to -fPIC unless specified otherwise.
2277 # If the user explicitly uses -fpic/-fPIC, keep that.
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2290 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2291 # Check whether --enable-version-specific-runtime-libs was given.
2292 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2293 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2294 yes) version_specific_libs=yes ;;
2295 no) version_specific_libs=no ;;
2296 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2299 version_specific_libs=no
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2303 $as_echo "$version_specific_libs" >&6; }
2306 # Check whether --with-slibdir was given.
2307 if test "${with_slibdir+set}" = set; then :
2308 withval=$with_slibdir; slibdir="$with_slibdir"
2310 if test "${version_specific_libs}" = yes; then
2311 slibdir='$(libsubdir)'
2312 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2313 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2321 # Command-line options.
2322 # Very limited version of AC_MAINTAINER_MODE.
2323 # Check whether --enable-maintainer-mode was given.
2324 if test "${enable_maintainer_mode+set}" = set; then :
2325 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2328 *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2330 maintainer_mode=${enableval}
2336 # Find a good install program. We prefer a C program (faster),
2337 # so one script is as good as another. But avoid the broken or
2338 # incompatible versions:
2339 # SysV /etc/install, /usr/sbin/install
2340 # SunOS /usr/etc/install
2341 # IRIX /sbin/install
2343 # AmigaOS /C/install, which installs bootblocks on floppy discs
2344 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2345 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2346 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2347 # OS/2's system install, which has a completely different semantic
2348 # ./install, which can be erroneously created by make from ./install.sh.
2349 # Reject install programs that cannot install multiple files.
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2351 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2352 if test -z "$INSTALL"; then
2353 if test "${ac_cv_path_install+set}" = set; then :
2354 $as_echo_n "(cached) " >&6
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 test -z "$as_dir" && as_dir=.
2361 # Account for people who put trailing slashes in PATH elements.
2362 case $as_dir/ in #((
2363 ./ | .// | /[cC]/* | \
2364 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2365 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2368 # OSF1 and SCO ODT 3.0 have their own names for install.
2369 # Don't use installbsd from OSF since it installs stuff as root
2371 for ac_prog in ginstall scoinst install; do
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2374 if test $ac_prog = install &&
2375 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2376 # AIX install. It has an incompatible calling convention.
2378 elif test $ac_prog = install &&
2379 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2380 # program-specific install script used by HP pwplus--don't use.
2383 rm -rf conftest.one conftest.two conftest.dir
2384 echo one > conftest.one
2385 echo two > conftest.two
2387 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2388 test -s conftest.one && test -s conftest.two &&
2389 test -s conftest.dir/conftest.one &&
2390 test -s conftest.dir/conftest.two
2392 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2405 rm -rf conftest.one conftest.two conftest.dir
2408 if test "${ac_cv_path_install+set}" = set; then
2409 INSTALL=$ac_cv_path_install
2411 # As a last resort, use the slow shell script. Don't cache a
2412 # value for INSTALL within a source directory, because that will
2413 # break other packages using the cache if that directory is
2414 # removed, or if the value is a relative name.
2415 INSTALL=$ac_install_sh
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2419 $as_echo "$INSTALL" >&6; }
2421 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2422 # It thinks the first close brace ends the variable substitution.
2423 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2425 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2427 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2430 for ac_prog in gawk mawk nawk awk
2432 # Extract the first word of "$ac_prog", so it can be a program name with args.
2433 set dummy $ac_prog; ac_word=$2
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2435 $as_echo_n "checking for $ac_word... " >&6; }
2436 if test "${ac_cv_prog_AWK+set}" = set; then :
2437 $as_echo_n "(cached) " >&6
2439 if test -n "$AWK"; then
2440 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_AWK="$ac_prog"
2450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 if test -n "$AWK"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2462 $as_echo "$AWK" >&6; }
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465 $as_echo "no" >&6; }
2469 test -n "$AWK" && break
2472 # We need awk; bail out if it's missing.
2474 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
2478 case ${build_alias} in
2479 "") build_noncanonical=${build} ;;
2480 *) build_noncanonical=${build_alias} ;;
2483 case ${host_alias} in
2484 "") host_noncanonical=${build_noncanonical} ;;
2485 *) host_noncanonical=${host_alias} ;;
2490 case ${target_alias} in
2491 "") target_noncanonical=${host_noncanonical} ;;
2492 *) target_noncanonical=${target_alias} ;;
2498 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2499 # have matching libraries, they should use host libraries: Makefile.tpl
2500 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2501 # However, they still use the build modules, because the corresponding
2502 # host modules (e.g. bison) are only built for the host when bootstrap
2504 # - build_subdir is where we find build modules, and never changes.
2505 # - build_libsubdir is where we find build libraries, and can be overridden.
2507 # Prefix 'build-' so this never conflicts with target_subdir.
2508 build_subdir="build-${build_noncanonical}"
2510 # Check whether --with-build-libsubdir was given.
2511 if test "${with_build_libsubdir+set}" = set; then :
2512 withval=$with_build_libsubdir; build_libsubdir="$withval"
2514 build_libsubdir="$build_subdir"
2517 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2518 if ( test $srcdir = . && test -d gcc ) \
2519 || test -d $srcdir/../host-${host_noncanonical}; then
2520 host_subdir="host-${host_noncanonical}"
2525 target_subdir=${target_noncanonical}
2528 # Calculate toolexeclibdir
2529 # Also toolexecdir, though it's only used in toolexeclibdir
2530 case ${version_specific_libs} in
2532 # Need the gcc compiler version to know where to install libraries
2533 # and header files if --enable-version-specific-runtime-libs option
2535 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2536 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2539 if test -n "$with_cross_host" &&
2540 test x"$with_cross_host" != x"no"; then
2541 # Install a library built with a cross compiler in tooldir, not libdir.
2542 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2543 toolexeclibdir='$(toolexecdir)/lib'
2545 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2546 toolexeclibdir='$(libdir)'
2548 multi_os_directory=`$CC -print-multi-os-directory`
2549 case $multi_os_directory in
2550 .) ;; # Avoid trailing /.
2551 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2558 if test -n "$ac_tool_prefix"; then
2559 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2560 set dummy ${ac_tool_prefix}ar; ac_word=$2
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562 $as_echo_n "checking for $ac_word... " >&6; }
2563 if test "${ac_cv_prog_AR+set}" = set; then :
2564 $as_echo_n "(cached) " >&6
2566 if test -n "$AR"; then
2567 ac_cv_prog_AR="$AR" # Let the user override the test.
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 ac_cv_prog_AR="${ac_tool_prefix}ar"
2577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 if test -n "$AR"; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2589 $as_echo "$AR" >&6; }
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592 $as_echo "no" >&6; }
2597 if test -z "$ac_cv_prog_AR"; then
2599 # Extract the first word of "ar", so it can be a program name with args.
2600 set dummy ar; ac_word=$2
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602 $as_echo_n "checking for $ac_word... " >&6; }
2603 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2604 $as_echo_n "(cached) " >&6
2606 if test -n "$ac_ct_AR"; then
2607 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2616 ac_cv_prog_ac_ct_AR="ar"
2617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2627 if test -n "$ac_ct_AR"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2629 $as_echo "$ac_ct_AR" >&6; }
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632 $as_echo "no" >&6; }
2635 if test "x$ac_ct_AR" = x; then
2638 case $cross_compiling:$ac_tool_warned in
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2642 ac_tool_warned=yes ;;
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if test "${ac_cv_prog_LIPO+set}" = set; then :
2656 $as_echo_n "(cached) " >&6
2658 if test -n "$LIPO"; then
2659 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 LIPO=$ac_cv_prog_LIPO
2679 if test -n "$LIPO"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2681 $as_echo "$LIPO" >&6; }
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2689 if test -z "$ac_cv_prog_LIPO"; then
2691 # Extract the first word of "lipo", so it can be a program name with args.
2692 set dummy lipo; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2698 if test -n "$ac_ct_LIPO"; then
2699 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_ac_ct_LIPO="lipo"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2719 if test -n "$ac_ct_LIPO"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2721 $as_echo "$ac_ct_LIPO" >&6; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2727 if test "x$ac_ct_LIPO" = x; then
2730 case $cross_compiling:$ac_tool_warned in
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734 ac_tool_warned=yes ;;
2739 LIPO="$ac_cv_prog_LIPO"
2742 if test -n "$ac_tool_prefix"; then
2743 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2744 set dummy ${ac_tool_prefix}nm; ac_word=$2
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if test "${ac_cv_prog_NM+set}" = set; then :
2748 $as_echo_n "(cached) " >&6
2750 if test -n "$NM"; then
2751 ac_cv_prog_NM="$NM" # Let the user override the test.
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_NM="${ac_tool_prefix}nm"
2761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 if test -n "$NM"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2773 $as_echo "$NM" >&6; }
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2781 if test -z "$ac_cv_prog_NM"; then
2783 # Extract the first word of "nm", so it can be a program name with args.
2784 set dummy nm; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
2788 $as_echo_n "(cached) " >&6
2790 if test -n "$ac_ct_NM"; then
2791 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_ac_ct_NM="nm"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2811 if test -n "$ac_ct_NM"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2813 $as_echo "$ac_ct_NM" >&6; }
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2819 if test "x$ac_ct_NM" = x; then
2822 case $cross_compiling:$ac_tool_warned in
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2826 ac_tool_warned=yes ;;
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if test "${ac_cv_prog_RANLIB+set}" = set; then :
2840 $as_echo_n "(cached) " >&6
2842 if test -n "$RANLIB"; then
2843 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 RANLIB=$ac_cv_prog_RANLIB
2863 if test -n "$RANLIB"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2865 $as_echo "$RANLIB" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2873 if test -z "$ac_cv_prog_RANLIB"; then
2874 ac_ct_RANLIB=$RANLIB
2875 # Extract the first word of "ranlib", so it can be a program name with args.
2876 set dummy ranlib; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2882 if test -n "$ac_ct_RANLIB"; then
2883 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_ac_ct_RANLIB="ranlib"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2903 if test -n "$ac_ct_RANLIB"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2905 $as_echo "$ac_ct_RANLIB" >&6; }
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2911 if test "x$ac_ct_RANLIB" = x; then
2914 case $cross_compiling:$ac_tool_warned in
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned=yes ;;
2920 RANLIB=$ac_ct_RANLIB
2923 RANLIB="$ac_cv_prog_RANLIB"
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}strip; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if test "${ac_cv_prog_STRIP+set}" = set; then :
2932 $as_echo_n "(cached) " >&6
2934 if test -n "$STRIP"; then
2935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 STRIP=$ac_cv_prog_STRIP
2955 if test -n "$STRIP"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2957 $as_echo "$STRIP" >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2965 if test -z "$ac_cv_prog_STRIP"; then
2967 # Extract the first word of "strip", so it can be a program name with args.
2968 set dummy strip; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$ac_ct_STRIP"; then
2975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_ac_ct_STRIP="strip"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2995 if test -n "$ac_ct_STRIP"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2997 $as_echo "$ac_ct_STRIP" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3003 if test "x$ac_ct_STRIP" = x; then
3006 case $cross_compiling:$ac_tool_warned in
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010 ac_tool_warned=yes ;;
3015 STRIP="$ac_cv_prog_STRIP"
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3019 $as_echo_n "checking whether ln -s works... " >&6; }
3021 if test "$LN_S" = "ln -s"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3023 $as_echo "yes" >&6; }
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3026 $as_echo "no, using $LN_S" >&6; }
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then :
3042 $as_echo_n "(cached) " >&6
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3075 if test -z "$ac_cv_prog_CC"; then
3077 # Extract the first word of "gcc", so it can be a program name with args.
3078 set dummy gcc; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
3084 if test -n "$ac_ct_CC"; then
3085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094 ac_cv_prog_ac_ct_CC="gcc"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3105 if test -n "$ac_ct_CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3107 $as_echo "$ac_ct_CC" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3113 if test "x$ac_ct_CC" = x; then
3116 case $cross_compiling:$ac_tool_warned in
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120 ac_tool_warned=yes ;;
3128 if test -z "$CC"; then
3129 if test -n "$ac_tool_prefix"; then
3130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3131 set dummy ${ac_tool_prefix}cc; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then :
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_CC="${ac_tool_prefix}cc"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 if test -n "$CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3169 if test -z "$CC"; then
3170 # Extract the first word of "cc", so it can be a program name with args.
3171 set dummy cc; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if test "${ac_cv_prog_CC+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3189 ac_prog_rejected=yes
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 if test $ac_prog_rejected = yes; then
3201 # We found a bogon in the path, so make sure we never use it.
3202 set dummy $ac_cv_prog_CC
3204 if test $# != 0; then
3205 # We chose a different compiler from the bogus one.
3206 # However, it has the same basename, so the bogon will be chosen
3207 # first if we set CC to just the basename; use the full file name.
3209 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3215 if test -n "$CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217 $as_echo "$CC" >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3225 if test -z "$CC"; then
3226 if test -n "$ac_tool_prefix"; then
3227 for ac_prog in cl.exe
3229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if test "${ac_cv_prog_CC+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3236 if test -n "$CC"; then
3237 ac_cv_prog_CC="$CC" # Let the user override the test.
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 if test -n "$CC"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 $as_echo "$CC" >&6; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3266 test -n "$CC" && break
3269 if test -z "$CC"; then
3271 for ac_prog in cl.exe
3273 # Extract the first word of "$ac_prog", so it can be a program name with args.
3274 set dummy $ac_prog; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3278 $as_echo_n "(cached) " >&6
3280 if test -n "$ac_ct_CC"; then
3281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_ac_ct_CC="$ac_prog"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3301 if test -n "$ac_ct_CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3303 $as_echo "$ac_ct_CC" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3310 test -n "$ac_ct_CC" && break
3313 if test "x$ac_ct_CC" = x; then
3316 case $cross_compiling:$ac_tool_warned in
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3320 ac_tool_warned=yes ;;
3329 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error "no acceptable C compiler found in \$PATH
3332 See \`config.log' for more details." "$LINENO" 5; }
3334 # Provide some information about the compiler.
3335 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3338 for ac_option in --version -v -V -qversion; do
3339 { { ac_try="$ac_compiler $ac_option >&5"
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3348 if test -s conftest.err; then
3350 ... rest of stderr output deleted ...
3351 10q' conftest.err >conftest.er1
3352 cat conftest.er1 >&5
3353 rm -f conftest.er1 conftest.err
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3372 (eval $ac_link) 2>&5
3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375 test $ac_status = 0; }; then :
3380 if test x$gcc_no_link = xyes; then
3381 # Setting cross_compile will disable run tests; it will
3382 # also disable AC_CHECK_FILE but that's generally
3383 # correct if we can't link.
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3398 ac_clean_files_save=$ac_clean_files
3399 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3400 # Try to create an executable without -o first, disregard a.out.
3401 # It will help us diagnose broken compilers, and finding out an intuition
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3404 $as_echo_n "checking for C compiler default output file name... " >&6; }
3405 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3407 # The possible output files:
3408 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3411 for ac_file in $ac_files
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3420 if { { ac_try="$ac_link_default"
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_link_default") 2>&5
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3432 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3433 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3434 # so that the user can short-circuit this test for compilers unknown to
3436 for ac_file in $ac_files ''
3438 test -f "$ac_file" || continue
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3443 # We found the default executable, but exeext='' is most
3447 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3449 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451 # We set ac_cv_exeext here because the later test for it is not
3452 # safe: cross compilers may not add the suffix if given an `-o'
3453 # argument, so we may need to know it at that point already.
3454 # Even if this section looks crufty: it has the advantage of
3461 test "$ac_cv_exeext" = no && ac_cv_exeext=
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3467 $as_echo "$ac_file" >&6; }
3468 if test -z "$ac_file"; then :
3469 $as_echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 { as_fn_set_status 77
3475 as_fn_error "C compiler cannot create executables
3476 See \`config.log' for more details." "$LINENO" 5; }; }
3478 ac_exeext=$ac_cv_exeext
3480 # Check that the compiler produces executables we can run. If not, either
3481 # the compiler is broken, or we cross compile.
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3483 $as_echo_n "checking whether the C compiler works... " >&6; }
3484 # If not cross compiling, check that we can run a simple program.
3485 if test "$cross_compiling" != yes; then
3486 if { ac_try='./$ac_file'
3487 { { case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493 (eval "$ac_try") 2>&5
3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496 test $ac_status = 0; }; }; then
3499 if test "$cross_compiling" = maybe; then
3502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504 as_fn_error "cannot run C compiled programs.
3505 If you meant to cross compile, use \`--host'.
3506 See \`config.log' for more details." "$LINENO" 5; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3511 $as_echo "yes" >&6; }
3513 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3514 ac_clean_files=$ac_clean_files_save
3515 # Check that the compiler produces executables we can run. If not, either
3516 # the compiler is broken, or we cross compile.
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3518 $as_echo_n "checking whether we are cross compiling... " >&6; }
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3520 $as_echo "$cross_compiling" >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3523 $as_echo_n "checking for suffix of executables... " >&6; }
3524 if { { ac_try="$ac_link"
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 $as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_link") 2>&5
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
3535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3536 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3537 # work properly (i.e., refer to `conftest.exe'), while it won't with
3539 for ac_file in conftest.exe conftest conftest.*; do
3540 test -f "$ac_file" || continue
3542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error "cannot compute suffix of executables: cannot compile and link
3552 See \`config.log' for more details." "$LINENO" 5; }
3554 rm -f conftest$ac_cv_exeext
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3556 $as_echo "$ac_cv_exeext" >&6; }
3558 rm -f conftest.$ac_ext
3559 EXEEXT=$ac_cv_exeext
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3563 $as_echo_n "checking for suffix of object files... " >&6; }
3564 if test "${ac_cv_objext+set}" = set; then :
3565 $as_echo_n "(cached) " >&6
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3578 rm -f conftest.o conftest.obj
3579 if { { ac_try="$ac_compile"
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_compile") 2>&5
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
3590 for ac_file in conftest.o conftest.obj conftest.*; do
3591 test -f "$ac_file" || continue;
3593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3599 $as_echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 as_fn_error "cannot compute suffix of object files: cannot compile
3605 See \`config.log' for more details." "$LINENO" 5; }
3607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3610 $as_echo "$ac_cv_objext" >&6; }
3611 OBJEXT=$ac_cv_objext
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3614 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3615 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3632 if ac_fn_c_try_compile "$LINENO"; then :
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3642 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3643 if test $ac_compiler_gnu = yes; then
3648 ac_test_CFLAGS=${CFLAGS+set}
3649 ac_save_CFLAGS=$CFLAGS
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3651 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3652 if test "${ac_cv_prog_cc_g+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3655 ac_save_c_werror_flag=$ac_c_werror_flag
3656 ac_c_werror_flag=yes
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3670 if ac_fn_c_try_compile "$LINENO"; then :
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3685 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_c_werror_flag=$ac_save_c_werror_flag
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3701 if ac_fn_c_try_compile "$LINENO"; then :
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_c_werror_flag=$ac_save_c_werror_flag
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3712 $as_echo "$ac_cv_prog_cc_g" >&6; }
3713 if test "$ac_test_CFLAGS" = set; then
3714 CFLAGS=$ac_save_CFLAGS
3715 elif test $ac_cv_prog_cc_g = yes; then
3716 if test "$GCC" = yes; then
3722 if test "$GCC" = yes; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3729 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3730 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
3733 ac_cv_prog_cc_c89=no
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3739 #include <sys/types.h>
3740 #include <sys/stat.h>
3741 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3742 struct buf { int x; };
3743 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3744 static char *e (p, i)
3750 static char *f (char * (*g) (char **, int), char **p, ...)
3755 s = g (p, va_arg (v,int));
3760 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3761 function prototypes and stuff, but not '\xHH' hex character constants.
3762 These don't provoke an error unfortunately, instead are silently treated
3763 as 'x'. The following induces an error, until -std is added to get
3764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3765 array size at least. It's necessary to write '\x00'==0 to get something
3766 that's true only with -std. */
3767 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3769 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3770 inside strings and character constants. */
3772 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3774 int test (int i, double x);
3775 struct s1 {int (*f) (int a);};
3776 struct s2 {int (*f) (double a);};
3777 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3783 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3788 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3789 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3791 CC="$ac_save_CC $ac_arg"
3792 if ac_fn_c_try_compile "$LINENO"; then :
3793 ac_cv_prog_cc_c89=$ac_arg
3795 rm -f core conftest.err conftest.$ac_objext
3796 test "x$ac_cv_prog_cc_c89" != "xno" && break
3798 rm -f conftest.$ac_ext
3803 case "x$ac_cv_prog_cc_c89" in
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3806 $as_echo "none needed" >&6; } ;;
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3809 $as_echo "unsupported" >&6; } ;;
3811 CC="$CC $ac_cv_prog_cc_c89"
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3813 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3815 if test "x$ac_cv_prog_cc_c89" != xno; then :
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3831 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3832 # On Suns, sometimes $CPP names a directory.
3833 if test -n "$CPP" && test -d "$CPP"; then
3836 if test -z "$CPP"; then
3837 if test "${ac_cv_prog_CPP+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3840 # Double quotes because CPP needs to be expanded
3841 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3844 for ac_c_preproc_warn_flag in '' yes
3846 # Use a header file that comes with gcc, so configuring glibc
3847 # with a fresh cross-compiler works.
3848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3849 # <limits.h> exists even on freestanding compilers.
3850 # On the NeXT, cc -E runs the code through the compiler's parser,
3851 # not just through cpp. "Syntax error" is here to catch this case.
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3855 # include <limits.h>
3857 # include <assert.h>
3861 if ac_fn_c_try_cpp "$LINENO"; then :
3864 # Broken: fails on valid input.
3867 rm -f conftest.err conftest.$ac_ext
3869 # OK, works on sane cases. Now check whether nonexistent headers
3870 # can be detected and how.
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873 #include <ac_nonexistent.h>
3875 if ac_fn_c_try_cpp "$LINENO"; then :
3876 # Broken: success on invalid input.
3879 # Passes both tests.
3883 rm -f conftest.err conftest.$ac_ext
3886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887 rm -f conftest.err conftest.$ac_ext
3888 if $ac_preproc_ok; then :
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3901 $as_echo "$CPP" >&6; }
3903 for ac_c_preproc_warn_flag in '' yes
3905 # Use a header file that comes with gcc, so configuring glibc
3906 # with a fresh cross-compiler works.
3907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3908 # <limits.h> exists even on freestanding compilers.
3909 # On the NeXT, cc -E runs the code through the compiler's parser,
3910 # not just through cpp. "Syntax error" is here to catch this case.
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3914 # include <limits.h>
3916 # include <assert.h>
3920 if ac_fn_c_try_cpp "$LINENO"; then :
3923 # Broken: fails on valid input.
3926 rm -f conftest.err conftest.$ac_ext
3928 # OK, works on sane cases. Now check whether nonexistent headers
3929 # can be detected and how.
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3932 #include <ac_nonexistent.h>
3934 if ac_fn_c_try_cpp "$LINENO"; then :
3935 # Broken: success on invalid input.
3938 # Passes both tests.
3942 rm -f conftest.err conftest.$ac_ext
3945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3946 rm -f conftest.err conftest.$ac_ext
3947 if $ac_preproc_ok; then :
3950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3952 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3953 See \`config.log' for more details." "$LINENO" 5; }
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 ac_c_preproc_warn_flag=yes
3967 # The cast to long int works around a bug in the HP C Compiler
3968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3970 # This bug is HP SR number 8606223364.
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
3972 $as_echo_n "checking size of double... " >&6; }
3973 if test "${ac_cv_sizeof_double+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3976 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
3979 if test "$ac_cv_type_double" = yes; then
3980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982 { as_fn_set_status 77
3983 as_fn_error "cannot compute sizeof (double)
3984 See \`config.log' for more details." "$LINENO" 5; }; }
3986 ac_cv_sizeof_double=0
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
3992 $as_echo "$ac_cv_sizeof_double" >&6; }
3996 cat >>confdefs.h <<_ACEOF
3997 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4001 # The cast to long int works around a bug in the HP C Compiler
4002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4004 # This bug is HP SR number 8606223364.
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4006 $as_echo_n "checking size of long double... " >&6; }
4007 if test "${ac_cv_sizeof_long_double+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4010 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4013 if test "$ac_cv_type_long_double" = yes; then
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 { as_fn_set_status 77
4017 as_fn_error "cannot compute sizeof (long double)
4018 See \`config.log' for more details." "$LINENO" 5; }; }
4020 ac_cv_sizeof_long_double=0
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4026 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4030 cat >>confdefs.h <<_ACEOF
4031 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4035 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4036 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4040 # Check for decimal float support.
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4042 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4043 if test "${libgcc_cv_dfp+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4050 if ac_fn_c_try_compile "$LINENO"; then :
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4058 $as_echo "$libgcc_cv_dfp" >&6; }
4059 decimal_float=$libgcc_cv_dfp
4063 # Check whether --enable-decimal-float was given.
4064 if test "${enable_decimal_float+set}" = set; then :
4065 enableval=$enable_decimal_float;
4066 case $enable_decimal_float in
4067 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4068 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4069 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4075 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4076 i?86*-*-mingw* | x86_64*-*-mingw* | \
4078 enable_decimal_float=yes
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4082 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4083 enable_decimal_float=no
4090 # x86's use BID format instead of DPD
4091 case x$enable_decimal_float in
4094 i?86*-*-* | x86_64*-*-*)
4095 enable_decimal_float=bid
4098 enable_decimal_float=dpd
4101 default_decimal_float=$enable_decimal_float
4104 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4105 # dependency on libdecnumber.
4106 default_decimal_float=dpd
4113 # Check for fixed-point support.
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4115 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4116 if test "${libgcc_cv_fixed_point+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4123 if ac_fn_c_try_compile "$LINENO"; then :
4124 libgcc_cv_fixed_point=yes
4126 libgcc_cv_fixed_point=no
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4131 $as_echo "$libgcc_cv_fixed_point" >&6; }
4132 fixed_point=$libgcc_cv_fixed_point
4135 # For platforms with the unwind ABI which includes an unwind library,
4136 # libunwind, we can choose to use the system libunwind.
4137 # config.gcc also contains tests of with_system_libunwind.
4140 # Check whether --with-system-libunwind was given.
4141 if test "${with_system_libunwind+set}" = set; then :
4142 withval=$with_system_libunwind;
4145 # If system-libunwind was not specifically set, pick a default setting.
4146 if test x$with_system_libunwind = x; then
4148 ia64-*-hpux*) with_system_libunwind=yes ;;
4149 *) with_system_libunwind=no ;;
4152 # Based on system-libunwind and target, do we have ipinfo?
4153 if test x$with_system_libunwind = xyes; then
4155 ia64-*-*) have_unwind_getipinfo=no ;;
4156 *) have_unwind_getipinfo=yes ;;
4159 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4162 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4163 *) have_unwind_getipinfo=yes ;;
4168 if test x$have_unwind_getipinfo = xyes; then
4170 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4175 # The sjlj test is almost duplicated here and in libgo/configure.ac (for C),
4176 # libstdc++-v3/acinclude.m4 and libjava/configure.ac (for C++), and
4177 # libobjc/configure.ac (for Objective-C).
4178 # FIXME: This should be centralized in config/sjlj.m4.
4179 # Check whether --enable-sjlj-exceptions was given.
4180 if test "${enable_sjlj_exceptions+set}" = set; then :
4181 enableval=$enable_sjlj_exceptions; case "$enableval" in
4183 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
4186 enable_sjlj_exceptions=auto
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
4191 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
4192 if test "${libgcc_cv_lib_sjlj_exceptions+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4202 int i __attribute__ ((cleanup (clean)));
4208 CFLAGS="--save-temps -fexceptions"
4209 libgcc_cv_lib_sjlj_exceptions=unknown
4210 if ac_fn_c_try_compile; then :
4211 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
4212 libgcc_cv_lib_sjlj_exceptions=yes
4213 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
4214 libgcc_cv_lib_sjlj_exceptions=no
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_lib_sjlj_exceptions" >&5
4222 $as_echo "$libgcc_cv_lib_sjlj_exceptions" >&6; }
4224 if test "$enable_sjlj_exceptions" = "auto"; then
4225 enable_sjlj_exceptions=$libgcc_cv_lib_sjlj_exceptions
4228 case $enable_sjlj_exceptions in
4231 $as_echo "#define LIBGCC_SJLJ_EXCEPTIONS 1" >>confdefs.h
4237 as_fn_error "unable to detect exception model" "$LINENO" 5
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4242 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4243 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4246 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4247 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4248 acl_cv_prog_gnu_ld=yes
4250 acl_cv_prog_gnu_ld=no
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4254 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4255 with_gnu_ld=$acl_cv_prog_gnu_ld
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4259 $as_echo_n "checking for thread model used by GCC... " >&6; }
4260 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
4262 $as_echo "$target_thread_file" >&6; }
4264 # Check for assembler CFI support.
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
4266 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
4267 if test "${libgcc_cv_cfi+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4275 .cfi_personality 0, symbol\n\
4278 if ac_fn_c_try_compile "$LINENO"; then :
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
4286 $as_echo "$libgcc_cv_cfi" >&6; }
4288 # Check 32bit or 64bit
4289 cat > conftest.c <<EOF
4290 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__))
4296 eval `${CC-cc} -E conftest.c | grep host_address=`
4299 # Collect host-machine-specific information.
4300 . ${srcdir}/config.host
4302 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
4303 # This is after config.host so we can augment tmake_file.
4304 # Link with -nostartfiles -nodefaultlibs since neither are present while
4307 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
4308 cat > conftest.s <<EOF
4309 .section .eh_frame,"a",@unwind
4311 .section .jcr,"aw",@progbits
4314 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
4315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }; }; then
4320 tmake_file="${tmake_file} i386/t-crtstuff"
4325 # Check for visibility support. This is after config.host so that
4326 # we can check for asm_hidden_op.
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
4328 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
4329 if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4333 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
4334 libgcc_cv_hidden_visibility_attribute=no
4335 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4340 test $ac_status = 0; }; }; then
4341 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
4342 libgcc_cv_hidden_visibility_attribute=yes
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
4349 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
4351 if test $libgcc_cv_hidden_visibility_attribute = yes; then
4352 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
4358 # See if we have thread-local storage. We can only test assembler
4359 # sicne link-time and run-time tests require the newly built
4360 # gcc, which can't be used to build executable due to that libgcc
4361 # is yet to be built here.
4363 # Check whether --enable-tls was given.
4364 if test "${enable_tls+set}" = set; then :
4365 enableval=$enable_tls;
4366 case "$enableval" in
4368 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
4377 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
4378 if test "${gcc_cv_have_cc_tls+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384 __thread int a; int b; int main() { return a = b; }
4386 if ac_fn_c_try_compile "$LINENO"; then :
4387 gcc_cv_have_cc_tls=yes
4389 gcc_cv_have_cc_tls=no
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
4395 $as_echo "$gcc_cv_have_cc_tls" >&6; }
4397 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
4398 set_have_cc_tls="-DHAVE_CC_TLS"
4402 # See if we have emulated thread-local storage.
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
4405 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
4406 if test "${gcc_cv_use_emutls+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4410 gcc_cv_use_emutls=no
4411 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
4412 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
4413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417 test $ac_status = 0; }; }; then
4418 if grep __emutls_get_address conftest.s > /dev/null; then
4419 gcc_cv_use_emutls=yes
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
4426 $as_echo "$gcc_cv_use_emutls" >&6; }
4427 if test "$gcc_cv_use_emutls" = "yes" ; then
4429 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
4433 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
4434 set_use_emutls="-DUSE_EMUTLS"
4438 # Conditionalize the sfp-machine.h header for this target machine.
4439 if test -z "${sfp_machine_header}"; then
4440 sfp_machine_header=$cpu_type/sfp-machine.h
4441 if test -f ${srcdir}/config/${sfp_machine_header}; then
4444 sfp_machine_header=no-sfp-machine.h
4449 # Conditionalize the makefile for this target machine.
4451 for f in ${tmake_file}
4453 if test -f ${srcdir}/config/$f
4455 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
4458 tmake_file="${tmake_file_}"
4461 # Likewise export definitions for libgcc_tm.h
4465 tm_file_="${tm_file_} \$(srcdir)/config/$f"
4467 tm_file="${tm_file_}"
4471 # Map from thread model to thread header.
4472 case $target_thread_file in
4473 aix) thread_header=config/rs6000/gthr-aix.h ;;
4474 dce) thread_header=config/pa/gthr-dce.h ;;
4475 lynx) thread_header=config/gthr-lynx.h ;;
4476 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
4477 posix) thread_header=gthr-posix.h ;;
4478 rtems) thread_header=config/gthr-rtems.h ;;
4479 single) thread_header=gthr-single.h ;;
4480 tpf) thread_header=config/s390/gthr-tpf.h ;;
4481 vxworks) thread_header=config/gthr-vxworks.h ;;
4482 win32) thread_header=config/i386/gthr-win32.h ;;
4485 # Substitute configuration variables
4489 ac_config_links="$ac_config_links enable-execute-stack.c:$enable_execute_stack"
4491 ac_config_links="$ac_config_links unwind.h:$unwind_header"
4493 ac_config_links="$ac_config_links md-unwind-support.h:config/$md_unwind_header"
4495 ac_config_links="$ac_config_links sfp-machine.h:config/$sfp_machine_header"
4497 ac_config_links="$ac_config_links gthr-default.h:$thread_header"
4500 # We need multilib support.
4501 ac_config_files="$ac_config_files Makefile"
4503 ac_config_commands="$ac_config_commands default"
4505 cat >confcache <<\_ACEOF
4506 # This file is a shell script that caches the results of configure
4507 # tests run on this system so they can be shared between configure
4508 # scripts and configure runs, see configure's option --config-cache.
4509 # It is not useful on other systems. If it contains results you don't
4510 # want to keep, you may remove or edit it.
4512 # config.status only pays attention to the cache file if you give it
4513 # the --recheck option to rerun configure.
4515 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4516 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4521 # The following way of writing the cache mishandles newlines in values,
4522 # but we know of no workaround that is simple, portable, and efficient.
4523 # So, we kill variables containing newlines.
4524 # Ultrix sh set writes to stderr and can't be redirected directly,
4525 # and sets the high bit in the cache file unless we assign to the vars.
4527 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4528 eval ac_val=\$$ac_var
4532 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4533 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4536 _ | IFS | as_nl) ;; #(
4537 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4538 *) { eval $ac_var=; unset $ac_var;} ;;
4544 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4545 *${as_nl}ac_space=\ *)
4546 # `set' does not quote correctly, so add quotes: double-quote
4547 # substitution turns \\\\ into \\, and sed turns \\ into \.
4550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4553 # `set' quotes correctly as required by POSIX, so do not add quotes.
4554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4563 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4565 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4567 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4568 if test -w "$cache_file"; then
4569 test "x$cache_file" != "x/dev/null" &&
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4571 $as_echo "$as_me: updating cache $cache_file" >&6;}
4572 cat confcache >$cache_file
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4575 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4580 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4581 # Let make expand exec_prefix.
4582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4584 # Transform confdefs.h into DEFS.
4585 # Protect against shell expansion while executing Makefile rules.
4586 # Protect against Makefile macro expansion.
4588 # If the first sed substitution is executed (which looks for macros that
4589 # take arguments), then branch to the quote section. Otherwise,
4590 # look for a macro that doesn't take arguments.
4600 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4602 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4606 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4619 DEFS=`sed -n "$ac_script" confdefs.h`
4624 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4625 # 1. Remove the extension, and $U if already installed.
4626 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4627 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4628 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4629 # will be set to the directory where LIBOBJS objects are built.
4630 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4631 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4635 LTLIBOBJS=$ac_ltlibobjs
4639 : ${CONFIG_STATUS=./config.status}
4641 ac_clean_files_save=$ac_clean_files
4642 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4644 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4646 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4648 # Generated by $as_me.
4649 # Run this file to recreate the current configuration.
4650 # Compiler output produced by configure, useful for debugging
4651 # configure, is in config.log if it exists.
4657 SHELL=\${CONFIG_SHELL-$SHELL}
4660 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4661 ## -------------------- ##
4662 ## M4sh Initialization. ##
4663 ## -------------------- ##
4665 # Be more Bourne compatible
4666 DUALCASE=1; export DUALCASE # for MKS sh
4667 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4670 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4671 # is contrary to our usage. Disable this feature.
4672 alias -g '${1+"$@"}'='"$@"'
4673 setopt NO_GLOB_SUBST
4675 case `(set -o) 2>/dev/null` in #(
4687 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4688 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4691 # Prefer a ksh shell builtin over an external printf program on Solaris,
4692 # but without wasting forks for bash or zsh.
4693 if test -z "$BASH_VERSION$ZSH_VERSION" \
4694 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4695 as_echo='print -r --'
4696 as_echo_n='print -rn --'
4697 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4698 as_echo='printf %s\n'
4699 as_echo_n='printf %s'
4701 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4702 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4703 as_echo_n='/usr/ucb/echo -n'
4705 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4706 as_echo_n_body='eval
4710 expr "X$arg" : "X\\(.*\\)$as_nl";
4711 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4713 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4715 export as_echo_n_body
4716 as_echo_n='sh -c $as_echo_n_body as_echo'
4719 as_echo='sh -c $as_echo_body as_echo'
4722 # The user is always right.
4723 if test "${PATH_SEPARATOR+set}" != set; then
4725 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4726 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4733 # We need space, tab and new line, in precisely that order. Quoting is
4734 # there to prevent editors from complaining about space-tab.
4735 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4736 # splitting by setting IFS to empty value.)
4739 # Find who we are. Look in the path if we contain no directory separator.
4741 *[\\/]* ) as_myself=$0 ;;
4742 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 test -z "$as_dir" && as_dir=.
4747 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4753 # We did not find ourselves, most probably we were run as `sh COMMAND'
4754 # in which case we are not to be found in the path.
4755 if test "x$as_myself" = x; then
4758 if test ! -f "$as_myself"; then
4759 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4763 # Unset variables that we do not need and which cause bugs (e.g. in
4764 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4765 # suppresses any "Segmentation fault" message there. '((' could
4766 # trigger a bug in pdksh 5.2.14.
4767 for as_var in BASH_ENV ENV MAIL MAILPATH
4768 do eval test x\${$as_var+set} = xset \
4769 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4785 # as_fn_error ERROR [LINENO LOG_FD]
4786 # ---------------------------------
4787 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4788 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4789 # script with status $?, using 1 if that was 0.
4792 as_status=$?; test $as_status -eq 0 && as_status=1
4794 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4795 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4797 $as_echo "$as_me: error: $1" >&2
4798 as_fn_exit $as_status
4802 # as_fn_set_status STATUS
4803 # -----------------------
4804 # Set $? to STATUS, without forking.
4808 } # as_fn_set_status
4812 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4822 # Portably unset VAR.
4825 { eval $1=; unset $1;}
4827 as_unset=as_fn_unset
4828 # as_fn_append VAR VALUE
4829 # ----------------------
4830 # Append the text in VALUE to the end of the definition contained in VAR. Take
4831 # advantage of any shell optimizations that allow amortized linear growth over
4832 # repeated appends, instead of the typical quadratic growth present in naive
4834 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4835 eval 'as_fn_append ()
4846 # as_fn_arith ARG...
4847 # ------------------
4848 # Perform arithmetic evaluation on the ARGs, and store the result in the
4849 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4850 # must be portable across $(()) and expr.
4851 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4852 eval 'as_fn_arith ()
4859 as_val=`expr "$@" || test $? -eq 1`
4864 if expr a : '\(a\)' >/dev/null 2>&1 &&
4865 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4871 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4872 as_basename=basename
4877 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4883 as_me=`$as_basename -- "$0" ||
4884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4885 X"$0" : 'X\(//\)$' \| \
4886 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4888 sed '/^.*\/\([^/][^/]*\)\/*$/{
4902 # Avoid depending upon Character Ranges.
4903 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4904 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4905 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4906 as_cr_digits='0123456789'
4907 as_cr_alnum=$as_cr_Letters$as_cr_digits
4909 ECHO_C= ECHO_N= ECHO_T=
4910 case `echo -n x` in #(((((
4912 case `echo 'xy\c'` in
4913 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4915 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4922 rm -f conf$$ conf$$.exe conf$$.file
4923 if test -d conf$$.dir; then
4924 rm -f conf$$.dir/conf$$.file
4927 mkdir conf$$.dir 2>/dev/null
4929 if (echo >conf$$.file) 2>/dev/null; then
4930 if ln -s conf$$.file conf$$ 2>/dev/null; then
4932 # ... but there are two gotchas:
4933 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4934 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4935 # In both cases, we have to default to `cp -p'.
4936 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4938 elif ln conf$$.file conf$$ 2>/dev/null; then
4946 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4947 rmdir conf$$.dir 2>/dev/null
4952 # Create "$as_dir" as a directory, including parents if necessary.
4957 -*) as_dir=./$as_dir;;
4959 test -d "$as_dir" || eval $as_mkdir_p || {
4963 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4964 *) as_qdir=$as_dir;;
4966 as_dirs="'$as_qdir' $as_dirs"
4967 as_dir=`$as_dirname -- "$as_dir" ||
4968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4969 X"$as_dir" : 'X\(//\)[^/]' \| \
4970 X"$as_dir" : 'X\(//\)$' \| \
4971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4972 $as_echo X"$as_dir" |
4973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4990 test -d "$as_dir" && break
4992 test -z "$as_dirs" || eval "mkdir $as_dirs"
4993 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4997 if mkdir -p . 2>/dev/null; then
4998 as_mkdir_p='mkdir -p "$as_dir"'
5000 test -d ./-p && rmdir ./-p
5004 if test -x / >/dev/null 2>&1; then
5007 if ls -dL / >/dev/null 2>&1; then
5014 if test -d "$1"; then
5020 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5021 ???[sx]*):;;*)false;;esac;fi
5025 as_executable_p=$as_test_x
5027 # Sed expression to map a string onto a valid CPP name.
5028 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5030 # Sed expression to map a string onto a valid variable name.
5031 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5035 ## ----------------------------------- ##
5036 ## Main body of $CONFIG_STATUS script. ##
5037 ## ----------------------------------- ##
5039 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5042 # Save the log message, to keep $0 and so on meaningful, and to
5043 # report actual input values of CONFIG_FILES etc. instead of their
5044 # values after options handling.
5046 This file was extended by GNU C Runtime Library $as_me 1.0, which was
5047 generated by GNU Autoconf 2.64. Invocation command line was
5049 CONFIG_FILES = $CONFIG_FILES
5050 CONFIG_HEADERS = $CONFIG_HEADERS
5051 CONFIG_LINKS = $CONFIG_LINKS
5052 CONFIG_COMMANDS = $CONFIG_COMMANDS
5055 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5060 case $ac_config_files in *"
5061 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5067 # Files that config.status was made for.
5068 config_files="$ac_config_files"
5069 config_links="$ac_config_links"
5070 config_commands="$ac_config_commands"
5074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5076 \`$as_me' instantiates files and other configuration actions
5077 from templates according to the current configuration. Unless the files
5078 and actions are specified as TAGs, all are instantiated by default.
5080 Usage: $0 [OPTION]... [TAG]...
5082 -h, --help print this help, then exit
5083 -V, --version print version number and configuration settings, then exit
5084 -q, --quiet, --silent
5085 do not print progress messages
5086 -d, --debug don't remove temporary files
5087 --recheck update $as_me by reconfiguring in the same conditions
5088 --file=FILE[:TEMPLATE]
5089 instantiate the configuration file FILE
5091 Configuration files:
5094 Configuration links:
5097 Configuration commands:
5100 Report bugs to the package provider.
5101 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
5102 General help using GNU software: <http://www.gnu.org/gethelp/>."
5105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5107 GNU C Runtime Library config.status 1.0
5108 configured by $0, generated by GNU Autoconf 2.64,
5109 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5111 Copyright (C) 2009 Free Software Foundation, Inc.
5112 This config.status script is free software; the Free Software Foundation
5113 gives unlimited permission to copy, distribute and modify it."
5119 test -n "\$AWK" || AWK=awk
5122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5123 # The default lists apply if the user does not specify any file.
5129 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5130 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5141 # Handling of the options.
5142 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5144 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5145 $as_echo "$ac_cs_version"; exit ;;
5146 --debug | --debu | --deb | --de | --d | -d )
5148 --file | --fil | --fi | --f )
5151 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5153 as_fn_append CONFIG_FILES " '$ac_optarg'"
5154 ac_need_defaults=false;;
5155 --he | --h | --help | --hel | -h )
5156 $as_echo "$ac_cs_usage"; exit ;;
5157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5158 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5162 -*) as_fn_error "unrecognized option: \`$1'
5163 Try \`$0 --help' for more information." ;;
5165 *) as_fn_append ac_config_targets " $1"
5166 ac_need_defaults=false ;;
5172 ac_configure_extra_args=
5174 if $ac_cs_silent; then
5176 ac_configure_extra_args="$ac_configure_extra_args --silent"
5180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5181 if \$ac_cs_recheck; then
5182 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5184 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5185 CONFIG_SHELL='$SHELL'
5191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5196 ## Running $as_me. ##
5202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5208 with_target_subdir=${with_target_subdir}
5209 with_multisubdir=${with_multisubdir}
5210 ac_configure_args="--enable-multilib ${ac_configure_args}"
5211 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5212 libgcc_topdir=${libgcc_topdir}
5218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5220 # Handling of arguments.
5221 for ac_config_target in $ac_config_targets
5223 case $ac_config_target in
5224 "enable-execute-stack.c") CONFIG_LINKS="$CONFIG_LINKS enable-execute-stack.c:$enable_execute_stack" ;;
5225 "unwind.h") CONFIG_LINKS="$CONFIG_LINKS unwind.h:$unwind_header" ;;
5226 "md-unwind-support.h") CONFIG_LINKS="$CONFIG_LINKS md-unwind-support.h:config/$md_unwind_header" ;;
5227 "sfp-machine.h") CONFIG_LINKS="$CONFIG_LINKS sfp-machine.h:config/$sfp_machine_header" ;;
5228 "gthr-default.h") CONFIG_LINKS="$CONFIG_LINKS gthr-default.h:$thread_header" ;;
5229 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5230 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5232 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5237 # If the user did not use the arguments to specify the items to instantiate,
5238 # then the envvar interface is used. Set only those that are not.
5239 # We use the long form for the default assignment because of an extremely
5240 # bizarre bug on SunOS 4.1.3.
5241 if $ac_need_defaults; then
5242 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5243 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5244 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5247 # Have a temporary directory for convenience. Make it in the build tree
5248 # simply because there is no reason against having it here, and in addition,
5249 # creating and moving files from /tmp can sometimes cause problems.
5250 # Hook for its removal unless debugging.
5251 # Note that there is a small window in which the directory will not be cleaned:
5252 # after its creation but before its name has been assigned to `$tmp'.
5256 trap 'exit_status=$?
5257 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5259 trap 'as_fn_exit 1' 1 2 13 15
5261 # Create a (secure) tmp directory for tmp files.
5264 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5265 test -n "$tmp" && test -d "$tmp"
5268 tmp=./conf$$-$RANDOM
5269 (umask 077 && mkdir "$tmp")
5270 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5272 # Set up the scripts for CONFIG_FILES section.
5273 # No need to generate them if there are no CONFIG_FILES.
5274 # This happens for instance with `./config.status config.h'.
5275 if test -n "$CONFIG_FILES"; then
5278 ac_cr=`echo X | tr X '\015'`
5279 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5280 # But we know of no other shell where ac_cr would be empty at this
5281 # point, so we can use a bashism as a fallback.
5282 if test "x$ac_cr" = x; then
5283 eval ac_cr=\$\'\\r\'
5285 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5286 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5292 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5297 echo "cat >conf$$subs.awk <<_ACEOF" &&
5298 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5301 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5302 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5304 for ac_last_try in false false false false false :; do
5305 . ./conf$$subs.sh ||
5306 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5308 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5309 if test $ac_delim_n = $ac_delim_num; then
5311 elif $ac_last_try; then
5312 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5320 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5324 s/^/S["/; s/!.*/"]=/
5334 s/\(.\{148\}\).*/\1/
5336 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5348 s/\(.\{148\}\).*/\1/
5350 s/["\\]/\\&/g; s/^/"/; s/$/"/
5354 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5359 ' <conf$$subs.awk | sed '
5364 ' >>$CONFIG_STATUS || ac_write_fail=1
5365 rm -f conf$$subs.awk
5366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5368 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5369 for (key in S) S_is_set[key] = 1
5375 nfields = split(line, field, "@")
5377 len = length(field[1])
5378 for (i = 2; i < nfields; i++) {
5380 keylen = length(key)
5381 if (S_is_set[key]) {
5383 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5384 len += length(value) + length(field[++i])
5395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5396 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5397 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5400 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5401 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5404 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5405 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5406 # trailing colons and then remove the whole line if VPATH becomes empty
5407 # (actually we leave an empty line to preserve line numbers).
5408 if test "x$srcdir" = x.; then
5409 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5413 s/^\([^=]*=[ ]*\):*/\1/
5419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5420 fi # test -n "$CONFIG_FILES"
5423 eval set X " :F $CONFIG_FILES :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
5428 :[FHLC]) ac_mode=$ac_tag; continue;;
5430 case $ac_mode$ac_tag in
5432 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5433 :[FH]-) ac_tag=-:-;;
5434 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5451 -) ac_f="$tmp/stdin";;
5452 *) # Look for the file first in the build tree, then in the source tree
5453 # (if the path is not absolute). The absolute path cannot be DOS-style,
5454 # because $ac_f cannot contain `:'.
5458 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5460 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5462 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5463 as_fn_append ac_file_inputs " '$ac_f'"
5466 # Let's still pretend it is `configure' which instantiates (i.e., don't
5467 # use $as_me), people would be surprised to read:
5468 # /* config.h. Generated by config.status. */
5469 configure_input='Generated from '`
5470 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5472 if test x"$ac_file" != x-; then
5473 configure_input="$ac_file. $configure_input"
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5475 $as_echo "$as_me: creating $ac_file" >&6;}
5477 # Neutralize special characters interpreted by sed in replacement strings.
5478 case $configure_input in #(
5479 *\&* | *\|* | *\\* )
5480 ac_sed_conf_input=`$as_echo "$configure_input" |
5481 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5482 *) ac_sed_conf_input=$configure_input;;
5486 *:-:* | *:-) cat >"$tmp/stdin" \
5487 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5492 ac_dir=`$as_dirname -- "$ac_file" ||
5493 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5494 X"$ac_file" : 'X\(//\)[^/]' \| \
5495 X"$ac_file" : 'X\(//\)$' \| \
5496 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5497 $as_echo X"$ac_file" |
5498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5515 as_dir="$ac_dir"; as_fn_mkdir_p
5519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5522 # A ".." for each directory in $ac_dir_suffix.
5523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5524 case $ac_top_builddir_sub in
5525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5529 ac_abs_top_builddir=$ac_pwd
5530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5531 # for backward compatibility:
5532 ac_top_builddir=$ac_top_build_prefix
5535 .) # We are building in place.
5537 ac_top_srcdir=$ac_top_builddir_sub
5538 ac_abs_top_srcdir=$ac_pwd ;;
5539 [\\/]* | ?:[\\/]* ) # Absolute name.
5540 ac_srcdir=$srcdir$ac_dir_suffix;
5541 ac_top_srcdir=$srcdir
5542 ac_abs_top_srcdir=$srcdir ;;
5544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5545 ac_top_srcdir=$ac_top_build_prefix$srcdir
5546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5558 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5559 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5564 # If the template does not know about datarootdir, expand it.
5565 # FIXME: This hack should be removed a few years after 2.60.
5566 ac_datarootdir_hack=; ac_datarootdir_seen=
5577 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5578 *datarootdir*) ac_datarootdir_seen=yes;;
5579 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5581 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5584 ac_datarootdir_hack='
5585 s&@datadir@&$datadir&g
5586 s&@docdir@&$docdir&g
5587 s&@infodir@&$infodir&g
5588 s&@localedir@&$localedir&g
5589 s&@mandir@&$mandir&g
5590 s&\\\${datarootdir}&$datarootdir&g' ;;
5594 # Neutralize VPATH when `$srcdir' = `.'.
5595 # Shell code in configure.ac might set extrasub.
5596 # FIXME: do we really want to maintain this feature?
5597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5598 ac_sed_extra="$ac_vpsub
5601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5604 s|@configure_input@|$ac_sed_conf_input|;t t
5605 s&@top_builddir@&$ac_top_builddir_sub&;t t
5606 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5607 s&@srcdir@&$ac_srcdir&;t t
5608 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5609 s&@top_srcdir@&$ac_top_srcdir&;t t
5610 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5611 s&@builddir@&$ac_builddir&;t t
5612 s&@abs_builddir@&$ac_abs_builddir&;t t
5613 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5614 s&@INSTALL@&$ac_INSTALL&;t t
5615 $ac_datarootdir_hack
5617 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5618 || as_fn_error "could not create $ac_file" "$LINENO" 5
5620 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5621 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5624 which seems to be undefined. Please make sure it is defined." >&5
5625 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5626 which seems to be undefined. Please make sure it is defined." >&2;}
5630 -) cat "$tmp/out" && rm -f "$tmp/out";;
5631 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5633 || as_fn_error "could not create $ac_file" "$LINENO" 5
5641 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
5644 # Prefer the file from the source tree if names are identical.
5645 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
5646 ac_source=$srcdir/$ac_source
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
5650 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
5652 if test ! -r "$ac_source"; then
5653 as_fn_error "$ac_source: file not found" "$LINENO" 5
5657 # Try a relative symlink, then a hard link, then a copy.
5659 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
5660 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
5662 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
5663 ln "$ac_source" "$ac_file" 2>/dev/null ||
5664 cp -p "$ac_source" "$ac_file" ||
5665 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
5668 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5669 $as_echo "$as_me: executing $ac_file commands" >&6;}
5674 case $ac_file$ac_mode in
5675 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5676 if test -n "$CONFIG_FILES"; then
5677 # FIXME: We shouldn't need to set ac_file
5679 . ${libgcc_topdir}/config-ml.in
5688 ac_clean_files=$ac_clean_files_save
5690 test $ac_write_fail = 0 ||
5691 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5694 # configure is writing to config.log, and then calls config.status.
5695 # config.status does its own redirection, appending to config.log.
5696 # Unfortunately, on DOS this fails, as config.log is still kept open
5697 # by configure, so config.status won't be able to write to it; its
5698 # output is simply discarded. So we exec the FD to /dev/null,
5699 # effectively closing config.log, so it can be properly (re)opened and
5700 # appended to by config.status. When coming back to configure, we
5701 # need to make the FD available again.
5702 if test "$no_create" != yes; then
5704 ac_config_status_args=
5705 test "$silent" = yes &&
5706 ac_config_status_args="$ac_config_status_args --quiet"
5708 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5710 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5711 # would make configure fail if this is the last instruction.
5712 $ac_cs_success || as_fn_exit $?
5714 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5716 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}