gcc:
[official-gcc.git] / libgcc / configure
blob090e5484131a53d4910951afdd721b9268d97c9b
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 get_gcc_base_ver
565 thread_header
566 tm_defines
567 tm_file
568 tmake_file
569 sfp_machine_header
570 set_use_emutls
571 set_have_cc_tls
572 vis_hide
573 real_host_noncanonical
574 accel_dir_suffix
575 force_explicit_eh_registry
576 CET_FLAGS
577 fixed_point
578 enable_decimal_float
579 decimal_float
580 EGREP
581 GREP
582 long_double_type_size
583 double_type_size
585 OBJEXT
586 EXEEXT
587 ac_ct_CC
588 CPPFLAGS
589 LDFLAGS
590 CFLAGS
592 LN_S
593 STRIP
594 RANLIB
596 LIPO
598 toolexeclibdir
599 toolexecdir
600 target_subdir
601 host_subdir
602 build_subdir
603 build_libsubdir
604 target_noncanonical
605 host_noncanonical
607 INSTALL_DATA
608 INSTALL_SCRIPT
609 INSTALL_PROGRAM
610 MAINT
611 slibdir
612 PICFLAG
613 host_os
614 host_vendor
615 host_cpu
616 host
617 build_os
618 build_vendor
619 build_cpu
620 build
621 with_aix_soname
622 enable_vtable_verify
623 enable_gcov
624 enable_shared
625 libgcc_topdir
626 target_alias
627 host_alias
628 build_alias
629 LIBS
630 ECHO_T
631 ECHO_N
632 ECHO_C
633 DEFS
634 mandir
635 localedir
636 libdir
637 psdir
638 pdfdir
639 dvidir
640 htmldir
641 infodir
642 docdir
643 oldincludedir
644 includedir
645 localstatedir
646 sharedstatedir
647 sysconfdir
648 datadir
649 datarootdir
650 libexecdir
651 sbindir
652 bindir
653 program_transform_name
654 prefix
655 exec_prefix
656 PACKAGE_URL
657 PACKAGE_BUGREPORT
658 PACKAGE_STRING
659 PACKAGE_VERSION
660 PACKAGE_TARNAME
661 PACKAGE_NAME
662 PATH_SEPARATOR
663 SHELL'
664 ac_subst_files=''
665 ac_user_opts='
666 enable_option_checking
667 with_target_subdir
668 with_cross_host
669 with_ld
670 enable_shared
671 enable_gcov
672 enable_vtable_verify
673 with_aix_soname
674 enable_version_specific_runtime_libs
675 with_slibdir
676 enable_maintainer_mode
677 with_build_libsubdir
678 enable_largefile
679 enable_decimal_float
680 with_system_libunwind
681 enable_cet
682 enable_explicit_exception_frame_registration
683 with_glibc_version
684 enable_tls
685 with_gcc_major_version_only
687 ac_precious_vars='build_alias
688 host_alias
689 target_alias
691 CFLAGS
692 LDFLAGS
693 LIBS
694 CPPFLAGS
695 CPP'
698 # Initialize some variables set by options.
699 ac_init_help=
700 ac_init_version=false
701 ac_unrecognized_opts=
702 ac_unrecognized_sep=
703 # The variables have the same names as the options, with
704 # dashes changed to underlines.
705 cache_file=/dev/null
706 exec_prefix=NONE
707 no_create=
708 no_recursion=
709 prefix=NONE
710 program_prefix=NONE
711 program_suffix=NONE
712 program_transform_name=s,x,x,
713 silent=
714 site=
715 srcdir=
716 verbose=
717 x_includes=NONE
718 x_libraries=NONE
720 # Installation directory options.
721 # These are left unexpanded so users can "make install exec_prefix=/foo"
722 # and all the variables that are supposed to be based on exec_prefix
723 # by default will actually change.
724 # Use braces instead of parens because sh, perl, etc. also accept them.
725 # (The list follows the same order as the GNU Coding Standards.)
726 bindir='${exec_prefix}/bin'
727 sbindir='${exec_prefix}/sbin'
728 libexecdir='${exec_prefix}/libexec'
729 datarootdir='${prefix}/share'
730 datadir='${datarootdir}'
731 sysconfdir='${prefix}/etc'
732 sharedstatedir='${prefix}/com'
733 localstatedir='${prefix}/var'
734 includedir='${prefix}/include'
735 oldincludedir='/usr/include'
736 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
737 infodir='${datarootdir}/info'
738 htmldir='${docdir}'
739 dvidir='${docdir}'
740 pdfdir='${docdir}'
741 psdir='${docdir}'
742 libdir='${exec_prefix}/lib'
743 localedir='${datarootdir}/locale'
744 mandir='${datarootdir}/man'
746 ac_prev=
747 ac_dashdash=
748 for ac_option
750 # If the previous option needs an argument, assign it.
751 if test -n "$ac_prev"; then
752 eval $ac_prev=\$ac_option
753 ac_prev=
754 continue
757 case $ac_option in
758 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
759 *) ac_optarg=yes ;;
760 esac
762 # Accept the important Cygnus configure options, so we can diagnose typos.
764 case $ac_dashdash$ac_option in
766 ac_dashdash=yes ;;
768 -bindir | --bindir | --bindi | --bind | --bin | --bi)
769 ac_prev=bindir ;;
770 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
771 bindir=$ac_optarg ;;
773 -build | --build | --buil | --bui | --bu)
774 ac_prev=build_alias ;;
775 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
776 build_alias=$ac_optarg ;;
778 -cache-file | --cache-file | --cache-fil | --cache-fi \
779 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
780 ac_prev=cache_file ;;
781 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
782 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
783 cache_file=$ac_optarg ;;
785 --config-cache | -C)
786 cache_file=config.cache ;;
788 -datadir | --datadir | --datadi | --datad)
789 ac_prev=datadir ;;
790 -datadir=* | --datadir=* | --datadi=* | --datad=*)
791 datadir=$ac_optarg ;;
793 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
794 | --dataroo | --dataro | --datar)
795 ac_prev=datarootdir ;;
796 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
797 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
798 datarootdir=$ac_optarg ;;
800 -disable-* | --disable-*)
801 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
802 # Reject names that are not valid shell variable names.
803 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
804 as_fn_error "invalid feature name: $ac_useropt"
805 ac_useropt_orig=$ac_useropt
806 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
807 case $ac_user_opts in
809 "enable_$ac_useropt"
810 "*) ;;
811 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
812 ac_unrecognized_sep=', ';;
813 esac
814 eval enable_$ac_useropt=no ;;
816 -docdir | --docdir | --docdi | --doc | --do)
817 ac_prev=docdir ;;
818 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
819 docdir=$ac_optarg ;;
821 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
822 ac_prev=dvidir ;;
823 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
824 dvidir=$ac_optarg ;;
826 -enable-* | --enable-*)
827 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
830 as_fn_error "invalid feature name: $ac_useropt"
831 ac_useropt_orig=$ac_useropt
832 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
833 case $ac_user_opts in
835 "enable_$ac_useropt"
836 "*) ;;
837 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
838 ac_unrecognized_sep=', ';;
839 esac
840 eval enable_$ac_useropt=\$ac_optarg ;;
842 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
843 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
844 | --exec | --exe | --ex)
845 ac_prev=exec_prefix ;;
846 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
847 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
848 | --exec=* | --exe=* | --ex=*)
849 exec_prefix=$ac_optarg ;;
851 -gas | --gas | --ga | --g)
852 # Obsolete; use --with-gas.
853 with_gas=yes ;;
855 -help | --help | --hel | --he | -h)
856 ac_init_help=long ;;
857 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
858 ac_init_help=recursive ;;
859 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
860 ac_init_help=short ;;
862 -host | --host | --hos | --ho)
863 ac_prev=host_alias ;;
864 -host=* | --host=* | --hos=* | --ho=*)
865 host_alias=$ac_optarg ;;
867 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
868 ac_prev=htmldir ;;
869 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
870 | --ht=*)
871 htmldir=$ac_optarg ;;
873 -includedir | --includedir | --includedi | --included | --include \
874 | --includ | --inclu | --incl | --inc)
875 ac_prev=includedir ;;
876 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
877 | --includ=* | --inclu=* | --incl=* | --inc=*)
878 includedir=$ac_optarg ;;
880 -infodir | --infodir | --infodi | --infod | --info | --inf)
881 ac_prev=infodir ;;
882 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
883 infodir=$ac_optarg ;;
885 -libdir | --libdir | --libdi | --libd)
886 ac_prev=libdir ;;
887 -libdir=* | --libdir=* | --libdi=* | --libd=*)
888 libdir=$ac_optarg ;;
890 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
891 | --libexe | --libex | --libe)
892 ac_prev=libexecdir ;;
893 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
894 | --libexe=* | --libex=* | --libe=*)
895 libexecdir=$ac_optarg ;;
897 -localedir | --localedir | --localedi | --localed | --locale)
898 ac_prev=localedir ;;
899 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
900 localedir=$ac_optarg ;;
902 -localstatedir | --localstatedir | --localstatedi | --localstated \
903 | --localstate | --localstat | --localsta | --localst | --locals)
904 ac_prev=localstatedir ;;
905 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
906 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
907 localstatedir=$ac_optarg ;;
909 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
910 ac_prev=mandir ;;
911 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
912 mandir=$ac_optarg ;;
914 -nfp | --nfp | --nf)
915 # Obsolete; use --without-fp.
916 with_fp=no ;;
918 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
919 | --no-cr | --no-c | -n)
920 no_create=yes ;;
922 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
923 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
924 no_recursion=yes ;;
926 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
927 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
928 | --oldin | --oldi | --old | --ol | --o)
929 ac_prev=oldincludedir ;;
930 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
931 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
932 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
933 oldincludedir=$ac_optarg ;;
935 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
936 ac_prev=prefix ;;
937 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
938 prefix=$ac_optarg ;;
940 -program-prefix | --program-prefix | --program-prefi | --program-pref \
941 | --program-pre | --program-pr | --program-p)
942 ac_prev=program_prefix ;;
943 -program-prefix=* | --program-prefix=* | --program-prefi=* \
944 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
945 program_prefix=$ac_optarg ;;
947 -program-suffix | --program-suffix | --program-suffi | --program-suff \
948 | --program-suf | --program-su | --program-s)
949 ac_prev=program_suffix ;;
950 -program-suffix=* | --program-suffix=* | --program-suffi=* \
951 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
952 program_suffix=$ac_optarg ;;
954 -program-transform-name | --program-transform-name \
955 | --program-transform-nam | --program-transform-na \
956 | --program-transform-n | --program-transform- \
957 | --program-transform | --program-transfor \
958 | --program-transfo | --program-transf \
959 | --program-trans | --program-tran \
960 | --progr-tra | --program-tr | --program-t)
961 ac_prev=program_transform_name ;;
962 -program-transform-name=* | --program-transform-name=* \
963 | --program-transform-nam=* | --program-transform-na=* \
964 | --program-transform-n=* | --program-transform-=* \
965 | --program-transform=* | --program-transfor=* \
966 | --program-transfo=* | --program-transf=* \
967 | --program-trans=* | --program-tran=* \
968 | --progr-tra=* | --program-tr=* | --program-t=*)
969 program_transform_name=$ac_optarg ;;
971 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
972 ac_prev=pdfdir ;;
973 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
974 pdfdir=$ac_optarg ;;
976 -psdir | --psdir | --psdi | --psd | --ps)
977 ac_prev=psdir ;;
978 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
979 psdir=$ac_optarg ;;
981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
982 | -silent | --silent | --silen | --sile | --sil)
983 silent=yes ;;
985 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
986 ac_prev=sbindir ;;
987 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
988 | --sbi=* | --sb=*)
989 sbindir=$ac_optarg ;;
991 -sharedstatedir | --sharedstatedir | --sharedstatedi \
992 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
993 | --sharedst | --shareds | --shared | --share | --shar \
994 | --sha | --sh)
995 ac_prev=sharedstatedir ;;
996 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
997 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
998 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
999 | --sha=* | --sh=*)
1000 sharedstatedir=$ac_optarg ;;
1002 -site | --site | --sit)
1003 ac_prev=site ;;
1004 -site=* | --site=* | --sit=*)
1005 site=$ac_optarg ;;
1007 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1008 ac_prev=srcdir ;;
1009 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1010 srcdir=$ac_optarg ;;
1012 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1013 | --syscon | --sysco | --sysc | --sys | --sy)
1014 ac_prev=sysconfdir ;;
1015 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1016 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1017 sysconfdir=$ac_optarg ;;
1019 -target | --target | --targe | --targ | --tar | --ta | --t)
1020 ac_prev=target_alias ;;
1021 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1022 target_alias=$ac_optarg ;;
1024 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1025 verbose=yes ;;
1027 -version | --version | --versio | --versi | --vers | -V)
1028 ac_init_version=: ;;
1030 -with-* | --with-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error "invalid package name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1039 "with_$ac_useropt"
1040 "*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval with_$ac_useropt=\$ac_optarg ;;
1046 -without-* | --without-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error "invalid package name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "with_$ac_useropt"
1056 "*) ;;
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1059 esac
1060 eval with_$ac_useropt=no ;;
1062 --x)
1063 # Obsolete; use --with-x.
1064 with_x=yes ;;
1066 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1067 | --x-incl | --x-inc | --x-in | --x-i)
1068 ac_prev=x_includes ;;
1069 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1070 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1071 x_includes=$ac_optarg ;;
1073 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1074 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1075 ac_prev=x_libraries ;;
1076 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1077 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1078 x_libraries=$ac_optarg ;;
1080 -*) as_fn_error "unrecognized option: \`$ac_option'
1081 Try \`$0 --help' for more information."
1084 *=*)
1085 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1086 # Reject names that are not valid shell variable names.
1087 case $ac_envvar in #(
1088 '' | [0-9]* | *[!_$as_cr_alnum]* )
1089 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1090 esac
1091 eval $ac_envvar=\$ac_optarg
1092 export $ac_envvar ;;
1095 # FIXME: should be removed in autoconf 3.0.
1096 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1097 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1098 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1099 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1102 esac
1103 done
1105 if test -n "$ac_prev"; then
1106 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1107 as_fn_error "missing argument to $ac_option"
1110 if test -n "$ac_unrecognized_opts"; then
1111 case $enable_option_checking in
1112 no) ;;
1113 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1114 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1115 esac
1118 # Check all directory arguments for consistency.
1119 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1120 datadir sysconfdir sharedstatedir localstatedir includedir \
1121 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1122 libdir localedir mandir
1124 eval ac_val=\$$ac_var
1125 # Remove trailing slashes.
1126 case $ac_val in
1127 */ )
1128 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1129 eval $ac_var=\$ac_val;;
1130 esac
1131 # Be sure to have absolute directory names.
1132 case $ac_val in
1133 [\\/$]* | ?:[\\/]* ) continue;;
1134 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1135 esac
1136 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1137 done
1139 # There might be people who depend on the old broken behavior: `$host'
1140 # used to hold the argument of --host etc.
1141 # FIXME: To remove some day.
1142 build=$build_alias
1143 host=$host_alias
1144 target=$target_alias
1146 # FIXME: To remove some day.
1147 if test "x$host_alias" != x; then
1148 if test "x$build_alias" = x; then
1149 cross_compiling=maybe
1150 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1153 cross_compiling=yes
1157 ac_tool_prefix=
1158 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1160 test "$silent" = yes && exec 6>/dev/null
1163 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1164 ac_ls_di=`ls -di .` &&
1165 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1166 as_fn_error "working directory cannot be determined"
1167 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1168 as_fn_error "pwd does not report name of working directory"
1171 # Find the source files, if location was not specified.
1172 if test -z "$srcdir"; then
1173 ac_srcdir_defaulted=yes
1174 # Try the directory containing this script, then the parent directory.
1175 ac_confdir=`$as_dirname -- "$as_myself" ||
1176 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1177 X"$as_myself" : 'X\(//\)[^/]' \| \
1178 X"$as_myself" : 'X\(//\)$' \| \
1179 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1180 $as_echo X"$as_myself" |
1181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1182 s//\1/
1185 /^X\(\/\/\)[^/].*/{
1186 s//\1/
1189 /^X\(\/\/\)$/{
1190 s//\1/
1193 /^X\(\/\).*/{
1194 s//\1/
1197 s/.*/./; q'`
1198 srcdir=$ac_confdir
1199 if test ! -r "$srcdir/$ac_unique_file"; then
1200 srcdir=..
1202 else
1203 ac_srcdir_defaulted=no
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1207 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1209 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 ac_abs_confdir=`(
1211 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1212 pwd)`
1213 # When building in place, set srcdir=.
1214 if test "$ac_abs_confdir" = "$ac_pwd"; then
1215 srcdir=.
1217 # Remove unnecessary trailing slashes from srcdir.
1218 # Double slashes in file names in object file debugging info
1219 # mess up M-x gdb in Emacs.
1220 case $srcdir in
1221 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 esac
1223 for ac_var in $ac_precious_vars; do
1224 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_env_${ac_var}_value=\$${ac_var}
1226 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1227 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228 done
1231 # Report the --help message.
1233 if test "$ac_init_help" = "long"; then
1234 # Omit some internal or obsolete options to make the list less imposing.
1235 # This message is too long to be a string in the A/UX 3.1 sh.
1236 cat <<_ACEOF
1237 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1239 Usage: $0 [OPTION]... [VAR=VALUE]...
1241 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242 VAR=VALUE. See below for descriptions of some of the useful variables.
1244 Defaults for the options are specified in brackets.
1246 Configuration:
1247 -h, --help display this help and exit
1248 --help=short display options specific to this package
1249 --help=recursive display the short help of all the included packages
1250 -V, --version display version information and exit
1251 -q, --quiet, --silent do not print \`checking...' messages
1252 --cache-file=FILE cache test results in FILE [disabled]
1253 -C, --config-cache alias for \`--cache-file=config.cache'
1254 -n, --no-create do not create output files
1255 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1257 Installation directories:
1258 --prefix=PREFIX install architecture-independent files in PREFIX
1259 [$ac_default_prefix]
1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1261 [PREFIX]
1263 By default, \`make install' will install all the files in
1264 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1265 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266 for instance \`--prefix=\$HOME'.
1268 For better control, use the options below.
1270 Fine tuning of the installation directories:
1271 --bindir=DIR user executables [EPREFIX/bin]
1272 --sbindir=DIR system admin executables [EPREFIX/sbin]
1273 --libexecdir=DIR program executables [EPREFIX/libexec]
1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1277 --libdir=DIR object code libraries [EPREFIX/lib]
1278 --includedir=DIR C header files [PREFIX/include]
1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1282 --infodir=DIR info documentation [DATAROOTDIR/info]
1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1284 --mandir=DIR man documentation [DATAROOTDIR/man]
1285 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1286 --htmldir=DIR html documentation [DOCDIR]
1287 --dvidir=DIR dvi documentation [DOCDIR]
1288 --pdfdir=DIR pdf documentation [DOCDIR]
1289 --psdir=DIR ps documentation [DOCDIR]
1290 _ACEOF
1292 cat <<\_ACEOF
1294 System types:
1295 --build=BUILD configure for building on BUILD [guessed]
1296 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1297 _ACEOF
1300 if test -n "$ac_init_help"; then
1301 case $ac_init_help in
1302 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1303 esac
1304 cat <<\_ACEOF
1306 Optional Features:
1307 --disable-option-checking ignore unrecognized --enable/--with options
1308 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1309 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1310 --disable-shared don't provide a shared libgcc
1311 --disable-gcov don't provide libgcov and related host tools
1312 --enable-vtable-verify Enable vtable verification feature
1313 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1314 --enable-maintainer-mode
1315 enable make rules and dependencies not useful (and
1316 sometimes confusing) to the casual installer
1317 --disable-largefile omit support for large files
1318 --enable-decimal-float={no,yes,bid,dpd}
1319 enable decimal float extension to C. Selecting 'bid'
1320 or 'dpd' choses which decimal floating point format
1321 to use
1322 --enable-cet enable Intel CET in target libraries [default=no]
1323 --enable-explicit-exception-frame-registration
1324 register exception tables explicitly at module
1325 start, for use e.g. for compatibility with
1326 installations without PT_GNU_EH_FRAME support
1327 --enable-tls Use thread-local storage [default=yes]
1329 Optional Packages:
1330 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1331 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1332 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1333 --with-cross-host=HOST Configuring with a cross compiler
1334 --with-ld arrange to use the specified ld (full pathname)
1335 --with-aix-soname=aix|svr4|both
1336 shared library versioning (aka "SONAME") variant to
1337 provide on AIX
1338 --with-slibdir=DIR shared libraries in DIR LIBDIR
1339 --with-build-libsubdir=DIR Directory where to find libraries for build system
1340 --with-system-libunwind use installed libunwind
1341 --with-glibc-version=M.N
1342 assume GCC used with glibc version M.N or later
1343 --with-gcc-major-version-only
1344 use only GCC major number in filesystem paths
1346 Some influential environment variables:
1347 CC C compiler command
1348 CFLAGS C compiler flags
1349 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1350 nonstandard directory <lib dir>
1351 LIBS libraries to pass to the linker, e.g. -l<library>
1352 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1353 you have headers in a nonstandard directory <include dir>
1354 CPP C preprocessor
1356 Use these variables to override the choices made by `configure' or to help
1357 it to find libraries and programs with nonstandard names/locations.
1359 Report bugs to the package provider.
1360 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1361 General help using GNU software: <http://www.gnu.org/gethelp/>.
1362 _ACEOF
1363 ac_status=$?
1366 if test "$ac_init_help" = "recursive"; then
1367 # If there are subdirs, report their specific --help.
1368 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1369 test -d "$ac_dir" ||
1370 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1371 continue
1372 ac_builddir=.
1374 case "$ac_dir" in
1375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1378 # A ".." for each directory in $ac_dir_suffix.
1379 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1380 case $ac_top_builddir_sub in
1381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1383 esac ;;
1384 esac
1385 ac_abs_top_builddir=$ac_pwd
1386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387 # for backward compatibility:
1388 ac_top_builddir=$ac_top_build_prefix
1390 case $srcdir in
1391 .) # We are building in place.
1392 ac_srcdir=.
1393 ac_top_srcdir=$ac_top_builddir_sub
1394 ac_abs_top_srcdir=$ac_pwd ;;
1395 [\\/]* | ?:[\\/]* ) # Absolute name.
1396 ac_srcdir=$srcdir$ac_dir_suffix;
1397 ac_top_srcdir=$srcdir
1398 ac_abs_top_srcdir=$srcdir ;;
1399 *) # Relative name.
1400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401 ac_top_srcdir=$ac_top_build_prefix$srcdir
1402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1403 esac
1404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406 cd "$ac_dir" || { ac_status=$?; continue; }
1407 # Check for guested configure.
1408 if test -f "$ac_srcdir/configure.gnu"; then
1409 echo &&
1410 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411 elif test -f "$ac_srcdir/configure"; then
1412 echo &&
1413 $SHELL "$ac_srcdir/configure" --help=recursive
1414 else
1415 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1416 fi || ac_status=$?
1417 cd "$ac_pwd" || { ac_status=$?; break; }
1418 done
1421 test -n "$ac_init_help" && exit $ac_status
1422 if $ac_init_version; then
1423 cat <<\_ACEOF
1424 GNU C Runtime Library configure 1.0
1425 generated by GNU Autoconf 2.64
1427 Copyright (C) 2009 Free Software Foundation, Inc.
1428 This configure script is free software; the Free Software Foundation
1429 gives unlimited permission to copy, distribute and modify it.
1430 _ACEOF
1431 exit
1434 ## ------------------------ ##
1435 ## Autoconf initialization. ##
1436 ## ------------------------ ##
1438 # ac_fn_c_try_compile LINENO
1439 # --------------------------
1440 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1441 ac_fn_c_try_compile ()
1443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1444 rm -f conftest.$ac_objext
1445 if { { ac_try="$ac_compile"
1446 case "(($ac_try" in
1447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1448 *) ac_try_echo=$ac_try;;
1449 esac
1450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1451 $as_echo "$ac_try_echo"; } >&5
1452 (eval "$ac_compile") 2>conftest.err
1453 ac_status=$?
1454 if test -s conftest.err; then
1455 grep -v '^ *+' conftest.err >conftest.er1
1456 cat conftest.er1 >&5
1457 mv -f conftest.er1 conftest.err
1459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1460 test $ac_status = 0; } && {
1461 test -z "$ac_c_werror_flag" ||
1462 test ! -s conftest.err
1463 } && test -s conftest.$ac_objext; then :
1464 ac_retval=0
1465 else
1466 $as_echo "$as_me: failed program was:" >&5
1467 sed 's/^/| /' conftest.$ac_ext >&5
1469 ac_retval=1
1471 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1472 return $ac_retval
1474 } # ac_fn_c_try_compile
1476 # ac_fn_c_try_cpp LINENO
1477 # ----------------------
1478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1479 ac_fn_c_try_cpp ()
1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482 if { { ac_try="$ac_cpp conftest.$ac_ext"
1483 case "(($ac_try" in
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1486 esac
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 $as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1490 ac_status=$?
1491 if test -s conftest.err; then
1492 grep -v '^ *+' conftest.err >conftest.er1
1493 cat conftest.er1 >&5
1494 mv -f conftest.er1 conftest.err
1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } >/dev/null && {
1498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1499 test ! -s conftest.err
1500 }; then :
1501 ac_retval=0
1502 else
1503 $as_echo "$as_me: failed program was:" >&5
1504 sed 's/^/| /' conftest.$ac_ext >&5
1506 ac_retval=1
1508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1509 return $ac_retval
1511 } # ac_fn_c_try_cpp
1513 # ac_fn_c_try_run LINENO
1514 # ----------------------
1515 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1516 # that executables *can* be run.
1517 ac_fn_c_try_run ()
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 if { { ac_try="$ac_link"
1521 case "(($ac_try" in
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1524 esac
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_link") 2>&5
1528 ac_status=$?
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1531 { { case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_try") 2>&5
1538 ac_status=$?
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; }; }; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: program exited with status $ac_status" >&5
1544 $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1547 ac_retval=$ac_status
1549 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1551 return $ac_retval
1553 } # ac_fn_c_try_run
1555 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1556 # --------------------------------------------
1557 # Tries to find the compile-time value of EXPR in a program that includes
1558 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1559 # computed
1560 ac_fn_c_compute_int ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if test "$cross_compiling" = yes; then
1564 # Depending upon the size, compute the lo and hi bounds.
1565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1566 /* end confdefs.h. */
1569 main ()
1571 static int test_array [1 - 2 * !(($2) >= 0)];
1572 test_array [0] = 0
1575 return 0;
1577 _ACEOF
1578 if ac_fn_c_try_compile "$LINENO"; then :
1579 ac_lo=0 ac_mid=0
1580 while :; do
1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582 /* end confdefs.h. */
1585 main ()
1587 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1588 test_array [0] = 0
1591 return 0;
1593 _ACEOF
1594 if ac_fn_c_try_compile "$LINENO"; then :
1595 ac_hi=$ac_mid; break
1596 else
1597 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1598 if test $ac_lo -le $ac_mid; then
1599 ac_lo= ac_hi=
1600 break
1602 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1605 done
1606 else
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1611 main ()
1613 static int test_array [1 - 2 * !(($2) < 0)];
1614 test_array [0] = 0
1617 return 0;
1619 _ACEOF
1620 if ac_fn_c_try_compile "$LINENO"; then :
1621 ac_hi=-1 ac_mid=-1
1622 while :; do
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1627 main ()
1629 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1630 test_array [0] = 0
1633 return 0;
1635 _ACEOF
1636 if ac_fn_c_try_compile "$LINENO"; then :
1637 ac_lo=$ac_mid; break
1638 else
1639 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1640 if test $ac_mid -le $ac_hi; then
1641 ac_lo= ac_hi=
1642 break
1644 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647 done
1648 else
1649 ac_lo= ac_hi=
1651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654 # Binary search between lo and hi bounds.
1655 while test "x$ac_lo" != "x$ac_hi"; do
1656 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h. */
1661 main ()
1663 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1664 test_array [0] = 0
1667 return 0;
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 ac_hi=$ac_mid
1672 else
1673 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 done
1677 case $ac_lo in #((
1678 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1679 '') ac_retval=1 ;;
1680 esac
1681 else
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1685 static long int longval () { return $2; }
1686 static unsigned long int ulongval () { return $2; }
1687 #include <stdio.h>
1688 #include <stdlib.h>
1690 main ()
1693 FILE *f = fopen ("conftest.val", "w");
1694 if (! f)
1695 return 1;
1696 if (($2) < 0)
1698 long int i = longval ();
1699 if (i != ($2))
1700 return 1;
1701 fprintf (f, "%ld", i);
1703 else
1705 unsigned long int i = ulongval ();
1706 if (i != ($2))
1707 return 1;
1708 fprintf (f, "%lu", i);
1710 /* Do not output a trailing newline, as this causes \r\n confusion
1711 on some platforms. */
1712 return ferror (f) || fclose (f) != 0;
1715 return 0;
1717 _ACEOF
1718 if ac_fn_c_try_run "$LINENO"; then :
1719 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1720 else
1721 ac_retval=1
1723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1724 conftest.$ac_objext conftest.beam conftest.$ac_ext
1725 rm -f conftest.val
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 return $ac_retval
1731 } # ac_fn_c_compute_int
1733 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1734 # ----------------------------------------------
1735 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1736 ac_fn_c_check_header_preproc ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_cpp "$LINENO"; then :
1749 eval "$3=yes"
1750 else
1751 eval "$3=no"
1753 rm -f conftest.err conftest.$ac_ext
1755 eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 } # ac_fn_c_check_header_preproc
1761 cat >config.log <<_ACEOF
1762 This file contains any messages produced by compilers while
1763 running configure, to aid debugging if configure makes a mistake.
1765 It was created by GNU C Runtime Library $as_me 1.0, which was
1766 generated by GNU Autoconf 2.64. Invocation command line was
1768 $ $0 $@
1770 _ACEOF
1771 exec 5>>config.log
1773 cat <<_ASUNAME
1774 ## --------- ##
1775 ## Platform. ##
1776 ## --------- ##
1778 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1779 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1780 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1781 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1782 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1784 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1785 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1787 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1788 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1789 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1790 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1791 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1792 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1793 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1795 _ASUNAME
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 for as_dir in $PATH
1800 IFS=$as_save_IFS
1801 test -z "$as_dir" && as_dir=.
1802 $as_echo "PATH: $as_dir"
1803 done
1804 IFS=$as_save_IFS
1806 } >&5
1808 cat >&5 <<_ACEOF
1811 ## ----------- ##
1812 ## Core tests. ##
1813 ## ----------- ##
1815 _ACEOF
1818 # Keep a trace of the command line.
1819 # Strip out --no-create and --no-recursion so they do not pile up.
1820 # Strip out --silent because we don't want to record it for future runs.
1821 # Also quote any args containing shell meta-characters.
1822 # Make two passes to allow for proper duplicate-argument suppression.
1823 ac_configure_args=
1824 ac_configure_args0=
1825 ac_configure_args1=
1826 ac_must_keep_next=false
1827 for ac_pass in 1 2
1829 for ac_arg
1831 case $ac_arg in
1832 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1834 | -silent | --silent | --silen | --sile | --sil)
1835 continue ;;
1836 *\'*)
1837 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1838 esac
1839 case $ac_pass in
1840 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1842 as_fn_append ac_configure_args1 " '$ac_arg'"
1843 if test $ac_must_keep_next = true; then
1844 ac_must_keep_next=false # Got value, back to normal.
1845 else
1846 case $ac_arg in
1847 *=* | --config-cache | -C | -disable-* | --disable-* \
1848 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1849 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1850 | -with-* | --with-* | -without-* | --without-* | --x)
1851 case "$ac_configure_args0 " in
1852 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1853 esac
1855 -* ) ac_must_keep_next=true ;;
1856 esac
1858 as_fn_append ac_configure_args " '$ac_arg'"
1860 esac
1861 done
1862 done
1863 { ac_configure_args0=; unset ac_configure_args0;}
1864 { ac_configure_args1=; unset ac_configure_args1;}
1866 # When interrupted or exit'd, cleanup temporary files, and complete
1867 # config.log. We remove comments because anyway the quotes in there
1868 # would cause problems or look ugly.
1869 # WARNING: Use '\'' to represent an apostrophe within the trap.
1870 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1871 trap 'exit_status=$?
1872 # Save into config.log some information that might help in debugging.
1874 echo
1876 cat <<\_ASBOX
1877 ## ---------------- ##
1878 ## Cache variables. ##
1879 ## ---------------- ##
1880 _ASBOX
1881 echo
1882 # The following way of writing the cache mishandles newlines in values,
1884 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1885 eval ac_val=\$$ac_var
1886 case $ac_val in #(
1887 *${as_nl}*)
1888 case $ac_var in #(
1889 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1890 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1891 esac
1892 case $ac_var in #(
1893 _ | IFS | as_nl) ;; #(
1894 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1895 *) { eval $ac_var=; unset $ac_var;} ;;
1896 esac ;;
1897 esac
1898 done
1899 (set) 2>&1 |
1900 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1901 *${as_nl}ac_space=\ *)
1902 sed -n \
1903 "s/'\''/'\''\\\\'\'''\''/g;
1904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1905 ;; #(
1907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1909 esac |
1910 sort
1912 echo
1914 cat <<\_ASBOX
1915 ## ----------------- ##
1916 ## Output variables. ##
1917 ## ----------------- ##
1918 _ASBOX
1919 echo
1920 for ac_var in $ac_subst_vars
1922 eval ac_val=\$$ac_var
1923 case $ac_val in
1924 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1925 esac
1926 $as_echo "$ac_var='\''$ac_val'\''"
1927 done | sort
1928 echo
1930 if test -n "$ac_subst_files"; then
1931 cat <<\_ASBOX
1932 ## ------------------- ##
1933 ## File substitutions. ##
1934 ## ------------------- ##
1935 _ASBOX
1936 echo
1937 for ac_var in $ac_subst_files
1939 eval ac_val=\$$ac_var
1940 case $ac_val in
1941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1942 esac
1943 $as_echo "$ac_var='\''$ac_val'\''"
1944 done | sort
1945 echo
1948 if test -s confdefs.h; then
1949 cat <<\_ASBOX
1950 ## ----------- ##
1951 ## confdefs.h. ##
1952 ## ----------- ##
1953 _ASBOX
1954 echo
1955 cat confdefs.h
1956 echo
1958 test "$ac_signal" != 0 &&
1959 $as_echo "$as_me: caught signal $ac_signal"
1960 $as_echo "$as_me: exit $exit_status"
1961 } >&5
1962 rm -f core *.core core.conftest.* &&
1963 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1964 exit $exit_status
1966 for ac_signal in 1 2 13 15; do
1967 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1968 done
1969 ac_signal=0
1971 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1972 rm -f -r conftest* confdefs.h
1974 $as_echo "/* confdefs.h */" > confdefs.h
1976 # Predefined preprocessor variables.
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_NAME "$PACKAGE_NAME"
1980 _ACEOF
1982 cat >>confdefs.h <<_ACEOF
1983 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1984 _ACEOF
1986 cat >>confdefs.h <<_ACEOF
1987 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1988 _ACEOF
1990 cat >>confdefs.h <<_ACEOF
1991 #define PACKAGE_STRING "$PACKAGE_STRING"
1992 _ACEOF
1994 cat >>confdefs.h <<_ACEOF
1995 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1996 _ACEOF
1998 cat >>confdefs.h <<_ACEOF
1999 #define PACKAGE_URL "$PACKAGE_URL"
2000 _ACEOF
2003 # Let the site file select an alternate cache file if it wants to.
2004 # Prefer an explicitly selected file to automatically selected ones.
2005 ac_site_file1=NONE
2006 ac_site_file2=NONE
2007 if test -n "$CONFIG_SITE"; then
2008 ac_site_file1=$CONFIG_SITE
2009 elif test "x$prefix" != xNONE; then
2010 ac_site_file1=$prefix/share/config.site
2011 ac_site_file2=$prefix/etc/config.site
2012 else
2013 ac_site_file1=$ac_default_prefix/share/config.site
2014 ac_site_file2=$ac_default_prefix/etc/config.site
2016 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2018 test "x$ac_site_file" = xNONE && continue
2019 if test -r "$ac_site_file"; then
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2021 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2022 sed 's/^/| /' "$ac_site_file" >&5
2023 . "$ac_site_file"
2025 done
2027 if test -r "$cache_file"; then
2028 # Some versions of bash will fail to source /dev/null (special
2029 # files actually), so we avoid doing that.
2030 if test -f "$cache_file"; then
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2032 $as_echo "$as_me: loading cache $cache_file" >&6;}
2033 case $cache_file in
2034 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2035 *) . "./$cache_file";;
2036 esac
2038 else
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2040 $as_echo "$as_me: creating cache $cache_file" >&6;}
2041 >$cache_file
2044 # Check that the precious variables saved in the cache have kept the same
2045 # value.
2046 ac_cache_corrupted=false
2047 for ac_var in $ac_precious_vars; do
2048 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2049 eval ac_new_set=\$ac_env_${ac_var}_set
2050 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2051 eval ac_new_val=\$ac_env_${ac_var}_value
2052 case $ac_old_set,$ac_new_set in
2053 set,)
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2055 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2056 ac_cache_corrupted=: ;;
2057 ,set)
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2059 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2060 ac_cache_corrupted=: ;;
2061 ,);;
2063 if test "x$ac_old_val" != "x$ac_new_val"; then
2064 # differences in whitespace do not lead to failure.
2065 ac_old_val_w=`echo x $ac_old_val`
2066 ac_new_val_w=`echo x $ac_new_val`
2067 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2069 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2070 ac_cache_corrupted=:
2071 else
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2073 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2074 eval $ac_var=\$ac_old_val
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2077 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2079 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2080 fi;;
2081 esac
2082 # Pass precious variables to config.status.
2083 if test "$ac_new_set" = set; then
2084 case $ac_new_val in
2085 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2086 *) ac_arg=$ac_var=$ac_new_val ;;
2087 esac
2088 case " $ac_configure_args " in
2089 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2090 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2091 esac
2093 done
2094 if $ac_cache_corrupted; then
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2098 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2099 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2101 ## -------------------- ##
2102 ## Main body of script. ##
2103 ## -------------------- ##
2105 ac_ext=c
2106 ac_cpp='$CPP $CPPFLAGS'
2107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2117 # The libgcc should not depend on any header files
2121 # Check whether --with-target-subdir was given.
2122 if test "${with_target_subdir+set}" = set; then :
2123 withval=$with_target_subdir;
2127 # Check whether --with-cross-host was given.
2128 if test "${with_cross_host+set}" = set; then :
2129 withval=$with_cross_host;
2133 # Check whether --with-ld was given.
2134 if test "${with_ld+set}" = set; then :
2135 withval=$with_ld;
2139 if test "${srcdir}" = "."; then
2140 if test -n "${with_build_subdir}"; then
2141 libgcc_topdir="${srcdir}/../.."
2142 with_target_subdir=
2143 elif test -z "${with_target_subdir}"; then
2144 libgcc_topdir="${srcdir}/.."
2145 else
2146 if test "${with_target_subdir}" != "."; then
2147 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2148 else
2149 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2152 else
2153 libgcc_topdir="${srcdir}/.."
2156 ac_aux_dir=
2157 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2158 for ac_t in install-sh install.sh shtool; do
2159 if test -f "$ac_dir/$ac_t"; then
2160 ac_aux_dir=$ac_dir
2161 ac_install_sh="$ac_aux_dir/$ac_t -c"
2162 break 2
2164 done
2165 done
2166 if test -z "$ac_aux_dir"; then
2167 as_fn_error "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2170 # These three variables are undocumented and unsupported,
2171 # and are intended to be withdrawn in a future Autoconf release.
2172 # They can cause serious problems if a builder's source tree is in a directory
2173 # whose full name contains unusual characters.
2174 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2175 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2176 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2179 ac_config_headers="$ac_config_headers auto-target.h:config.in"
2182 # Check whether --enable-shared was given.
2183 if test "${enable_shared+set}" = set; then :
2184 enableval=$enable_shared;
2185 case $enable_shared in
2186 yes | no) ;;
2188 enable_shared=no
2189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2190 for pkg in $enableval; do
2191 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2192 enable_shared=yes
2194 done
2195 IFS="$ac_save_ifs"
2197 esac
2199 else
2200 enable_shared=yes
2205 # Check whether --enable-gcov was given.
2206 if test "${enable_gcov+set}" = set; then :
2207 enableval=$enable_gcov;
2208 else
2209 enable_gcov=yes
2214 # Check whether --enable-vtable-verify was given.
2215 if test "${enable_vtable_verify+set}" = set; then :
2216 enableval=$enable_vtable_verify; case "$enableval" in
2217 yes) enable_vtable_verify=yes ;;
2218 no) enable_vtable_verify=no ;;
2219 *) enable_vtable_verify=no;;
2220 esac
2221 else
2222 enable_vtable_verify=no
2228 # Check whether --with-aix-soname was given.
2229 if test "${with_aix_soname+set}" = set; then :
2230 withval=$with_aix_soname; case "${host}:${enable_shared}" in
2231 power*-*-aix[5-9]*:yes)
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5
2233 $as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; }
2234 case ${withval} in
2235 aix|svr4|both) ;;
2236 *) as_fn_error "Unknown argument to --with-aix-soname" "$LINENO" 5;;
2237 esac
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2239 $as_echo "$withval" >&6; }
2241 *) with_aix_soname=aix ;;
2242 esac
2244 else
2245 with_aix_soname=aix
2250 # Make sure we can run config.sub.
2251 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2252 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2255 $as_echo_n "checking build system type... " >&6; }
2256 if test "${ac_cv_build+set}" = set; then :
2257 $as_echo_n "(cached) " >&6
2258 else
2259 ac_build_alias=$build_alias
2260 test "x$ac_build_alias" = x &&
2261 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2262 test "x$ac_build_alias" = x &&
2263 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2264 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2265 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2269 $as_echo "$ac_cv_build" >&6; }
2270 case $ac_cv_build in
2271 *-*-*) ;;
2272 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2273 esac
2274 build=$ac_cv_build
2275 ac_save_IFS=$IFS; IFS='-'
2276 set x $ac_cv_build
2277 shift
2278 build_cpu=$1
2279 build_vendor=$2
2280 shift; shift
2281 # Remember, the first character of IFS is used to create $*,
2282 # except with old shells:
2283 build_os=$*
2284 IFS=$ac_save_IFS
2285 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2289 $as_echo_n "checking host system type... " >&6; }
2290 if test "${ac_cv_host+set}" = set; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 if test "x$host_alias" = x; then
2294 ac_cv_host=$ac_cv_build
2295 else
2296 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2297 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2302 $as_echo "$ac_cv_host" >&6; }
2303 case $ac_cv_host in
2304 *-*-*) ;;
2305 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2306 esac
2307 host=$ac_cv_host
2308 ac_save_IFS=$IFS; IFS='-'
2309 set x $ac_cv_host
2310 shift
2311 host_cpu=$1
2312 host_vendor=$2
2313 shift; shift
2314 # Remember, the first character of IFS is used to create $*,
2315 # except with old shells:
2316 host_os=$*
2317 IFS=$ac_save_IFS
2318 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2325 case "${host}" in
2326 # PIC is the default on some targets or must not be used.
2327 *-*-darwin*)
2328 # For darwin, common symbols are not allowed in MH_DYLIB files
2329 case "${CFLAGS}" in
2330 # If we are using a compiler supporting mdynamic-no-pic
2331 # and the option has been tested as safe to add, then cancel
2332 # it here, since the code generated is incompatible with shared
2333 # libs.
2334 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
2335 *) PICFLAG=-fno-common ;;
2336 esac
2338 alpha*-dec-osf5*)
2339 # PIC is the default.
2341 hppa*64*-*-hpux*)
2342 # PIC is the default for 64-bit PA HP-UX.
2344 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2346 i[34567]86-*-mingw* | x86_64-*-mingw*)
2348 i[34567]86-*-interix[3-9]*)
2349 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2350 # Instead, we relocate shared libraries at runtime.
2352 i[34567]86-*-nto-qnx*)
2353 # QNX uses GNU C++, but need to define -shared option too, otherwise
2354 # it will coredump.
2355 PICFLAG='-fPIC -shared'
2357 i[34567]86-pc-msdosdjgpp*)
2358 # DJGPP does not support shared libraries at all.
2360 ia64*-*-hpux*)
2361 # On IA64 HP-UX, PIC is the default but the pic flag
2362 # sets the default TLS model and affects inlining.
2363 PICFLAG=-fPIC
2365 mips-sgi-irix6*)
2366 # PIC is the default.
2368 rs6000-ibm-aix* | powerpc-ibm-aix*)
2369 # All AIX code is PIC.
2372 # Some targets support both -fPIC and -fpic, but prefer the latter.
2373 # FIXME: Why?
2374 i[34567]86-*-* | x86_64-*-*)
2375 PICFLAG=-fpic
2377 # FIXME: Override -fPIC default in libgcc only?
2378 sh-*-linux* | sh[2346lbe]*-*-linux*)
2379 PICFLAG=-fpic
2381 # FIXME: Simplify to sh*-*-netbsd*?
2382 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2383 sh64-*-netbsd* | sh64l*-*-netbsd*)
2384 PICFLAG=-fpic
2386 # Default to -fPIC unless specified otherwise.
2388 PICFLAG=-fPIC
2390 esac
2392 # If the user explicitly uses -fpic/-fPIC, keep that.
2393 case "${CFLAGS}" in
2394 *-fpic*)
2395 PICFLAG=-fpic
2397 *-fPIC*)
2398 PICFLAG=-fPIC
2400 esac
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2405 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2406 # Check whether --enable-version-specific-runtime-libs was given.
2407 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2408 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2409 yes) version_specific_libs=yes ;;
2410 no) version_specific_libs=no ;;
2411 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2412 esac
2413 else
2414 version_specific_libs=no
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2418 $as_echo "$version_specific_libs" >&6; }
2421 # Check whether --with-slibdir was given.
2422 if test "${with_slibdir+set}" = set; then :
2423 withval=$with_slibdir; slibdir="$with_slibdir"
2424 else
2425 if test "${version_specific_libs}" = yes; then
2426 slibdir='$(libsubdir)'
2427 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2428 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2429 else
2430 slibdir='$(libdir)'
2436 # Command-line options.
2437 # Very limited version of AC_MAINTAINER_MODE.
2438 # Check whether --enable-maintainer-mode was given.
2439 if test "${enable_maintainer_mode+set}" = set; then :
2440 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2441 yes) MAINT='' ;;
2442 no) MAINT='#' ;;
2443 *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2444 esac
2445 maintainer_mode=${enableval}
2446 else
2447 MAINT='#'
2451 # Find a good install program. We prefer a C program (faster),
2452 # so one script is as good as another. But avoid the broken or
2453 # incompatible versions:
2454 # SysV /etc/install, /usr/sbin/install
2455 # SunOS /usr/etc/install
2456 # IRIX /sbin/install
2457 # AIX /bin/install
2458 # AmigaOS /C/install, which installs bootblocks on floppy discs
2459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2462 # OS/2's system install, which has a completely different semantic
2463 # ./install, which can be erroneously created by make from ./install.sh.
2464 # Reject install programs that cannot install multiple files.
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2466 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2467 if test -z "$INSTALL"; then
2468 if test "${ac_cv_path_install+set}" = set; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 # Account for people who put trailing slashes in PATH elements.
2477 case $as_dir/ in #((
2478 ./ | .// | /[cC]/* | \
2479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2480 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2481 /usr/ucb/* ) ;;
2483 # OSF1 and SCO ODT 3.0 have their own names for install.
2484 # Don't use installbsd from OSF since it installs stuff as root
2485 # by default.
2486 for ac_prog in ginstall scoinst install; do
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2489 if test $ac_prog = install &&
2490 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2491 # AIX install. It has an incompatible calling convention.
2493 elif test $ac_prog = install &&
2494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2495 # program-specific install script used by HP pwplus--don't use.
2497 else
2498 rm -rf conftest.one conftest.two conftest.dir
2499 echo one > conftest.one
2500 echo two > conftest.two
2501 mkdir conftest.dir
2502 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2503 test -s conftest.one && test -s conftest.two &&
2504 test -s conftest.dir/conftest.one &&
2505 test -s conftest.dir/conftest.two
2506 then
2507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2508 break 3
2512 done
2513 done
2515 esac
2517 done
2518 IFS=$as_save_IFS
2520 rm -rf conftest.one conftest.two conftest.dir
2523 if test "${ac_cv_path_install+set}" = set; then
2524 INSTALL=$ac_cv_path_install
2525 else
2526 # As a last resort, use the slow shell script. Don't cache a
2527 # value for INSTALL within a source directory, because that will
2528 # break other packages using the cache if that directory is
2529 # removed, or if the value is a relative name.
2530 INSTALL=$ac_install_sh
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2534 $as_echo "$INSTALL" >&6; }
2536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2537 # It thinks the first close brace ends the variable substitution.
2538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2545 for ac_prog in gawk mawk nawk awk
2547 # Extract the first word of "$ac_prog", so it can be a program name with args.
2548 set dummy $ac_prog; ac_word=$2
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if test "${ac_cv_prog_AWK+set}" = set; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 if test -n "$AWK"; then
2555 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 ac_cv_prog_AWK="$ac_prog"
2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2568 done
2569 done
2570 IFS=$as_save_IFS
2574 AWK=$ac_cv_prog_AWK
2575 if test -n "$AWK"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2577 $as_echo "$AWK" >&6; }
2578 else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2584 test -n "$AWK" && break
2585 done
2587 # We need awk; bail out if it's missing.
2588 case ${AWK} in
2589 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
2590 esac
2593 case ${build_alias} in
2594 "") build_noncanonical=${build} ;;
2595 *) build_noncanonical=${build_alias} ;;
2596 esac
2598 case ${host_alias} in
2599 "") host_noncanonical=${build_noncanonical} ;;
2600 *) host_noncanonical=${host_alias} ;;
2601 esac
2605 case ${target_alias} in
2606 "") target_noncanonical=${host_noncanonical} ;;
2607 *) target_noncanonical=${target_alias} ;;
2608 esac
2613 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2614 # have matching libraries, they should use host libraries: Makefile.tpl
2615 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2616 # However, they still use the build modules, because the corresponding
2617 # host modules (e.g. bison) are only built for the host when bootstrap
2618 # finishes. So:
2619 # - build_subdir is where we find build modules, and never changes.
2620 # - build_libsubdir is where we find build libraries, and can be overridden.
2622 # Prefix 'build-' so this never conflicts with target_subdir.
2623 build_subdir="build-${build_noncanonical}"
2625 # Check whether --with-build-libsubdir was given.
2626 if test "${with_build_libsubdir+set}" = set; then :
2627 withval=$with_build_libsubdir; build_libsubdir="$withval"
2628 else
2629 build_libsubdir="$build_subdir"
2632 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2633 if ( test $srcdir = . && test -d gcc ) \
2634 || test -d $srcdir/../host-${host_noncanonical}; then
2635 host_subdir="host-${host_noncanonical}"
2636 else
2637 host_subdir=.
2639 # No prefix.
2640 target_subdir=${target_noncanonical}
2643 # Calculate toolexeclibdir
2644 # Also toolexecdir, though it's only used in toolexeclibdir
2645 case ${version_specific_libs} in
2646 yes)
2647 # Need the gcc compiler version to know where to install libraries
2648 # and header files if --enable-version-specific-runtime-libs option
2649 # is selected.
2650 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2651 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2654 if test -n "$with_cross_host" &&
2655 test x"$with_cross_host" != x"no"; then
2656 # Install a library built with a cross compiler in tooldir, not libdir.
2657 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2658 toolexeclibdir='$(toolexecdir)/lib'
2659 else
2660 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2661 toolexeclibdir='$(libdir)'
2663 multi_os_directory=`$CC -print-multi-os-directory`
2664 case $multi_os_directory in
2665 .) ;; # Avoid trailing /.
2666 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2667 esac
2669 esac
2673 if test -n "$ac_tool_prefix"; then
2674 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2675 set dummy ${ac_tool_prefix}ar; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if test "${ac_cv_prog_AR+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$AR"; then
2682 ac_cv_prog_AR="$AR" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_AR="${ac_tool_prefix}ar"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2695 done
2696 done
2697 IFS=$as_save_IFS
2701 AR=$ac_cv_prog_AR
2702 if test -n "$AR"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2704 $as_echo "$AR" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2712 if test -z "$ac_cv_prog_AR"; then
2713 ac_ct_AR=$AR
2714 # Extract the first word of "ar", so it can be a program name with args.
2715 set dummy ar; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 if test -n "$ac_ct_AR"; then
2722 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_ac_ct_AR="ar"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2735 done
2736 done
2737 IFS=$as_save_IFS
2741 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2742 if test -n "$ac_ct_AR"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2744 $as_echo "$ac_ct_AR" >&6; }
2745 else
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2750 if test "x$ac_ct_AR" = x; then
2751 AR=""
2752 else
2753 case $cross_compiling:$ac_tool_warned in
2754 yes:)
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2757 ac_tool_warned=yes ;;
2758 esac
2759 AR=$ac_ct_AR
2761 else
2762 AR="$ac_cv_prog_AR"
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if test "${ac_cv_prog_LIPO+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test -n "$LIPO"; then
2774 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2787 done
2788 done
2789 IFS=$as_save_IFS
2793 LIPO=$ac_cv_prog_LIPO
2794 if test -n "$LIPO"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2796 $as_echo "$LIPO" >&6; }
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2804 if test -z "$ac_cv_prog_LIPO"; then
2805 ac_ct_LIPO=$LIPO
2806 # Extract the first word of "lipo", so it can be a program name with args.
2807 set dummy lipo; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$ac_ct_LIPO"; then
2814 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_ac_ct_LIPO="lipo"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2827 done
2828 done
2829 IFS=$as_save_IFS
2833 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2834 if test -n "$ac_ct_LIPO"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2836 $as_echo "$ac_ct_LIPO" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2842 if test "x$ac_ct_LIPO" = x; then
2843 LIPO=":"
2844 else
2845 case $cross_compiling:$ac_tool_warned in
2846 yes:)
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849 ac_tool_warned=yes ;;
2850 esac
2851 LIPO=$ac_ct_LIPO
2853 else
2854 LIPO="$ac_cv_prog_LIPO"
2857 if test -n "$ac_tool_prefix"; then
2858 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2859 set dummy ${ac_tool_prefix}nm; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_NM+set}" = set; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 if test -n "$NM"; then
2866 ac_cv_prog_NM="$NM" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875 ac_cv_prog_NM="${ac_tool_prefix}nm"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2879 done
2880 done
2881 IFS=$as_save_IFS
2885 NM=$ac_cv_prog_NM
2886 if test -n "$NM"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2888 $as_echo "$NM" >&6; }
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2896 if test -z "$ac_cv_prog_NM"; then
2897 ac_ct_NM=$NM
2898 # Extract the first word of "nm", so it can be a program name with args.
2899 set dummy nm; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 if test -n "$ac_ct_NM"; then
2906 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 ac_cv_prog_ac_ct_NM="nm"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 break 2
2919 done
2920 done
2921 IFS=$as_save_IFS
2925 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2926 if test -n "$ac_ct_NM"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2928 $as_echo "$ac_ct_NM" >&6; }
2929 else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2934 if test "x$ac_ct_NM" = x; then
2935 NM=""
2936 else
2937 case $cross_compiling:$ac_tool_warned in
2938 yes:)
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2941 ac_tool_warned=yes ;;
2942 esac
2943 NM=$ac_ct_NM
2945 else
2946 NM="$ac_cv_prog_NM"
2949 if test -n "$ac_tool_prefix"; then
2950 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2951 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if test "${ac_cv_prog_RANLIB+set}" = set; then :
2955 $as_echo_n "(cached) " >&6
2956 else
2957 if test -n "$RANLIB"; then
2958 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2971 done
2972 done
2973 IFS=$as_save_IFS
2977 RANLIB=$ac_cv_prog_RANLIB
2978 if test -n "$RANLIB"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2980 $as_echo "$RANLIB" >&6; }
2981 else
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2988 if test -z "$ac_cv_prog_RANLIB"; then
2989 ac_ct_RANLIB=$RANLIB
2990 # Extract the first word of "ranlib", so it can be a program name with args.
2991 set dummy ranlib; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2995 $as_echo_n "(cached) " >&6
2996 else
2997 if test -n "$ac_ct_RANLIB"; then
2998 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_ac_ct_RANLIB="ranlib"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3011 done
3012 done
3013 IFS=$as_save_IFS
3017 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3018 if test -n "$ac_ct_RANLIB"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3020 $as_echo "$ac_ct_RANLIB" >&6; }
3021 else
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3026 if test "x$ac_ct_RANLIB" = x; then
3027 RANLIB=":"
3028 else
3029 case $cross_compiling:$ac_tool_warned in
3030 yes:)
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033 ac_tool_warned=yes ;;
3034 esac
3035 RANLIB=$ac_ct_RANLIB
3037 else
3038 RANLIB="$ac_cv_prog_RANLIB"
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3043 set dummy ${ac_tool_prefix}strip; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if test "${ac_cv_prog_STRIP+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 if test -n "$STRIP"; then
3050 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3063 done
3064 done
3065 IFS=$as_save_IFS
3069 STRIP=$ac_cv_prog_STRIP
3070 if test -n "$STRIP"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3072 $as_echo "$STRIP" >&6; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3080 if test -z "$ac_cv_prog_STRIP"; then
3081 ac_ct_STRIP=$STRIP
3082 # Extract the first word of "strip", so it can be a program name with args.
3083 set dummy strip; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$ac_ct_STRIP"; then
3090 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099 ac_cv_prog_ac_ct_STRIP="strip"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3103 done
3104 done
3105 IFS=$as_save_IFS
3109 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3110 if test -n "$ac_ct_STRIP"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3112 $as_echo "$ac_ct_STRIP" >&6; }
3113 else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3118 if test "x$ac_ct_STRIP" = x; then
3119 STRIP=":"
3120 else
3121 case $cross_compiling:$ac_tool_warned in
3122 yes:)
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3125 ac_tool_warned=yes ;;
3126 esac
3127 STRIP=$ac_ct_STRIP
3129 else
3130 STRIP="$ac_cv_prog_STRIP"
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3134 $as_echo_n "checking whether ln -s works... " >&6; }
3135 LN_S=$as_ln_s
3136 if test "$LN_S" = "ln -s"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 $as_echo "yes" >&6; }
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3141 $as_echo "no, using $LN_S" >&6; }
3146 ac_ext=c
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3153 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_CC+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3173 done
3174 done
3175 IFS=$as_save_IFS
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3190 if test -z "$ac_cv_prog_CC"; then
3191 ac_ct_CC=$CC
3192 # Extract the first word of "gcc", so it can be a program name with args.
3193 set dummy gcc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_ac_ct_CC="gcc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3213 done
3214 done
3215 IFS=$as_save_IFS
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3228 if test "x$ac_ct_CC" = x; then
3229 CC=""
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237 CC=$ac_ct_CC
3239 else
3240 CC="$ac_cv_prog_CC"
3243 if test -z "$CC"; then
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}cc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_CC+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="${ac_tool_prefix}cc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3266 done
3267 done
3268 IFS=$as_save_IFS
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3284 if test -z "$CC"; then
3285 # Extract the first word of "cc", so it can be a program name with args.
3286 set dummy cc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if test "${ac_cv_prog_CC+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 ac_prog_rejected=no
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3304 ac_prog_rejected=yes
3305 continue
3307 ac_cv_prog_CC="cc"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3311 done
3312 done
3313 IFS=$as_save_IFS
3315 if test $ac_prog_rejected = yes; then
3316 # We found a bogon in the path, so make sure we never use it.
3317 set dummy $ac_cv_prog_CC
3318 shift
3319 if test $# != 0; then
3320 # We chose a different compiler from the bogus one.
3321 # However, it has the same basename, so the bogon will be chosen
3322 # first if we set CC to just the basename; use the full file name.
3323 shift
3324 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3329 CC=$ac_cv_prog_CC
3330 if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3340 if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 for ac_prog in cl.exe
3344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if test "${ac_cv_prog_CC+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3365 done
3366 done
3367 IFS=$as_save_IFS
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3381 test -n "$CC" && break
3382 done
3384 if test -z "$CC"; then
3385 ac_ct_CC=$CC
3386 for ac_prog in cl.exe
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy $ac_prog; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_ac_ct_CC="$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3409 done
3410 done
3411 IFS=$as_save_IFS
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418 $as_echo "$ac_ct_CC" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3425 test -n "$ac_ct_CC" && break
3426 done
3428 if test "x$ac_ct_CC" = x; then
3429 CC=""
3430 else
3431 case $cross_compiling:$ac_tool_warned in
3432 yes:)
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned=yes ;;
3436 esac
3437 CC=$ac_ct_CC
3444 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error "no acceptable C compiler found in \$PATH
3447 See \`config.log' for more details." "$LINENO" 5; }
3449 # Provide some information about the compiler.
3450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3451 set X $ac_compile
3452 ac_compiler=$2
3453 for ac_option in --version -v -V -qversion; do
3454 { { ac_try="$ac_compiler $ac_option >&5"
3455 case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3462 ac_status=$?
3463 if test -s conftest.err; then
3464 sed '10a\
3465 ... rest of stderr output deleted ...
3466 10q' conftest.err >conftest.er1
3467 cat conftest.er1 >&5
3468 rm -f conftest.er1 conftest.err
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3472 done
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3478 main ()
3482 return 0;
3484 _ACEOF
3485 # FIXME: Cleanup?
3486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3487 (eval $ac_link) 2>&5
3488 ac_status=$?
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }; then :
3491 gcc_no_link=no
3492 else
3493 gcc_no_link=yes
3495 if test x$gcc_no_link = xyes; then
3496 # Setting cross_compile will disable run tests; it will
3497 # also disable AC_CHECK_FILE but that's generally
3498 # correct if we can't link.
3499 cross_compiling=yes
3500 EXEEXT=
3501 else
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3506 main ()
3510 return 0;
3512 _ACEOF
3513 ac_clean_files_save=$ac_clean_files
3514 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3515 # Try to create an executable without -o first, disregard a.out.
3516 # It will help us diagnose broken compilers, and finding out an intuition
3517 # of exeext.
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3519 $as_echo_n "checking for C compiler default output file name... " >&6; }
3520 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3522 # The possible output files:
3523 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3525 ac_rmfiles=
3526 for ac_file in $ac_files
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3530 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3531 esac
3532 done
3533 rm -f $ac_rmfiles
3535 if { { ac_try="$ac_link_default"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541 $as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_link_default") 2>&5
3543 ac_status=$?
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }; then :
3546 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3547 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3548 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3549 # so that the user can short-circuit this test for compilers unknown to
3550 # Autoconf.
3551 for ac_file in $ac_files ''
3553 test -f "$ac_file" || continue
3554 case $ac_file in
3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3557 [ab].out )
3558 # We found the default executable, but exeext='' is most
3559 # certainly right.
3560 break;;
3561 *.* )
3562 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3563 then :; else
3564 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3566 # We set ac_cv_exeext here because the later test for it is not
3567 # safe: cross compilers may not add the suffix if given an `-o'
3568 # argument, so we may need to know it at that point already.
3569 # Even if this section looks crufty: it has the advantage of
3570 # actually working.
3571 break;;
3573 break;;
3574 esac
3575 done
3576 test "$ac_cv_exeext" = no && ac_cv_exeext=
3578 else
3579 ac_file=''
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3582 $as_echo "$ac_file" >&6; }
3583 if test -z "$ac_file"; then :
3584 $as_echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 { as_fn_set_status 77
3590 as_fn_error "C compiler cannot create executables
3591 See \`config.log' for more details." "$LINENO" 5; }; }
3593 ac_exeext=$ac_cv_exeext
3595 # Check that the compiler produces executables we can run. If not, either
3596 # the compiler is broken, or we cross compile.
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3598 $as_echo_n "checking whether the C compiler works... " >&6; }
3599 # If not cross compiling, check that we can run a simple program.
3600 if test "$cross_compiling" != yes; then
3601 if { ac_try='./$ac_file'
3602 { { case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_try") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }; }; then
3612 cross_compiling=no
3613 else
3614 if test "$cross_compiling" = maybe; then
3615 cross_compiling=yes
3616 else
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error "cannot run C compiled programs.
3620 If you meant to cross compile, use \`--host'.
3621 See \`config.log' for more details." "$LINENO" 5; }
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626 $as_echo "yes" >&6; }
3628 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3629 ac_clean_files=$ac_clean_files_save
3630 # Check that the compiler produces executables we can run. If not, either
3631 # the compiler is broken, or we cross compile.
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3633 $as_echo_n "checking whether we are cross compiling... " >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3635 $as_echo "$cross_compiling" >&6; }
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3638 $as_echo_n "checking for suffix of executables... " >&6; }
3639 if { { ac_try="$ac_link"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_link") 2>&5
3647 ac_status=$?
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }; then :
3650 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3651 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3652 # work properly (i.e., refer to `conftest.exe'), while it won't with
3653 # `rm'.
3654 for ac_file in conftest.exe conftest conftest.*; do
3655 test -f "$ac_file" || continue
3656 case $ac_file in
3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3659 break;;
3660 * ) break;;
3661 esac
3662 done
3663 else
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error "cannot compute suffix of executables: cannot compile and link
3667 See \`config.log' for more details." "$LINENO" 5; }
3669 rm -f conftest$ac_cv_exeext
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3671 $as_echo "$ac_cv_exeext" >&6; }
3673 rm -f conftest.$ac_ext
3674 EXEEXT=$ac_cv_exeext
3675 ac_exeext=$EXEEXT
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3678 $as_echo_n "checking for suffix of object files... " >&6; }
3679 if test "${ac_cv_objext+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3686 main ()
3690 return 0;
3692 _ACEOF
3693 rm -f conftest.o conftest.obj
3694 if { { ac_try="$ac_compile"
3695 case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_compile") 2>&5
3702 ac_status=$?
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }; then :
3705 for ac_file in conftest.o conftest.obj conftest.*; do
3706 test -f "$ac_file" || continue;
3707 case $ac_file in
3708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3709 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3710 break;;
3711 esac
3712 done
3713 else
3714 $as_echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3719 as_fn_error "cannot compute suffix of object files: cannot compile
3720 See \`config.log' for more details." "$LINENO" 5; }
3722 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3725 $as_echo "$ac_cv_objext" >&6; }
3726 OBJEXT=$ac_cv_objext
3727 ac_objext=$OBJEXT
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3729 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3730 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3737 main ()
3739 #ifndef __GNUC__
3740 choke me
3741 #endif
3744 return 0;
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_compiler_gnu=yes
3749 else
3750 ac_compiler_gnu=no
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3757 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3758 if test $ac_compiler_gnu = yes; then
3759 GCC=yes
3760 else
3761 GCC=
3763 ac_test_CFLAGS=${CFLAGS+set}
3764 ac_save_CFLAGS=$CFLAGS
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3766 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3767 if test "${ac_cv_prog_cc_g+set}" = set; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 ac_save_c_werror_flag=$ac_c_werror_flag
3771 ac_c_werror_flag=yes
3772 ac_cv_prog_cc_g=no
3773 CFLAGS="-g"
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3778 main ()
3782 return 0;
3784 _ACEOF
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786 ac_cv_prog_cc_g=yes
3787 else
3788 CFLAGS=""
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3793 main ()
3797 return 0;
3799 _ACEOF
3800 if ac_fn_c_try_compile "$LINENO"; then :
3802 else
3803 ac_c_werror_flag=$ac_save_c_werror_flag
3804 CFLAGS="-g"
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3809 main ()
3813 return 0;
3815 _ACEOF
3816 if ac_fn_c_try_compile "$LINENO"; then :
3817 ac_cv_prog_cc_g=yes
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_c_werror_flag=$ac_save_c_werror_flag
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3827 $as_echo "$ac_cv_prog_cc_g" >&6; }
3828 if test "$ac_test_CFLAGS" = set; then
3829 CFLAGS=$ac_save_CFLAGS
3830 elif test $ac_cv_prog_cc_g = yes; then
3831 if test "$GCC" = yes; then
3832 CFLAGS="-g -O2"
3833 else
3834 CFLAGS="-g"
3836 else
3837 if test "$GCC" = yes; then
3838 CFLAGS="-O2"
3839 else
3840 CFLAGS=
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3844 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3845 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 ac_cv_prog_cc_c89=no
3849 ac_save_CC=$CC
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3852 #include <stdarg.h>
3853 #include <stdio.h>
3854 #include <sys/types.h>
3855 #include <sys/stat.h>
3856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3857 struct buf { int x; };
3858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3859 static char *e (p, i)
3860 char **p;
3861 int i;
3863 return p[i];
3865 static char *f (char * (*g) (char **, int), char **p, ...)
3867 char *s;
3868 va_list v;
3869 va_start (v,p);
3870 s = g (p, va_arg (v,int));
3871 va_end (v);
3872 return s;
3875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3876 function prototypes and stuff, but not '\xHH' hex character constants.
3877 These don't provoke an error unfortunately, instead are silently treated
3878 as 'x'. The following induces an error, until -std is added to get
3879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3880 array size at least. It's necessary to write '\x00'==0 to get something
3881 that's true only with -std. */
3882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3885 inside strings and character constants. */
3886 #define FOO(x) 'x'
3887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3889 int test (int i, double x);
3890 struct s1 {int (*f) (int a);};
3891 struct s2 {int (*f) (double a);};
3892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3893 int argc;
3894 char **argv;
3896 main ()
3898 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3900 return 0;
3902 _ACEOF
3903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3904 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3906 CC="$ac_save_CC $ac_arg"
3907 if ac_fn_c_try_compile "$LINENO"; then :
3908 ac_cv_prog_cc_c89=$ac_arg
3910 rm -f core conftest.err conftest.$ac_objext
3911 test "x$ac_cv_prog_cc_c89" != "xno" && break
3912 done
3913 rm -f conftest.$ac_ext
3914 CC=$ac_save_CC
3917 # AC_CACHE_VAL
3918 case "x$ac_cv_prog_cc_c89" in
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3921 $as_echo "none needed" >&6; } ;;
3922 xno)
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3924 $as_echo "unsupported" >&6; } ;;
3926 CC="$CC $ac_cv_prog_cc_c89"
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3928 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3929 esac
3930 if test "x$ac_cv_prog_cc_c89" != xno; then :
3934 ac_ext=c
3935 ac_cpp='$CPP $CPPFLAGS'
3936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940 ac_ext=c
3941 ac_cpp='$CPP $CPPFLAGS'
3942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3946 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3947 # On Suns, sometimes $CPP names a directory.
3948 if test -n "$CPP" && test -d "$CPP"; then
3949 CPP=
3951 if test -z "$CPP"; then
3952 if test "${ac_cv_prog_CPP+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3955 # Double quotes because CPP needs to be expanded
3956 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3958 ac_preproc_ok=false
3959 for ac_c_preproc_warn_flag in '' yes
3961 # Use a header file that comes with gcc, so configuring glibc
3962 # with a fresh cross-compiler works.
3963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3964 # <limits.h> exists even on freestanding compilers.
3965 # On the NeXT, cc -E runs the code through the compiler's parser,
3966 # not just through cpp. "Syntax error" is here to catch this case.
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3969 #ifdef __STDC__
3970 # include <limits.h>
3971 #else
3972 # include <assert.h>
3973 #endif
3974 Syntax error
3975 _ACEOF
3976 if ac_fn_c_try_cpp "$LINENO"; then :
3978 else
3979 # Broken: fails on valid input.
3980 continue
3982 rm -f conftest.err conftest.$ac_ext
3984 # OK, works on sane cases. Now check whether nonexistent headers
3985 # can be detected and how.
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988 #include <ac_nonexistent.h>
3989 _ACEOF
3990 if ac_fn_c_try_cpp "$LINENO"; then :
3991 # Broken: success on invalid input.
3992 continue
3993 else
3994 # Passes both tests.
3995 ac_preproc_ok=:
3996 break
3998 rm -f conftest.err conftest.$ac_ext
4000 done
4001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002 rm -f conftest.err conftest.$ac_ext
4003 if $ac_preproc_ok; then :
4004 break
4007 done
4008 ac_cv_prog_CPP=$CPP
4011 CPP=$ac_cv_prog_CPP
4012 else
4013 ac_cv_prog_CPP=$CPP
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4016 $as_echo "$CPP" >&6; }
4017 ac_preproc_ok=false
4018 for ac_c_preproc_warn_flag in '' yes
4020 # Use a header file that comes with gcc, so configuring glibc
4021 # with a fresh cross-compiler works.
4022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023 # <limits.h> exists even on freestanding compilers.
4024 # On the NeXT, cc -E runs the code through the compiler's parser,
4025 # not just through cpp. "Syntax error" is here to catch this case.
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028 #ifdef __STDC__
4029 # include <limits.h>
4030 #else
4031 # include <assert.h>
4032 #endif
4033 Syntax error
4034 _ACEOF
4035 if ac_fn_c_try_cpp "$LINENO"; then :
4037 else
4038 # Broken: fails on valid input.
4039 continue
4041 rm -f conftest.err conftest.$ac_ext
4043 # OK, works on sane cases. Now check whether nonexistent headers
4044 # can be detected and how.
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047 #include <ac_nonexistent.h>
4048 _ACEOF
4049 if ac_fn_c_try_cpp "$LINENO"; then :
4050 # Broken: success on invalid input.
4051 continue
4052 else
4053 # Passes both tests.
4054 ac_preproc_ok=:
4055 break
4057 rm -f conftest.err conftest.$ac_ext
4059 done
4060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4061 rm -f conftest.err conftest.$ac_ext
4062 if $ac_preproc_ok; then :
4064 else
4065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4068 See \`config.log' for more details." "$LINENO" 5; }
4071 ac_ext=c
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078 ac_c_preproc_warn_flag=yes
4081 # Check whether --enable-largefile was given.
4082 if test "${enable_largefile+set}" = set; then :
4083 enableval=$enable_largefile;
4086 if test "$enable_largefile" != no; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4089 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4090 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 ac_cv_sys_largefile_CC=no
4094 if test "$GCC" != yes; then
4095 ac_save_CC=$CC
4096 while :; do
4097 # IRIX 6.2 and later do not support large files by default,
4098 # so use the C compiler's -n32 option if that helps.
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <sys/types.h>
4102 /* Check that off_t can represent 2**63 - 1 correctly.
4103 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4104 since some C++ compilers masquerading as C compilers
4105 incorrectly reject 9223372036854775807. */
4106 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4108 && LARGE_OFF_T % 2147483647 == 1)
4109 ? 1 : -1];
4111 main ()
4115 return 0;
4117 _ACEOF
4118 if ac_fn_c_try_compile "$LINENO"; then :
4119 break
4121 rm -f core conftest.err conftest.$ac_objext
4122 CC="$CC -n32"
4123 if ac_fn_c_try_compile "$LINENO"; then :
4124 ac_cv_sys_largefile_CC=' -n32'; break
4126 rm -f core conftest.err conftest.$ac_objext
4127 break
4128 done
4129 CC=$ac_save_CC
4130 rm -f conftest.$ac_ext
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4134 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4135 if test "$ac_cv_sys_largefile_CC" != no; then
4136 CC=$CC$ac_cv_sys_largefile_CC
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4140 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4141 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 while :; do
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147 #include <sys/types.h>
4148 /* Check that off_t can represent 2**63 - 1 correctly.
4149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4150 since some C++ compilers masquerading as C compilers
4151 incorrectly reject 9223372036854775807. */
4152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4154 && LARGE_OFF_T % 2147483647 == 1)
4155 ? 1 : -1];
4157 main ()
4161 return 0;
4163 _ACEOF
4164 if ac_fn_c_try_compile "$LINENO"; then :
4165 ac_cv_sys_file_offset_bits=no; break
4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170 #define _FILE_OFFSET_BITS 64
4171 #include <sys/types.h>
4172 /* Check that off_t can represent 2**63 - 1 correctly.
4173 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4174 since some C++ compilers masquerading as C compilers
4175 incorrectly reject 9223372036854775807. */
4176 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4177 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4178 && LARGE_OFF_T % 2147483647 == 1)
4179 ? 1 : -1];
4181 main ()
4185 return 0;
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189 ac_cv_sys_file_offset_bits=64; break
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 ac_cv_sys_file_offset_bits=unknown
4193 break
4194 done
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4197 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4198 case $ac_cv_sys_file_offset_bits in #(
4199 no | unknown) ;;
4201 cat >>confdefs.h <<_ACEOF
4202 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4203 _ACEOF
4205 esac
4206 rm -rf conftest*
4207 if test $ac_cv_sys_file_offset_bits = unknown; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4209 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4210 if test "${ac_cv_sys_large_files+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 while :; do
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #include <sys/types.h>
4217 /* Check that off_t can represent 2**63 - 1 correctly.
4218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4219 since some C++ compilers masquerading as C compilers
4220 incorrectly reject 9223372036854775807. */
4221 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4223 && LARGE_OFF_T % 2147483647 == 1)
4224 ? 1 : -1];
4226 main ()
4230 return 0;
4232 _ACEOF
4233 if ac_fn_c_try_compile "$LINENO"; then :
4234 ac_cv_sys_large_files=no; break
4236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4239 #define _LARGE_FILES 1
4240 #include <sys/types.h>
4241 /* Check that off_t can represent 2**63 - 1 correctly.
4242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4243 since some C++ compilers masquerading as C compilers
4244 incorrectly reject 9223372036854775807. */
4245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4247 && LARGE_OFF_T % 2147483647 == 1)
4248 ? 1 : -1];
4250 main ()
4254 return 0;
4256 _ACEOF
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_cv_sys_large_files=1; break
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 ac_cv_sys_large_files=unknown
4262 break
4263 done
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4266 $as_echo "$ac_cv_sys_large_files" >&6; }
4267 case $ac_cv_sys_large_files in #(
4268 no | unknown) ;;
4270 cat >>confdefs.h <<_ACEOF
4271 #define _LARGE_FILES $ac_cv_sys_large_files
4272 _ACEOF
4274 esac
4275 rm -rf conftest*
4281 # The cast to long int works around a bug in the HP C Compiler
4282 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4283 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4284 # This bug is HP SR number 8606223364.
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
4286 $as_echo_n "checking size of double... " >&6; }
4287 if test "${ac_cv_sizeof_double+set}" = set; then :
4288 $as_echo_n "(cached) " >&6
4289 else
4290 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
4292 else
4293 if test "$ac_cv_type_double" = yes; then
4294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4296 { as_fn_set_status 77
4297 as_fn_error "cannot compute sizeof (double)
4298 See \`config.log' for more details." "$LINENO" 5; }; }
4299 else
4300 ac_cv_sizeof_double=0
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
4306 $as_echo "$ac_cv_sizeof_double" >&6; }
4310 cat >>confdefs.h <<_ACEOF
4311 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4312 _ACEOF
4315 # The cast to long int works around a bug in the HP C Compiler
4316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4318 # This bug is HP SR number 8606223364.
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4320 $as_echo_n "checking size of long double... " >&6; }
4321 if test "${ac_cv_sizeof_long_double+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4326 else
4327 if test "$ac_cv_type_long_double" = yes; then
4328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330 { as_fn_set_status 77
4331 as_fn_error "cannot compute sizeof (long double)
4332 See \`config.log' for more details." "$LINENO" 5; }; }
4333 else
4334 ac_cv_sizeof_long_double=0
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4340 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4344 cat >>confdefs.h <<_ACEOF
4345 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4346 _ACEOF
4349 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4350 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4355 for ac_header in inttypes.h stdint.h stdlib.h ftw.h \
4356 unistd.h sys/stat.h sys/types.h \
4357 string.h strings.h memory.h
4358 do :
4359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4360 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
4361 eval as_val=\$$as_ac_Header
4362 if test "x$as_val" = x""yes; then :
4363 cat >>confdefs.h <<_ACEOF
4364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4365 _ACEOF
4368 done
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4371 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4372 if test "${ac_cv_path_GREP+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
4374 else
4375 if test -z "$GREP"; then
4376 ac_path_GREP_found=false
4377 # Loop through the user's path and test for each of PROGNAME-LIST
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_prog in grep ggrep; do
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4386 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4387 # Check for GNU ac_path_GREP and select it if it is found.
4388 # Check for GNU $ac_path_GREP
4389 case `"$ac_path_GREP" --version 2>&1` in
4390 *GNU*)
4391 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4393 ac_count=0
4394 $as_echo_n 0123456789 >"conftest.in"
4395 while :
4397 cat "conftest.in" "conftest.in" >"conftest.tmp"
4398 mv "conftest.tmp" "conftest.in"
4399 cp "conftest.in" "conftest.nl"
4400 $as_echo 'GREP' >> "conftest.nl"
4401 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403 as_fn_arith $ac_count + 1 && ac_count=$as_val
4404 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4405 # Best one so far, save it but keep looking for a better one
4406 ac_cv_path_GREP="$ac_path_GREP"
4407 ac_path_GREP_max=$ac_count
4409 # 10*(2^10) chars as input seems more than enough
4410 test $ac_count -gt 10 && break
4411 done
4412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413 esac
4415 $ac_path_GREP_found && break 3
4416 done
4417 done
4418 done
4419 IFS=$as_save_IFS
4420 if test -z "$ac_cv_path_GREP"; then
4421 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4423 else
4424 ac_cv_path_GREP=$GREP
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4429 $as_echo "$ac_cv_path_GREP" >&6; }
4430 GREP="$ac_cv_path_GREP"
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4434 $as_echo_n "checking for egrep... " >&6; }
4435 if test "${ac_cv_path_EGREP+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4439 then ac_cv_path_EGREP="$GREP -E"
4440 else
4441 if test -z "$EGREP"; then
4442 ac_path_EGREP_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_prog in egrep; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4452 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4453 # Check for GNU ac_path_EGREP and select it if it is found.
4454 # Check for GNU $ac_path_EGREP
4455 case `"$ac_path_EGREP" --version 2>&1` in
4456 *GNU*)
4457 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4459 ac_count=0
4460 $as_echo_n 0123456789 >"conftest.in"
4461 while :
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo 'EGREP' >> "conftest.nl"
4467 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469 as_fn_arith $ac_count + 1 && ac_count=$as_val
4470 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_EGREP="$ac_path_EGREP"
4473 ac_path_EGREP_max=$ac_count
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4477 done
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479 esac
4481 $ac_path_EGREP_found && break 3
4482 done
4483 done
4484 done
4485 IFS=$as_save_IFS
4486 if test -z "$ac_cv_path_EGREP"; then
4487 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4489 else
4490 ac_cv_path_EGREP=$EGREP
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4496 $as_echo "$ac_cv_path_EGREP" >&6; }
4497 EGREP="$ac_cv_path_EGREP"
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4501 $as_echo_n "checking for ANSI C header files... " >&6; }
4502 if test "${ac_cv_header_stdc+set}" = set; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 #include <stdlib.h>
4508 #include <stdarg.h>
4509 #include <string.h>
4510 #include <float.h>
4513 main ()
4517 return 0;
4519 _ACEOF
4520 if ac_fn_c_try_compile "$LINENO"; then :
4521 ac_cv_header_stdc=yes
4522 else
4523 ac_cv_header_stdc=no
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 if test $ac_cv_header_stdc = yes; then
4528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #include <string.h>
4533 _ACEOF
4534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4535 $EGREP "memchr" >/dev/null 2>&1; then :
4537 else
4538 ac_cv_header_stdc=no
4540 rm -f conftest*
4544 if test $ac_cv_header_stdc = yes; then
4545 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4548 #include <stdlib.h>
4550 _ACEOF
4551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4552 $EGREP "free" >/dev/null 2>&1; then :
4554 else
4555 ac_cv_header_stdc=no
4557 rm -f conftest*
4561 if test $ac_cv_header_stdc = yes; then
4562 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4563 if test "$cross_compiling" = yes; then :
4565 else
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4568 #include <ctype.h>
4569 #include <stdlib.h>
4570 #if ((' ' & 0x0FF) == 0x020)
4571 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4572 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4573 #else
4574 # define ISLOWER(c) \
4575 (('a' <= (c) && (c) <= 'i') \
4576 || ('j' <= (c) && (c) <= 'r') \
4577 || ('s' <= (c) && (c) <= 'z'))
4578 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4579 #endif
4581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4583 main ()
4585 int i;
4586 for (i = 0; i < 256; i++)
4587 if (XOR (islower (i), ISLOWER (i))
4588 || toupper (i) != TOUPPER (i))
4589 return 2;
4590 return 0;
4592 _ACEOF
4593 if ac_fn_c_try_run "$LINENO"; then :
4595 else
4596 ac_cv_header_stdc=no
4598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4599 conftest.$ac_objext conftest.beam conftest.$ac_ext
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4605 $as_echo "$ac_cv_header_stdc" >&6; }
4606 if test $ac_cv_header_stdc = yes; then
4608 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4613 # Check for decimal float support.
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4615 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4616 if test "${libgcc_cv_dfp+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4622 #include <fenv.h>
4625 main ()
4628 _Decimal32 x;
4629 int fe_except =
4630 FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
4633 return 0;
4635 _ACEOF
4636 if ac_fn_c_try_compile "$LINENO"; then :
4637 libgcc_cv_dfp=yes
4638 else
4639 libgcc_cv_dfp=no
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4644 $as_echo "$libgcc_cv_dfp" >&6; }
4645 decimal_float=$libgcc_cv_dfp
4649 # Check whether --enable-decimal-float was given.
4650 if test "${enable_decimal_float+set}" = set; then :
4651 enableval=$enable_decimal_float;
4652 case $enable_decimal_float in
4653 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4654 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4655 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4656 esac
4658 else
4660 case $host in
4661 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4662 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
4663 i?86*-*-mingw* | x86_64*-*-mingw* | \
4664 i?86*-*-cygwin* | x86_64*-*-cygwin*)
4665 enable_decimal_float=yes
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4669 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4670 enable_decimal_float=no
4672 esac
4677 # x86's use BID format instead of DPD
4678 case x$enable_decimal_float in
4679 xyes)
4680 case $host in
4681 i?86*-*-* | x86_64*-*-*)
4682 enable_decimal_float=bid
4685 enable_decimal_float=dpd
4687 esac
4688 default_decimal_float=$enable_decimal_float
4690 xno)
4691 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4692 # dependency on libdecnumber.
4693 default_decimal_float=dpd
4695 esac
4700 # Check for fixed-point support.
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4702 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4703 if test "${libgcc_cv_fixed_point+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4708 _Sat _Fract x;
4709 _ACEOF
4710 if ac_fn_c_try_compile "$LINENO"; then :
4711 libgcc_cv_fixed_point=yes
4712 else
4713 libgcc_cv_fixed_point=no
4715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4718 $as_echo "$libgcc_cv_fixed_point" >&6; }
4719 fixed_point=$libgcc_cv_fixed_point
4722 # For platforms with the unwind ABI which includes an unwind library,
4723 # libunwind, we can choose to use the system libunwind.
4724 # config.gcc also contains tests of with_system_libunwind.
4727 # Check whether --with-system-libunwind was given.
4728 if test "${with_system_libunwind+set}" = set; then :
4729 withval=$with_system_libunwind;
4732 # If system-libunwind was not specifically set, pick a default setting.
4733 if test x$with_system_libunwind = x; then
4734 case ${target} in
4735 ia64-*-hpux*) with_system_libunwind=yes ;;
4736 *) with_system_libunwind=no ;;
4737 esac
4739 # Based on system-libunwind and target, do we have ipinfo?
4740 if test x$with_system_libunwind = xyes; then
4741 case ${target} in
4742 ia64-*-*) have_unwind_getipinfo=no ;;
4743 *) have_unwind_getipinfo=yes ;;
4744 esac
4745 else
4746 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4748 case ${target} in
4749 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4750 *) have_unwind_getipinfo=yes ;;
4751 esac
4755 if test x$have_unwind_getipinfo = xyes; then
4757 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4762 # Check if the compiler is configured for setjmp/longjmp exceptions.
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5
4764 $as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; }
4765 if test "${ac_cv_sjlj_exceptions+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 #ifdef __USING_SJLJ_EXCEPTIONS__
4771 this will fail
4772 #endif
4774 main ()
4776 int i;
4778 return 0;
4780 _ACEOF
4781 if ac_fn_c_try_compile "$LINENO"; then :
4782 ac_cv_sjlj_exceptions=no
4783 else
4784 ac_cv_sjlj_exceptions=yes
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5
4789 $as_echo "$ac_cv_sjlj_exceptions" >&6; }
4791 # Check whether --enable-cet was given.
4792 if test "${enable_cet+set}" = set; then :
4793 enableval=$enable_cet;
4794 case "$enableval" in
4795 yes|no|auto) ;;
4796 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4797 esac
4799 else
4800 enable_cet=no
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4805 $as_echo_n "checking for CET support... " >&6; }
4807 case "$host" in
4808 i[34567]86-*-linux* | x86_64-*-linux*)
4809 case "$enable_cet" in
4810 auto)
4811 # Check if target supports multi-byte NOPs
4812 # and if assembler supports CET insn.
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4817 main ()
4820 #if !defined(__SSE2__)
4821 #error target does not support multi-byte NOPs
4822 #else
4823 asm ("setssbsy");
4824 #endif
4827 return 0;
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831 enable_cet=yes
4832 else
4833 enable_cet=no
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 yes)
4838 # Check if assembler supports CET.
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4843 main ()
4845 asm ("setssbsy");
4847 return 0;
4849 _ACEOF
4850 if ac_fn_c_try_compile "$LINENO"; then :
4852 else
4853 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 esac
4860 enable_cet=no
4862 esac
4863 if test x$enable_cet = xyes; then
4864 CET_FLAGS="-fcf-protection -mshstk"
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4866 $as_echo "yes" >&6; }
4867 else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 $as_echo "no" >&6; }
4874 # Check whether --enable-explicit-exception-frame-registration was given.
4875 if test "${enable_explicit_exception_frame_registration+set}" = set; then :
4876 enableval=$enable_explicit_exception_frame_registration;
4877 force_explicit_eh_registry=
4878 if test "$enable_explicit_exception_frame_registration" = yes; then
4879 if test $ac_cv_sjlj_exceptions = yes; then
4880 as_fn_error "Can't --enable-explicit-exception-frame-registration
4881 with setjmp/longjmp exceptions" "$LINENO" 5
4883 force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4891 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4892 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4896 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4897 acl_cv_prog_gnu_ld=yes
4898 else
4899 acl_cv_prog_gnu_ld=no
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4903 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4904 with_gnu_ld=$acl_cv_prog_gnu_ld
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4908 $as_echo_n "checking for thread model used by GCC... " >&6; }
4909 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
4911 $as_echo "$target_thread_file" >&6; }
4913 # Check for assembler CFI support.
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
4915 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
4916 if test "${libgcc_cv_cfi+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4921 asm("\n\
4922 .text\n\
4923 .cfi_startproc\n\
4924 .cfi_personality 0, symbol\n\
4925 .cfi_endproc");
4926 _ACEOF
4927 if ac_fn_c_try_compile "$LINENO"; then :
4928 libgcc_cv_cfi=yes
4929 else
4930 libgcc_cv_cfi=no
4932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
4935 $as_echo "$libgcc_cv_cfi" >&6; }
4937 # Check 32bit or 64bit. In the case of MIPS, this really determines the
4938 # word size rather than the address size.
4939 cat > conftest.c <<EOF
4940 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
4941 || defined(__mips64)
4942 host_address=64
4943 #else
4944 host_address=32
4945 #endif
4947 eval `${CC-cc} -E conftest.c | grep host_address=`
4948 rm -f conftest.c
4950 case ${host} in
4951 mips*-*-*)
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5
4953 $as_echo_n "checking whether the target is hard-float... " >&6; }
4954 if test "${libgcc_cv_mips_hard_float+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4959 #ifndef __mips_hard_float
4960 #error FOO
4961 #endif
4962 _ACEOF
4963 if ac_fn_c_try_compile "$LINENO"; then :
4964 libgcc_cv_mips_hard_float=yes
4965 else
4966 libgcc_cv_mips_hard_float=no
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5
4971 $as_echo "$libgcc_cv_mips_hard_float" >&6; }
4972 esac
4974 case ${host} in
4975 *-*-solaris2*)
4976 # Check for system-provided CRTs on Solaris 11.4.
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
4978 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
4979 if test "${libgcc_cv_solaris_crts+set}" = set; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 libgcc_cv_solaris_crts=no
4983 libgcc_sysroot="`${CC} -print-sysroot`"
4984 libgcc_libdir="$libgcc_sysroot/usr/lib"
4985 # At the time they were added, gcrt1.o became a symlink for backwards
4986 # compatibility on x86, while crt1.o was added on sparc, so check for that.
4987 case ${host} in
4988 i?86-*-solaris2* | x86_64-*-solaris2*)
4989 if test -h "$libgcc_libdir/gcrt1.o"; then libgcc_cv_solaris_crts=yes; fi
4991 sparc*-*-solaris2*)
4992 if test -f "$libgcc_libdir/crt1.o"; then libgcc_cv_solaris_crts=yes; fi
4994 esac
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_solaris_crts" >&5
4997 $as_echo "$libgcc_cv_solaris_crts" >&6; }
4998 if test $libgcc_cv_solaris_crts = yes; then
5000 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
5004 esac
5006 # Determine the version of glibc, if any, used on the target.
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
5008 $as_echo_n "checking for target glibc version... " >&6; }
5010 # Check whether --with-glibc-version was given.
5011 if test "${with_glibc_version+set}" = set; then :
5012 withval=$with_glibc_version;
5013 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
5014 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
5015 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
5016 else
5017 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
5019 else
5021 if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then :
5023 else
5024 glibc_version_major=0
5027 if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then :
5029 else
5030 glibc_version_minor=0
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
5036 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
5038 # Determine floating-point type for powerpc*-*-linux*.
5039 # Single-precision-only FPRs are not a supported configuration for
5040 # this target, so are not allowed for in this test.
5041 case ${host} in
5042 powerpc*-*-linux*)
5043 cat > conftest.c <<EOF
5044 #ifdef __powerpc64__
5045 ppc_fp_type=64
5046 #elif defined _SOFT_FLOAT
5047 ppc_fp_type=soft
5048 #elif defined _SOFT_DOUBLE
5049 ppc_fp_type=e500v1
5050 #elif defined __NO_FPRS__
5051 ppc_fp_type=e500v2
5052 #else
5053 ppc_fp_type=hard
5054 #endif
5056 eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
5057 rm -f conftest.c
5058 # glibc 2.19 and later provide all the soft-fp functions, with proper
5059 # interactions with <fenv.h> exception and rounding mode handling, so
5060 # make libgcc's versions into compat symbols if a recent enough glibc
5061 # version is being used.
5062 ppc_fp_compat=
5063 case ${ppc_fp_type} in
5064 soft|e500v1|e500v2)
5065 if test $glibc_version_major -gt 2 \
5066 || ( test $glibc_version_major -eq 2 \
5067 && test $glibc_version_minor -ge 19 ); then
5068 ppc_fp_compat="t-softfp-compat"
5071 esac
5073 esac
5075 case ${host} in
5076 # At present, we cannot turn -mfloat128 on via #pragma GCC target, so just
5077 # check if we have VSX (ISA 2.06) support to build the software libraries, and
5078 # whether the assembler can handle xsaddqp for hardware support. Also check if
5079 # a new glibc is being used so that __builtin_cpu_supports can be used.
5080 powerpc*-*-linux*)
5081 saved_CFLAGS="$CFLAGS"
5082 CFLAGS="$CFLAGS -mabi=altivec -mvsx -mfloat128"
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 2.06 to build __float128 libraries" >&5
5084 $as_echo_n "checking for PowerPC ISA 2.06 to build __float128 libraries... " >&6; }
5085 if test "${libgcc_cv_powerpc_float128+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5090 vector double dadd (vector double a, vector double b) { return a + b; }
5091 _ACEOF
5092 if ac_fn_c_try_compile "$LINENO"; then :
5093 libgcc_cv_powerpc_float128=yes
5094 else
5095 libgcc_cv_powerpc_float128=no
5097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128" >&5
5100 $as_echo "$libgcc_cv_powerpc_float128" >&6; }
5102 CFLAGS="$CFLAGS -mpower9-vector -mfloat128-hardware"
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.0 to build hardware __float128 libraries" >&5
5104 $as_echo_n "checking for PowerPC ISA 3.0 to build hardware __float128 libraries... " >&6; }
5105 if test "${libgcc_cv_powerpc_float128_hw+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5110 #include <sys/auxv.h>
5111 #ifndef AT_PLATFORM
5112 #error "AT_PLATFORM is not defined"
5113 #endif
5114 #ifndef __BUILTIN_CPU_SUPPORTS__
5115 #error "__builtin_cpu_supports is not available"
5116 #endif
5117 vector unsigned char add (vector unsigned char a, vector unsigned char b)
5119 vector unsigned char ret;
5120 __asm__ ("xsaddqp %0,%1,%2" : "=v" (ret) : "v" (a), "v" (b));
5121 return ret;
5123 void *add_resolver (void) { return (void *) add; }
5124 __float128 add_ifunc (__float128, __float128)
5125 __attribute__ ((__ifunc__ ("add_resolver")));
5126 _ACEOF
5127 if ac_fn_c_try_compile "$LINENO"; then :
5128 libgcc_cv_powerpc_float128_hw=yes
5129 else
5130 libgcc_cv_powerpc_float128_hw=no
5132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128_hw" >&5
5135 $as_echo "$libgcc_cv_powerpc_float128_hw" >&6; }
5136 CFLAGS="$saved_CFLAGS"
5137 esac
5139 # Collect host-machine-specific information.
5140 . ${srcdir}/config.host
5142 # Used for constructing correct paths for offload compilers.
5143 accel_dir_suffix=
5144 real_host_noncanonical=${host_noncanonical}
5145 if test x"$enable_as_accelerator_for" != x; then
5146 accel_dir_suffix=/accel/${target_noncanonical}
5147 real_host_noncanonical=${enable_as_accelerator_for}
5152 if test x"$enable_offload_targets" != x; then
5153 extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o crtoffloadtable.o"
5156 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
5157 # This is after config.host so we can augment tmake_file.
5158 # Link with -nostartfiles -nodefaultlibs since neither are present while
5159 # building libgcc.
5160 case ${host} in
5161 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
5162 cat > conftest.s <<EOF
5163 .section .eh_frame,"a",@unwind
5164 .zero 4
5165 .section .jcr,"aw",@progbits
5166 .zero 8
5168 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
5169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5170 (eval $ac_try) 2>&5
5171 ac_status=$?
5172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5173 test $ac_status = 0; }; }; then
5174 tmake_file="${tmake_file} i386/t-crtstuff"
5177 esac
5179 # Check if xtensa target is configured for windowed ABI and thus needs to use
5180 # custom unwind code.
5181 # This is after config.host so we can augment tmake_file.
5182 case ${host} in
5183 xtensa*-*)
5184 cat > conftest.c <<EOF
5185 #ifdef __XTENSA_CALL0_ABI__
5186 #error
5187 #endif
5189 if { ac_try='${CC-cc} -E -o conftest.i conftest.c 1>&5'
5190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5194 test $ac_status = 0; }; }; then
5195 tmake_file="${tmake_file} xtensa/t-windowed"
5198 esac
5200 # Check for visibility support. This is after config.host so that
5201 # we can check for asm_hidden_op.
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
5203 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
5204 if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5208 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
5209 libgcc_cv_hidden_visibility_attribute=no
5210 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5212 (eval $ac_try) 2>&5
5213 ac_status=$?
5214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5215 test $ac_status = 0; }; }; then
5216 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
5217 libgcc_cv_hidden_visibility_attribute=yes
5220 rm -f conftest.*
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
5224 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
5226 if test $libgcc_cv_hidden_visibility_attribute = yes; then
5227 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
5229 cat >>confdefs.h <<_ACEOF
5230 #define AS_HIDDEN_DIRECTIVE $asm_hidden_op
5231 _ACEOF
5233 else
5234 vis_hide=
5238 # Check for .cfi_sections .debug_frame support.
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .cfi_sections .debug_frame" >&5
5240 $as_echo_n "checking for .cfi_sections .debug_frame... " >&6; }
5241 if test "${libgcc_cv_cfi_sections_directive+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5245 echo 'int foo (int, char *);' > conftest.c
5246 echo 'int bar (int x) { char *y = __builtin_alloca (x); return foo (x + 1, y) + 1; }' >> conftest.c
5247 libgcc_cv_cfi_sections_directive=no
5248 if { ac_try='${CC-cc} -Werror -g -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-exceptions -S conftest.c -o conftest.s 1>&5'
5249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5253 test $ac_status = 0; }; }; then
5254 if grep "\\.cfi_sections.*\\.debug_frame" conftest.s >/dev/null; then
5255 libgcc_cv_cfi_sections_directive=yes
5258 rm -f conftest.*
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi_sections_directive" >&5
5262 $as_echo "$libgcc_cv_cfi_sections_directive" >&6; }
5263 if test $libgcc_cv_cfi_sections_directive = yes; then
5265 $as_echo "#define HAVE_AS_CFI_SECTIONS 1" >>confdefs.h
5269 # See if we have thread-local storage. We can only test assembler
5270 # since link-time and run-time tests require the newly built
5271 # gcc, which can't be used to build executable due to that libgcc
5272 # is yet to be built here.
5274 # Check whether --enable-tls was given.
5275 if test "${enable_tls+set}" = set; then :
5276 enableval=$enable_tls;
5277 case "$enableval" in
5278 yes|no) ;;
5279 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
5280 esac
5282 else
5283 enable_tls=yes
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
5288 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
5289 if test "${gcc_cv_have_cc_tls+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295 __thread int a; int b; int main() { return a = b; }
5296 _ACEOF
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298 gcc_cv_have_cc_tls=yes
5299 else
5300 gcc_cv_have_cc_tls=no
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
5306 $as_echo "$gcc_cv_have_cc_tls" >&6; }
5307 set_have_cc_tls=
5308 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
5309 set_have_cc_tls="-DHAVE_CC_TLS"
5313 # See if we have emulated thread-local storage.
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
5316 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
5317 if test "${gcc_cv_use_emutls+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5321 gcc_cv_use_emutls=no
5322 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
5323 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
5324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5325 (eval $ac_try) 2>&5
5326 ac_status=$?
5327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5328 test $ac_status = 0; }; }; then
5329 if grep __emutls_get_address conftest.s > /dev/null; then
5330 gcc_cv_use_emutls=yes
5333 rm -f conftest.*
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
5337 $as_echo "$gcc_cv_use_emutls" >&6; }
5338 if test "$gcc_cv_use_emutls" = "yes" ; then
5340 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
5343 set_use_emutls=
5344 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
5345 set_use_emutls="-DUSE_EMUTLS"
5351 case "${target}" in
5352 i[34567]86-*-* | x86_64-*-*)
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
5354 $as_echo_n "checking if the assembler supports AVX... " >&6; }
5355 if test "${libgcc_cv_as_avx+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5363 main ()
5365 asm("vzeroupper");
5367 return 0;
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 libgcc_cv_as_avx=yes
5372 else
5373 libgcc_cv_as_avx=no
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_avx" >&5
5379 $as_echo "$libgcc_cv_as_avx" >&6; }
5380 if test x$libgcc_cv_as_avx = xyes; then
5382 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
5386 esac
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
5389 $as_echo_n "checking for init priority support... " >&6; }
5390 if test "${libgcc_cv_init_priority+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5398 main ()
5400 void ip (void) __attribute__ ((constructor (1)));
5402 return 0;
5404 _ACEOF
5405 if ac_fn_c_try_compile "$LINENO"; then :
5406 libgcc_cv_init_priority=yes
5407 else
5408 libgcc_cv_init_priority=no
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
5413 $as_echo "$libgcc_cv_init_priority" >&6; }
5414 if test $libgcc_cv_init_priority = yes; then
5416 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
5420 # Conditionalize the sfp-machine.h header for this target machine.
5421 if test -z "${sfp_machine_header}"; then
5422 sfp_machine_header=$cpu_type/sfp-machine.h
5423 if test -f ${srcdir}/config/${sfp_machine_header}; then
5425 else
5426 sfp_machine_header=no-sfp-machine.h
5431 # Conditionalize the makefile for this target machine.
5432 tmake_file_=
5433 for f in ${tmake_file}
5435 if test -f ${srcdir}/config/$f
5436 then
5437 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
5439 done
5440 tmake_file="${tmake_file_}"
5443 # Likewise export definitions for libgcc_tm.h
5444 tm_file_=
5445 for f in ${tm_file}
5447 tm_file_="${tm_file_} \$(srcdir)/config/$f"
5448 done
5449 tm_file="${tm_file_}"
5453 # Map from thread model to thread header.
5455 case $target_thread_file in
5456 aix) thread_header=config/rs6000/gthr-aix.h ;;
5457 dce) thread_header=config/pa/gthr-dce.h ;;
5458 lynx) thread_header=config/gthr-lynx.h ;;
5459 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
5460 posix) thread_header=gthr-posix.h ;;
5461 rtems) thread_header=config/gthr-rtems.h ;;
5462 single) thread_header=gthr-single.h ;;
5463 tpf) thread_header=config/s390/gthr-tpf.h ;;
5464 vxworks) thread_header=config/gthr-vxworks.h ;;
5465 win32) thread_header=config/i386/gthr-win32.h ;;
5466 esac
5470 # Determine what GCC version number to use in filesystem paths.
5472 get_gcc_base_ver="cat"
5474 # Check whether --with-gcc-major-version-only was given.
5475 if test "${with_gcc_major_version_only+set}" = set; then :
5476 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5477 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5485 # Substitute configuration variables
5495 # We need multilib support.
5496 ac_config_files="$ac_config_files Makefile"
5498 ac_config_commands="$ac_config_commands default"
5500 cat >confcache <<\_ACEOF
5501 # This file is a shell script that caches the results of configure
5502 # tests run on this system so they can be shared between configure
5503 # scripts and configure runs, see configure's option --config-cache.
5504 # It is not useful on other systems. If it contains results you don't
5505 # want to keep, you may remove or edit it.
5507 # config.status only pays attention to the cache file if you give it
5508 # the --recheck option to rerun configure.
5510 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5511 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5512 # following values.
5514 _ACEOF
5516 # The following way of writing the cache mishandles newlines in values,
5517 # but we know of no workaround that is simple, portable, and efficient.
5518 # So, we kill variables containing newlines.
5519 # Ultrix sh set writes to stderr and can't be redirected directly,
5520 # and sets the high bit in the cache file unless we assign to the vars.
5522 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5523 eval ac_val=\$$ac_var
5524 case $ac_val in #(
5525 *${as_nl}*)
5526 case $ac_var in #(
5527 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5528 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5529 esac
5530 case $ac_var in #(
5531 _ | IFS | as_nl) ;; #(
5532 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5533 *) { eval $ac_var=; unset $ac_var;} ;;
5534 esac ;;
5535 esac
5536 done
5538 (set) 2>&1 |
5539 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5540 *${as_nl}ac_space=\ *)
5541 # `set' does not quote correctly, so add quotes: double-quote
5542 # substitution turns \\\\ into \\, and sed turns \\ into \.
5543 sed -n \
5544 "s/'/'\\\\''/g;
5545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5546 ;; #(
5548 # `set' quotes correctly as required by POSIX, so do not add quotes.
5549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5551 esac |
5552 sort
5554 sed '
5555 /^ac_cv_env_/b end
5556 t clear
5557 :clear
5558 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5559 t end
5560 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5561 :end' >>confcache
5562 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5563 if test -w "$cache_file"; then
5564 test "x$cache_file" != "x/dev/null" &&
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5566 $as_echo "$as_me: updating cache $cache_file" >&6;}
5567 cat confcache >$cache_file
5568 else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5570 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5573 rm -f confcache
5575 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5576 # Let make expand exec_prefix.
5577 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5579 DEFS=-DHAVE_CONFIG_H
5581 ac_libobjs=
5582 ac_ltlibobjs=
5583 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5584 # 1. Remove the extension, and $U if already installed.
5585 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5586 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5587 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5588 # will be set to the directory where LIBOBJS objects are built.
5589 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5590 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5591 done
5592 LIBOBJS=$ac_libobjs
5594 LTLIBOBJS=$ac_ltlibobjs
5598 : ${CONFIG_STATUS=./config.status}
5599 ac_write_fail=0
5600 ac_clean_files_save=$ac_clean_files
5601 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5603 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5604 as_write_fail=0
5605 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5606 #! $SHELL
5607 # Generated by $as_me.
5608 # Run this file to recreate the current configuration.
5609 # Compiler output produced by configure, useful for debugging
5610 # configure, is in config.log if it exists.
5612 debug=false
5613 ac_cs_recheck=false
5614 ac_cs_silent=false
5616 SHELL=\${CONFIG_SHELL-$SHELL}
5617 export SHELL
5618 _ASEOF
5619 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5620 ## -------------------- ##
5621 ## M4sh Initialization. ##
5622 ## -------------------- ##
5624 # Be more Bourne compatible
5625 DUALCASE=1; export DUALCASE # for MKS sh
5626 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5627 emulate sh
5628 NULLCMD=:
5629 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5630 # is contrary to our usage. Disable this feature.
5631 alias -g '${1+"$@"}'='"$@"'
5632 setopt NO_GLOB_SUBST
5633 else
5634 case `(set -o) 2>/dev/null` in #(
5635 *posix*) :
5636 set -o posix ;; #(
5637 *) :
5639 esac
5643 as_nl='
5645 export as_nl
5646 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5647 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5648 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5649 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5650 # Prefer a ksh shell builtin over an external printf program on Solaris,
5651 # but without wasting forks for bash or zsh.
5652 if test -z "$BASH_VERSION$ZSH_VERSION" \
5653 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5654 as_echo='print -r --'
5655 as_echo_n='print -rn --'
5656 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5657 as_echo='printf %s\n'
5658 as_echo_n='printf %s'
5659 else
5660 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5661 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5662 as_echo_n='/usr/ucb/echo -n'
5663 else
5664 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5665 as_echo_n_body='eval
5666 arg=$1;
5667 case $arg in #(
5668 *"$as_nl"*)
5669 expr "X$arg" : "X\\(.*\\)$as_nl";
5670 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5671 esac;
5672 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5674 export as_echo_n_body
5675 as_echo_n='sh -c $as_echo_n_body as_echo'
5677 export as_echo_body
5678 as_echo='sh -c $as_echo_body as_echo'
5681 # The user is always right.
5682 if test "${PATH_SEPARATOR+set}" != set; then
5683 PATH_SEPARATOR=:
5684 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5685 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5686 PATH_SEPARATOR=';'
5691 # IFS
5692 # We need space, tab and new line, in precisely that order. Quoting is
5693 # there to prevent editors from complaining about space-tab.
5694 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5695 # splitting by setting IFS to empty value.)
5696 IFS=" "" $as_nl"
5698 # Find who we are. Look in the path if we contain no directory separator.
5699 case $0 in #((
5700 *[\\/]* ) as_myself=$0 ;;
5701 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5707 done
5708 IFS=$as_save_IFS
5711 esac
5712 # We did not find ourselves, most probably we were run as `sh COMMAND'
5713 # in which case we are not to be found in the path.
5714 if test "x$as_myself" = x; then
5715 as_myself=$0
5717 if test ! -f "$as_myself"; then
5718 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5719 exit 1
5722 # Unset variables that we do not need and which cause bugs (e.g. in
5723 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5724 # suppresses any "Segmentation fault" message there. '((' could
5725 # trigger a bug in pdksh 5.2.14.
5726 for as_var in BASH_ENV ENV MAIL MAILPATH
5727 do eval test x\${$as_var+set} = xset \
5728 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5729 done
5730 PS1='$ '
5731 PS2='> '
5732 PS4='+ '
5734 # NLS nuisances.
5735 LC_ALL=C
5736 export LC_ALL
5737 LANGUAGE=C
5738 export LANGUAGE
5740 # CDPATH.
5741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5744 # as_fn_error ERROR [LINENO LOG_FD]
5745 # ---------------------------------
5746 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5747 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5748 # script with status $?, using 1 if that was 0.
5749 as_fn_error ()
5751 as_status=$?; test $as_status -eq 0 && as_status=1
5752 if test "$3"; then
5753 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5754 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5756 $as_echo "$as_me: error: $1" >&2
5757 as_fn_exit $as_status
5758 } # as_fn_error
5761 # as_fn_set_status STATUS
5762 # -----------------------
5763 # Set $? to STATUS, without forking.
5764 as_fn_set_status ()
5766 return $1
5767 } # as_fn_set_status
5769 # as_fn_exit STATUS
5770 # -----------------
5771 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5772 as_fn_exit ()
5774 set +e
5775 as_fn_set_status $1
5776 exit $1
5777 } # as_fn_exit
5779 # as_fn_unset VAR
5780 # ---------------
5781 # Portably unset VAR.
5782 as_fn_unset ()
5784 { eval $1=; unset $1;}
5786 as_unset=as_fn_unset
5787 # as_fn_append VAR VALUE
5788 # ----------------------
5789 # Append the text in VALUE to the end of the definition contained in VAR. Take
5790 # advantage of any shell optimizations that allow amortized linear growth over
5791 # repeated appends, instead of the typical quadratic growth present in naive
5792 # implementations.
5793 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5794 eval 'as_fn_append ()
5796 eval $1+=\$2
5798 else
5799 as_fn_append ()
5801 eval $1=\$$1\$2
5803 fi # as_fn_append
5805 # as_fn_arith ARG...
5806 # ------------------
5807 # Perform arithmetic evaluation on the ARGs, and store the result in the
5808 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5809 # must be portable across $(()) and expr.
5810 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5811 eval 'as_fn_arith ()
5813 as_val=$(( $* ))
5815 else
5816 as_fn_arith ()
5818 as_val=`expr "$@" || test $? -eq 1`
5820 fi # as_fn_arith
5823 if expr a : '\(a\)' >/dev/null 2>&1 &&
5824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5825 as_expr=expr
5826 else
5827 as_expr=false
5830 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5831 as_basename=basename
5832 else
5833 as_basename=false
5836 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5837 as_dirname=dirname
5838 else
5839 as_dirname=false
5842 as_me=`$as_basename -- "$0" ||
5843 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5844 X"$0" : 'X\(//\)$' \| \
5845 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5846 $as_echo X/"$0" |
5847 sed '/^.*\/\([^/][^/]*\)\/*$/{
5848 s//\1/
5851 /^X\/\(\/\/\)$/{
5852 s//\1/
5855 /^X\/\(\/\).*/{
5856 s//\1/
5859 s/.*/./; q'`
5861 # Avoid depending upon Character Ranges.
5862 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5863 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5864 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5865 as_cr_digits='0123456789'
5866 as_cr_alnum=$as_cr_Letters$as_cr_digits
5868 ECHO_C= ECHO_N= ECHO_T=
5869 case `echo -n x` in #(((((
5870 -n*)
5871 case `echo 'xy\c'` in
5872 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5873 xy) ECHO_C='\c';;
5874 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5875 ECHO_T=' ';;
5876 esac;;
5878 ECHO_N='-n';;
5879 esac
5881 rm -f conf$$ conf$$.exe conf$$.file
5882 if test -d conf$$.dir; then
5883 rm -f conf$$.dir/conf$$.file
5884 else
5885 rm -f conf$$.dir
5886 mkdir conf$$.dir 2>/dev/null
5888 if (echo >conf$$.file) 2>/dev/null; then
5889 if ln -s conf$$.file conf$$ 2>/dev/null; then
5890 as_ln_s='ln -s'
5891 # ... but there are two gotchas:
5892 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5893 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5894 # In both cases, we have to default to `cp -p'.
5895 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5896 as_ln_s='cp -p'
5897 elif ln conf$$.file conf$$ 2>/dev/null; then
5898 as_ln_s=ln
5899 else
5900 as_ln_s='cp -p'
5902 else
5903 as_ln_s='cp -p'
5905 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5906 rmdir conf$$.dir 2>/dev/null
5909 # as_fn_mkdir_p
5910 # -------------
5911 # Create "$as_dir" as a directory, including parents if necessary.
5912 as_fn_mkdir_p ()
5915 case $as_dir in #(
5916 -*) as_dir=./$as_dir;;
5917 esac
5918 test -d "$as_dir" || eval $as_mkdir_p || {
5919 as_dirs=
5920 while :; do
5921 case $as_dir in #(
5922 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5923 *) as_qdir=$as_dir;;
5924 esac
5925 as_dirs="'$as_qdir' $as_dirs"
5926 as_dir=`$as_dirname -- "$as_dir" ||
5927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5928 X"$as_dir" : 'X\(//\)[^/]' \| \
5929 X"$as_dir" : 'X\(//\)$' \| \
5930 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5931 $as_echo X"$as_dir" |
5932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5933 s//\1/
5936 /^X\(\/\/\)[^/].*/{
5937 s//\1/
5940 /^X\(\/\/\)$/{
5941 s//\1/
5944 /^X\(\/\).*/{
5945 s//\1/
5948 s/.*/./; q'`
5949 test -d "$as_dir" && break
5950 done
5951 test -z "$as_dirs" || eval "mkdir $as_dirs"
5952 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5955 } # as_fn_mkdir_p
5956 if mkdir -p . 2>/dev/null; then
5957 as_mkdir_p='mkdir -p "$as_dir"'
5958 else
5959 test -d ./-p && rmdir ./-p
5960 as_mkdir_p=false
5963 if test -x / >/dev/null 2>&1; then
5964 as_test_x='test -x'
5965 else
5966 if ls -dL / >/dev/null 2>&1; then
5967 as_ls_L_option=L
5968 else
5969 as_ls_L_option=
5971 as_test_x='
5972 eval sh -c '\''
5973 if test -d "$1"; then
5974 test -d "$1/.";
5975 else
5976 case $1 in #(
5977 -*)set "./$1";;
5978 esac;
5979 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5980 ???[sx]*):;;*)false;;esac;fi
5981 '\'' sh
5984 as_executable_p=$as_test_x
5986 # Sed expression to map a string onto a valid CPP name.
5987 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5989 # Sed expression to map a string onto a valid variable name.
5990 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5993 exec 6>&1
5994 ## ----------------------------------- ##
5995 ## Main body of $CONFIG_STATUS script. ##
5996 ## ----------------------------------- ##
5997 _ASEOF
5998 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6001 # Save the log message, to keep $0 and so on meaningful, and to
6002 # report actual input values of CONFIG_FILES etc. instead of their
6003 # values after options handling.
6004 ac_log="
6005 This file was extended by GNU C Runtime Library $as_me 1.0, which was
6006 generated by GNU Autoconf 2.64. Invocation command line was
6008 CONFIG_FILES = $CONFIG_FILES
6009 CONFIG_HEADERS = $CONFIG_HEADERS
6010 CONFIG_LINKS = $CONFIG_LINKS
6011 CONFIG_COMMANDS = $CONFIG_COMMANDS
6012 $ $0 $@
6014 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6017 _ACEOF
6019 case $ac_config_files in *"
6020 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6021 esac
6023 case $ac_config_headers in *"
6024 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6025 esac
6028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6029 # Files that config.status was made for.
6030 config_files="$ac_config_files"
6031 config_headers="$ac_config_headers"
6032 config_commands="$ac_config_commands"
6034 _ACEOF
6036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6037 ac_cs_usage="\
6038 \`$as_me' instantiates files and other configuration actions
6039 from templates according to the current configuration. Unless the files
6040 and actions are specified as TAGs, all are instantiated by default.
6042 Usage: $0 [OPTION]... [TAG]...
6044 -h, --help print this help, then exit
6045 -V, --version print version number and configuration settings, then exit
6046 -q, --quiet, --silent
6047 do not print progress messages
6048 -d, --debug don't remove temporary files
6049 --recheck update $as_me by reconfiguring in the same conditions
6050 --file=FILE[:TEMPLATE]
6051 instantiate the configuration file FILE
6052 --header=FILE[:TEMPLATE]
6053 instantiate the configuration header FILE
6055 Configuration files:
6056 $config_files
6058 Configuration headers:
6059 $config_headers
6061 Configuration commands:
6062 $config_commands
6064 Report bugs to the package provider.
6065 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
6066 General help using GNU software: <http://www.gnu.org/gethelp/>."
6068 _ACEOF
6069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6070 ac_cs_version="\\
6071 GNU C Runtime Library config.status 1.0
6072 configured by $0, generated by GNU Autoconf 2.64,
6073 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6075 Copyright (C) 2009 Free Software Foundation, Inc.
6076 This config.status script is free software; the Free Software Foundation
6077 gives unlimited permission to copy, distribute and modify it."
6079 ac_pwd='$ac_pwd'
6080 srcdir='$srcdir'
6081 INSTALL='$INSTALL'
6082 AWK='$AWK'
6083 test -n "\$AWK" || AWK=awk
6084 _ACEOF
6086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6087 # The default lists apply if the user does not specify any file.
6088 ac_need_defaults=:
6089 while test $# != 0
6091 case $1 in
6092 --*=*)
6093 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6094 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6095 ac_shift=:
6098 ac_option=$1
6099 ac_optarg=$2
6100 ac_shift=shift
6102 esac
6104 case $ac_option in
6105 # Handling of the options.
6106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6107 ac_cs_recheck=: ;;
6108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6109 $as_echo "$ac_cs_version"; exit ;;
6110 --debug | --debu | --deb | --de | --d | -d )
6111 debug=: ;;
6112 --file | --fil | --fi | --f )
6113 $ac_shift
6114 case $ac_optarg in
6115 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6116 esac
6117 as_fn_append CONFIG_FILES " '$ac_optarg'"
6118 ac_need_defaults=false;;
6119 --header | --heade | --head | --hea )
6120 $ac_shift
6121 case $ac_optarg in
6122 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6123 esac
6124 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6125 ac_need_defaults=false;;
6126 --he | --h)
6127 # Conflict between --help and --header
6128 as_fn_error "ambiguous option: \`$1'
6129 Try \`$0 --help' for more information.";;
6130 --help | --hel | -h )
6131 $as_echo "$ac_cs_usage"; exit ;;
6132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6133 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6134 ac_cs_silent=: ;;
6136 # This is an error.
6137 -*) as_fn_error "unrecognized option: \`$1'
6138 Try \`$0 --help' for more information." ;;
6140 *) as_fn_append ac_config_targets " $1"
6141 ac_need_defaults=false ;;
6143 esac
6144 shift
6145 done
6147 ac_configure_extra_args=
6149 if $ac_cs_silent; then
6150 exec 6>/dev/null
6151 ac_configure_extra_args="$ac_configure_extra_args --silent"
6154 _ACEOF
6155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6156 if \$ac_cs_recheck; then
6157 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6158 shift
6159 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6160 CONFIG_SHELL='$SHELL'
6161 export CONFIG_SHELL
6162 exec "\$@"
6165 _ACEOF
6166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6167 exec 5>>config.log
6169 echo
6170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6171 ## Running $as_me. ##
6172 _ASBOX
6173 $as_echo "$ac_log"
6174 } >&5
6176 _ACEOF
6177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6179 # INIT-COMMANDS
6181 srcdir=${srcdir}
6182 host=${host}
6183 with_target_subdir=${with_target_subdir}
6184 with_multisubdir=${with_multisubdir}
6185 ac_configure_args="--enable-multilib ${ac_configure_args}"
6186 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6187 libgcc_topdir=${libgcc_topdir}
6188 CC="${CC}"
6191 _ACEOF
6193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6195 # Handling of arguments.
6196 for ac_config_target in $ac_config_targets
6198 case $ac_config_target in
6199 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
6200 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6201 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6203 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6204 esac
6205 done
6208 # If the user did not use the arguments to specify the items to instantiate,
6209 # then the envvar interface is used. Set only those that are not.
6210 # We use the long form for the default assignment because of an extremely
6211 # bizarre bug on SunOS 4.1.3.
6212 if $ac_need_defaults; then
6213 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6214 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6215 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6218 # Have a temporary directory for convenience. Make it in the build tree
6219 # simply because there is no reason against having it here, and in addition,
6220 # creating and moving files from /tmp can sometimes cause problems.
6221 # Hook for its removal unless debugging.
6222 # Note that there is a small window in which the directory will not be cleaned:
6223 # after its creation but before its name has been assigned to `$tmp'.
6224 $debug ||
6226 tmp=
6227 trap 'exit_status=$?
6228 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6230 trap 'as_fn_exit 1' 1 2 13 15
6232 # Create a (secure) tmp directory for tmp files.
6235 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6236 test -n "$tmp" && test -d "$tmp"
6237 } ||
6239 tmp=./conf$$-$RANDOM
6240 (umask 077 && mkdir "$tmp")
6241 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6243 # Set up the scripts for CONFIG_FILES section.
6244 # No need to generate them if there are no CONFIG_FILES.
6245 # This happens for instance with `./config.status config.h'.
6246 if test -n "$CONFIG_FILES"; then
6249 ac_cr=`echo X | tr X '\015'`
6250 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6251 # But we know of no other shell where ac_cr would be empty at this
6252 # point, so we can use a bashism as a fallback.
6253 if test "x$ac_cr" = x; then
6254 eval ac_cr=\$\'\\r\'
6256 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6257 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6258 ac_cs_awk_cr='\r'
6259 else
6260 ac_cs_awk_cr=$ac_cr
6263 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6264 _ACEOF
6268 echo "cat >conf$$subs.awk <<_ACEOF" &&
6269 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6270 echo "_ACEOF"
6271 } >conf$$subs.sh ||
6272 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6273 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6274 ac_delim='%!_!# '
6275 for ac_last_try in false false false false false :; do
6276 . ./conf$$subs.sh ||
6277 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6279 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6280 if test $ac_delim_n = $ac_delim_num; then
6281 break
6282 elif $ac_last_try; then
6283 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6284 else
6285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6287 done
6288 rm -f conf$$subs.sh
6290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6291 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6292 _ACEOF
6293 sed -n '
6295 s/^/S["/; s/!.*/"]=/
6298 s/^[^!]*!//
6299 :repl
6300 t repl
6301 s/'"$ac_delim"'$//
6302 t delim
6305 s/\(.\{148\}\).*/\1/
6306 t more1
6307 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6310 b repl
6311 :more1
6312 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6315 s/.\{148\}//
6316 t nl
6317 :delim
6319 s/\(.\{148\}\).*/\1/
6320 t more2
6321 s/["\\]/\\&/g; s/^/"/; s/$/"/
6324 :more2
6325 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6328 s/.\{148\}//
6329 t delim
6330 ' <conf$$subs.awk | sed '
6331 /^[^""]/{
6333 s/\n//
6335 ' >>$CONFIG_STATUS || ac_write_fail=1
6336 rm -f conf$$subs.awk
6337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6338 _ACAWK
6339 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6340 for (key in S) S_is_set[key] = 1
6341 FS = "\a"
6345 line = $ 0
6346 nfields = split(line, field, "@")
6347 substed = 0
6348 len = length(field[1])
6349 for (i = 2; i < nfields; i++) {
6350 key = field[i]
6351 keylen = length(key)
6352 if (S_is_set[key]) {
6353 value = S[key]
6354 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6355 len += length(value) + length(field[++i])
6356 substed = 1
6357 } else
6358 len += 1 + keylen
6361 print line
6364 _ACAWK
6365 _ACEOF
6366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6367 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6368 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6369 else
6371 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6372 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6373 _ACEOF
6375 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6376 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6377 # trailing colons and then remove the whole line if VPATH becomes empty
6378 # (actually we leave an empty line to preserve line numbers).
6379 if test "x$srcdir" = x.; then
6380 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6381 s/:*\$(srcdir):*/:/
6382 s/:*\${srcdir}:*/:/
6383 s/:*@srcdir@:*/:/
6384 s/^\([^=]*=[ ]*\):*/\1/
6385 s/:*$//
6386 s/^[^=]*=[ ]*$//
6390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6391 fi # test -n "$CONFIG_FILES"
6393 # Set up the scripts for CONFIG_HEADERS section.
6394 # No need to generate them if there are no CONFIG_HEADERS.
6395 # This happens for instance with `./config.status Makefile'.
6396 if test -n "$CONFIG_HEADERS"; then
6397 cat >"$tmp/defines.awk" <<\_ACAWK ||
6398 BEGIN {
6399 _ACEOF
6401 # Transform confdefs.h into an awk script `defines.awk', embedded as
6402 # here-document in config.status, that substitutes the proper values into
6403 # config.h.in to produce config.h.
6405 # Create a delimiter string that does not exist in confdefs.h, to ease
6406 # handling of long lines.
6407 ac_delim='%!_!# '
6408 for ac_last_try in false false :; do
6409 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6410 if test -z "$ac_t"; then
6411 break
6412 elif $ac_last_try; then
6413 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6414 else
6415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6417 done
6419 # For the awk script, D is an array of macro values keyed by name,
6420 # likewise P contains macro parameters if any. Preserve backslash
6421 # newline sequences.
6423 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6424 sed -n '
6425 s/.\{148\}/&'"$ac_delim"'/g
6426 t rset
6427 :rset
6428 s/^[ ]*#[ ]*define[ ][ ]*/ /
6429 t def
6431 :def
6432 s/\\$//
6433 t bsnl
6434 s/["\\]/\\&/g
6435 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6436 D["\1"]=" \3"/p
6437 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6439 :bsnl
6440 s/["\\]/\\&/g
6441 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6442 D["\1"]=" \3\\\\\\n"\\/p
6443 t cont
6444 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6445 t cont
6447 :cont
6449 s/.\{148\}/&'"$ac_delim"'/g
6450 t clear
6451 :clear
6452 s/\\$//
6453 t bsnlc
6454 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6456 :bsnlc
6457 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6458 b cont
6459 ' <confdefs.h | sed '
6460 s/'"$ac_delim"'/"\\\
6461 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6464 for (key in D) D_is_set[key] = 1
6465 FS = "\a"
6467 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6468 line = \$ 0
6469 split(line, arg, " ")
6470 if (arg[1] == "#") {
6471 defundef = arg[2]
6472 mac1 = arg[3]
6473 } else {
6474 defundef = substr(arg[1], 2)
6475 mac1 = arg[2]
6477 split(mac1, mac2, "(") #)
6478 macro = mac2[1]
6479 prefix = substr(line, 1, index(line, defundef) - 1)
6480 if (D_is_set[macro]) {
6481 # Preserve the white space surrounding the "#".
6482 print prefix "define", macro P[macro] D[macro]
6483 next
6484 } else {
6485 # Replace #undef with comments. This is necessary, for example,
6486 # in the case of _POSIX_SOURCE, which is predefined and required
6487 # on some systems where configure will not decide to define it.
6488 if (defundef == "undef") {
6489 print "/*", prefix defundef, macro, "*/"
6490 next
6494 { print }
6495 _ACAWK
6496 _ACEOF
6497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6498 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6499 fi # test -n "$CONFIG_HEADERS"
6502 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6503 shift
6504 for ac_tag
6506 case $ac_tag in
6507 :[FHLC]) ac_mode=$ac_tag; continue;;
6508 esac
6509 case $ac_mode$ac_tag in
6510 :[FHL]*:*);;
6511 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6512 :[FH]-) ac_tag=-:-;;
6513 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6514 esac
6515 ac_save_IFS=$IFS
6516 IFS=:
6517 set x $ac_tag
6518 IFS=$ac_save_IFS
6519 shift
6520 ac_file=$1
6521 shift
6523 case $ac_mode in
6524 :L) ac_source=$1;;
6525 :[FH])
6526 ac_file_inputs=
6527 for ac_f
6529 case $ac_f in
6530 -) ac_f="$tmp/stdin";;
6531 *) # Look for the file first in the build tree, then in the source tree
6532 # (if the path is not absolute). The absolute path cannot be DOS-style,
6533 # because $ac_f cannot contain `:'.
6534 test -f "$ac_f" ||
6535 case $ac_f in
6536 [\\/$]*) false;;
6537 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6538 esac ||
6539 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6540 esac
6541 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6542 as_fn_append ac_file_inputs " '$ac_f'"
6543 done
6545 # Let's still pretend it is `configure' which instantiates (i.e., don't
6546 # use $as_me), people would be surprised to read:
6547 # /* config.h. Generated by config.status. */
6548 configure_input='Generated from '`
6549 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6550 `' by configure.'
6551 if test x"$ac_file" != x-; then
6552 configure_input="$ac_file. $configure_input"
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6554 $as_echo "$as_me: creating $ac_file" >&6;}
6556 # Neutralize special characters interpreted by sed in replacement strings.
6557 case $configure_input in #(
6558 *\&* | *\|* | *\\* )
6559 ac_sed_conf_input=`$as_echo "$configure_input" |
6560 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6561 *) ac_sed_conf_input=$configure_input;;
6562 esac
6564 case $ac_tag in
6565 *:-:* | *:-) cat >"$tmp/stdin" \
6566 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6567 esac
6569 esac
6571 ac_dir=`$as_dirname -- "$ac_file" ||
6572 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6573 X"$ac_file" : 'X\(//\)[^/]' \| \
6574 X"$ac_file" : 'X\(//\)$' \| \
6575 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6576 $as_echo X"$ac_file" |
6577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6578 s//\1/
6581 /^X\(\/\/\)[^/].*/{
6582 s//\1/
6585 /^X\(\/\/\)$/{
6586 s//\1/
6589 /^X\(\/\).*/{
6590 s//\1/
6593 s/.*/./; q'`
6594 as_dir="$ac_dir"; as_fn_mkdir_p
6595 ac_builddir=.
6597 case "$ac_dir" in
6598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6601 # A ".." for each directory in $ac_dir_suffix.
6602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6603 case $ac_top_builddir_sub in
6604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6606 esac ;;
6607 esac
6608 ac_abs_top_builddir=$ac_pwd
6609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6610 # for backward compatibility:
6611 ac_top_builddir=$ac_top_build_prefix
6613 case $srcdir in
6614 .) # We are building in place.
6615 ac_srcdir=.
6616 ac_top_srcdir=$ac_top_builddir_sub
6617 ac_abs_top_srcdir=$ac_pwd ;;
6618 [\\/]* | ?:[\\/]* ) # Absolute name.
6619 ac_srcdir=$srcdir$ac_dir_suffix;
6620 ac_top_srcdir=$srcdir
6621 ac_abs_top_srcdir=$srcdir ;;
6622 *) # Relative name.
6623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6624 ac_top_srcdir=$ac_top_build_prefix$srcdir
6625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6626 esac
6627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6630 case $ac_mode in
6633 # CONFIG_FILE
6636 case $INSTALL in
6637 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6638 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6639 esac
6640 _ACEOF
6642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6643 # If the template does not know about datarootdir, expand it.
6644 # FIXME: This hack should be removed a few years after 2.60.
6645 ac_datarootdir_hack=; ac_datarootdir_seen=
6646 ac_sed_dataroot='
6647 /datarootdir/ {
6651 /@datadir@/p
6652 /@docdir@/p
6653 /@infodir@/p
6654 /@localedir@/p
6655 /@mandir@/p'
6656 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6657 *datarootdir*) ac_datarootdir_seen=yes;;
6658 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6660 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6661 _ACEOF
6662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6663 ac_datarootdir_hack='
6664 s&@datadir@&$datadir&g
6665 s&@docdir@&$docdir&g
6666 s&@infodir@&$infodir&g
6667 s&@localedir@&$localedir&g
6668 s&@mandir@&$mandir&g
6669 s&\\\${datarootdir}&$datarootdir&g' ;;
6670 esac
6671 _ACEOF
6673 # Neutralize VPATH when `$srcdir' = `.'.
6674 # Shell code in configure.ac might set extrasub.
6675 # FIXME: do we really want to maintain this feature?
6676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6677 ac_sed_extra="$ac_vpsub
6678 $extrasub
6679 _ACEOF
6680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6682 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6683 s|@configure_input@|$ac_sed_conf_input|;t t
6684 s&@top_builddir@&$ac_top_builddir_sub&;t t
6685 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6686 s&@srcdir@&$ac_srcdir&;t t
6687 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6688 s&@top_srcdir@&$ac_top_srcdir&;t t
6689 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6690 s&@builddir@&$ac_builddir&;t t
6691 s&@abs_builddir@&$ac_abs_builddir&;t t
6692 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6693 s&@INSTALL@&$ac_INSTALL&;t t
6694 $ac_datarootdir_hack
6696 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6697 || as_fn_error "could not create $ac_file" "$LINENO" 5
6699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6700 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6703 which seems to be undefined. Please make sure it is defined." >&5
6704 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6705 which seems to be undefined. Please make sure it is defined." >&2;}
6707 rm -f "$tmp/stdin"
6708 case $ac_file in
6709 -) cat "$tmp/out" && rm -f "$tmp/out";;
6710 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6711 esac \
6712 || as_fn_error "could not create $ac_file" "$LINENO" 5
6716 # CONFIG_HEADER
6718 if test x"$ac_file" != x-; then
6720 $as_echo "/* $configure_input */" \
6721 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6722 } >"$tmp/config.h" \
6723 || as_fn_error "could not create $ac_file" "$LINENO" 5
6724 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6726 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6727 else
6728 rm -f "$ac_file"
6729 mv "$tmp/config.h" "$ac_file" \
6730 || as_fn_error "could not create $ac_file" "$LINENO" 5
6732 else
6733 $as_echo "/* $configure_input */" \
6734 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6735 || as_fn_error "could not create -" "$LINENO" 5
6739 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6740 $as_echo "$as_me: executing $ac_file commands" >&6;}
6742 esac
6745 case $ac_file$ac_mode in
6746 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6747 if test -n "$CONFIG_FILES"; then
6748 # FIXME: We shouldn't need to set ac_file
6749 ac_file=Makefile
6750 . ${libgcc_topdir}/config-ml.in
6751 fi ;;
6753 esac
6754 done # for ac_tag
6757 as_fn_exit 0
6758 _ACEOF
6759 ac_clean_files=$ac_clean_files_save
6761 test $ac_write_fail = 0 ||
6762 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6765 # configure is writing to config.log, and then calls config.status.
6766 # config.status does its own redirection, appending to config.log.
6767 # Unfortunately, on DOS this fails, as config.log is still kept open
6768 # by configure, so config.status won't be able to write to it; its
6769 # output is simply discarded. So we exec the FD to /dev/null,
6770 # effectively closing config.log, so it can be properly (re)opened and
6771 # appended to by config.status. When coming back to configure, we
6772 # need to make the FD available again.
6773 if test "$no_create" != yes; then
6774 ac_cs_success=:
6775 ac_config_status_args=
6776 test "$silent" = yes &&
6777 ac_config_status_args="$ac_config_status_args --quiet"
6778 exec 5>/dev/null
6779 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6780 exec 5>>config.log
6781 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6782 # would make configure fail if this is the last instruction.
6783 $ac_cs_success || as_fn_exit $?
6785 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6787 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}