Implement LWG 2686, std::hash<error_condition>, for C++17
[official-gcc.git] / libgcc / configure
blob45c459788c3da5bc077883e7b38243e54420ef8d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU C Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME='GNU C Runtime Library'
548 PACKAGE_TARNAME='libgcc'
549 PACKAGE_VERSION='1.0'
550 PACKAGE_STRING='GNU C Runtime Library 1.0'
551 PACKAGE_BUGREPORT=''
552 PACKAGE_URL='http://www.gnu.org/software/libgcc/'
554 ac_unique_file="static-object.mk"
555 ac_includes_default='/* none */'
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 md_unwind_header
559 unwind_header
560 enable_execute_stack
561 asm_hidden_op
562 extra_parts
563 cpu_type
564 get_gcc_base_ver
565 thread_header
566 tm_defines
567 tm_file
568 tmake_file
569 sfp_machine_header
570 set_use_emutls
571 set_have_cc_tls
572 vis_hide
573 real_host_noncanonical
574 accel_dir_suffix
575 force_explicit_eh_registry
576 fixed_point
577 enable_decimal_float
578 decimal_float
579 EGREP
580 GREP
581 long_double_type_size
582 double_type_size
584 OBJEXT
585 EXEEXT
586 ac_ct_CC
587 CPPFLAGS
588 LDFLAGS
589 CFLAGS
591 LN_S
592 STRIP
593 RANLIB
595 LIPO
597 toolexeclibdir
598 toolexecdir
599 target_subdir
600 host_subdir
601 build_subdir
602 build_libsubdir
603 target_noncanonical
604 host_noncanonical
606 INSTALL_DATA
607 INSTALL_SCRIPT
608 INSTALL_PROGRAM
609 MAINT
610 slibdir
611 PICFLAG
612 host_os
613 host_vendor
614 host_cpu
615 host
616 build_os
617 build_vendor
618 build_cpu
619 build
620 with_aix_soname
621 enable_vtable_verify
622 enable_shared
623 libgcc_topdir
624 target_alias
625 host_alias
626 build_alias
627 LIBS
628 ECHO_T
629 ECHO_N
630 ECHO_C
631 DEFS
632 mandir
633 localedir
634 libdir
635 psdir
636 pdfdir
637 dvidir
638 htmldir
639 infodir
640 docdir
641 oldincludedir
642 includedir
643 localstatedir
644 sharedstatedir
645 sysconfdir
646 datadir
647 datarootdir
648 libexecdir
649 sbindir
650 bindir
651 program_transform_name
652 prefix
653 exec_prefix
654 PACKAGE_URL
655 PACKAGE_BUGREPORT
656 PACKAGE_STRING
657 PACKAGE_VERSION
658 PACKAGE_TARNAME
659 PACKAGE_NAME
660 PATH_SEPARATOR
661 SHELL'
662 ac_subst_files=''
663 ac_user_opts='
664 enable_option_checking
665 with_target_subdir
666 with_cross_host
667 with_ld
668 enable_shared
669 enable_vtable_verify
670 with_aix_soname
671 enable_version_specific_runtime_libs
672 with_slibdir
673 enable_maintainer_mode
674 with_build_libsubdir
675 enable_decimal_float
676 with_system_libunwind
677 enable_explicit_exception_frame_registration
678 with_glibc_version
679 enable_tls
680 with_gcc_major_version_only
682 ac_precious_vars='build_alias
683 host_alias
684 target_alias
686 CFLAGS
687 LDFLAGS
688 LIBS
689 CPPFLAGS
690 CPP'
693 # Initialize some variables set by options.
694 ac_init_help=
695 ac_init_version=false
696 ac_unrecognized_opts=
697 ac_unrecognized_sep=
698 # The variables have the same names as the options, with
699 # dashes changed to underlines.
700 cache_file=/dev/null
701 exec_prefix=NONE
702 no_create=
703 no_recursion=
704 prefix=NONE
705 program_prefix=NONE
706 program_suffix=NONE
707 program_transform_name=s,x,x,
708 silent=
709 site=
710 srcdir=
711 verbose=
712 x_includes=NONE
713 x_libraries=NONE
715 # Installation directory options.
716 # These are left unexpanded so users can "make install exec_prefix=/foo"
717 # and all the variables that are supposed to be based on exec_prefix
718 # by default will actually change.
719 # Use braces instead of parens because sh, perl, etc. also accept them.
720 # (The list follows the same order as the GNU Coding Standards.)
721 bindir='${exec_prefix}/bin'
722 sbindir='${exec_prefix}/sbin'
723 libexecdir='${exec_prefix}/libexec'
724 datarootdir='${prefix}/share'
725 datadir='${datarootdir}'
726 sysconfdir='${prefix}/etc'
727 sharedstatedir='${prefix}/com'
728 localstatedir='${prefix}/var'
729 includedir='${prefix}/include'
730 oldincludedir='/usr/include'
731 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
732 infodir='${datarootdir}/info'
733 htmldir='${docdir}'
734 dvidir='${docdir}'
735 pdfdir='${docdir}'
736 psdir='${docdir}'
737 libdir='${exec_prefix}/lib'
738 localedir='${datarootdir}/locale'
739 mandir='${datarootdir}/man'
741 ac_prev=
742 ac_dashdash=
743 for ac_option
745 # If the previous option needs an argument, assign it.
746 if test -n "$ac_prev"; then
747 eval $ac_prev=\$ac_option
748 ac_prev=
749 continue
752 case $ac_option in
753 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
754 *) ac_optarg=yes ;;
755 esac
757 # Accept the important Cygnus configure options, so we can diagnose typos.
759 case $ac_dashdash$ac_option in
761 ac_dashdash=yes ;;
763 -bindir | --bindir | --bindi | --bind | --bin | --bi)
764 ac_prev=bindir ;;
765 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
766 bindir=$ac_optarg ;;
768 -build | --build | --buil | --bui | --bu)
769 ac_prev=build_alias ;;
770 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
771 build_alias=$ac_optarg ;;
773 -cache-file | --cache-file | --cache-fil | --cache-fi \
774 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
775 ac_prev=cache_file ;;
776 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
777 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
778 cache_file=$ac_optarg ;;
780 --config-cache | -C)
781 cache_file=config.cache ;;
783 -datadir | --datadir | --datadi | --datad)
784 ac_prev=datadir ;;
785 -datadir=* | --datadir=* | --datadi=* | --datad=*)
786 datadir=$ac_optarg ;;
788 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
789 | --dataroo | --dataro | --datar)
790 ac_prev=datarootdir ;;
791 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
792 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
793 datarootdir=$ac_optarg ;;
795 -disable-* | --disable-*)
796 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
799 as_fn_error "invalid feature name: $ac_useropt"
800 ac_useropt_orig=$ac_useropt
801 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
802 case $ac_user_opts in
804 "enable_$ac_useropt"
805 "*) ;;
806 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
807 ac_unrecognized_sep=', ';;
808 esac
809 eval enable_$ac_useropt=no ;;
811 -docdir | --docdir | --docdi | --doc | --do)
812 ac_prev=docdir ;;
813 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
814 docdir=$ac_optarg ;;
816 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
817 ac_prev=dvidir ;;
818 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
819 dvidir=$ac_optarg ;;
821 -enable-* | --enable-*)
822 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error "invalid feature name: $ac_useropt"
826 ac_useropt_orig=$ac_useropt
827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828 case $ac_user_opts in
830 "enable_$ac_useropt"
831 "*) ;;
832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
833 ac_unrecognized_sep=', ';;
834 esac
835 eval enable_$ac_useropt=\$ac_optarg ;;
837 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
838 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
839 | --exec | --exe | --ex)
840 ac_prev=exec_prefix ;;
841 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
842 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
843 | --exec=* | --exe=* | --ex=*)
844 exec_prefix=$ac_optarg ;;
846 -gas | --gas | --ga | --g)
847 # Obsolete; use --with-gas.
848 with_gas=yes ;;
850 -help | --help | --hel | --he | -h)
851 ac_init_help=long ;;
852 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
853 ac_init_help=recursive ;;
854 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
855 ac_init_help=short ;;
857 -host | --host | --hos | --ho)
858 ac_prev=host_alias ;;
859 -host=* | --host=* | --hos=* | --ho=*)
860 host_alias=$ac_optarg ;;
862 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
863 ac_prev=htmldir ;;
864 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
865 | --ht=*)
866 htmldir=$ac_optarg ;;
868 -includedir | --includedir | --includedi | --included | --include \
869 | --includ | --inclu | --incl | --inc)
870 ac_prev=includedir ;;
871 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
872 | --includ=* | --inclu=* | --incl=* | --inc=*)
873 includedir=$ac_optarg ;;
875 -infodir | --infodir | --infodi | --infod | --info | --inf)
876 ac_prev=infodir ;;
877 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
878 infodir=$ac_optarg ;;
880 -libdir | --libdir | --libdi | --libd)
881 ac_prev=libdir ;;
882 -libdir=* | --libdir=* | --libdi=* | --libd=*)
883 libdir=$ac_optarg ;;
885 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
886 | --libexe | --libex | --libe)
887 ac_prev=libexecdir ;;
888 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
889 | --libexe=* | --libex=* | --libe=*)
890 libexecdir=$ac_optarg ;;
892 -localedir | --localedir | --localedi | --localed | --locale)
893 ac_prev=localedir ;;
894 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
895 localedir=$ac_optarg ;;
897 -localstatedir | --localstatedir | --localstatedi | --localstated \
898 | --localstate | --localstat | --localsta | --localst | --locals)
899 ac_prev=localstatedir ;;
900 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
901 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
902 localstatedir=$ac_optarg ;;
904 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
905 ac_prev=mandir ;;
906 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
907 mandir=$ac_optarg ;;
909 -nfp | --nfp | --nf)
910 # Obsolete; use --without-fp.
911 with_fp=no ;;
913 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
914 | --no-cr | --no-c | -n)
915 no_create=yes ;;
917 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
918 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
919 no_recursion=yes ;;
921 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
922 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
923 | --oldin | --oldi | --old | --ol | --o)
924 ac_prev=oldincludedir ;;
925 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
926 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
927 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
928 oldincludedir=$ac_optarg ;;
930 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
931 ac_prev=prefix ;;
932 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
933 prefix=$ac_optarg ;;
935 -program-prefix | --program-prefix | --program-prefi | --program-pref \
936 | --program-pre | --program-pr | --program-p)
937 ac_prev=program_prefix ;;
938 -program-prefix=* | --program-prefix=* | --program-prefi=* \
939 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
940 program_prefix=$ac_optarg ;;
942 -program-suffix | --program-suffix | --program-suffi | --program-suff \
943 | --program-suf | --program-su | --program-s)
944 ac_prev=program_suffix ;;
945 -program-suffix=* | --program-suffix=* | --program-suffi=* \
946 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
947 program_suffix=$ac_optarg ;;
949 -program-transform-name | --program-transform-name \
950 | --program-transform-nam | --program-transform-na \
951 | --program-transform-n | --program-transform- \
952 | --program-transform | --program-transfor \
953 | --program-transfo | --program-transf \
954 | --program-trans | --program-tran \
955 | --progr-tra | --program-tr | --program-t)
956 ac_prev=program_transform_name ;;
957 -program-transform-name=* | --program-transform-name=* \
958 | --program-transform-nam=* | --program-transform-na=* \
959 | --program-transform-n=* | --program-transform-=* \
960 | --program-transform=* | --program-transfor=* \
961 | --program-transfo=* | --program-transf=* \
962 | --program-trans=* | --program-tran=* \
963 | --progr-tra=* | --program-tr=* | --program-t=*)
964 program_transform_name=$ac_optarg ;;
966 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
967 ac_prev=pdfdir ;;
968 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
969 pdfdir=$ac_optarg ;;
971 -psdir | --psdir | --psdi | --psd | --ps)
972 ac_prev=psdir ;;
973 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
974 psdir=$ac_optarg ;;
976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
977 | -silent | --silent | --silen | --sile | --sil)
978 silent=yes ;;
980 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
981 ac_prev=sbindir ;;
982 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
983 | --sbi=* | --sb=*)
984 sbindir=$ac_optarg ;;
986 -sharedstatedir | --sharedstatedir | --sharedstatedi \
987 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
988 | --sharedst | --shareds | --shared | --share | --shar \
989 | --sha | --sh)
990 ac_prev=sharedstatedir ;;
991 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
992 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
993 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
994 | --sha=* | --sh=*)
995 sharedstatedir=$ac_optarg ;;
997 -site | --site | --sit)
998 ac_prev=site ;;
999 -site=* | --site=* | --sit=*)
1000 site=$ac_optarg ;;
1002 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1003 ac_prev=srcdir ;;
1004 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1005 srcdir=$ac_optarg ;;
1007 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1008 | --syscon | --sysco | --sysc | --sys | --sy)
1009 ac_prev=sysconfdir ;;
1010 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1011 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1012 sysconfdir=$ac_optarg ;;
1014 -target | --target | --targe | --targ | --tar | --ta | --t)
1015 ac_prev=target_alias ;;
1016 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1017 target_alias=$ac_optarg ;;
1019 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1020 verbose=yes ;;
1022 -version | --version | --versio | --versi | --vers | -V)
1023 ac_init_version=: ;;
1025 -with-* | --with-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error "invalid package name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1034 "with_$ac_useropt"
1035 "*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval with_$ac_useropt=\$ac_optarg ;;
1041 -without-* | --without-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error "invalid package name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "with_$ac_useropt"
1051 "*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval with_$ac_useropt=no ;;
1057 --x)
1058 # Obsolete; use --with-x.
1059 with_x=yes ;;
1061 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1062 | --x-incl | --x-inc | --x-in | --x-i)
1063 ac_prev=x_includes ;;
1064 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1065 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1066 x_includes=$ac_optarg ;;
1068 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1069 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1070 ac_prev=x_libraries ;;
1071 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1072 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1073 x_libraries=$ac_optarg ;;
1075 -*) as_fn_error "unrecognized option: \`$ac_option'
1076 Try \`$0 --help' for more information."
1079 *=*)
1080 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1081 # Reject names that are not valid shell variable names.
1082 case $ac_envvar in #(
1083 '' | [0-9]* | *[!_$as_cr_alnum]* )
1084 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1085 esac
1086 eval $ac_envvar=\$ac_optarg
1087 export $ac_envvar ;;
1090 # FIXME: should be removed in autoconf 3.0.
1091 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1092 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1093 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1094 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1097 esac
1098 done
1100 if test -n "$ac_prev"; then
1101 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1102 as_fn_error "missing argument to $ac_option"
1105 if test -n "$ac_unrecognized_opts"; then
1106 case $enable_option_checking in
1107 no) ;;
1108 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1109 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1110 esac
1113 # Check all directory arguments for consistency.
1114 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1115 datadir sysconfdir sharedstatedir localstatedir includedir \
1116 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1117 libdir localedir mandir
1119 eval ac_val=\$$ac_var
1120 # Remove trailing slashes.
1121 case $ac_val in
1122 */ )
1123 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1124 eval $ac_var=\$ac_val;;
1125 esac
1126 # Be sure to have absolute directory names.
1127 case $ac_val in
1128 [\\/$]* | ?:[\\/]* ) continue;;
1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130 esac
1131 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1132 done
1134 # There might be people who depend on the old broken behavior: `$host'
1135 # used to hold the argument of --host etc.
1136 # FIXME: To remove some day.
1137 build=$build_alias
1138 host=$host_alias
1139 target=$target_alias
1141 # FIXME: To remove some day.
1142 if test "x$host_alias" != x; then
1143 if test "x$build_alias" = x; then
1144 cross_compiling=maybe
1145 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1146 If a cross compiler is detected then cross compile mode will be used." >&2
1147 elif test "x$build_alias" != "x$host_alias"; then
1148 cross_compiling=yes
1152 ac_tool_prefix=
1153 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155 test "$silent" = yes && exec 6>/dev/null
1158 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1159 ac_ls_di=`ls -di .` &&
1160 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1161 as_fn_error "working directory cannot be determined"
1162 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163 as_fn_error "pwd does not report name of working directory"
1166 # Find the source files, if location was not specified.
1167 if test -z "$srcdir"; then
1168 ac_srcdir_defaulted=yes
1169 # Try the directory containing this script, then the parent directory.
1170 ac_confdir=`$as_dirname -- "$as_myself" ||
1171 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1172 X"$as_myself" : 'X\(//\)[^/]' \| \
1173 X"$as_myself" : 'X\(//\)$' \| \
1174 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1175 $as_echo X"$as_myself" |
1176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1177 s//\1/
1180 /^X\(\/\/\)[^/].*/{
1181 s//\1/
1184 /^X\(\/\/\)$/{
1185 s//\1/
1188 /^X\(\/\).*/{
1189 s//\1/
1192 s/.*/./; q'`
1193 srcdir=$ac_confdir
1194 if test ! -r "$srcdir/$ac_unique_file"; then
1195 srcdir=..
1197 else
1198 ac_srcdir_defaulted=no
1200 if test ! -r "$srcdir/$ac_unique_file"; then
1201 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1202 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1204 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1205 ac_abs_confdir=`(
1206 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1207 pwd)`
1208 # When building in place, set srcdir=.
1209 if test "$ac_abs_confdir" = "$ac_pwd"; then
1210 srcdir=.
1212 # Remove unnecessary trailing slashes from srcdir.
1213 # Double slashes in file names in object file debugging info
1214 # mess up M-x gdb in Emacs.
1215 case $srcdir in
1216 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1217 esac
1218 for ac_var in $ac_precious_vars; do
1219 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1220 eval ac_env_${ac_var}_value=\$${ac_var}
1221 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1222 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1223 done
1226 # Report the --help message.
1228 if test "$ac_init_help" = "long"; then
1229 # Omit some internal or obsolete options to make the list less imposing.
1230 # This message is too long to be a string in the A/UX 3.1 sh.
1231 cat <<_ACEOF
1232 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1234 Usage: $0 [OPTION]... [VAR=VALUE]...
1236 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1237 VAR=VALUE. See below for descriptions of some of the useful variables.
1239 Defaults for the options are specified in brackets.
1241 Configuration:
1242 -h, --help display this help and exit
1243 --help=short display options specific to this package
1244 --help=recursive display the short help of all the included packages
1245 -V, --version display version information and exit
1246 -q, --quiet, --silent do not print \`checking...' messages
1247 --cache-file=FILE cache test results in FILE [disabled]
1248 -C, --config-cache alias for \`--cache-file=config.cache'
1249 -n, --no-create do not create output files
1250 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1252 Installation directories:
1253 --prefix=PREFIX install architecture-independent files in PREFIX
1254 [$ac_default_prefix]
1255 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1256 [PREFIX]
1258 By default, \`make install' will install all the files in
1259 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1260 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1261 for instance \`--prefix=\$HOME'.
1263 For better control, use the options below.
1265 Fine tuning of the installation directories:
1266 --bindir=DIR user executables [EPREFIX/bin]
1267 --sbindir=DIR system admin executables [EPREFIX/sbin]
1268 --libexecdir=DIR program executables [EPREFIX/libexec]
1269 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1270 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1271 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1272 --libdir=DIR object code libraries [EPREFIX/lib]
1273 --includedir=DIR C header files [PREFIX/include]
1274 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1275 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1276 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1277 --infodir=DIR info documentation [DATAROOTDIR/info]
1278 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1279 --mandir=DIR man documentation [DATAROOTDIR/man]
1280 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1281 --htmldir=DIR html documentation [DOCDIR]
1282 --dvidir=DIR dvi documentation [DOCDIR]
1283 --pdfdir=DIR pdf documentation [DOCDIR]
1284 --psdir=DIR ps documentation [DOCDIR]
1285 _ACEOF
1287 cat <<\_ACEOF
1289 System types:
1290 --build=BUILD configure for building on BUILD [guessed]
1291 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1292 _ACEOF
1295 if test -n "$ac_init_help"; then
1296 case $ac_init_help in
1297 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1298 esac
1299 cat <<\_ACEOF
1301 Optional Features:
1302 --disable-option-checking ignore unrecognized --enable/--with options
1303 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1304 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1305 --disable-shared don't provide a shared libgcc
1306 --enable-vtable-verify Enable vtable verification feature
1307 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1308 --enable-maintainer-mode
1309 enable make rules and dependencies not useful (and
1310 sometimes confusing) to the casual installer
1311 --enable-decimal-float={no,yes,bid,dpd}
1312 enable decimal float extension to C. Selecting 'bid'
1313 or 'dpd' choses which decimal floating point format
1314 to use
1315 --enable-explicit-exception-frame-registration
1316 register exception tables explicitly at module
1317 start, for use e.g. for compatibility with
1318 installations without PT_GNU_EH_FRAME support
1319 --enable-tls Use thread-local storage [default=yes]
1321 Optional Packages:
1322 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1323 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1324 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1325 --with-cross-host=HOST Configuring with a cross compiler
1326 --with-ld arrange to use the specified ld (full pathname)
1327 --with-aix-soname=aix|svr4|both
1328 shared library versioning (aka "SONAME") variant to
1329 provide on AIX
1330 --with-slibdir=DIR shared libraries in DIR LIBDIR
1331 --with-build-libsubdir=DIR Directory where to find libraries for build system
1332 --with-system-libunwind use installed libunwind
1333 --with-glibc-version=M.N
1334 assume GCC used with glibc version M.N or later
1335 --with-gcc-major-version-only
1336 use only GCC major number in filesystem paths
1338 Some influential environment variables:
1339 CC C compiler command
1340 CFLAGS C compiler flags
1341 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1342 nonstandard directory <lib dir>
1343 LIBS libraries to pass to the linker, e.g. -l<library>
1344 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1345 you have headers in a nonstandard directory <include dir>
1346 CPP C preprocessor
1348 Use these variables to override the choices made by `configure' or to help
1349 it to find libraries and programs with nonstandard names/locations.
1351 Report bugs to the package provider.
1352 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1353 General help using GNU software: <http://www.gnu.org/gethelp/>.
1354 _ACEOF
1355 ac_status=$?
1358 if test "$ac_init_help" = "recursive"; then
1359 # If there are subdirs, report their specific --help.
1360 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1361 test -d "$ac_dir" ||
1362 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1363 continue
1364 ac_builddir=.
1366 case "$ac_dir" in
1367 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1370 # A ".." for each directory in $ac_dir_suffix.
1371 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1372 case $ac_top_builddir_sub in
1373 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1375 esac ;;
1376 esac
1377 ac_abs_top_builddir=$ac_pwd
1378 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1379 # for backward compatibility:
1380 ac_top_builddir=$ac_top_build_prefix
1382 case $srcdir in
1383 .) # We are building in place.
1384 ac_srcdir=.
1385 ac_top_srcdir=$ac_top_builddir_sub
1386 ac_abs_top_srcdir=$ac_pwd ;;
1387 [\\/]* | ?:[\\/]* ) # Absolute name.
1388 ac_srcdir=$srcdir$ac_dir_suffix;
1389 ac_top_srcdir=$srcdir
1390 ac_abs_top_srcdir=$srcdir ;;
1391 *) # Relative name.
1392 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1393 ac_top_srcdir=$ac_top_build_prefix$srcdir
1394 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1395 esac
1396 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1398 cd "$ac_dir" || { ac_status=$?; continue; }
1399 # Check for guested configure.
1400 if test -f "$ac_srcdir/configure.gnu"; then
1401 echo &&
1402 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1403 elif test -f "$ac_srcdir/configure"; then
1404 echo &&
1405 $SHELL "$ac_srcdir/configure" --help=recursive
1406 else
1407 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1408 fi || ac_status=$?
1409 cd "$ac_pwd" || { ac_status=$?; break; }
1410 done
1413 test -n "$ac_init_help" && exit $ac_status
1414 if $ac_init_version; then
1415 cat <<\_ACEOF
1416 GNU C Runtime Library configure 1.0
1417 generated by GNU Autoconf 2.64
1419 Copyright (C) 2009 Free Software Foundation, Inc.
1420 This configure script is free software; the Free Software Foundation
1421 gives unlimited permission to copy, distribute and modify it.
1422 _ACEOF
1423 exit
1426 ## ------------------------ ##
1427 ## Autoconf initialization. ##
1428 ## ------------------------ ##
1430 # ac_fn_c_try_compile LINENO
1431 # --------------------------
1432 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1433 ac_fn_c_try_compile ()
1435 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1436 rm -f conftest.$ac_objext
1437 if { { ac_try="$ac_compile"
1438 case "(($ac_try" in
1439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1440 *) ac_try_echo=$ac_try;;
1441 esac
1442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1443 $as_echo "$ac_try_echo"; } >&5
1444 (eval "$ac_compile") 2>conftest.err
1445 ac_status=$?
1446 if test -s conftest.err; then
1447 grep -v '^ *+' conftest.err >conftest.er1
1448 cat conftest.er1 >&5
1449 mv -f conftest.er1 conftest.err
1451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1452 test $ac_status = 0; } && {
1453 test -z "$ac_c_werror_flag" ||
1454 test ! -s conftest.err
1455 } && test -s conftest.$ac_objext; then :
1456 ac_retval=0
1457 else
1458 $as_echo "$as_me: failed program was:" >&5
1459 sed 's/^/| /' conftest.$ac_ext >&5
1461 ac_retval=1
1463 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1464 return $ac_retval
1466 } # ac_fn_c_try_compile
1468 # ac_fn_c_try_cpp LINENO
1469 # ----------------------
1470 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1471 ac_fn_c_try_cpp ()
1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474 if { { ac_try="$ac_cpp conftest.$ac_ext"
1475 case "(($ac_try" in
1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477 *) ac_try_echo=$ac_try;;
1478 esac
1479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480 $as_echo "$ac_try_echo"; } >&5
1481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1482 ac_status=$?
1483 if test -s conftest.err; then
1484 grep -v '^ *+' conftest.err >conftest.er1
1485 cat conftest.er1 >&5
1486 mv -f conftest.er1 conftest.err
1488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1489 test $ac_status = 0; } >/dev/null && {
1490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1491 test ! -s conftest.err
1492 }; then :
1493 ac_retval=0
1494 else
1495 $as_echo "$as_me: failed program was:" >&5
1496 sed 's/^/| /' conftest.$ac_ext >&5
1498 ac_retval=1
1500 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1501 return $ac_retval
1503 } # ac_fn_c_try_cpp
1505 # ac_fn_c_try_run LINENO
1506 # ----------------------
1507 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1508 # that executables *can* be run.
1509 ac_fn_c_try_run ()
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 if { { ac_try="$ac_link"
1513 case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_link") 2>&5
1520 ac_status=$?
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1523 { { case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_try") 2>&5
1530 ac_status=$?
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; }; }; then :
1533 ac_retval=0
1534 else
1535 $as_echo "$as_me: program exited with status $ac_status" >&5
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1539 ac_retval=$ac_status
1541 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1542 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1543 return $ac_retval
1545 } # ac_fn_c_try_run
1547 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1548 # --------------------------------------------
1549 # Tries to find the compile-time value of EXPR in a program that includes
1550 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1551 # computed
1552 ac_fn_c_compute_int ()
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 if test "$cross_compiling" = yes; then
1556 # Depending upon the size, compute the lo and hi bounds.
1557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1558 /* end confdefs.h. */
1561 main ()
1563 static int test_array [1 - 2 * !(($2) >= 0)];
1564 test_array [0] = 0
1567 return 0;
1569 _ACEOF
1570 if ac_fn_c_try_compile "$LINENO"; then :
1571 ac_lo=0 ac_mid=0
1572 while :; do
1573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h. */
1577 main ()
1579 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1580 test_array [0] = 0
1583 return 0;
1585 _ACEOF
1586 if ac_fn_c_try_compile "$LINENO"; then :
1587 ac_hi=$ac_mid; break
1588 else
1589 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1590 if test $ac_lo -le $ac_mid; then
1591 ac_lo= ac_hi=
1592 break
1594 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1597 done
1598 else
1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600 /* end confdefs.h. */
1603 main ()
1605 static int test_array [1 - 2 * !(($2) < 0)];
1606 test_array [0] = 0
1609 return 0;
1611 _ACEOF
1612 if ac_fn_c_try_compile "$LINENO"; then :
1613 ac_hi=-1 ac_mid=-1
1614 while :; do
1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616 /* end confdefs.h. */
1619 main ()
1621 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1622 test_array [0] = 0
1625 return 0;
1627 _ACEOF
1628 if ac_fn_c_try_compile "$LINENO"; then :
1629 ac_lo=$ac_mid; break
1630 else
1631 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1632 if test $ac_mid -le $ac_hi; then
1633 ac_lo= ac_hi=
1634 break
1636 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639 done
1640 else
1641 ac_lo= ac_hi=
1643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 # Binary search between lo and hi bounds.
1647 while test "x$ac_lo" != "x$ac_hi"; do
1648 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1653 main ()
1655 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1656 test_array [0] = 0
1659 return 0;
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663 ac_hi=$ac_mid
1664 else
1665 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 done
1669 case $ac_lo in #((
1670 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1671 '') ac_retval=1 ;;
1672 esac
1673 else
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1677 static long int longval () { return $2; }
1678 static unsigned long int ulongval () { return $2; }
1679 #include <stdio.h>
1680 #include <stdlib.h>
1682 main ()
1685 FILE *f = fopen ("conftest.val", "w");
1686 if (! f)
1687 return 1;
1688 if (($2) < 0)
1690 long int i = longval ();
1691 if (i != ($2))
1692 return 1;
1693 fprintf (f, "%ld", i);
1695 else
1697 unsigned long int i = ulongval ();
1698 if (i != ($2))
1699 return 1;
1700 fprintf (f, "%lu", i);
1702 /* Do not output a trailing newline, as this causes \r\n confusion
1703 on some platforms. */
1704 return ferror (f) || fclose (f) != 0;
1707 return 0;
1709 _ACEOF
1710 if ac_fn_c_try_run "$LINENO"; then :
1711 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1712 else
1713 ac_retval=1
1715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1716 conftest.$ac_objext conftest.beam conftest.$ac_ext
1717 rm -f conftest.val
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1723 } # ac_fn_c_compute_int
1725 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1726 # ----------------------------------------------
1727 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1728 ac_fn_c_check_header_preproc ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1735 else
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 #include <$2>
1739 _ACEOF
1740 if ac_fn_c_try_cpp "$LINENO"; then :
1741 eval "$3=yes"
1742 else
1743 eval "$3=no"
1745 rm -f conftest.err conftest.$ac_ext
1747 eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 } # ac_fn_c_check_header_preproc
1753 cat >config.log <<_ACEOF
1754 This file contains any messages produced by compilers while
1755 running configure, to aid debugging if configure makes a mistake.
1757 It was created by GNU C Runtime Library $as_me 1.0, which was
1758 generated by GNU Autoconf 2.64. Invocation command line was
1760 $ $0 $@
1762 _ACEOF
1763 exec 5>>config.log
1765 cat <<_ASUNAME
1766 ## --------- ##
1767 ## Platform. ##
1768 ## --------- ##
1770 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1771 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1772 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1773 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1774 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1776 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1777 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1779 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1780 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1781 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1782 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1783 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1784 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1785 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1787 _ASUNAME
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1792 IFS=$as_save_IFS
1793 test -z "$as_dir" && as_dir=.
1794 $as_echo "PATH: $as_dir"
1795 done
1796 IFS=$as_save_IFS
1798 } >&5
1800 cat >&5 <<_ACEOF
1803 ## ----------- ##
1804 ## Core tests. ##
1805 ## ----------- ##
1807 _ACEOF
1810 # Keep a trace of the command line.
1811 # Strip out --no-create and --no-recursion so they do not pile up.
1812 # Strip out --silent because we don't want to record it for future runs.
1813 # Also quote any args containing shell meta-characters.
1814 # Make two passes to allow for proper duplicate-argument suppression.
1815 ac_configure_args=
1816 ac_configure_args0=
1817 ac_configure_args1=
1818 ac_must_keep_next=false
1819 for ac_pass in 1 2
1821 for ac_arg
1823 case $ac_arg in
1824 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1826 | -silent | --silent | --silen | --sile | --sil)
1827 continue ;;
1828 *\'*)
1829 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1830 esac
1831 case $ac_pass in
1832 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1834 as_fn_append ac_configure_args1 " '$ac_arg'"
1835 if test $ac_must_keep_next = true; then
1836 ac_must_keep_next=false # Got value, back to normal.
1837 else
1838 case $ac_arg in
1839 *=* | --config-cache | -C | -disable-* | --disable-* \
1840 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1841 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1842 | -with-* | --with-* | -without-* | --without-* | --x)
1843 case "$ac_configure_args0 " in
1844 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1845 esac
1847 -* ) ac_must_keep_next=true ;;
1848 esac
1850 as_fn_append ac_configure_args " '$ac_arg'"
1852 esac
1853 done
1854 done
1855 { ac_configure_args0=; unset ac_configure_args0;}
1856 { ac_configure_args1=; unset ac_configure_args1;}
1858 # When interrupted or exit'd, cleanup temporary files, and complete
1859 # config.log. We remove comments because anyway the quotes in there
1860 # would cause problems or look ugly.
1861 # WARNING: Use '\'' to represent an apostrophe within the trap.
1862 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1863 trap 'exit_status=$?
1864 # Save into config.log some information that might help in debugging.
1866 echo
1868 cat <<\_ASBOX
1869 ## ---------------- ##
1870 ## Cache variables. ##
1871 ## ---------------- ##
1872 _ASBOX
1873 echo
1874 # The following way of writing the cache mishandles newlines in values,
1876 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1877 eval ac_val=\$$ac_var
1878 case $ac_val in #(
1879 *${as_nl}*)
1880 case $ac_var in #(
1881 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1882 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1883 esac
1884 case $ac_var in #(
1885 _ | IFS | as_nl) ;; #(
1886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1887 *) { eval $ac_var=; unset $ac_var;} ;;
1888 esac ;;
1889 esac
1890 done
1891 (set) 2>&1 |
1892 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1893 *${as_nl}ac_space=\ *)
1894 sed -n \
1895 "s/'\''/'\''\\\\'\'''\''/g;
1896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1897 ;; #(
1899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1901 esac |
1902 sort
1904 echo
1906 cat <<\_ASBOX
1907 ## ----------------- ##
1908 ## Output variables. ##
1909 ## ----------------- ##
1910 _ASBOX
1911 echo
1912 for ac_var in $ac_subst_vars
1914 eval ac_val=\$$ac_var
1915 case $ac_val in
1916 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1917 esac
1918 $as_echo "$ac_var='\''$ac_val'\''"
1919 done | sort
1920 echo
1922 if test -n "$ac_subst_files"; then
1923 cat <<\_ASBOX
1924 ## ------------------- ##
1925 ## File substitutions. ##
1926 ## ------------------- ##
1927 _ASBOX
1928 echo
1929 for ac_var in $ac_subst_files
1931 eval ac_val=\$$ac_var
1932 case $ac_val in
1933 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1934 esac
1935 $as_echo "$ac_var='\''$ac_val'\''"
1936 done | sort
1937 echo
1940 if test -s confdefs.h; then
1941 cat <<\_ASBOX
1942 ## ----------- ##
1943 ## confdefs.h. ##
1944 ## ----------- ##
1945 _ASBOX
1946 echo
1947 cat confdefs.h
1948 echo
1950 test "$ac_signal" != 0 &&
1951 $as_echo "$as_me: caught signal $ac_signal"
1952 $as_echo "$as_me: exit $exit_status"
1953 } >&5
1954 rm -f core *.core core.conftest.* &&
1955 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1956 exit $exit_status
1958 for ac_signal in 1 2 13 15; do
1959 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1960 done
1961 ac_signal=0
1963 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1964 rm -f -r conftest* confdefs.h
1966 $as_echo "/* confdefs.h */" > confdefs.h
1968 # Predefined preprocessor variables.
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_NAME "$PACKAGE_NAME"
1972 _ACEOF
1974 cat >>confdefs.h <<_ACEOF
1975 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1976 _ACEOF
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1980 _ACEOF
1982 cat >>confdefs.h <<_ACEOF
1983 #define PACKAGE_STRING "$PACKAGE_STRING"
1984 _ACEOF
1986 cat >>confdefs.h <<_ACEOF
1987 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1988 _ACEOF
1990 cat >>confdefs.h <<_ACEOF
1991 #define PACKAGE_URL "$PACKAGE_URL"
1992 _ACEOF
1995 # Let the site file select an alternate cache file if it wants to.
1996 # Prefer an explicitly selected file to automatically selected ones.
1997 ac_site_file1=NONE
1998 ac_site_file2=NONE
1999 if test -n "$CONFIG_SITE"; then
2000 ac_site_file1=$CONFIG_SITE
2001 elif test "x$prefix" != xNONE; then
2002 ac_site_file1=$prefix/share/config.site
2003 ac_site_file2=$prefix/etc/config.site
2004 else
2005 ac_site_file1=$ac_default_prefix/share/config.site
2006 ac_site_file2=$ac_default_prefix/etc/config.site
2008 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2010 test "x$ac_site_file" = xNONE && continue
2011 if test -r "$ac_site_file"; then
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2013 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2014 sed 's/^/| /' "$ac_site_file" >&5
2015 . "$ac_site_file"
2017 done
2019 if test -r "$cache_file"; then
2020 # Some versions of bash will fail to source /dev/null (special
2021 # files actually), so we avoid doing that.
2022 if test -f "$cache_file"; then
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2024 $as_echo "$as_me: loading cache $cache_file" >&6;}
2025 case $cache_file in
2026 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2027 *) . "./$cache_file";;
2028 esac
2030 else
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2032 $as_echo "$as_me: creating cache $cache_file" >&6;}
2033 >$cache_file
2036 # Check that the precious variables saved in the cache have kept the same
2037 # value.
2038 ac_cache_corrupted=false
2039 for ac_var in $ac_precious_vars; do
2040 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2041 eval ac_new_set=\$ac_env_${ac_var}_set
2042 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2043 eval ac_new_val=\$ac_env_${ac_var}_value
2044 case $ac_old_set,$ac_new_set in
2045 set,)
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2047 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2048 ac_cache_corrupted=: ;;
2049 ,set)
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2051 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2052 ac_cache_corrupted=: ;;
2053 ,);;
2055 if test "x$ac_old_val" != "x$ac_new_val"; then
2056 # differences in whitespace do not lead to failure.
2057 ac_old_val_w=`echo x $ac_old_val`
2058 ac_new_val_w=`echo x $ac_new_val`
2059 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2061 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2062 ac_cache_corrupted=:
2063 else
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2065 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2066 eval $ac_var=\$ac_old_val
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2069 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2071 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2072 fi;;
2073 esac
2074 # Pass precious variables to config.status.
2075 if test "$ac_new_set" = set; then
2076 case $ac_new_val in
2077 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2078 *) ac_arg=$ac_var=$ac_new_val ;;
2079 esac
2080 case " $ac_configure_args " in
2081 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2082 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2083 esac
2085 done
2086 if $ac_cache_corrupted; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2090 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2091 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2093 ## -------------------- ##
2094 ## Main body of script. ##
2095 ## -------------------- ##
2097 ac_ext=c
2098 ac_cpp='$CPP $CPPFLAGS'
2099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2109 # The libgcc should not depend on any header files
2113 # Check whether --with-target-subdir was given.
2114 if test "${with_target_subdir+set}" = set; then :
2115 withval=$with_target_subdir;
2119 # Check whether --with-cross-host was given.
2120 if test "${with_cross_host+set}" = set; then :
2121 withval=$with_cross_host;
2125 # Check whether --with-ld was given.
2126 if test "${with_ld+set}" = set; then :
2127 withval=$with_ld;
2131 if test "${srcdir}" = "."; then
2132 if test -n "${with_build_subdir}"; then
2133 libgcc_topdir="${srcdir}/../.."
2134 with_target_subdir=
2135 elif test -z "${with_target_subdir}"; then
2136 libgcc_topdir="${srcdir}/.."
2137 else
2138 if test "${with_target_subdir}" != "."; then
2139 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2140 else
2141 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2144 else
2145 libgcc_topdir="${srcdir}/.."
2148 ac_aux_dir=
2149 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2150 for ac_t in install-sh install.sh shtool; do
2151 if test -f "$ac_dir/$ac_t"; then
2152 ac_aux_dir=$ac_dir
2153 ac_install_sh="$ac_aux_dir/$ac_t -c"
2154 break 2
2156 done
2157 done
2158 if test -z "$ac_aux_dir"; then
2159 as_fn_error "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2162 # These three variables are undocumented and unsupported,
2163 # and are intended to be withdrawn in a future Autoconf release.
2164 # They can cause serious problems if a builder's source tree is in a directory
2165 # whose full name contains unusual characters.
2166 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2167 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2168 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2171 ac_config_headers="$ac_config_headers auto-target.h:config.in"
2174 # Check whether --enable-shared was given.
2175 if test "${enable_shared+set}" = set; then :
2176 enableval=$enable_shared;
2177 case $enable_shared in
2178 yes | no) ;;
2180 enable_shared=no
2181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2182 for pkg in $enableval; do
2183 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2184 enable_shared=yes
2186 done
2187 IFS="$ac_save_ifs"
2189 esac
2191 else
2192 enable_shared=yes
2197 # Check whether --enable-vtable-verify was given.
2198 if test "${enable_vtable_verify+set}" = set; then :
2199 enableval=$enable_vtable_verify; case "$enableval" in
2200 yes) enable_vtable_verify=yes ;;
2201 no) enable_vtable_verify=no ;;
2202 *) enable_vtable_verify=no;;
2203 esac
2204 else
2205 enable_vtable_verify=no
2211 # Check whether --with-aix-soname was given.
2212 if test "${with_aix_soname+set}" = set; then :
2213 withval=$with_aix_soname; case "${host}:${enable_shared}" in
2214 power*-*-aix[5-9]*:yes)
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5
2216 $as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; }
2217 case ${withval} in
2218 aix|svr4|both) ;;
2219 *) as_fn_error "Unknown argument to --with-aix-soname" "$LINENO" 5;;
2220 esac
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2222 $as_echo "$withval" >&6; }
2224 *) with_aix_soname=aix ;;
2225 esac
2227 else
2228 with_aix_soname=aix
2233 # Make sure we can run config.sub.
2234 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2235 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2238 $as_echo_n "checking build system type... " >&6; }
2239 if test "${ac_cv_build+set}" = set; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 ac_build_alias=$build_alias
2243 test "x$ac_build_alias" = x &&
2244 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2245 test "x$ac_build_alias" = x &&
2246 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2247 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2248 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2252 $as_echo "$ac_cv_build" >&6; }
2253 case $ac_cv_build in
2254 *-*-*) ;;
2255 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2256 esac
2257 build=$ac_cv_build
2258 ac_save_IFS=$IFS; IFS='-'
2259 set x $ac_cv_build
2260 shift
2261 build_cpu=$1
2262 build_vendor=$2
2263 shift; shift
2264 # Remember, the first character of IFS is used to create $*,
2265 # except with old shells:
2266 build_os=$*
2267 IFS=$ac_save_IFS
2268 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2272 $as_echo_n "checking host system type... " >&6; }
2273 if test "${ac_cv_host+set}" = set; then :
2274 $as_echo_n "(cached) " >&6
2275 else
2276 if test "x$host_alias" = x; then
2277 ac_cv_host=$ac_cv_build
2278 else
2279 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2280 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2285 $as_echo "$ac_cv_host" >&6; }
2286 case $ac_cv_host in
2287 *-*-*) ;;
2288 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2289 esac
2290 host=$ac_cv_host
2291 ac_save_IFS=$IFS; IFS='-'
2292 set x $ac_cv_host
2293 shift
2294 host_cpu=$1
2295 host_vendor=$2
2296 shift; shift
2297 # Remember, the first character of IFS is used to create $*,
2298 # except with old shells:
2299 host_os=$*
2300 IFS=$ac_save_IFS
2301 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2308 case "${host}" in
2309 # PIC is the default on some targets or must not be used.
2310 *-*-darwin*)
2311 # For darwin, common symbols are not allowed in MH_DYLIB files
2312 case "${CFLAGS}" in
2313 # If we are using a compiler supporting mdynamic-no-pic
2314 # and the option has been tested as safe to add, then cancel
2315 # it here, since the code generated is incompatible with shared
2316 # libs.
2317 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
2318 *) PICFLAG=-fno-common ;;
2319 esac
2321 alpha*-dec-osf5*)
2322 # PIC is the default.
2324 hppa*64*-*-hpux*)
2325 # PIC is the default for 64-bit PA HP-UX.
2327 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2329 i[34567]86-*-mingw* | x86_64-*-mingw*)
2331 i[34567]86-*-interix[3-9]*)
2332 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2333 # Instead, we relocate shared libraries at runtime.
2335 i[34567]86-*-nto-qnx*)
2336 # QNX uses GNU C++, but need to define -shared option too, otherwise
2337 # it will coredump.
2338 PICFLAG='-fPIC -shared'
2340 i[34567]86-pc-msdosdjgpp*)
2341 # DJGPP does not support shared libraries at all.
2343 ia64*-*-hpux*)
2344 # On IA64 HP-UX, PIC is the default but the pic flag
2345 # sets the default TLS model and affects inlining.
2346 PICFLAG=-fPIC
2348 mips-sgi-irix6*)
2349 # PIC is the default.
2351 rs6000-ibm-aix* | powerpc-ibm-aix*)
2352 # All AIX code is PIC.
2355 # Some targets support both -fPIC and -fpic, but prefer the latter.
2356 # FIXME: Why?
2357 i[34567]86-*-* | x86_64-*-*)
2358 PICFLAG=-fpic
2360 # FIXME: Override -fPIC default in libgcc only?
2361 sh-*-linux* | sh[2346lbe]*-*-linux*)
2362 PICFLAG=-fpic
2364 # FIXME: Simplify to sh*-*-netbsd*?
2365 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2366 sh64-*-netbsd* | sh64l*-*-netbsd*)
2367 PICFLAG=-fpic
2369 # Default to -fPIC unless specified otherwise.
2371 PICFLAG=-fPIC
2373 esac
2375 # If the user explicitly uses -fpic/-fPIC, keep that.
2376 case "${CFLAGS}" in
2377 *-fpic*)
2378 PICFLAG=-fpic
2380 *-fPIC*)
2381 PICFLAG=-fPIC
2383 esac
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2388 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2389 # Check whether --enable-version-specific-runtime-libs was given.
2390 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2391 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2392 yes) version_specific_libs=yes ;;
2393 no) version_specific_libs=no ;;
2394 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2395 esac
2396 else
2397 version_specific_libs=no
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2401 $as_echo "$version_specific_libs" >&6; }
2404 # Check whether --with-slibdir was given.
2405 if test "${with_slibdir+set}" = set; then :
2406 withval=$with_slibdir; slibdir="$with_slibdir"
2407 else
2408 if test "${version_specific_libs}" = yes; then
2409 slibdir='$(libsubdir)'
2410 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2411 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2412 else
2413 slibdir='$(libdir)'
2419 # Command-line options.
2420 # Very limited version of AC_MAINTAINER_MODE.
2421 # Check whether --enable-maintainer-mode was given.
2422 if test "${enable_maintainer_mode+set}" = set; then :
2423 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2424 yes) MAINT='' ;;
2425 no) MAINT='#' ;;
2426 *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2427 esac
2428 maintainer_mode=${enableval}
2429 else
2430 MAINT='#'
2434 # Find a good install program. We prefer a C program (faster),
2435 # so one script is as good as another. But avoid the broken or
2436 # incompatible versions:
2437 # SysV /etc/install, /usr/sbin/install
2438 # SunOS /usr/etc/install
2439 # IRIX /sbin/install
2440 # AIX /bin/install
2441 # AmigaOS /C/install, which installs bootblocks on floppy discs
2442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2445 # OS/2's system install, which has a completely different semantic
2446 # ./install, which can be erroneously created by make from ./install.sh.
2447 # Reject install programs that cannot install multiple files.
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2449 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2450 if test -z "$INSTALL"; then
2451 if test "${ac_cv_path_install+set}" = set; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 # Account for people who put trailing slashes in PATH elements.
2460 case $as_dir/ in #((
2461 ./ | .// | /[cC]/* | \
2462 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2463 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2464 /usr/ucb/* ) ;;
2466 # OSF1 and SCO ODT 3.0 have their own names for install.
2467 # Don't use installbsd from OSF since it installs stuff as root
2468 # by default.
2469 for ac_prog in ginstall scoinst install; do
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2472 if test $ac_prog = install &&
2473 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2474 # AIX install. It has an incompatible calling convention.
2476 elif test $ac_prog = install &&
2477 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2478 # program-specific install script used by HP pwplus--don't use.
2480 else
2481 rm -rf conftest.one conftest.two conftest.dir
2482 echo one > conftest.one
2483 echo two > conftest.two
2484 mkdir conftest.dir
2485 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2486 test -s conftest.one && test -s conftest.two &&
2487 test -s conftest.dir/conftest.one &&
2488 test -s conftest.dir/conftest.two
2489 then
2490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2491 break 3
2495 done
2496 done
2498 esac
2500 done
2501 IFS=$as_save_IFS
2503 rm -rf conftest.one conftest.two conftest.dir
2506 if test "${ac_cv_path_install+set}" = set; then
2507 INSTALL=$ac_cv_path_install
2508 else
2509 # As a last resort, use the slow shell script. Don't cache a
2510 # value for INSTALL within a source directory, because that will
2511 # break other packages using the cache if that directory is
2512 # removed, or if the value is a relative name.
2513 INSTALL=$ac_install_sh
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2517 $as_echo "$INSTALL" >&6; }
2519 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2520 # It thinks the first close brace ends the variable substitution.
2521 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2523 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2525 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2528 for ac_prog in gawk mawk nawk awk
2530 # Extract the first word of "$ac_prog", so it can be a program name with args.
2531 set dummy $ac_prog; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if test "${ac_cv_prog_AWK+set}" = set; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 if test -n "$AWK"; then
2538 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_AWK="$ac_prog"
2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2551 done
2552 done
2553 IFS=$as_save_IFS
2557 AWK=$ac_cv_prog_AWK
2558 if test -n "$AWK"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2560 $as_echo "$AWK" >&6; }
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2567 test -n "$AWK" && break
2568 done
2570 # We need awk; bail out if it's missing.
2571 case ${AWK} in
2572 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
2573 esac
2576 case ${build_alias} in
2577 "") build_noncanonical=${build} ;;
2578 *) build_noncanonical=${build_alias} ;;
2579 esac
2581 case ${host_alias} in
2582 "") host_noncanonical=${build_noncanonical} ;;
2583 *) host_noncanonical=${host_alias} ;;
2584 esac
2588 case ${target_alias} in
2589 "") target_noncanonical=${host_noncanonical} ;;
2590 *) target_noncanonical=${target_alias} ;;
2591 esac
2596 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2597 # have matching libraries, they should use host libraries: Makefile.tpl
2598 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2599 # However, they still use the build modules, because the corresponding
2600 # host modules (e.g. bison) are only built for the host when bootstrap
2601 # finishes. So:
2602 # - build_subdir is where we find build modules, and never changes.
2603 # - build_libsubdir is where we find build libraries, and can be overridden.
2605 # Prefix 'build-' so this never conflicts with target_subdir.
2606 build_subdir="build-${build_noncanonical}"
2608 # Check whether --with-build-libsubdir was given.
2609 if test "${with_build_libsubdir+set}" = set; then :
2610 withval=$with_build_libsubdir; build_libsubdir="$withval"
2611 else
2612 build_libsubdir="$build_subdir"
2615 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2616 if ( test $srcdir = . && test -d gcc ) \
2617 || test -d $srcdir/../host-${host_noncanonical}; then
2618 host_subdir="host-${host_noncanonical}"
2619 else
2620 host_subdir=.
2622 # No prefix.
2623 target_subdir=${target_noncanonical}
2626 # Calculate toolexeclibdir
2627 # Also toolexecdir, though it's only used in toolexeclibdir
2628 case ${version_specific_libs} in
2629 yes)
2630 # Need the gcc compiler version to know where to install libraries
2631 # and header files if --enable-version-specific-runtime-libs option
2632 # is selected.
2633 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2634 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2637 if test -n "$with_cross_host" &&
2638 test x"$with_cross_host" != x"no"; then
2639 # Install a library built with a cross compiler in tooldir, not libdir.
2640 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2641 toolexeclibdir='$(toolexecdir)/lib'
2642 else
2643 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2644 toolexeclibdir='$(libdir)'
2646 multi_os_directory=`$CC -print-multi-os-directory`
2647 case $multi_os_directory in
2648 .) ;; # Avoid trailing /.
2649 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2650 esac
2652 esac
2656 if test -n "$ac_tool_prefix"; then
2657 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2658 set dummy ${ac_tool_prefix}ar; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if test "${ac_cv_prog_AR+set}" = set; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 if test -n "$AR"; then
2665 ac_cv_prog_AR="$AR" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 ac_cv_prog_AR="${ac_tool_prefix}ar"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2678 done
2679 done
2680 IFS=$as_save_IFS
2684 AR=$ac_cv_prog_AR
2685 if test -n "$AR"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2687 $as_echo "$AR" >&6; }
2688 else
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2695 if test -z "$ac_cv_prog_AR"; then
2696 ac_ct_AR=$AR
2697 # Extract the first word of "ar", so it can be a program name with args.
2698 set dummy ar; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 if test -n "$ac_ct_AR"; then
2705 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_ac_ct_AR="ar"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2718 done
2719 done
2720 IFS=$as_save_IFS
2724 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2725 if test -n "$ac_ct_AR"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2727 $as_echo "$ac_ct_AR" >&6; }
2728 else
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2733 if test "x$ac_ct_AR" = x; then
2734 AR=""
2735 else
2736 case $cross_compiling:$ac_tool_warned in
2737 yes:)
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2740 ac_tool_warned=yes ;;
2741 esac
2742 AR=$ac_ct_AR
2744 else
2745 AR="$ac_cv_prog_AR"
2748 if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2750 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_LIPO+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 if test -n "$LIPO"; then
2757 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2770 done
2771 done
2772 IFS=$as_save_IFS
2776 LIPO=$ac_cv_prog_LIPO
2777 if test -n "$LIPO"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2779 $as_echo "$LIPO" >&6; }
2780 else
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2787 if test -z "$ac_cv_prog_LIPO"; then
2788 ac_ct_LIPO=$LIPO
2789 # Extract the first word of "lipo", so it can be a program name with args.
2790 set dummy lipo; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if test -n "$ac_ct_LIPO"; then
2797 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_ac_ct_LIPO="lipo"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2810 done
2811 done
2812 IFS=$as_save_IFS
2816 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2817 if test -n "$ac_ct_LIPO"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2819 $as_echo "$ac_ct_LIPO" >&6; }
2820 else
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2825 if test "x$ac_ct_LIPO" = x; then
2826 LIPO=":"
2827 else
2828 case $cross_compiling:$ac_tool_warned in
2829 yes:)
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2832 ac_tool_warned=yes ;;
2833 esac
2834 LIPO=$ac_ct_LIPO
2836 else
2837 LIPO="$ac_cv_prog_LIPO"
2840 if test -n "$ac_tool_prefix"; then
2841 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}nm; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if test "${ac_cv_prog_NM+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$NM"; then
2849 ac_cv_prog_NM="$NM" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_NM="${ac_tool_prefix}nm"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2862 done
2863 done
2864 IFS=$as_save_IFS
2868 NM=$ac_cv_prog_NM
2869 if test -n "$NM"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2871 $as_echo "$NM" >&6; }
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2879 if test -z "$ac_cv_prog_NM"; then
2880 ac_ct_NM=$NM
2881 # Extract the first word of "nm", so it can be a program name with args.
2882 set dummy nm; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test -n "$ac_ct_NM"; then
2889 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2890 else
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 ac_cv_prog_ac_ct_NM="nm"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2902 done
2903 done
2904 IFS=$as_save_IFS
2908 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2909 if test -n "$ac_ct_NM"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2911 $as_echo "$ac_ct_NM" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2917 if test "x$ac_ct_NM" = x; then
2918 NM=""
2919 else
2920 case $cross_compiling:$ac_tool_warned in
2921 yes:)
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2924 ac_tool_warned=yes ;;
2925 esac
2926 NM=$ac_ct_NM
2928 else
2929 NM="$ac_cv_prog_NM"
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if test "${ac_cv_prog_RANLIB+set}" = set; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test -n "$RANLIB"; then
2941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2954 done
2955 done
2956 IFS=$as_save_IFS
2960 RANLIB=$ac_cv_prog_RANLIB
2961 if test -n "$RANLIB"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2963 $as_echo "$RANLIB" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2971 if test -z "$ac_cv_prog_RANLIB"; then
2972 ac_ct_RANLIB=$RANLIB
2973 # Extract the first word of "ranlib", so it can be a program name with args.
2974 set dummy ranlib; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$ac_ct_RANLIB"; then
2981 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_ac_ct_RANLIB="ranlib"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2994 done
2995 done
2996 IFS=$as_save_IFS
3000 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3001 if test -n "$ac_ct_RANLIB"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3003 $as_echo "$ac_ct_RANLIB" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3009 if test "x$ac_ct_RANLIB" = x; then
3010 RANLIB=":"
3011 else
3012 case $cross_compiling:$ac_tool_warned in
3013 yes:)
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3016 ac_tool_warned=yes ;;
3017 esac
3018 RANLIB=$ac_ct_RANLIB
3020 else
3021 RANLIB="$ac_cv_prog_RANLIB"
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}strip; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_STRIP+set}" = set; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$STRIP"; then
3033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3046 done
3047 done
3048 IFS=$as_save_IFS
3052 STRIP=$ac_cv_prog_STRIP
3053 if test -n "$STRIP"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3055 $as_echo "$STRIP" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3063 if test -z "$ac_cv_prog_STRIP"; then
3064 ac_ct_STRIP=$STRIP
3065 # Extract the first word of "strip", so it can be a program name with args.
3066 set dummy strip; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test -n "$ac_ct_STRIP"; then
3073 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_STRIP="strip"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3086 done
3087 done
3088 IFS=$as_save_IFS
3092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3093 if test -n "$ac_ct_STRIP"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3095 $as_echo "$ac_ct_STRIP" >&6; }
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3101 if test "x$ac_ct_STRIP" = x; then
3102 STRIP=":"
3103 else
3104 case $cross_compiling:$ac_tool_warned in
3105 yes:)
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned=yes ;;
3109 esac
3110 STRIP=$ac_ct_STRIP
3112 else
3113 STRIP="$ac_cv_prog_STRIP"
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3117 $as_echo_n "checking whether ln -s works... " >&6; }
3118 LN_S=$as_ln_s
3119 if test "$LN_S" = "ln -s"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121 $as_echo "yes" >&6; }
3122 else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3124 $as_echo "no, using $LN_S" >&6; }
3129 ac_ext=c
3130 ac_cpp='$CPP $CPPFLAGS'
3131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134 if test -n "$ac_tool_prefix"; then
3135 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if test "${ac_cv_prog_CC+set}" = set; then :
3140 $as_echo_n "(cached) " >&6
3141 else
3142 if test -n "$CC"; then
3143 ac_cv_prog_CC="$CC" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 break 2
3156 done
3157 done
3158 IFS=$as_save_IFS
3162 CC=$ac_cv_prog_CC
3163 if test -n "$CC"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165 $as_echo "$CC" >&6; }
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3173 if test -z "$ac_cv_prog_CC"; then
3174 ac_ct_CC=$CC
3175 # Extract the first word of "gcc", so it can be a program name with args.
3176 set dummy gcc; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -n "$ac_ct_CC"; then
3183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 ac_cv_prog_ac_ct_CC="gcc"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3196 done
3197 done
3198 IFS=$as_save_IFS
3202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203 if test -n "$ac_ct_CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3205 $as_echo "$ac_ct_CC" >&6; }
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3211 if test "x$ac_ct_CC" = x; then
3212 CC=""
3213 else
3214 case $cross_compiling:$ac_tool_warned in
3215 yes:)
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3218 ac_tool_warned=yes ;;
3219 esac
3220 CC=$ac_ct_CC
3222 else
3223 CC="$ac_cv_prog_CC"
3226 if test -z "$CC"; then
3227 if test -n "$ac_tool_prefix"; then
3228 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3229 set dummy ${ac_tool_prefix}cc; ac_word=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if test "${ac_cv_prog_CC+set}" = set; then :
3233 $as_echo_n "(cached) " >&6
3234 else
3235 if test -n "$CC"; then
3236 ac_cv_prog_CC="$CC" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_prog_CC="${ac_tool_prefix}cc"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3249 done
3250 done
3251 IFS=$as_save_IFS
3255 CC=$ac_cv_prog_CC
3256 if test -n "$CC"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 $as_echo "$CC" >&6; }
3259 else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3267 if test -z "$CC"; then
3268 # Extract the first word of "cc", so it can be a program name with args.
3269 set dummy cc; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if test "${ac_cv_prog_CC+set}" = set; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if test -n "$CC"; then
3276 ac_cv_prog_CC="$CC" # Let the user override the test.
3277 else
3278 ac_prog_rejected=no
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3287 ac_prog_rejected=yes
3288 continue
3290 ac_cv_prog_CC="cc"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3294 done
3295 done
3296 IFS=$as_save_IFS
3298 if test $ac_prog_rejected = yes; then
3299 # We found a bogon in the path, so make sure we never use it.
3300 set dummy $ac_cv_prog_CC
3301 shift
3302 if test $# != 0; then
3303 # We chose a different compiler from the bogus one.
3304 # However, it has the same basename, so the bogon will be chosen
3305 # first if we set CC to just the basename; use the full file name.
3306 shift
3307 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3312 CC=$ac_cv_prog_CC
3313 if test -n "$CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3323 if test -z "$CC"; then
3324 if test -n "$ac_tool_prefix"; then
3325 for ac_prog in cl.exe
3327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3328 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if test "${ac_cv_prog_CC+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3333 else
3334 if test -n "$CC"; then
3335 ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 break 2
3348 done
3349 done
3350 IFS=$as_save_IFS
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3364 test -n "$CC" && break
3365 done
3367 if test -z "$CC"; then
3368 ac_ct_CC=$CC
3369 for ac_prog in cl.exe
3371 # Extract the first word of "$ac_prog", so it can be a program name with args.
3372 set dummy $ac_prog; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3376 $as_echo_n "(cached) " >&6
3377 else
3378 if test -n "$ac_ct_CC"; then
3379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388 ac_cv_prog_ac_ct_CC="$ac_prog"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3392 done
3393 done
3394 IFS=$as_save_IFS
3398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3399 if test -n "$ac_ct_CC"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3401 $as_echo "$ac_ct_CC" >&6; }
3402 else
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3408 test -n "$ac_ct_CC" && break
3409 done
3411 if test "x$ac_ct_CC" = x; then
3412 CC=""
3413 else
3414 case $cross_compiling:$ac_tool_warned in
3415 yes:)
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3418 ac_tool_warned=yes ;;
3419 esac
3420 CC=$ac_ct_CC
3427 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429 as_fn_error "no acceptable C compiler found in \$PATH
3430 See \`config.log' for more details." "$LINENO" 5; }
3432 # Provide some information about the compiler.
3433 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3434 set X $ac_compile
3435 ac_compiler=$2
3436 for ac_option in --version -v -V -qversion; do
3437 { { ac_try="$ac_compiler $ac_option >&5"
3438 case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3445 ac_status=$?
3446 if test -s conftest.err; then
3447 sed '10a\
3448 ... rest of stderr output deleted ...
3449 10q' conftest.err >conftest.er1
3450 cat conftest.er1 >&5
3451 rm -f conftest.er1 conftest.err
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }
3455 done
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3461 main ()
3465 return 0;
3467 _ACEOF
3468 # FIXME: Cleanup?
3469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3470 (eval $ac_link) 2>&5
3471 ac_status=$?
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }; then :
3474 gcc_no_link=no
3475 else
3476 gcc_no_link=yes
3478 if test x$gcc_no_link = xyes; then
3479 # Setting cross_compile will disable run tests; it will
3480 # also disable AC_CHECK_FILE but that's generally
3481 # correct if we can't link.
3482 cross_compiling=yes
3483 EXEEXT=
3484 else
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3489 main ()
3493 return 0;
3495 _ACEOF
3496 ac_clean_files_save=$ac_clean_files
3497 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3498 # Try to create an executable without -o first, disregard a.out.
3499 # It will help us diagnose broken compilers, and finding out an intuition
3500 # of exeext.
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3502 $as_echo_n "checking for C compiler default output file name... " >&6; }
3503 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3505 # The possible output files:
3506 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3508 ac_rmfiles=
3509 for ac_file in $ac_files
3511 case $ac_file in
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3513 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3514 esac
3515 done
3516 rm -f $ac_rmfiles
3518 if { { ac_try="$ac_link_default"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_link_default") 2>&5
3526 ac_status=$?
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; then :
3529 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3530 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3531 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3532 # so that the user can short-circuit this test for compilers unknown to
3533 # Autoconf.
3534 for ac_file in $ac_files ''
3536 test -f "$ac_file" || continue
3537 case $ac_file in
3538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3540 [ab].out )
3541 # We found the default executable, but exeext='' is most
3542 # certainly right.
3543 break;;
3544 *.* )
3545 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3546 then :; else
3547 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3549 # We set ac_cv_exeext here because the later test for it is not
3550 # safe: cross compilers may not add the suffix if given an `-o'
3551 # argument, so we may need to know it at that point already.
3552 # Even if this section looks crufty: it has the advantage of
3553 # actually working.
3554 break;;
3556 break;;
3557 esac
3558 done
3559 test "$ac_cv_exeext" = no && ac_cv_exeext=
3561 else
3562 ac_file=''
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3565 $as_echo "$ac_file" >&6; }
3566 if test -z "$ac_file"; then :
3567 $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 { as_fn_set_status 77
3573 as_fn_error "C compiler cannot create executables
3574 See \`config.log' for more details." "$LINENO" 5; }; }
3576 ac_exeext=$ac_cv_exeext
3578 # Check that the compiler produces executables we can run. If not, either
3579 # the compiler is broken, or we cross compile.
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3581 $as_echo_n "checking whether the C compiler works... " >&6; }
3582 # If not cross compiling, check that we can run a simple program.
3583 if test "$cross_compiling" != yes; then
3584 if { ac_try='./$ac_file'
3585 { { case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_try") 2>&5
3592 ac_status=$?
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }; }; then
3595 cross_compiling=no
3596 else
3597 if test "$cross_compiling" = maybe; then
3598 cross_compiling=yes
3599 else
3600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3602 as_fn_error "cannot run C compiled programs.
3603 If you meant to cross compile, use \`--host'.
3604 See \`config.log' for more details." "$LINENO" 5; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3609 $as_echo "yes" >&6; }
3611 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3612 ac_clean_files=$ac_clean_files_save
3613 # Check that the compiler produces executables we can run. If not, either
3614 # the compiler is broken, or we cross compile.
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3616 $as_echo_n "checking whether we are cross compiling... " >&6; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3618 $as_echo "$cross_compiling" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3621 $as_echo_n "checking for suffix of executables... " >&6; }
3622 if { { ac_try="$ac_link"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_link") 2>&5
3630 ac_status=$?
3631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632 test $ac_status = 0; }; then :
3633 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3634 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3635 # work properly (i.e., refer to `conftest.exe'), while it won't with
3636 # `rm'.
3637 for ac_file in conftest.exe conftest conftest.*; do
3638 test -f "$ac_file" || continue
3639 case $ac_file in
3640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3641 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3642 break;;
3643 * ) break;;
3644 esac
3645 done
3646 else
3647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error "cannot compute suffix of executables: cannot compile and link
3650 See \`config.log' for more details." "$LINENO" 5; }
3652 rm -f conftest$ac_cv_exeext
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3654 $as_echo "$ac_cv_exeext" >&6; }
3656 rm -f conftest.$ac_ext
3657 EXEEXT=$ac_cv_exeext
3658 ac_exeext=$EXEEXT
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3661 $as_echo_n "checking for suffix of object files... " >&6; }
3662 if test "${ac_cv_objext+set}" = set; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3669 main ()
3673 return 0;
3675 _ACEOF
3676 rm -f conftest.o conftest.obj
3677 if { { ac_try="$ac_compile"
3678 case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681 esac
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_compile") 2>&5
3685 ac_status=$?
3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }; then :
3688 for ac_file in conftest.o conftest.obj conftest.*; do
3689 test -f "$ac_file" || continue;
3690 case $ac_file in
3691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3692 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3693 break;;
3694 esac
3695 done
3696 else
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 as_fn_error "cannot compute suffix of object files: cannot compile
3703 See \`config.log' for more details." "$LINENO" 5; }
3705 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3708 $as_echo "$ac_cv_objext" >&6; }
3709 OBJEXT=$ac_cv_objext
3710 ac_objext=$OBJEXT
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3713 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3714 $as_echo_n "(cached) " >&6
3715 else
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3720 main ()
3722 #ifndef __GNUC__
3723 choke me
3724 #endif
3727 return 0;
3729 _ACEOF
3730 if ac_fn_c_try_compile "$LINENO"; then :
3731 ac_compiler_gnu=yes
3732 else
3733 ac_compiler_gnu=no
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3741 if test $ac_compiler_gnu = yes; then
3742 GCC=yes
3743 else
3744 GCC=
3746 ac_test_CFLAGS=${CFLAGS+set}
3747 ac_save_CFLAGS=$CFLAGS
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3750 if test "${ac_cv_prog_cc_g+set}" = set; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 ac_save_c_werror_flag=$ac_c_werror_flag
3754 ac_c_werror_flag=yes
3755 ac_cv_prog_cc_g=no
3756 CFLAGS="-g"
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3761 main ()
3765 return 0;
3767 _ACEOF
3768 if ac_fn_c_try_compile "$LINENO"; then :
3769 ac_cv_prog_cc_g=yes
3770 else
3771 CFLAGS=""
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3776 main ()
3780 return 0;
3782 _ACEOF
3783 if ac_fn_c_try_compile "$LINENO"; then :
3785 else
3786 ac_c_werror_flag=$ac_save_c_werror_flag
3787 CFLAGS="-g"
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3792 main ()
3796 return 0;
3798 _ACEOF
3799 if ac_fn_c_try_compile "$LINENO"; then :
3800 ac_cv_prog_cc_g=yes
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 ac_c_werror_flag=$ac_save_c_werror_flag
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3810 $as_echo "$ac_cv_prog_cc_g" >&6; }
3811 if test "$ac_test_CFLAGS" = set; then
3812 CFLAGS=$ac_save_CFLAGS
3813 elif test $ac_cv_prog_cc_g = yes; then
3814 if test "$GCC" = yes; then
3815 CFLAGS="-g -O2"
3816 else
3817 CFLAGS="-g"
3819 else
3820 if test "$GCC" = yes; then
3821 CFLAGS="-O2"
3822 else
3823 CFLAGS=
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3828 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3829 $as_echo_n "(cached) " >&6
3830 else
3831 ac_cv_prog_cc_c89=no
3832 ac_save_CC=$CC
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835 #include <stdarg.h>
3836 #include <stdio.h>
3837 #include <sys/types.h>
3838 #include <sys/stat.h>
3839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3840 struct buf { int x; };
3841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3842 static char *e (p, i)
3843 char **p;
3844 int i;
3846 return p[i];
3848 static char *f (char * (*g) (char **, int), char **p, ...)
3850 char *s;
3851 va_list v;
3852 va_start (v,p);
3853 s = g (p, va_arg (v,int));
3854 va_end (v);
3855 return s;
3858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3859 function prototypes and stuff, but not '\xHH' hex character constants.
3860 These don't provoke an error unfortunately, instead are silently treated
3861 as 'x'. The following induces an error, until -std is added to get
3862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3863 array size at least. It's necessary to write '\x00'==0 to get something
3864 that's true only with -std. */
3865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3868 inside strings and character constants. */
3869 #define FOO(x) 'x'
3870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3872 int test (int i, double x);
3873 struct s1 {int (*f) (int a);};
3874 struct s2 {int (*f) (double a);};
3875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3876 int argc;
3877 char **argv;
3879 main ()
3881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3883 return 0;
3885 _ACEOF
3886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3889 CC="$ac_save_CC $ac_arg"
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_cv_prog_cc_c89=$ac_arg
3893 rm -f core conftest.err conftest.$ac_objext
3894 test "x$ac_cv_prog_cc_c89" != "xno" && break
3895 done
3896 rm -f conftest.$ac_ext
3897 CC=$ac_save_CC
3900 # AC_CACHE_VAL
3901 case "x$ac_cv_prog_cc_c89" in
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3904 $as_echo "none needed" >&6; } ;;
3905 xno)
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3907 $as_echo "unsupported" >&6; } ;;
3909 CC="$CC $ac_cv_prog_cc_c89"
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3912 esac
3913 if test "x$ac_cv_prog_cc_c89" != xno; then :
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3929 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3930 # On Suns, sometimes $CPP names a directory.
3931 if test -n "$CPP" && test -d "$CPP"; then
3932 CPP=
3934 if test -z "$CPP"; then
3935 if test "${ac_cv_prog_CPP+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 # Double quotes because CPP needs to be expanded
3939 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3941 ac_preproc_ok=false
3942 for ac_c_preproc_warn_flag in '' yes
3944 # Use a header file that comes with gcc, so configuring glibc
3945 # with a fresh cross-compiler works.
3946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3947 # <limits.h> exists even on freestanding compilers.
3948 # On the NeXT, cc -E runs the code through the compiler's parser,
3949 # not just through cpp. "Syntax error" is here to catch this case.
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3952 #ifdef __STDC__
3953 # include <limits.h>
3954 #else
3955 # include <assert.h>
3956 #endif
3957 Syntax error
3958 _ACEOF
3959 if ac_fn_c_try_cpp "$LINENO"; then :
3961 else
3962 # Broken: fails on valid input.
3963 continue
3965 rm -f conftest.err conftest.$ac_ext
3967 # OK, works on sane cases. Now check whether nonexistent headers
3968 # can be detected and how.
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971 #include <ac_nonexistent.h>
3972 _ACEOF
3973 if ac_fn_c_try_cpp "$LINENO"; then :
3974 # Broken: success on invalid input.
3975 continue
3976 else
3977 # Passes both tests.
3978 ac_preproc_ok=:
3979 break
3981 rm -f conftest.err conftest.$ac_ext
3983 done
3984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3985 rm -f conftest.err conftest.$ac_ext
3986 if $ac_preproc_ok; then :
3987 break
3990 done
3991 ac_cv_prog_CPP=$CPP
3994 CPP=$ac_cv_prog_CPP
3995 else
3996 ac_cv_prog_CPP=$CPP
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3999 $as_echo "$CPP" >&6; }
4000 ac_preproc_ok=false
4001 for ac_c_preproc_warn_flag in '' yes
4003 # Use a header file that comes with gcc, so configuring glibc
4004 # with a fresh cross-compiler works.
4005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4006 # <limits.h> exists even on freestanding compilers.
4007 # On the NeXT, cc -E runs the code through the compiler's parser,
4008 # not just through cpp. "Syntax error" is here to catch this case.
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011 #ifdef __STDC__
4012 # include <limits.h>
4013 #else
4014 # include <assert.h>
4015 #endif
4016 Syntax error
4017 _ACEOF
4018 if ac_fn_c_try_cpp "$LINENO"; then :
4020 else
4021 # Broken: fails on valid input.
4022 continue
4024 rm -f conftest.err conftest.$ac_ext
4026 # OK, works on sane cases. Now check whether nonexistent headers
4027 # can be detected and how.
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4030 #include <ac_nonexistent.h>
4031 _ACEOF
4032 if ac_fn_c_try_cpp "$LINENO"; then :
4033 # Broken: success on invalid input.
4034 continue
4035 else
4036 # Passes both tests.
4037 ac_preproc_ok=:
4038 break
4040 rm -f conftest.err conftest.$ac_ext
4042 done
4043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4044 rm -f conftest.err conftest.$ac_ext
4045 if $ac_preproc_ok; then :
4047 else
4048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4050 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4051 See \`config.log' for more details." "$LINENO" 5; }
4054 ac_ext=c
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061 ac_c_preproc_warn_flag=yes
4065 # The cast to long int works around a bug in the HP C Compiler
4066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4068 # This bug is HP SR number 8606223364.
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
4070 $as_echo_n "checking size of double... " >&6; }
4071 if test "${ac_cv_sizeof_double+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
4076 else
4077 if test "$ac_cv_type_double" = yes; then
4078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4080 { as_fn_set_status 77
4081 as_fn_error "cannot compute sizeof (double)
4082 See \`config.log' for more details." "$LINENO" 5; }; }
4083 else
4084 ac_cv_sizeof_double=0
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
4090 $as_echo "$ac_cv_sizeof_double" >&6; }
4094 cat >>confdefs.h <<_ACEOF
4095 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4096 _ACEOF
4099 # The cast to long int works around a bug in the HP C Compiler
4100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4102 # This bug is HP SR number 8606223364.
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4104 $as_echo_n "checking size of long double... " >&6; }
4105 if test "${ac_cv_sizeof_long_double+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4110 else
4111 if test "$ac_cv_type_long_double" = yes; then
4112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4114 { as_fn_set_status 77
4115 as_fn_error "cannot compute sizeof (long double)
4116 See \`config.log' for more details." "$LINENO" 5; }; }
4117 else
4118 ac_cv_sizeof_long_double=0
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4124 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4128 cat >>confdefs.h <<_ACEOF
4129 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4130 _ACEOF
4133 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4134 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4139 for ac_header in inttypes.h stdint.h stdlib.h ftw.h \
4140 unistd.h sys/stat.h sys/types.h \
4141 string.h strings.h memory.h
4142 do :
4143 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4144 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
4145 eval as_val=\$$as_ac_Header
4146 if test "x$as_val" = x""yes; then :
4147 cat >>confdefs.h <<_ACEOF
4148 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4149 _ACEOF
4152 done
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4155 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4156 if test "${ac_cv_path_GREP+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 if test -z "$GREP"; then
4160 ac_path_GREP_found=false
4161 # Loop through the user's path and test for each of PROGNAME-LIST
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_prog in grep ggrep; do
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4170 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4171 # Check for GNU ac_path_GREP and select it if it is found.
4172 # Check for GNU $ac_path_GREP
4173 case `"$ac_path_GREP" --version 2>&1` in
4174 *GNU*)
4175 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4177 ac_count=0
4178 $as_echo_n 0123456789 >"conftest.in"
4179 while :
4181 cat "conftest.in" "conftest.in" >"conftest.tmp"
4182 mv "conftest.tmp" "conftest.in"
4183 cp "conftest.in" "conftest.nl"
4184 $as_echo 'GREP' >> "conftest.nl"
4185 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4187 as_fn_arith $ac_count + 1 && ac_count=$as_val
4188 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4189 # Best one so far, save it but keep looking for a better one
4190 ac_cv_path_GREP="$ac_path_GREP"
4191 ac_path_GREP_max=$ac_count
4193 # 10*(2^10) chars as input seems more than enough
4194 test $ac_count -gt 10 && break
4195 done
4196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197 esac
4199 $ac_path_GREP_found && break 3
4200 done
4201 done
4202 done
4203 IFS=$as_save_IFS
4204 if test -z "$ac_cv_path_GREP"; then
4205 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4207 else
4208 ac_cv_path_GREP=$GREP
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4213 $as_echo "$ac_cv_path_GREP" >&6; }
4214 GREP="$ac_cv_path_GREP"
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4218 $as_echo_n "checking for egrep... " >&6; }
4219 if test "${ac_cv_path_EGREP+set}" = set; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4223 then ac_cv_path_EGREP="$GREP -E"
4224 else
4225 if test -z "$EGREP"; then
4226 ac_path_EGREP_found=false
4227 # Loop through the user's path and test for each of PROGNAME-LIST
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_prog in egrep; do
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4236 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4237 # Check for GNU ac_path_EGREP and select it if it is found.
4238 # Check for GNU $ac_path_EGREP
4239 case `"$ac_path_EGREP" --version 2>&1` in
4240 *GNU*)
4241 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4243 ac_count=0
4244 $as_echo_n 0123456789 >"conftest.in"
4245 while :
4247 cat "conftest.in" "conftest.in" >"conftest.tmp"
4248 mv "conftest.tmp" "conftest.in"
4249 cp "conftest.in" "conftest.nl"
4250 $as_echo 'EGREP' >> "conftest.nl"
4251 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4253 as_fn_arith $ac_count + 1 && ac_count=$as_val
4254 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4255 # Best one so far, save it but keep looking for a better one
4256 ac_cv_path_EGREP="$ac_path_EGREP"
4257 ac_path_EGREP_max=$ac_count
4259 # 10*(2^10) chars as input seems more than enough
4260 test $ac_count -gt 10 && break
4261 done
4262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4263 esac
4265 $ac_path_EGREP_found && break 3
4266 done
4267 done
4268 done
4269 IFS=$as_save_IFS
4270 if test -z "$ac_cv_path_EGREP"; then
4271 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4273 else
4274 ac_cv_path_EGREP=$EGREP
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4280 $as_echo "$ac_cv_path_EGREP" >&6; }
4281 EGREP="$ac_cv_path_EGREP"
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4285 $as_echo_n "checking for ANSI C header files... " >&6; }
4286 if test "${ac_cv_header_stdc+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4291 #include <stdlib.h>
4292 #include <stdarg.h>
4293 #include <string.h>
4294 #include <float.h>
4297 main ()
4301 return 0;
4303 _ACEOF
4304 if ac_fn_c_try_compile "$LINENO"; then :
4305 ac_cv_header_stdc=yes
4306 else
4307 ac_cv_header_stdc=no
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 if test $ac_cv_header_stdc = yes; then
4312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315 #include <string.h>
4317 _ACEOF
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319 $EGREP "memchr" >/dev/null 2>&1; then :
4321 else
4322 ac_cv_header_stdc=no
4324 rm -f conftest*
4328 if test $ac_cv_header_stdc = yes; then
4329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332 #include <stdlib.h>
4334 _ACEOF
4335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4336 $EGREP "free" >/dev/null 2>&1; then :
4338 else
4339 ac_cv_header_stdc=no
4341 rm -f conftest*
4345 if test $ac_cv_header_stdc = yes; then
4346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4347 if test "$cross_compiling" = yes; then :
4349 else
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #include <ctype.h>
4353 #include <stdlib.h>
4354 #if ((' ' & 0x0FF) == 0x020)
4355 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4356 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4357 #else
4358 # define ISLOWER(c) \
4359 (('a' <= (c) && (c) <= 'i') \
4360 || ('j' <= (c) && (c) <= 'r') \
4361 || ('s' <= (c) && (c) <= 'z'))
4362 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4363 #endif
4365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4367 main ()
4369 int i;
4370 for (i = 0; i < 256; i++)
4371 if (XOR (islower (i), ISLOWER (i))
4372 || toupper (i) != TOUPPER (i))
4373 return 2;
4374 return 0;
4376 _ACEOF
4377 if ac_fn_c_try_run "$LINENO"; then :
4379 else
4380 ac_cv_header_stdc=no
4382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4383 conftest.$ac_objext conftest.beam conftest.$ac_ext
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4389 $as_echo "$ac_cv_header_stdc" >&6; }
4390 if test $ac_cv_header_stdc = yes; then
4392 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4397 # Check for decimal float support.
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4399 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4400 if test "${libgcc_cv_dfp+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4406 #include <fenv.h>
4409 main ()
4412 _Decimal32 x;
4413 int fe_except =
4414 FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
4417 return 0;
4419 _ACEOF
4420 if ac_fn_c_try_compile "$LINENO"; then :
4421 libgcc_cv_dfp=yes
4422 else
4423 libgcc_cv_dfp=no
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4428 $as_echo "$libgcc_cv_dfp" >&6; }
4429 decimal_float=$libgcc_cv_dfp
4433 # Check whether --enable-decimal-float was given.
4434 if test "${enable_decimal_float+set}" = set; then :
4435 enableval=$enable_decimal_float;
4436 case $enable_decimal_float in
4437 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4438 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4439 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4440 esac
4442 else
4444 case $host in
4445 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4446 i?86*-*-elfiamcu | i?86*-*-gnu* | \
4447 i?86*-*-mingw* | x86_64*-*-mingw* | \
4448 i?86*-*-cygwin* | x86_64*-*-cygwin*)
4449 enable_decimal_float=yes
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4453 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4454 enable_decimal_float=no
4456 esac
4461 # x86's use BID format instead of DPD
4462 case x$enable_decimal_float in
4463 xyes)
4464 case $host in
4465 i?86*-*-* | x86_64*-*-*)
4466 enable_decimal_float=bid
4469 enable_decimal_float=dpd
4471 esac
4472 default_decimal_float=$enable_decimal_float
4474 xno)
4475 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4476 # dependency on libdecnumber.
4477 default_decimal_float=dpd
4479 esac
4484 # Check for fixed-point support.
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4486 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4487 if test "${libgcc_cv_fixed_point+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492 _Sat _Fract x;
4493 _ACEOF
4494 if ac_fn_c_try_compile "$LINENO"; then :
4495 libgcc_cv_fixed_point=yes
4496 else
4497 libgcc_cv_fixed_point=no
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4502 $as_echo "$libgcc_cv_fixed_point" >&6; }
4503 fixed_point=$libgcc_cv_fixed_point
4506 # For platforms with the unwind ABI which includes an unwind library,
4507 # libunwind, we can choose to use the system libunwind.
4508 # config.gcc also contains tests of with_system_libunwind.
4511 # Check whether --with-system-libunwind was given.
4512 if test "${with_system_libunwind+set}" = set; then :
4513 withval=$with_system_libunwind;
4516 # If system-libunwind was not specifically set, pick a default setting.
4517 if test x$with_system_libunwind = x; then
4518 case ${target} in
4519 ia64-*-hpux*) with_system_libunwind=yes ;;
4520 *) with_system_libunwind=no ;;
4521 esac
4523 # Based on system-libunwind and target, do we have ipinfo?
4524 if test x$with_system_libunwind = xyes; then
4525 case ${target} in
4526 ia64-*-*) have_unwind_getipinfo=no ;;
4527 *) have_unwind_getipinfo=yes ;;
4528 esac
4529 else
4530 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4532 case ${target} in
4533 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4534 *) have_unwind_getipinfo=yes ;;
4535 esac
4539 if test x$have_unwind_getipinfo = xyes; then
4541 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4546 # Check if the compiler is configured for setjmp/longjmp exceptions.
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5
4548 $as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; }
4549 if test "${ac_cv_sjlj_exceptions+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4554 #ifdef __USING_SJLJ_EXCEPTIONS__
4555 this will fail
4556 #endif
4558 main ()
4560 int i;
4562 return 0;
4564 _ACEOF
4565 if ac_fn_c_try_compile "$LINENO"; then :
4566 ac_cv_sjlj_exceptions=no
4567 else
4568 ac_cv_sjlj_exceptions=yes
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5
4573 $as_echo "$ac_cv_sjlj_exceptions" >&6; }
4575 # Check whether --enable-explicit-exception-frame-registration was given.
4576 if test "${enable_explicit_exception_frame_registration+set}" = set; then :
4577 enableval=$enable_explicit_exception_frame_registration;
4578 force_explicit_eh_registry=
4579 if test "$enable_explicit_exception_frame_registration" = yes; then
4580 if test $ac_cv_sjlj_exceptions = yes; then
4581 as_fn_error "Can't --enable-explicit-exception-frame-registration
4582 with setjmp/longjmp exceptions" "$LINENO" 5
4584 force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4592 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4593 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4597 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4598 acl_cv_prog_gnu_ld=yes
4599 else
4600 acl_cv_prog_gnu_ld=no
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4604 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4605 with_gnu_ld=$acl_cv_prog_gnu_ld
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4609 $as_echo_n "checking for thread model used by GCC... " >&6; }
4610 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
4612 $as_echo "$target_thread_file" >&6; }
4614 # Check for assembler CFI support.
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
4616 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
4617 if test "${libgcc_cv_cfi+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622 asm("\n\
4623 .text\n\
4624 .cfi_startproc\n\
4625 .cfi_personality 0, symbol\n\
4626 .cfi_endproc");
4627 _ACEOF
4628 if ac_fn_c_try_compile "$LINENO"; then :
4629 libgcc_cv_cfi=yes
4630 else
4631 libgcc_cv_cfi=no
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
4636 $as_echo "$libgcc_cv_cfi" >&6; }
4638 # Check 32bit or 64bit. In the case of MIPS, this really determines the
4639 # word size rather than the address size.
4640 cat > conftest.c <<EOF
4641 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
4642 || defined(__mips64)
4643 host_address=64
4644 #else
4645 host_address=32
4646 #endif
4648 eval `${CC-cc} -E conftest.c | grep host_address=`
4649 rm -f conftest.c
4651 case ${host} in
4652 mips*-*-*)
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5
4654 $as_echo_n "checking whether the target is hard-float... " >&6; }
4655 if test "${libgcc_cv_mips_hard_float+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #ifndef __mips_hard_float
4661 #error FOO
4662 #endif
4663 _ACEOF
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665 libgcc_cv_mips_hard_float=yes
4666 else
4667 libgcc_cv_mips_hard_float=no
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5
4672 $as_echo "$libgcc_cv_mips_hard_float" >&6; }
4673 esac
4675 case ${host} in
4676 *-*-solaris2*)
4677 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
4679 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
4680 if test "${libgcc_cv_solaris_crts+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 libgcc_cv_solaris_crts=no
4684 libgcc_sysroot="`${CC} -print-sysroot`"
4685 libgcc_libdir="$libgcc_sysroot/usr/lib"
4686 # At the time they were added, gcrt1.o became a symlink for backwards
4687 # compatibility on x86, while crt1.o was added on sparc, so check for that.
4688 case ${host} in
4689 i?86-*-solaris2* | x86_64-*-solaris2*)
4690 if test -h "$libgcc_libdir/gcrt1.o"; then libgcc_cv_solaris_crts=yes; fi
4692 sparc*-*-solaris2*)
4693 if test -f "$libgcc_libdir/crt1.o"; then libgcc_cv_solaris_crts=yes; fi
4695 esac
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_solaris_crts" >&5
4698 $as_echo "$libgcc_cv_solaris_crts" >&6; }
4699 if test $libgcc_cv_solaris_crts = yes; then
4701 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
4705 esac
4707 # Determine the version of glibc, if any, used on the target.
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
4709 $as_echo_n "checking for target glibc version... " >&6; }
4711 # Check whether --with-glibc-version was given.
4712 if test "${with_glibc_version+set}" = set; then :
4713 withval=$with_glibc_version;
4714 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
4715 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
4716 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
4717 else
4718 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
4720 else
4722 if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then :
4724 else
4725 glibc_version_major=0
4728 if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then :
4730 else
4731 glibc_version_minor=0
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
4737 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
4739 # Determine floating-point type for powerpc*-*-linux*.
4740 # Single-precision-only FPRs are not a supported configuration for
4741 # this target, so are not allowed for in this test.
4742 case ${host} in
4743 powerpc*-*-linux*)
4744 cat > conftest.c <<EOF
4745 #ifdef __powerpc64__
4746 ppc_fp_type=64
4747 #elif defined _SOFT_FLOAT
4748 ppc_fp_type=soft
4749 #elif defined _SOFT_DOUBLE
4750 ppc_fp_type=e500v1
4751 #elif defined __NO_FPRS__
4752 ppc_fp_type=e500v2
4753 #else
4754 ppc_fp_type=hard
4755 #endif
4757 eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
4758 rm -f conftest.c
4759 # glibc 2.19 and later provide all the soft-fp functions, with proper
4760 # interactions with <fenv.h> exception and rounding mode handling, so
4761 # make libgcc's versions into compat symbols if a recent enough glibc
4762 # version is being used.
4763 ppc_fp_compat=
4764 case ${ppc_fp_type} in
4765 soft|e500v1|e500v2)
4766 if test $glibc_version_major -gt 2 \
4767 || ( test $glibc_version_major -eq 2 \
4768 && test $glibc_version_minor -ge 19 ); then
4769 ppc_fp_compat="t-softfp-compat"
4772 esac
4774 esac
4776 case ${host} in
4777 # At present, we cannot turn -mfloat128 on via #pragma GCC target,
4778 # so just check if we have VSX (ISA 2.06) support to build the
4779 # software libraries, and whether the assembler can handle xsaddqp
4780 # for hardware support.
4781 powerpc*-*-linux*)
4782 saved_CFLAGS="$CFLAGS"
4783 CFLAGS="$CFLAGS -mabi=altivec -mvsx -mfloat128"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 2.06 to build __float128 libraries" >&5
4785 $as_echo_n "checking for PowerPC ISA 2.06 to build __float128 libraries... " >&6; }
4786 if test "${libgcc_cv_powerpc_float128+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791 vector double dadd (vector double a, vector double b) { return a + b; }
4792 _ACEOF
4793 if ac_fn_c_try_compile "$LINENO"; then :
4794 libgcc_cv_powerpc_float128=yes
4795 else
4796 libgcc_cv_powerpc_float128=no
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128" >&5
4801 $as_echo "$libgcc_cv_powerpc_float128" >&6; }
4803 CFLAGS="$CFLAGS -mpower9-vector -mfloat128-hardware"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.0 to build hardware __float128 libraries" >&5
4805 $as_echo_n "checking for PowerPC ISA 3.0 to build hardware __float128 libraries... " >&6; }
4806 if test "${libgcc_cv_powerpc_float128_hw+set}" = set; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811 #include <sys/auxv.h>
4812 #ifndef AT_PLATFORM
4813 #error "AT_PLATFORM is not defined"
4814 #endif
4815 vector unsigned char add (vector unsigned char a, vector unsigned char b)
4817 vector unsigned char ret;
4818 __asm__ ("xsaddqp %0,%1,%2" : "=v" (ret) : "v" (a), "v" (b));
4819 return ret;
4821 void *add_resolver (void) { return (void *) add; }
4822 __float128 add_ifunc (__float128, __float128)
4823 __attribute__ ((__ifunc__ ("add_resolver")));
4824 _ACEOF
4825 if ac_fn_c_try_compile "$LINENO"; then :
4826 libgcc_cv_powerpc_float128_hw=yes
4827 else
4828 libgcc_cv_powerpc_float128_hw=no
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128_hw" >&5
4833 $as_echo "$libgcc_cv_powerpc_float128_hw" >&6; }
4834 CFLAGS="$saved_CFLAGS"
4835 esac
4837 # Collect host-machine-specific information.
4838 . ${srcdir}/config.host
4840 # Used for constructing correct paths for offload compilers.
4841 accel_dir_suffix=
4842 real_host_noncanonical=${host_noncanonical}
4843 if test x"$enable_as_accelerator_for" != x; then
4844 accel_dir_suffix=/accel/${target_noncanonical}
4845 real_host_noncanonical=${enable_as_accelerator_for}
4850 if test x"$enable_offload_targets" != x; then
4851 extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o crtoffloadtable.o"
4854 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
4855 # This is after config.host so we can augment tmake_file.
4856 # Link with -nostartfiles -nodefaultlibs since neither are present while
4857 # building libgcc.
4858 case ${host} in
4859 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
4860 cat > conftest.s <<EOF
4861 .section .eh_frame,"a",@unwind
4862 .zero 4
4863 .section .jcr,"aw",@progbits
4864 .zero 8
4866 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
4867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4871 test $ac_status = 0; }; }; then
4872 tmake_file="${tmake_file} i386/t-crtstuff"
4875 esac
4877 # Check if xtensa target is configured for windowed ABI and thus needs to use
4878 # custom unwind code.
4879 # This is after config.host so we can augment tmake_file.
4880 case ${host} in
4881 xtensa*-*)
4882 cat > conftest.c <<EOF
4883 #ifdef __XTENSA_CALL0_ABI__
4884 #error
4885 #endif
4887 if { ac_try='${CC-cc} -E -o conftest.i conftest.c 1>&5'
4888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4889 (eval $ac_try) 2>&5
4890 ac_status=$?
4891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4892 test $ac_status = 0; }; }; then
4893 tmake_file="${tmake_file} xtensa/t-windowed"
4896 esac
4898 # Check for visibility support. This is after config.host so that
4899 # we can check for asm_hidden_op.
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
4901 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
4902 if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4906 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
4907 libgcc_cv_hidden_visibility_attribute=no
4908 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4910 (eval $ac_try) 2>&5
4911 ac_status=$?
4912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4913 test $ac_status = 0; }; }; then
4914 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
4915 libgcc_cv_hidden_visibility_attribute=yes
4918 rm -f conftest.*
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
4922 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
4924 if test $libgcc_cv_hidden_visibility_attribute = yes; then
4925 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
4926 else
4927 vis_hide=
4931 # See if we have thread-local storage. We can only test assembler
4932 # since link-time and run-time tests require the newly built
4933 # gcc, which can't be used to build executable due to that libgcc
4934 # is yet to be built here.
4936 # Check whether --enable-tls was given.
4937 if test "${enable_tls+set}" = set; then :
4938 enableval=$enable_tls;
4939 case "$enableval" in
4940 yes|no) ;;
4941 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
4942 esac
4944 else
4945 enable_tls=yes
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
4950 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
4951 if test "${gcc_cv_have_cc_tls+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957 __thread int a; int b; int main() { return a = b; }
4958 _ACEOF
4959 if ac_fn_c_try_compile "$LINENO"; then :
4960 gcc_cv_have_cc_tls=yes
4961 else
4962 gcc_cv_have_cc_tls=no
4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
4968 $as_echo "$gcc_cv_have_cc_tls" >&6; }
4969 set_have_cc_tls=
4970 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
4971 set_have_cc_tls="-DHAVE_CC_TLS"
4975 # See if we have emulated thread-local storage.
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
4978 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
4979 if test "${gcc_cv_use_emutls+set}" = set; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4983 gcc_cv_use_emutls=no
4984 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
4985 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
4986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4990 test $ac_status = 0; }; }; then
4991 if grep __emutls_get_address conftest.s > /dev/null; then
4992 gcc_cv_use_emutls=yes
4995 rm -f conftest.*
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
4999 $as_echo "$gcc_cv_use_emutls" >&6; }
5000 if test "$gcc_cv_use_emutls" = "yes" ; then
5002 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
5005 set_use_emutls=
5006 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
5007 set_use_emutls="-DUSE_EMUTLS"
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
5012 $as_echo_n "checking for init priority support... " >&6; }
5013 if test "${libgcc_cv_init_priority+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018 /* end confdefs.h. */
5021 main ()
5023 void ip (void) __attribute__ ((constructor (1)));
5025 return 0;
5027 _ACEOF
5028 if ac_fn_c_try_compile "$LINENO"; then :
5029 libgcc_cv_init_priority=yes
5030 else
5031 libgcc_cv_init_priority=no
5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
5036 $as_echo "$libgcc_cv_init_priority" >&6; }
5037 if test $libgcc_cv_init_priority = yes; then
5039 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
5043 # Conditionalize the sfp-machine.h header for this target machine.
5044 if test -z "${sfp_machine_header}"; then
5045 sfp_machine_header=$cpu_type/sfp-machine.h
5046 if test -f ${srcdir}/config/${sfp_machine_header}; then
5048 else
5049 sfp_machine_header=no-sfp-machine.h
5054 # Conditionalize the makefile for this target machine.
5055 tmake_file_=
5056 for f in ${tmake_file}
5058 if test -f ${srcdir}/config/$f
5059 then
5060 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
5062 done
5063 tmake_file="${tmake_file_}"
5066 # Likewise export definitions for libgcc_tm.h
5067 tm_file_=
5068 for f in ${tm_file}
5070 tm_file_="${tm_file_} \$(srcdir)/config/$f"
5071 done
5072 tm_file="${tm_file_}"
5076 # Map from thread model to thread header.
5078 case $target_thread_file in
5079 aix) thread_header=config/rs6000/gthr-aix.h ;;
5080 dce) thread_header=config/pa/gthr-dce.h ;;
5081 lynx) thread_header=config/gthr-lynx.h ;;
5082 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
5083 posix) thread_header=gthr-posix.h ;;
5084 rtems) thread_header=config/gthr-rtems.h ;;
5085 single) thread_header=gthr-single.h ;;
5086 tpf) thread_header=config/s390/gthr-tpf.h ;;
5087 vxworks) thread_header=config/gthr-vxworks.h ;;
5088 win32) thread_header=config/i386/gthr-win32.h ;;
5089 esac
5093 # Determine what GCC version number to use in filesystem paths.
5095 get_gcc_base_ver="cat"
5097 # Check whether --with-gcc-major-version-only was given.
5098 if test "${with_gcc_major_version_only+set}" = set; then :
5099 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5100 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
5108 # Substitute configuration variables
5118 # We need multilib support.
5119 ac_config_files="$ac_config_files Makefile"
5121 ac_config_commands="$ac_config_commands default"
5123 cat >confcache <<\_ACEOF
5124 # This file is a shell script that caches the results of configure
5125 # tests run on this system so they can be shared between configure
5126 # scripts and configure runs, see configure's option --config-cache.
5127 # It is not useful on other systems. If it contains results you don't
5128 # want to keep, you may remove or edit it.
5130 # config.status only pays attention to the cache file if you give it
5131 # the --recheck option to rerun configure.
5133 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5134 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5135 # following values.
5137 _ACEOF
5139 # The following way of writing the cache mishandles newlines in values,
5140 # but we know of no workaround that is simple, portable, and efficient.
5141 # So, we kill variables containing newlines.
5142 # Ultrix sh set writes to stderr and can't be redirected directly,
5143 # and sets the high bit in the cache file unless we assign to the vars.
5145 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5146 eval ac_val=\$$ac_var
5147 case $ac_val in #(
5148 *${as_nl}*)
5149 case $ac_var in #(
5150 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5151 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5152 esac
5153 case $ac_var in #(
5154 _ | IFS | as_nl) ;; #(
5155 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5156 *) { eval $ac_var=; unset $ac_var;} ;;
5157 esac ;;
5158 esac
5159 done
5161 (set) 2>&1 |
5162 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5163 *${as_nl}ac_space=\ *)
5164 # `set' does not quote correctly, so add quotes: double-quote
5165 # substitution turns \\\\ into \\, and sed turns \\ into \.
5166 sed -n \
5167 "s/'/'\\\\''/g;
5168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5169 ;; #(
5171 # `set' quotes correctly as required by POSIX, so do not add quotes.
5172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5174 esac |
5175 sort
5177 sed '
5178 /^ac_cv_env_/b end
5179 t clear
5180 :clear
5181 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5182 t end
5183 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5184 :end' >>confcache
5185 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5186 if test -w "$cache_file"; then
5187 test "x$cache_file" != "x/dev/null" &&
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5189 $as_echo "$as_me: updating cache $cache_file" >&6;}
5190 cat confcache >$cache_file
5191 else
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5193 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5196 rm -f confcache
5198 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5199 # Let make expand exec_prefix.
5200 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5202 DEFS=-DHAVE_CONFIG_H
5204 ac_libobjs=
5205 ac_ltlibobjs=
5206 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5207 # 1. Remove the extension, and $U if already installed.
5208 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5209 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5210 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5211 # will be set to the directory where LIBOBJS objects are built.
5212 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5213 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5214 done
5215 LIBOBJS=$ac_libobjs
5217 LTLIBOBJS=$ac_ltlibobjs
5221 : ${CONFIG_STATUS=./config.status}
5222 ac_write_fail=0
5223 ac_clean_files_save=$ac_clean_files
5224 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5226 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5227 as_write_fail=0
5228 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5229 #! $SHELL
5230 # Generated by $as_me.
5231 # Run this file to recreate the current configuration.
5232 # Compiler output produced by configure, useful for debugging
5233 # configure, is in config.log if it exists.
5235 debug=false
5236 ac_cs_recheck=false
5237 ac_cs_silent=false
5239 SHELL=\${CONFIG_SHELL-$SHELL}
5240 export SHELL
5241 _ASEOF
5242 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5243 ## -------------------- ##
5244 ## M4sh Initialization. ##
5245 ## -------------------- ##
5247 # Be more Bourne compatible
5248 DUALCASE=1; export DUALCASE # for MKS sh
5249 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5250 emulate sh
5251 NULLCMD=:
5252 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5253 # is contrary to our usage. Disable this feature.
5254 alias -g '${1+"$@"}'='"$@"'
5255 setopt NO_GLOB_SUBST
5256 else
5257 case `(set -o) 2>/dev/null` in #(
5258 *posix*) :
5259 set -o posix ;; #(
5260 *) :
5262 esac
5266 as_nl='
5268 export as_nl
5269 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5270 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5271 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5273 # Prefer a ksh shell builtin over an external printf program on Solaris,
5274 # but without wasting forks for bash or zsh.
5275 if test -z "$BASH_VERSION$ZSH_VERSION" \
5276 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5277 as_echo='print -r --'
5278 as_echo_n='print -rn --'
5279 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5280 as_echo='printf %s\n'
5281 as_echo_n='printf %s'
5282 else
5283 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5284 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5285 as_echo_n='/usr/ucb/echo -n'
5286 else
5287 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5288 as_echo_n_body='eval
5289 arg=$1;
5290 case $arg in #(
5291 *"$as_nl"*)
5292 expr "X$arg" : "X\\(.*\\)$as_nl";
5293 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5294 esac;
5295 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5297 export as_echo_n_body
5298 as_echo_n='sh -c $as_echo_n_body as_echo'
5300 export as_echo_body
5301 as_echo='sh -c $as_echo_body as_echo'
5304 # The user is always right.
5305 if test "${PATH_SEPARATOR+set}" != set; then
5306 PATH_SEPARATOR=:
5307 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5308 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5309 PATH_SEPARATOR=';'
5314 # IFS
5315 # We need space, tab and new line, in precisely that order. Quoting is
5316 # there to prevent editors from complaining about space-tab.
5317 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5318 # splitting by setting IFS to empty value.)
5319 IFS=" "" $as_nl"
5321 # Find who we are. Look in the path if we contain no directory separator.
5322 case $0 in #((
5323 *[\\/]* ) as_myself=$0 ;;
5324 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5330 done
5331 IFS=$as_save_IFS
5334 esac
5335 # We did not find ourselves, most probably we were run as `sh COMMAND'
5336 # in which case we are not to be found in the path.
5337 if test "x$as_myself" = x; then
5338 as_myself=$0
5340 if test ! -f "$as_myself"; then
5341 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5342 exit 1
5345 # Unset variables that we do not need and which cause bugs (e.g. in
5346 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5347 # suppresses any "Segmentation fault" message there. '((' could
5348 # trigger a bug in pdksh 5.2.14.
5349 for as_var in BASH_ENV ENV MAIL MAILPATH
5350 do eval test x\${$as_var+set} = xset \
5351 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5352 done
5353 PS1='$ '
5354 PS2='> '
5355 PS4='+ '
5357 # NLS nuisances.
5358 LC_ALL=C
5359 export LC_ALL
5360 LANGUAGE=C
5361 export LANGUAGE
5363 # CDPATH.
5364 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5367 # as_fn_error ERROR [LINENO LOG_FD]
5368 # ---------------------------------
5369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5371 # script with status $?, using 1 if that was 0.
5372 as_fn_error ()
5374 as_status=$?; test $as_status -eq 0 && as_status=1
5375 if test "$3"; then
5376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5379 $as_echo "$as_me: error: $1" >&2
5380 as_fn_exit $as_status
5381 } # as_fn_error
5384 # as_fn_set_status STATUS
5385 # -----------------------
5386 # Set $? to STATUS, without forking.
5387 as_fn_set_status ()
5389 return $1
5390 } # as_fn_set_status
5392 # as_fn_exit STATUS
5393 # -----------------
5394 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5395 as_fn_exit ()
5397 set +e
5398 as_fn_set_status $1
5399 exit $1
5400 } # as_fn_exit
5402 # as_fn_unset VAR
5403 # ---------------
5404 # Portably unset VAR.
5405 as_fn_unset ()
5407 { eval $1=; unset $1;}
5409 as_unset=as_fn_unset
5410 # as_fn_append VAR VALUE
5411 # ----------------------
5412 # Append the text in VALUE to the end of the definition contained in VAR. Take
5413 # advantage of any shell optimizations that allow amortized linear growth over
5414 # repeated appends, instead of the typical quadratic growth present in naive
5415 # implementations.
5416 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5417 eval 'as_fn_append ()
5419 eval $1+=\$2
5421 else
5422 as_fn_append ()
5424 eval $1=\$$1\$2
5426 fi # as_fn_append
5428 # as_fn_arith ARG...
5429 # ------------------
5430 # Perform arithmetic evaluation on the ARGs, and store the result in the
5431 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5432 # must be portable across $(()) and expr.
5433 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5434 eval 'as_fn_arith ()
5436 as_val=$(( $* ))
5438 else
5439 as_fn_arith ()
5441 as_val=`expr "$@" || test $? -eq 1`
5443 fi # as_fn_arith
5446 if expr a : '\(a\)' >/dev/null 2>&1 &&
5447 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5448 as_expr=expr
5449 else
5450 as_expr=false
5453 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5454 as_basename=basename
5455 else
5456 as_basename=false
5459 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5460 as_dirname=dirname
5461 else
5462 as_dirname=false
5465 as_me=`$as_basename -- "$0" ||
5466 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5467 X"$0" : 'X\(//\)$' \| \
5468 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5469 $as_echo X/"$0" |
5470 sed '/^.*\/\([^/][^/]*\)\/*$/{
5471 s//\1/
5474 /^X\/\(\/\/\)$/{
5475 s//\1/
5478 /^X\/\(\/\).*/{
5479 s//\1/
5482 s/.*/./; q'`
5484 # Avoid depending upon Character Ranges.
5485 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5486 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5487 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5488 as_cr_digits='0123456789'
5489 as_cr_alnum=$as_cr_Letters$as_cr_digits
5491 ECHO_C= ECHO_N= ECHO_T=
5492 case `echo -n x` in #(((((
5493 -n*)
5494 case `echo 'xy\c'` in
5495 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5496 xy) ECHO_C='\c';;
5497 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5498 ECHO_T=' ';;
5499 esac;;
5501 ECHO_N='-n';;
5502 esac
5504 rm -f conf$$ conf$$.exe conf$$.file
5505 if test -d conf$$.dir; then
5506 rm -f conf$$.dir/conf$$.file
5507 else
5508 rm -f conf$$.dir
5509 mkdir conf$$.dir 2>/dev/null
5511 if (echo >conf$$.file) 2>/dev/null; then
5512 if ln -s conf$$.file conf$$ 2>/dev/null; then
5513 as_ln_s='ln -s'
5514 # ... but there are two gotchas:
5515 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5516 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5517 # In both cases, we have to default to `cp -p'.
5518 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5519 as_ln_s='cp -p'
5520 elif ln conf$$.file conf$$ 2>/dev/null; then
5521 as_ln_s=ln
5522 else
5523 as_ln_s='cp -p'
5525 else
5526 as_ln_s='cp -p'
5528 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5529 rmdir conf$$.dir 2>/dev/null
5532 # as_fn_mkdir_p
5533 # -------------
5534 # Create "$as_dir" as a directory, including parents if necessary.
5535 as_fn_mkdir_p ()
5538 case $as_dir in #(
5539 -*) as_dir=./$as_dir;;
5540 esac
5541 test -d "$as_dir" || eval $as_mkdir_p || {
5542 as_dirs=
5543 while :; do
5544 case $as_dir in #(
5545 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5546 *) as_qdir=$as_dir;;
5547 esac
5548 as_dirs="'$as_qdir' $as_dirs"
5549 as_dir=`$as_dirname -- "$as_dir" ||
5550 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5551 X"$as_dir" : 'X\(//\)[^/]' \| \
5552 X"$as_dir" : 'X\(//\)$' \| \
5553 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5554 $as_echo X"$as_dir" |
5555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5556 s//\1/
5559 /^X\(\/\/\)[^/].*/{
5560 s//\1/
5563 /^X\(\/\/\)$/{
5564 s//\1/
5567 /^X\(\/\).*/{
5568 s//\1/
5571 s/.*/./; q'`
5572 test -d "$as_dir" && break
5573 done
5574 test -z "$as_dirs" || eval "mkdir $as_dirs"
5575 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5578 } # as_fn_mkdir_p
5579 if mkdir -p . 2>/dev/null; then
5580 as_mkdir_p='mkdir -p "$as_dir"'
5581 else
5582 test -d ./-p && rmdir ./-p
5583 as_mkdir_p=false
5586 if test -x / >/dev/null 2>&1; then
5587 as_test_x='test -x'
5588 else
5589 if ls -dL / >/dev/null 2>&1; then
5590 as_ls_L_option=L
5591 else
5592 as_ls_L_option=
5594 as_test_x='
5595 eval sh -c '\''
5596 if test -d "$1"; then
5597 test -d "$1/.";
5598 else
5599 case $1 in #(
5600 -*)set "./$1";;
5601 esac;
5602 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5603 ???[sx]*):;;*)false;;esac;fi
5604 '\'' sh
5607 as_executable_p=$as_test_x
5609 # Sed expression to map a string onto a valid CPP name.
5610 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5612 # Sed expression to map a string onto a valid variable name.
5613 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5616 exec 6>&1
5617 ## ----------------------------------- ##
5618 ## Main body of $CONFIG_STATUS script. ##
5619 ## ----------------------------------- ##
5620 _ASEOF
5621 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5624 # Save the log message, to keep $0 and so on meaningful, and to
5625 # report actual input values of CONFIG_FILES etc. instead of their
5626 # values after options handling.
5627 ac_log="
5628 This file was extended by GNU C Runtime Library $as_me 1.0, which was
5629 generated by GNU Autoconf 2.64. Invocation command line was
5631 CONFIG_FILES = $CONFIG_FILES
5632 CONFIG_HEADERS = $CONFIG_HEADERS
5633 CONFIG_LINKS = $CONFIG_LINKS
5634 CONFIG_COMMANDS = $CONFIG_COMMANDS
5635 $ $0 $@
5637 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5640 _ACEOF
5642 case $ac_config_files in *"
5643 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5644 esac
5646 case $ac_config_headers in *"
5647 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5648 esac
5651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5652 # Files that config.status was made for.
5653 config_files="$ac_config_files"
5654 config_headers="$ac_config_headers"
5655 config_commands="$ac_config_commands"
5657 _ACEOF
5659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5660 ac_cs_usage="\
5661 \`$as_me' instantiates files and other configuration actions
5662 from templates according to the current configuration. Unless the files
5663 and actions are specified as TAGs, all are instantiated by default.
5665 Usage: $0 [OPTION]... [TAG]...
5667 -h, --help print this help, then exit
5668 -V, --version print version number and configuration settings, then exit
5669 -q, --quiet, --silent
5670 do not print progress messages
5671 -d, --debug don't remove temporary files
5672 --recheck update $as_me by reconfiguring in the same conditions
5673 --file=FILE[:TEMPLATE]
5674 instantiate the configuration file FILE
5675 --header=FILE[:TEMPLATE]
5676 instantiate the configuration header FILE
5678 Configuration files:
5679 $config_files
5681 Configuration headers:
5682 $config_headers
5684 Configuration commands:
5685 $config_commands
5687 Report bugs to the package provider.
5688 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
5689 General help using GNU software: <http://www.gnu.org/gethelp/>."
5691 _ACEOF
5692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5693 ac_cs_version="\\
5694 GNU C Runtime Library config.status 1.0
5695 configured by $0, generated by GNU Autoconf 2.64,
5696 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5698 Copyright (C) 2009 Free Software Foundation, Inc.
5699 This config.status script is free software; the Free Software Foundation
5700 gives unlimited permission to copy, distribute and modify it."
5702 ac_pwd='$ac_pwd'
5703 srcdir='$srcdir'
5704 INSTALL='$INSTALL'
5705 AWK='$AWK'
5706 test -n "\$AWK" || AWK=awk
5707 _ACEOF
5709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5710 # The default lists apply if the user does not specify any file.
5711 ac_need_defaults=:
5712 while test $# != 0
5714 case $1 in
5715 --*=*)
5716 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5717 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5718 ac_shift=:
5721 ac_option=$1
5722 ac_optarg=$2
5723 ac_shift=shift
5725 esac
5727 case $ac_option in
5728 # Handling of the options.
5729 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5730 ac_cs_recheck=: ;;
5731 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5732 $as_echo "$ac_cs_version"; exit ;;
5733 --debug | --debu | --deb | --de | --d | -d )
5734 debug=: ;;
5735 --file | --fil | --fi | --f )
5736 $ac_shift
5737 case $ac_optarg in
5738 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5739 esac
5740 as_fn_append CONFIG_FILES " '$ac_optarg'"
5741 ac_need_defaults=false;;
5742 --header | --heade | --head | --hea )
5743 $ac_shift
5744 case $ac_optarg in
5745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5746 esac
5747 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5748 ac_need_defaults=false;;
5749 --he | --h)
5750 # Conflict between --help and --header
5751 as_fn_error "ambiguous option: \`$1'
5752 Try \`$0 --help' for more information.";;
5753 --help | --hel | -h )
5754 $as_echo "$ac_cs_usage"; exit ;;
5755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5756 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5757 ac_cs_silent=: ;;
5759 # This is an error.
5760 -*) as_fn_error "unrecognized option: \`$1'
5761 Try \`$0 --help' for more information." ;;
5763 *) as_fn_append ac_config_targets " $1"
5764 ac_need_defaults=false ;;
5766 esac
5767 shift
5768 done
5770 ac_configure_extra_args=
5772 if $ac_cs_silent; then
5773 exec 6>/dev/null
5774 ac_configure_extra_args="$ac_configure_extra_args --silent"
5777 _ACEOF
5778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5779 if \$ac_cs_recheck; then
5780 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5781 shift
5782 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5783 CONFIG_SHELL='$SHELL'
5784 export CONFIG_SHELL
5785 exec "\$@"
5788 _ACEOF
5789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5790 exec 5>>config.log
5792 echo
5793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5794 ## Running $as_me. ##
5795 _ASBOX
5796 $as_echo "$ac_log"
5797 } >&5
5799 _ACEOF
5800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5802 # INIT-COMMANDS
5804 srcdir=${srcdir}
5805 host=${host}
5806 with_target_subdir=${with_target_subdir}
5807 with_multisubdir=${with_multisubdir}
5808 ac_configure_args="--enable-multilib ${ac_configure_args}"
5809 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5810 libgcc_topdir=${libgcc_topdir}
5811 CC="${CC}"
5814 _ACEOF
5816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5818 # Handling of arguments.
5819 for ac_config_target in $ac_config_targets
5821 case $ac_config_target in
5822 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
5823 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5824 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5826 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5827 esac
5828 done
5831 # If the user did not use the arguments to specify the items to instantiate,
5832 # then the envvar interface is used. Set only those that are not.
5833 # We use the long form for the default assignment because of an extremely
5834 # bizarre bug on SunOS 4.1.3.
5835 if $ac_need_defaults; then
5836 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5837 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5838 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5841 # Have a temporary directory for convenience. Make it in the build tree
5842 # simply because there is no reason against having it here, and in addition,
5843 # creating and moving files from /tmp can sometimes cause problems.
5844 # Hook for its removal unless debugging.
5845 # Note that there is a small window in which the directory will not be cleaned:
5846 # after its creation but before its name has been assigned to `$tmp'.
5847 $debug ||
5849 tmp=
5850 trap 'exit_status=$?
5851 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5853 trap 'as_fn_exit 1' 1 2 13 15
5855 # Create a (secure) tmp directory for tmp files.
5858 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5859 test -n "$tmp" && test -d "$tmp"
5860 } ||
5862 tmp=./conf$$-$RANDOM
5863 (umask 077 && mkdir "$tmp")
5864 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5866 # Set up the scripts for CONFIG_FILES section.
5867 # No need to generate them if there are no CONFIG_FILES.
5868 # This happens for instance with `./config.status config.h'.
5869 if test -n "$CONFIG_FILES"; then
5872 ac_cr=`echo X | tr X '\015'`
5873 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5874 # But we know of no other shell where ac_cr would be empty at this
5875 # point, so we can use a bashism as a fallback.
5876 if test "x$ac_cr" = x; then
5877 eval ac_cr=\$\'\\r\'
5879 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5880 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5881 ac_cs_awk_cr='\r'
5882 else
5883 ac_cs_awk_cr=$ac_cr
5886 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5887 _ACEOF
5891 echo "cat >conf$$subs.awk <<_ACEOF" &&
5892 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5893 echo "_ACEOF"
5894 } >conf$$subs.sh ||
5895 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5896 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5897 ac_delim='%!_!# '
5898 for ac_last_try in false false false false false :; do
5899 . ./conf$$subs.sh ||
5900 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5902 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5903 if test $ac_delim_n = $ac_delim_num; then
5904 break
5905 elif $ac_last_try; then
5906 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5907 else
5908 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5910 done
5911 rm -f conf$$subs.sh
5913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5914 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5915 _ACEOF
5916 sed -n '
5918 s/^/S["/; s/!.*/"]=/
5921 s/^[^!]*!//
5922 :repl
5923 t repl
5924 s/'"$ac_delim"'$//
5925 t delim
5928 s/\(.\{148\}\).*/\1/
5929 t more1
5930 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5933 b repl
5934 :more1
5935 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5938 s/.\{148\}//
5939 t nl
5940 :delim
5942 s/\(.\{148\}\).*/\1/
5943 t more2
5944 s/["\\]/\\&/g; s/^/"/; s/$/"/
5947 :more2
5948 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5951 s/.\{148\}//
5952 t delim
5953 ' <conf$$subs.awk | sed '
5954 /^[^""]/{
5956 s/\n//
5958 ' >>$CONFIG_STATUS || ac_write_fail=1
5959 rm -f conf$$subs.awk
5960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5961 _ACAWK
5962 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5963 for (key in S) S_is_set[key] = 1
5964 FS = "\a"
5968 line = $ 0
5969 nfields = split(line, field, "@")
5970 substed = 0
5971 len = length(field[1])
5972 for (i = 2; i < nfields; i++) {
5973 key = field[i]
5974 keylen = length(key)
5975 if (S_is_set[key]) {
5976 value = S[key]
5977 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5978 len += length(value) + length(field[++i])
5979 substed = 1
5980 } else
5981 len += 1 + keylen
5984 print line
5987 _ACAWK
5988 _ACEOF
5989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5990 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5991 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5992 else
5994 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5995 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5996 _ACEOF
5998 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5999 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6000 # trailing colons and then remove the whole line if VPATH becomes empty
6001 # (actually we leave an empty line to preserve line numbers).
6002 if test "x$srcdir" = x.; then
6003 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6004 s/:*\$(srcdir):*/:/
6005 s/:*\${srcdir}:*/:/
6006 s/:*@srcdir@:*/:/
6007 s/^\([^=]*=[ ]*\):*/\1/
6008 s/:*$//
6009 s/^[^=]*=[ ]*$//
6013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6014 fi # test -n "$CONFIG_FILES"
6016 # Set up the scripts for CONFIG_HEADERS section.
6017 # No need to generate them if there are no CONFIG_HEADERS.
6018 # This happens for instance with `./config.status Makefile'.
6019 if test -n "$CONFIG_HEADERS"; then
6020 cat >"$tmp/defines.awk" <<\_ACAWK ||
6021 BEGIN {
6022 _ACEOF
6024 # Transform confdefs.h into an awk script `defines.awk', embedded as
6025 # here-document in config.status, that substitutes the proper values into
6026 # config.h.in to produce config.h.
6028 # Create a delimiter string that does not exist in confdefs.h, to ease
6029 # handling of long lines.
6030 ac_delim='%!_!# '
6031 for ac_last_try in false false :; do
6032 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6033 if test -z "$ac_t"; then
6034 break
6035 elif $ac_last_try; then
6036 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6037 else
6038 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6040 done
6042 # For the awk script, D is an array of macro values keyed by name,
6043 # likewise P contains macro parameters if any. Preserve backslash
6044 # newline sequences.
6046 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6047 sed -n '
6048 s/.\{148\}/&'"$ac_delim"'/g
6049 t rset
6050 :rset
6051 s/^[ ]*#[ ]*define[ ][ ]*/ /
6052 t def
6054 :def
6055 s/\\$//
6056 t bsnl
6057 s/["\\]/\\&/g
6058 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6059 D["\1"]=" \3"/p
6060 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6062 :bsnl
6063 s/["\\]/\\&/g
6064 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6065 D["\1"]=" \3\\\\\\n"\\/p
6066 t cont
6067 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6068 t cont
6070 :cont
6072 s/.\{148\}/&'"$ac_delim"'/g
6073 t clear
6074 :clear
6075 s/\\$//
6076 t bsnlc
6077 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6079 :bsnlc
6080 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6081 b cont
6082 ' <confdefs.h | sed '
6083 s/'"$ac_delim"'/"\\\
6084 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6087 for (key in D) D_is_set[key] = 1
6088 FS = "\a"
6090 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6091 line = \$ 0
6092 split(line, arg, " ")
6093 if (arg[1] == "#") {
6094 defundef = arg[2]
6095 mac1 = arg[3]
6096 } else {
6097 defundef = substr(arg[1], 2)
6098 mac1 = arg[2]
6100 split(mac1, mac2, "(") #)
6101 macro = mac2[1]
6102 prefix = substr(line, 1, index(line, defundef) - 1)
6103 if (D_is_set[macro]) {
6104 # Preserve the white space surrounding the "#".
6105 print prefix "define", macro P[macro] D[macro]
6106 next
6107 } else {
6108 # Replace #undef with comments. This is necessary, for example,
6109 # in the case of _POSIX_SOURCE, which is predefined and required
6110 # on some systems where configure will not decide to define it.
6111 if (defundef == "undef") {
6112 print "/*", prefix defundef, macro, "*/"
6113 next
6117 { print }
6118 _ACAWK
6119 _ACEOF
6120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6121 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6122 fi # test -n "$CONFIG_HEADERS"
6125 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6126 shift
6127 for ac_tag
6129 case $ac_tag in
6130 :[FHLC]) ac_mode=$ac_tag; continue;;
6131 esac
6132 case $ac_mode$ac_tag in
6133 :[FHL]*:*);;
6134 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6135 :[FH]-) ac_tag=-:-;;
6136 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6137 esac
6138 ac_save_IFS=$IFS
6139 IFS=:
6140 set x $ac_tag
6141 IFS=$ac_save_IFS
6142 shift
6143 ac_file=$1
6144 shift
6146 case $ac_mode in
6147 :L) ac_source=$1;;
6148 :[FH])
6149 ac_file_inputs=
6150 for ac_f
6152 case $ac_f in
6153 -) ac_f="$tmp/stdin";;
6154 *) # Look for the file first in the build tree, then in the source tree
6155 # (if the path is not absolute). The absolute path cannot be DOS-style,
6156 # because $ac_f cannot contain `:'.
6157 test -f "$ac_f" ||
6158 case $ac_f in
6159 [\\/$]*) false;;
6160 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6161 esac ||
6162 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6163 esac
6164 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6165 as_fn_append ac_file_inputs " '$ac_f'"
6166 done
6168 # Let's still pretend it is `configure' which instantiates (i.e., don't
6169 # use $as_me), people would be surprised to read:
6170 # /* config.h. Generated by config.status. */
6171 configure_input='Generated from '`
6172 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6173 `' by configure.'
6174 if test x"$ac_file" != x-; then
6175 configure_input="$ac_file. $configure_input"
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6177 $as_echo "$as_me: creating $ac_file" >&6;}
6179 # Neutralize special characters interpreted by sed in replacement strings.
6180 case $configure_input in #(
6181 *\&* | *\|* | *\\* )
6182 ac_sed_conf_input=`$as_echo "$configure_input" |
6183 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6184 *) ac_sed_conf_input=$configure_input;;
6185 esac
6187 case $ac_tag in
6188 *:-:* | *:-) cat >"$tmp/stdin" \
6189 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6190 esac
6192 esac
6194 ac_dir=`$as_dirname -- "$ac_file" ||
6195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6196 X"$ac_file" : 'X\(//\)[^/]' \| \
6197 X"$ac_file" : 'X\(//\)$' \| \
6198 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6199 $as_echo X"$ac_file" |
6200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6201 s//\1/
6204 /^X\(\/\/\)[^/].*/{
6205 s//\1/
6208 /^X\(\/\/\)$/{
6209 s//\1/
6212 /^X\(\/\).*/{
6213 s//\1/
6216 s/.*/./; q'`
6217 as_dir="$ac_dir"; as_fn_mkdir_p
6218 ac_builddir=.
6220 case "$ac_dir" in
6221 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6223 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6224 # A ".." for each directory in $ac_dir_suffix.
6225 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6226 case $ac_top_builddir_sub in
6227 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6228 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6229 esac ;;
6230 esac
6231 ac_abs_top_builddir=$ac_pwd
6232 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6233 # for backward compatibility:
6234 ac_top_builddir=$ac_top_build_prefix
6236 case $srcdir in
6237 .) # We are building in place.
6238 ac_srcdir=.
6239 ac_top_srcdir=$ac_top_builddir_sub
6240 ac_abs_top_srcdir=$ac_pwd ;;
6241 [\\/]* | ?:[\\/]* ) # Absolute name.
6242 ac_srcdir=$srcdir$ac_dir_suffix;
6243 ac_top_srcdir=$srcdir
6244 ac_abs_top_srcdir=$srcdir ;;
6245 *) # Relative name.
6246 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6247 ac_top_srcdir=$ac_top_build_prefix$srcdir
6248 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6249 esac
6250 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6253 case $ac_mode in
6256 # CONFIG_FILE
6259 case $INSTALL in
6260 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6261 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6262 esac
6263 _ACEOF
6265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6266 # If the template does not know about datarootdir, expand it.
6267 # FIXME: This hack should be removed a few years after 2.60.
6268 ac_datarootdir_hack=; ac_datarootdir_seen=
6269 ac_sed_dataroot='
6270 /datarootdir/ {
6274 /@datadir@/p
6275 /@docdir@/p
6276 /@infodir@/p
6277 /@localedir@/p
6278 /@mandir@/p'
6279 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6280 *datarootdir*) ac_datarootdir_seen=yes;;
6281 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6283 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6284 _ACEOF
6285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6286 ac_datarootdir_hack='
6287 s&@datadir@&$datadir&g
6288 s&@docdir@&$docdir&g
6289 s&@infodir@&$infodir&g
6290 s&@localedir@&$localedir&g
6291 s&@mandir@&$mandir&g
6292 s&\\\${datarootdir}&$datarootdir&g' ;;
6293 esac
6294 _ACEOF
6296 # Neutralize VPATH when `$srcdir' = `.'.
6297 # Shell code in configure.ac might set extrasub.
6298 # FIXME: do we really want to maintain this feature?
6299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6300 ac_sed_extra="$ac_vpsub
6301 $extrasub
6302 _ACEOF
6303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6306 s|@configure_input@|$ac_sed_conf_input|;t t
6307 s&@top_builddir@&$ac_top_builddir_sub&;t t
6308 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6309 s&@srcdir@&$ac_srcdir&;t t
6310 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6311 s&@top_srcdir@&$ac_top_srcdir&;t t
6312 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6313 s&@builddir@&$ac_builddir&;t t
6314 s&@abs_builddir@&$ac_abs_builddir&;t t
6315 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6316 s&@INSTALL@&$ac_INSTALL&;t t
6317 $ac_datarootdir_hack
6319 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6320 || as_fn_error "could not create $ac_file" "$LINENO" 5
6322 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6323 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6324 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6326 which seems to be undefined. Please make sure it is defined." >&5
6327 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6328 which seems to be undefined. Please make sure it is defined." >&2;}
6330 rm -f "$tmp/stdin"
6331 case $ac_file in
6332 -) cat "$tmp/out" && rm -f "$tmp/out";;
6333 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6334 esac \
6335 || as_fn_error "could not create $ac_file" "$LINENO" 5
6339 # CONFIG_HEADER
6341 if test x"$ac_file" != x-; then
6343 $as_echo "/* $configure_input */" \
6344 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6345 } >"$tmp/config.h" \
6346 || as_fn_error "could not create $ac_file" "$LINENO" 5
6347 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6349 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6350 else
6351 rm -f "$ac_file"
6352 mv "$tmp/config.h" "$ac_file" \
6353 || as_fn_error "could not create $ac_file" "$LINENO" 5
6355 else
6356 $as_echo "/* $configure_input */" \
6357 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6358 || as_fn_error "could not create -" "$LINENO" 5
6362 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6363 $as_echo "$as_me: executing $ac_file commands" >&6;}
6365 esac
6368 case $ac_file$ac_mode in
6369 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6370 if test -n "$CONFIG_FILES"; then
6371 # FIXME: We shouldn't need to set ac_file
6372 ac_file=Makefile
6373 . ${libgcc_topdir}/config-ml.in
6374 fi ;;
6376 esac
6377 done # for ac_tag
6380 as_fn_exit 0
6381 _ACEOF
6382 ac_clean_files=$ac_clean_files_save
6384 test $ac_write_fail = 0 ||
6385 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6388 # configure is writing to config.log, and then calls config.status.
6389 # config.status does its own redirection, appending to config.log.
6390 # Unfortunately, on DOS this fails, as config.log is still kept open
6391 # by configure, so config.status won't be able to write to it; its
6392 # output is simply discarded. So we exec the FD to /dev/null,
6393 # effectively closing config.log, so it can be properly (re)opened and
6394 # appended to by config.status. When coming back to configure, we
6395 # need to make the FD available again.
6396 if test "$no_create" != yes; then
6397 ac_cs_success=:
6398 ac_config_status_args=
6399 test "$silent" = yes &&
6400 ac_config_status_args="$ac_config_status_args --quiet"
6401 exec 5>/dev/null
6402 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6403 exec 5>>config.log
6404 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6405 # would make configure fail if this is the last instruction.
6406 $ac_cs_success || as_fn_exit $?
6408 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6410 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}