2016-09-25 François Dumont <fdumont@gcc.gnu.org>
[official-gcc.git] / libgcc / configure
blob4fcdca6ec899a64cd3877feef81a4d0dc8728aaa
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU C Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME='GNU C Runtime Library'
548 PACKAGE_TARNAME='libgcc'
549 PACKAGE_VERSION='1.0'
550 PACKAGE_STRING='GNU C Runtime Library 1.0'
551 PACKAGE_BUGREPORT=''
552 PACKAGE_URL='http://www.gnu.org/software/libgcc/'
554 ac_unique_file="static-object.mk"
555 ac_includes_default='/* none */'
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 md_unwind_header
559 unwind_header
560 enable_execute_stack
561 asm_hidden_op
562 extra_parts
563 cpu_type
564 thread_header
565 tm_defines
566 tm_file
567 tmake_file
568 sfp_machine_header
569 set_use_emutls
570 set_have_cc_tls
571 vis_hide
572 real_host_noncanonical
573 accel_dir_suffix
574 force_explicit_eh_registry
575 fixed_point
576 enable_decimal_float
577 decimal_float
578 EGREP
579 GREP
580 long_double_type_size
581 double_type_size
583 OBJEXT
584 EXEEXT
585 ac_ct_CC
586 CPPFLAGS
587 LDFLAGS
588 CFLAGS
590 LN_S
591 STRIP
592 RANLIB
594 LIPO
596 toolexeclibdir
597 toolexecdir
598 target_subdir
599 host_subdir
600 build_subdir
601 build_libsubdir
602 target_noncanonical
603 host_noncanonical
605 INSTALL_DATA
606 INSTALL_SCRIPT
607 INSTALL_PROGRAM
608 MAINT
609 slibdir
610 PICFLAG
611 host_os
612 host_vendor
613 host_cpu
614 host
615 build_os
616 build_vendor
617 build_cpu
618 build
619 with_aix_soname
620 enable_vtable_verify
621 enable_shared
622 libgcc_topdir
623 target_alias
624 host_alias
625 build_alias
626 LIBS
627 ECHO_T
628 ECHO_N
629 ECHO_C
630 DEFS
631 mandir
632 localedir
633 libdir
634 psdir
635 pdfdir
636 dvidir
637 htmldir
638 infodir
639 docdir
640 oldincludedir
641 includedir
642 localstatedir
643 sharedstatedir
644 sysconfdir
645 datadir
646 datarootdir
647 libexecdir
648 sbindir
649 bindir
650 program_transform_name
651 prefix
652 exec_prefix
653 PACKAGE_URL
654 PACKAGE_BUGREPORT
655 PACKAGE_STRING
656 PACKAGE_VERSION
657 PACKAGE_TARNAME
658 PACKAGE_NAME
659 PATH_SEPARATOR
660 SHELL'
661 ac_subst_files=''
662 ac_user_opts='
663 enable_option_checking
664 with_target_subdir
665 with_cross_host
666 with_ld
667 enable_shared
668 enable_vtable_verify
669 with_aix_soname
670 enable_version_specific_runtime_libs
671 with_slibdir
672 enable_maintainer_mode
673 with_build_libsubdir
674 enable_decimal_float
675 with_system_libunwind
676 enable_explicit_exception_frame_registration
677 with_glibc_version
678 enable_tls
680 ac_precious_vars='build_alias
681 host_alias
682 target_alias
684 CFLAGS
685 LDFLAGS
686 LIBS
687 CPPFLAGS
688 CPP'
691 # Initialize some variables set by options.
692 ac_init_help=
693 ac_init_version=false
694 ac_unrecognized_opts=
695 ac_unrecognized_sep=
696 # The variables have the same names as the options, with
697 # dashes changed to underlines.
698 cache_file=/dev/null
699 exec_prefix=NONE
700 no_create=
701 no_recursion=
702 prefix=NONE
703 program_prefix=NONE
704 program_suffix=NONE
705 program_transform_name=s,x,x,
706 silent=
707 site=
708 srcdir=
709 verbose=
710 x_includes=NONE
711 x_libraries=NONE
713 # Installation directory options.
714 # These are left unexpanded so users can "make install exec_prefix=/foo"
715 # and all the variables that are supposed to be based on exec_prefix
716 # by default will actually change.
717 # Use braces instead of parens because sh, perl, etc. also accept them.
718 # (The list follows the same order as the GNU Coding Standards.)
719 bindir='${exec_prefix}/bin'
720 sbindir='${exec_prefix}/sbin'
721 libexecdir='${exec_prefix}/libexec'
722 datarootdir='${prefix}/share'
723 datadir='${datarootdir}'
724 sysconfdir='${prefix}/etc'
725 sharedstatedir='${prefix}/com'
726 localstatedir='${prefix}/var'
727 includedir='${prefix}/include'
728 oldincludedir='/usr/include'
729 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
730 infodir='${datarootdir}/info'
731 htmldir='${docdir}'
732 dvidir='${docdir}'
733 pdfdir='${docdir}'
734 psdir='${docdir}'
735 libdir='${exec_prefix}/lib'
736 localedir='${datarootdir}/locale'
737 mandir='${datarootdir}/man'
739 ac_prev=
740 ac_dashdash=
741 for ac_option
743 # If the previous option needs an argument, assign it.
744 if test -n "$ac_prev"; then
745 eval $ac_prev=\$ac_option
746 ac_prev=
747 continue
750 case $ac_option in
751 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
752 *) ac_optarg=yes ;;
753 esac
755 # Accept the important Cygnus configure options, so we can diagnose typos.
757 case $ac_dashdash$ac_option in
759 ac_dashdash=yes ;;
761 -bindir | --bindir | --bindi | --bind | --bin | --bi)
762 ac_prev=bindir ;;
763 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
764 bindir=$ac_optarg ;;
766 -build | --build | --buil | --bui | --bu)
767 ac_prev=build_alias ;;
768 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
769 build_alias=$ac_optarg ;;
771 -cache-file | --cache-file | --cache-fil | --cache-fi \
772 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
773 ac_prev=cache_file ;;
774 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
775 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
776 cache_file=$ac_optarg ;;
778 --config-cache | -C)
779 cache_file=config.cache ;;
781 -datadir | --datadir | --datadi | --datad)
782 ac_prev=datadir ;;
783 -datadir=* | --datadir=* | --datadi=* | --datad=*)
784 datadir=$ac_optarg ;;
786 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
787 | --dataroo | --dataro | --datar)
788 ac_prev=datarootdir ;;
789 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
790 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
791 datarootdir=$ac_optarg ;;
793 -disable-* | --disable-*)
794 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795 # Reject names that are not valid shell variable names.
796 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
797 as_fn_error "invalid feature name: $ac_useropt"
798 ac_useropt_orig=$ac_useropt
799 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
800 case $ac_user_opts in
802 "enable_$ac_useropt"
803 "*) ;;
804 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
805 ac_unrecognized_sep=', ';;
806 esac
807 eval enable_$ac_useropt=no ;;
809 -docdir | --docdir | --docdi | --doc | --do)
810 ac_prev=docdir ;;
811 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
812 docdir=$ac_optarg ;;
814 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
815 ac_prev=dvidir ;;
816 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
817 dvidir=$ac_optarg ;;
819 -enable-* | --enable-*)
820 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
823 as_fn_error "invalid feature name: $ac_useropt"
824 ac_useropt_orig=$ac_useropt
825 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
826 case $ac_user_opts in
828 "enable_$ac_useropt"
829 "*) ;;
830 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
831 ac_unrecognized_sep=', ';;
832 esac
833 eval enable_$ac_useropt=\$ac_optarg ;;
835 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
836 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
837 | --exec | --exe | --ex)
838 ac_prev=exec_prefix ;;
839 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
840 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
841 | --exec=* | --exe=* | --ex=*)
842 exec_prefix=$ac_optarg ;;
844 -gas | --gas | --ga | --g)
845 # Obsolete; use --with-gas.
846 with_gas=yes ;;
848 -help | --help | --hel | --he | -h)
849 ac_init_help=long ;;
850 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
851 ac_init_help=recursive ;;
852 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
853 ac_init_help=short ;;
855 -host | --host | --hos | --ho)
856 ac_prev=host_alias ;;
857 -host=* | --host=* | --hos=* | --ho=*)
858 host_alias=$ac_optarg ;;
860 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
861 ac_prev=htmldir ;;
862 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
863 | --ht=*)
864 htmldir=$ac_optarg ;;
866 -includedir | --includedir | --includedi | --included | --include \
867 | --includ | --inclu | --incl | --inc)
868 ac_prev=includedir ;;
869 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
870 | --includ=* | --inclu=* | --incl=* | --inc=*)
871 includedir=$ac_optarg ;;
873 -infodir | --infodir | --infodi | --infod | --info | --inf)
874 ac_prev=infodir ;;
875 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
876 infodir=$ac_optarg ;;
878 -libdir | --libdir | --libdi | --libd)
879 ac_prev=libdir ;;
880 -libdir=* | --libdir=* | --libdi=* | --libd=*)
881 libdir=$ac_optarg ;;
883 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
884 | --libexe | --libex | --libe)
885 ac_prev=libexecdir ;;
886 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
887 | --libexe=* | --libex=* | --libe=*)
888 libexecdir=$ac_optarg ;;
890 -localedir | --localedir | --localedi | --localed | --locale)
891 ac_prev=localedir ;;
892 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
893 localedir=$ac_optarg ;;
895 -localstatedir | --localstatedir | --localstatedi | --localstated \
896 | --localstate | --localstat | --localsta | --localst | --locals)
897 ac_prev=localstatedir ;;
898 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
899 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
900 localstatedir=$ac_optarg ;;
902 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
903 ac_prev=mandir ;;
904 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
905 mandir=$ac_optarg ;;
907 -nfp | --nfp | --nf)
908 # Obsolete; use --without-fp.
909 with_fp=no ;;
911 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
912 | --no-cr | --no-c | -n)
913 no_create=yes ;;
915 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
916 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
917 no_recursion=yes ;;
919 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
920 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
921 | --oldin | --oldi | --old | --ol | --o)
922 ac_prev=oldincludedir ;;
923 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
924 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
925 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
926 oldincludedir=$ac_optarg ;;
928 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
929 ac_prev=prefix ;;
930 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
931 prefix=$ac_optarg ;;
933 -program-prefix | --program-prefix | --program-prefi | --program-pref \
934 | --program-pre | --program-pr | --program-p)
935 ac_prev=program_prefix ;;
936 -program-prefix=* | --program-prefix=* | --program-prefi=* \
937 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
938 program_prefix=$ac_optarg ;;
940 -program-suffix | --program-suffix | --program-suffi | --program-suff \
941 | --program-suf | --program-su | --program-s)
942 ac_prev=program_suffix ;;
943 -program-suffix=* | --program-suffix=* | --program-suffi=* \
944 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
945 program_suffix=$ac_optarg ;;
947 -program-transform-name | --program-transform-name \
948 | --program-transform-nam | --program-transform-na \
949 | --program-transform-n | --program-transform- \
950 | --program-transform | --program-transfor \
951 | --program-transfo | --program-transf \
952 | --program-trans | --program-tran \
953 | --progr-tra | --program-tr | --program-t)
954 ac_prev=program_transform_name ;;
955 -program-transform-name=* | --program-transform-name=* \
956 | --program-transform-nam=* | --program-transform-na=* \
957 | --program-transform-n=* | --program-transform-=* \
958 | --program-transform=* | --program-transfor=* \
959 | --program-transfo=* | --program-transf=* \
960 | --program-trans=* | --program-tran=* \
961 | --progr-tra=* | --program-tr=* | --program-t=*)
962 program_transform_name=$ac_optarg ;;
964 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
965 ac_prev=pdfdir ;;
966 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
967 pdfdir=$ac_optarg ;;
969 -psdir | --psdir | --psdi | --psd | --ps)
970 ac_prev=psdir ;;
971 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
972 psdir=$ac_optarg ;;
974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
975 | -silent | --silent | --silen | --sile | --sil)
976 silent=yes ;;
978 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
979 ac_prev=sbindir ;;
980 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
981 | --sbi=* | --sb=*)
982 sbindir=$ac_optarg ;;
984 -sharedstatedir | --sharedstatedir | --sharedstatedi \
985 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
986 | --sharedst | --shareds | --shared | --share | --shar \
987 | --sha | --sh)
988 ac_prev=sharedstatedir ;;
989 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
990 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
991 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
992 | --sha=* | --sh=*)
993 sharedstatedir=$ac_optarg ;;
995 -site | --site | --sit)
996 ac_prev=site ;;
997 -site=* | --site=* | --sit=*)
998 site=$ac_optarg ;;
1000 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1001 ac_prev=srcdir ;;
1002 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1003 srcdir=$ac_optarg ;;
1005 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1006 | --syscon | --sysco | --sysc | --sys | --sy)
1007 ac_prev=sysconfdir ;;
1008 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1009 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1010 sysconfdir=$ac_optarg ;;
1012 -target | --target | --targe | --targ | --tar | --ta | --t)
1013 ac_prev=target_alias ;;
1014 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1015 target_alias=$ac_optarg ;;
1017 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1018 verbose=yes ;;
1020 -version | --version | --versio | --versi | --vers | -V)
1021 ac_init_version=: ;;
1023 -with-* | --with-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error "invalid package name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "with_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval with_$ac_useropt=\$ac_optarg ;;
1039 -without-* | --without-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error "invalid package name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "with_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval with_$ac_useropt=no ;;
1055 --x)
1056 # Obsolete; use --with-x.
1057 with_x=yes ;;
1059 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1060 | --x-incl | --x-inc | --x-in | --x-i)
1061 ac_prev=x_includes ;;
1062 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1063 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1064 x_includes=$ac_optarg ;;
1066 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1067 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1068 ac_prev=x_libraries ;;
1069 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1070 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1071 x_libraries=$ac_optarg ;;
1073 -*) as_fn_error "unrecognized option: \`$ac_option'
1074 Try \`$0 --help' for more information."
1077 *=*)
1078 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 case $ac_envvar in #(
1081 '' | [0-9]* | *[!_$as_cr_alnum]* )
1082 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1083 esac
1084 eval $ac_envvar=\$ac_optarg
1085 export $ac_envvar ;;
1088 # FIXME: should be removed in autoconf 3.0.
1089 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1090 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1091 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1092 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1095 esac
1096 done
1098 if test -n "$ac_prev"; then
1099 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1100 as_fn_error "missing argument to $ac_option"
1103 if test -n "$ac_unrecognized_opts"; then
1104 case $enable_option_checking in
1105 no) ;;
1106 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1107 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1108 esac
1111 # Check all directory arguments for consistency.
1112 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1113 datadir sysconfdir sharedstatedir localstatedir includedir \
1114 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1115 libdir localedir mandir
1117 eval ac_val=\$$ac_var
1118 # Remove trailing slashes.
1119 case $ac_val in
1120 */ )
1121 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1122 eval $ac_var=\$ac_val;;
1123 esac
1124 # Be sure to have absolute directory names.
1125 case $ac_val in
1126 [\\/$]* | ?:[\\/]* ) continue;;
1127 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1128 esac
1129 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1130 done
1132 # There might be people who depend on the old broken behavior: `$host'
1133 # used to hold the argument of --host etc.
1134 # FIXME: To remove some day.
1135 build=$build_alias
1136 host=$host_alias
1137 target=$target_alias
1139 # FIXME: To remove some day.
1140 if test "x$host_alias" != x; then
1141 if test "x$build_alias" = x; then
1142 cross_compiling=maybe
1143 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1144 If a cross compiler is detected then cross compile mode will be used." >&2
1145 elif test "x$build_alias" != "x$host_alias"; then
1146 cross_compiling=yes
1150 ac_tool_prefix=
1151 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153 test "$silent" = yes && exec 6>/dev/null
1156 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1157 ac_ls_di=`ls -di .` &&
1158 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1159 as_fn_error "working directory cannot be determined"
1160 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1161 as_fn_error "pwd does not report name of working directory"
1164 # Find the source files, if location was not specified.
1165 if test -z "$srcdir"; then
1166 ac_srcdir_defaulted=yes
1167 # Try the directory containing this script, then the parent directory.
1168 ac_confdir=`$as_dirname -- "$as_myself" ||
1169 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1170 X"$as_myself" : 'X\(//\)[^/]' \| \
1171 X"$as_myself" : 'X\(//\)$' \| \
1172 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1173 $as_echo X"$as_myself" |
1174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1175 s//\1/
1178 /^X\(\/\/\)[^/].*/{
1179 s//\1/
1182 /^X\(\/\/\)$/{
1183 s//\1/
1186 /^X\(\/\).*/{
1187 s//\1/
1190 s/.*/./; q'`
1191 srcdir=$ac_confdir
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 srcdir=..
1195 else
1196 ac_srcdir_defaulted=no
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1200 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1202 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1203 ac_abs_confdir=`(
1204 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1205 pwd)`
1206 # When building in place, set srcdir=.
1207 if test "$ac_abs_confdir" = "$ac_pwd"; then
1208 srcdir=.
1210 # Remove unnecessary trailing slashes from srcdir.
1211 # Double slashes in file names in object file debugging info
1212 # mess up M-x gdb in Emacs.
1213 case $srcdir in
1214 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1215 esac
1216 for ac_var in $ac_precious_vars; do
1217 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1218 eval ac_env_${ac_var}_value=\$${ac_var}
1219 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1220 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1221 done
1224 # Report the --help message.
1226 if test "$ac_init_help" = "long"; then
1227 # Omit some internal or obsolete options to make the list less imposing.
1228 # This message is too long to be a string in the A/UX 3.1 sh.
1229 cat <<_ACEOF
1230 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1232 Usage: $0 [OPTION]... [VAR=VALUE]...
1234 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1235 VAR=VALUE. See below for descriptions of some of the useful variables.
1237 Defaults for the options are specified in brackets.
1239 Configuration:
1240 -h, --help display this help and exit
1241 --help=short display options specific to this package
1242 --help=recursive display the short help of all the included packages
1243 -V, --version display version information and exit
1244 -q, --quiet, --silent do not print \`checking...' messages
1245 --cache-file=FILE cache test results in FILE [disabled]
1246 -C, --config-cache alias for \`--cache-file=config.cache'
1247 -n, --no-create do not create output files
1248 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1250 Installation directories:
1251 --prefix=PREFIX install architecture-independent files in PREFIX
1252 [$ac_default_prefix]
1253 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1254 [PREFIX]
1256 By default, \`make install' will install all the files in
1257 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1258 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1259 for instance \`--prefix=\$HOME'.
1261 For better control, use the options below.
1263 Fine tuning of the installation directories:
1264 --bindir=DIR user executables [EPREFIX/bin]
1265 --sbindir=DIR system admin executables [EPREFIX/sbin]
1266 --libexecdir=DIR program executables [EPREFIX/libexec]
1267 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1268 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1269 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1270 --libdir=DIR object code libraries [EPREFIX/lib]
1271 --includedir=DIR C header files [PREFIX/include]
1272 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1273 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1274 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1275 --infodir=DIR info documentation [DATAROOTDIR/info]
1276 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1277 --mandir=DIR man documentation [DATAROOTDIR/man]
1278 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1279 --htmldir=DIR html documentation [DOCDIR]
1280 --dvidir=DIR dvi documentation [DOCDIR]
1281 --pdfdir=DIR pdf documentation [DOCDIR]
1282 --psdir=DIR ps documentation [DOCDIR]
1283 _ACEOF
1285 cat <<\_ACEOF
1287 System types:
1288 --build=BUILD configure for building on BUILD [guessed]
1289 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1290 _ACEOF
1293 if test -n "$ac_init_help"; then
1294 case $ac_init_help in
1295 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1296 esac
1297 cat <<\_ACEOF
1299 Optional Features:
1300 --disable-option-checking ignore unrecognized --enable/--with options
1301 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1302 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1303 --disable-shared don't provide a shared libgcc
1304 --enable-vtable-verify Enable vtable verification feature
1305 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1306 --enable-maintainer-mode
1307 enable make rules and dependencies not useful (and
1308 sometimes confusing) to the casual installer
1309 --enable-decimal-float={no,yes,bid,dpd}
1310 enable decimal float extension to C. Selecting 'bid'
1311 or 'dpd' choses which decimal floating point format
1312 to use
1313 --enable-explicit-exception-frame-registration
1314 register exception tables explicitly at module
1315 start, for use e.g. for compatibility with
1316 installations without PT_GNU_EH_FRAME support
1317 --enable-tls Use thread-local storage [default=yes]
1319 Optional Packages:
1320 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1321 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1322 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1323 --with-cross-host=HOST Configuring with a cross compiler
1324 --with-ld arrange to use the specified ld (full pathname)
1325 --with-aix-soname=aix|svr4|both
1326 shared library versioning (aka "SONAME") variant to
1327 provide on AIX
1328 --with-slibdir=DIR shared libraries in DIR LIBDIR
1329 --with-build-libsubdir=DIR Directory where to find libraries for build system
1330 --with-system-libunwind use installed libunwind
1331 --with-glibc-version=M.N
1332 assume GCC used with glibc version M.N or later
1334 Some influential environment variables:
1335 CC C compiler command
1336 CFLAGS C compiler flags
1337 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1338 nonstandard directory <lib dir>
1339 LIBS libraries to pass to the linker, e.g. -l<library>
1340 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1341 you have headers in a nonstandard directory <include dir>
1342 CPP C preprocessor
1344 Use these variables to override the choices made by `configure' or to help
1345 it to find libraries and programs with nonstandard names/locations.
1347 Report bugs to the package provider.
1348 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1349 General help using GNU software: <http://www.gnu.org/gethelp/>.
1350 _ACEOF
1351 ac_status=$?
1354 if test "$ac_init_help" = "recursive"; then
1355 # If there are subdirs, report their specific --help.
1356 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1357 test -d "$ac_dir" ||
1358 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1359 continue
1360 ac_builddir=.
1362 case "$ac_dir" in
1363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1365 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1366 # A ".." for each directory in $ac_dir_suffix.
1367 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1368 case $ac_top_builddir_sub in
1369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1371 esac ;;
1372 esac
1373 ac_abs_top_builddir=$ac_pwd
1374 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1375 # for backward compatibility:
1376 ac_top_builddir=$ac_top_build_prefix
1378 case $srcdir in
1379 .) # We are building in place.
1380 ac_srcdir=.
1381 ac_top_srcdir=$ac_top_builddir_sub
1382 ac_abs_top_srcdir=$ac_pwd ;;
1383 [\\/]* | ?:[\\/]* ) # Absolute name.
1384 ac_srcdir=$srcdir$ac_dir_suffix;
1385 ac_top_srcdir=$srcdir
1386 ac_abs_top_srcdir=$srcdir ;;
1387 *) # Relative name.
1388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1389 ac_top_srcdir=$ac_top_build_prefix$srcdir
1390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1391 esac
1392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1394 cd "$ac_dir" || { ac_status=$?; continue; }
1395 # Check for guested configure.
1396 if test -f "$ac_srcdir/configure.gnu"; then
1397 echo &&
1398 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1399 elif test -f "$ac_srcdir/configure"; then
1400 echo &&
1401 $SHELL "$ac_srcdir/configure" --help=recursive
1402 else
1403 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1404 fi || ac_status=$?
1405 cd "$ac_pwd" || { ac_status=$?; break; }
1406 done
1409 test -n "$ac_init_help" && exit $ac_status
1410 if $ac_init_version; then
1411 cat <<\_ACEOF
1412 GNU C Runtime Library configure 1.0
1413 generated by GNU Autoconf 2.64
1415 Copyright (C) 2009 Free Software Foundation, Inc.
1416 This configure script is free software; the Free Software Foundation
1417 gives unlimited permission to copy, distribute and modify it.
1418 _ACEOF
1419 exit
1422 ## ------------------------ ##
1423 ## Autoconf initialization. ##
1424 ## ------------------------ ##
1426 # ac_fn_c_try_compile LINENO
1427 # --------------------------
1428 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1429 ac_fn_c_try_compile ()
1431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1432 rm -f conftest.$ac_objext
1433 if { { ac_try="$ac_compile"
1434 case "(($ac_try" in
1435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1436 *) ac_try_echo=$ac_try;;
1437 esac
1438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1439 $as_echo "$ac_try_echo"; } >&5
1440 (eval "$ac_compile") 2>conftest.err
1441 ac_status=$?
1442 if test -s conftest.err; then
1443 grep -v '^ *+' conftest.err >conftest.er1
1444 cat conftest.er1 >&5
1445 mv -f conftest.er1 conftest.err
1447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1448 test $ac_status = 0; } && {
1449 test -z "$ac_c_werror_flag" ||
1450 test ! -s conftest.err
1451 } && test -s conftest.$ac_objext; then :
1452 ac_retval=0
1453 else
1454 $as_echo "$as_me: failed program was:" >&5
1455 sed 's/^/| /' conftest.$ac_ext >&5
1457 ac_retval=1
1459 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1460 return $ac_retval
1462 } # ac_fn_c_try_compile
1464 # ac_fn_c_try_cpp LINENO
1465 # ----------------------
1466 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1467 ac_fn_c_try_cpp ()
1469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1470 if { { ac_try="$ac_cpp conftest.$ac_ext"
1471 case "(($ac_try" in
1472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1473 *) ac_try_echo=$ac_try;;
1474 esac
1475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1476 $as_echo "$ac_try_echo"; } >&5
1477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1478 ac_status=$?
1479 if test -s conftest.err; then
1480 grep -v '^ *+' conftest.err >conftest.er1
1481 cat conftest.er1 >&5
1482 mv -f conftest.er1 conftest.err
1484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1485 test $ac_status = 0; } >/dev/null && {
1486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1487 test ! -s conftest.err
1488 }; then :
1489 ac_retval=0
1490 else
1491 $as_echo "$as_me: failed program was:" >&5
1492 sed 's/^/| /' conftest.$ac_ext >&5
1494 ac_retval=1
1496 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1497 return $ac_retval
1499 } # ac_fn_c_try_cpp
1501 # ac_fn_c_try_run LINENO
1502 # ----------------------
1503 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1504 # that executables *can* be run.
1505 ac_fn_c_try_run ()
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 if { { ac_try="$ac_link"
1509 case "(($ac_try" in
1510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1511 *) ac_try_echo=$ac_try;;
1512 esac
1513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1514 $as_echo "$ac_try_echo"; } >&5
1515 (eval "$ac_link") 2>&5
1516 ac_status=$?
1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1519 { { case "(($ac_try" in
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1522 esac
1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_try") 2>&5
1526 ac_status=$?
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528 test $ac_status = 0; }; }; then :
1529 ac_retval=0
1530 else
1531 $as_echo "$as_me: program exited with status $ac_status" >&5
1532 $as_echo "$as_me: failed program was:" >&5
1533 sed 's/^/| /' conftest.$ac_ext >&5
1535 ac_retval=$ac_status
1537 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1539 return $ac_retval
1541 } # ac_fn_c_try_run
1543 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1544 # --------------------------------------------
1545 # Tries to find the compile-time value of EXPR in a program that includes
1546 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1547 # computed
1548 ac_fn_c_compute_int ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if test "$cross_compiling" = yes; then
1552 # Depending upon the size, compute the lo and hi bounds.
1553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1554 /* end confdefs.h. */
1557 main ()
1559 static int test_array [1 - 2 * !(($2) >= 0)];
1560 test_array [0] = 0
1563 return 0;
1565 _ACEOF
1566 if ac_fn_c_try_compile "$LINENO"; then :
1567 ac_lo=0 ac_mid=0
1568 while :; do
1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570 /* end confdefs.h. */
1573 main ()
1575 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1576 test_array [0] = 0
1579 return 0;
1581 _ACEOF
1582 if ac_fn_c_try_compile "$LINENO"; then :
1583 ac_hi=$ac_mid; break
1584 else
1585 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1586 if test $ac_lo -le $ac_mid; then
1587 ac_lo= ac_hi=
1588 break
1590 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1593 done
1594 else
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h. */
1599 main ()
1601 static int test_array [1 - 2 * !(($2) < 0)];
1602 test_array [0] = 0
1605 return 0;
1607 _ACEOF
1608 if ac_fn_c_try_compile "$LINENO"; then :
1609 ac_hi=-1 ac_mid=-1
1610 while :; do
1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612 /* end confdefs.h. */
1615 main ()
1617 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1618 test_array [0] = 0
1621 return 0;
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"; then :
1625 ac_lo=$ac_mid; break
1626 else
1627 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1628 if test $ac_mid -le $ac_hi; then
1629 ac_lo= ac_hi=
1630 break
1632 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 done
1636 else
1637 ac_lo= ac_hi=
1639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642 # Binary search between lo and hi bounds.
1643 while test "x$ac_lo" != "x$ac_hi"; do
1644 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1649 main ()
1651 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1652 test_array [0] = 0
1655 return 0;
1657 _ACEOF
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 ac_hi=$ac_mid
1660 else
1661 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 done
1665 case $ac_lo in #((
1666 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1667 '') ac_retval=1 ;;
1668 esac
1669 else
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1673 static long int longval () { return $2; }
1674 static unsigned long int ulongval () { return $2; }
1675 #include <stdio.h>
1676 #include <stdlib.h>
1678 main ()
1681 FILE *f = fopen ("conftest.val", "w");
1682 if (! f)
1683 return 1;
1684 if (($2) < 0)
1686 long int i = longval ();
1687 if (i != ($2))
1688 return 1;
1689 fprintf (f, "%ld", i);
1691 else
1693 unsigned long int i = ulongval ();
1694 if (i != ($2))
1695 return 1;
1696 fprintf (f, "%lu", i);
1698 /* Do not output a trailing newline, as this causes \r\n confusion
1699 on some platforms. */
1700 return ferror (f) || fclose (f) != 0;
1703 return 0;
1705 _ACEOF
1706 if ac_fn_c_try_run "$LINENO"; then :
1707 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1708 else
1709 ac_retval=1
1711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1712 conftest.$ac_objext conftest.beam conftest.$ac_ext
1713 rm -f conftest.val
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 return $ac_retval
1719 } # ac_fn_c_compute_int
1721 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1722 # ----------------------------------------------
1723 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1724 ac_fn_c_check_header_preproc ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1730 $as_echo_n "(cached) " >&6
1731 else
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 #include <$2>
1735 _ACEOF
1736 if ac_fn_c_try_cpp "$LINENO"; then :
1737 eval "$3=yes"
1738 else
1739 eval "$3=no"
1741 rm -f conftest.err conftest.$ac_ext
1743 eval ac_res=\$$3
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 } # ac_fn_c_check_header_preproc
1749 cat >config.log <<_ACEOF
1750 This file contains any messages produced by compilers while
1751 running configure, to aid debugging if configure makes a mistake.
1753 It was created by GNU C Runtime Library $as_me 1.0, which was
1754 generated by GNU Autoconf 2.64. Invocation command line was
1756 $ $0 $@
1758 _ACEOF
1759 exec 5>>config.log
1761 cat <<_ASUNAME
1762 ## --------- ##
1763 ## Platform. ##
1764 ## --------- ##
1766 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1767 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1768 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1769 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1770 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1772 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1773 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1775 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1776 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1777 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1778 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1779 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1780 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1781 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1783 _ASUNAME
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 $as_echo "PATH: $as_dir"
1791 done
1792 IFS=$as_save_IFS
1794 } >&5
1796 cat >&5 <<_ACEOF
1799 ## ----------- ##
1800 ## Core tests. ##
1801 ## ----------- ##
1803 _ACEOF
1806 # Keep a trace of the command line.
1807 # Strip out --no-create and --no-recursion so they do not pile up.
1808 # Strip out --silent because we don't want to record it for future runs.
1809 # Also quote any args containing shell meta-characters.
1810 # Make two passes to allow for proper duplicate-argument suppression.
1811 ac_configure_args=
1812 ac_configure_args0=
1813 ac_configure_args1=
1814 ac_must_keep_next=false
1815 for ac_pass in 1 2
1817 for ac_arg
1819 case $ac_arg in
1820 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1822 | -silent | --silent | --silen | --sile | --sil)
1823 continue ;;
1824 *\'*)
1825 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1826 esac
1827 case $ac_pass in
1828 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1830 as_fn_append ac_configure_args1 " '$ac_arg'"
1831 if test $ac_must_keep_next = true; then
1832 ac_must_keep_next=false # Got value, back to normal.
1833 else
1834 case $ac_arg in
1835 *=* | --config-cache | -C | -disable-* | --disable-* \
1836 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1837 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1838 | -with-* | --with-* | -without-* | --without-* | --x)
1839 case "$ac_configure_args0 " in
1840 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1841 esac
1843 -* ) ac_must_keep_next=true ;;
1844 esac
1846 as_fn_append ac_configure_args " '$ac_arg'"
1848 esac
1849 done
1850 done
1851 { ac_configure_args0=; unset ac_configure_args0;}
1852 { ac_configure_args1=; unset ac_configure_args1;}
1854 # When interrupted or exit'd, cleanup temporary files, and complete
1855 # config.log. We remove comments because anyway the quotes in there
1856 # would cause problems or look ugly.
1857 # WARNING: Use '\'' to represent an apostrophe within the trap.
1858 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1859 trap 'exit_status=$?
1860 # Save into config.log some information that might help in debugging.
1862 echo
1864 cat <<\_ASBOX
1865 ## ---------------- ##
1866 ## Cache variables. ##
1867 ## ---------------- ##
1868 _ASBOX
1869 echo
1870 # The following way of writing the cache mishandles newlines in values,
1872 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1873 eval ac_val=\$$ac_var
1874 case $ac_val in #(
1875 *${as_nl}*)
1876 case $ac_var in #(
1877 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1878 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1879 esac
1880 case $ac_var in #(
1881 _ | IFS | as_nl) ;; #(
1882 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1883 *) { eval $ac_var=; unset $ac_var;} ;;
1884 esac ;;
1885 esac
1886 done
1887 (set) 2>&1 |
1888 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1889 *${as_nl}ac_space=\ *)
1890 sed -n \
1891 "s/'\''/'\''\\\\'\'''\''/g;
1892 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1893 ;; #(
1895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1897 esac |
1898 sort
1900 echo
1902 cat <<\_ASBOX
1903 ## ----------------- ##
1904 ## Output variables. ##
1905 ## ----------------- ##
1906 _ASBOX
1907 echo
1908 for ac_var in $ac_subst_vars
1910 eval ac_val=\$$ac_var
1911 case $ac_val in
1912 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913 esac
1914 $as_echo "$ac_var='\''$ac_val'\''"
1915 done | sort
1916 echo
1918 if test -n "$ac_subst_files"; then
1919 cat <<\_ASBOX
1920 ## ------------------- ##
1921 ## File substitutions. ##
1922 ## ------------------- ##
1923 _ASBOX
1924 echo
1925 for ac_var in $ac_subst_files
1927 eval ac_val=\$$ac_var
1928 case $ac_val in
1929 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1930 esac
1931 $as_echo "$ac_var='\''$ac_val'\''"
1932 done | sort
1933 echo
1936 if test -s confdefs.h; then
1937 cat <<\_ASBOX
1938 ## ----------- ##
1939 ## confdefs.h. ##
1940 ## ----------- ##
1941 _ASBOX
1942 echo
1943 cat confdefs.h
1944 echo
1946 test "$ac_signal" != 0 &&
1947 $as_echo "$as_me: caught signal $ac_signal"
1948 $as_echo "$as_me: exit $exit_status"
1949 } >&5
1950 rm -f core *.core core.conftest.* &&
1951 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1952 exit $exit_status
1954 for ac_signal in 1 2 13 15; do
1955 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1956 done
1957 ac_signal=0
1959 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1960 rm -f -r conftest* confdefs.h
1962 $as_echo "/* confdefs.h */" > confdefs.h
1964 # Predefined preprocessor variables.
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_NAME "$PACKAGE_NAME"
1968 _ACEOF
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1972 _ACEOF
1974 cat >>confdefs.h <<_ACEOF
1975 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1976 _ACEOF
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_STRING "$PACKAGE_STRING"
1980 _ACEOF
1982 cat >>confdefs.h <<_ACEOF
1983 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1984 _ACEOF
1986 cat >>confdefs.h <<_ACEOF
1987 #define PACKAGE_URL "$PACKAGE_URL"
1988 _ACEOF
1991 # Let the site file select an alternate cache file if it wants to.
1992 # Prefer an explicitly selected file to automatically selected ones.
1993 ac_site_file1=NONE
1994 ac_site_file2=NONE
1995 if test -n "$CONFIG_SITE"; then
1996 ac_site_file1=$CONFIG_SITE
1997 elif test "x$prefix" != xNONE; then
1998 ac_site_file1=$prefix/share/config.site
1999 ac_site_file2=$prefix/etc/config.site
2000 else
2001 ac_site_file1=$ac_default_prefix/share/config.site
2002 ac_site_file2=$ac_default_prefix/etc/config.site
2004 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2006 test "x$ac_site_file" = xNONE && continue
2007 if test -r "$ac_site_file"; then
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2009 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2010 sed 's/^/| /' "$ac_site_file" >&5
2011 . "$ac_site_file"
2013 done
2015 if test -r "$cache_file"; then
2016 # Some versions of bash will fail to source /dev/null (special
2017 # files actually), so we avoid doing that.
2018 if test -f "$cache_file"; then
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2020 $as_echo "$as_me: loading cache $cache_file" >&6;}
2021 case $cache_file in
2022 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2023 *) . "./$cache_file";;
2024 esac
2026 else
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2028 $as_echo "$as_me: creating cache $cache_file" >&6;}
2029 >$cache_file
2032 # Check that the precious variables saved in the cache have kept the same
2033 # value.
2034 ac_cache_corrupted=false
2035 for ac_var in $ac_precious_vars; do
2036 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2037 eval ac_new_set=\$ac_env_${ac_var}_set
2038 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2039 eval ac_new_val=\$ac_env_${ac_var}_value
2040 case $ac_old_set,$ac_new_set in
2041 set,)
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2043 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2044 ac_cache_corrupted=: ;;
2045 ,set)
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2047 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2048 ac_cache_corrupted=: ;;
2049 ,);;
2051 if test "x$ac_old_val" != "x$ac_new_val"; then
2052 # differences in whitespace do not lead to failure.
2053 ac_old_val_w=`echo x $ac_old_val`
2054 ac_new_val_w=`echo x $ac_new_val`
2055 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2057 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2058 ac_cache_corrupted=:
2059 else
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2061 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2062 eval $ac_var=\$ac_old_val
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2065 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2067 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2068 fi;;
2069 esac
2070 # Pass precious variables to config.status.
2071 if test "$ac_new_set" = set; then
2072 case $ac_new_val in
2073 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2074 *) ac_arg=$ac_var=$ac_new_val ;;
2075 esac
2076 case " $ac_configure_args " in
2077 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2078 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2079 esac
2081 done
2082 if $ac_cache_corrupted; then
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2086 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2087 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2089 ## -------------------- ##
2090 ## Main body of script. ##
2091 ## -------------------- ##
2093 ac_ext=c
2094 ac_cpp='$CPP $CPPFLAGS'
2095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105 # The libgcc should not depend on any header files
2109 # Check whether --with-target-subdir was given.
2110 if test "${with_target_subdir+set}" = set; then :
2111 withval=$with_target_subdir;
2115 # Check whether --with-cross-host was given.
2116 if test "${with_cross_host+set}" = set; then :
2117 withval=$with_cross_host;
2121 # Check whether --with-ld was given.
2122 if test "${with_ld+set}" = set; then :
2123 withval=$with_ld;
2127 if test "${srcdir}" = "."; then
2128 if test -n "${with_build_subdir}"; then
2129 libgcc_topdir="${srcdir}/../.."
2130 with_target_subdir=
2131 elif test -z "${with_target_subdir}"; then
2132 libgcc_topdir="${srcdir}/.."
2133 else
2134 if test "${with_target_subdir}" != "."; then
2135 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2136 else
2137 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2140 else
2141 libgcc_topdir="${srcdir}/.."
2144 ac_aux_dir=
2145 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2146 for ac_t in install-sh install.sh shtool; do
2147 if test -f "$ac_dir/$ac_t"; then
2148 ac_aux_dir=$ac_dir
2149 ac_install_sh="$ac_aux_dir/$ac_t -c"
2150 break 2
2152 done
2153 done
2154 if test -z "$ac_aux_dir"; then
2155 as_fn_error "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2158 # These three variables are undocumented and unsupported,
2159 # and are intended to be withdrawn in a future Autoconf release.
2160 # They can cause serious problems if a builder's source tree is in a directory
2161 # whose full name contains unusual characters.
2162 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2163 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2164 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2167 ac_config_headers="$ac_config_headers auto-target.h:config.in"
2170 # Check whether --enable-shared was given.
2171 if test "${enable_shared+set}" = set; then :
2172 enableval=$enable_shared;
2173 case $enable_shared in
2174 yes | no) ;;
2176 enable_shared=no
2177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2178 for pkg in $enableval; do
2179 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2180 enable_shared=yes
2182 done
2183 IFS="$ac_save_ifs"
2185 esac
2187 else
2188 enable_shared=yes
2193 # Check whether --enable-vtable-verify was given.
2194 if test "${enable_vtable_verify+set}" = set; then :
2195 enableval=$enable_vtable_verify; case "$enableval" in
2196 yes) enable_vtable_verify=yes ;;
2197 no) enable_vtable_verify=no ;;
2198 *) enable_vtable_verify=no;;
2199 esac
2200 else
2201 enable_vtable_verify=no
2207 # Check whether --with-aix-soname was given.
2208 if test "${with_aix_soname+set}" = set; then :
2209 withval=$with_aix_soname; case "${host}:${enable_shared}" in
2210 power*-*-aix[5-9]*:yes)
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5
2212 $as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; }
2213 case ${withval} in
2214 aix|svr4|both) ;;
2215 *) as_fn_error "Unknown argument to --with-aix-soname" "$LINENO" 5;;
2216 esac
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2218 $as_echo "$withval" >&6; }
2220 *) with_aix_soname=aix ;;
2221 esac
2223 else
2224 with_aix_soname=aix
2229 # Make sure we can run config.sub.
2230 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2231 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2234 $as_echo_n "checking build system type... " >&6; }
2235 if test "${ac_cv_build+set}" = set; then :
2236 $as_echo_n "(cached) " >&6
2237 else
2238 ac_build_alias=$build_alias
2239 test "x$ac_build_alias" = x &&
2240 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2241 test "x$ac_build_alias" = x &&
2242 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2243 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2244 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2248 $as_echo "$ac_cv_build" >&6; }
2249 case $ac_cv_build in
2250 *-*-*) ;;
2251 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2252 esac
2253 build=$ac_cv_build
2254 ac_save_IFS=$IFS; IFS='-'
2255 set x $ac_cv_build
2256 shift
2257 build_cpu=$1
2258 build_vendor=$2
2259 shift; shift
2260 # Remember, the first character of IFS is used to create $*,
2261 # except with old shells:
2262 build_os=$*
2263 IFS=$ac_save_IFS
2264 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2268 $as_echo_n "checking host system type... " >&6; }
2269 if test "${ac_cv_host+set}" = set; then :
2270 $as_echo_n "(cached) " >&6
2271 else
2272 if test "x$host_alias" = x; then
2273 ac_cv_host=$ac_cv_build
2274 else
2275 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2276 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2281 $as_echo "$ac_cv_host" >&6; }
2282 case $ac_cv_host in
2283 *-*-*) ;;
2284 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2285 esac
2286 host=$ac_cv_host
2287 ac_save_IFS=$IFS; IFS='-'
2288 set x $ac_cv_host
2289 shift
2290 host_cpu=$1
2291 host_vendor=$2
2292 shift; shift
2293 # Remember, the first character of IFS is used to create $*,
2294 # except with old shells:
2295 host_os=$*
2296 IFS=$ac_save_IFS
2297 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2304 case "${host}" in
2305 # PIC is the default on some targets or must not be used.
2306 *-*-darwin*)
2307 # For darwin, common symbols are not allowed in MH_DYLIB files
2308 case "${CFLAGS}" in
2309 # If we are using a compiler supporting mdynamic-no-pic
2310 # and the option has been tested as safe to add, then cancel
2311 # it here, since the code generated is incompatible with shared
2312 # libs.
2313 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
2314 *) PICFLAG=-fno-common ;;
2315 esac
2317 alpha*-dec-osf5*)
2318 # PIC is the default.
2320 hppa*64*-*-hpux*)
2321 # PIC is the default for 64-bit PA HP-UX.
2323 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2325 i[34567]86-*-mingw* | x86_64-*-mingw*)
2327 i[34567]86-*-nto-qnx*)
2328 # QNX uses GNU C++, but need to define -shared option too, otherwise
2329 # it will coredump.
2330 PICFLAG='-fPIC -shared'
2332 i[34567]86-pc-msdosdjgpp*)
2333 # DJGPP does not support shared libraries at all.
2335 ia64*-*-hpux*)
2336 # On IA64 HP-UX, PIC is the default but the pic flag
2337 # sets the default TLS model and affects inlining.
2338 PICFLAG=-fPIC
2340 mips-sgi-irix6*)
2341 # PIC is the default.
2343 rs6000-ibm-aix* | powerpc-ibm-aix*)
2344 # All AIX code is PIC.
2347 # Some targets support both -fPIC and -fpic, but prefer the latter.
2348 # FIXME: Why?
2349 i[34567]86-*-* | x86_64-*-*)
2350 PICFLAG=-fpic
2352 # FIXME: Override -fPIC default in libgcc only?
2353 sh-*-linux* | sh[2346lbe]*-*-linux*)
2354 PICFLAG=-fpic
2356 # FIXME: Simplify to sh*-*-netbsd*?
2357 sh-*-netbsdelf* | shl*-*-netbsdelf*)
2358 PICFLAG=-fpic
2360 # Default to -fPIC unless specified otherwise.
2362 PICFLAG=-fPIC
2364 esac
2366 # If the user explicitly uses -fpic/-fPIC, keep that.
2367 case "${CFLAGS}" in
2368 *-fpic*)
2369 PICFLAG=-fpic
2371 *-fPIC*)
2372 PICFLAG=-fPIC
2374 esac
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2379 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2380 # Check whether --enable-version-specific-runtime-libs was given.
2381 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2382 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2383 yes) version_specific_libs=yes ;;
2384 no) version_specific_libs=no ;;
2385 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2386 esac
2387 else
2388 version_specific_libs=no
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2392 $as_echo "$version_specific_libs" >&6; }
2395 # Check whether --with-slibdir was given.
2396 if test "${with_slibdir+set}" = set; then :
2397 withval=$with_slibdir; slibdir="$with_slibdir"
2398 else
2399 if test "${version_specific_libs}" = yes; then
2400 slibdir='$(libsubdir)'
2401 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2402 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2403 else
2404 slibdir='$(libdir)'
2410 # Command-line options.
2411 # Very limited version of AC_MAINTAINER_MODE.
2412 # Check whether --enable-maintainer-mode was given.
2413 if test "${enable_maintainer_mode+set}" = set; then :
2414 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2415 yes) MAINT='' ;;
2416 no) MAINT='#' ;;
2417 *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2418 esac
2419 maintainer_mode=${enableval}
2420 else
2421 MAINT='#'
2425 # Find a good install program. We prefer a C program (faster),
2426 # so one script is as good as another. But avoid the broken or
2427 # incompatible versions:
2428 # SysV /etc/install, /usr/sbin/install
2429 # SunOS /usr/etc/install
2430 # IRIX /sbin/install
2431 # AIX /bin/install
2432 # AmigaOS /C/install, which installs bootblocks on floppy discs
2433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2436 # OS/2's system install, which has a completely different semantic
2437 # ./install, which can be erroneously created by make from ./install.sh.
2438 # Reject install programs that cannot install multiple files.
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2440 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2441 if test -z "$INSTALL"; then
2442 if test "${ac_cv_path_install+set}" = set; then :
2443 $as_echo_n "(cached) " >&6
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 # Account for people who put trailing slashes in PATH elements.
2451 case $as_dir/ in #((
2452 ./ | .// | /[cC]/* | \
2453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2454 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2455 /usr/ucb/* ) ;;
2457 # OSF1 and SCO ODT 3.0 have their own names for install.
2458 # Don't use installbsd from OSF since it installs stuff as root
2459 # by default.
2460 for ac_prog in ginstall scoinst install; do
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2463 if test $ac_prog = install &&
2464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # AIX install. It has an incompatible calling convention.
2467 elif test $ac_prog = install &&
2468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469 # program-specific install script used by HP pwplus--don't use.
2471 else
2472 rm -rf conftest.one conftest.two conftest.dir
2473 echo one > conftest.one
2474 echo two > conftest.two
2475 mkdir conftest.dir
2476 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2477 test -s conftest.one && test -s conftest.two &&
2478 test -s conftest.dir/conftest.one &&
2479 test -s conftest.dir/conftest.two
2480 then
2481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2482 break 3
2486 done
2487 done
2489 esac
2491 done
2492 IFS=$as_save_IFS
2494 rm -rf conftest.one conftest.two conftest.dir
2497 if test "${ac_cv_path_install+set}" = set; then
2498 INSTALL=$ac_cv_path_install
2499 else
2500 # As a last resort, use the slow shell script. Don't cache a
2501 # value for INSTALL within a source directory, because that will
2502 # break other packages using the cache if that directory is
2503 # removed, or if the value is a relative name.
2504 INSTALL=$ac_install_sh
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2508 $as_echo "$INSTALL" >&6; }
2510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2511 # It thinks the first close brace ends the variable substitution.
2512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2519 for ac_prog in gawk mawk nawk awk
2521 # Extract the first word of "$ac_prog", so it can be a program name with args.
2522 set dummy $ac_prog; ac_word=$2
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524 $as_echo_n "checking for $ac_word... " >&6; }
2525 if test "${ac_cv_prog_AWK+set}" = set; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 if test -n "$AWK"; then
2529 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538 ac_cv_prog_AWK="$ac_prog"
2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 break 2
2542 done
2543 done
2544 IFS=$as_save_IFS
2548 AWK=$ac_cv_prog_AWK
2549 if test -n "$AWK"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2551 $as_echo "$AWK" >&6; }
2552 else
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554 $as_echo "no" >&6; }
2558 test -n "$AWK" && break
2559 done
2561 # We need awk; bail out if it's missing.
2562 case ${AWK} in
2563 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
2564 esac
2567 case ${build_alias} in
2568 "") build_noncanonical=${build} ;;
2569 *) build_noncanonical=${build_alias} ;;
2570 esac
2572 case ${host_alias} in
2573 "") host_noncanonical=${build_noncanonical} ;;
2574 *) host_noncanonical=${host_alias} ;;
2575 esac
2579 case ${target_alias} in
2580 "") target_noncanonical=${host_noncanonical} ;;
2581 *) target_noncanonical=${target_alias} ;;
2582 esac
2587 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2588 # have matching libraries, they should use host libraries: Makefile.tpl
2589 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2590 # However, they still use the build modules, because the corresponding
2591 # host modules (e.g. bison) are only built for the host when bootstrap
2592 # finishes. So:
2593 # - build_subdir is where we find build modules, and never changes.
2594 # - build_libsubdir is where we find build libraries, and can be overridden.
2596 # Prefix 'build-' so this never conflicts with target_subdir.
2597 build_subdir="build-${build_noncanonical}"
2599 # Check whether --with-build-libsubdir was given.
2600 if test "${with_build_libsubdir+set}" = set; then :
2601 withval=$with_build_libsubdir; build_libsubdir="$withval"
2602 else
2603 build_libsubdir="$build_subdir"
2606 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2607 if ( test $srcdir = . && test -d gcc ) \
2608 || test -d $srcdir/../host-${host_noncanonical}; then
2609 host_subdir="host-${host_noncanonical}"
2610 else
2611 host_subdir=.
2613 # No prefix.
2614 target_subdir=${target_noncanonical}
2617 # Calculate toolexeclibdir
2618 # Also toolexecdir, though it's only used in toolexeclibdir
2619 case ${version_specific_libs} in
2620 yes)
2621 # Need the gcc compiler version to know where to install libraries
2622 # and header files if --enable-version-specific-runtime-libs option
2623 # is selected.
2624 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2625 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2628 if test -n "$with_cross_host" &&
2629 test x"$with_cross_host" != x"no"; then
2630 # Install a library built with a cross compiler in tooldir, not libdir.
2631 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2632 toolexeclibdir='$(toolexecdir)/lib'
2633 else
2634 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2635 toolexeclibdir='$(libdir)'
2637 multi_os_directory=`$CC -print-multi-os-directory`
2638 case $multi_os_directory in
2639 .) ;; # Avoid trailing /.
2640 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2641 esac
2643 esac
2647 if test -n "$ac_tool_prefix"; then
2648 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2649 set dummy ${ac_tool_prefix}ar; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_AR+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$AR"; then
2656 ac_cv_prog_AR="$AR" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_AR="${ac_tool_prefix}ar"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2669 done
2670 done
2671 IFS=$as_save_IFS
2675 AR=$ac_cv_prog_AR
2676 if test -n "$AR"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2678 $as_echo "$AR" >&6; }
2679 else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2686 if test -z "$ac_cv_prog_AR"; then
2687 ac_ct_AR=$AR
2688 # Extract the first word of "ar", so it can be a program name with args.
2689 set dummy ar; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 if test -n "$ac_ct_AR"; then
2696 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2697 else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699 for as_dir in $PATH
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705 ac_cv_prog_ac_ct_AR="ar"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 break 2
2709 done
2710 done
2711 IFS=$as_save_IFS
2715 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2716 if test -n "$ac_ct_AR"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2718 $as_echo "$ac_ct_AR" >&6; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2724 if test "x$ac_ct_AR" = x; then
2725 AR=""
2726 else
2727 case $cross_compiling:$ac_tool_warned in
2728 yes:)
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2731 ac_tool_warned=yes ;;
2732 esac
2733 AR=$ac_ct_AR
2735 else
2736 AR="$ac_cv_prog_AR"
2739 if test -n "$ac_tool_prefix"; then
2740 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2741 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_LIPO+set}" = set; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$LIPO"; then
2748 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2761 done
2762 done
2763 IFS=$as_save_IFS
2767 LIPO=$ac_cv_prog_LIPO
2768 if test -n "$LIPO"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2770 $as_echo "$LIPO" >&6; }
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2778 if test -z "$ac_cv_prog_LIPO"; then
2779 ac_ct_LIPO=$LIPO
2780 # Extract the first word of "lipo", so it can be a program name with args.
2781 set dummy lipo; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test -n "$ac_ct_LIPO"; then
2788 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_ac_ct_LIPO="lipo"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2801 done
2802 done
2803 IFS=$as_save_IFS
2807 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2808 if test -n "$ac_ct_LIPO"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2810 $as_echo "$ac_ct_LIPO" >&6; }
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2816 if test "x$ac_ct_LIPO" = x; then
2817 LIPO=":"
2818 else
2819 case $cross_compiling:$ac_tool_warned in
2820 yes:)
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2823 ac_tool_warned=yes ;;
2824 esac
2825 LIPO=$ac_ct_LIPO
2827 else
2828 LIPO="$ac_cv_prog_LIPO"
2831 if test -n "$ac_tool_prefix"; then
2832 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2833 set dummy ${ac_tool_prefix}nm; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if test "${ac_cv_prog_NM+set}" = set; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$NM"; then
2840 ac_cv_prog_NM="$NM" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 ac_cv_prog_NM="${ac_tool_prefix}nm"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2853 done
2854 done
2855 IFS=$as_save_IFS
2859 NM=$ac_cv_prog_NM
2860 if test -n "$NM"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2862 $as_echo "$NM" >&6; }
2863 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2870 if test -z "$ac_cv_prog_NM"; then
2871 ac_ct_NM=$NM
2872 # Extract the first word of "nm", so it can be a program name with args.
2873 set dummy nm; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 if test -n "$ac_ct_NM"; then
2880 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_ac_ct_NM="nm"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2893 done
2894 done
2895 IFS=$as_save_IFS
2899 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2900 if test -n "$ac_ct_NM"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2902 $as_echo "$ac_ct_NM" >&6; }
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2908 if test "x$ac_ct_NM" = x; then
2909 NM=""
2910 else
2911 case $cross_compiling:$ac_tool_warned in
2912 yes:)
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2915 ac_tool_warned=yes ;;
2916 esac
2917 NM=$ac_ct_NM
2919 else
2920 NM="$ac_cv_prog_NM"
2923 if test -n "$ac_tool_prefix"; then
2924 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2925 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_RANLIB+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$RANLIB"; then
2932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2945 done
2946 done
2947 IFS=$as_save_IFS
2951 RANLIB=$ac_cv_prog_RANLIB
2952 if test -n "$RANLIB"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2954 $as_echo "$RANLIB" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2962 if test -z "$ac_cv_prog_RANLIB"; then
2963 ac_ct_RANLIB=$RANLIB
2964 # Extract the first word of "ranlib", so it can be a program name with args.
2965 set dummy ranlib; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test -n "$ac_ct_RANLIB"; then
2972 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_ac_ct_RANLIB="ranlib"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 break 2
2985 done
2986 done
2987 IFS=$as_save_IFS
2991 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2992 if test -n "$ac_ct_RANLIB"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2994 $as_echo "$ac_ct_RANLIB" >&6; }
2995 else
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
3000 if test "x$ac_ct_RANLIB" = x; then
3001 RANLIB=":"
3002 else
3003 case $cross_compiling:$ac_tool_warned in
3004 yes:)
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3007 ac_tool_warned=yes ;;
3008 esac
3009 RANLIB=$ac_ct_RANLIB
3011 else
3012 RANLIB="$ac_cv_prog_RANLIB"
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}strip; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_STRIP+set}" = set; then :
3021 $as_echo_n "(cached) " >&6
3022 else
3023 if test -n "$STRIP"; then
3024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3037 done
3038 done
3039 IFS=$as_save_IFS
3043 STRIP=$ac_cv_prog_STRIP
3044 if test -n "$STRIP"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3046 $as_echo "$STRIP" >&6; }
3047 else
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3054 if test -z "$ac_cv_prog_STRIP"; then
3055 ac_ct_STRIP=$STRIP
3056 # Extract the first word of "strip", so it can be a program name with args.
3057 set dummy strip; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 if test -n "$ac_ct_STRIP"; then
3064 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_ac_ct_STRIP="strip"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3077 done
3078 done
3079 IFS=$as_save_IFS
3083 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3084 if test -n "$ac_ct_STRIP"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3086 $as_echo "$ac_ct_STRIP" >&6; }
3087 else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3092 if test "x$ac_ct_STRIP" = x; then
3093 STRIP=":"
3094 else
3095 case $cross_compiling:$ac_tool_warned in
3096 yes:)
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3099 ac_tool_warned=yes ;;
3100 esac
3101 STRIP=$ac_ct_STRIP
3103 else
3104 STRIP="$ac_cv_prog_STRIP"
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3108 $as_echo_n "checking whether ln -s works... " >&6; }
3109 LN_S=$as_ln_s
3110 if test "$LN_S" = "ln -s"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112 $as_echo "yes" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3115 $as_echo "no, using $LN_S" >&6; }
3120 ac_ext=c
3121 ac_cpp='$CPP $CPPFLAGS'
3122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if test "${ac_cv_prog_CC+set}" = set; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC="$CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3147 done
3148 done
3149 IFS=$as_save_IFS
3153 CC=$ac_cv_prog_CC
3154 if test -n "$CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3164 if test -z "$ac_cv_prog_CC"; then
3165 ac_ct_CC=$CC
3166 # Extract the first word of "gcc", so it can be a program name with args.
3167 set dummy gcc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 if test -n "$ac_ct_CC"; then
3174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_prog_ac_ct_CC="gcc"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3187 done
3188 done
3189 IFS=$as_save_IFS
3193 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3194 if test -n "$ac_ct_CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3196 $as_echo "$ac_ct_CC" >&6; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3202 if test "x$ac_ct_CC" = x; then
3203 CC=""
3204 else
3205 case $cross_compiling:$ac_tool_warned in
3206 yes:)
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3210 esac
3211 CC=$ac_ct_CC
3213 else
3214 CC="$ac_cv_prog_CC"
3217 if test -z "$CC"; then
3218 if test -n "$ac_tool_prefix"; then
3219 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3220 set dummy ${ac_tool_prefix}cc; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if test "${ac_cv_prog_CC+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_CC="${ac_tool_prefix}cc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3240 done
3241 done
3242 IFS=$as_save_IFS
3246 CC=$ac_cv_prog_CC
3247 if test -n "$CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3258 if test -z "$CC"; then
3259 # Extract the first word of "cc", so it can be a program name with args.
3260 set dummy cc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if test "${ac_cv_prog_CC+set}" = set; then :
3264 $as_echo_n "(cached) " >&6
3265 else
3266 if test -n "$CC"; then
3267 ac_cv_prog_CC="$CC" # Let the user override the test.
3268 else
3269 ac_prog_rejected=no
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3273 IFS=$as_save_IFS
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3278 ac_prog_rejected=yes
3279 continue
3281 ac_cv_prog_CC="cc"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3285 done
3286 done
3287 IFS=$as_save_IFS
3289 if test $ac_prog_rejected = yes; then
3290 # We found a bogon in the path, so make sure we never use it.
3291 set dummy $ac_cv_prog_CC
3292 shift
3293 if test $# != 0; then
3294 # We chose a different compiler from the bogus one.
3295 # However, it has the same basename, so the bogon will be chosen
3296 # first if we set CC to just the basename; use the full file name.
3297 shift
3298 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3303 CC=$ac_cv_prog_CC
3304 if test -n "$CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306 $as_echo "$CC" >&6; }
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3314 if test -z "$CC"; then
3315 if test -n "$ac_tool_prefix"; then
3316 for ac_prog in cl.exe
3318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if test "${ac_cv_prog_CC+set}" = set; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 if test -n "$CC"; then
3326 ac_cv_prog_CC="$CC" # Let the user override the test.
3327 else
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3331 IFS=$as_save_IFS
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3339 done
3340 done
3341 IFS=$as_save_IFS
3345 CC=$ac_cv_prog_CC
3346 if test -n "$CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348 $as_echo "$CC" >&6; }
3349 else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3355 test -n "$CC" && break
3356 done
3358 if test -z "$CC"; then
3359 ac_ct_CC=$CC
3360 for ac_prog in cl.exe
3362 # Extract the first word of "$ac_prog", so it can be a program name with args.
3363 set dummy $ac_prog; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 if test -n "$ac_ct_CC"; then
3370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_ac_ct_CC="$ac_prog"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3383 done
3384 done
3385 IFS=$as_save_IFS
3389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3390 if test -n "$ac_ct_CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3392 $as_echo "$ac_ct_CC" >&6; }
3393 else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3399 test -n "$ac_ct_CC" && break
3400 done
3402 if test "x$ac_ct_CC" = x; then
3403 CC=""
3404 else
3405 case $cross_compiling:$ac_tool_warned in
3406 yes:)
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409 ac_tool_warned=yes ;;
3410 esac
3411 CC=$ac_ct_CC
3418 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error "no acceptable C compiler found in \$PATH
3421 See \`config.log' for more details." "$LINENO" 5; }
3423 # Provide some information about the compiler.
3424 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3425 set X $ac_compile
3426 ac_compiler=$2
3427 for ac_option in --version -v -V -qversion; do
3428 { { ac_try="$ac_compiler $ac_option >&5"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3436 ac_status=$?
3437 if test -s conftest.err; then
3438 sed '10a\
3439 ... rest of stderr output deleted ...
3440 10q' conftest.err >conftest.er1
3441 cat conftest.er1 >&5
3442 rm -f conftest.er1 conftest.err
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }
3446 done
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3452 main ()
3456 return 0;
3458 _ACEOF
3459 # FIXME: Cleanup?
3460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3461 (eval $ac_link) 2>&5
3462 ac_status=$?
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; then :
3465 gcc_no_link=no
3466 else
3467 gcc_no_link=yes
3469 if test x$gcc_no_link = xyes; then
3470 # Setting cross_compile will disable run tests; it will
3471 # also disable AC_CHECK_FILE but that's generally
3472 # correct if we can't link.
3473 cross_compiling=yes
3474 EXEEXT=
3475 else
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3480 main ()
3484 return 0;
3486 _ACEOF
3487 ac_clean_files_save=$ac_clean_files
3488 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3489 # Try to create an executable without -o first, disregard a.out.
3490 # It will help us diagnose broken compilers, and finding out an intuition
3491 # of exeext.
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3493 $as_echo_n "checking for C compiler default output file name... " >&6; }
3494 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3496 # The possible output files:
3497 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3499 ac_rmfiles=
3500 for ac_file in $ac_files
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3504 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3505 esac
3506 done
3507 rm -f $ac_rmfiles
3509 if { { ac_try="$ac_link_default"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_link_default") 2>&5
3517 ac_status=$?
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3521 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3522 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3523 # so that the user can short-circuit this test for compilers unknown to
3524 # Autoconf.
3525 for ac_file in $ac_files ''
3527 test -f "$ac_file" || continue
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3531 [ab].out )
3532 # We found the default executable, but exeext='' is most
3533 # certainly right.
3534 break;;
3535 *.* )
3536 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3537 then :; else
3538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540 # We set ac_cv_exeext here because the later test for it is not
3541 # safe: cross compilers may not add the suffix if given an `-o'
3542 # argument, so we may need to know it at that point already.
3543 # Even if this section looks crufty: it has the advantage of
3544 # actually working.
3545 break;;
3547 break;;
3548 esac
3549 done
3550 test "$ac_cv_exeext" = no && ac_cv_exeext=
3552 else
3553 ac_file=''
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 if test -z "$ac_file"; then :
3558 $as_echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 { as_fn_set_status 77
3564 as_fn_error "C compiler cannot create executables
3565 See \`config.log' for more details." "$LINENO" 5; }; }
3567 ac_exeext=$ac_cv_exeext
3569 # Check that the compiler produces executables we can run. If not, either
3570 # the compiler is broken, or we cross compile.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3572 $as_echo_n "checking whether the C compiler works... " >&6; }
3573 # If not cross compiling, check that we can run a simple program.
3574 if test "$cross_compiling" != yes; then
3575 if { ac_try='./$ac_file'
3576 { { case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582 (eval "$ac_try") 2>&5
3583 ac_status=$?
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }; }; then
3586 cross_compiling=no
3587 else
3588 if test "$cross_compiling" = maybe; then
3589 cross_compiling=yes
3590 else
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error "cannot run C compiled programs.
3594 If you meant to cross compile, use \`--host'.
3595 See \`config.log' for more details." "$LINENO" 5; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600 $as_echo "yes" >&6; }
3602 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3603 ac_clean_files=$ac_clean_files_save
3604 # Check that the compiler produces executables we can run. If not, either
3605 # the compiler is broken, or we cross compile.
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3607 $as_echo_n "checking whether we are cross compiling... " >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3609 $as_echo "$cross_compiling" >&6; }
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3612 $as_echo_n "checking for suffix of executables... " >&6; }
3613 if { { ac_try="$ac_link"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_link") 2>&5
3621 ac_status=$?
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3625 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3626 # work properly (i.e., refer to `conftest.exe'), while it won't with
3627 # `rm'.
3628 for ac_file in conftest.exe conftest conftest.*; do
3629 test -f "$ac_file" || continue
3630 case $ac_file in
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3632 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3633 break;;
3634 * ) break;;
3635 esac
3636 done
3637 else
3638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640 as_fn_error "cannot compute suffix of executables: cannot compile and link
3641 See \`config.log' for more details." "$LINENO" 5; }
3643 rm -f conftest$ac_cv_exeext
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3645 $as_echo "$ac_cv_exeext" >&6; }
3647 rm -f conftest.$ac_ext
3648 EXEEXT=$ac_cv_exeext
3649 ac_exeext=$EXEEXT
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3652 $as_echo_n "checking for suffix of object files... " >&6; }
3653 if test "${ac_cv_objext+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3660 main ()
3664 return 0;
3666 _ACEOF
3667 rm -f conftest.o conftest.obj
3668 if { { ac_try="$ac_compile"
3669 case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_compile") 2>&5
3676 ac_status=$?
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }; then :
3679 for ac_file in conftest.o conftest.obj conftest.*; do
3680 test -f "$ac_file" || continue;
3681 case $ac_file in
3682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3683 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3684 break;;
3685 esac
3686 done
3687 else
3688 $as_echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error "cannot compute suffix of object files: cannot compile
3694 See \`config.log' for more details." "$LINENO" 5; }
3696 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3699 $as_echo "$ac_cv_objext" >&6; }
3700 OBJEXT=$ac_cv_objext
3701 ac_objext=$OBJEXT
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3703 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3704 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3711 main ()
3713 #ifndef __GNUC__
3714 choke me
3715 #endif
3718 return 0;
3720 _ACEOF
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_compiler_gnu=yes
3723 else
3724 ac_compiler_gnu=no
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3731 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3732 if test $ac_compiler_gnu = yes; then
3733 GCC=yes
3734 else
3735 GCC=
3737 ac_test_CFLAGS=${CFLAGS+set}
3738 ac_save_CFLAGS=$CFLAGS
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3740 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3741 if test "${ac_cv_prog_cc_g+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
3743 else
3744 ac_save_c_werror_flag=$ac_c_werror_flag
3745 ac_c_werror_flag=yes
3746 ac_cv_prog_cc_g=no
3747 CFLAGS="-g"
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3752 main ()
3756 return 0;
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760 ac_cv_prog_cc_g=yes
3761 else
3762 CFLAGS=""
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3767 main ()
3771 return 0;
3773 _ACEOF
3774 if ac_fn_c_try_compile "$LINENO"; then :
3776 else
3777 ac_c_werror_flag=$ac_save_c_werror_flag
3778 CFLAGS="-g"
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3783 main ()
3787 return 0;
3789 _ACEOF
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791 ac_cv_prog_cc_g=yes
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 ac_c_werror_flag=$ac_save_c_werror_flag
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3801 $as_echo "$ac_cv_prog_cc_g" >&6; }
3802 if test "$ac_test_CFLAGS" = set; then
3803 CFLAGS=$ac_save_CFLAGS
3804 elif test $ac_cv_prog_cc_g = yes; then
3805 if test "$GCC" = yes; then
3806 CFLAGS="-g -O2"
3807 else
3808 CFLAGS="-g"
3810 else
3811 if test "$GCC" = yes; then
3812 CFLAGS="-O2"
3813 else
3814 CFLAGS=
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3818 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3819 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3820 $as_echo_n "(cached) " >&6
3821 else
3822 ac_cv_prog_cc_c89=no
3823 ac_save_CC=$CC
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826 #include <stdarg.h>
3827 #include <stdio.h>
3828 #include <sys/types.h>
3829 #include <sys/stat.h>
3830 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3831 struct buf { int x; };
3832 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3833 static char *e (p, i)
3834 char **p;
3835 int i;
3837 return p[i];
3839 static char *f (char * (*g) (char **, int), char **p, ...)
3841 char *s;
3842 va_list v;
3843 va_start (v,p);
3844 s = g (p, va_arg (v,int));
3845 va_end (v);
3846 return s;
3849 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3850 function prototypes and stuff, but not '\xHH' hex character constants.
3851 These don't provoke an error unfortunately, instead are silently treated
3852 as 'x'. The following induces an error, until -std is added to get
3853 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3854 array size at least. It's necessary to write '\x00'==0 to get something
3855 that's true only with -std. */
3856 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3858 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3859 inside strings and character constants. */
3860 #define FOO(x) 'x'
3861 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3863 int test (int i, double x);
3864 struct s1 {int (*f) (int a);};
3865 struct s2 {int (*f) (double a);};
3866 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3867 int argc;
3868 char **argv;
3870 main ()
3872 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3874 return 0;
3876 _ACEOF
3877 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3878 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3880 CC="$ac_save_CC $ac_arg"
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882 ac_cv_prog_cc_c89=$ac_arg
3884 rm -f core conftest.err conftest.$ac_objext
3885 test "x$ac_cv_prog_cc_c89" != "xno" && break
3886 done
3887 rm -f conftest.$ac_ext
3888 CC=$ac_save_CC
3891 # AC_CACHE_VAL
3892 case "x$ac_cv_prog_cc_c89" in
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3895 $as_echo "none needed" >&6; } ;;
3896 xno)
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3898 $as_echo "unsupported" >&6; } ;;
3900 CC="$CC $ac_cv_prog_cc_c89"
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3902 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3903 esac
3904 if test "x$ac_cv_prog_cc_c89" != xno; then :
3908 ac_ext=c
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3920 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3921 # On Suns, sometimes $CPP names a directory.
3922 if test -n "$CPP" && test -d "$CPP"; then
3923 CPP=
3925 if test -z "$CPP"; then
3926 if test "${ac_cv_prog_CPP+set}" = set; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 # Double quotes because CPP needs to be expanded
3930 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3932 ac_preproc_ok=false
3933 for ac_c_preproc_warn_flag in '' yes
3935 # Use a header file that comes with gcc, so configuring glibc
3936 # with a fresh cross-compiler works.
3937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3938 # <limits.h> exists even on freestanding compilers.
3939 # On the NeXT, cc -E runs the code through the compiler's parser,
3940 # not just through cpp. "Syntax error" is here to catch this case.
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943 #ifdef __STDC__
3944 # include <limits.h>
3945 #else
3946 # include <assert.h>
3947 #endif
3948 Syntax error
3949 _ACEOF
3950 if ac_fn_c_try_cpp "$LINENO"; then :
3952 else
3953 # Broken: fails on valid input.
3954 continue
3956 rm -f conftest.err conftest.$ac_ext
3958 # OK, works on sane cases. Now check whether nonexistent headers
3959 # can be detected and how.
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3962 #include <ac_nonexistent.h>
3963 _ACEOF
3964 if ac_fn_c_try_cpp "$LINENO"; then :
3965 # Broken: success on invalid input.
3966 continue
3967 else
3968 # Passes both tests.
3969 ac_preproc_ok=:
3970 break
3972 rm -f conftest.err conftest.$ac_ext
3974 done
3975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976 rm -f conftest.err conftest.$ac_ext
3977 if $ac_preproc_ok; then :
3978 break
3981 done
3982 ac_cv_prog_CPP=$CPP
3985 CPP=$ac_cv_prog_CPP
3986 else
3987 ac_cv_prog_CPP=$CPP
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3990 $as_echo "$CPP" >&6; }
3991 ac_preproc_ok=false
3992 for ac_c_preproc_warn_flag in '' yes
3994 # Use a header file that comes with gcc, so configuring glibc
3995 # with a fresh cross-compiler works.
3996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3997 # <limits.h> exists even on freestanding compilers.
3998 # On the NeXT, cc -E runs the code through the compiler's parser,
3999 # not just through cpp. "Syntax error" is here to catch this case.
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #ifdef __STDC__
4003 # include <limits.h>
4004 #else
4005 # include <assert.h>
4006 #endif
4007 Syntax error
4008 _ACEOF
4009 if ac_fn_c_try_cpp "$LINENO"; then :
4011 else
4012 # Broken: fails on valid input.
4013 continue
4015 rm -f conftest.err conftest.$ac_ext
4017 # OK, works on sane cases. Now check whether nonexistent headers
4018 # can be detected and how.
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4021 #include <ac_nonexistent.h>
4022 _ACEOF
4023 if ac_fn_c_try_cpp "$LINENO"; then :
4024 # Broken: success on invalid input.
4025 continue
4026 else
4027 # Passes both tests.
4028 ac_preproc_ok=:
4029 break
4031 rm -f conftest.err conftest.$ac_ext
4033 done
4034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4035 rm -f conftest.err conftest.$ac_ext
4036 if $ac_preproc_ok; then :
4038 else
4039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4042 See \`config.log' for more details." "$LINENO" 5; }
4045 ac_ext=c
4046 ac_cpp='$CPP $CPPFLAGS'
4047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 ac_c_preproc_warn_flag=yes
4056 # The cast to long int works around a bug in the HP C Compiler
4057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4059 # This bug is HP SR number 8606223364.
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
4061 $as_echo_n "checking size of double... " >&6; }
4062 if test "${ac_cv_sizeof_double+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
4067 else
4068 if test "$ac_cv_type_double" = yes; then
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 { as_fn_set_status 77
4072 as_fn_error "cannot compute sizeof (double)
4073 See \`config.log' for more details." "$LINENO" 5; }; }
4074 else
4075 ac_cv_sizeof_double=0
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
4081 $as_echo "$ac_cv_sizeof_double" >&6; }
4085 cat >>confdefs.h <<_ACEOF
4086 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4087 _ACEOF
4090 # The cast to long int works around a bug in the HP C Compiler
4091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4093 # This bug is HP SR number 8606223364.
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4095 $as_echo_n "checking size of long double... " >&6; }
4096 if test "${ac_cv_sizeof_long_double+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4101 else
4102 if test "$ac_cv_type_long_double" = yes; then
4103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105 { as_fn_set_status 77
4106 as_fn_error "cannot compute sizeof (long double)
4107 See \`config.log' for more details." "$LINENO" 5; }; }
4108 else
4109 ac_cv_sizeof_long_double=0
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4115 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4119 cat >>confdefs.h <<_ACEOF
4120 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4121 _ACEOF
4124 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4125 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4130 for ac_header in inttypes.h stdint.h stdlib.h ftw.h \
4131 unistd.h sys/stat.h sys/types.h \
4132 string.h strings.h memory.h
4133 do :
4134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4135 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
4136 eval as_val=\$$as_ac_Header
4137 if test "x$as_val" = x""yes; then :
4138 cat >>confdefs.h <<_ACEOF
4139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4140 _ACEOF
4143 done
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4146 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4147 if test "${ac_cv_path_GREP+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 if test -z "$GREP"; then
4151 ac_path_GREP_found=false
4152 # Loop through the user's path and test for each of PROGNAME-LIST
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156 IFS=$as_save_IFS
4157 test -z "$as_dir" && as_dir=.
4158 for ac_prog in grep ggrep; do
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4161 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4162 # Check for GNU ac_path_GREP and select it if it is found.
4163 # Check for GNU $ac_path_GREP
4164 case `"$ac_path_GREP" --version 2>&1` in
4165 *GNU*)
4166 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4168 ac_count=0
4169 $as_echo_n 0123456789 >"conftest.in"
4170 while :
4172 cat "conftest.in" "conftest.in" >"conftest.tmp"
4173 mv "conftest.tmp" "conftest.in"
4174 cp "conftest.in" "conftest.nl"
4175 $as_echo 'GREP' >> "conftest.nl"
4176 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4178 as_fn_arith $ac_count + 1 && ac_count=$as_val
4179 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4180 # Best one so far, save it but keep looking for a better one
4181 ac_cv_path_GREP="$ac_path_GREP"
4182 ac_path_GREP_max=$ac_count
4184 # 10*(2^10) chars as input seems more than enough
4185 test $ac_count -gt 10 && break
4186 done
4187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4188 esac
4190 $ac_path_GREP_found && break 3
4191 done
4192 done
4193 done
4194 IFS=$as_save_IFS
4195 if test -z "$ac_cv_path_GREP"; then
4196 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198 else
4199 ac_cv_path_GREP=$GREP
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4204 $as_echo "$ac_cv_path_GREP" >&6; }
4205 GREP="$ac_cv_path_GREP"
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4209 $as_echo_n "checking for egrep... " >&6; }
4210 if test "${ac_cv_path_EGREP+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4214 then ac_cv_path_EGREP="$GREP -E"
4215 else
4216 if test -z "$EGREP"; then
4217 ac_path_EGREP_found=false
4218 # Loop through the user's path and test for each of PROGNAME-LIST
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_prog in egrep; do
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4227 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4228 # Check for GNU ac_path_EGREP and select it if it is found.
4229 # Check for GNU $ac_path_EGREP
4230 case `"$ac_path_EGREP" --version 2>&1` in
4231 *GNU*)
4232 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4234 ac_count=0
4235 $as_echo_n 0123456789 >"conftest.in"
4236 while :
4238 cat "conftest.in" "conftest.in" >"conftest.tmp"
4239 mv "conftest.tmp" "conftest.in"
4240 cp "conftest.in" "conftest.nl"
4241 $as_echo 'EGREP' >> "conftest.nl"
4242 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4244 as_fn_arith $ac_count + 1 && ac_count=$as_val
4245 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4246 # Best one so far, save it but keep looking for a better one
4247 ac_cv_path_EGREP="$ac_path_EGREP"
4248 ac_path_EGREP_max=$ac_count
4250 # 10*(2^10) chars as input seems more than enough
4251 test $ac_count -gt 10 && break
4252 done
4253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4254 esac
4256 $ac_path_EGREP_found && break 3
4257 done
4258 done
4259 done
4260 IFS=$as_save_IFS
4261 if test -z "$ac_cv_path_EGREP"; then
4262 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264 else
4265 ac_cv_path_EGREP=$EGREP
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4271 $as_echo "$ac_cv_path_EGREP" >&6; }
4272 EGREP="$ac_cv_path_EGREP"
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4276 $as_echo_n "checking for ANSI C header files... " >&6; }
4277 if test "${ac_cv_header_stdc+set}" = set; then :
4278 $as_echo_n "(cached) " >&6
4279 else
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #include <stdlib.h>
4283 #include <stdarg.h>
4284 #include <string.h>
4285 #include <float.h>
4288 main ()
4292 return 0;
4294 _ACEOF
4295 if ac_fn_c_try_compile "$LINENO"; then :
4296 ac_cv_header_stdc=yes
4297 else
4298 ac_cv_header_stdc=no
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 if test $ac_cv_header_stdc = yes; then
4303 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306 #include <string.h>
4308 _ACEOF
4309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4310 $EGREP "memchr" >/dev/null 2>&1; then :
4312 else
4313 ac_cv_header_stdc=no
4315 rm -f conftest*
4319 if test $ac_cv_header_stdc = yes; then
4320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4323 #include <stdlib.h>
4325 _ACEOF
4326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4327 $EGREP "free" >/dev/null 2>&1; then :
4329 else
4330 ac_cv_header_stdc=no
4332 rm -f conftest*
4336 if test $ac_cv_header_stdc = yes; then
4337 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4338 if test "$cross_compiling" = yes; then :
4340 else
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343 #include <ctype.h>
4344 #include <stdlib.h>
4345 #if ((' ' & 0x0FF) == 0x020)
4346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4348 #else
4349 # define ISLOWER(c) \
4350 (('a' <= (c) && (c) <= 'i') \
4351 || ('j' <= (c) && (c) <= 'r') \
4352 || ('s' <= (c) && (c) <= 'z'))
4353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4354 #endif
4356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4358 main ()
4360 int i;
4361 for (i = 0; i < 256; i++)
4362 if (XOR (islower (i), ISLOWER (i))
4363 || toupper (i) != TOUPPER (i))
4364 return 2;
4365 return 0;
4367 _ACEOF
4368 if ac_fn_c_try_run "$LINENO"; then :
4370 else
4371 ac_cv_header_stdc=no
4373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4374 conftest.$ac_objext conftest.beam conftest.$ac_ext
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4380 $as_echo "$ac_cv_header_stdc" >&6; }
4381 if test $ac_cv_header_stdc = yes; then
4383 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4388 # Check for decimal float support.
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4390 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4391 if test "${libgcc_cv_dfp+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4397 #include <fenv.h>
4400 main ()
4403 _Decimal32 x;
4404 int fe_except =
4405 FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
4408 return 0;
4410 _ACEOF
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412 libgcc_cv_dfp=yes
4413 else
4414 libgcc_cv_dfp=no
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4419 $as_echo "$libgcc_cv_dfp" >&6; }
4420 decimal_float=$libgcc_cv_dfp
4424 # Check whether --enable-decimal-float was given.
4425 if test "${enable_decimal_float+set}" = set; then :
4426 enableval=$enable_decimal_float;
4427 case $enable_decimal_float in
4428 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4429 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4430 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4431 esac
4433 else
4435 case $host in
4436 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4437 i?86*-*-elfiamcu | i?86*-*-gnu* | \
4438 i?86*-*-mingw* | x86_64*-*-mingw* | \
4439 i?86*-*-cygwin* | x86_64*-*-cygwin*)
4440 enable_decimal_float=yes
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4444 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4445 enable_decimal_float=no
4447 esac
4452 # x86's use BID format instead of DPD
4453 case x$enable_decimal_float in
4454 xyes)
4455 case $host in
4456 i?86*-*-* | x86_64*-*-*)
4457 enable_decimal_float=bid
4460 enable_decimal_float=dpd
4462 esac
4463 default_decimal_float=$enable_decimal_float
4465 xno)
4466 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4467 # dependency on libdecnumber.
4468 default_decimal_float=dpd
4470 esac
4475 # Check for fixed-point support.
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4477 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4478 if test "${libgcc_cv_fixed_point+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 _Sat _Fract x;
4484 _ACEOF
4485 if ac_fn_c_try_compile "$LINENO"; then :
4486 libgcc_cv_fixed_point=yes
4487 else
4488 libgcc_cv_fixed_point=no
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4493 $as_echo "$libgcc_cv_fixed_point" >&6; }
4494 fixed_point=$libgcc_cv_fixed_point
4497 # For platforms with the unwind ABI which includes an unwind library,
4498 # libunwind, we can choose to use the system libunwind.
4499 # config.gcc also contains tests of with_system_libunwind.
4502 # Check whether --with-system-libunwind was given.
4503 if test "${with_system_libunwind+set}" = set; then :
4504 withval=$with_system_libunwind;
4507 # If system-libunwind was not specifically set, pick a default setting.
4508 if test x$with_system_libunwind = x; then
4509 case ${target} in
4510 ia64-*-hpux*) with_system_libunwind=yes ;;
4511 *) with_system_libunwind=no ;;
4512 esac
4514 # Based on system-libunwind and target, do we have ipinfo?
4515 if test x$with_system_libunwind = xyes; then
4516 case ${target} in
4517 ia64-*-*) have_unwind_getipinfo=no ;;
4518 *) have_unwind_getipinfo=yes ;;
4519 esac
4520 else
4521 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4523 case ${target} in
4524 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4525 *) have_unwind_getipinfo=yes ;;
4526 esac
4530 if test x$have_unwind_getipinfo = xyes; then
4532 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4537 # Check if the compiler is configured for setjmp/longjmp exceptions.
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5
4539 $as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; }
4540 if test "${ac_cv_sjlj_exceptions+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 #ifdef __USING_SJLJ_EXCEPTIONS__
4546 this will fail
4547 #endif
4549 main ()
4551 int i;
4553 return 0;
4555 _ACEOF
4556 if ac_fn_c_try_compile "$LINENO"; then :
4557 ac_cv_sjlj_exceptions=no
4558 else
4559 ac_cv_sjlj_exceptions=yes
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5
4564 $as_echo "$ac_cv_sjlj_exceptions" >&6; }
4566 # Check whether --enable-explicit-exception-frame-registration was given.
4567 if test "${enable_explicit_exception_frame_registration+set}" = set; then :
4568 enableval=$enable_explicit_exception_frame_registration;
4569 force_explicit_eh_registry=
4570 if test "$enable_explicit_exception_frame_registration" = yes; then
4571 if test $ac_cv_sjlj_exceptions = yes; then
4572 as_fn_error "Can't --enable-explicit-exception-frame-registration
4573 with setjmp/longjmp exceptions" "$LINENO" 5
4575 force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4583 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4584 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4588 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4589 acl_cv_prog_gnu_ld=yes
4590 else
4591 acl_cv_prog_gnu_ld=no
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4595 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4596 with_gnu_ld=$acl_cv_prog_gnu_ld
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4600 $as_echo_n "checking for thread model used by GCC... " >&6; }
4601 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
4603 $as_echo "$target_thread_file" >&6; }
4605 # Check for assembler CFI support.
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
4607 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
4608 if test "${libgcc_cv_cfi+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 asm("\n\
4614 .text\n\
4615 .cfi_startproc\n\
4616 .cfi_personality 0, symbol\n\
4617 .cfi_endproc");
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620 libgcc_cv_cfi=yes
4621 else
4622 libgcc_cv_cfi=no
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
4627 $as_echo "$libgcc_cv_cfi" >&6; }
4629 # Check 32bit or 64bit. In the case of MIPS, this really determines the
4630 # word size rather than the address size.
4631 cat > conftest.c <<EOF
4632 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
4633 || defined(__mips64)
4634 host_address=64
4635 #else
4636 host_address=32
4637 #endif
4639 eval `${CC-cc} -E conftest.c | grep host_address=`
4640 rm -f conftest.c
4642 case ${host} in
4643 mips*-*-*)
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5
4645 $as_echo_n "checking whether the target is hard-float... " >&6; }
4646 if test "${libgcc_cv_mips_hard_float+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4651 #ifndef __mips_hard_float
4652 #error FOO
4653 #endif
4654 _ACEOF
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656 libgcc_cv_mips_hard_float=yes
4657 else
4658 libgcc_cv_mips_hard_float=no
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5
4663 $as_echo "$libgcc_cv_mips_hard_float" >&6; }
4664 esac
4666 case ${host} in
4667 *-*-solaris2*)
4668 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
4670 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
4671 if test "${libgcc_cv_solaris_crts+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 libgcc_cv_solaris_crts=no
4675 libgcc_sysroot="`${CC} -print-sysroot`"
4676 libgcc_libdir="$libgcc_sysroot/usr/lib"
4677 # At the time they were added, gcrt1.o became a symlink for backwards
4678 # compatibility on x86, while crt1.o was added on sparc, so check for that.
4679 case ${host} in
4680 i?86-*-solaris2* | x86_64-*-solaris2*)
4681 if test -h "$libgcc_libdir/gcrt1.o"; then libgcc_cv_solaris_crts=yes; fi
4683 sparc*-*-solaris2*)
4684 if test -f "$libgcc_libdir/crt1.o"; then libgcc_cv_solaris_crts=yes; fi
4686 esac
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_solaris_crts" >&5
4689 $as_echo "$libgcc_cv_solaris_crts" >&6; }
4690 if test $libgcc_cv_solaris_crts = yes; then
4692 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
4696 esac
4698 # Determine the version of glibc, if any, used on the target.
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
4700 $as_echo_n "checking for target glibc version... " >&6; }
4702 # Check whether --with-glibc-version was given.
4703 if test "${with_glibc_version+set}" = set; then :
4704 withval=$with_glibc_version;
4705 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
4706 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
4707 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
4708 else
4709 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
4711 else
4713 if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then :
4715 else
4716 glibc_version_major=0
4719 if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then :
4721 else
4722 glibc_version_minor=0
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
4728 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
4730 # Determine floating-point type for powerpc*-*-linux*.
4731 # Single-precision-only FPRs are not a supported configuration for
4732 # this target, so are not allowed for in this test.
4733 case ${host} in
4734 powerpc*-*-linux*)
4735 cat > conftest.c <<EOF
4736 #ifdef __powerpc64__
4737 ppc_fp_type=64
4738 #elif defined _SOFT_FLOAT
4739 ppc_fp_type=soft
4740 #elif defined _SOFT_DOUBLE
4741 ppc_fp_type=e500v1
4742 #elif defined __NO_FPRS__
4743 ppc_fp_type=e500v2
4744 #else
4745 ppc_fp_type=hard
4746 #endif
4748 eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
4749 rm -f conftest.c
4750 # glibc 2.19 and later provide all the soft-fp functions, with proper
4751 # interactions with <fenv.h> exception and rounding mode handling, so
4752 # make libgcc's versions into compat symbols if a recent enough glibc
4753 # version is being used.
4754 ppc_fp_compat=
4755 case ${ppc_fp_type} in
4756 soft|e500v1|e500v2)
4757 if test $glibc_version_major -gt 2 \
4758 || ( test $glibc_version_major -eq 2 \
4759 && test $glibc_version_minor -ge 19 ); then
4760 ppc_fp_compat="t-softfp-compat"
4763 esac
4765 esac
4767 case ${host} in
4768 # At present, we cannot turn -mfloat128 on via #pragma GCC target,
4769 # so just check if we have VSX (ISA 2.06) support to build the
4770 # software libraries, and whether the assembler can handle xsaddqp
4771 # for hardware support.
4772 powerpc*-*-linux*)
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 2.06 to build __float128 libraries" >&5
4774 $as_echo_n "checking for PowerPC ISA 2.06 to build __float128 libraries... " >&6; }
4775 if test "${libgcc_cv_powerpc_float128+set}" = set; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 #pragma GCC target ("vsx")
4781 vector double dadd (vector double a, vector double b) { return a + b; }
4782 _ACEOF
4783 if ac_fn_c_try_compile "$LINENO"; then :
4784 libgcc_cv_powerpc_float128=yes
4785 else
4786 libgcc_cv_powerpc_float128=no
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128" >&5
4791 $as_echo "$libgcc_cv_powerpc_float128" >&6; }
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.0 to build hardware __float128 libraries" >&5
4794 $as_echo_n "checking for PowerPC ISA 3.0 to build hardware __float128 libraries... " >&6; }
4795 if test "${libgcc_cv_powerpc_float128_hw+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4800 #pragma GCC target ("vsx,power9-vector")
4801 #include <sys/auxv.h>
4802 #ifndef AT_PLATFORM
4803 #error "AT_PLATFORM is not defined"
4804 #endif
4805 vector unsigned char (vector unsigned char a, vector unsigned char b)
4807 vector unsigned char ret;
4808 __asm__ ("xsaddqp %0,%1,%2" : "=v" (ret) : "v" (a), "v" (b));
4809 return ret;
4811 void *add_resolver (void) { return (void *) add; }
4812 __float128 add_ifunc (__float128, __float128)
4813 __attribute__ ((__ifunc__ ("add_resolver")));
4814 _ACEOF
4815 if ac_fn_c_try_compile "$LINENO"; then :
4816 libgcc_cv_powerpc_float128_hw=yes
4817 else
4818 libgcc_cv_powerpc_float128_hw=no
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128_hw" >&5
4823 $as_echo "$libgcc_cv_powerpc_float128_hw" >&6; }
4824 esac
4826 # Collect host-machine-specific information.
4827 . ${srcdir}/config.host
4829 # Used for constructing correct paths for offload compilers.
4830 accel_dir_suffix=
4831 real_host_noncanonical=${host_noncanonical}
4832 if test x"$enable_as_accelerator_for" != x; then
4833 accel_dir_suffix=/accel/${target_noncanonical}
4834 real_host_noncanonical=${enable_as_accelerator_for}
4839 if test x"$enable_offload_targets" != x; then
4840 extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o crtoffloadtable.o"
4843 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
4844 # This is after config.host so we can augment tmake_file.
4845 # Link with -nostartfiles -nodefaultlibs since neither are present while
4846 # building libgcc.
4847 case ${host} in
4848 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
4849 cat > conftest.s <<EOF
4850 .section .eh_frame,"a",@unwind
4851 .zero 4
4852 .section .jcr,"aw",@progbits
4853 .zero 8
4855 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
4856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4857 (eval $ac_try) 2>&5
4858 ac_status=$?
4859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4860 test $ac_status = 0; }; }; then
4861 tmake_file="${tmake_file} i386/t-crtstuff"
4864 esac
4866 # Check if xtensa target is configured for windowed ABI and thus needs to use
4867 # custom unwind code.
4868 # This is after config.host so we can augment tmake_file.
4869 case ${host} in
4870 xtensa*-*)
4871 cat > conftest.c <<EOF
4872 #ifdef __XTENSA_CALL0_ABI__
4873 #error
4874 #endif
4876 if { ac_try='${CC-cc} -E -o conftest.i conftest.c 1>&5'
4877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4881 test $ac_status = 0; }; }; then
4882 tmake_file="${tmake_file} xtensa/t-windowed"
4885 esac
4887 # Check for visibility support. This is after config.host so that
4888 # we can check for asm_hidden_op.
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
4890 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
4891 if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4895 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
4896 libgcc_cv_hidden_visibility_attribute=no
4897 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4902 test $ac_status = 0; }; }; then
4903 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
4904 libgcc_cv_hidden_visibility_attribute=yes
4907 rm -f conftest.*
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
4911 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
4913 if test $libgcc_cv_hidden_visibility_attribute = yes; then
4914 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
4915 else
4916 vis_hide=
4920 # See if we have thread-local storage. We can only test assembler
4921 # since link-time and run-time tests require the newly built
4922 # gcc, which can't be used to build executable due to that libgcc
4923 # is yet to be built here.
4925 # Check whether --enable-tls was given.
4926 if test "${enable_tls+set}" = set; then :
4927 enableval=$enable_tls;
4928 case "$enableval" in
4929 yes|no) ;;
4930 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
4931 esac
4933 else
4934 enable_tls=yes
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
4939 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
4940 if test "${gcc_cv_have_cc_tls+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946 __thread int a; int b; int main() { return a = b; }
4947 _ACEOF
4948 if ac_fn_c_try_compile "$LINENO"; then :
4949 gcc_cv_have_cc_tls=yes
4950 else
4951 gcc_cv_have_cc_tls=no
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
4957 $as_echo "$gcc_cv_have_cc_tls" >&6; }
4958 set_have_cc_tls=
4959 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
4960 set_have_cc_tls="-DHAVE_CC_TLS"
4964 # See if we have emulated thread-local storage.
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
4967 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
4968 if test "${gcc_cv_use_emutls+set}" = set; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4972 gcc_cv_use_emutls=no
4973 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
4974 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
4975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4979 test $ac_status = 0; }; }; then
4980 if grep __emutls_get_address conftest.s > /dev/null; then
4981 gcc_cv_use_emutls=yes
4984 rm -f conftest.*
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
4988 $as_echo "$gcc_cv_use_emutls" >&6; }
4989 if test "$gcc_cv_use_emutls" = "yes" ; then
4991 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
4994 set_use_emutls=
4995 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
4996 set_use_emutls="-DUSE_EMUTLS"
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
5001 $as_echo_n "checking for init priority support... " >&6; }
5002 if test "${libgcc_cv_init_priority+set}" = set; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5010 main ()
5012 void ip (void) __attribute__ ((constructor (1)));
5014 return 0;
5016 _ACEOF
5017 if ac_fn_c_try_compile "$LINENO"; then :
5018 libgcc_cv_init_priority=yes
5019 else
5020 libgcc_cv_init_priority=no
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
5025 $as_echo "$libgcc_cv_init_priority" >&6; }
5026 if test $libgcc_cv_init_priority = yes; then
5028 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
5032 # Conditionalize the sfp-machine.h header for this target machine.
5033 if test -z "${sfp_machine_header}"; then
5034 sfp_machine_header=$cpu_type/sfp-machine.h
5035 if test -f ${srcdir}/config/${sfp_machine_header}; then
5037 else
5038 sfp_machine_header=no-sfp-machine.h
5043 # Conditionalize the makefile for this target machine.
5044 tmake_file_=
5045 for f in ${tmake_file}
5047 if test -f ${srcdir}/config/$f
5048 then
5049 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
5051 done
5052 tmake_file="${tmake_file_}"
5055 # Likewise export definitions for libgcc_tm.h
5056 tm_file_=
5057 for f in ${tm_file}
5059 tm_file_="${tm_file_} \$(srcdir)/config/$f"
5060 done
5061 tm_file="${tm_file_}"
5065 # Map from thread model to thread header.
5067 case $target_thread_file in
5068 aix) thread_header=config/rs6000/gthr-aix.h ;;
5069 dce) thread_header=config/pa/gthr-dce.h ;;
5070 lynx) thread_header=config/gthr-lynx.h ;;
5071 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
5072 posix) thread_header=gthr-posix.h ;;
5073 rtems) thread_header=config/gthr-rtems.h ;;
5074 single) thread_header=gthr-single.h ;;
5075 tpf) thread_header=config/s390/gthr-tpf.h ;;
5076 vxworks) thread_header=config/gthr-vxworks.h ;;
5077 win32) thread_header=config/i386/gthr-win32.h ;;
5078 esac
5082 # Substitute configuration variables
5092 # We need multilib support.
5093 ac_config_files="$ac_config_files Makefile"
5095 ac_config_commands="$ac_config_commands default"
5097 cat >confcache <<\_ACEOF
5098 # This file is a shell script that caches the results of configure
5099 # tests run on this system so they can be shared between configure
5100 # scripts and configure runs, see configure's option --config-cache.
5101 # It is not useful on other systems. If it contains results you don't
5102 # want to keep, you may remove or edit it.
5104 # config.status only pays attention to the cache file if you give it
5105 # the --recheck option to rerun configure.
5107 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5109 # following values.
5111 _ACEOF
5113 # The following way of writing the cache mishandles newlines in values,
5114 # but we know of no workaround that is simple, portable, and efficient.
5115 # So, we kill variables containing newlines.
5116 # Ultrix sh set writes to stderr and can't be redirected directly,
5117 # and sets the high bit in the cache file unless we assign to the vars.
5119 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5120 eval ac_val=\$$ac_var
5121 case $ac_val in #(
5122 *${as_nl}*)
5123 case $ac_var in #(
5124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5126 esac
5127 case $ac_var in #(
5128 _ | IFS | as_nl) ;; #(
5129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5130 *) { eval $ac_var=; unset $ac_var;} ;;
5131 esac ;;
5132 esac
5133 done
5135 (set) 2>&1 |
5136 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5137 *${as_nl}ac_space=\ *)
5138 # `set' does not quote correctly, so add quotes: double-quote
5139 # substitution turns \\\\ into \\, and sed turns \\ into \.
5140 sed -n \
5141 "s/'/'\\\\''/g;
5142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5143 ;; #(
5145 # `set' quotes correctly as required by POSIX, so do not add quotes.
5146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5148 esac |
5149 sort
5151 sed '
5152 /^ac_cv_env_/b end
5153 t clear
5154 :clear
5155 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5156 t end
5157 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5158 :end' >>confcache
5159 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5160 if test -w "$cache_file"; then
5161 test "x$cache_file" != "x/dev/null" &&
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5163 $as_echo "$as_me: updating cache $cache_file" >&6;}
5164 cat confcache >$cache_file
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5167 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5170 rm -f confcache
5172 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5173 # Let make expand exec_prefix.
5174 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5176 DEFS=-DHAVE_CONFIG_H
5178 ac_libobjs=
5179 ac_ltlibobjs=
5180 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5181 # 1. Remove the extension, and $U if already installed.
5182 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5183 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5184 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5185 # will be set to the directory where LIBOBJS objects are built.
5186 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5187 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5188 done
5189 LIBOBJS=$ac_libobjs
5191 LTLIBOBJS=$ac_ltlibobjs
5195 : ${CONFIG_STATUS=./config.status}
5196 ac_write_fail=0
5197 ac_clean_files_save=$ac_clean_files
5198 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5200 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5201 as_write_fail=0
5202 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5203 #! $SHELL
5204 # Generated by $as_me.
5205 # Run this file to recreate the current configuration.
5206 # Compiler output produced by configure, useful for debugging
5207 # configure, is in config.log if it exists.
5209 debug=false
5210 ac_cs_recheck=false
5211 ac_cs_silent=false
5213 SHELL=\${CONFIG_SHELL-$SHELL}
5214 export SHELL
5215 _ASEOF
5216 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5217 ## -------------------- ##
5218 ## M4sh Initialization. ##
5219 ## -------------------- ##
5221 # Be more Bourne compatible
5222 DUALCASE=1; export DUALCASE # for MKS sh
5223 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5224 emulate sh
5225 NULLCMD=:
5226 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5227 # is contrary to our usage. Disable this feature.
5228 alias -g '${1+"$@"}'='"$@"'
5229 setopt NO_GLOB_SUBST
5230 else
5231 case `(set -o) 2>/dev/null` in #(
5232 *posix*) :
5233 set -o posix ;; #(
5234 *) :
5236 esac
5240 as_nl='
5242 export as_nl
5243 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5244 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5245 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5246 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5247 # Prefer a ksh shell builtin over an external printf program on Solaris,
5248 # but without wasting forks for bash or zsh.
5249 if test -z "$BASH_VERSION$ZSH_VERSION" \
5250 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5251 as_echo='print -r --'
5252 as_echo_n='print -rn --'
5253 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5254 as_echo='printf %s\n'
5255 as_echo_n='printf %s'
5256 else
5257 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5258 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5259 as_echo_n='/usr/ucb/echo -n'
5260 else
5261 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5262 as_echo_n_body='eval
5263 arg=$1;
5264 case $arg in #(
5265 *"$as_nl"*)
5266 expr "X$arg" : "X\\(.*\\)$as_nl";
5267 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5268 esac;
5269 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5271 export as_echo_n_body
5272 as_echo_n='sh -c $as_echo_n_body as_echo'
5274 export as_echo_body
5275 as_echo='sh -c $as_echo_body as_echo'
5278 # The user is always right.
5279 if test "${PATH_SEPARATOR+set}" != set; then
5280 PATH_SEPARATOR=:
5281 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5282 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5283 PATH_SEPARATOR=';'
5288 # IFS
5289 # We need space, tab and new line, in precisely that order. Quoting is
5290 # there to prevent editors from complaining about space-tab.
5291 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5292 # splitting by setting IFS to empty value.)
5293 IFS=" "" $as_nl"
5295 # Find who we are. Look in the path if we contain no directory separator.
5296 case $0 in #((
5297 *[\\/]* ) as_myself=$0 ;;
5298 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5304 done
5305 IFS=$as_save_IFS
5308 esac
5309 # We did not find ourselves, most probably we were run as `sh COMMAND'
5310 # in which case we are not to be found in the path.
5311 if test "x$as_myself" = x; then
5312 as_myself=$0
5314 if test ! -f "$as_myself"; then
5315 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5316 exit 1
5319 # Unset variables that we do not need and which cause bugs (e.g. in
5320 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5321 # suppresses any "Segmentation fault" message there. '((' could
5322 # trigger a bug in pdksh 5.2.14.
5323 for as_var in BASH_ENV ENV MAIL MAILPATH
5324 do eval test x\${$as_var+set} = xset \
5325 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5326 done
5327 PS1='$ '
5328 PS2='> '
5329 PS4='+ '
5331 # NLS nuisances.
5332 LC_ALL=C
5333 export LC_ALL
5334 LANGUAGE=C
5335 export LANGUAGE
5337 # CDPATH.
5338 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5341 # as_fn_error ERROR [LINENO LOG_FD]
5342 # ---------------------------------
5343 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5344 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5345 # script with status $?, using 1 if that was 0.
5346 as_fn_error ()
5348 as_status=$?; test $as_status -eq 0 && as_status=1
5349 if test "$3"; then
5350 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5351 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5353 $as_echo "$as_me: error: $1" >&2
5354 as_fn_exit $as_status
5355 } # as_fn_error
5358 # as_fn_set_status STATUS
5359 # -----------------------
5360 # Set $? to STATUS, without forking.
5361 as_fn_set_status ()
5363 return $1
5364 } # as_fn_set_status
5366 # as_fn_exit STATUS
5367 # -----------------
5368 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5369 as_fn_exit ()
5371 set +e
5372 as_fn_set_status $1
5373 exit $1
5374 } # as_fn_exit
5376 # as_fn_unset VAR
5377 # ---------------
5378 # Portably unset VAR.
5379 as_fn_unset ()
5381 { eval $1=; unset $1;}
5383 as_unset=as_fn_unset
5384 # as_fn_append VAR VALUE
5385 # ----------------------
5386 # Append the text in VALUE to the end of the definition contained in VAR. Take
5387 # advantage of any shell optimizations that allow amortized linear growth over
5388 # repeated appends, instead of the typical quadratic growth present in naive
5389 # implementations.
5390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5391 eval 'as_fn_append ()
5393 eval $1+=\$2
5395 else
5396 as_fn_append ()
5398 eval $1=\$$1\$2
5400 fi # as_fn_append
5402 # as_fn_arith ARG...
5403 # ------------------
5404 # Perform arithmetic evaluation on the ARGs, and store the result in the
5405 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5406 # must be portable across $(()) and expr.
5407 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5408 eval 'as_fn_arith ()
5410 as_val=$(( $* ))
5412 else
5413 as_fn_arith ()
5415 as_val=`expr "$@" || test $? -eq 1`
5417 fi # as_fn_arith
5420 if expr a : '\(a\)' >/dev/null 2>&1 &&
5421 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5422 as_expr=expr
5423 else
5424 as_expr=false
5427 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5428 as_basename=basename
5429 else
5430 as_basename=false
5433 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5434 as_dirname=dirname
5435 else
5436 as_dirname=false
5439 as_me=`$as_basename -- "$0" ||
5440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5441 X"$0" : 'X\(//\)$' \| \
5442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5443 $as_echo X/"$0" |
5444 sed '/^.*\/\([^/][^/]*\)\/*$/{
5445 s//\1/
5448 /^X\/\(\/\/\)$/{
5449 s//\1/
5452 /^X\/\(\/\).*/{
5453 s//\1/
5456 s/.*/./; q'`
5458 # Avoid depending upon Character Ranges.
5459 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5460 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5461 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5462 as_cr_digits='0123456789'
5463 as_cr_alnum=$as_cr_Letters$as_cr_digits
5465 ECHO_C= ECHO_N= ECHO_T=
5466 case `echo -n x` in #(((((
5467 -n*)
5468 case `echo 'xy\c'` in
5469 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5470 xy) ECHO_C='\c';;
5471 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5472 ECHO_T=' ';;
5473 esac;;
5475 ECHO_N='-n';;
5476 esac
5478 rm -f conf$$ conf$$.exe conf$$.file
5479 if test -d conf$$.dir; then
5480 rm -f conf$$.dir/conf$$.file
5481 else
5482 rm -f conf$$.dir
5483 mkdir conf$$.dir 2>/dev/null
5485 if (echo >conf$$.file) 2>/dev/null; then
5486 if ln -s conf$$.file conf$$ 2>/dev/null; then
5487 as_ln_s='ln -s'
5488 # ... but there are two gotchas:
5489 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5490 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5491 # In both cases, we have to default to `cp -p'.
5492 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5493 as_ln_s='cp -p'
5494 elif ln conf$$.file conf$$ 2>/dev/null; then
5495 as_ln_s=ln
5496 else
5497 as_ln_s='cp -p'
5499 else
5500 as_ln_s='cp -p'
5502 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5503 rmdir conf$$.dir 2>/dev/null
5506 # as_fn_mkdir_p
5507 # -------------
5508 # Create "$as_dir" as a directory, including parents if necessary.
5509 as_fn_mkdir_p ()
5512 case $as_dir in #(
5513 -*) as_dir=./$as_dir;;
5514 esac
5515 test -d "$as_dir" || eval $as_mkdir_p || {
5516 as_dirs=
5517 while :; do
5518 case $as_dir in #(
5519 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5520 *) as_qdir=$as_dir;;
5521 esac
5522 as_dirs="'$as_qdir' $as_dirs"
5523 as_dir=`$as_dirname -- "$as_dir" ||
5524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5525 X"$as_dir" : 'X\(//\)[^/]' \| \
5526 X"$as_dir" : 'X\(//\)$' \| \
5527 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5528 $as_echo X"$as_dir" |
5529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5530 s//\1/
5533 /^X\(\/\/\)[^/].*/{
5534 s//\1/
5537 /^X\(\/\/\)$/{
5538 s//\1/
5541 /^X\(\/\).*/{
5542 s//\1/
5545 s/.*/./; q'`
5546 test -d "$as_dir" && break
5547 done
5548 test -z "$as_dirs" || eval "mkdir $as_dirs"
5549 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5552 } # as_fn_mkdir_p
5553 if mkdir -p . 2>/dev/null; then
5554 as_mkdir_p='mkdir -p "$as_dir"'
5555 else
5556 test -d ./-p && rmdir ./-p
5557 as_mkdir_p=false
5560 if test -x / >/dev/null 2>&1; then
5561 as_test_x='test -x'
5562 else
5563 if ls -dL / >/dev/null 2>&1; then
5564 as_ls_L_option=L
5565 else
5566 as_ls_L_option=
5568 as_test_x='
5569 eval sh -c '\''
5570 if test -d "$1"; then
5571 test -d "$1/.";
5572 else
5573 case $1 in #(
5574 -*)set "./$1";;
5575 esac;
5576 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5577 ???[sx]*):;;*)false;;esac;fi
5578 '\'' sh
5581 as_executable_p=$as_test_x
5583 # Sed expression to map a string onto a valid CPP name.
5584 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5586 # Sed expression to map a string onto a valid variable name.
5587 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5590 exec 6>&1
5591 ## ----------------------------------- ##
5592 ## Main body of $CONFIG_STATUS script. ##
5593 ## ----------------------------------- ##
5594 _ASEOF
5595 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5598 # Save the log message, to keep $0 and so on meaningful, and to
5599 # report actual input values of CONFIG_FILES etc. instead of their
5600 # values after options handling.
5601 ac_log="
5602 This file was extended by GNU C Runtime Library $as_me 1.0, which was
5603 generated by GNU Autoconf 2.64. Invocation command line was
5605 CONFIG_FILES = $CONFIG_FILES
5606 CONFIG_HEADERS = $CONFIG_HEADERS
5607 CONFIG_LINKS = $CONFIG_LINKS
5608 CONFIG_COMMANDS = $CONFIG_COMMANDS
5609 $ $0 $@
5611 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5614 _ACEOF
5616 case $ac_config_files in *"
5617 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5618 esac
5620 case $ac_config_headers in *"
5621 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5622 esac
5625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5626 # Files that config.status was made for.
5627 config_files="$ac_config_files"
5628 config_headers="$ac_config_headers"
5629 config_commands="$ac_config_commands"
5631 _ACEOF
5633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5634 ac_cs_usage="\
5635 \`$as_me' instantiates files and other configuration actions
5636 from templates according to the current configuration. Unless the files
5637 and actions are specified as TAGs, all are instantiated by default.
5639 Usage: $0 [OPTION]... [TAG]...
5641 -h, --help print this help, then exit
5642 -V, --version print version number and configuration settings, then exit
5643 -q, --quiet, --silent
5644 do not print progress messages
5645 -d, --debug don't remove temporary files
5646 --recheck update $as_me by reconfiguring in the same conditions
5647 --file=FILE[:TEMPLATE]
5648 instantiate the configuration file FILE
5649 --header=FILE[:TEMPLATE]
5650 instantiate the configuration header FILE
5652 Configuration files:
5653 $config_files
5655 Configuration headers:
5656 $config_headers
5658 Configuration commands:
5659 $config_commands
5661 Report bugs to the package provider.
5662 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
5663 General help using GNU software: <http://www.gnu.org/gethelp/>."
5665 _ACEOF
5666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5667 ac_cs_version="\\
5668 GNU C Runtime Library config.status 1.0
5669 configured by $0, generated by GNU Autoconf 2.64,
5670 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5672 Copyright (C) 2009 Free Software Foundation, Inc.
5673 This config.status script is free software; the Free Software Foundation
5674 gives unlimited permission to copy, distribute and modify it."
5676 ac_pwd='$ac_pwd'
5677 srcdir='$srcdir'
5678 INSTALL='$INSTALL'
5679 AWK='$AWK'
5680 test -n "\$AWK" || AWK=awk
5681 _ACEOF
5683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5684 # The default lists apply if the user does not specify any file.
5685 ac_need_defaults=:
5686 while test $# != 0
5688 case $1 in
5689 --*=*)
5690 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5691 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5692 ac_shift=:
5695 ac_option=$1
5696 ac_optarg=$2
5697 ac_shift=shift
5699 esac
5701 case $ac_option in
5702 # Handling of the options.
5703 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5704 ac_cs_recheck=: ;;
5705 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5706 $as_echo "$ac_cs_version"; exit ;;
5707 --debug | --debu | --deb | --de | --d | -d )
5708 debug=: ;;
5709 --file | --fil | --fi | --f )
5710 $ac_shift
5711 case $ac_optarg in
5712 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5713 esac
5714 as_fn_append CONFIG_FILES " '$ac_optarg'"
5715 ac_need_defaults=false;;
5716 --header | --heade | --head | --hea )
5717 $ac_shift
5718 case $ac_optarg in
5719 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5720 esac
5721 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5722 ac_need_defaults=false;;
5723 --he | --h)
5724 # Conflict between --help and --header
5725 as_fn_error "ambiguous option: \`$1'
5726 Try \`$0 --help' for more information.";;
5727 --help | --hel | -h )
5728 $as_echo "$ac_cs_usage"; exit ;;
5729 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5730 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5731 ac_cs_silent=: ;;
5733 # This is an error.
5734 -*) as_fn_error "unrecognized option: \`$1'
5735 Try \`$0 --help' for more information." ;;
5737 *) as_fn_append ac_config_targets " $1"
5738 ac_need_defaults=false ;;
5740 esac
5741 shift
5742 done
5744 ac_configure_extra_args=
5746 if $ac_cs_silent; then
5747 exec 6>/dev/null
5748 ac_configure_extra_args="$ac_configure_extra_args --silent"
5751 _ACEOF
5752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5753 if \$ac_cs_recheck; then
5754 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5755 shift
5756 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5757 CONFIG_SHELL='$SHELL'
5758 export CONFIG_SHELL
5759 exec "\$@"
5762 _ACEOF
5763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5764 exec 5>>config.log
5766 echo
5767 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5768 ## Running $as_me. ##
5769 _ASBOX
5770 $as_echo "$ac_log"
5771 } >&5
5773 _ACEOF
5774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5776 # INIT-COMMANDS
5778 srcdir=${srcdir}
5779 host=${host}
5780 with_target_subdir=${with_target_subdir}
5781 with_multisubdir=${with_multisubdir}
5782 ac_configure_args="--enable-multilib ${ac_configure_args}"
5783 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5784 libgcc_topdir=${libgcc_topdir}
5785 CC="${CC}"
5788 _ACEOF
5790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5792 # Handling of arguments.
5793 for ac_config_target in $ac_config_targets
5795 case $ac_config_target in
5796 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
5797 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5798 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5800 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5801 esac
5802 done
5805 # If the user did not use the arguments to specify the items to instantiate,
5806 # then the envvar interface is used. Set only those that are not.
5807 # We use the long form for the default assignment because of an extremely
5808 # bizarre bug on SunOS 4.1.3.
5809 if $ac_need_defaults; then
5810 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5811 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5812 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5815 # Have a temporary directory for convenience. Make it in the build tree
5816 # simply because there is no reason against having it here, and in addition,
5817 # creating and moving files from /tmp can sometimes cause problems.
5818 # Hook for its removal unless debugging.
5819 # Note that there is a small window in which the directory will not be cleaned:
5820 # after its creation but before its name has been assigned to `$tmp'.
5821 $debug ||
5823 tmp=
5824 trap 'exit_status=$?
5825 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5827 trap 'as_fn_exit 1' 1 2 13 15
5829 # Create a (secure) tmp directory for tmp files.
5832 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5833 test -n "$tmp" && test -d "$tmp"
5834 } ||
5836 tmp=./conf$$-$RANDOM
5837 (umask 077 && mkdir "$tmp")
5838 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5840 # Set up the scripts for CONFIG_FILES section.
5841 # No need to generate them if there are no CONFIG_FILES.
5842 # This happens for instance with `./config.status config.h'.
5843 if test -n "$CONFIG_FILES"; then
5846 ac_cr=`echo X | tr X '\015'`
5847 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5848 # But we know of no other shell where ac_cr would be empty at this
5849 # point, so we can use a bashism as a fallback.
5850 if test "x$ac_cr" = x; then
5851 eval ac_cr=\$\'\\r\'
5853 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5854 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5855 ac_cs_awk_cr='\r'
5856 else
5857 ac_cs_awk_cr=$ac_cr
5860 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5861 _ACEOF
5865 echo "cat >conf$$subs.awk <<_ACEOF" &&
5866 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5867 echo "_ACEOF"
5868 } >conf$$subs.sh ||
5869 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5870 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5871 ac_delim='%!_!# '
5872 for ac_last_try in false false false false false :; do
5873 . ./conf$$subs.sh ||
5874 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5876 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5877 if test $ac_delim_n = $ac_delim_num; then
5878 break
5879 elif $ac_last_try; then
5880 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5881 else
5882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5884 done
5885 rm -f conf$$subs.sh
5887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5888 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5889 _ACEOF
5890 sed -n '
5892 s/^/S["/; s/!.*/"]=/
5895 s/^[^!]*!//
5896 :repl
5897 t repl
5898 s/'"$ac_delim"'$//
5899 t delim
5902 s/\(.\{148\}\).*/\1/
5903 t more1
5904 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5907 b repl
5908 :more1
5909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5912 s/.\{148\}//
5913 t nl
5914 :delim
5916 s/\(.\{148\}\).*/\1/
5917 t more2
5918 s/["\\]/\\&/g; s/^/"/; s/$/"/
5921 :more2
5922 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5925 s/.\{148\}//
5926 t delim
5927 ' <conf$$subs.awk | sed '
5928 /^[^""]/{
5930 s/\n//
5932 ' >>$CONFIG_STATUS || ac_write_fail=1
5933 rm -f conf$$subs.awk
5934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5935 _ACAWK
5936 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5937 for (key in S) S_is_set[key] = 1
5938 FS = "\a"
5942 line = $ 0
5943 nfields = split(line, field, "@")
5944 substed = 0
5945 len = length(field[1])
5946 for (i = 2; i < nfields; i++) {
5947 key = field[i]
5948 keylen = length(key)
5949 if (S_is_set[key]) {
5950 value = S[key]
5951 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5952 len += length(value) + length(field[++i])
5953 substed = 1
5954 } else
5955 len += 1 + keylen
5958 print line
5961 _ACAWK
5962 _ACEOF
5963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5964 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5965 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5966 else
5968 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5969 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5970 _ACEOF
5972 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5973 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5974 # trailing colons and then remove the whole line if VPATH becomes empty
5975 # (actually we leave an empty line to preserve line numbers).
5976 if test "x$srcdir" = x.; then
5977 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5978 s/:*\$(srcdir):*/:/
5979 s/:*\${srcdir}:*/:/
5980 s/:*@srcdir@:*/:/
5981 s/^\([^=]*=[ ]*\):*/\1/
5982 s/:*$//
5983 s/^[^=]*=[ ]*$//
5987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5988 fi # test -n "$CONFIG_FILES"
5990 # Set up the scripts for CONFIG_HEADERS section.
5991 # No need to generate them if there are no CONFIG_HEADERS.
5992 # This happens for instance with `./config.status Makefile'.
5993 if test -n "$CONFIG_HEADERS"; then
5994 cat >"$tmp/defines.awk" <<\_ACAWK ||
5995 BEGIN {
5996 _ACEOF
5998 # Transform confdefs.h into an awk script `defines.awk', embedded as
5999 # here-document in config.status, that substitutes the proper values into
6000 # config.h.in to produce config.h.
6002 # Create a delimiter string that does not exist in confdefs.h, to ease
6003 # handling of long lines.
6004 ac_delim='%!_!# '
6005 for ac_last_try in false false :; do
6006 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6007 if test -z "$ac_t"; then
6008 break
6009 elif $ac_last_try; then
6010 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6011 else
6012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6014 done
6016 # For the awk script, D is an array of macro values keyed by name,
6017 # likewise P contains macro parameters if any. Preserve backslash
6018 # newline sequences.
6020 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6021 sed -n '
6022 s/.\{148\}/&'"$ac_delim"'/g
6023 t rset
6024 :rset
6025 s/^[ ]*#[ ]*define[ ][ ]*/ /
6026 t def
6028 :def
6029 s/\\$//
6030 t bsnl
6031 s/["\\]/\\&/g
6032 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6033 D["\1"]=" \3"/p
6034 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6036 :bsnl
6037 s/["\\]/\\&/g
6038 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6039 D["\1"]=" \3\\\\\\n"\\/p
6040 t cont
6041 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6042 t cont
6044 :cont
6046 s/.\{148\}/&'"$ac_delim"'/g
6047 t clear
6048 :clear
6049 s/\\$//
6050 t bsnlc
6051 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6053 :bsnlc
6054 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6055 b cont
6056 ' <confdefs.h | sed '
6057 s/'"$ac_delim"'/"\\\
6058 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6061 for (key in D) D_is_set[key] = 1
6062 FS = "\a"
6064 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6065 line = \$ 0
6066 split(line, arg, " ")
6067 if (arg[1] == "#") {
6068 defundef = arg[2]
6069 mac1 = arg[3]
6070 } else {
6071 defundef = substr(arg[1], 2)
6072 mac1 = arg[2]
6074 split(mac1, mac2, "(") #)
6075 macro = mac2[1]
6076 prefix = substr(line, 1, index(line, defundef) - 1)
6077 if (D_is_set[macro]) {
6078 # Preserve the white space surrounding the "#".
6079 print prefix "define", macro P[macro] D[macro]
6080 next
6081 } else {
6082 # Replace #undef with comments. This is necessary, for example,
6083 # in the case of _POSIX_SOURCE, which is predefined and required
6084 # on some systems where configure will not decide to define it.
6085 if (defundef == "undef") {
6086 print "/*", prefix defundef, macro, "*/"
6087 next
6091 { print }
6092 _ACAWK
6093 _ACEOF
6094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6095 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6096 fi # test -n "$CONFIG_HEADERS"
6099 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6100 shift
6101 for ac_tag
6103 case $ac_tag in
6104 :[FHLC]) ac_mode=$ac_tag; continue;;
6105 esac
6106 case $ac_mode$ac_tag in
6107 :[FHL]*:*);;
6108 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6109 :[FH]-) ac_tag=-:-;;
6110 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6111 esac
6112 ac_save_IFS=$IFS
6113 IFS=:
6114 set x $ac_tag
6115 IFS=$ac_save_IFS
6116 shift
6117 ac_file=$1
6118 shift
6120 case $ac_mode in
6121 :L) ac_source=$1;;
6122 :[FH])
6123 ac_file_inputs=
6124 for ac_f
6126 case $ac_f in
6127 -) ac_f="$tmp/stdin";;
6128 *) # Look for the file first in the build tree, then in the source tree
6129 # (if the path is not absolute). The absolute path cannot be DOS-style,
6130 # because $ac_f cannot contain `:'.
6131 test -f "$ac_f" ||
6132 case $ac_f in
6133 [\\/$]*) false;;
6134 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6135 esac ||
6136 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6137 esac
6138 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6139 as_fn_append ac_file_inputs " '$ac_f'"
6140 done
6142 # Let's still pretend it is `configure' which instantiates (i.e., don't
6143 # use $as_me), people would be surprised to read:
6144 # /* config.h. Generated by config.status. */
6145 configure_input='Generated from '`
6146 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6147 `' by configure.'
6148 if test x"$ac_file" != x-; then
6149 configure_input="$ac_file. $configure_input"
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6151 $as_echo "$as_me: creating $ac_file" >&6;}
6153 # Neutralize special characters interpreted by sed in replacement strings.
6154 case $configure_input in #(
6155 *\&* | *\|* | *\\* )
6156 ac_sed_conf_input=`$as_echo "$configure_input" |
6157 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6158 *) ac_sed_conf_input=$configure_input;;
6159 esac
6161 case $ac_tag in
6162 *:-:* | *:-) cat >"$tmp/stdin" \
6163 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6164 esac
6166 esac
6168 ac_dir=`$as_dirname -- "$ac_file" ||
6169 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6170 X"$ac_file" : 'X\(//\)[^/]' \| \
6171 X"$ac_file" : 'X\(//\)$' \| \
6172 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6173 $as_echo X"$ac_file" |
6174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6175 s//\1/
6178 /^X\(\/\/\)[^/].*/{
6179 s//\1/
6182 /^X\(\/\/\)$/{
6183 s//\1/
6186 /^X\(\/\).*/{
6187 s//\1/
6190 s/.*/./; q'`
6191 as_dir="$ac_dir"; as_fn_mkdir_p
6192 ac_builddir=.
6194 case "$ac_dir" in
6195 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6197 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6198 # A ".." for each directory in $ac_dir_suffix.
6199 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6200 case $ac_top_builddir_sub in
6201 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6202 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6203 esac ;;
6204 esac
6205 ac_abs_top_builddir=$ac_pwd
6206 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6207 # for backward compatibility:
6208 ac_top_builddir=$ac_top_build_prefix
6210 case $srcdir in
6211 .) # We are building in place.
6212 ac_srcdir=.
6213 ac_top_srcdir=$ac_top_builddir_sub
6214 ac_abs_top_srcdir=$ac_pwd ;;
6215 [\\/]* | ?:[\\/]* ) # Absolute name.
6216 ac_srcdir=$srcdir$ac_dir_suffix;
6217 ac_top_srcdir=$srcdir
6218 ac_abs_top_srcdir=$srcdir ;;
6219 *) # Relative name.
6220 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6221 ac_top_srcdir=$ac_top_build_prefix$srcdir
6222 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6223 esac
6224 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6227 case $ac_mode in
6230 # CONFIG_FILE
6233 case $INSTALL in
6234 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6235 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6236 esac
6237 _ACEOF
6239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6240 # If the template does not know about datarootdir, expand it.
6241 # FIXME: This hack should be removed a few years after 2.60.
6242 ac_datarootdir_hack=; ac_datarootdir_seen=
6243 ac_sed_dataroot='
6244 /datarootdir/ {
6248 /@datadir@/p
6249 /@docdir@/p
6250 /@infodir@/p
6251 /@localedir@/p
6252 /@mandir@/p'
6253 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6254 *datarootdir*) ac_datarootdir_seen=yes;;
6255 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6257 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6258 _ACEOF
6259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6260 ac_datarootdir_hack='
6261 s&@datadir@&$datadir&g
6262 s&@docdir@&$docdir&g
6263 s&@infodir@&$infodir&g
6264 s&@localedir@&$localedir&g
6265 s&@mandir@&$mandir&g
6266 s&\\\${datarootdir}&$datarootdir&g' ;;
6267 esac
6268 _ACEOF
6270 # Neutralize VPATH when `$srcdir' = `.'.
6271 # Shell code in configure.ac might set extrasub.
6272 # FIXME: do we really want to maintain this feature?
6273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6274 ac_sed_extra="$ac_vpsub
6275 $extrasub
6276 _ACEOF
6277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6280 s|@configure_input@|$ac_sed_conf_input|;t t
6281 s&@top_builddir@&$ac_top_builddir_sub&;t t
6282 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6283 s&@srcdir@&$ac_srcdir&;t t
6284 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6285 s&@top_srcdir@&$ac_top_srcdir&;t t
6286 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6287 s&@builddir@&$ac_builddir&;t t
6288 s&@abs_builddir@&$ac_abs_builddir&;t t
6289 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6290 s&@INSTALL@&$ac_INSTALL&;t t
6291 $ac_datarootdir_hack
6293 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6294 || as_fn_error "could not create $ac_file" "$LINENO" 5
6296 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6297 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6298 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6300 which seems to be undefined. Please make sure it is defined." >&5
6301 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6302 which seems to be undefined. Please make sure it is defined." >&2;}
6304 rm -f "$tmp/stdin"
6305 case $ac_file in
6306 -) cat "$tmp/out" && rm -f "$tmp/out";;
6307 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6308 esac \
6309 || as_fn_error "could not create $ac_file" "$LINENO" 5
6313 # CONFIG_HEADER
6315 if test x"$ac_file" != x-; then
6317 $as_echo "/* $configure_input */" \
6318 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6319 } >"$tmp/config.h" \
6320 || as_fn_error "could not create $ac_file" "$LINENO" 5
6321 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6323 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6324 else
6325 rm -f "$ac_file"
6326 mv "$tmp/config.h" "$ac_file" \
6327 || as_fn_error "could not create $ac_file" "$LINENO" 5
6329 else
6330 $as_echo "/* $configure_input */" \
6331 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6332 || as_fn_error "could not create -" "$LINENO" 5
6336 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6337 $as_echo "$as_me: executing $ac_file commands" >&6;}
6339 esac
6342 case $ac_file$ac_mode in
6343 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6344 if test -n "$CONFIG_FILES"; then
6345 # FIXME: We shouldn't need to set ac_file
6346 ac_file=Makefile
6347 . ${libgcc_topdir}/config-ml.in
6348 fi ;;
6350 esac
6351 done # for ac_tag
6354 as_fn_exit 0
6355 _ACEOF
6356 ac_clean_files=$ac_clean_files_save
6358 test $ac_write_fail = 0 ||
6359 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6362 # configure is writing to config.log, and then calls config.status.
6363 # config.status does its own redirection, appending to config.log.
6364 # Unfortunately, on DOS this fails, as config.log is still kept open
6365 # by configure, so config.status won't be able to write to it; its
6366 # output is simply discarded. So we exec the FD to /dev/null,
6367 # effectively closing config.log, so it can be properly (re)opened and
6368 # appended to by config.status. When coming back to configure, we
6369 # need to make the FD available again.
6370 if test "$no_create" != yes; then
6371 ac_cs_success=:
6372 ac_config_status_args=
6373 test "$silent" = yes &&
6374 ac_config_status_args="$ac_config_status_args --quiet"
6375 exec 5>/dev/null
6376 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6377 exec 5>>config.log
6378 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6379 # would make configure fail if this is the last instruction.
6380 $ac_cs_success || as_fn_exit $?
6382 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6384 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}