2015-03-10 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libgcc / configure
blob9d567f9d48c4ad0db74c0066d2ef2ac8f2f392fb
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU C Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME='GNU C Runtime Library'
548 PACKAGE_TARNAME='libgcc'
549 PACKAGE_VERSION='1.0'
550 PACKAGE_STRING='GNU C Runtime Library 1.0'
551 PACKAGE_BUGREPORT=''
552 PACKAGE_URL='http://www.gnu.org/software/libgcc/'
554 ac_unique_file="static-object.mk"
555 ac_includes_default='/* none */'
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 asm_hidden_op
559 extra_parts
560 cpu_type
561 thread_header
562 tm_defines
563 tm_file
564 tmake_file
565 sfp_machine_header
566 set_use_emutls
567 set_have_cc_tls
568 vis_hide
569 accel_dir_suffix
570 force_explicit_eh_registry
571 fixed_point
572 enable_decimal_float
573 decimal_float
574 EGREP
575 GREP
576 long_double_type_size
577 double_type_size
579 OBJEXT
580 EXEEXT
581 ac_ct_CC
582 CPPFLAGS
583 LDFLAGS
584 CFLAGS
586 LN_S
587 STRIP
588 RANLIB
590 LIPO
592 toolexeclibdir
593 toolexecdir
594 target_subdir
595 host_subdir
596 build_subdir
597 build_libsubdir
598 target_noncanonical
599 host_noncanonical
601 INSTALL_DATA
602 INSTALL_SCRIPT
603 INSTALL_PROGRAM
604 MAINT
605 slibdir
606 PICFLAG
607 host_os
608 host_vendor
609 host_cpu
610 host
611 build_os
612 build_vendor
613 build_cpu
614 build
615 with_aix_soname
616 enable_vtable_verify
617 enable_shared
618 libgcc_topdir
619 target_alias
620 host_alias
621 build_alias
622 LIBS
623 ECHO_T
624 ECHO_N
625 ECHO_C
626 DEFS
627 mandir
628 localedir
629 libdir
630 psdir
631 pdfdir
632 dvidir
633 htmldir
634 infodir
635 docdir
636 oldincludedir
637 includedir
638 localstatedir
639 sharedstatedir
640 sysconfdir
641 datadir
642 datarootdir
643 libexecdir
644 sbindir
645 bindir
646 program_transform_name
647 prefix
648 exec_prefix
649 PACKAGE_URL
650 PACKAGE_BUGREPORT
651 PACKAGE_STRING
652 PACKAGE_VERSION
653 PACKAGE_TARNAME
654 PACKAGE_NAME
655 PATH_SEPARATOR
656 SHELL'
657 ac_subst_files=''
658 ac_user_opts='
659 enable_option_checking
660 with_target_subdir
661 with_cross_host
662 with_ld
663 enable_shared
664 enable_vtable_verify
665 with_aix_soname
666 enable_version_specific_runtime_libs
667 with_slibdir
668 enable_maintainer_mode
669 with_build_libsubdir
670 enable_decimal_float
671 with_system_libunwind
672 enable_sjlj_exceptions
673 enable_explicit_exception_frame_registration
674 with_glibc_version
675 enable_tls
677 ac_precious_vars='build_alias
678 host_alias
679 target_alias
681 CFLAGS
682 LDFLAGS
683 LIBS
684 CPPFLAGS
685 CPP'
688 # Initialize some variables set by options.
689 ac_init_help=
690 ac_init_version=false
691 ac_unrecognized_opts=
692 ac_unrecognized_sep=
693 # The variables have the same names as the options, with
694 # dashes changed to underlines.
695 cache_file=/dev/null
696 exec_prefix=NONE
697 no_create=
698 no_recursion=
699 prefix=NONE
700 program_prefix=NONE
701 program_suffix=NONE
702 program_transform_name=s,x,x,
703 silent=
704 site=
705 srcdir=
706 verbose=
707 x_includes=NONE
708 x_libraries=NONE
710 # Installation directory options.
711 # These are left unexpanded so users can "make install exec_prefix=/foo"
712 # and all the variables that are supposed to be based on exec_prefix
713 # by default will actually change.
714 # Use braces instead of parens because sh, perl, etc. also accept them.
715 # (The list follows the same order as the GNU Coding Standards.)
716 bindir='${exec_prefix}/bin'
717 sbindir='${exec_prefix}/sbin'
718 libexecdir='${exec_prefix}/libexec'
719 datarootdir='${prefix}/share'
720 datadir='${datarootdir}'
721 sysconfdir='${prefix}/etc'
722 sharedstatedir='${prefix}/com'
723 localstatedir='${prefix}/var'
724 includedir='${prefix}/include'
725 oldincludedir='/usr/include'
726 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
727 infodir='${datarootdir}/info'
728 htmldir='${docdir}'
729 dvidir='${docdir}'
730 pdfdir='${docdir}'
731 psdir='${docdir}'
732 libdir='${exec_prefix}/lib'
733 localedir='${datarootdir}/locale'
734 mandir='${datarootdir}/man'
736 ac_prev=
737 ac_dashdash=
738 for ac_option
740 # If the previous option needs an argument, assign it.
741 if test -n "$ac_prev"; then
742 eval $ac_prev=\$ac_option
743 ac_prev=
744 continue
747 case $ac_option in
748 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
749 *) ac_optarg=yes ;;
750 esac
752 # Accept the important Cygnus configure options, so we can diagnose typos.
754 case $ac_dashdash$ac_option in
756 ac_dashdash=yes ;;
758 -bindir | --bindir | --bindi | --bind | --bin | --bi)
759 ac_prev=bindir ;;
760 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
761 bindir=$ac_optarg ;;
763 -build | --build | --buil | --bui | --bu)
764 ac_prev=build_alias ;;
765 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
766 build_alias=$ac_optarg ;;
768 -cache-file | --cache-file | --cache-fil | --cache-fi \
769 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
770 ac_prev=cache_file ;;
771 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
772 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
773 cache_file=$ac_optarg ;;
775 --config-cache | -C)
776 cache_file=config.cache ;;
778 -datadir | --datadir | --datadi | --datad)
779 ac_prev=datadir ;;
780 -datadir=* | --datadir=* | --datadi=* | --datad=*)
781 datadir=$ac_optarg ;;
783 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
784 | --dataroo | --dataro | --datar)
785 ac_prev=datarootdir ;;
786 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
787 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
788 datarootdir=$ac_optarg ;;
790 -disable-* | --disable-*)
791 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
794 as_fn_error "invalid feature name: $ac_useropt"
795 ac_useropt_orig=$ac_useropt
796 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
797 case $ac_user_opts in
799 "enable_$ac_useropt"
800 "*) ;;
801 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
802 ac_unrecognized_sep=', ';;
803 esac
804 eval enable_$ac_useropt=no ;;
806 -docdir | --docdir | --docdi | --doc | --do)
807 ac_prev=docdir ;;
808 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
809 docdir=$ac_optarg ;;
811 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
812 ac_prev=dvidir ;;
813 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
814 dvidir=$ac_optarg ;;
816 -enable-* | --enable-*)
817 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
818 # Reject names that are not valid shell variable names.
819 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
820 as_fn_error "invalid feature name: $ac_useropt"
821 ac_useropt_orig=$ac_useropt
822 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
823 case $ac_user_opts in
825 "enable_$ac_useropt"
826 "*) ;;
827 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
828 ac_unrecognized_sep=', ';;
829 esac
830 eval enable_$ac_useropt=\$ac_optarg ;;
832 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
833 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
834 | --exec | --exe | --ex)
835 ac_prev=exec_prefix ;;
836 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
837 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
838 | --exec=* | --exe=* | --ex=*)
839 exec_prefix=$ac_optarg ;;
841 -gas | --gas | --ga | --g)
842 # Obsolete; use --with-gas.
843 with_gas=yes ;;
845 -help | --help | --hel | --he | -h)
846 ac_init_help=long ;;
847 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
848 ac_init_help=recursive ;;
849 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
850 ac_init_help=short ;;
852 -host | --host | --hos | --ho)
853 ac_prev=host_alias ;;
854 -host=* | --host=* | --hos=* | --ho=*)
855 host_alias=$ac_optarg ;;
857 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
858 ac_prev=htmldir ;;
859 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
860 | --ht=*)
861 htmldir=$ac_optarg ;;
863 -includedir | --includedir | --includedi | --included | --include \
864 | --includ | --inclu | --incl | --inc)
865 ac_prev=includedir ;;
866 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
867 | --includ=* | --inclu=* | --incl=* | --inc=*)
868 includedir=$ac_optarg ;;
870 -infodir | --infodir | --infodi | --infod | --info | --inf)
871 ac_prev=infodir ;;
872 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
873 infodir=$ac_optarg ;;
875 -libdir | --libdir | --libdi | --libd)
876 ac_prev=libdir ;;
877 -libdir=* | --libdir=* | --libdi=* | --libd=*)
878 libdir=$ac_optarg ;;
880 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
881 | --libexe | --libex | --libe)
882 ac_prev=libexecdir ;;
883 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
884 | --libexe=* | --libex=* | --libe=*)
885 libexecdir=$ac_optarg ;;
887 -localedir | --localedir | --localedi | --localed | --locale)
888 ac_prev=localedir ;;
889 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
890 localedir=$ac_optarg ;;
892 -localstatedir | --localstatedir | --localstatedi | --localstated \
893 | --localstate | --localstat | --localsta | --localst | --locals)
894 ac_prev=localstatedir ;;
895 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
896 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
897 localstatedir=$ac_optarg ;;
899 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
900 ac_prev=mandir ;;
901 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
902 mandir=$ac_optarg ;;
904 -nfp | --nfp | --nf)
905 # Obsolete; use --without-fp.
906 with_fp=no ;;
908 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
909 | --no-cr | --no-c | -n)
910 no_create=yes ;;
912 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
913 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
914 no_recursion=yes ;;
916 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
917 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
918 | --oldin | --oldi | --old | --ol | --o)
919 ac_prev=oldincludedir ;;
920 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
921 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
922 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
923 oldincludedir=$ac_optarg ;;
925 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
926 ac_prev=prefix ;;
927 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
928 prefix=$ac_optarg ;;
930 -program-prefix | --program-prefix | --program-prefi | --program-pref \
931 | --program-pre | --program-pr | --program-p)
932 ac_prev=program_prefix ;;
933 -program-prefix=* | --program-prefix=* | --program-prefi=* \
934 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
935 program_prefix=$ac_optarg ;;
937 -program-suffix | --program-suffix | --program-suffi | --program-suff \
938 | --program-suf | --program-su | --program-s)
939 ac_prev=program_suffix ;;
940 -program-suffix=* | --program-suffix=* | --program-suffi=* \
941 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
942 program_suffix=$ac_optarg ;;
944 -program-transform-name | --program-transform-name \
945 | --program-transform-nam | --program-transform-na \
946 | --program-transform-n | --program-transform- \
947 | --program-transform | --program-transfor \
948 | --program-transfo | --program-transf \
949 | --program-trans | --program-tran \
950 | --progr-tra | --program-tr | --program-t)
951 ac_prev=program_transform_name ;;
952 -program-transform-name=* | --program-transform-name=* \
953 | --program-transform-nam=* | --program-transform-na=* \
954 | --program-transform-n=* | --program-transform-=* \
955 | --program-transform=* | --program-transfor=* \
956 | --program-transfo=* | --program-transf=* \
957 | --program-trans=* | --program-tran=* \
958 | --progr-tra=* | --program-tr=* | --program-t=*)
959 program_transform_name=$ac_optarg ;;
961 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
962 ac_prev=pdfdir ;;
963 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
964 pdfdir=$ac_optarg ;;
966 -psdir | --psdir | --psdi | --psd | --ps)
967 ac_prev=psdir ;;
968 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
969 psdir=$ac_optarg ;;
971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
972 | -silent | --silent | --silen | --sile | --sil)
973 silent=yes ;;
975 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
976 ac_prev=sbindir ;;
977 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
978 | --sbi=* | --sb=*)
979 sbindir=$ac_optarg ;;
981 -sharedstatedir | --sharedstatedir | --sharedstatedi \
982 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
983 | --sharedst | --shareds | --shared | --share | --shar \
984 | --sha | --sh)
985 ac_prev=sharedstatedir ;;
986 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
987 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
988 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
989 | --sha=* | --sh=*)
990 sharedstatedir=$ac_optarg ;;
992 -site | --site | --sit)
993 ac_prev=site ;;
994 -site=* | --site=* | --sit=*)
995 site=$ac_optarg ;;
997 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
998 ac_prev=srcdir ;;
999 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1000 srcdir=$ac_optarg ;;
1002 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1003 | --syscon | --sysco | --sysc | --sys | --sy)
1004 ac_prev=sysconfdir ;;
1005 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1006 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1007 sysconfdir=$ac_optarg ;;
1009 -target | --target | --targe | --targ | --tar | --ta | --t)
1010 ac_prev=target_alias ;;
1011 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1012 target_alias=$ac_optarg ;;
1014 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1015 verbose=yes ;;
1017 -version | --version | --versio | --versi | --vers | -V)
1018 ac_init_version=: ;;
1020 -with-* | --with-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error "invalid package name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1029 "with_$ac_useropt"
1030 "*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval with_$ac_useropt=\$ac_optarg ;;
1036 -without-* | --without-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error "invalid package name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "with_$ac_useropt"
1046 "*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval with_$ac_useropt=no ;;
1052 --x)
1053 # Obsolete; use --with-x.
1054 with_x=yes ;;
1056 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1057 | --x-incl | --x-inc | --x-in | --x-i)
1058 ac_prev=x_includes ;;
1059 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1060 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1061 x_includes=$ac_optarg ;;
1063 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1064 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1065 ac_prev=x_libraries ;;
1066 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1067 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1068 x_libraries=$ac_optarg ;;
1070 -*) as_fn_error "unrecognized option: \`$ac_option'
1071 Try \`$0 --help' for more information."
1074 *=*)
1075 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1076 # Reject names that are not valid shell variable names.
1077 case $ac_envvar in #(
1078 '' | [0-9]* | *[!_$as_cr_alnum]* )
1079 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1080 esac
1081 eval $ac_envvar=\$ac_optarg
1082 export $ac_envvar ;;
1085 # FIXME: should be removed in autoconf 3.0.
1086 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1092 esac
1093 done
1095 if test -n "$ac_prev"; then
1096 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1097 as_fn_error "missing argument to $ac_option"
1100 if test -n "$ac_unrecognized_opts"; then
1101 case $enable_option_checking in
1102 no) ;;
1103 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1104 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1105 esac
1108 # Check all directory arguments for consistency.
1109 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1110 datadir sysconfdir sharedstatedir localstatedir includedir \
1111 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1112 libdir localedir mandir
1114 eval ac_val=\$$ac_var
1115 # Remove trailing slashes.
1116 case $ac_val in
1117 */ )
1118 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1119 eval $ac_var=\$ac_val;;
1120 esac
1121 # Be sure to have absolute directory names.
1122 case $ac_val in
1123 [\\/$]* | ?:[\\/]* ) continue;;
1124 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125 esac
1126 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1127 done
1129 # There might be people who depend on the old broken behavior: `$host'
1130 # used to hold the argument of --host etc.
1131 # FIXME: To remove some day.
1132 build=$build_alias
1133 host=$host_alias
1134 target=$target_alias
1136 # FIXME: To remove some day.
1137 if test "x$host_alias" != x; then
1138 if test "x$build_alias" = x; then
1139 cross_compiling=maybe
1140 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1141 If a cross compiler is detected then cross compile mode will be used." >&2
1142 elif test "x$build_alias" != "x$host_alias"; then
1143 cross_compiling=yes
1147 ac_tool_prefix=
1148 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1150 test "$silent" = yes && exec 6>/dev/null
1153 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154 ac_ls_di=`ls -di .` &&
1155 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156 as_fn_error "working directory cannot be determined"
1157 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1158 as_fn_error "pwd does not report name of working directory"
1161 # Find the source files, if location was not specified.
1162 if test -z "$srcdir"; then
1163 ac_srcdir_defaulted=yes
1164 # Try the directory containing this script, then the parent directory.
1165 ac_confdir=`$as_dirname -- "$as_myself" ||
1166 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1167 X"$as_myself" : 'X\(//\)[^/]' \| \
1168 X"$as_myself" : 'X\(//\)$' \| \
1169 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1170 $as_echo X"$as_myself" |
1171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1172 s//\1/
1175 /^X\(\/\/\)[^/].*/{
1176 s//\1/
1179 /^X\(\/\/\)$/{
1180 s//\1/
1183 /^X\(\/\).*/{
1184 s//\1/
1187 s/.*/./; q'`
1188 srcdir=$ac_confdir
1189 if test ! -r "$srcdir/$ac_unique_file"; then
1190 srcdir=..
1192 else
1193 ac_srcdir_defaulted=no
1195 if test ! -r "$srcdir/$ac_unique_file"; then
1196 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1197 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1199 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1200 ac_abs_confdir=`(
1201 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1202 pwd)`
1203 # When building in place, set srcdir=.
1204 if test "$ac_abs_confdir" = "$ac_pwd"; then
1205 srcdir=.
1207 # Remove unnecessary trailing slashes from srcdir.
1208 # Double slashes in file names in object file debugging info
1209 # mess up M-x gdb in Emacs.
1210 case $srcdir in
1211 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212 esac
1213 for ac_var in $ac_precious_vars; do
1214 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1215 eval ac_env_${ac_var}_value=\$${ac_var}
1216 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1217 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1218 done
1221 # Report the --help message.
1223 if test "$ac_init_help" = "long"; then
1224 # Omit some internal or obsolete options to make the list less imposing.
1225 # This message is too long to be a string in the A/UX 3.1 sh.
1226 cat <<_ACEOF
1227 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1229 Usage: $0 [OPTION]... [VAR=VALUE]...
1231 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1232 VAR=VALUE. See below for descriptions of some of the useful variables.
1234 Defaults for the options are specified in brackets.
1236 Configuration:
1237 -h, --help display this help and exit
1238 --help=short display options specific to this package
1239 --help=recursive display the short help of all the included packages
1240 -V, --version display version information and exit
1241 -q, --quiet, --silent do not print \`checking...' messages
1242 --cache-file=FILE cache test results in FILE [disabled]
1243 -C, --config-cache alias for \`--cache-file=config.cache'
1244 -n, --no-create do not create output files
1245 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1247 Installation directories:
1248 --prefix=PREFIX install architecture-independent files in PREFIX
1249 [$ac_default_prefix]
1250 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1251 [PREFIX]
1253 By default, \`make install' will install all the files in
1254 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1255 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1256 for instance \`--prefix=\$HOME'.
1258 For better control, use the options below.
1260 Fine tuning of the installation directories:
1261 --bindir=DIR user executables [EPREFIX/bin]
1262 --sbindir=DIR system admin executables [EPREFIX/sbin]
1263 --libexecdir=DIR program executables [EPREFIX/libexec]
1264 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1265 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1266 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1267 --libdir=DIR object code libraries [EPREFIX/lib]
1268 --includedir=DIR C header files [PREFIX/include]
1269 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1270 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1271 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1272 --infodir=DIR info documentation [DATAROOTDIR/info]
1273 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1274 --mandir=DIR man documentation [DATAROOTDIR/man]
1275 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1276 --htmldir=DIR html documentation [DOCDIR]
1277 --dvidir=DIR dvi documentation [DOCDIR]
1278 --pdfdir=DIR pdf documentation [DOCDIR]
1279 --psdir=DIR ps documentation [DOCDIR]
1280 _ACEOF
1282 cat <<\_ACEOF
1284 System types:
1285 --build=BUILD configure for building on BUILD [guessed]
1286 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1287 _ACEOF
1290 if test -n "$ac_init_help"; then
1291 case $ac_init_help in
1292 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1293 esac
1294 cat <<\_ACEOF
1296 Optional Features:
1297 --disable-option-checking ignore unrecognized --enable/--with options
1298 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1299 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1300 --disable-shared don't provide a shared libgcc
1301 --enable-vtable-verify Enable vtable verification feature
1302 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1303 --enable-maintainer-mode
1304 enable make rules and dependencies not useful (and
1305 sometimes confusing) to the casual installer
1306 --enable-decimal-float={no,yes,bid,dpd}
1307 enable decimal float extension to C. Selecting 'bid'
1308 or 'dpd' choses which decimal floating point format
1309 to use
1310 --enable-sjlj-exceptions
1311 force use of builtin_setjmp for exceptions
1312 --enable-explicit-exception-frame-registration
1313 register exception tables explicitly at module
1314 start, for use e.g. for compatibility with
1315 installations without PT_GNU_EH_FRAME support
1316 --enable-tls Use thread-local storage [default=yes]
1318 Optional Packages:
1319 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1320 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1321 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1322 --with-cross-host=HOST Configuring with a cross compiler
1323 --with-ld arrange to use the specified ld (full pathname)
1324 --with-aix-soname=aix|svr4|both
1325 shared library versioning (aka "SONAME") variant to
1326 provide on AIX
1327 --with-slibdir=DIR shared libraries in DIR LIBDIR
1328 --with-build-libsubdir=DIR Directory where to find libraries for build system
1329 --with-system-libunwind use installed libunwind
1330 --with-glibc-version=M.N
1331 assume GCC used with glibc version M.N or later
1333 Some influential environment variables:
1334 CC C compiler command
1335 CFLAGS C compiler flags
1336 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1337 nonstandard directory <lib dir>
1338 LIBS libraries to pass to the linker, e.g. -l<library>
1339 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1340 you have headers in a nonstandard directory <include dir>
1341 CPP C preprocessor
1343 Use these variables to override the choices made by `configure' or to help
1344 it to find libraries and programs with nonstandard names/locations.
1346 Report bugs to the package provider.
1347 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1348 General help using GNU software: <http://www.gnu.org/gethelp/>.
1349 _ACEOF
1350 ac_status=$?
1353 if test "$ac_init_help" = "recursive"; then
1354 # If there are subdirs, report their specific --help.
1355 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1356 test -d "$ac_dir" ||
1357 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1358 continue
1359 ac_builddir=.
1361 case "$ac_dir" in
1362 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1365 # A ".." for each directory in $ac_dir_suffix.
1366 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1367 case $ac_top_builddir_sub in
1368 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1370 esac ;;
1371 esac
1372 ac_abs_top_builddir=$ac_pwd
1373 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1374 # for backward compatibility:
1375 ac_top_builddir=$ac_top_build_prefix
1377 case $srcdir in
1378 .) # We are building in place.
1379 ac_srcdir=.
1380 ac_top_srcdir=$ac_top_builddir_sub
1381 ac_abs_top_srcdir=$ac_pwd ;;
1382 [\\/]* | ?:[\\/]* ) # Absolute name.
1383 ac_srcdir=$srcdir$ac_dir_suffix;
1384 ac_top_srcdir=$srcdir
1385 ac_abs_top_srcdir=$srcdir ;;
1386 *) # Relative name.
1387 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1388 ac_top_srcdir=$ac_top_build_prefix$srcdir
1389 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1390 esac
1391 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1393 cd "$ac_dir" || { ac_status=$?; continue; }
1394 # Check for guested configure.
1395 if test -f "$ac_srcdir/configure.gnu"; then
1396 echo &&
1397 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1398 elif test -f "$ac_srcdir/configure"; then
1399 echo &&
1400 $SHELL "$ac_srcdir/configure" --help=recursive
1401 else
1402 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1403 fi || ac_status=$?
1404 cd "$ac_pwd" || { ac_status=$?; break; }
1405 done
1408 test -n "$ac_init_help" && exit $ac_status
1409 if $ac_init_version; then
1410 cat <<\_ACEOF
1411 GNU C Runtime Library configure 1.0
1412 generated by GNU Autoconf 2.64
1414 Copyright (C) 2009 Free Software Foundation, Inc.
1415 This configure script is free software; the Free Software Foundation
1416 gives unlimited permission to copy, distribute and modify it.
1417 _ACEOF
1418 exit
1421 ## ------------------------ ##
1422 ## Autoconf initialization. ##
1423 ## ------------------------ ##
1425 # ac_fn_c_try_compile LINENO
1426 # --------------------------
1427 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1428 ac_fn_c_try_compile ()
1430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1431 rm -f conftest.$ac_objext
1432 if { { ac_try="$ac_compile"
1433 case "(($ac_try" in
1434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1435 *) ac_try_echo=$ac_try;;
1436 esac
1437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1438 $as_echo "$ac_try_echo"; } >&5
1439 (eval "$ac_compile") 2>conftest.err
1440 ac_status=$?
1441 if test -s conftest.err; then
1442 grep -v '^ *+' conftest.err >conftest.er1
1443 cat conftest.er1 >&5
1444 mv -f conftest.er1 conftest.err
1446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1447 test $ac_status = 0; } && {
1448 test -z "$ac_c_werror_flag" ||
1449 test ! -s conftest.err
1450 } && test -s conftest.$ac_objext; then :
1451 ac_retval=0
1452 else
1453 $as_echo "$as_me: failed program was:" >&5
1454 sed 's/^/| /' conftest.$ac_ext >&5
1456 ac_retval=1
1458 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1459 return $ac_retval
1461 } # ac_fn_c_try_compile
1463 # ac_fn_c_try_cpp LINENO
1464 # ----------------------
1465 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1466 ac_fn_c_try_cpp ()
1468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1469 if { { ac_try="$ac_cpp conftest.$ac_ext"
1470 case "(($ac_try" in
1471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1472 *) ac_try_echo=$ac_try;;
1473 esac
1474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1475 $as_echo "$ac_try_echo"; } >&5
1476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1477 ac_status=$?
1478 if test -s conftest.err; then
1479 grep -v '^ *+' conftest.err >conftest.er1
1480 cat conftest.er1 >&5
1481 mv -f conftest.er1 conftest.err
1483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1484 test $ac_status = 0; } >/dev/null && {
1485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1486 test ! -s conftest.err
1487 }; then :
1488 ac_retval=0
1489 else
1490 $as_echo "$as_me: failed program was:" >&5
1491 sed 's/^/| /' conftest.$ac_ext >&5
1493 ac_retval=1
1495 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1496 return $ac_retval
1498 } # ac_fn_c_try_cpp
1500 # ac_fn_c_try_run LINENO
1501 # ----------------------
1502 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1503 # that executables *can* be run.
1504 ac_fn_c_try_run ()
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 if { { ac_try="$ac_link"
1508 case "(($ac_try" in
1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510 *) ac_try_echo=$ac_try;;
1511 esac
1512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_link") 2>&5
1515 ac_status=$?
1516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1518 { { case "(($ac_try" in
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_try") 2>&5
1525 ac_status=$?
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; }; }; then :
1528 ac_retval=0
1529 else
1530 $as_echo "$as_me: program exited with status $ac_status" >&5
1531 $as_echo "$as_me: failed program was:" >&5
1532 sed 's/^/| /' conftest.$ac_ext >&5
1534 ac_retval=$ac_status
1536 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1538 return $ac_retval
1540 } # ac_fn_c_try_run
1542 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1543 # --------------------------------------------
1544 # Tries to find the compile-time value of EXPR in a program that includes
1545 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1546 # computed
1547 ac_fn_c_compute_int ()
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 if test "$cross_compiling" = yes; then
1551 # Depending upon the size, compute the lo and hi bounds.
1552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1553 /* end confdefs.h. */
1556 main ()
1558 static int test_array [1 - 2 * !(($2) >= 0)];
1559 test_array [0] = 0
1562 return 0;
1564 _ACEOF
1565 if ac_fn_c_try_compile "$LINENO"; then :
1566 ac_lo=0 ac_mid=0
1567 while :; do
1568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569 /* end confdefs.h. */
1572 main ()
1574 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1575 test_array [0] = 0
1578 return 0;
1580 _ACEOF
1581 if ac_fn_c_try_compile "$LINENO"; then :
1582 ac_hi=$ac_mid; break
1583 else
1584 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1585 if test $ac_lo -le $ac_mid; then
1586 ac_lo= ac_hi=
1587 break
1589 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1592 done
1593 else
1594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595 /* end confdefs.h. */
1598 main ()
1600 static int test_array [1 - 2 * !(($2) < 0)];
1601 test_array [0] = 0
1604 return 0;
1606 _ACEOF
1607 if ac_fn_c_try_compile "$LINENO"; then :
1608 ac_hi=-1 ac_mid=-1
1609 while :; do
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1614 main ()
1616 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1617 test_array [0] = 0
1620 return 0;
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 ac_lo=$ac_mid; break
1625 else
1626 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1627 if test $ac_mid -le $ac_hi; then
1628 ac_lo= ac_hi=
1629 break
1631 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 done
1635 else
1636 ac_lo= ac_hi=
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641 # Binary search between lo and hi bounds.
1642 while test "x$ac_lo" != "x$ac_hi"; do
1643 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1648 main ()
1650 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1651 test_array [0] = 0
1654 return 0;
1656 _ACEOF
1657 if ac_fn_c_try_compile "$LINENO"; then :
1658 ac_hi=$ac_mid
1659 else
1660 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663 done
1664 case $ac_lo in #((
1665 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1666 '') ac_retval=1 ;;
1667 esac
1668 else
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1672 static long int longval () { return $2; }
1673 static unsigned long int ulongval () { return $2; }
1674 #include <stdio.h>
1675 #include <stdlib.h>
1677 main ()
1680 FILE *f = fopen ("conftest.val", "w");
1681 if (! f)
1682 return 1;
1683 if (($2) < 0)
1685 long int i = longval ();
1686 if (i != ($2))
1687 return 1;
1688 fprintf (f, "%ld", i);
1690 else
1692 unsigned long int i = ulongval ();
1693 if (i != ($2))
1694 return 1;
1695 fprintf (f, "%lu", i);
1697 /* Do not output a trailing newline, as this causes \r\n confusion
1698 on some platforms. */
1699 return ferror (f) || fclose (f) != 0;
1702 return 0;
1704 _ACEOF
1705 if ac_fn_c_try_run "$LINENO"; then :
1706 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1707 else
1708 ac_retval=1
1710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1711 conftest.$ac_objext conftest.beam conftest.$ac_ext
1712 rm -f conftest.val
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716 return $ac_retval
1718 } # ac_fn_c_compute_int
1720 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1721 # ----------------------------------------------
1722 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1723 ac_fn_c_check_header_preproc ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 $as_echo_n "(cached) " >&6
1730 else
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 #include <$2>
1734 _ACEOF
1735 if ac_fn_c_try_cpp "$LINENO"; then :
1736 eval "$3=yes"
1737 else
1738 eval "$3=no"
1740 rm -f conftest.err conftest.$ac_ext
1742 eval ac_res=\$$3
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 } # ac_fn_c_check_header_preproc
1748 cat >config.log <<_ACEOF
1749 This file contains any messages produced by compilers while
1750 running configure, to aid debugging if configure makes a mistake.
1752 It was created by GNU C Runtime Library $as_me 1.0, which was
1753 generated by GNU Autoconf 2.64. Invocation command line was
1755 $ $0 $@
1757 _ACEOF
1758 exec 5>>config.log
1760 cat <<_ASUNAME
1761 ## --------- ##
1762 ## Platform. ##
1763 ## --------- ##
1765 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1766 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1767 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1768 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1769 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1771 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1772 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1774 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1775 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1776 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1777 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1778 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1779 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1780 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1782 _ASUNAME
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 for as_dir in $PATH
1787 IFS=$as_save_IFS
1788 test -z "$as_dir" && as_dir=.
1789 $as_echo "PATH: $as_dir"
1790 done
1791 IFS=$as_save_IFS
1793 } >&5
1795 cat >&5 <<_ACEOF
1798 ## ----------- ##
1799 ## Core tests. ##
1800 ## ----------- ##
1802 _ACEOF
1805 # Keep a trace of the command line.
1806 # Strip out --no-create and --no-recursion so they do not pile up.
1807 # Strip out --silent because we don't want to record it for future runs.
1808 # Also quote any args containing shell meta-characters.
1809 # Make two passes to allow for proper duplicate-argument suppression.
1810 ac_configure_args=
1811 ac_configure_args0=
1812 ac_configure_args1=
1813 ac_must_keep_next=false
1814 for ac_pass in 1 2
1816 for ac_arg
1818 case $ac_arg in
1819 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1821 | -silent | --silent | --silen | --sile | --sil)
1822 continue ;;
1823 *\'*)
1824 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1825 esac
1826 case $ac_pass in
1827 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1829 as_fn_append ac_configure_args1 " '$ac_arg'"
1830 if test $ac_must_keep_next = true; then
1831 ac_must_keep_next=false # Got value, back to normal.
1832 else
1833 case $ac_arg in
1834 *=* | --config-cache | -C | -disable-* | --disable-* \
1835 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1836 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1837 | -with-* | --with-* | -without-* | --without-* | --x)
1838 case "$ac_configure_args0 " in
1839 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1840 esac
1842 -* ) ac_must_keep_next=true ;;
1843 esac
1845 as_fn_append ac_configure_args " '$ac_arg'"
1847 esac
1848 done
1849 done
1850 { ac_configure_args0=; unset ac_configure_args0;}
1851 { ac_configure_args1=; unset ac_configure_args1;}
1853 # When interrupted or exit'd, cleanup temporary files, and complete
1854 # config.log. We remove comments because anyway the quotes in there
1855 # would cause problems or look ugly.
1856 # WARNING: Use '\'' to represent an apostrophe within the trap.
1857 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1858 trap 'exit_status=$?
1859 # Save into config.log some information that might help in debugging.
1861 echo
1863 cat <<\_ASBOX
1864 ## ---------------- ##
1865 ## Cache variables. ##
1866 ## ---------------- ##
1867 _ASBOX
1868 echo
1869 # The following way of writing the cache mishandles newlines in values,
1871 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1872 eval ac_val=\$$ac_var
1873 case $ac_val in #(
1874 *${as_nl}*)
1875 case $ac_var in #(
1876 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1877 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1878 esac
1879 case $ac_var in #(
1880 _ | IFS | as_nl) ;; #(
1881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1882 *) { eval $ac_var=; unset $ac_var;} ;;
1883 esac ;;
1884 esac
1885 done
1886 (set) 2>&1 |
1887 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1888 *${as_nl}ac_space=\ *)
1889 sed -n \
1890 "s/'\''/'\''\\\\'\'''\''/g;
1891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1892 ;; #(
1894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1896 esac |
1897 sort
1899 echo
1901 cat <<\_ASBOX
1902 ## ----------------- ##
1903 ## Output variables. ##
1904 ## ----------------- ##
1905 _ASBOX
1906 echo
1907 for ac_var in $ac_subst_vars
1909 eval ac_val=\$$ac_var
1910 case $ac_val in
1911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912 esac
1913 $as_echo "$ac_var='\''$ac_val'\''"
1914 done | sort
1915 echo
1917 if test -n "$ac_subst_files"; then
1918 cat <<\_ASBOX
1919 ## ------------------- ##
1920 ## File substitutions. ##
1921 ## ------------------- ##
1922 _ASBOX
1923 echo
1924 for ac_var in $ac_subst_files
1926 eval ac_val=\$$ac_var
1927 case $ac_val in
1928 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1929 esac
1930 $as_echo "$ac_var='\''$ac_val'\''"
1931 done | sort
1932 echo
1935 if test -s confdefs.h; then
1936 cat <<\_ASBOX
1937 ## ----------- ##
1938 ## confdefs.h. ##
1939 ## ----------- ##
1940 _ASBOX
1941 echo
1942 cat confdefs.h
1943 echo
1945 test "$ac_signal" != 0 &&
1946 $as_echo "$as_me: caught signal $ac_signal"
1947 $as_echo "$as_me: exit $exit_status"
1948 } >&5
1949 rm -f core *.core core.conftest.* &&
1950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1951 exit $exit_status
1953 for ac_signal in 1 2 13 15; do
1954 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1955 done
1956 ac_signal=0
1958 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1959 rm -f -r conftest* confdefs.h
1961 $as_echo "/* confdefs.h */" > confdefs.h
1963 # Predefined preprocessor variables.
1965 cat >>confdefs.h <<_ACEOF
1966 #define PACKAGE_NAME "$PACKAGE_NAME"
1967 _ACEOF
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1971 _ACEOF
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1975 _ACEOF
1977 cat >>confdefs.h <<_ACEOF
1978 #define PACKAGE_STRING "$PACKAGE_STRING"
1979 _ACEOF
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1983 _ACEOF
1985 cat >>confdefs.h <<_ACEOF
1986 #define PACKAGE_URL "$PACKAGE_URL"
1987 _ACEOF
1990 # Let the site file select an alternate cache file if it wants to.
1991 # Prefer an explicitly selected file to automatically selected ones.
1992 ac_site_file1=NONE
1993 ac_site_file2=NONE
1994 if test -n "$CONFIG_SITE"; then
1995 ac_site_file1=$CONFIG_SITE
1996 elif test "x$prefix" != xNONE; then
1997 ac_site_file1=$prefix/share/config.site
1998 ac_site_file2=$prefix/etc/config.site
1999 else
2000 ac_site_file1=$ac_default_prefix/share/config.site
2001 ac_site_file2=$ac_default_prefix/etc/config.site
2003 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2005 test "x$ac_site_file" = xNONE && continue
2006 if test -r "$ac_site_file"; then
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2008 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2009 sed 's/^/| /' "$ac_site_file" >&5
2010 . "$ac_site_file"
2012 done
2014 if test -r "$cache_file"; then
2015 # Some versions of bash will fail to source /dev/null (special
2016 # files actually), so we avoid doing that.
2017 if test -f "$cache_file"; then
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2019 $as_echo "$as_me: loading cache $cache_file" >&6;}
2020 case $cache_file in
2021 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2022 *) . "./$cache_file";;
2023 esac
2025 else
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2027 $as_echo "$as_me: creating cache $cache_file" >&6;}
2028 >$cache_file
2031 # Check that the precious variables saved in the cache have kept the same
2032 # value.
2033 ac_cache_corrupted=false
2034 for ac_var in $ac_precious_vars; do
2035 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2036 eval ac_new_set=\$ac_env_${ac_var}_set
2037 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2038 eval ac_new_val=\$ac_env_${ac_var}_value
2039 case $ac_old_set,$ac_new_set in
2040 set,)
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2042 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2043 ac_cache_corrupted=: ;;
2044 ,set)
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2046 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2047 ac_cache_corrupted=: ;;
2048 ,);;
2050 if test "x$ac_old_val" != "x$ac_new_val"; then
2051 # differences in whitespace do not lead to failure.
2052 ac_old_val_w=`echo x $ac_old_val`
2053 ac_new_val_w=`echo x $ac_new_val`
2054 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2056 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2057 ac_cache_corrupted=:
2058 else
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2060 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2061 eval $ac_var=\$ac_old_val
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2064 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2066 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2067 fi;;
2068 esac
2069 # Pass precious variables to config.status.
2070 if test "$ac_new_set" = set; then
2071 case $ac_new_val in
2072 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2073 *) ac_arg=$ac_var=$ac_new_val ;;
2074 esac
2075 case " $ac_configure_args " in
2076 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2077 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2078 esac
2080 done
2081 if $ac_cache_corrupted; then
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2085 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2086 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2088 ## -------------------- ##
2089 ## Main body of script. ##
2090 ## -------------------- ##
2092 ac_ext=c
2093 ac_cpp='$CPP $CPPFLAGS'
2094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104 # The libgcc should not depend on any header files
2108 # Check whether --with-target-subdir was given.
2109 if test "${with_target_subdir+set}" = set; then :
2110 withval=$with_target_subdir;
2114 # Check whether --with-cross-host was given.
2115 if test "${with_cross_host+set}" = set; then :
2116 withval=$with_cross_host;
2120 # Check whether --with-ld was given.
2121 if test "${with_ld+set}" = set; then :
2122 withval=$with_ld;
2126 if test "${srcdir}" = "."; then
2127 if test -n "${with_build_subdir}"; then
2128 libgcc_topdir="${srcdir}/../.."
2129 with_target_subdir=
2130 elif test -z "${with_target_subdir}"; then
2131 libgcc_topdir="${srcdir}/.."
2132 else
2133 if test "${with_target_subdir}" != "."; then
2134 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2135 else
2136 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2139 else
2140 libgcc_topdir="${srcdir}/.."
2143 ac_aux_dir=
2144 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2145 for ac_t in install-sh install.sh shtool; do
2146 if test -f "$ac_dir/$ac_t"; then
2147 ac_aux_dir=$ac_dir
2148 ac_install_sh="$ac_aux_dir/$ac_t -c"
2149 break 2
2151 done
2152 done
2153 if test -z "$ac_aux_dir"; then
2154 as_fn_error "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2157 # These three variables are undocumented and unsupported,
2158 # and are intended to be withdrawn in a future Autoconf release.
2159 # They can cause serious problems if a builder's source tree is in a directory
2160 # whose full name contains unusual characters.
2161 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2162 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2163 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2166 ac_config_headers="$ac_config_headers auto-target.h:config.in"
2169 # Check whether --enable-shared was given.
2170 if test "${enable_shared+set}" = set; then :
2171 enableval=$enable_shared;
2172 case $enable_shared in
2173 yes | no) ;;
2175 enable_shared=no
2176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2177 for pkg in $enableval; do
2178 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2179 enable_shared=yes
2181 done
2182 IFS="$ac_save_ifs"
2184 esac
2186 else
2187 enable_shared=yes
2192 # Check whether --enable-vtable-verify was given.
2193 if test "${enable_vtable_verify+set}" = set; then :
2194 enableval=$enable_vtable_verify; case "$enableval" in
2195 yes) enable_vtable_verify=yes ;;
2196 no) enable_vtable_verify=no ;;
2197 *) enable_vtable_verify=no;;
2198 esac
2199 else
2200 enable_vtable_verify=no
2206 # Check whether --with-aix-soname was given.
2207 if test "${with_aix_soname+set}" = set; then :
2208 withval=$with_aix_soname; case "${host}:${enable_shared}" in
2209 power*-*-aix[5-9]*:yes)
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5
2211 $as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; }
2212 case ${withval} in
2213 aix|svr4|both) ;;
2214 *) as_fn_error "Unknown argument to --with-aix-soname" "$LINENO" 5;;
2215 esac
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2217 $as_echo "$withval" >&6; }
2219 *) with_aix_soname=aix ;;
2220 esac
2222 else
2223 with_aix_soname=aix
2228 # Make sure we can run config.sub.
2229 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2230 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2233 $as_echo_n "checking build system type... " >&6; }
2234 if test "${ac_cv_build+set}" = set; then :
2235 $as_echo_n "(cached) " >&6
2236 else
2237 ac_build_alias=$build_alias
2238 test "x$ac_build_alias" = x &&
2239 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2240 test "x$ac_build_alias" = x &&
2241 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2242 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2243 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2247 $as_echo "$ac_cv_build" >&6; }
2248 case $ac_cv_build in
2249 *-*-*) ;;
2250 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2251 esac
2252 build=$ac_cv_build
2253 ac_save_IFS=$IFS; IFS='-'
2254 set x $ac_cv_build
2255 shift
2256 build_cpu=$1
2257 build_vendor=$2
2258 shift; shift
2259 # Remember, the first character of IFS is used to create $*,
2260 # except with old shells:
2261 build_os=$*
2262 IFS=$ac_save_IFS
2263 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2267 $as_echo_n "checking host system type... " >&6; }
2268 if test "${ac_cv_host+set}" = set; then :
2269 $as_echo_n "(cached) " >&6
2270 else
2271 if test "x$host_alias" = x; then
2272 ac_cv_host=$ac_cv_build
2273 else
2274 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2275 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2280 $as_echo "$ac_cv_host" >&6; }
2281 case $ac_cv_host in
2282 *-*-*) ;;
2283 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2284 esac
2285 host=$ac_cv_host
2286 ac_save_IFS=$IFS; IFS='-'
2287 set x $ac_cv_host
2288 shift
2289 host_cpu=$1
2290 host_vendor=$2
2291 shift; shift
2292 # Remember, the first character of IFS is used to create $*,
2293 # except with old shells:
2294 host_os=$*
2295 IFS=$ac_save_IFS
2296 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2303 case "${host}" in
2304 # PIC is the default on some targets or must not be used.
2305 *-*-darwin*)
2306 # PIC is the default on this platform
2307 # Common symbols not allowed in MH_DYLIB files
2308 PICFLAG=-fno-common
2310 alpha*-dec-osf5*)
2311 # PIC is the default.
2313 hppa*64*-*-hpux*)
2314 # PIC is the default for 64-bit PA HP-UX.
2316 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2318 i[34567]86-*-mingw* | x86_64-*-mingw*)
2320 i[34567]86-*-interix[3-9]*)
2321 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2322 # Instead, we relocate shared libraries at runtime.
2324 i[34567]86-*-nto-qnx*)
2325 # QNX uses GNU C++, but need to define -shared option too, otherwise
2326 # it will coredump.
2327 PICFLAG='-fPIC -shared'
2329 i[34567]86-pc-msdosdjgpp*)
2330 # DJGPP does not support shared libraries at all.
2332 ia64*-*-hpux*)
2333 # On IA64 HP-UX, PIC is the default but the pic flag
2334 # sets the default TLS model and affects inlining.
2335 PICFLAG=-fPIC
2337 mips-sgi-irix6*)
2338 # PIC is the default.
2340 rs6000-ibm-aix* | powerpc-ibm-aix*)
2341 # All AIX code is PIC.
2344 # Some targets support both -fPIC and -fpic, but prefer the latter.
2345 # FIXME: Why?
2346 i[34567]86-*-* | x86_64-*-*)
2347 PICFLAG=-fpic
2349 # FIXME: Override -fPIC default in libgcc only?
2350 sh-*-linux* | sh[2346lbe]*-*-linux*)
2351 PICFLAG=-fpic
2353 # FIXME: Simplify to sh*-*-netbsd*?
2354 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2355 sh64-*-netbsd* | sh64l*-*-netbsd*)
2356 PICFLAG=-fpic
2358 # Default to -fPIC unless specified otherwise.
2360 PICFLAG=-fPIC
2362 esac
2364 # If the user explicitly uses -fpic/-fPIC, keep that.
2365 case "${CFLAGS}" in
2366 *-fpic*)
2367 PICFLAG=-fpic
2369 *-fPIC*)
2370 PICFLAG=-fPIC
2372 esac
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2377 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2378 # Check whether --enable-version-specific-runtime-libs was given.
2379 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2380 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2381 yes) version_specific_libs=yes ;;
2382 no) version_specific_libs=no ;;
2383 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2384 esac
2385 else
2386 version_specific_libs=no
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2390 $as_echo "$version_specific_libs" >&6; }
2393 # Check whether --with-slibdir was given.
2394 if test "${with_slibdir+set}" = set; then :
2395 withval=$with_slibdir; slibdir="$with_slibdir"
2396 else
2397 if test "${version_specific_libs}" = yes; then
2398 slibdir='$(libsubdir)'
2399 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2400 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2401 else
2402 slibdir='$(libdir)'
2408 # Command-line options.
2409 # Very limited version of AC_MAINTAINER_MODE.
2410 # Check whether --enable-maintainer-mode was given.
2411 if test "${enable_maintainer_mode+set}" = set; then :
2412 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2413 yes) MAINT='' ;;
2414 no) MAINT='#' ;;
2415 *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2416 esac
2417 maintainer_mode=${enableval}
2418 else
2419 MAINT='#'
2423 # Find a good install program. We prefer a C program (faster),
2424 # so one script is as good as another. But avoid the broken or
2425 # incompatible versions:
2426 # SysV /etc/install, /usr/sbin/install
2427 # SunOS /usr/etc/install
2428 # IRIX /sbin/install
2429 # AIX /bin/install
2430 # AmigaOS /C/install, which installs bootblocks on floppy discs
2431 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2432 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2433 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2434 # OS/2's system install, which has a completely different semantic
2435 # ./install, which can be erroneously created by make from ./install.sh.
2436 # Reject install programs that cannot install multiple files.
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2438 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2439 if test -z "$INSTALL"; then
2440 if test "${ac_cv_path_install+set}" = set; then :
2441 $as_echo_n "(cached) " >&6
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 # Account for people who put trailing slashes in PATH elements.
2449 case $as_dir/ in #((
2450 ./ | .// | /[cC]/* | \
2451 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2452 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2453 /usr/ucb/* ) ;;
2455 # OSF1 and SCO ODT 3.0 have their own names for install.
2456 # Don't use installbsd from OSF since it installs stuff as root
2457 # by default.
2458 for ac_prog in ginstall scoinst install; do
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2461 if test $ac_prog = install &&
2462 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2463 # AIX install. It has an incompatible calling convention.
2465 elif test $ac_prog = install &&
2466 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2467 # program-specific install script used by HP pwplus--don't use.
2469 else
2470 rm -rf conftest.one conftest.two conftest.dir
2471 echo one > conftest.one
2472 echo two > conftest.two
2473 mkdir conftest.dir
2474 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2475 test -s conftest.one && test -s conftest.two &&
2476 test -s conftest.dir/conftest.one &&
2477 test -s conftest.dir/conftest.two
2478 then
2479 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2480 break 3
2484 done
2485 done
2487 esac
2489 done
2490 IFS=$as_save_IFS
2492 rm -rf conftest.one conftest.two conftest.dir
2495 if test "${ac_cv_path_install+set}" = set; then
2496 INSTALL=$ac_cv_path_install
2497 else
2498 # As a last resort, use the slow shell script. Don't cache a
2499 # value for INSTALL within a source directory, because that will
2500 # break other packages using the cache if that directory is
2501 # removed, or if the value is a relative name.
2502 INSTALL=$ac_install_sh
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2506 $as_echo "$INSTALL" >&6; }
2508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2509 # It thinks the first close brace ends the variable substitution.
2510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2512 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2514 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2517 for ac_prog in gawk mawk nawk awk
2519 # Extract the first word of "$ac_prog", so it can be a program name with args.
2520 set dummy $ac_prog; ac_word=$2
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if test "${ac_cv_prog_AWK+set}" = set; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 if test -n "$AWK"; then
2527 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_AWK="$ac_prog"
2537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2540 done
2541 done
2542 IFS=$as_save_IFS
2546 AWK=$ac_cv_prog_AWK
2547 if test -n "$AWK"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2549 $as_echo "$AWK" >&6; }
2550 else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552 $as_echo "no" >&6; }
2556 test -n "$AWK" && break
2557 done
2559 # We need awk; bail out if it's missing.
2560 case ${AWK} in
2561 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
2562 esac
2565 case ${build_alias} in
2566 "") build_noncanonical=${build} ;;
2567 *) build_noncanonical=${build_alias} ;;
2568 esac
2570 case ${host_alias} in
2571 "") host_noncanonical=${build_noncanonical} ;;
2572 *) host_noncanonical=${host_alias} ;;
2573 esac
2577 case ${target_alias} in
2578 "") target_noncanonical=${host_noncanonical} ;;
2579 *) target_noncanonical=${target_alias} ;;
2580 esac
2585 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2586 # have matching libraries, they should use host libraries: Makefile.tpl
2587 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2588 # However, they still use the build modules, because the corresponding
2589 # host modules (e.g. bison) are only built for the host when bootstrap
2590 # finishes. So:
2591 # - build_subdir is where we find build modules, and never changes.
2592 # - build_libsubdir is where we find build libraries, and can be overridden.
2594 # Prefix 'build-' so this never conflicts with target_subdir.
2595 build_subdir="build-${build_noncanonical}"
2597 # Check whether --with-build-libsubdir was given.
2598 if test "${with_build_libsubdir+set}" = set; then :
2599 withval=$with_build_libsubdir; build_libsubdir="$withval"
2600 else
2601 build_libsubdir="$build_subdir"
2604 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2605 if ( test $srcdir = . && test -d gcc ) \
2606 || test -d $srcdir/../host-${host_noncanonical}; then
2607 host_subdir="host-${host_noncanonical}"
2608 else
2609 host_subdir=.
2611 # No prefix.
2612 target_subdir=${target_noncanonical}
2615 # Calculate toolexeclibdir
2616 # Also toolexecdir, though it's only used in toolexeclibdir
2617 case ${version_specific_libs} in
2618 yes)
2619 # Need the gcc compiler version to know where to install libraries
2620 # and header files if --enable-version-specific-runtime-libs option
2621 # is selected.
2622 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2623 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2626 if test -n "$with_cross_host" &&
2627 test x"$with_cross_host" != x"no"; then
2628 # Install a library built with a cross compiler in tooldir, not libdir.
2629 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2630 toolexeclibdir='$(toolexecdir)/lib'
2631 else
2632 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2633 toolexeclibdir='$(libdir)'
2635 multi_os_directory=`$CC -print-multi-os-directory`
2636 case $multi_os_directory in
2637 .) ;; # Avoid trailing /.
2638 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2639 esac
2641 esac
2645 if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}ar; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if test "${ac_cv_prog_AR+set}" = set; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if test -n "$AR"; then
2654 ac_cv_prog_AR="$AR" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 ac_cv_prog_AR="${ac_tool_prefix}ar"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2667 done
2668 done
2669 IFS=$as_save_IFS
2673 AR=$ac_cv_prog_AR
2674 if test -n "$AR"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2676 $as_echo "$AR" >&6; }
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2684 if test -z "$ac_cv_prog_AR"; then
2685 ac_ct_AR=$AR
2686 # Extract the first word of "ar", so it can be a program name with args.
2687 set dummy ar; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 if test -n "$ac_ct_AR"; then
2694 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_ac_ct_AR="ar"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2707 done
2708 done
2709 IFS=$as_save_IFS
2713 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2714 if test -n "$ac_ct_AR"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2716 $as_echo "$ac_ct_AR" >&6; }
2717 else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2722 if test "x$ac_ct_AR" = x; then
2723 AR=""
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726 yes:)
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729 ac_tool_warned=yes ;;
2730 esac
2731 AR=$ac_ct_AR
2733 else
2734 AR="$ac_cv_prog_AR"
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2739 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_LIPO+set}" = set; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test -n "$LIPO"; then
2746 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2759 done
2760 done
2761 IFS=$as_save_IFS
2765 LIPO=$ac_cv_prog_LIPO
2766 if test -n "$LIPO"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2768 $as_echo "$LIPO" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2776 if test -z "$ac_cv_prog_LIPO"; then
2777 ac_ct_LIPO=$LIPO
2778 # Extract the first word of "lipo", so it can be a program name with args.
2779 set dummy lipo; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$ac_ct_LIPO"; then
2786 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_ac_ct_LIPO="lipo"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2799 done
2800 done
2801 IFS=$as_save_IFS
2805 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2806 if test -n "$ac_ct_LIPO"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2808 $as_echo "$ac_ct_LIPO" >&6; }
2809 else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2814 if test "x$ac_ct_LIPO" = x; then
2815 LIPO=":"
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818 yes:)
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821 ac_tool_warned=yes ;;
2822 esac
2823 LIPO=$ac_ct_LIPO
2825 else
2826 LIPO="$ac_cv_prog_LIPO"
2829 if test -n "$ac_tool_prefix"; then
2830 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2831 set dummy ${ac_tool_prefix}nm; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if test "${ac_cv_prog_NM+set}" = set; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 if test -n "$NM"; then
2838 ac_cv_prog_NM="$NM" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_NM="${ac_tool_prefix}nm"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2851 done
2852 done
2853 IFS=$as_save_IFS
2857 NM=$ac_cv_prog_NM
2858 if test -n "$NM"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2860 $as_echo "$NM" >&6; }
2861 else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2868 if test -z "$ac_cv_prog_NM"; then
2869 ac_ct_NM=$NM
2870 # Extract the first word of "nm", so it can be a program name with args.
2871 set dummy nm; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 if test -n "$ac_ct_NM"; then
2878 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887 ac_cv_prog_ac_ct_NM="nm"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2891 done
2892 done
2893 IFS=$as_save_IFS
2897 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2898 if test -n "$ac_ct_NM"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2900 $as_echo "$ac_ct_NM" >&6; }
2901 else
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2906 if test "x$ac_ct_NM" = x; then
2907 NM=""
2908 else
2909 case $cross_compiling:$ac_tool_warned in
2910 yes:)
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2913 ac_tool_warned=yes ;;
2914 esac
2915 NM=$ac_ct_NM
2917 else
2918 NM="$ac_cv_prog_NM"
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_RANLIB+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$RANLIB"; then
2930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2943 done
2944 done
2945 IFS=$as_save_IFS
2949 RANLIB=$ac_cv_prog_RANLIB
2950 if test -n "$RANLIB"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2952 $as_echo "$RANLIB" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2960 if test -z "$ac_cv_prog_RANLIB"; then
2961 ac_ct_RANLIB=$RANLIB
2962 # Extract the first word of "ranlib", so it can be a program name with args.
2963 set dummy ranlib; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$ac_ct_RANLIB"; then
2970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_ac_ct_RANLIB="ranlib"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2983 done
2984 done
2985 IFS=$as_save_IFS
2989 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2990 if test -n "$ac_ct_RANLIB"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2992 $as_echo "$ac_ct_RANLIB" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2998 if test "x$ac_ct_RANLIB" = x; then
2999 RANLIB=":"
3000 else
3001 case $cross_compiling:$ac_tool_warned in
3002 yes:)
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3006 esac
3007 RANLIB=$ac_ct_RANLIB
3009 else
3010 RANLIB="$ac_cv_prog_RANLIB"
3013 if test -n "$ac_tool_prefix"; then
3014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3015 set dummy ${ac_tool_prefix}strip; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if test "${ac_cv_prog_STRIP+set}" = set; then :
3019 $as_echo_n "(cached) " >&6
3020 else
3021 if test -n "$STRIP"; then
3022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3035 done
3036 done
3037 IFS=$as_save_IFS
3041 STRIP=$ac_cv_prog_STRIP
3042 if test -n "$STRIP"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3044 $as_echo "$STRIP" >&6; }
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3052 if test -z "$ac_cv_prog_STRIP"; then
3053 ac_ct_STRIP=$STRIP
3054 # Extract the first word of "strip", so it can be a program name with args.
3055 set dummy strip; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3060 else
3061 if test -n "$ac_ct_STRIP"; then
3062 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_prog_ac_ct_STRIP="strip"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3075 done
3076 done
3077 IFS=$as_save_IFS
3081 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3082 if test -n "$ac_ct_STRIP"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3084 $as_echo "$ac_ct_STRIP" >&6; }
3085 else
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3090 if test "x$ac_ct_STRIP" = x; then
3091 STRIP=":"
3092 else
3093 case $cross_compiling:$ac_tool_warned in
3094 yes:)
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3097 ac_tool_warned=yes ;;
3098 esac
3099 STRIP=$ac_ct_STRIP
3101 else
3102 STRIP="$ac_cv_prog_STRIP"
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3106 $as_echo_n "checking whether ln -s works... " >&6; }
3107 LN_S=$as_ln_s
3108 if test "$LN_S" = "ln -s"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110 $as_echo "yes" >&6; }
3111 else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3113 $as_echo "no, using $LN_S" >&6; }
3118 ac_ext=c
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3123 if test -n "$ac_tool_prefix"; then
3124 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if test "${ac_cv_prog_CC+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 break 2
3145 done
3146 done
3147 IFS=$as_save_IFS
3151 CC=$ac_cv_prog_CC
3152 if test -n "$CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154 $as_echo "$CC" >&6; }
3155 else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3162 if test -z "$ac_cv_prog_CC"; then
3163 ac_ct_CC=$CC
3164 # Extract the first word of "gcc", so it can be a program name with args.
3165 set dummy gcc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if test -n "$ac_ct_CC"; then
3172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_prog_ac_ct_CC="gcc"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3185 done
3186 done
3187 IFS=$as_save_IFS
3191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3192 if test -n "$ac_ct_CC"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3194 $as_echo "$ac_ct_CC" >&6; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3200 if test "x$ac_ct_CC" = x; then
3201 CC=""
3202 else
3203 case $cross_compiling:$ac_tool_warned in
3204 yes:)
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3207 ac_tool_warned=yes ;;
3208 esac
3209 CC=$ac_ct_CC
3211 else
3212 CC="$ac_cv_prog_CC"
3215 if test -z "$CC"; then
3216 if test -n "$ac_tool_prefix"; then
3217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3218 set dummy ${ac_tool_prefix}cc; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if test "${ac_cv_prog_CC+set}" = set; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 if test -n "$CC"; then
3225 ac_cv_prog_CC="$CC" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_CC="${ac_tool_prefix}cc"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 break 2
3238 done
3239 done
3240 IFS=$as_save_IFS
3244 CC=$ac_cv_prog_CC
3245 if test -n "$CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247 $as_echo "$CC" >&6; }
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3256 if test -z "$CC"; then
3257 # Extract the first word of "cc", so it can be a program name with args.
3258 set dummy cc; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if test "${ac_cv_prog_CC+set}" = set; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 ac_prog_rejected=no
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3276 ac_prog_rejected=yes
3277 continue
3279 ac_cv_prog_CC="cc"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3283 done
3284 done
3285 IFS=$as_save_IFS
3287 if test $ac_prog_rejected = yes; then
3288 # We found a bogon in the path, so make sure we never use it.
3289 set dummy $ac_cv_prog_CC
3290 shift
3291 if test $# != 0; then
3292 # We chose a different compiler from the bogus one.
3293 # However, it has the same basename, so the bogon will be chosen
3294 # first if we set CC to just the basename; use the full file name.
3295 shift
3296 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3312 if test -z "$CC"; then
3313 if test -n "$ac_tool_prefix"; then
3314 for ac_prog in cl.exe
3316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if test "${ac_cv_prog_CC+set}" = set; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 if test -n "$CC"; then
3324 ac_cv_prog_CC="$CC" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3329 IFS=$as_save_IFS
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 break 2
3337 done
3338 done
3339 IFS=$as_save_IFS
3343 CC=$ac_cv_prog_CC
3344 if test -n "$CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 $as_echo "$CC" >&6; }
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3353 test -n "$CC" && break
3354 done
3356 if test -z "$CC"; then
3357 ac_ct_CC=$CC
3358 for ac_prog in cl.exe
3360 # Extract the first word of "$ac_prog", so it can be a program name with args.
3361 set dummy $ac_prog; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$ac_ct_CC"; then
3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_ac_ct_CC="$ac_prog"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3381 done
3382 done
3383 IFS=$as_save_IFS
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3397 test -n "$ac_ct_CC" && break
3398 done
3400 if test "x$ac_ct_CC" = x; then
3401 CC=""
3402 else
3403 case $cross_compiling:$ac_tool_warned in
3404 yes:)
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3407 ac_tool_warned=yes ;;
3408 esac
3409 CC=$ac_ct_CC
3416 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error "no acceptable C compiler found in \$PATH
3419 See \`config.log' for more details." "$LINENO" 5; }
3421 # Provide some information about the compiler.
3422 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3423 set X $ac_compile
3424 ac_compiler=$2
3425 for ac_option in --version -v -V -qversion; do
3426 { { ac_try="$ac_compiler $ac_option >&5"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3434 ac_status=$?
3435 if test -s conftest.err; then
3436 sed '10a\
3437 ... rest of stderr output deleted ...
3438 10q' conftest.err >conftest.er1
3439 cat conftest.er1 >&5
3440 rm -f conftest.er1 conftest.err
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }
3444 done
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3450 main ()
3454 return 0;
3456 _ACEOF
3457 # FIXME: Cleanup?
3458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3459 (eval $ac_link) 2>&5
3460 ac_status=$?
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }; then :
3463 gcc_no_link=no
3464 else
3465 gcc_no_link=yes
3467 if test x$gcc_no_link = xyes; then
3468 # Setting cross_compile will disable run tests; it will
3469 # also disable AC_CHECK_FILE but that's generally
3470 # correct if we can't link.
3471 cross_compiling=yes
3472 EXEEXT=
3473 else
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3478 main ()
3482 return 0;
3484 _ACEOF
3485 ac_clean_files_save=$ac_clean_files
3486 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3487 # Try to create an executable without -o first, disregard a.out.
3488 # It will help us diagnose broken compilers, and finding out an intuition
3489 # of exeext.
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3491 $as_echo_n "checking for C compiler default output file name... " >&6; }
3492 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3494 # The possible output files:
3495 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3497 ac_rmfiles=
3498 for ac_file in $ac_files
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3503 esac
3504 done
3505 rm -f $ac_rmfiles
3507 if { { ac_try="$ac_link_default"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link_default") 2>&5
3515 ac_status=$?
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3519 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3520 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3521 # so that the user can short-circuit this test for compilers unknown to
3522 # Autoconf.
3523 for ac_file in $ac_files ''
3525 test -f "$ac_file" || continue
3526 case $ac_file in
3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3529 [ab].out )
3530 # We found the default executable, but exeext='' is most
3531 # certainly right.
3532 break;;
3533 *.* )
3534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3535 then :; else
3536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538 # We set ac_cv_exeext here because the later test for it is not
3539 # safe: cross compilers may not add the suffix if given an `-o'
3540 # argument, so we may need to know it at that point already.
3541 # Even if this section looks crufty: it has the advantage of
3542 # actually working.
3543 break;;
3545 break;;
3546 esac
3547 done
3548 test "$ac_cv_exeext" = no && ac_cv_exeext=
3550 else
3551 ac_file=''
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3554 $as_echo "$ac_file" >&6; }
3555 if test -z "$ac_file"; then :
3556 $as_echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 { as_fn_set_status 77
3562 as_fn_error "C compiler cannot create executables
3563 See \`config.log' for more details." "$LINENO" 5; }; }
3565 ac_exeext=$ac_cv_exeext
3567 # Check that the compiler produces executables we can run. If not, either
3568 # the compiler is broken, or we cross compile.
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3570 $as_echo_n "checking whether the C compiler works... " >&6; }
3571 # If not cross compiling, check that we can run a simple program.
3572 if test "$cross_compiling" != yes; then
3573 if { ac_try='./$ac_file'
3574 { { case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_try") 2>&5
3581 ac_status=$?
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }; }; then
3584 cross_compiling=no
3585 else
3586 if test "$cross_compiling" = maybe; then
3587 cross_compiling=yes
3588 else
3589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error "cannot run C compiled programs.
3592 If you meant to cross compile, use \`--host'.
3593 See \`config.log' for more details." "$LINENO" 5; }
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3598 $as_echo "yes" >&6; }
3600 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3601 ac_clean_files=$ac_clean_files_save
3602 # Check that the compiler produces executables we can run. If not, either
3603 # the compiler is broken, or we cross compile.
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3605 $as_echo_n "checking whether we are cross compiling... " >&6; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3607 $as_echo "$cross_compiling" >&6; }
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3610 $as_echo_n "checking for suffix of executables... " >&6; }
3611 if { { ac_try="$ac_link"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_link") 2>&5
3619 ac_status=$?
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }; then :
3622 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3623 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3624 # work properly (i.e., refer to `conftest.exe'), while it won't with
3625 # `rm'.
3626 for ac_file in conftest.exe conftest conftest.*; do
3627 test -f "$ac_file" || continue
3628 case $ac_file in
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3630 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3631 break;;
3632 * ) break;;
3633 esac
3634 done
3635 else
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error "cannot compute suffix of executables: cannot compile and link
3639 See \`config.log' for more details." "$LINENO" 5; }
3641 rm -f conftest$ac_cv_exeext
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3643 $as_echo "$ac_cv_exeext" >&6; }
3645 rm -f conftest.$ac_ext
3646 EXEEXT=$ac_cv_exeext
3647 ac_exeext=$EXEEXT
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3650 $as_echo_n "checking for suffix of object files... " >&6; }
3651 if test "${ac_cv_objext+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3658 main ()
3662 return 0;
3664 _ACEOF
3665 rm -f conftest.o conftest.obj
3666 if { { ac_try="$ac_compile"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_compile") 2>&5
3674 ac_status=$?
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }; then :
3677 for ac_file in conftest.o conftest.obj conftest.*; do
3678 test -f "$ac_file" || continue;
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3682 break;;
3683 esac
3684 done
3685 else
3686 $as_echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.$ac_ext >&5
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error "cannot compute suffix of object files: cannot compile
3692 See \`config.log' for more details." "$LINENO" 5; }
3694 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3697 $as_echo "$ac_cv_objext" >&6; }
3698 OBJEXT=$ac_cv_objext
3699 ac_objext=$OBJEXT
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3701 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3702 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3709 main ()
3711 #ifndef __GNUC__
3712 choke me
3713 #endif
3716 return 0;
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720 ac_compiler_gnu=yes
3721 else
3722 ac_compiler_gnu=no
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3729 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3730 if test $ac_compiler_gnu = yes; then
3731 GCC=yes
3732 else
3733 GCC=
3735 ac_test_CFLAGS=${CFLAGS+set}
3736 ac_save_CFLAGS=$CFLAGS
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3738 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3739 if test "${ac_cv_prog_cc_g+set}" = set; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 ac_save_c_werror_flag=$ac_c_werror_flag
3743 ac_c_werror_flag=yes
3744 ac_cv_prog_cc_g=no
3745 CFLAGS="-g"
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3750 main ()
3754 return 0;
3756 _ACEOF
3757 if ac_fn_c_try_compile "$LINENO"; then :
3758 ac_cv_prog_cc_g=yes
3759 else
3760 CFLAGS=""
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3765 main ()
3769 return 0;
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3774 else
3775 ac_c_werror_flag=$ac_save_c_werror_flag
3776 CFLAGS="-g"
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3781 main ()
3785 return 0;
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_cv_prog_cc_g=yes
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 ac_c_werror_flag=$ac_save_c_werror_flag
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3799 $as_echo "$ac_cv_prog_cc_g" >&6; }
3800 if test "$ac_test_CFLAGS" = set; then
3801 CFLAGS=$ac_save_CFLAGS
3802 elif test $ac_cv_prog_cc_g = yes; then
3803 if test "$GCC" = yes; then
3804 CFLAGS="-g -O2"
3805 else
3806 CFLAGS="-g"
3808 else
3809 if test "$GCC" = yes; then
3810 CFLAGS="-O2"
3811 else
3812 CFLAGS=
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3817 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 ac_cv_prog_cc_c89=no
3821 ac_save_CC=$CC
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824 #include <stdarg.h>
3825 #include <stdio.h>
3826 #include <sys/types.h>
3827 #include <sys/stat.h>
3828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3829 struct buf { int x; };
3830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3831 static char *e (p, i)
3832 char **p;
3833 int i;
3835 return p[i];
3837 static char *f (char * (*g) (char **, int), char **p, ...)
3839 char *s;
3840 va_list v;
3841 va_start (v,p);
3842 s = g (p, va_arg (v,int));
3843 va_end (v);
3844 return s;
3847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3848 function prototypes and stuff, but not '\xHH' hex character constants.
3849 These don't provoke an error unfortunately, instead are silently treated
3850 as 'x'. The following induces an error, until -std is added to get
3851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3852 array size at least. It's necessary to write '\x00'==0 to get something
3853 that's true only with -std. */
3854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3857 inside strings and character constants. */
3858 #define FOO(x) 'x'
3859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3861 int test (int i, double x);
3862 struct s1 {int (*f) (int a);};
3863 struct s2 {int (*f) (double a);};
3864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3865 int argc;
3866 char **argv;
3868 main ()
3870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3872 return 0;
3874 _ACEOF
3875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3878 CC="$ac_save_CC $ac_arg"
3879 if ac_fn_c_try_compile "$LINENO"; then :
3880 ac_cv_prog_cc_c89=$ac_arg
3882 rm -f core conftest.err conftest.$ac_objext
3883 test "x$ac_cv_prog_cc_c89" != "xno" && break
3884 done
3885 rm -f conftest.$ac_ext
3886 CC=$ac_save_CC
3889 # AC_CACHE_VAL
3890 case "x$ac_cv_prog_cc_c89" in
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3893 $as_echo "none needed" >&6; } ;;
3894 xno)
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3896 $as_echo "unsupported" >&6; } ;;
3898 CC="$CC $ac_cv_prog_cc_c89"
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3900 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3901 esac
3902 if test "x$ac_cv_prog_cc_c89" != xno; then :
3906 ac_ext=c
3907 ac_cpp='$CPP $CPPFLAGS'
3908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912 ac_ext=c
3913 ac_cpp='$CPP $CPPFLAGS'
3914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3918 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3919 # On Suns, sometimes $CPP names a directory.
3920 if test -n "$CPP" && test -d "$CPP"; then
3921 CPP=
3923 if test -z "$CPP"; then
3924 if test "${ac_cv_prog_CPP+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 # Double quotes because CPP needs to be expanded
3928 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3930 ac_preproc_ok=false
3931 for ac_c_preproc_warn_flag in '' yes
3933 # Use a header file that comes with gcc, so configuring glibc
3934 # with a fresh cross-compiler works.
3935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3936 # <limits.h> exists even on freestanding compilers.
3937 # On the NeXT, cc -E runs the code through the compiler's parser,
3938 # not just through cpp. "Syntax error" is here to catch this case.
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941 #ifdef __STDC__
3942 # include <limits.h>
3943 #else
3944 # include <assert.h>
3945 #endif
3946 Syntax error
3947 _ACEOF
3948 if ac_fn_c_try_cpp "$LINENO"; then :
3950 else
3951 # Broken: fails on valid input.
3952 continue
3954 rm -f conftest.err conftest.$ac_ext
3956 # OK, works on sane cases. Now check whether nonexistent headers
3957 # can be detected and how.
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <ac_nonexistent.h>
3961 _ACEOF
3962 if ac_fn_c_try_cpp "$LINENO"; then :
3963 # Broken: success on invalid input.
3964 continue
3965 else
3966 # Passes both tests.
3967 ac_preproc_ok=:
3968 break
3970 rm -f conftest.err conftest.$ac_ext
3972 done
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then :
3976 break
3979 done
3980 ac_cv_prog_CPP=$CPP
3983 CPP=$ac_cv_prog_CPP
3984 else
3985 ac_cv_prog_CPP=$CPP
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3988 $as_echo "$CPP" >&6; }
3989 ac_preproc_ok=false
3990 for ac_c_preproc_warn_flag in '' yes
3992 # Use a header file that comes with gcc, so configuring glibc
3993 # with a fresh cross-compiler works.
3994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995 # <limits.h> exists even on freestanding compilers.
3996 # On the NeXT, cc -E runs the code through the compiler's parser,
3997 # not just through cpp. "Syntax error" is here to catch this case.
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000 #ifdef __STDC__
4001 # include <limits.h>
4002 #else
4003 # include <assert.h>
4004 #endif
4005 Syntax error
4006 _ACEOF
4007 if ac_fn_c_try_cpp "$LINENO"; then :
4009 else
4010 # Broken: fails on valid input.
4011 continue
4013 rm -f conftest.err conftest.$ac_ext
4015 # OK, works on sane cases. Now check whether nonexistent headers
4016 # can be detected and how.
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019 #include <ac_nonexistent.h>
4020 _ACEOF
4021 if ac_fn_c_try_cpp "$LINENO"; then :
4022 # Broken: success on invalid input.
4023 continue
4024 else
4025 # Passes both tests.
4026 ac_preproc_ok=:
4027 break
4029 rm -f conftest.err conftest.$ac_ext
4031 done
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.err conftest.$ac_ext
4034 if $ac_preproc_ok; then :
4036 else
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4040 See \`config.log' for more details." "$LINENO" 5; }
4043 ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050 ac_c_preproc_warn_flag=yes
4054 # The cast to long int works around a bug in the HP C Compiler
4055 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4056 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4057 # This bug is HP SR number 8606223364.
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
4059 $as_echo_n "checking size of double... " >&6; }
4060 if test "${ac_cv_sizeof_double+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
4065 else
4066 if test "$ac_cv_type_double" = yes; then
4067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069 { as_fn_set_status 77
4070 as_fn_error "cannot compute sizeof (double)
4071 See \`config.log' for more details." "$LINENO" 5; }; }
4072 else
4073 ac_cv_sizeof_double=0
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
4079 $as_echo "$ac_cv_sizeof_double" >&6; }
4083 cat >>confdefs.h <<_ACEOF
4084 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4085 _ACEOF
4088 # The cast to long int works around a bug in the HP C Compiler
4089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4091 # This bug is HP SR number 8606223364.
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4093 $as_echo_n "checking size of long double... " >&6; }
4094 if test "${ac_cv_sizeof_long_double+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4099 else
4100 if test "$ac_cv_type_long_double" = yes; then
4101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4103 { as_fn_set_status 77
4104 as_fn_error "cannot compute sizeof (long double)
4105 See \`config.log' for more details." "$LINENO" 5; }; }
4106 else
4107 ac_cv_sizeof_long_double=0
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4113 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4117 cat >>confdefs.h <<_ACEOF
4118 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4119 _ACEOF
4122 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4123 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4128 for ac_header in inttypes.h stdint.h stdlib.h ftw.h \
4129 unistd.h sys/stat.h sys/types.h \
4130 string.h strings.h memory.h
4131 do :
4132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4133 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
4134 eval as_val=\$$as_ac_Header
4135 if test "x$as_val" = x""yes; then :
4136 cat >>confdefs.h <<_ACEOF
4137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4138 _ACEOF
4141 done
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4144 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4145 if test "${ac_cv_path_GREP+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -z "$GREP"; then
4149 ac_path_GREP_found=false
4150 # Loop through the user's path and test for each of PROGNAME-LIST
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_prog in grep ggrep; do
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4159 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4160 # Check for GNU ac_path_GREP and select it if it is found.
4161 # Check for GNU $ac_path_GREP
4162 case `"$ac_path_GREP" --version 2>&1` in
4163 *GNU*)
4164 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4166 ac_count=0
4167 $as_echo_n 0123456789 >"conftest.in"
4168 while :
4170 cat "conftest.in" "conftest.in" >"conftest.tmp"
4171 mv "conftest.tmp" "conftest.in"
4172 cp "conftest.in" "conftest.nl"
4173 $as_echo 'GREP' >> "conftest.nl"
4174 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4176 as_fn_arith $ac_count + 1 && ac_count=$as_val
4177 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4178 # Best one so far, save it but keep looking for a better one
4179 ac_cv_path_GREP="$ac_path_GREP"
4180 ac_path_GREP_max=$ac_count
4182 # 10*(2^10) chars as input seems more than enough
4183 test $ac_count -gt 10 && break
4184 done
4185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4186 esac
4188 $ac_path_GREP_found && break 3
4189 done
4190 done
4191 done
4192 IFS=$as_save_IFS
4193 if test -z "$ac_cv_path_GREP"; then
4194 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4196 else
4197 ac_cv_path_GREP=$GREP
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4202 $as_echo "$ac_cv_path_GREP" >&6; }
4203 GREP="$ac_cv_path_GREP"
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4207 $as_echo_n "checking for egrep... " >&6; }
4208 if test "${ac_cv_path_EGREP+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4212 then ac_cv_path_EGREP="$GREP -E"
4213 else
4214 if test -z "$EGREP"; then
4215 ac_path_EGREP_found=false
4216 # Loop through the user's path and test for each of PROGNAME-LIST
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_prog in egrep; do
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4225 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4226 # Check for GNU ac_path_EGREP and select it if it is found.
4227 # Check for GNU $ac_path_EGREP
4228 case `"$ac_path_EGREP" --version 2>&1` in
4229 *GNU*)
4230 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4232 ac_count=0
4233 $as_echo_n 0123456789 >"conftest.in"
4234 while :
4236 cat "conftest.in" "conftest.in" >"conftest.tmp"
4237 mv "conftest.tmp" "conftest.in"
4238 cp "conftest.in" "conftest.nl"
4239 $as_echo 'EGREP' >> "conftest.nl"
4240 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242 as_fn_arith $ac_count + 1 && ac_count=$as_val
4243 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4244 # Best one so far, save it but keep looking for a better one
4245 ac_cv_path_EGREP="$ac_path_EGREP"
4246 ac_path_EGREP_max=$ac_count
4248 # 10*(2^10) chars as input seems more than enough
4249 test $ac_count -gt 10 && break
4250 done
4251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252 esac
4254 $ac_path_EGREP_found && break 3
4255 done
4256 done
4257 done
4258 IFS=$as_save_IFS
4259 if test -z "$ac_cv_path_EGREP"; then
4260 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4262 else
4263 ac_cv_path_EGREP=$EGREP
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4269 $as_echo "$ac_cv_path_EGREP" >&6; }
4270 EGREP="$ac_cv_path_EGREP"
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4274 $as_echo_n "checking for ANSI C header files... " >&6; }
4275 if test "${ac_cv_header_stdc+set}" = set; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280 #include <stdlib.h>
4281 #include <stdarg.h>
4282 #include <string.h>
4283 #include <float.h>
4286 main ()
4290 return 0;
4292 _ACEOF
4293 if ac_fn_c_try_compile "$LINENO"; then :
4294 ac_cv_header_stdc=yes
4295 else
4296 ac_cv_header_stdc=no
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 if test $ac_cv_header_stdc = yes; then
4301 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304 #include <string.h>
4306 _ACEOF
4307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308 $EGREP "memchr" >/dev/null 2>&1; then :
4310 else
4311 ac_cv_header_stdc=no
4313 rm -f conftest*
4317 if test $ac_cv_header_stdc = yes; then
4318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321 #include <stdlib.h>
4323 _ACEOF
4324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4325 $EGREP "free" >/dev/null 2>&1; then :
4327 else
4328 ac_cv_header_stdc=no
4330 rm -f conftest*
4334 if test $ac_cv_header_stdc = yes; then
4335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4336 if test "$cross_compiling" = yes; then :
4338 else
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4341 #include <ctype.h>
4342 #include <stdlib.h>
4343 #if ((' ' & 0x0FF) == 0x020)
4344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4346 #else
4347 # define ISLOWER(c) \
4348 (('a' <= (c) && (c) <= 'i') \
4349 || ('j' <= (c) && (c) <= 'r') \
4350 || ('s' <= (c) && (c) <= 'z'))
4351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4352 #endif
4354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4356 main ()
4358 int i;
4359 for (i = 0; i < 256; i++)
4360 if (XOR (islower (i), ISLOWER (i))
4361 || toupper (i) != TOUPPER (i))
4362 return 2;
4363 return 0;
4365 _ACEOF
4366 if ac_fn_c_try_run "$LINENO"; then :
4368 else
4369 ac_cv_header_stdc=no
4371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4372 conftest.$ac_objext conftest.beam conftest.$ac_ext
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4378 $as_echo "$ac_cv_header_stdc" >&6; }
4379 if test $ac_cv_header_stdc = yes; then
4381 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4386 # Check for decimal float support.
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4388 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4389 if test "${libgcc_cv_dfp+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4395 #include <fenv.h>
4398 main ()
4401 _Decimal32 x;
4402 int fe_except =
4403 FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
4406 return 0;
4408 _ACEOF
4409 if ac_fn_c_try_compile "$LINENO"; then :
4410 libgcc_cv_dfp=yes
4411 else
4412 libgcc_cv_dfp=no
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4417 $as_echo "$libgcc_cv_dfp" >&6; }
4418 decimal_float=$libgcc_cv_dfp
4422 # Check whether --enable-decimal-float was given.
4423 if test "${enable_decimal_float+set}" = set; then :
4424 enableval=$enable_decimal_float;
4425 case $enable_decimal_float in
4426 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4427 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4428 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4429 esac
4431 else
4433 case $host in
4434 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4435 i?86*-*-gnu* | \
4436 i?86*-*-mingw* | x86_64*-*-mingw* | \
4437 i?86*-*-cygwin* | x86_64*-*-cygwin*)
4438 enable_decimal_float=yes
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4442 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4443 enable_decimal_float=no
4445 esac
4450 # x86's use BID format instead of DPD
4451 case x$enable_decimal_float in
4452 xyes)
4453 case $host in
4454 i?86*-*-* | x86_64*-*-*)
4455 enable_decimal_float=bid
4458 enable_decimal_float=dpd
4460 esac
4461 default_decimal_float=$enable_decimal_float
4463 xno)
4464 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4465 # dependency on libdecnumber.
4466 default_decimal_float=dpd
4468 esac
4473 # Check for fixed-point support.
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4475 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4476 if test "${libgcc_cv_fixed_point+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4481 _Sat _Fract x;
4482 _ACEOF
4483 if ac_fn_c_try_compile "$LINENO"; then :
4484 libgcc_cv_fixed_point=yes
4485 else
4486 libgcc_cv_fixed_point=no
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4491 $as_echo "$libgcc_cv_fixed_point" >&6; }
4492 fixed_point=$libgcc_cv_fixed_point
4495 # For platforms with the unwind ABI which includes an unwind library,
4496 # libunwind, we can choose to use the system libunwind.
4497 # config.gcc also contains tests of with_system_libunwind.
4500 # Check whether --with-system-libunwind was given.
4501 if test "${with_system_libunwind+set}" = set; then :
4502 withval=$with_system_libunwind;
4505 # If system-libunwind was not specifically set, pick a default setting.
4506 if test x$with_system_libunwind = x; then
4507 case ${target} in
4508 ia64-*-hpux*) with_system_libunwind=yes ;;
4509 *) with_system_libunwind=no ;;
4510 esac
4512 # Based on system-libunwind and target, do we have ipinfo?
4513 if test x$with_system_libunwind = xyes; then
4514 case ${target} in
4515 ia64-*-*) have_unwind_getipinfo=no ;;
4516 *) have_unwind_getipinfo=yes ;;
4517 esac
4518 else
4519 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4521 case ${target} in
4522 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4523 *) have_unwind_getipinfo=yes ;;
4524 esac
4528 if test x$have_unwind_getipinfo = xyes; then
4530 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4535 # The sjlj test is almost duplicated here and in libgo/configure.ac (for C),
4536 # libstdc++-v3/acinclude.m4 and libjava/configure.ac (for C++), and
4537 # libobjc/configure.ac (for Objective-C).
4538 # FIXME: This should be centralized in config/sjlj.m4.
4539 # Check whether --enable-sjlj-exceptions was given.
4540 if test "${enable_sjlj_exceptions+set}" = set; then :
4541 enableval=$enable_sjlj_exceptions; case "$enableval" in
4542 yes|no|auto) ;;
4543 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
4544 esac
4545 else
4546 enable_sjlj_exceptions=auto
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
4551 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
4552 if test "${libgcc_cv_lib_sjlj_exceptions+set}" = set; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4558 void bar ();
4559 void clean (int *);
4560 void foo ()
4562 int i __attribute__ ((cleanup (clean)));
4563 bar();
4566 _ACEOF
4567 CFLAGS_hold=$CFLAGS
4568 CFLAGS="--save-temps -fexceptions"
4569 libgcc_cv_lib_sjlj_exceptions=unknown
4570 if ac_fn_c_try_compile; then :
4571 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
4572 libgcc_cv_lib_sjlj_exceptions=yes
4573 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
4574 libgcc_cv_lib_sjlj_exceptions=no
4577 CFLAGS=$CFLAGS_hold
4578 rm -f conftest*
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_lib_sjlj_exceptions" >&5
4582 $as_echo "$libgcc_cv_lib_sjlj_exceptions" >&6; }
4584 if test "$enable_sjlj_exceptions" = "auto"; then
4585 enable_sjlj_exceptions=$libgcc_cv_lib_sjlj_exceptions
4588 case $enable_sjlj_exceptions in
4589 yes)
4591 $as_echo "#define LIBGCC_SJLJ_EXCEPTIONS 1" >>confdefs.h
4597 as_fn_error "unable to detect exception model" "$LINENO" 5
4599 esac
4601 # Check whether --enable-explicit-exception-frame-registration was given.
4602 if test "${enable_explicit_exception_frame_registration+set}" = set; then :
4603 enableval=$enable_explicit_exception_frame_registration;
4604 force_explicit_eh_registry=
4605 if test "$enable_explicit_exception_frame_registration" = yes; then
4606 if test "$enable_sjlj_exceptions" = yes; then
4607 as_fn_error "Can't enable both of --enable-sjlj-exceptions
4608 and --enable-explicit-exception-frame-registration" "$LINENO" 5
4610 force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4618 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4619 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4623 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4624 acl_cv_prog_gnu_ld=yes
4625 else
4626 acl_cv_prog_gnu_ld=no
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4630 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4631 with_gnu_ld=$acl_cv_prog_gnu_ld
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4635 $as_echo_n "checking for thread model used by GCC... " >&6; }
4636 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
4638 $as_echo "$target_thread_file" >&6; }
4640 # Check for assembler CFI support.
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
4642 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
4643 if test "${libgcc_cv_cfi+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 asm("\n\
4649 .text\n\
4650 .cfi_startproc\n\
4651 .cfi_personality 0, symbol\n\
4652 .cfi_endproc");
4653 _ACEOF
4654 if ac_fn_c_try_compile "$LINENO"; then :
4655 libgcc_cv_cfi=yes
4656 else
4657 libgcc_cv_cfi=no
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
4662 $as_echo "$libgcc_cv_cfi" >&6; }
4664 # Check 32bit or 64bit. In the case of MIPS, this really determines the
4665 # word size rather than the address size.
4666 cat > conftest.c <<EOF
4667 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
4668 || defined(__mips64)
4669 host_address=64
4670 #else
4671 host_address=32
4672 #endif
4674 eval `${CC-cc} -E conftest.c | grep host_address=`
4675 rm -f conftest.c
4677 case ${host} in
4678 mips*-*-*)
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5
4680 $as_echo_n "checking whether the target is hard-float... " >&6; }
4681 if test "${libgcc_cv_mips_hard_float+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686 #ifndef __mips_hard_float
4687 #error FOO
4688 #endif
4689 _ACEOF
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691 libgcc_cv_mips_hard_float=yes
4692 else
4693 libgcc_cv_mips_hard_float=no
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5
4698 $as_echo "$libgcc_cv_mips_hard_float" >&6; }
4699 esac
4701 # Determine the version of glibc, if any, used on the target.
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
4703 $as_echo_n "checking for target glibc version... " >&6; }
4705 # Check whether --with-glibc-version was given.
4706 if test "${with_glibc_version+set}" = set; then :
4707 withval=$with_glibc_version;
4708 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
4709 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
4710 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
4711 else
4712 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
4714 else
4716 if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then :
4718 else
4719 glibc_version_major=0
4722 if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then :
4724 else
4725 glibc_version_minor=0
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
4731 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
4733 # Determine floating-point type for powerpc*-*-linux*.
4734 # Single-precision-only FPRs are not a supported configuration for
4735 # this target, so are not allowed for in this test.
4736 case ${host} in
4737 powerpc*-*-linux*)
4738 cat > conftest.c <<EOF
4739 #ifdef __powerpc64__
4740 ppc_fp_type=64
4741 #elif defined _SOFT_FLOAT
4742 ppc_fp_type=soft
4743 #elif defined _SOFT_DOUBLE
4744 ppc_fp_type=e500v1
4745 #elif defined __NO_FPRS__
4746 ppc_fp_type=e500v2
4747 #else
4748 ppc_fp_type=hard
4749 #endif
4751 eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
4752 rm -f conftest.c
4753 # glibc 2.19 and later provide all the soft-fp functions, with proper
4754 # interactions with <fenv.h> exception and rounding mode handling, so
4755 # make libgcc's versions into compat symbols if a recent enough glibc
4756 # version is being used.
4757 ppc_fp_compat=
4758 case ${ppc_fp_type} in
4759 soft|e500v1|e500v2)
4760 if test $glibc_version_major -gt 2 \
4761 || ( test $glibc_version_major -eq 2 \
4762 && test $glibc_version_minor -ge 19 ); then
4763 ppc_fp_compat="t-softfp-compat"
4766 esac
4768 esac
4770 # Collect host-machine-specific information.
4771 . ${srcdir}/config.host
4773 # Used for constructing correct paths for offload compilers.
4774 accel_dir_suffix=
4775 if test x"$enable_as_accelerator_for" != x; then
4776 accel_dir_suffix=/accel/${target_noncanonical}
4777 case "${target_noncanonical}" in
4778 *-intelmicemul-*)
4779 # In this case we expect offload compiler to be built as native, so we
4780 # need to change install directory for driver to be able to find libgcc.
4781 host_noncanonical=${enable_as_accelerator_for} ;;
4782 esac
4786 if test x"$enable_offload_targets" != x; then
4787 extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o"
4790 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
4791 # This is after config.host so we can augment tmake_file.
4792 # Link with -nostartfiles -nodefaultlibs since neither are present while
4793 # building libgcc.
4794 case ${host} in
4795 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
4796 cat > conftest.s <<EOF
4797 .section .eh_frame,"a",@unwind
4798 .zero 4
4799 .section .jcr,"aw",@progbits
4800 .zero 8
4802 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
4803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4807 test $ac_status = 0; }; }; then
4808 tmake_file="${tmake_file} i386/t-crtstuff"
4811 esac
4813 # Check if xtensa target is configured for windowed ABI and thus needs to use
4814 # custom unwind code.
4815 # This is after config.host so we can augment tmake_file.
4816 case ${host} in
4817 xtensa*-*)
4818 cat > conftest.c <<EOF
4819 #ifdef __XTENSA_CALL0_ABI__
4820 #error
4821 #endif
4823 if { ac_try='${CC-cc} -E -o conftest.i conftest.c 1>&5'
4824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4828 test $ac_status = 0; }; }; then
4829 tmake_file="${tmake_file} xtensa/t-windowed"
4832 esac
4834 # Check for visibility support. This is after config.host so that
4835 # we can check for asm_hidden_op.
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
4837 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
4838 if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4842 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
4843 libgcc_cv_hidden_visibility_attribute=no
4844 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4849 test $ac_status = 0; }; }; then
4850 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
4851 libgcc_cv_hidden_visibility_attribute=yes
4854 rm -f conftest.*
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
4858 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
4860 if test $libgcc_cv_hidden_visibility_attribute = yes; then
4861 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
4862 else
4863 vis_hide=
4867 # See if we have thread-local storage. We can only test assembler
4868 # since link-time and run-time tests require the newly built
4869 # gcc, which can't be used to build executable due to that libgcc
4870 # is yet to be built here.
4872 # Check whether --enable-tls was given.
4873 if test "${enable_tls+set}" = set; then :
4874 enableval=$enable_tls;
4875 case "$enableval" in
4876 yes|no) ;;
4877 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
4878 esac
4880 else
4881 enable_tls=yes
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
4886 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
4887 if test "${gcc_cv_have_cc_tls+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 __thread int a; int b; int main() { return a = b; }
4894 _ACEOF
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896 gcc_cv_have_cc_tls=yes
4897 else
4898 gcc_cv_have_cc_tls=no
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
4904 $as_echo "$gcc_cv_have_cc_tls" >&6; }
4905 set_have_cc_tls=
4906 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
4907 set_have_cc_tls="-DHAVE_CC_TLS"
4911 # See if we have emulated thread-local storage.
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
4914 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
4915 if test "${gcc_cv_use_emutls+set}" = set; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4919 gcc_cv_use_emutls=no
4920 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
4921 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
4922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4923 (eval $ac_try) 2>&5
4924 ac_status=$?
4925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4926 test $ac_status = 0; }; }; then
4927 if grep __emutls_get_address conftest.s > /dev/null; then
4928 gcc_cv_use_emutls=yes
4931 rm -f conftest.*
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
4935 $as_echo "$gcc_cv_use_emutls" >&6; }
4936 if test "$gcc_cv_use_emutls" = "yes" ; then
4938 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
4941 set_use_emutls=
4942 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
4943 set_use_emutls="-DUSE_EMUTLS"
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
4948 $as_echo_n "checking for init priority support... " >&6; }
4949 if test "${libgcc_cv_init_priority+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h. */
4957 main ()
4959 void ip (void) __attribute__ ((constructor (1)));
4961 return 0;
4963 _ACEOF
4964 if ac_fn_c_try_compile "$LINENO"; then :
4965 libgcc_cv_init_priority=yes
4966 else
4967 libgcc_cv_init_priority=no
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
4972 $as_echo "$libgcc_cv_init_priority" >&6; }
4973 if test $libgcc_cv_init_priority = yes; then
4975 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
4979 # Conditionalize the sfp-machine.h header for this target machine.
4980 if test -z "${sfp_machine_header}"; then
4981 sfp_machine_header=$cpu_type/sfp-machine.h
4982 if test -f ${srcdir}/config/${sfp_machine_header}; then
4984 else
4985 sfp_machine_header=no-sfp-machine.h
4990 # Conditionalize the makefile for this target machine.
4991 tmake_file_=
4992 for f in ${tmake_file}
4994 if test -f ${srcdir}/config/$f
4995 then
4996 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
4998 done
4999 tmake_file="${tmake_file_}"
5002 # Likewise export definitions for libgcc_tm.h
5003 tm_file_=
5004 for f in ${tm_file}
5006 tm_file_="${tm_file_} \$(srcdir)/config/$f"
5007 done
5008 tm_file="${tm_file_}"
5012 # Map from thread model to thread header.
5014 case $target_thread_file in
5015 aix) thread_header=config/rs6000/gthr-aix.h ;;
5016 dce) thread_header=config/pa/gthr-dce.h ;;
5017 lynx) thread_header=config/gthr-lynx.h ;;
5018 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
5019 posix) thread_header=gthr-posix.h ;;
5020 rtems) thread_header=config/gthr-rtems.h ;;
5021 single) thread_header=gthr-single.h ;;
5022 tpf) thread_header=config/s390/gthr-tpf.h ;;
5023 vxworks) thread_header=config/gthr-vxworks.h ;;
5024 win32) thread_header=config/i386/gthr-win32.h ;;
5025 esac
5029 # Substitute configuration variables
5033 ac_config_links="$ac_config_links enable-execute-stack.c:$enable_execute_stack"
5035 ac_config_links="$ac_config_links unwind.h:$unwind_header"
5037 ac_config_links="$ac_config_links md-unwind-support.h:config/$md_unwind_header"
5039 ac_config_links="$ac_config_links sfp-machine.h:config/$sfp_machine_header"
5041 ac_config_links="$ac_config_links gthr-default.h:$thread_header"
5044 # We need multilib support.
5045 ac_config_files="$ac_config_files Makefile"
5047 ac_config_commands="$ac_config_commands default"
5049 cat >confcache <<\_ACEOF
5050 # This file is a shell script that caches the results of configure
5051 # tests run on this system so they can be shared between configure
5052 # scripts and configure runs, see configure's option --config-cache.
5053 # It is not useful on other systems. If it contains results you don't
5054 # want to keep, you may remove or edit it.
5056 # config.status only pays attention to the cache file if you give it
5057 # the --recheck option to rerun configure.
5059 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5060 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5061 # following values.
5063 _ACEOF
5065 # The following way of writing the cache mishandles newlines in values,
5066 # but we know of no workaround that is simple, portable, and efficient.
5067 # So, we kill variables containing newlines.
5068 # Ultrix sh set writes to stderr and can't be redirected directly,
5069 # and sets the high bit in the cache file unless we assign to the vars.
5071 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5072 eval ac_val=\$$ac_var
5073 case $ac_val in #(
5074 *${as_nl}*)
5075 case $ac_var in #(
5076 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5078 esac
5079 case $ac_var in #(
5080 _ | IFS | as_nl) ;; #(
5081 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5082 *) { eval $ac_var=; unset $ac_var;} ;;
5083 esac ;;
5084 esac
5085 done
5087 (set) 2>&1 |
5088 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5089 *${as_nl}ac_space=\ *)
5090 # `set' does not quote correctly, so add quotes: double-quote
5091 # substitution turns \\\\ into \\, and sed turns \\ into \.
5092 sed -n \
5093 "s/'/'\\\\''/g;
5094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5095 ;; #(
5097 # `set' quotes correctly as required by POSIX, so do not add quotes.
5098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5100 esac |
5101 sort
5103 sed '
5104 /^ac_cv_env_/b end
5105 t clear
5106 :clear
5107 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5108 t end
5109 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5110 :end' >>confcache
5111 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5112 if test -w "$cache_file"; then
5113 test "x$cache_file" != "x/dev/null" &&
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5115 $as_echo "$as_me: updating cache $cache_file" >&6;}
5116 cat confcache >$cache_file
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5119 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5122 rm -f confcache
5124 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5125 # Let make expand exec_prefix.
5126 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5128 DEFS=-DHAVE_CONFIG_H
5130 ac_libobjs=
5131 ac_ltlibobjs=
5132 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5133 # 1. Remove the extension, and $U if already installed.
5134 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5135 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5136 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5137 # will be set to the directory where LIBOBJS objects are built.
5138 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5139 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5140 done
5141 LIBOBJS=$ac_libobjs
5143 LTLIBOBJS=$ac_ltlibobjs
5147 : ${CONFIG_STATUS=./config.status}
5148 ac_write_fail=0
5149 ac_clean_files_save=$ac_clean_files
5150 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5152 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5153 as_write_fail=0
5154 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5155 #! $SHELL
5156 # Generated by $as_me.
5157 # Run this file to recreate the current configuration.
5158 # Compiler output produced by configure, useful for debugging
5159 # configure, is in config.log if it exists.
5161 debug=false
5162 ac_cs_recheck=false
5163 ac_cs_silent=false
5165 SHELL=\${CONFIG_SHELL-$SHELL}
5166 export SHELL
5167 _ASEOF
5168 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5169 ## -------------------- ##
5170 ## M4sh Initialization. ##
5171 ## -------------------- ##
5173 # Be more Bourne compatible
5174 DUALCASE=1; export DUALCASE # for MKS sh
5175 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5176 emulate sh
5177 NULLCMD=:
5178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5179 # is contrary to our usage. Disable this feature.
5180 alias -g '${1+"$@"}'='"$@"'
5181 setopt NO_GLOB_SUBST
5182 else
5183 case `(set -o) 2>/dev/null` in #(
5184 *posix*) :
5185 set -o posix ;; #(
5186 *) :
5188 esac
5192 as_nl='
5194 export as_nl
5195 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5196 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5197 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5199 # Prefer a ksh shell builtin over an external printf program on Solaris,
5200 # but without wasting forks for bash or zsh.
5201 if test -z "$BASH_VERSION$ZSH_VERSION" \
5202 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5203 as_echo='print -r --'
5204 as_echo_n='print -rn --'
5205 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5206 as_echo='printf %s\n'
5207 as_echo_n='printf %s'
5208 else
5209 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5210 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5211 as_echo_n='/usr/ucb/echo -n'
5212 else
5213 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5214 as_echo_n_body='eval
5215 arg=$1;
5216 case $arg in #(
5217 *"$as_nl"*)
5218 expr "X$arg" : "X\\(.*\\)$as_nl";
5219 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5220 esac;
5221 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5223 export as_echo_n_body
5224 as_echo_n='sh -c $as_echo_n_body as_echo'
5226 export as_echo_body
5227 as_echo='sh -c $as_echo_body as_echo'
5230 # The user is always right.
5231 if test "${PATH_SEPARATOR+set}" != set; then
5232 PATH_SEPARATOR=:
5233 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5234 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5235 PATH_SEPARATOR=';'
5240 # IFS
5241 # We need space, tab and new line, in precisely that order. Quoting is
5242 # there to prevent editors from complaining about space-tab.
5243 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5244 # splitting by setting IFS to empty value.)
5245 IFS=" "" $as_nl"
5247 # Find who we are. Look in the path if we contain no directory separator.
5248 case $0 in #((
5249 *[\\/]* ) as_myself=$0 ;;
5250 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5256 done
5257 IFS=$as_save_IFS
5260 esac
5261 # We did not find ourselves, most probably we were run as `sh COMMAND'
5262 # in which case we are not to be found in the path.
5263 if test "x$as_myself" = x; then
5264 as_myself=$0
5266 if test ! -f "$as_myself"; then
5267 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5268 exit 1
5271 # Unset variables that we do not need and which cause bugs (e.g. in
5272 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5273 # suppresses any "Segmentation fault" message there. '((' could
5274 # trigger a bug in pdksh 5.2.14.
5275 for as_var in BASH_ENV ENV MAIL MAILPATH
5276 do eval test x\${$as_var+set} = xset \
5277 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5278 done
5279 PS1='$ '
5280 PS2='> '
5281 PS4='+ '
5283 # NLS nuisances.
5284 LC_ALL=C
5285 export LC_ALL
5286 LANGUAGE=C
5287 export LANGUAGE
5289 # CDPATH.
5290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5293 # as_fn_error ERROR [LINENO LOG_FD]
5294 # ---------------------------------
5295 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5296 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5297 # script with status $?, using 1 if that was 0.
5298 as_fn_error ()
5300 as_status=$?; test $as_status -eq 0 && as_status=1
5301 if test "$3"; then
5302 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5303 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5305 $as_echo "$as_me: error: $1" >&2
5306 as_fn_exit $as_status
5307 } # as_fn_error
5310 # as_fn_set_status STATUS
5311 # -----------------------
5312 # Set $? to STATUS, without forking.
5313 as_fn_set_status ()
5315 return $1
5316 } # as_fn_set_status
5318 # as_fn_exit STATUS
5319 # -----------------
5320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5321 as_fn_exit ()
5323 set +e
5324 as_fn_set_status $1
5325 exit $1
5326 } # as_fn_exit
5328 # as_fn_unset VAR
5329 # ---------------
5330 # Portably unset VAR.
5331 as_fn_unset ()
5333 { eval $1=; unset $1;}
5335 as_unset=as_fn_unset
5336 # as_fn_append VAR VALUE
5337 # ----------------------
5338 # Append the text in VALUE to the end of the definition contained in VAR. Take
5339 # advantage of any shell optimizations that allow amortized linear growth over
5340 # repeated appends, instead of the typical quadratic growth present in naive
5341 # implementations.
5342 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5343 eval 'as_fn_append ()
5345 eval $1+=\$2
5347 else
5348 as_fn_append ()
5350 eval $1=\$$1\$2
5352 fi # as_fn_append
5354 # as_fn_arith ARG...
5355 # ------------------
5356 # Perform arithmetic evaluation on the ARGs, and store the result in the
5357 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5358 # must be portable across $(()) and expr.
5359 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5360 eval 'as_fn_arith ()
5362 as_val=$(( $* ))
5364 else
5365 as_fn_arith ()
5367 as_val=`expr "$@" || test $? -eq 1`
5369 fi # as_fn_arith
5372 if expr a : '\(a\)' >/dev/null 2>&1 &&
5373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5374 as_expr=expr
5375 else
5376 as_expr=false
5379 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5380 as_basename=basename
5381 else
5382 as_basename=false
5385 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5386 as_dirname=dirname
5387 else
5388 as_dirname=false
5391 as_me=`$as_basename -- "$0" ||
5392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5393 X"$0" : 'X\(//\)$' \| \
5394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5395 $as_echo X/"$0" |
5396 sed '/^.*\/\([^/][^/]*\)\/*$/{
5397 s//\1/
5400 /^X\/\(\/\/\)$/{
5401 s//\1/
5404 /^X\/\(\/\).*/{
5405 s//\1/
5408 s/.*/./; q'`
5410 # Avoid depending upon Character Ranges.
5411 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5412 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5413 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5414 as_cr_digits='0123456789'
5415 as_cr_alnum=$as_cr_Letters$as_cr_digits
5417 ECHO_C= ECHO_N= ECHO_T=
5418 case `echo -n x` in #(((((
5419 -n*)
5420 case `echo 'xy\c'` in
5421 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5422 xy) ECHO_C='\c';;
5423 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5424 ECHO_T=' ';;
5425 esac;;
5427 ECHO_N='-n';;
5428 esac
5430 rm -f conf$$ conf$$.exe conf$$.file
5431 if test -d conf$$.dir; then
5432 rm -f conf$$.dir/conf$$.file
5433 else
5434 rm -f conf$$.dir
5435 mkdir conf$$.dir 2>/dev/null
5437 if (echo >conf$$.file) 2>/dev/null; then
5438 if ln -s conf$$.file conf$$ 2>/dev/null; then
5439 as_ln_s='ln -s'
5440 # ... but there are two gotchas:
5441 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5442 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5443 # In both cases, we have to default to `cp -p'.
5444 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5445 as_ln_s='cp -p'
5446 elif ln conf$$.file conf$$ 2>/dev/null; then
5447 as_ln_s=ln
5448 else
5449 as_ln_s='cp -p'
5451 else
5452 as_ln_s='cp -p'
5454 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5455 rmdir conf$$.dir 2>/dev/null
5458 # as_fn_mkdir_p
5459 # -------------
5460 # Create "$as_dir" as a directory, including parents if necessary.
5461 as_fn_mkdir_p ()
5464 case $as_dir in #(
5465 -*) as_dir=./$as_dir;;
5466 esac
5467 test -d "$as_dir" || eval $as_mkdir_p || {
5468 as_dirs=
5469 while :; do
5470 case $as_dir in #(
5471 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5472 *) as_qdir=$as_dir;;
5473 esac
5474 as_dirs="'$as_qdir' $as_dirs"
5475 as_dir=`$as_dirname -- "$as_dir" ||
5476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5477 X"$as_dir" : 'X\(//\)[^/]' \| \
5478 X"$as_dir" : 'X\(//\)$' \| \
5479 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5480 $as_echo X"$as_dir" |
5481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5482 s//\1/
5485 /^X\(\/\/\)[^/].*/{
5486 s//\1/
5489 /^X\(\/\/\)$/{
5490 s//\1/
5493 /^X\(\/\).*/{
5494 s//\1/
5497 s/.*/./; q'`
5498 test -d "$as_dir" && break
5499 done
5500 test -z "$as_dirs" || eval "mkdir $as_dirs"
5501 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5504 } # as_fn_mkdir_p
5505 if mkdir -p . 2>/dev/null; then
5506 as_mkdir_p='mkdir -p "$as_dir"'
5507 else
5508 test -d ./-p && rmdir ./-p
5509 as_mkdir_p=false
5512 if test -x / >/dev/null 2>&1; then
5513 as_test_x='test -x'
5514 else
5515 if ls -dL / >/dev/null 2>&1; then
5516 as_ls_L_option=L
5517 else
5518 as_ls_L_option=
5520 as_test_x='
5521 eval sh -c '\''
5522 if test -d "$1"; then
5523 test -d "$1/.";
5524 else
5525 case $1 in #(
5526 -*)set "./$1";;
5527 esac;
5528 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5529 ???[sx]*):;;*)false;;esac;fi
5530 '\'' sh
5533 as_executable_p=$as_test_x
5535 # Sed expression to map a string onto a valid CPP name.
5536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5538 # Sed expression to map a string onto a valid variable name.
5539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5542 exec 6>&1
5543 ## ----------------------------------- ##
5544 ## Main body of $CONFIG_STATUS script. ##
5545 ## ----------------------------------- ##
5546 _ASEOF
5547 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5550 # Save the log message, to keep $0 and so on meaningful, and to
5551 # report actual input values of CONFIG_FILES etc. instead of their
5552 # values after options handling.
5553 ac_log="
5554 This file was extended by GNU C Runtime Library $as_me 1.0, which was
5555 generated by GNU Autoconf 2.64. Invocation command line was
5557 CONFIG_FILES = $CONFIG_FILES
5558 CONFIG_HEADERS = $CONFIG_HEADERS
5559 CONFIG_LINKS = $CONFIG_LINKS
5560 CONFIG_COMMANDS = $CONFIG_COMMANDS
5561 $ $0 $@
5563 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5566 _ACEOF
5568 case $ac_config_files in *"
5569 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5570 esac
5572 case $ac_config_headers in *"
5573 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5574 esac
5577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5578 # Files that config.status was made for.
5579 config_files="$ac_config_files"
5580 config_headers="$ac_config_headers"
5581 config_links="$ac_config_links"
5582 config_commands="$ac_config_commands"
5584 _ACEOF
5586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5587 ac_cs_usage="\
5588 \`$as_me' instantiates files and other configuration actions
5589 from templates according to the current configuration. Unless the files
5590 and actions are specified as TAGs, all are instantiated by default.
5592 Usage: $0 [OPTION]... [TAG]...
5594 -h, --help print this help, then exit
5595 -V, --version print version number and configuration settings, then exit
5596 -q, --quiet, --silent
5597 do not print progress messages
5598 -d, --debug don't remove temporary files
5599 --recheck update $as_me by reconfiguring in the same conditions
5600 --file=FILE[:TEMPLATE]
5601 instantiate the configuration file FILE
5602 --header=FILE[:TEMPLATE]
5603 instantiate the configuration header FILE
5605 Configuration files:
5606 $config_files
5608 Configuration headers:
5609 $config_headers
5611 Configuration links:
5612 $config_links
5614 Configuration commands:
5615 $config_commands
5617 Report bugs to the package provider.
5618 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
5619 General help using GNU software: <http://www.gnu.org/gethelp/>."
5621 _ACEOF
5622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5623 ac_cs_version="\\
5624 GNU C Runtime Library config.status 1.0
5625 configured by $0, generated by GNU Autoconf 2.64,
5626 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5628 Copyright (C) 2009 Free Software Foundation, Inc.
5629 This config.status script is free software; the Free Software Foundation
5630 gives unlimited permission to copy, distribute and modify it."
5632 ac_pwd='$ac_pwd'
5633 srcdir='$srcdir'
5634 INSTALL='$INSTALL'
5635 AWK='$AWK'
5636 test -n "\$AWK" || AWK=awk
5637 _ACEOF
5639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5640 # The default lists apply if the user does not specify any file.
5641 ac_need_defaults=:
5642 while test $# != 0
5644 case $1 in
5645 --*=*)
5646 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5647 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5648 ac_shift=:
5651 ac_option=$1
5652 ac_optarg=$2
5653 ac_shift=shift
5655 esac
5657 case $ac_option in
5658 # Handling of the options.
5659 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5660 ac_cs_recheck=: ;;
5661 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5662 $as_echo "$ac_cs_version"; exit ;;
5663 --debug | --debu | --deb | --de | --d | -d )
5664 debug=: ;;
5665 --file | --fil | --fi | --f )
5666 $ac_shift
5667 case $ac_optarg in
5668 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5669 esac
5670 as_fn_append CONFIG_FILES " '$ac_optarg'"
5671 ac_need_defaults=false;;
5672 --header | --heade | --head | --hea )
5673 $ac_shift
5674 case $ac_optarg in
5675 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5676 esac
5677 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5678 ac_need_defaults=false;;
5679 --he | --h)
5680 # Conflict between --help and --header
5681 as_fn_error "ambiguous option: \`$1'
5682 Try \`$0 --help' for more information.";;
5683 --help | --hel | -h )
5684 $as_echo "$ac_cs_usage"; exit ;;
5685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5686 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5687 ac_cs_silent=: ;;
5689 # This is an error.
5690 -*) as_fn_error "unrecognized option: \`$1'
5691 Try \`$0 --help' for more information." ;;
5693 *) as_fn_append ac_config_targets " $1"
5694 ac_need_defaults=false ;;
5696 esac
5697 shift
5698 done
5700 ac_configure_extra_args=
5702 if $ac_cs_silent; then
5703 exec 6>/dev/null
5704 ac_configure_extra_args="$ac_configure_extra_args --silent"
5707 _ACEOF
5708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5709 if \$ac_cs_recheck; then
5710 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5711 shift
5712 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5713 CONFIG_SHELL='$SHELL'
5714 export CONFIG_SHELL
5715 exec "\$@"
5718 _ACEOF
5719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5720 exec 5>>config.log
5722 echo
5723 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5724 ## Running $as_me. ##
5725 _ASBOX
5726 $as_echo "$ac_log"
5727 } >&5
5729 _ACEOF
5730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5732 # INIT-COMMANDS
5734 srcdir=${srcdir}
5735 host=${host}
5736 with_target_subdir=${with_target_subdir}
5737 with_multisubdir=${with_multisubdir}
5738 ac_configure_args="--enable-multilib ${ac_configure_args}"
5739 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5740 libgcc_topdir=${libgcc_topdir}
5741 CC="${CC}"
5744 _ACEOF
5746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5748 # Handling of arguments.
5749 for ac_config_target in $ac_config_targets
5751 case $ac_config_target in
5752 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
5753 "enable-execute-stack.c") CONFIG_LINKS="$CONFIG_LINKS enable-execute-stack.c:$enable_execute_stack" ;;
5754 "unwind.h") CONFIG_LINKS="$CONFIG_LINKS unwind.h:$unwind_header" ;;
5755 "md-unwind-support.h") CONFIG_LINKS="$CONFIG_LINKS md-unwind-support.h:config/$md_unwind_header" ;;
5756 "sfp-machine.h") CONFIG_LINKS="$CONFIG_LINKS sfp-machine.h:config/$sfp_machine_header" ;;
5757 "gthr-default.h") CONFIG_LINKS="$CONFIG_LINKS gthr-default.h:$thread_header" ;;
5758 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5759 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5761 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5762 esac
5763 done
5766 # If the user did not use the arguments to specify the items to instantiate,
5767 # then the envvar interface is used. Set only those that are not.
5768 # We use the long form for the default assignment because of an extremely
5769 # bizarre bug on SunOS 4.1.3.
5770 if $ac_need_defaults; then
5771 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5772 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5773 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5774 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5777 # Have a temporary directory for convenience. Make it in the build tree
5778 # simply because there is no reason against having it here, and in addition,
5779 # creating and moving files from /tmp can sometimes cause problems.
5780 # Hook for its removal unless debugging.
5781 # Note that there is a small window in which the directory will not be cleaned:
5782 # after its creation but before its name has been assigned to `$tmp'.
5783 $debug ||
5785 tmp=
5786 trap 'exit_status=$?
5787 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5789 trap 'as_fn_exit 1' 1 2 13 15
5791 # Create a (secure) tmp directory for tmp files.
5794 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5795 test -n "$tmp" && test -d "$tmp"
5796 } ||
5798 tmp=./conf$$-$RANDOM
5799 (umask 077 && mkdir "$tmp")
5800 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5802 # Set up the scripts for CONFIG_FILES section.
5803 # No need to generate them if there are no CONFIG_FILES.
5804 # This happens for instance with `./config.status config.h'.
5805 if test -n "$CONFIG_FILES"; then
5808 ac_cr=`echo X | tr X '\015'`
5809 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5810 # But we know of no other shell where ac_cr would be empty at this
5811 # point, so we can use a bashism as a fallback.
5812 if test "x$ac_cr" = x; then
5813 eval ac_cr=\$\'\\r\'
5815 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5816 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5817 ac_cs_awk_cr='\r'
5818 else
5819 ac_cs_awk_cr=$ac_cr
5822 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5823 _ACEOF
5827 echo "cat >conf$$subs.awk <<_ACEOF" &&
5828 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5829 echo "_ACEOF"
5830 } >conf$$subs.sh ||
5831 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5832 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5833 ac_delim='%!_!# '
5834 for ac_last_try in false false false false false :; do
5835 . ./conf$$subs.sh ||
5836 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5838 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5839 if test $ac_delim_n = $ac_delim_num; then
5840 break
5841 elif $ac_last_try; then
5842 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5843 else
5844 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5846 done
5847 rm -f conf$$subs.sh
5849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5850 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5851 _ACEOF
5852 sed -n '
5854 s/^/S["/; s/!.*/"]=/
5857 s/^[^!]*!//
5858 :repl
5859 t repl
5860 s/'"$ac_delim"'$//
5861 t delim
5864 s/\(.\{148\}\).*/\1/
5865 t more1
5866 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5869 b repl
5870 :more1
5871 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5874 s/.\{148\}//
5875 t nl
5876 :delim
5878 s/\(.\{148\}\).*/\1/
5879 t more2
5880 s/["\\]/\\&/g; s/^/"/; s/$/"/
5883 :more2
5884 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5887 s/.\{148\}//
5888 t delim
5889 ' <conf$$subs.awk | sed '
5890 /^[^""]/{
5892 s/\n//
5894 ' >>$CONFIG_STATUS || ac_write_fail=1
5895 rm -f conf$$subs.awk
5896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5897 _ACAWK
5898 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5899 for (key in S) S_is_set[key] = 1
5900 FS = "\a"
5904 line = $ 0
5905 nfields = split(line, field, "@")
5906 substed = 0
5907 len = length(field[1])
5908 for (i = 2; i < nfields; i++) {
5909 key = field[i]
5910 keylen = length(key)
5911 if (S_is_set[key]) {
5912 value = S[key]
5913 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5914 len += length(value) + length(field[++i])
5915 substed = 1
5916 } else
5917 len += 1 + keylen
5920 print line
5923 _ACAWK
5924 _ACEOF
5925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5926 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5927 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5928 else
5930 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5931 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5932 _ACEOF
5934 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5935 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5936 # trailing colons and then remove the whole line if VPATH becomes empty
5937 # (actually we leave an empty line to preserve line numbers).
5938 if test "x$srcdir" = x.; then
5939 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5940 s/:*\$(srcdir):*/:/
5941 s/:*\${srcdir}:*/:/
5942 s/:*@srcdir@:*/:/
5943 s/^\([^=]*=[ ]*\):*/\1/
5944 s/:*$//
5945 s/^[^=]*=[ ]*$//
5949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5950 fi # test -n "$CONFIG_FILES"
5952 # Set up the scripts for CONFIG_HEADERS section.
5953 # No need to generate them if there are no CONFIG_HEADERS.
5954 # This happens for instance with `./config.status Makefile'.
5955 if test -n "$CONFIG_HEADERS"; then
5956 cat >"$tmp/defines.awk" <<\_ACAWK ||
5957 BEGIN {
5958 _ACEOF
5960 # Transform confdefs.h into an awk script `defines.awk', embedded as
5961 # here-document in config.status, that substitutes the proper values into
5962 # config.h.in to produce config.h.
5964 # Create a delimiter string that does not exist in confdefs.h, to ease
5965 # handling of long lines.
5966 ac_delim='%!_!# '
5967 for ac_last_try in false false :; do
5968 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5969 if test -z "$ac_t"; then
5970 break
5971 elif $ac_last_try; then
5972 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5973 else
5974 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5976 done
5978 # For the awk script, D is an array of macro values keyed by name,
5979 # likewise P contains macro parameters if any. Preserve backslash
5980 # newline sequences.
5982 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5983 sed -n '
5984 s/.\{148\}/&'"$ac_delim"'/g
5985 t rset
5986 :rset
5987 s/^[ ]*#[ ]*define[ ][ ]*/ /
5988 t def
5990 :def
5991 s/\\$//
5992 t bsnl
5993 s/["\\]/\\&/g
5994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5995 D["\1"]=" \3"/p
5996 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5998 :bsnl
5999 s/["\\]/\\&/g
6000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6001 D["\1"]=" \3\\\\\\n"\\/p
6002 t cont
6003 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6004 t cont
6006 :cont
6008 s/.\{148\}/&'"$ac_delim"'/g
6009 t clear
6010 :clear
6011 s/\\$//
6012 t bsnlc
6013 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6015 :bsnlc
6016 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6017 b cont
6018 ' <confdefs.h | sed '
6019 s/'"$ac_delim"'/"\\\
6020 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6023 for (key in D) D_is_set[key] = 1
6024 FS = "\a"
6026 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6027 line = \$ 0
6028 split(line, arg, " ")
6029 if (arg[1] == "#") {
6030 defundef = arg[2]
6031 mac1 = arg[3]
6032 } else {
6033 defundef = substr(arg[1], 2)
6034 mac1 = arg[2]
6036 split(mac1, mac2, "(") #)
6037 macro = mac2[1]
6038 prefix = substr(line, 1, index(line, defundef) - 1)
6039 if (D_is_set[macro]) {
6040 # Preserve the white space surrounding the "#".
6041 print prefix "define", macro P[macro] D[macro]
6042 next
6043 } else {
6044 # Replace #undef with comments. This is necessary, for example,
6045 # in the case of _POSIX_SOURCE, which is predefined and required
6046 # on some systems where configure will not decide to define it.
6047 if (defundef == "undef") {
6048 print "/*", prefix defundef, macro, "*/"
6049 next
6053 { print }
6054 _ACAWK
6055 _ACEOF
6056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6057 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6058 fi # test -n "$CONFIG_HEADERS"
6061 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
6062 shift
6063 for ac_tag
6065 case $ac_tag in
6066 :[FHLC]) ac_mode=$ac_tag; continue;;
6067 esac
6068 case $ac_mode$ac_tag in
6069 :[FHL]*:*);;
6070 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6071 :[FH]-) ac_tag=-:-;;
6072 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6073 esac
6074 ac_save_IFS=$IFS
6075 IFS=:
6076 set x $ac_tag
6077 IFS=$ac_save_IFS
6078 shift
6079 ac_file=$1
6080 shift
6082 case $ac_mode in
6083 :L) ac_source=$1;;
6084 :[FH])
6085 ac_file_inputs=
6086 for ac_f
6088 case $ac_f in
6089 -) ac_f="$tmp/stdin";;
6090 *) # Look for the file first in the build tree, then in the source tree
6091 # (if the path is not absolute). The absolute path cannot be DOS-style,
6092 # because $ac_f cannot contain `:'.
6093 test -f "$ac_f" ||
6094 case $ac_f in
6095 [\\/$]*) false;;
6096 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6097 esac ||
6098 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6099 esac
6100 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6101 as_fn_append ac_file_inputs " '$ac_f'"
6102 done
6104 # Let's still pretend it is `configure' which instantiates (i.e., don't
6105 # use $as_me), people would be surprised to read:
6106 # /* config.h. Generated by config.status. */
6107 configure_input='Generated from '`
6108 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6109 `' by configure.'
6110 if test x"$ac_file" != x-; then
6111 configure_input="$ac_file. $configure_input"
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6113 $as_echo "$as_me: creating $ac_file" >&6;}
6115 # Neutralize special characters interpreted by sed in replacement strings.
6116 case $configure_input in #(
6117 *\&* | *\|* | *\\* )
6118 ac_sed_conf_input=`$as_echo "$configure_input" |
6119 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6120 *) ac_sed_conf_input=$configure_input;;
6121 esac
6123 case $ac_tag in
6124 *:-:* | *:-) cat >"$tmp/stdin" \
6125 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6126 esac
6128 esac
6130 ac_dir=`$as_dirname -- "$ac_file" ||
6131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6132 X"$ac_file" : 'X\(//\)[^/]' \| \
6133 X"$ac_file" : 'X\(//\)$' \| \
6134 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6135 $as_echo X"$ac_file" |
6136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6137 s//\1/
6140 /^X\(\/\/\)[^/].*/{
6141 s//\1/
6144 /^X\(\/\/\)$/{
6145 s//\1/
6148 /^X\(\/\).*/{
6149 s//\1/
6152 s/.*/./; q'`
6153 as_dir="$ac_dir"; as_fn_mkdir_p
6154 ac_builddir=.
6156 case "$ac_dir" in
6157 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6159 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6160 # A ".." for each directory in $ac_dir_suffix.
6161 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6162 case $ac_top_builddir_sub in
6163 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6164 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6165 esac ;;
6166 esac
6167 ac_abs_top_builddir=$ac_pwd
6168 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6169 # for backward compatibility:
6170 ac_top_builddir=$ac_top_build_prefix
6172 case $srcdir in
6173 .) # We are building in place.
6174 ac_srcdir=.
6175 ac_top_srcdir=$ac_top_builddir_sub
6176 ac_abs_top_srcdir=$ac_pwd ;;
6177 [\\/]* | ?:[\\/]* ) # Absolute name.
6178 ac_srcdir=$srcdir$ac_dir_suffix;
6179 ac_top_srcdir=$srcdir
6180 ac_abs_top_srcdir=$srcdir ;;
6181 *) # Relative name.
6182 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6183 ac_top_srcdir=$ac_top_build_prefix$srcdir
6184 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6185 esac
6186 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6189 case $ac_mode in
6192 # CONFIG_FILE
6195 case $INSTALL in
6196 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6197 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6198 esac
6199 _ACEOF
6201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6202 # If the template does not know about datarootdir, expand it.
6203 # FIXME: This hack should be removed a few years after 2.60.
6204 ac_datarootdir_hack=; ac_datarootdir_seen=
6205 ac_sed_dataroot='
6206 /datarootdir/ {
6210 /@datadir@/p
6211 /@docdir@/p
6212 /@infodir@/p
6213 /@localedir@/p
6214 /@mandir@/p'
6215 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6216 *datarootdir*) ac_datarootdir_seen=yes;;
6217 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6219 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6220 _ACEOF
6221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6222 ac_datarootdir_hack='
6223 s&@datadir@&$datadir&g
6224 s&@docdir@&$docdir&g
6225 s&@infodir@&$infodir&g
6226 s&@localedir@&$localedir&g
6227 s&@mandir@&$mandir&g
6228 s&\\\${datarootdir}&$datarootdir&g' ;;
6229 esac
6230 _ACEOF
6232 # Neutralize VPATH when `$srcdir' = `.'.
6233 # Shell code in configure.ac might set extrasub.
6234 # FIXME: do we really want to maintain this feature?
6235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6236 ac_sed_extra="$ac_vpsub
6237 $extrasub
6238 _ACEOF
6239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6242 s|@configure_input@|$ac_sed_conf_input|;t t
6243 s&@top_builddir@&$ac_top_builddir_sub&;t t
6244 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6245 s&@srcdir@&$ac_srcdir&;t t
6246 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6247 s&@top_srcdir@&$ac_top_srcdir&;t t
6248 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6249 s&@builddir@&$ac_builddir&;t t
6250 s&@abs_builddir@&$ac_abs_builddir&;t t
6251 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6252 s&@INSTALL@&$ac_INSTALL&;t t
6253 $ac_datarootdir_hack
6255 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6256 || as_fn_error "could not create $ac_file" "$LINENO" 5
6258 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6259 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6260 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6262 which seems to be undefined. Please make sure it is defined." >&5
6263 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6264 which seems to be undefined. Please make sure it is defined." >&2;}
6266 rm -f "$tmp/stdin"
6267 case $ac_file in
6268 -) cat "$tmp/out" && rm -f "$tmp/out";;
6269 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6270 esac \
6271 || as_fn_error "could not create $ac_file" "$LINENO" 5
6275 # CONFIG_HEADER
6277 if test x"$ac_file" != x-; then
6279 $as_echo "/* $configure_input */" \
6280 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6281 } >"$tmp/config.h" \
6282 || as_fn_error "could not create $ac_file" "$LINENO" 5
6283 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6285 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6286 else
6287 rm -f "$ac_file"
6288 mv "$tmp/config.h" "$ac_file" \
6289 || as_fn_error "could not create $ac_file" "$LINENO" 5
6291 else
6292 $as_echo "/* $configure_input */" \
6293 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6294 || as_fn_error "could not create -" "$LINENO" 5
6299 # CONFIG_LINK
6302 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
6304 else
6305 # Prefer the file from the source tree if names are identical.
6306 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
6307 ac_source=$srcdir/$ac_source
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
6311 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
6313 if test ! -r "$ac_source"; then
6314 as_fn_error "$ac_source: file not found" "$LINENO" 5
6316 rm -f "$ac_file"
6318 # Try a relative symlink, then a hard link, then a copy.
6319 case $srcdir in
6320 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
6321 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
6322 esac
6323 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
6324 ln "$ac_source" "$ac_file" 2>/dev/null ||
6325 cp -p "$ac_source" "$ac_file" ||
6326 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
6329 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6330 $as_echo "$as_me: executing $ac_file commands" >&6;}
6332 esac
6335 case $ac_file$ac_mode in
6336 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6337 if test -n "$CONFIG_FILES"; then
6338 # FIXME: We shouldn't need to set ac_file
6339 ac_file=Makefile
6340 . ${libgcc_topdir}/config-ml.in
6341 fi ;;
6343 esac
6344 done # for ac_tag
6347 as_fn_exit 0
6348 _ACEOF
6349 ac_clean_files=$ac_clean_files_save
6351 test $ac_write_fail = 0 ||
6352 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6355 # configure is writing to config.log, and then calls config.status.
6356 # config.status does its own redirection, appending to config.log.
6357 # Unfortunately, on DOS this fails, as config.log is still kept open
6358 # by configure, so config.status won't be able to write to it; its
6359 # output is simply discarded. So we exec the FD to /dev/null,
6360 # effectively closing config.log, so it can be properly (re)opened and
6361 # appended to by config.status. When coming back to configure, we
6362 # need to make the FD available again.
6363 if test "$no_create" != yes; then
6364 ac_cs_success=:
6365 ac_config_status_args=
6366 test "$silent" = yes &&
6367 ac_config_status_args="$ac_config_status_args --quiet"
6368 exec 5>/dev/null
6369 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6370 exec 5>>config.log
6371 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6372 # would make configure fail if this is the last instruction.
6373 $ac_cs_success || as_fn_exit $?
6375 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6377 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}