RISC-V: Enable vectorization for vect-early-break_124-pr114403.c
[official-gcc.git] / libgcc / configure
bloba69d314374a35a379077e6fc8429ad0aaf91b2ab
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU C Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME='GNU C Runtime Library'
579 PACKAGE_TARNAME='libgcc'
580 PACKAGE_VERSION='1.0'
581 PACKAGE_STRING='GNU C Runtime Library 1.0'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL='http://www.gnu.org/software/libgcc/'
585 ac_unique_file="static-object.mk"
586 ac_includes_default='/* none */'
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 md_unwind_header
590 unwind_header
591 enable_execute_stack
592 asm_hidden_op
593 extra_parts
594 cpu_type
595 get_gcc_base_ver
596 HAVE_STRUB_SUPPORT
597 thread_header
598 tm_defines
599 tm_file
600 tmake_file
601 sfp_machine_header
602 set_use_emutls
603 set_have_cc_tls
604 vis_hide
605 solaris_ld_v2_maps
606 real_host_noncanonical
607 accel_dir_suffix
608 use_tm_clone_registry
609 force_explicit_eh_registry
610 CET_FLAGS
611 fixed_point
612 enable_decimal_float
613 decimal_float
614 EGREP
615 GREP
616 long_double_type_size
617 double_type_size
619 OBJEXT
620 EXEEXT
621 ac_ct_CC
622 CPPFLAGS
623 LDFLAGS
624 CFLAGS
626 LN_S
627 STRIP
628 RANLIB
630 LIPO
632 toolexeclibdir
633 toolexecdir
634 enable_gcov
635 target_subdir
636 host_subdir
637 build_subdir
638 build_libsubdir
639 target_noncanonical
640 host_noncanonical
642 INSTALL_DATA
643 INSTALL_SCRIPT
644 INSTALL_PROGRAM
645 MAINT
646 slibdir
647 PICFLAG
648 host_os
649 host_vendor
650 host_cpu
651 host
652 build_os
653 build_vendor
654 build_cpu
655 build
656 with_aix_soname
657 enable_vtable_verify
658 enable_shared
659 libgcc_topdir
660 target_alias
661 host_alias
662 build_alias
663 LIBS
664 ECHO_T
665 ECHO_N
666 ECHO_C
667 DEFS
668 mandir
669 localedir
670 libdir
671 psdir
672 pdfdir
673 dvidir
674 htmldir
675 infodir
676 docdir
677 oldincludedir
678 includedir
679 localstatedir
680 sharedstatedir
681 sysconfdir
682 datadir
683 datarootdir
684 libexecdir
685 sbindir
686 bindir
687 program_transform_name
688 prefix
689 exec_prefix
690 PACKAGE_URL
691 PACKAGE_BUGREPORT
692 PACKAGE_STRING
693 PACKAGE_VERSION
694 PACKAGE_TARNAME
695 PACKAGE_NAME
696 PATH_SEPARATOR
697 SHELL'
698 ac_subst_files=''
699 ac_user_opts='
700 enable_option_checking
701 with_target_subdir
702 with_cross_host
703 with_ld
704 enable_shared
705 enable_vtable_verify
706 with_aix_soname
707 enable_version_specific_runtime_libs
708 with_toolexeclibdir
709 with_slibdir
710 enable_maintainer_mode
711 with_build_libsubdir
712 enable_gcov
713 enable_largefile
714 enable_decimal_float
715 with_system_libunwind
716 enable_cet
717 enable_explicit_exception_frame_registration
718 enable_tm_clone_registry
719 with_glibc_version
720 enable_tls
721 with_gcc_major_version_only
723 ac_precious_vars='build_alias
724 host_alias
725 target_alias
727 CFLAGS
728 LDFLAGS
729 LIBS
730 CPPFLAGS
731 CPP'
734 # Initialize some variables set by options.
735 ac_init_help=
736 ac_init_version=false
737 ac_unrecognized_opts=
738 ac_unrecognized_sep=
739 # The variables have the same names as the options, with
740 # dashes changed to underlines.
741 cache_file=/dev/null
742 exec_prefix=NONE
743 no_create=
744 no_recursion=
745 prefix=NONE
746 program_prefix=NONE
747 program_suffix=NONE
748 program_transform_name=s,x,x,
749 silent=
750 site=
751 srcdir=
752 verbose=
753 x_includes=NONE
754 x_libraries=NONE
756 # Installation directory options.
757 # These are left unexpanded so users can "make install exec_prefix=/foo"
758 # and all the variables that are supposed to be based on exec_prefix
759 # by default will actually change.
760 # Use braces instead of parens because sh, perl, etc. also accept them.
761 # (The list follows the same order as the GNU Coding Standards.)
762 bindir='${exec_prefix}/bin'
763 sbindir='${exec_prefix}/sbin'
764 libexecdir='${exec_prefix}/libexec'
765 datarootdir='${prefix}/share'
766 datadir='${datarootdir}'
767 sysconfdir='${prefix}/etc'
768 sharedstatedir='${prefix}/com'
769 localstatedir='${prefix}/var'
770 includedir='${prefix}/include'
771 oldincludedir='/usr/include'
772 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
773 infodir='${datarootdir}/info'
774 htmldir='${docdir}'
775 dvidir='${docdir}'
776 pdfdir='${docdir}'
777 psdir='${docdir}'
778 libdir='${exec_prefix}/lib'
779 localedir='${datarootdir}/locale'
780 mandir='${datarootdir}/man'
782 ac_prev=
783 ac_dashdash=
784 for ac_option
786 # If the previous option needs an argument, assign it.
787 if test -n "$ac_prev"; then
788 eval $ac_prev=\$ac_option
789 ac_prev=
790 continue
793 case $ac_option in
794 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795 *=) ac_optarg= ;;
796 *) ac_optarg=yes ;;
797 esac
799 # Accept the important Cygnus configure options, so we can diagnose typos.
801 case $ac_dashdash$ac_option in
803 ac_dashdash=yes ;;
805 -bindir | --bindir | --bindi | --bind | --bin | --bi)
806 ac_prev=bindir ;;
807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
808 bindir=$ac_optarg ;;
810 -build | --build | --buil | --bui | --bu)
811 ac_prev=build_alias ;;
812 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
813 build_alias=$ac_optarg ;;
815 -cache-file | --cache-file | --cache-fil | --cache-fi \
816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
817 ac_prev=cache_file ;;
818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
820 cache_file=$ac_optarg ;;
822 --config-cache | -C)
823 cache_file=config.cache ;;
825 -datadir | --datadir | --datadi | --datad)
826 ac_prev=datadir ;;
827 -datadir=* | --datadir=* | --datadi=* | --datad=*)
828 datadir=$ac_optarg ;;
830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
831 | --dataroo | --dataro | --datar)
832 ac_prev=datarootdir ;;
833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
835 datarootdir=$ac_optarg ;;
837 -disable-* | --disable-*)
838 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
841 as_fn_error $? "invalid feature name: $ac_useropt"
842 ac_useropt_orig=$ac_useropt
843 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
844 case $ac_user_opts in
846 "enable_$ac_useropt"
847 "*) ;;
848 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
849 ac_unrecognized_sep=', ';;
850 esac
851 eval enable_$ac_useropt=no ;;
853 -docdir | --docdir | --docdi | --doc | --do)
854 ac_prev=docdir ;;
855 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
856 docdir=$ac_optarg ;;
858 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
859 ac_prev=dvidir ;;
860 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
861 dvidir=$ac_optarg ;;
863 -enable-* | --enable-*)
864 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867 as_fn_error $? "invalid feature name: $ac_useropt"
868 ac_useropt_orig=$ac_useropt
869 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870 case $ac_user_opts in
872 "enable_$ac_useropt"
873 "*) ;;
874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
875 ac_unrecognized_sep=', ';;
876 esac
877 eval enable_$ac_useropt=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error $? "invalid package name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "with_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval with_$ac_useropt=\$ac_optarg ;;
1083 -without-* | --without-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid package name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1092 "with_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=no ;;
1099 --x)
1100 # Obsolete; use --with-x.
1101 with_x=yes ;;
1103 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1104 | --x-incl | --x-inc | --x-in | --x-i)
1105 ac_prev=x_includes ;;
1106 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1107 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1108 x_includes=$ac_optarg ;;
1110 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1111 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1112 ac_prev=x_libraries ;;
1113 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1114 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1115 x_libraries=$ac_optarg ;;
1117 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1118 Try \`$0 --help' for more information"
1121 *=*)
1122 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1123 # Reject names that are not valid shell variable names.
1124 case $ac_envvar in #(
1125 '' | [0-9]* | *[!_$as_cr_alnum]* )
1126 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1127 esac
1128 eval $ac_envvar=\$ac_optarg
1129 export $ac_envvar ;;
1132 # FIXME: should be removed in autoconf 3.0.
1133 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1134 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1135 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1136 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1139 esac
1140 done
1142 if test -n "$ac_prev"; then
1143 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1144 as_fn_error $? "missing argument to $ac_option"
1147 if test -n "$ac_unrecognized_opts"; then
1148 case $enable_option_checking in
1149 no) ;;
1150 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1151 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1152 esac
1155 # Check all directory arguments for consistency.
1156 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1157 datadir sysconfdir sharedstatedir localstatedir includedir \
1158 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1159 libdir localedir mandir
1161 eval ac_val=\$$ac_var
1162 # Remove trailing slashes.
1163 case $ac_val in
1164 */ )
1165 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1166 eval $ac_var=\$ac_val;;
1167 esac
1168 # Be sure to have absolute directory names.
1169 case $ac_val in
1170 [\\/$]* | ?:[\\/]* ) continue;;
1171 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1172 esac
1173 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1174 done
1176 # There might be people who depend on the old broken behavior: `$host'
1177 # used to hold the argument of --host etc.
1178 # FIXME: To remove some day.
1179 build=$build_alias
1180 host=$host_alias
1181 target=$target_alias
1183 # FIXME: To remove some day.
1184 if test "x$host_alias" != x; then
1185 if test "x$build_alias" = x; then
1186 cross_compiling=maybe
1187 elif test "x$build_alias" != "x$host_alias"; then
1188 cross_compiling=yes
1192 ac_tool_prefix=
1193 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1195 test "$silent" = yes && exec 6>/dev/null
1198 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1199 ac_ls_di=`ls -di .` &&
1200 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1201 as_fn_error $? "working directory cannot be determined"
1202 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1203 as_fn_error $? "pwd does not report name of working directory"
1206 # Find the source files, if location was not specified.
1207 if test -z "$srcdir"; then
1208 ac_srcdir_defaulted=yes
1209 # Try the directory containing this script, then the parent directory.
1210 ac_confdir=`$as_dirname -- "$as_myself" ||
1211 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1212 X"$as_myself" : 'X\(//\)[^/]' \| \
1213 X"$as_myself" : 'X\(//\)$' \| \
1214 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1215 $as_echo X"$as_myself" |
1216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1217 s//\1/
1220 /^X\(\/\/\)[^/].*/{
1221 s//\1/
1224 /^X\(\/\/\)$/{
1225 s//\1/
1228 /^X\(\/\).*/{
1229 s//\1/
1232 s/.*/./; q'`
1233 srcdir=$ac_confdir
1234 if test ! -r "$srcdir/$ac_unique_file"; then
1235 srcdir=..
1237 else
1238 ac_srcdir_defaulted=no
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1241 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1242 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1244 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1245 ac_abs_confdir=`(
1246 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1247 pwd)`
1248 # When building in place, set srcdir=.
1249 if test "$ac_abs_confdir" = "$ac_pwd"; then
1250 srcdir=.
1252 # Remove unnecessary trailing slashes from srcdir.
1253 # Double slashes in file names in object file debugging info
1254 # mess up M-x gdb in Emacs.
1255 case $srcdir in
1256 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1257 esac
1258 for ac_var in $ac_precious_vars; do
1259 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1260 eval ac_env_${ac_var}_value=\$${ac_var}
1261 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1262 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1263 done
1266 # Report the --help message.
1268 if test "$ac_init_help" = "long"; then
1269 # Omit some internal or obsolete options to make the list less imposing.
1270 # This message is too long to be a string in the A/UX 3.1 sh.
1271 cat <<_ACEOF
1272 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1274 Usage: $0 [OPTION]... [VAR=VALUE]...
1276 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1277 VAR=VALUE. See below for descriptions of some of the useful variables.
1279 Defaults for the options are specified in brackets.
1281 Configuration:
1282 -h, --help display this help and exit
1283 --help=short display options specific to this package
1284 --help=recursive display the short help of all the included packages
1285 -V, --version display version information and exit
1286 -q, --quiet, --silent do not print \`checking ...' messages
1287 --cache-file=FILE cache test results in FILE [disabled]
1288 -C, --config-cache alias for \`--cache-file=config.cache'
1289 -n, --no-create do not create output files
1290 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1292 Installation directories:
1293 --prefix=PREFIX install architecture-independent files in PREFIX
1294 [$ac_default_prefix]
1295 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1296 [PREFIX]
1298 By default, \`make install' will install all the files in
1299 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1300 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1301 for instance \`--prefix=\$HOME'.
1303 For better control, use the options below.
1305 Fine tuning of the installation directories:
1306 --bindir=DIR user executables [EPREFIX/bin]
1307 --sbindir=DIR system admin executables [EPREFIX/sbin]
1308 --libexecdir=DIR program executables [EPREFIX/libexec]
1309 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1310 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1311 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1312 --libdir=DIR object code libraries [EPREFIX/lib]
1313 --includedir=DIR C header files [PREFIX/include]
1314 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1315 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1316 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1317 --infodir=DIR info documentation [DATAROOTDIR/info]
1318 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1319 --mandir=DIR man documentation [DATAROOTDIR/man]
1320 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1321 --htmldir=DIR html documentation [DOCDIR]
1322 --dvidir=DIR dvi documentation [DOCDIR]
1323 --pdfdir=DIR pdf documentation [DOCDIR]
1324 --psdir=DIR ps documentation [DOCDIR]
1325 _ACEOF
1327 cat <<\_ACEOF
1329 System types:
1330 --build=BUILD configure for building on BUILD [guessed]
1331 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1332 _ACEOF
1335 if test -n "$ac_init_help"; then
1336 case $ac_init_help in
1337 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1338 esac
1339 cat <<\_ACEOF
1341 Optional Features:
1342 --disable-option-checking ignore unrecognized --enable/--with options
1343 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1344 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1345 --disable-shared don't provide a shared libgcc
1346 --enable-vtable-verify Enable vtable verification feature
1347 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1348 --enable-maintainer-mode
1349 enable make rules and dependencies not useful (and
1350 sometimes confusing) to the casual installer
1351 --disable-gcov don't provide libgcov and related host tools
1352 --disable-largefile omit support for large files
1353 --enable-decimal-float={no,yes,bid,dpd}
1354 enable decimal float extension to C. Selecting 'bid'
1355 or 'dpd' choses which decimal floating point format
1356 to use
1357 --enable-cet enable Intel CET in target libraries [default=auto]
1358 --enable-explicit-exception-frame-registration
1359 register exception tables explicitly at module
1360 start, for use e.g. for compatibility with
1361 installations without PT_GNU_EH_FRAME support
1362 --disable-tm-clone-registry disable TM clone registry
1363 --enable-tls Use thread-local storage [default=yes]
1365 Optional Packages:
1366 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1367 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1368 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1369 --with-cross-host=HOST Configuring with a cross compiler
1370 --with-ld arrange to use the specified ld (full pathname)
1371 --with-aix-soname=aix|svr4|both
1372 shared library versioning (aka "SONAME") variant to
1373 provide on AIX
1374 --with-toolexeclibdir=DIR
1375 install libraries built with a cross compiler within
1377 --with-slibdir=DIR shared libraries in DIR LIBDIR
1378 --with-build-libsubdir=DIR Directory where to find libraries for build system
1379 --with-system-libunwind use installed libunwind
1380 --with-glibc-version=M.N
1381 assume GCC used with glibc version M.N or later
1382 --with-gcc-major-version-only
1383 use only GCC major number in filesystem paths
1385 Some influential environment variables:
1386 CC C compiler command
1387 CFLAGS C compiler flags
1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1389 nonstandard directory <lib dir>
1390 LIBS libraries to pass to the linker, e.g. -l<library>
1391 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1392 you have headers in a nonstandard directory <include dir>
1393 CPP C preprocessor
1395 Use these variables to override the choices made by `configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1398 Report bugs to the package provider.
1399 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1400 General help using GNU software: <http://www.gnu.org/gethelp/>.
1401 _ACEOF
1402 ac_status=$?
1405 if test "$ac_init_help" = "recursive"; then
1406 # If there are subdirs, report their specific --help.
1407 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408 test -d "$ac_dir" ||
1409 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1410 continue
1411 ac_builddir=.
1413 case "$ac_dir" in
1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1417 # A ".." for each directory in $ac_dir_suffix.
1418 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1419 case $ac_top_builddir_sub in
1420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422 esac ;;
1423 esac
1424 ac_abs_top_builddir=$ac_pwd
1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426 # for backward compatibility:
1427 ac_top_builddir=$ac_top_build_prefix
1429 case $srcdir in
1430 .) # We are building in place.
1431 ac_srcdir=.
1432 ac_top_srcdir=$ac_top_builddir_sub
1433 ac_abs_top_srcdir=$ac_pwd ;;
1434 [\\/]* | ?:[\\/]* ) # Absolute name.
1435 ac_srcdir=$srcdir$ac_dir_suffix;
1436 ac_top_srcdir=$srcdir
1437 ac_abs_top_srcdir=$srcdir ;;
1438 *) # Relative name.
1439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440 ac_top_srcdir=$ac_top_build_prefix$srcdir
1441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1442 esac
1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445 cd "$ac_dir" || { ac_status=$?; continue; }
1446 # Check for guested configure.
1447 if test -f "$ac_srcdir/configure.gnu"; then
1448 echo &&
1449 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450 elif test -f "$ac_srcdir/configure"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure" --help=recursive
1453 else
1454 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455 fi || ac_status=$?
1456 cd "$ac_pwd" || { ac_status=$?; break; }
1457 done
1460 test -n "$ac_init_help" && exit $ac_status
1461 if $ac_init_version; then
1462 cat <<\_ACEOF
1463 GNU C Runtime Library configure 1.0
1464 generated by GNU Autoconf 2.69
1466 Copyright (C) 2012 Free Software Foundation, Inc.
1467 This configure script is free software; the Free Software Foundation
1468 gives unlimited permission to copy, distribute and modify it.
1469 _ACEOF
1470 exit
1473 ## ------------------------ ##
1474 ## Autoconf initialization. ##
1475 ## ------------------------ ##
1477 # ac_fn_c_try_compile LINENO
1478 # --------------------------
1479 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_c_try_compile ()
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 rm -f conftest.$ac_objext
1484 if { { ac_try="$ac_compile"
1485 case "(($ac_try" in
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1488 esac
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_compile") 2>conftest.err
1492 ac_status=$?
1493 if test -s conftest.err; then
1494 grep -v '^ *+' conftest.err >conftest.er1
1495 cat conftest.er1 >&5
1496 mv -f conftest.er1 conftest.err
1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 test $ac_status = 0; } && {
1500 test -z "$ac_c_werror_flag" ||
1501 test ! -s conftest.err
1502 } && test -s conftest.$ac_objext; then :
1503 ac_retval=0
1504 else
1505 $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1508 ac_retval=1
1510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511 as_fn_set_status $ac_retval
1513 } # ac_fn_c_try_compile
1515 # ac_fn_c_try_cpp LINENO
1516 # ----------------------
1517 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_cpp ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 if { { ac_try="$ac_cpp conftest.$ac_ext"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } > conftest.i && {
1537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 }; then :
1540 ac_retval=0
1541 else
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1545 ac_retval=1
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1550 } # ac_fn_c_try_cpp
1552 # ac_fn_c_try_run LINENO
1553 # ----------------------
1554 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1555 # that executables *can* be run.
1556 ac_fn_c_try_run ()
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 if { { ac_try="$ac_link"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_link") 2>&5
1567 ac_status=$?
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1570 { { case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_try") 2>&5
1577 ac_status=$?
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; }; }; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: program exited with status $ac_status" >&5
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1586 ac_retval=$ac_status
1588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1592 } # ac_fn_c_try_run
1594 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1595 # --------------------------------------------
1596 # Tries to find the compile-time value of EXPR in a program that includes
1597 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1598 # computed
1599 ac_fn_c_compute_int ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if test "$cross_compiling" = yes; then
1603 # Depending upon the size, compute the lo and hi bounds.
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1608 main ()
1610 static int test_array [1 - 2 * !(($2) >= 0)];
1611 test_array [0] = 0;
1612 return test_array [0];
1615 return 0;
1617 _ACEOF
1618 if ac_fn_c_try_compile "$LINENO"; then :
1619 ac_lo=0 ac_mid=0
1620 while :; do
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1625 main ()
1627 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1628 test_array [0] = 0;
1629 return test_array [0];
1632 return 0;
1634 _ACEOF
1635 if ac_fn_c_try_compile "$LINENO"; then :
1636 ac_hi=$ac_mid; break
1637 else
1638 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1639 if test $ac_lo -le $ac_mid; then
1640 ac_lo= ac_hi=
1641 break
1643 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 done
1647 else
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649 /* end confdefs.h. */
1652 main ()
1654 static int test_array [1 - 2 * !(($2) < 0)];
1655 test_array [0] = 0;
1656 return test_array [0];
1659 return 0;
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663 ac_hi=-1 ac_mid=-1
1664 while :; do
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1669 main ()
1671 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1672 test_array [0] = 0;
1673 return test_array [0];
1676 return 0;
1678 _ACEOF
1679 if ac_fn_c_try_compile "$LINENO"; then :
1680 ac_lo=$ac_mid; break
1681 else
1682 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1683 if test $ac_mid -le $ac_hi; then
1684 ac_lo= ac_hi=
1685 break
1687 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 done
1691 else
1692 ac_lo= ac_hi=
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 # Binary search between lo and hi bounds.
1698 while test "x$ac_lo" != "x$ac_hi"; do
1699 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1704 main ()
1706 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1707 test_array [0] = 0;
1708 return test_array [0];
1711 return 0;
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715 ac_hi=$ac_mid
1716 else
1717 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 done
1721 case $ac_lo in #((
1722 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1723 '') ac_retval=1 ;;
1724 esac
1725 else
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1729 static long int longval () { return $2; }
1730 static unsigned long int ulongval () { return $2; }
1731 #include <stdio.h>
1732 #include <stdlib.h>
1734 main ()
1737 FILE *f = fopen ("conftest.val", "w");
1738 if (! f)
1739 return 1;
1740 if (($2) < 0)
1742 long int i = longval ();
1743 if (i != ($2))
1744 return 1;
1745 fprintf (f, "%ld", i);
1747 else
1749 unsigned long int i = ulongval ();
1750 if (i != ($2))
1751 return 1;
1752 fprintf (f, "%lu", i);
1754 /* Do not output a trailing newline, as this causes \r\n confusion
1755 on some platforms. */
1756 return ferror (f) || fclose (f) != 0;
1759 return 0;
1761 _ACEOF
1762 if ac_fn_c_try_run "$LINENO"; then :
1763 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1764 else
1765 ac_retval=1
1767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1768 conftest.$ac_objext conftest.beam conftest.$ac_ext
1769 rm -f conftest.val
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1775 } # ac_fn_c_compute_int
1777 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1778 # ----------------------------------------------
1779 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1780 ac_fn_c_check_header_preproc ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 #include <$2>
1791 _ACEOF
1792 if ac_fn_c_try_cpp "$LINENO"; then :
1793 eval "$3=yes"
1794 else
1795 eval "$3=no"
1797 rm -f conftest.err conftest.i conftest.$ac_ext
1799 eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 } # ac_fn_c_check_header_preproc
1805 cat >config.log <<_ACEOF
1806 This file contains any messages produced by compilers while
1807 running configure, to aid debugging if configure makes a mistake.
1809 It was created by GNU C Runtime Library $as_me 1.0, which was
1810 generated by GNU Autoconf 2.69. Invocation command line was
1812 $ $0 $@
1814 _ACEOF
1815 exec 5>>config.log
1817 cat <<_ASUNAME
1818 ## --------- ##
1819 ## Platform. ##
1820 ## --------- ##
1822 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1823 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1824 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1825 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1826 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1828 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1829 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1831 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1832 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1833 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1834 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1835 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1836 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1837 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1839 _ASUNAME
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 $as_echo "PATH: $as_dir"
1847 done
1848 IFS=$as_save_IFS
1850 } >&5
1852 cat >&5 <<_ACEOF
1855 ## ----------- ##
1856 ## Core tests. ##
1857 ## ----------- ##
1859 _ACEOF
1862 # Keep a trace of the command line.
1863 # Strip out --no-create and --no-recursion so they do not pile up.
1864 # Strip out --silent because we don't want to record it for future runs.
1865 # Also quote any args containing shell meta-characters.
1866 # Make two passes to allow for proper duplicate-argument suppression.
1867 ac_configure_args=
1868 ac_configure_args0=
1869 ac_configure_args1=
1870 ac_must_keep_next=false
1871 for ac_pass in 1 2
1873 for ac_arg
1875 case $ac_arg in
1876 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1878 | -silent | --silent | --silen | --sile | --sil)
1879 continue ;;
1880 *\'*)
1881 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1882 esac
1883 case $ac_pass in
1884 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1886 as_fn_append ac_configure_args1 " '$ac_arg'"
1887 if test $ac_must_keep_next = true; then
1888 ac_must_keep_next=false # Got value, back to normal.
1889 else
1890 case $ac_arg in
1891 *=* | --config-cache | -C | -disable-* | --disable-* \
1892 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1893 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1894 | -with-* | --with-* | -without-* | --without-* | --x)
1895 case "$ac_configure_args0 " in
1896 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1897 esac
1899 -* ) ac_must_keep_next=true ;;
1900 esac
1902 as_fn_append ac_configure_args " '$ac_arg'"
1904 esac
1905 done
1906 done
1907 { ac_configure_args0=; unset ac_configure_args0;}
1908 { ac_configure_args1=; unset ac_configure_args1;}
1910 # When interrupted or exit'd, cleanup temporary files, and complete
1911 # config.log. We remove comments because anyway the quotes in there
1912 # would cause problems or look ugly.
1913 # WARNING: Use '\'' to represent an apostrophe within the trap.
1914 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1915 trap 'exit_status=$?
1916 # Save into config.log some information that might help in debugging.
1918 echo
1920 $as_echo "## ---------------- ##
1921 ## Cache variables. ##
1922 ## ---------------- ##"
1923 echo
1924 # The following way of writing the cache mishandles newlines in values,
1926 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1927 eval ac_val=\$$ac_var
1928 case $ac_val in #(
1929 *${as_nl}*)
1930 case $ac_var in #(
1931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1933 esac
1934 case $ac_var in #(
1935 _ | IFS | as_nl) ;; #(
1936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1937 *) { eval $ac_var=; unset $ac_var;} ;;
1938 esac ;;
1939 esac
1940 done
1941 (set) 2>&1 |
1942 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1943 *${as_nl}ac_space=\ *)
1944 sed -n \
1945 "s/'\''/'\''\\\\'\'''\''/g;
1946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1947 ;; #(
1949 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951 esac |
1952 sort
1954 echo
1956 $as_echo "## ----------------- ##
1957 ## Output variables. ##
1958 ## ----------------- ##"
1959 echo
1960 for ac_var in $ac_subst_vars
1962 eval ac_val=\$$ac_var
1963 case $ac_val in
1964 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1965 esac
1966 $as_echo "$ac_var='\''$ac_val'\''"
1967 done | sort
1968 echo
1970 if test -n "$ac_subst_files"; then
1971 $as_echo "## ------------------- ##
1972 ## File substitutions. ##
1973 ## ------------------- ##"
1974 echo
1975 for ac_var in $ac_subst_files
1977 eval ac_val=\$$ac_var
1978 case $ac_val in
1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 esac
1981 $as_echo "$ac_var='\''$ac_val'\''"
1982 done | sort
1983 echo
1986 if test -s confdefs.h; then
1987 $as_echo "## ----------- ##
1988 ## confdefs.h. ##
1989 ## ----------- ##"
1990 echo
1991 cat confdefs.h
1992 echo
1994 test "$ac_signal" != 0 &&
1995 $as_echo "$as_me: caught signal $ac_signal"
1996 $as_echo "$as_me: exit $exit_status"
1997 } >&5
1998 rm -f core *.core core.conftest.* &&
1999 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2000 exit $exit_status
2002 for ac_signal in 1 2 13 15; do
2003 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2004 done
2005 ac_signal=0
2007 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2008 rm -f -r conftest* confdefs.h
2010 $as_echo "/* confdefs.h */" > confdefs.h
2012 # Predefined preprocessor variables.
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_NAME "$PACKAGE_NAME"
2016 _ACEOF
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2020 _ACEOF
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2024 _ACEOF
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_STRING "$PACKAGE_STRING"
2028 _ACEOF
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2032 _ACEOF
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_URL "$PACKAGE_URL"
2036 _ACEOF
2039 # Let the site file select an alternate cache file if it wants to.
2040 # Prefer an explicitly selected file to automatically selected ones.
2041 ac_site_file1=NONE
2042 ac_site_file2=NONE
2043 if test -n "$CONFIG_SITE"; then
2044 # We do not want a PATH search for config.site.
2045 case $CONFIG_SITE in #((
2046 -*) ac_site_file1=./$CONFIG_SITE;;
2047 */*) ac_site_file1=$CONFIG_SITE;;
2048 *) ac_site_file1=./$CONFIG_SITE;;
2049 esac
2050 elif test "x$prefix" != xNONE; then
2051 ac_site_file1=$prefix/share/config.site
2052 ac_site_file2=$prefix/etc/config.site
2053 else
2054 ac_site_file1=$ac_default_prefix/share/config.site
2055 ac_site_file2=$ac_default_prefix/etc/config.site
2057 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2059 test "x$ac_site_file" = xNONE && continue
2060 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2062 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2063 sed 's/^/| /' "$ac_site_file" >&5
2064 . "$ac_site_file" \
2065 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067 as_fn_error $? "failed to load site script $ac_site_file
2068 See \`config.log' for more details" "$LINENO" 5; }
2070 done
2072 if test -r "$cache_file"; then
2073 # Some versions of bash will fail to source /dev/null (special files
2074 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2075 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2077 $as_echo "$as_me: loading cache $cache_file" >&6;}
2078 case $cache_file in
2079 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2080 *) . "./$cache_file";;
2081 esac
2083 else
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2085 $as_echo "$as_me: creating cache $cache_file" >&6;}
2086 >$cache_file
2089 # Check that the precious variables saved in the cache have kept the same
2090 # value.
2091 ac_cache_corrupted=false
2092 for ac_var in $ac_precious_vars; do
2093 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2094 eval ac_new_set=\$ac_env_${ac_var}_set
2095 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2096 eval ac_new_val=\$ac_env_${ac_var}_value
2097 case $ac_old_set,$ac_new_set in
2098 set,)
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2100 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2101 ac_cache_corrupted=: ;;
2102 ,set)
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2104 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2105 ac_cache_corrupted=: ;;
2106 ,);;
2108 if test "x$ac_old_val" != "x$ac_new_val"; then
2109 # differences in whitespace do not lead to failure.
2110 ac_old_val_w=`echo x $ac_old_val`
2111 ac_new_val_w=`echo x $ac_new_val`
2112 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2114 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2115 ac_cache_corrupted=:
2116 else
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2118 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2119 eval $ac_var=\$ac_old_val
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2122 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2124 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2125 fi;;
2126 esac
2127 # Pass precious variables to config.status.
2128 if test "$ac_new_set" = set; then
2129 case $ac_new_val in
2130 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2131 *) ac_arg=$ac_var=$ac_new_val ;;
2132 esac
2133 case " $ac_configure_args " in
2134 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2135 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2136 esac
2138 done
2139 if $ac_cache_corrupted; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2143 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2144 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2146 ## -------------------- ##
2147 ## Main body of script. ##
2148 ## -------------------- ##
2150 ac_ext=c
2151 ac_cpp='$CPP $CPPFLAGS'
2152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2162 # The libgcc should not depend on any header files
2166 # Check whether --with-target-subdir was given.
2167 if test "${with_target_subdir+set}" = set; then :
2168 withval=$with_target_subdir;
2172 # Check whether --with-cross-host was given.
2173 if test "${with_cross_host+set}" = set; then :
2174 withval=$with_cross_host;
2178 # Check whether --with-ld was given.
2179 if test "${with_ld+set}" = set; then :
2180 withval=$with_ld;
2184 if test "${srcdir}" = "."; then
2185 if test -n "${with_build_subdir}"; then
2186 libgcc_topdir="${srcdir}/../.."
2187 with_target_subdir=
2188 elif test -z "${with_target_subdir}"; then
2189 libgcc_topdir="${srcdir}/.."
2190 else
2191 if test "${with_target_subdir}" != "."; then
2192 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2193 else
2194 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2197 else
2198 libgcc_topdir="${srcdir}/.."
2201 ac_aux_dir=
2202 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2203 if test -f "$ac_dir/install-sh"; then
2204 ac_aux_dir=$ac_dir
2205 ac_install_sh="$ac_aux_dir/install-sh -c"
2206 break
2207 elif test -f "$ac_dir/install.sh"; then
2208 ac_aux_dir=$ac_dir
2209 ac_install_sh="$ac_aux_dir/install.sh -c"
2210 break
2211 elif test -f "$ac_dir/shtool"; then
2212 ac_aux_dir=$ac_dir
2213 ac_install_sh="$ac_aux_dir/shtool install -c"
2214 break
2216 done
2217 if test -z "$ac_aux_dir"; then
2218 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2221 # These three variables are undocumented and unsupported,
2222 # and are intended to be withdrawn in a future Autoconf release.
2223 # They can cause serious problems if a builder's source tree is in a directory
2224 # whose full name contains unusual characters.
2225 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2226 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2227 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2230 ac_config_headers="$ac_config_headers auto-target.h:config.in"
2233 # Check whether --enable-shared was given.
2234 if test "${enable_shared+set}" = set; then :
2235 enableval=$enable_shared;
2236 case $enable_shared in
2237 yes | no) ;;
2239 enable_shared=no
2240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2241 for pkg in $enableval; do
2242 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2243 enable_shared=yes
2245 done
2246 IFS="$ac_save_ifs"
2248 esac
2250 else
2251 enable_shared=yes
2256 # Check whether --enable-vtable-verify was given.
2257 if test "${enable_vtable_verify+set}" = set; then :
2258 enableval=$enable_vtable_verify; case "$enableval" in
2259 yes) enable_vtable_verify=yes ;;
2260 no) enable_vtable_verify=no ;;
2261 *) enable_vtable_verify=no;;
2262 esac
2263 else
2264 enable_vtable_verify=no
2270 # Check whether --with-aix-soname was given.
2271 if test "${with_aix_soname+set}" = set; then :
2272 withval=$with_aix_soname; case "${host}:${enable_shared}" in
2273 power*-*-aix[5-9]*:yes)
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5
2275 $as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; }
2276 case ${withval} in
2277 aix|svr4|both) ;;
2278 *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5;;
2279 esac
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2281 $as_echo "$withval" >&6; }
2283 *) with_aix_soname=aix ;;
2284 esac
2286 else
2287 with_aix_soname=aix
2292 # Make sure we can run config.sub.
2293 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2294 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2297 $as_echo_n "checking build system type... " >&6; }
2298 if ${ac_cv_build+:} false; then :
2299 $as_echo_n "(cached) " >&6
2300 else
2301 ac_build_alias=$build_alias
2302 test "x$ac_build_alias" = x &&
2303 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2304 test "x$ac_build_alias" = x &&
2305 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2306 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2307 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2311 $as_echo "$ac_cv_build" >&6; }
2312 case $ac_cv_build in
2313 *-*-*) ;;
2314 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2315 esac
2316 build=$ac_cv_build
2317 ac_save_IFS=$IFS; IFS='-'
2318 set x $ac_cv_build
2319 shift
2320 build_cpu=$1
2321 build_vendor=$2
2322 shift; shift
2323 # Remember, the first character of IFS is used to create $*,
2324 # except with old shells:
2325 build_os=$*
2326 IFS=$ac_save_IFS
2327 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2331 $as_echo_n "checking host system type... " >&6; }
2332 if ${ac_cv_host+:} false; then :
2333 $as_echo_n "(cached) " >&6
2334 else
2335 if test "x$host_alias" = x; then
2336 ac_cv_host=$ac_cv_build
2337 else
2338 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2339 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2344 $as_echo "$ac_cv_host" >&6; }
2345 case $ac_cv_host in
2346 *-*-*) ;;
2347 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2348 esac
2349 host=$ac_cv_host
2350 ac_save_IFS=$IFS; IFS='-'
2351 set x $ac_cv_host
2352 shift
2353 host_cpu=$1
2354 host_vendor=$2
2355 shift; shift
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2358 host_os=$*
2359 IFS=$ac_save_IFS
2360 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2367 case "${host}" in
2368 # PIC is the default on some targets or must not be used.
2369 *-*-darwin*)
2370 # For darwin, common symbols are not allowed in MH_DYLIB files
2371 case "${CFLAGS}" in
2372 # If we are using a compiler supporting mdynamic-no-pic
2373 # and the option has been tested as safe to add, then cancel
2374 # it here, since the code generated is incompatible with shared
2375 # libs.
2376 *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;;
2377 *) PICFLAG=-fno-common ;;
2378 esac
2380 alpha*-dec-osf5*)
2381 # PIC is the default.
2383 hppa*64*-*-hpux*)
2384 # PIC is the default for 64-bit PA HP-UX.
2386 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
2388 i[34567]86-*-mingw* | x86_64-*-mingw*)
2390 i[34567]86-*-interix[3-9]*)
2391 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2392 # Instead, we relocate shared libraries at runtime.
2394 i[34567]86-*-nto-qnx*)
2395 # QNX uses GNU C++, but need to define -shared option too, otherwise
2396 # it will coredump.
2397 PICFLAG='-fPIC -shared'
2399 i[34567]86-pc-msdosdjgpp*)
2400 # DJGPP does not support shared libraries at all.
2402 ia64*-*-hpux*)
2403 # On IA64 HP-UX, PIC is the default but the pic flag
2404 # sets the default TLS model and affects inlining.
2405 PICFLAG=-fPIC
2407 loongarch*-*-*)
2408 PICFLAG=-fpic
2410 mips-sgi-irix6*)
2411 # PIC is the default.
2413 rs6000-ibm-aix* | powerpc-ibm-aix*)
2414 # All AIX code is PIC.
2417 # Some targets support both -fPIC and -fpic, but prefer the latter.
2418 # FIXME: Why?
2419 i[34567]86-*-* | x86_64-*-*)
2420 PICFLAG=-fpic
2422 # FIXME: Override -fPIC default in libgcc only?
2423 sh-*-linux* | sh[2346lbe]*-*-linux*)
2424 PICFLAG=-fpic
2426 sh*-*-netbsd*)
2427 PICFLAG=-fpic
2429 # Default to -fPIC unless specified otherwise.
2431 PICFLAG=-fPIC
2433 esac
2435 # If the user explicitly uses -fpic/-fPIC, keep that.
2436 case "${CFLAGS}" in
2437 *-fpic*)
2438 PICFLAG=-fpic
2440 *-fPIC*)
2441 PICFLAG=-fPIC
2443 esac
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2448 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2449 # Check whether --enable-version-specific-runtime-libs was given.
2450 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2451 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2452 yes) version_specific_libs=yes ;;
2453 no) version_specific_libs=no ;;
2454 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2455 esac
2456 else
2457 version_specific_libs=no
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2461 $as_echo "$version_specific_libs" >&6; }
2464 # Check whether --with-toolexeclibdir was given.
2465 if test "${with_toolexeclibdir+set}" = set; then :
2466 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
2470 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
2472 esac
2473 else
2474 with_toolexeclibdir=no
2480 # Check whether --with-slibdir was given.
2481 if test "${with_slibdir+set}" = set; then :
2482 withval=$with_slibdir; slibdir="$with_slibdir"
2483 else
2484 if test "${version_specific_libs}" = yes; then
2485 slibdir='$(libsubdir)'
2486 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2487 case ${with_toolexeclibdir} in
2489 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2492 slibdir=${with_toolexeclibdir}
2494 esac
2495 else
2496 slibdir='$(libdir)'
2502 # Command-line options.
2503 # Very limited version of AC_MAINTAINER_MODE.
2504 # Check whether --enable-maintainer-mode was given.
2505 if test "${enable_maintainer_mode+set}" = set; then :
2506 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2507 yes) MAINT='' ;;
2508 no) MAINT='#' ;;
2509 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2510 esac
2511 maintainer_mode=${enableval}
2512 else
2513 MAINT='#'
2517 # Find a good install program. We prefer a C program (faster),
2518 # so one script is as good as another. But avoid the broken or
2519 # incompatible versions:
2520 # SysV /etc/install, /usr/sbin/install
2521 # SunOS /usr/etc/install
2522 # IRIX /sbin/install
2523 # AIX /bin/install
2524 # AmigaOS /C/install, which installs bootblocks on floppy discs
2525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2528 # OS/2's system install, which has a completely different semantic
2529 # ./install, which can be erroneously created by make from ./install.sh.
2530 # Reject install programs that cannot install multiple files.
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2532 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2533 if test -z "$INSTALL"; then
2534 if ${ac_cv_path_install+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 for as_dir in $PATH
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 # Account for people who put trailing slashes in PATH elements.
2543 case $as_dir/ in #((
2544 ./ | .// | /[cC]/* | \
2545 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2546 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2547 /usr/ucb/* ) ;;
2549 # OSF1 and SCO ODT 3.0 have their own names for install.
2550 # Don't use installbsd from OSF since it installs stuff as root
2551 # by default.
2552 for ac_prog in ginstall scoinst install; do
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2555 if test $ac_prog = install &&
2556 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557 # AIX install. It has an incompatible calling convention.
2559 elif test $ac_prog = install &&
2560 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2561 # program-specific install script used by HP pwplus--don't use.
2563 else
2564 rm -rf conftest.one conftest.two conftest.dir
2565 echo one > conftest.one
2566 echo two > conftest.two
2567 mkdir conftest.dir
2568 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2569 test -s conftest.one && test -s conftest.two &&
2570 test -s conftest.dir/conftest.one &&
2571 test -s conftest.dir/conftest.two
2572 then
2573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2574 break 3
2578 done
2579 done
2581 esac
2583 done
2584 IFS=$as_save_IFS
2586 rm -rf conftest.one conftest.two conftest.dir
2589 if test "${ac_cv_path_install+set}" = set; then
2590 INSTALL=$ac_cv_path_install
2591 else
2592 # As a last resort, use the slow shell script. Don't cache a
2593 # value for INSTALL within a source directory, because that will
2594 # break other packages using the cache if that directory is
2595 # removed, or if the value is a relative name.
2596 INSTALL=$ac_install_sh
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2600 $as_echo "$INSTALL" >&6; }
2602 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2603 # It thinks the first close brace ends the variable substitution.
2604 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2606 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2608 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611 for ac_prog in gawk mawk nawk awk
2613 # Extract the first word of "$ac_prog", so it can be a program name with args.
2614 set dummy $ac_prog; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_AWK+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 if test -n "$AWK"; then
2621 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_AWK="$ac_prog"
2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2634 done
2635 done
2636 IFS=$as_save_IFS
2640 AWK=$ac_cv_prog_AWK
2641 if test -n "$AWK"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2643 $as_echo "$AWK" >&6; }
2644 else
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2650 test -n "$AWK" && break
2651 done
2653 # We need awk; bail out if it's missing.
2654 case ${AWK} in
2655 "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;;
2656 esac
2659 case ${build_alias} in
2660 "") build_noncanonical=${build} ;;
2661 *) build_noncanonical=${build_alias} ;;
2662 esac
2664 case ${host_alias} in
2665 "") host_noncanonical=${build_noncanonical} ;;
2666 *) host_noncanonical=${host_alias} ;;
2667 esac
2671 case ${target_alias} in
2672 "") target_noncanonical=${host_noncanonical} ;;
2673 *) target_noncanonical=${target_alias} ;;
2674 esac
2679 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2680 # have matching libraries, they should use host libraries: Makefile.tpl
2681 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2682 # However, they still use the build modules, because the corresponding
2683 # host modules (e.g. bison) are only built for the host when bootstrap
2684 # finishes. So:
2685 # - build_subdir is where we find build modules, and never changes.
2686 # - build_libsubdir is where we find build libraries, and can be overridden.
2688 # Prefix 'build-' so this never conflicts with target_subdir.
2689 build_subdir="build-${build_noncanonical}"
2691 # Check whether --with-build-libsubdir was given.
2692 if test "${with_build_libsubdir+set}" = set; then :
2693 withval=$with_build_libsubdir; build_libsubdir="$withval"
2694 else
2695 build_libsubdir="$build_subdir"
2698 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2699 if ( test $srcdir = . && test -d gcc ) \
2700 || test -d $srcdir/../host-${host_noncanonical}; then
2701 host_subdir="host-${host_noncanonical}"
2702 else
2703 host_subdir=.
2705 # No prefix.
2706 target_subdir=${target_noncanonical}
2709 # Check whether --enable-gcov was given.
2710 if test "${enable_gcov+set}" = set; then :
2711 enableval=$enable_gcov;
2712 else
2713 case $target in
2714 bpf-*-*)
2715 enable_gcov=no
2718 enable_gcov=yes
2720 esac
2725 # Calculate toolexeclibdir
2726 # Also toolexecdir, though it's only used in toolexeclibdir
2727 case ${version_specific_libs} in
2728 yes)
2729 # Need the gcc compiler version to know where to install libraries
2730 # and header files if --enable-version-specific-runtime-libs option
2731 # is selected.
2732 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2733 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2736 if test -n "$with_cross_host" &&
2737 test x"$with_cross_host" != x"no"; then
2738 # Install a library built with a cross compiler in tooldir, not libdir.
2739 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2740 case ${with_toolexeclibdir} in
2742 toolexeclibdir='$(toolexecdir)/lib'
2745 toolexeclibdir=${with_toolexeclibdir}
2747 esac
2748 else
2749 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2750 toolexeclibdir='$(libdir)'
2752 multi_os_directory=`$CC -print-multi-os-directory`
2753 case $multi_os_directory in
2754 .) ;; # Avoid trailing /.
2755 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2756 esac
2758 esac
2762 if test -n "$ac_tool_prefix"; then
2763 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2764 set dummy ${ac_tool_prefix}ar; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if ${ac_cv_prog_AR+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test -n "$AR"; then
2771 ac_cv_prog_AR="$AR" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780 ac_cv_prog_AR="${ac_tool_prefix}ar"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2784 done
2785 done
2786 IFS=$as_save_IFS
2790 AR=$ac_cv_prog_AR
2791 if test -n "$AR"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2793 $as_echo "$AR" >&6; }
2794 else
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2801 if test -z "$ac_cv_prog_AR"; then
2802 ac_ct_AR=$AR
2803 # Extract the first word of "ar", so it can be a program name with args.
2804 set dummy ar; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if ${ac_cv_prog_ac_ct_AR+:} false; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 if test -n "$ac_ct_AR"; then
2811 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2812 else
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2820 ac_cv_prog_ac_ct_AR="ar"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2824 done
2825 done
2826 IFS=$as_save_IFS
2830 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2831 if test -n "$ac_ct_AR"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2833 $as_echo "$ac_ct_AR" >&6; }
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2839 if test "x$ac_ct_AR" = x; then
2840 AR=""
2841 else
2842 case $cross_compiling:$ac_tool_warned in
2843 yes:)
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2846 ac_tool_warned=yes ;;
2847 esac
2848 AR=$ac_ct_AR
2850 else
2851 AR="$ac_cv_prog_AR"
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_LIPO+:} false; then :
2860 $as_echo_n "(cached) " >&6
2861 else
2862 if test -n "$LIPO"; then
2863 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 break 2
2876 done
2877 done
2878 IFS=$as_save_IFS
2882 LIPO=$ac_cv_prog_LIPO
2883 if test -n "$LIPO"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2885 $as_echo "$LIPO" >&6; }
2886 else
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2893 if test -z "$ac_cv_prog_LIPO"; then
2894 ac_ct_LIPO=$LIPO
2895 # Extract the first word of "lipo", so it can be a program name with args.
2896 set dummy lipo; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$ac_ct_LIPO"; then
2903 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_ac_ct_LIPO="lipo"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2916 done
2917 done
2918 IFS=$as_save_IFS
2922 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2923 if test -n "$ac_ct_LIPO"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2925 $as_echo "$ac_ct_LIPO" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2931 if test "x$ac_ct_LIPO" = x; then
2932 LIPO=":"
2933 else
2934 case $cross_compiling:$ac_tool_warned in
2935 yes:)
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938 ac_tool_warned=yes ;;
2939 esac
2940 LIPO=$ac_ct_LIPO
2942 else
2943 LIPO="$ac_cv_prog_LIPO"
2946 if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2948 set dummy ${ac_tool_prefix}nm; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_NM+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 if test -n "$NM"; then
2955 ac_cv_prog_NM="$NM" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964 ac_cv_prog_NM="${ac_tool_prefix}nm"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2968 done
2969 done
2970 IFS=$as_save_IFS
2974 NM=$ac_cv_prog_NM
2975 if test -n "$NM"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2977 $as_echo "$NM" >&6; }
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2985 if test -z "$ac_cv_prog_NM"; then
2986 ac_ct_NM=$NM
2987 # Extract the first word of "nm", so it can be a program name with args.
2988 set dummy nm; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_ac_ct_NM+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$ac_ct_NM"; then
2995 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_ac_ct_NM="nm"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3008 done
3009 done
3010 IFS=$as_save_IFS
3014 ac_ct_NM=$ac_cv_prog_ac_ct_NM
3015 if test -n "$ac_ct_NM"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
3017 $as_echo "$ac_ct_NM" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3023 if test "x$ac_ct_NM" = x; then
3024 NM=""
3025 else
3026 case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030 ac_tool_warned=yes ;;
3031 esac
3032 NM=$ac_ct_NM
3034 else
3035 NM="$ac_cv_prog_NM"
3038 if test -n "$ac_tool_prefix"; then
3039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_RANLIB+:} false; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if test -n "$RANLIB"; then
3047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3060 done
3061 done
3062 IFS=$as_save_IFS
3066 RANLIB=$ac_cv_prog_RANLIB
3067 if test -n "$RANLIB"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3069 $as_echo "$RANLIB" >&6; }
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3077 if test -z "$ac_cv_prog_RANLIB"; then
3078 ac_ct_RANLIB=$RANLIB
3079 # Extract the first word of "ranlib", so it can be a program name with args.
3080 set dummy ranlib; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test -n "$ac_ct_RANLIB"; then
3087 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_ac_ct_RANLIB="ranlib"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3100 done
3101 done
3102 IFS=$as_save_IFS
3106 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3107 if test -n "$ac_ct_RANLIB"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3109 $as_echo "$ac_ct_RANLIB" >&6; }
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3115 if test "x$ac_ct_RANLIB" = x; then
3116 RANLIB=":"
3117 else
3118 case $cross_compiling:$ac_tool_warned in
3119 yes:)
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122 ac_tool_warned=yes ;;
3123 esac
3124 RANLIB=$ac_ct_RANLIB
3126 else
3127 RANLIB="$ac_cv_prog_RANLIB"
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3132 set dummy ${ac_tool_prefix}strip; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_STRIP+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$STRIP"; then
3139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3152 done
3153 done
3154 IFS=$as_save_IFS
3158 STRIP=$ac_cv_prog_STRIP
3159 if test -n "$STRIP"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3161 $as_echo "$STRIP" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3169 if test -z "$ac_cv_prog_STRIP"; then
3170 ac_ct_STRIP=$STRIP
3171 # Extract the first word of "strip", so it can be a program name with args.
3172 set dummy strip; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 if test -n "$ac_ct_STRIP"; then
3179 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_ac_ct_STRIP="strip"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3192 done
3193 done
3194 IFS=$as_save_IFS
3198 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3199 if test -n "$ac_ct_STRIP"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3201 $as_echo "$ac_ct_STRIP" >&6; }
3202 else
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3207 if test "x$ac_ct_STRIP" = x; then
3208 STRIP=":"
3209 else
3210 case $cross_compiling:$ac_tool_warned in
3211 yes:)
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3215 esac
3216 STRIP=$ac_ct_STRIP
3218 else
3219 STRIP="$ac_cv_prog_STRIP"
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3223 $as_echo_n "checking whether ln -s works... " >&6; }
3224 LN_S=$as_ln_s
3225 if test "$LN_S" = "ln -s"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3230 $as_echo "no, using $LN_S" >&6; }
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 if test -n "$ac_tool_prefix"; then
3241 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_CC+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3262 done
3263 done
3264 IFS=$as_save_IFS
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3279 if test -z "$ac_cv_prog_CC"; then
3280 ac_ct_CC=$CC
3281 # Extract the first word of "gcc", so it can be a program name with args.
3282 set dummy gcc; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$ac_ct_CC"; then
3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_ac_ct_CC="gcc"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3304 IFS=$as_save_IFS
3308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3309 if test -n "$ac_ct_CC"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3311 $as_echo "$ac_ct_CC" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3317 if test "x$ac_ct_CC" = x; then
3318 CC=""
3319 else
3320 case $cross_compiling:$ac_tool_warned in
3321 yes:)
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324 ac_tool_warned=yes ;;
3325 esac
3326 CC=$ac_ct_CC
3328 else
3329 CC="$ac_cv_prog_CC"
3332 if test -z "$CC"; then
3333 if test -n "$ac_tool_prefix"; then
3334 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3335 set dummy ${ac_tool_prefix}cc; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_CC+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351 ac_cv_prog_CC="${ac_tool_prefix}cc"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 break 2
3355 done
3356 done
3357 IFS=$as_save_IFS
3361 CC=$ac_cv_prog_CC
3362 if test -n "$CC"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3364 $as_echo "$CC" >&6; }
3365 else
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3373 if test -z "$CC"; then
3374 # Extract the first word of "cc", so it can be a program name with args.
3375 set dummy cc; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if ${ac_cv_prog_CC+:} false; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 if test -n "$CC"; then
3382 ac_cv_prog_CC="$CC" # Let the user override the test.
3383 else
3384 ac_prog_rejected=no
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3393 ac_prog_rejected=yes
3394 continue
3396 ac_cv_prog_CC="cc"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3400 done
3401 done
3402 IFS=$as_save_IFS
3404 if test $ac_prog_rejected = yes; then
3405 # We found a bogon in the path, so make sure we never use it.
3406 set dummy $ac_cv_prog_CC
3407 shift
3408 if test $# != 0; then
3409 # We chose a different compiler from the bogus one.
3410 # However, it has the same basename, so the bogon will be chosen
3411 # first if we set CC to just the basename; use the full file name.
3412 shift
3413 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3418 CC=$ac_cv_prog_CC
3419 if test -n "$CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421 $as_echo "$CC" >&6; }
3422 else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3429 if test -z "$CC"; then
3430 if test -n "$ac_tool_prefix"; then
3431 for ac_prog in cl.exe
3433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_CC+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3454 done
3455 done
3456 IFS=$as_save_IFS
3460 CC=$ac_cv_prog_CC
3461 if test -n "$CC"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 $as_echo "$CC" >&6; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3470 test -n "$CC" && break
3471 done
3473 if test -z "$CC"; then
3474 ac_ct_CC=$CC
3475 for ac_prog in cl.exe
3477 # Extract the first word of "$ac_prog", so it can be a program name with args.
3478 set dummy $ac_prog; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -n "$ac_ct_CC"; then
3485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_ac_ct_CC="$ac_prog"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3498 done
3499 done
3500 IFS=$as_save_IFS
3504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3505 if test -n "$ac_ct_CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3507 $as_echo "$ac_ct_CC" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3514 test -n "$ac_ct_CC" && break
3515 done
3517 if test "x$ac_ct_CC" = x; then
3518 CC=""
3519 else
3520 case $cross_compiling:$ac_tool_warned in
3521 yes:)
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3524 ac_tool_warned=yes ;;
3525 esac
3526 CC=$ac_ct_CC
3533 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3535 as_fn_error $? "no acceptable C compiler found in \$PATH
3536 See \`config.log' for more details" "$LINENO" 5; }
3538 # Provide some information about the compiler.
3539 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3540 set X $ac_compile
3541 ac_compiler=$2
3542 for ac_option in --version -v -V -qversion; do
3543 { { ac_try="$ac_compiler $ac_option >&5"
3544 case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549 $as_echo "$ac_try_echo"; } >&5
3550 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3551 ac_status=$?
3552 if test -s conftest.err; then
3553 sed '10a\
3554 ... rest of stderr output deleted ...
3555 10q' conftest.err >conftest.er1
3556 cat conftest.er1 >&5
3558 rm -f conftest.er1 conftest.err
3559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3560 test $ac_status = 0; }
3561 done
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565 #include <stdio.h>
3567 main ()
3569 printf ("hello world\n");
3571 return 0;
3573 _ACEOF
3574 # FIXME: Cleanup?
3575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3576 (eval $ac_link) 2>&5
3577 ac_status=$?
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; then :
3580 gcc_no_link=no
3581 else
3582 gcc_no_link=yes
3584 if test x$gcc_no_link = xyes; then
3585 # Setting cross_compile will disable run tests; it will
3586 # also disable AC_CHECK_FILE but that's generally
3587 # correct if we can't link.
3588 cross_compiling=yes
3589 EXEEXT=
3590 else
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3595 main ()
3599 return 0;
3601 _ACEOF
3602 ac_clean_files_save=$ac_clean_files
3603 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3604 # Try to create an executable without -o first, disregard a.out.
3605 # It will help us diagnose broken compilers, and finding out an intuition
3606 # of exeext.
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3608 $as_echo_n "checking whether the C compiler works... " >&6; }
3609 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3611 # The possible output files:
3612 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3614 ac_rmfiles=
3615 for ac_file in $ac_files
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3620 esac
3621 done
3622 rm -f $ac_rmfiles
3624 if { { ac_try="$ac_link_default"
3625 case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630 $as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_link_default") 2>&5
3632 ac_status=$?
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
3635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3637 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3638 # so that the user can short-circuit this test for compilers unknown to
3639 # Autoconf.
3640 for ac_file in $ac_files ''
3642 test -f "$ac_file" || continue
3643 case $ac_file in
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3646 [ab].out )
3647 # We found the default executable, but exeext='' is most
3648 # certainly right.
3649 break;;
3650 *.* )
3651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3652 then :; else
3653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655 # We set ac_cv_exeext here because the later test for it is not
3656 # safe: cross compilers may not add the suffix if given an `-o'
3657 # argument, so we may need to know it at that point already.
3658 # Even if this section looks crufty: it has the advantage of
3659 # actually working.
3660 break;;
3662 break;;
3663 esac
3664 done
3665 test "$ac_cv_exeext" = no && ac_cv_exeext=
3667 else
3668 ac_file=''
3670 if test -z "$ac_file"; then :
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error 77 "C compiler cannot create executables
3679 See \`config.log' for more details" "$LINENO" 5; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3682 $as_echo "yes" >&6; }
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3685 $as_echo_n "checking for C compiler default output file name... " >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3687 $as_echo "$ac_file" >&6; }
3688 ac_exeext=$ac_cv_exeext
3690 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3691 ac_clean_files=$ac_clean_files_save
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3693 $as_echo_n "checking for suffix of executables... " >&6; }
3694 if { { ac_try="$ac_link"
3695 case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700 $as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_link") 2>&5
3702 ac_status=$?
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }; then :
3705 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3706 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3707 # work properly (i.e., refer to `conftest.exe'), while it won't with
3708 # `rm'.
3709 for ac_file in conftest.exe conftest conftest.*; do
3710 test -f "$ac_file" || continue
3711 case $ac_file in
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3713 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3714 break;;
3715 * ) break;;
3716 esac
3717 done
3718 else
3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3722 See \`config.log' for more details" "$LINENO" 5; }
3724 rm -f conftest conftest$ac_cv_exeext
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3726 $as_echo "$ac_cv_exeext" >&6; }
3728 rm -f conftest.$ac_ext
3729 EXEEXT=$ac_cv_exeext
3730 ac_exeext=$EXEEXT
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733 #include <stdio.h>
3735 main ()
3737 FILE *f = fopen ("conftest.out", "w");
3738 return ferror (f) || fclose (f) != 0;
3741 return 0;
3743 _ACEOF
3744 ac_clean_files="$ac_clean_files conftest.out"
3745 # Check that the compiler produces executables we can run. If not, either
3746 # the compiler is broken, or we cross compile.
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3748 $as_echo_n "checking whether we are cross compiling... " >&6; }
3749 if test "$cross_compiling" != yes; then
3750 { { ac_try="$ac_link"
3751 case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754 esac
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_link") 2>&5
3758 ac_status=$?
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }
3761 if { ac_try='./conftest$ac_cv_exeext'
3762 { { case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_try") 2>&5
3769 ac_status=$?
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }; }; then
3772 cross_compiling=no
3773 else
3774 if test "$cross_compiling" = maybe; then
3775 cross_compiling=yes
3776 else
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot run C compiled programs.
3780 If you meant to cross compile, use \`--host'.
3781 See \`config.log' for more details" "$LINENO" 5; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3786 $as_echo "$cross_compiling" >&6; }
3788 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3789 ac_clean_files=$ac_clean_files_save
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3792 $as_echo_n "checking for suffix of object files... " >&6; }
3793 if ${ac_cv_objext+:} false; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3800 main ()
3804 return 0;
3806 _ACEOF
3807 rm -f conftest.o conftest.obj
3808 if { { ac_try="$ac_compile"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_compile") 2>&5
3816 ac_status=$?
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }; then :
3819 for ac_file in conftest.o conftest.obj conftest.*; do
3820 test -f "$ac_file" || continue;
3821 case $ac_file in
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3823 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3824 break;;
3825 esac
3826 done
3827 else
3828 $as_echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833 as_fn_error $? "cannot compute suffix of object files: cannot compile
3834 See \`config.log' for more details" "$LINENO" 5; }
3836 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3839 $as_echo "$ac_cv_objext" >&6; }
3840 OBJEXT=$ac_cv_objext
3841 ac_objext=$OBJEXT
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3843 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3844 if ${ac_cv_c_compiler_gnu+:} false; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3851 main ()
3853 #ifndef __GNUC__
3854 choke me
3855 #endif
3858 return 0;
3860 _ACEOF
3861 if ac_fn_c_try_compile "$LINENO"; then :
3862 ac_compiler_gnu=yes
3863 else
3864 ac_compiler_gnu=no
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3871 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3872 if test $ac_compiler_gnu = yes; then
3873 GCC=yes
3874 else
3875 GCC=
3877 ac_test_CFLAGS=${CFLAGS+set}
3878 ac_save_CFLAGS=$CFLAGS
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3880 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3881 if ${ac_cv_prog_cc_g+:} false; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884 ac_save_c_werror_flag=$ac_c_werror_flag
3885 ac_c_werror_flag=yes
3886 ac_cv_prog_cc_g=no
3887 CFLAGS="-g"
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3892 main ()
3896 return 0;
3898 _ACEOF
3899 if ac_fn_c_try_compile "$LINENO"; then :
3900 ac_cv_prog_cc_g=yes
3901 else
3902 CFLAGS=""
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3907 main ()
3911 return 0;
3913 _ACEOF
3914 if ac_fn_c_try_compile "$LINENO"; then :
3916 else
3917 ac_c_werror_flag=$ac_save_c_werror_flag
3918 CFLAGS="-g"
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3923 main ()
3927 return 0;
3929 _ACEOF
3930 if ac_fn_c_try_compile "$LINENO"; then :
3931 ac_cv_prog_cc_g=yes
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 ac_c_werror_flag=$ac_save_c_werror_flag
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3941 $as_echo "$ac_cv_prog_cc_g" >&6; }
3942 if test "$ac_test_CFLAGS" = set; then
3943 CFLAGS=$ac_save_CFLAGS
3944 elif test $ac_cv_prog_cc_g = yes; then
3945 if test "$GCC" = yes; then
3946 CFLAGS="-g -O2"
3947 else
3948 CFLAGS="-g"
3950 else
3951 if test "$GCC" = yes; then
3952 CFLAGS="-O2"
3953 else
3954 CFLAGS=
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3958 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3959 if ${ac_cv_prog_cc_c89+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 ac_cv_prog_cc_c89=no
3963 ac_save_CC=$CC
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 #include <stdarg.h>
3967 #include <stdio.h>
3968 struct stat;
3969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3970 struct buf { int x; };
3971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3972 static char *e (p, i)
3973 char **p;
3974 int i;
3976 return p[i];
3978 static char *f (char * (*g) (char **, int), char **p, ...)
3980 char *s;
3981 va_list v;
3982 va_start (v,p);
3983 s = g (p, va_arg (v,int));
3984 va_end (v);
3985 return s;
3988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3989 function prototypes and stuff, but not '\xHH' hex character constants.
3990 These don't provoke an error unfortunately, instead are silently treated
3991 as 'x'. The following induces an error, until -std is added to get
3992 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3993 array size at least. It's necessary to write '\x00'==0 to get something
3994 that's true only with -std. */
3995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3997 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3998 inside strings and character constants. */
3999 #define FOO(x) 'x'
4000 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4002 int test (int i, double x);
4003 struct s1 {int (*f) (int a);};
4004 struct s2 {int (*f) (double a);};
4005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4006 int argc;
4007 char **argv;
4009 main ()
4011 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4013 return 0;
4015 _ACEOF
4016 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4017 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4019 CC="$ac_save_CC $ac_arg"
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_cv_prog_cc_c89=$ac_arg
4023 rm -f core conftest.err conftest.$ac_objext
4024 test "x$ac_cv_prog_cc_c89" != "xno" && break
4025 done
4026 rm -f conftest.$ac_ext
4027 CC=$ac_save_CC
4030 # AC_CACHE_VAL
4031 case "x$ac_cv_prog_cc_c89" in
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4034 $as_echo "none needed" >&6; } ;;
4035 xno)
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4037 $as_echo "unsupported" >&6; } ;;
4039 CC="$CC $ac_cv_prog_cc_c89"
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4041 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4042 esac
4043 if test "x$ac_cv_prog_cc_c89" != xno; then :
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053 ac_ext=c
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4059 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4060 # On Suns, sometimes $CPP names a directory.
4061 if test -n "$CPP" && test -d "$CPP"; then
4062 CPP=
4064 if test -z "$CPP"; then
4065 if ${ac_cv_prog_CPP+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 # Double quotes because CPP needs to be expanded
4069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4071 ac_preproc_ok=false
4072 for ac_c_preproc_warn_flag in '' yes
4074 # Use a header file that comes with gcc, so configuring glibc
4075 # with a fresh cross-compiler works.
4076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4077 # <limits.h> exists even on freestanding compilers.
4078 # On the NeXT, cc -E runs the code through the compiler's parser,
4079 # not just through cpp. "Syntax error" is here to catch this case.
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082 #ifdef __STDC__
4083 # include <limits.h>
4084 #else
4085 # include <assert.h>
4086 #endif
4087 Syntax error
4088 _ACEOF
4089 if ac_fn_c_try_cpp "$LINENO"; then :
4091 else
4092 # Broken: fails on valid input.
4093 continue
4095 rm -f conftest.err conftest.i conftest.$ac_ext
4097 # OK, works on sane cases. Now check whether nonexistent headers
4098 # can be detected and how.
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <ac_nonexistent.h>
4102 _ACEOF
4103 if ac_fn_c_try_cpp "$LINENO"; then :
4104 # Broken: success on invalid input.
4105 continue
4106 else
4107 # Passes both tests.
4108 ac_preproc_ok=:
4109 break
4111 rm -f conftest.err conftest.i conftest.$ac_ext
4113 done
4114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4115 rm -f conftest.i conftest.err conftest.$ac_ext
4116 if $ac_preproc_ok; then :
4117 break
4120 done
4121 ac_cv_prog_CPP=$CPP
4124 CPP=$ac_cv_prog_CPP
4125 else
4126 ac_cv_prog_CPP=$CPP
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4129 $as_echo "$CPP" >&6; }
4130 ac_preproc_ok=false
4131 for ac_c_preproc_warn_flag in '' yes
4133 # Use a header file that comes with gcc, so configuring glibc
4134 # with a fresh cross-compiler works.
4135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136 # <limits.h> exists even on freestanding compilers.
4137 # On the NeXT, cc -E runs the code through the compiler's parser,
4138 # not just through cpp. "Syntax error" is here to catch this case.
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 #ifdef __STDC__
4142 # include <limits.h>
4143 #else
4144 # include <assert.h>
4145 #endif
4146 Syntax error
4147 _ACEOF
4148 if ac_fn_c_try_cpp "$LINENO"; then :
4150 else
4151 # Broken: fails on valid input.
4152 continue
4154 rm -f conftest.err conftest.i conftest.$ac_ext
4156 # OK, works on sane cases. Now check whether nonexistent headers
4157 # can be detected and how.
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160 #include <ac_nonexistent.h>
4161 _ACEOF
4162 if ac_fn_c_try_cpp "$LINENO"; then :
4163 # Broken: success on invalid input.
4164 continue
4165 else
4166 # Passes both tests.
4167 ac_preproc_ok=:
4168 break
4170 rm -f conftest.err conftest.i conftest.$ac_ext
4172 done
4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174 rm -f conftest.i conftest.err conftest.$ac_ext
4175 if $ac_preproc_ok; then :
4177 else
4178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4180 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4181 See \`config.log' for more details" "$LINENO" 5; }
4184 ac_ext=c
4185 ac_cpp='$CPP $CPPFLAGS'
4186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191 ac_c_preproc_warn_flag=yes
4194 # Check whether --enable-largefile was given.
4195 if test "${enable_largefile+set}" = set; then :
4196 enableval=$enable_largefile;
4199 if test "$enable_largefile" != no; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4202 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4203 if ${ac_cv_sys_largefile_CC+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 ac_cv_sys_largefile_CC=no
4207 if test "$GCC" != yes; then
4208 ac_save_CC=$CC
4209 while :; do
4210 # IRIX 6.2 and later do not support large files by default,
4211 # so use the C compiler's -n32 option if that helps.
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #include <sys/types.h>
4215 /* Check that off_t can represent 2**63 - 1 correctly.
4216 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4217 since some C++ compilers masquerading as C compilers
4218 incorrectly reject 9223372036854775807. */
4219 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4220 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4221 && LARGE_OFF_T % 2147483647 == 1)
4222 ? 1 : -1];
4224 main ()
4228 return 0;
4230 _ACEOF
4231 if ac_fn_c_try_compile "$LINENO"; then :
4232 break
4234 rm -f core conftest.err conftest.$ac_objext
4235 CC="$CC -n32"
4236 if ac_fn_c_try_compile "$LINENO"; then :
4237 ac_cv_sys_largefile_CC=' -n32'; break
4239 rm -f core conftest.err conftest.$ac_objext
4240 break
4241 done
4242 CC=$ac_save_CC
4243 rm -f conftest.$ac_ext
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4247 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4248 if test "$ac_cv_sys_largefile_CC" != no; then
4249 CC=$CC$ac_cv_sys_largefile_CC
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4253 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4254 if ${ac_cv_sys_file_offset_bits+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 while :; do
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #include <sys/types.h>
4261 /* Check that off_t can represent 2**63 - 1 correctly.
4262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4263 since some C++ compilers masquerading as C compilers
4264 incorrectly reject 9223372036854775807. */
4265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4267 && LARGE_OFF_T % 2147483647 == 1)
4268 ? 1 : -1];
4270 main ()
4274 return 0;
4276 _ACEOF
4277 if ac_fn_c_try_compile "$LINENO"; then :
4278 ac_cv_sys_file_offset_bits=no; break
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #define _FILE_OFFSET_BITS 64
4284 #include <sys/types.h>
4285 /* Check that off_t can represent 2**63 - 1 correctly.
4286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4287 since some C++ compilers masquerading as C compilers
4288 incorrectly reject 9223372036854775807. */
4289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4291 && LARGE_OFF_T % 2147483647 == 1)
4292 ? 1 : -1];
4294 main ()
4298 return 0;
4300 _ACEOF
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_sys_file_offset_bits=64; break
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_cv_sys_file_offset_bits=unknown
4306 break
4307 done
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4310 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4311 case $ac_cv_sys_file_offset_bits in #(
4312 no | unknown) ;;
4314 cat >>confdefs.h <<_ACEOF
4315 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4316 _ACEOF
4318 esac
4319 rm -rf conftest*
4320 if test $ac_cv_sys_file_offset_bits = unknown; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4322 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4323 if ${ac_cv_sys_large_files+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 while :; do
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 #include <sys/types.h>
4330 /* Check that off_t can represent 2**63 - 1 correctly.
4331 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4332 since some C++ compilers masquerading as C compilers
4333 incorrectly reject 9223372036854775807. */
4334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4336 && LARGE_OFF_T % 2147483647 == 1)
4337 ? 1 : -1];
4339 main ()
4343 return 0;
4345 _ACEOF
4346 if ac_fn_c_try_compile "$LINENO"; then :
4347 ac_cv_sys_large_files=no; break
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #define _LARGE_FILES 1
4353 #include <sys/types.h>
4354 /* Check that off_t can represent 2**63 - 1 correctly.
4355 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4356 since some C++ compilers masquerading as C compilers
4357 incorrectly reject 9223372036854775807. */
4358 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4360 && LARGE_OFF_T % 2147483647 == 1)
4361 ? 1 : -1];
4363 main ()
4367 return 0;
4369 _ACEOF
4370 if ac_fn_c_try_compile "$LINENO"; then :
4371 ac_cv_sys_large_files=1; break
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 ac_cv_sys_large_files=unknown
4375 break
4376 done
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4379 $as_echo "$ac_cv_sys_large_files" >&6; }
4380 case $ac_cv_sys_large_files in #(
4381 no | unknown) ;;
4383 cat >>confdefs.h <<_ACEOF
4384 #define _LARGE_FILES $ac_cv_sys_large_files
4385 _ACEOF
4387 esac
4388 rm -rf conftest*
4396 # The cast to long int works around a bug in the HP C Compiler
4397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4399 # This bug is HP SR number 8606223364.
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
4401 $as_echo_n "checking size of double... " >&6; }
4402 if ${ac_cv_sizeof_double+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
4407 else
4408 if test "$ac_cv_type_double" = yes; then
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error 77 "cannot compute sizeof (double)
4412 See \`config.log' for more details" "$LINENO" 5; }
4413 else
4414 ac_cv_sizeof_double=0
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
4420 $as_echo "$ac_cv_sizeof_double" >&6; }
4424 cat >>confdefs.h <<_ACEOF
4425 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4426 _ACEOF
4429 # The cast to long int works around a bug in the HP C Compiler
4430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4432 # This bug is HP SR number 8606223364.
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4434 $as_echo_n "checking size of long double... " >&6; }
4435 if ${ac_cv_sizeof_long_double+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4440 else
4441 if test "$ac_cv_type_long_double" = yes; then
4442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444 as_fn_error 77 "cannot compute sizeof (long double)
4445 See \`config.log' for more details" "$LINENO" 5; }
4446 else
4447 ac_cv_sizeof_long_double=0
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4453 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4457 cat >>confdefs.h <<_ACEOF
4458 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4459 _ACEOF
4462 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4463 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4468 for ac_header in inttypes.h stdint.h stdlib.h ftw.h \
4469 unistd.h sys/stat.h sys/types.h \
4470 string.h strings.h memory.h sys/auxv.h sys/mman.h
4471 do :
4472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4473 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
4474 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4475 cat >>confdefs.h <<_ACEOF
4476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4477 _ACEOF
4480 done
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4483 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4484 if ${ac_cv_path_GREP+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -z "$GREP"; then
4488 ac_path_GREP_found=false
4489 # Loop through the user's path and test for each of PROGNAME-LIST
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_prog in grep ggrep; do
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4498 as_fn_executable_p "$ac_path_GREP" || continue
4499 # Check for GNU ac_path_GREP and select it if it is found.
4500 # Check for GNU $ac_path_GREP
4501 case `"$ac_path_GREP" --version 2>&1` in
4502 *GNU*)
4503 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4505 ac_count=0
4506 $as_echo_n 0123456789 >"conftest.in"
4507 while :
4509 cat "conftest.in" "conftest.in" >"conftest.tmp"
4510 mv "conftest.tmp" "conftest.in"
4511 cp "conftest.in" "conftest.nl"
4512 $as_echo 'GREP' >> "conftest.nl"
4513 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4515 as_fn_arith $ac_count + 1 && ac_count=$as_val
4516 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4517 # Best one so far, save it but keep looking for a better one
4518 ac_cv_path_GREP="$ac_path_GREP"
4519 ac_path_GREP_max=$ac_count
4521 # 10*(2^10) chars as input seems more than enough
4522 test $ac_count -gt 10 && break
4523 done
4524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4525 esac
4527 $ac_path_GREP_found && break 3
4528 done
4529 done
4530 done
4531 IFS=$as_save_IFS
4532 if test -z "$ac_cv_path_GREP"; then
4533 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4535 else
4536 ac_cv_path_GREP=$GREP
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4541 $as_echo "$ac_cv_path_GREP" >&6; }
4542 GREP="$ac_cv_path_GREP"
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4546 $as_echo_n "checking for egrep... " >&6; }
4547 if ${ac_cv_path_EGREP+:} false; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4551 then ac_cv_path_EGREP="$GREP -E"
4552 else
4553 if test -z "$EGREP"; then
4554 ac_path_EGREP_found=false
4555 # Loop through the user's path and test for each of PROGNAME-LIST
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_prog in egrep; do
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4564 as_fn_executable_p "$ac_path_EGREP" || continue
4565 # Check for GNU ac_path_EGREP and select it if it is found.
4566 # Check for GNU $ac_path_EGREP
4567 case `"$ac_path_EGREP" --version 2>&1` in
4568 *GNU*)
4569 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4571 ac_count=0
4572 $as_echo_n 0123456789 >"conftest.in"
4573 while :
4575 cat "conftest.in" "conftest.in" >"conftest.tmp"
4576 mv "conftest.tmp" "conftest.in"
4577 cp "conftest.in" "conftest.nl"
4578 $as_echo 'EGREP' >> "conftest.nl"
4579 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4581 as_fn_arith $ac_count + 1 && ac_count=$as_val
4582 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4583 # Best one so far, save it but keep looking for a better one
4584 ac_cv_path_EGREP="$ac_path_EGREP"
4585 ac_path_EGREP_max=$ac_count
4587 # 10*(2^10) chars as input seems more than enough
4588 test $ac_count -gt 10 && break
4589 done
4590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4591 esac
4593 $ac_path_EGREP_found && break 3
4594 done
4595 done
4596 done
4597 IFS=$as_save_IFS
4598 if test -z "$ac_cv_path_EGREP"; then
4599 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4601 else
4602 ac_cv_path_EGREP=$EGREP
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4608 $as_echo "$ac_cv_path_EGREP" >&6; }
4609 EGREP="$ac_cv_path_EGREP"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4613 $as_echo_n "checking for ANSI C header files... " >&6; }
4614 if ${ac_cv_header_stdc+:} false; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #include <stdlib.h>
4620 #include <stdarg.h>
4621 #include <string.h>
4622 #include <float.h>
4625 main ()
4629 return 0;
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_header_stdc=yes
4634 else
4635 ac_cv_header_stdc=no
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 if test $ac_cv_header_stdc = yes; then
4640 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <string.h>
4645 _ACEOF
4646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4647 $EGREP "memchr" >/dev/null 2>&1; then :
4649 else
4650 ac_cv_header_stdc=no
4652 rm -f conftest*
4656 if test $ac_cv_header_stdc = yes; then
4657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #include <stdlib.h>
4662 _ACEOF
4663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4664 $EGREP "free" >/dev/null 2>&1; then :
4666 else
4667 ac_cv_header_stdc=no
4669 rm -f conftest*
4673 if test $ac_cv_header_stdc = yes; then
4674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4675 if test "$cross_compiling" = yes; then :
4677 else
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 #include <ctype.h>
4681 #include <stdlib.h>
4682 #if ((' ' & 0x0FF) == 0x020)
4683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4685 #else
4686 # define ISLOWER(c) \
4687 (('a' <= (c) && (c) <= 'i') \
4688 || ('j' <= (c) && (c) <= 'r') \
4689 || ('s' <= (c) && (c) <= 'z'))
4690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4691 #endif
4693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4695 main ()
4697 int i;
4698 for (i = 0; i < 256; i++)
4699 if (XOR (islower (i), ISLOWER (i))
4700 || toupper (i) != TOUPPER (i))
4701 return 2;
4702 return 0;
4704 _ACEOF
4705 if ac_fn_c_try_run "$LINENO"; then :
4707 else
4708 ac_cv_header_stdc=no
4710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4711 conftest.$ac_objext conftest.beam conftest.$ac_ext
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4717 $as_echo "$ac_cv_header_stdc" >&6; }
4718 if test $ac_cv_header_stdc = yes; then
4720 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4725 # Check for decimal float support.
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4727 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4728 if ${libgcc_cv_dfp+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4734 #include <fenv.h>
4737 main ()
4740 _Decimal32 x;
4741 int fe_except =
4742 FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT;
4745 return 0;
4747 _ACEOF
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 libgcc_cv_dfp=yes
4750 else
4751 libgcc_cv_dfp=no
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4756 $as_echo "$libgcc_cv_dfp" >&6; }
4757 decimal_float=$libgcc_cv_dfp
4761 # Check whether --enable-decimal-float was given.
4762 if test "${enable_decimal_float+set}" = set; then :
4763 enableval=$enable_decimal_float;
4764 case $enable_decimal_float in
4765 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4766 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4767 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4768 esac
4770 else
4772 case $host in
4773 aarch64* | \
4774 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4775 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
4776 i?86*-*-mingw* | x86_64*-*-mingw* | \
4777 i?86*-*-cygwin* | x86_64*-*-cygwin*)
4778 enable_decimal_float=yes
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4782 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4783 enable_decimal_float=no
4785 esac
4790 # x86's use BID format instead of DPD
4791 case x$enable_decimal_float in
4792 xyes)
4793 case $host in
4794 aarch64* | i?86*-*-* | x86_64*-*-*)
4795 enable_decimal_float=bid
4798 enable_decimal_float=dpd
4800 esac
4801 default_decimal_float=$enable_decimal_float
4803 xno)
4804 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4805 # dependency on libdecnumber.
4806 default_decimal_float=dpd
4808 esac
4813 # Check for fixed-point support.
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4815 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4816 if ${libgcc_cv_fixed_point+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4821 _Sat _Fract x;
4822 _ACEOF
4823 if ac_fn_c_try_compile "$LINENO"; then :
4824 libgcc_cv_fixed_point=yes
4825 else
4826 libgcc_cv_fixed_point=no
4828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4831 $as_echo "$libgcc_cv_fixed_point" >&6; }
4832 fixed_point=$libgcc_cv_fixed_point
4835 # For platforms with the unwind ABI which includes an unwind library,
4836 # libunwind, we can choose to use the system libunwind.
4837 # config.gcc also contains tests of with_system_libunwind.
4840 # Check whether --with-system-libunwind was given.
4841 if test "${with_system_libunwind+set}" = set; then :
4842 withval=$with_system_libunwind;
4845 # If system-libunwind was not specifically set, pick a default setting.
4846 if test x$with_system_libunwind = x; then
4847 case ${target} in
4848 ia64-*-hpux*) with_system_libunwind=yes ;;
4849 *) with_system_libunwind=no ;;
4850 esac
4852 # Based on system-libunwind and target, do we have ipinfo?
4853 if test x$with_system_libunwind = xyes; then
4854 case ${target} in
4855 ia64-*-*) have_unwind_getipinfo=no ;;
4856 *) have_unwind_getipinfo=yes ;;
4857 esac
4858 else
4859 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4861 case ${target} in
4862 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4863 *) have_unwind_getipinfo=yes ;;
4864 esac
4868 if test x$have_unwind_getipinfo = xyes; then
4870 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4875 # Check if the compiler is configured for setjmp/longjmp exceptions.
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5
4877 $as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; }
4878 if ${ac_cv_sjlj_exceptions+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 #ifdef __USING_SJLJ_EXCEPTIONS__
4884 this will fail
4885 #endif
4887 main ()
4889 int i;
4891 return 0;
4893 _ACEOF
4894 if ac_fn_c_try_compile "$LINENO"; then :
4895 ac_cv_sjlj_exceptions=no
4896 else
4897 ac_cv_sjlj_exceptions=yes
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5
4902 $as_echo "$ac_cv_sjlj_exceptions" >&6; }
4904 # Check whether --enable-cet was given.
4905 if test "${enable_cet+set}" = set; then :
4906 enableval=$enable_cet;
4907 case "$enableval" in
4908 yes|no|auto) ;;
4909 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4910 esac
4912 else
4913 enable_cet=auto
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4918 $as_echo_n "checking for CET support... " >&6; }
4920 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4921 case "$host" in
4922 i[34567]86-*-linux* | x86_64-*-linux*)
4923 case "$enable_cet" in
4924 auto)
4925 # Check if target supports multi-byte NOPs
4926 # and if compiler and assembler support CET insn.
4927 cet_save_CFLAGS="$CFLAGS"
4928 CFLAGS="$CFLAGS -fcf-protection"
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4933 main ()
4936 #if !defined(__SSE2__)
4937 #error target does not support multi-byte NOPs
4938 #else
4939 asm ("setssbsy");
4940 #endif
4943 return 0;
4945 _ACEOF
4946 if ac_fn_c_try_compile "$LINENO"; then :
4947 enable_cet=yes
4948 else
4949 enable_cet=no
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 CFLAGS="$cet_save_CFLAGS"
4954 yes)
4955 # Check if assembler supports CET.
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4960 main ()
4962 asm ("setssbsy");
4964 return 0;
4966 _ACEOF
4967 if ac_fn_c_try_compile "$LINENO"; then :
4969 else
4970 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 esac
4977 enable_cet=no
4979 esac
4980 if test x$enable_cet = xyes; then
4981 CET_FLAGS="-fcf-protection -mshstk"
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4983 $as_echo "yes" >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4991 # Check whether --enable-explicit-exception-frame-registration was given.
4992 if test "${enable_explicit_exception_frame_registration+set}" = set; then :
4993 enableval=$enable_explicit_exception_frame_registration;
4994 force_explicit_eh_registry=
4995 if test "$enable_explicit_exception_frame_registration" = yes; then
4996 if test $ac_cv_sjlj_exceptions = yes; then
4997 as_fn_error $? "Can't --enable-explicit-exception-frame-registration
4998 with setjmp/longjmp exceptions" "$LINENO" 5
5000 force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS
5007 # Check whether --enable-tm-clone-registry was given.
5008 if test "${enable_tm_clone_registry+set}" = set; then :
5009 enableval=$enable_tm_clone_registry;
5010 use_tm_clone_registry=
5011 if test "$enable_tm_clone_registry" = no; then
5012 use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0
5015 else
5017 use_tm_clone_registry=
5018 case $target in
5019 msp430*elfbare)
5020 use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0
5022 esac
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5029 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5030 if ${acl_cv_prog_gnu_ld+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5034 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
5035 acl_cv_prog_gnu_ld=yes
5036 else
5037 acl_cv_prog_gnu_ld=no
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5041 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5042 with_gnu_ld=$acl_cv_prog_gnu_ld
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
5046 $as_echo_n "checking for thread model used by GCC... " >&6; }
5047 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
5049 $as_echo "$target_thread_file" >&6; }
5051 # Check for assembler CFI support.
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
5053 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
5054 if ${libgcc_cv_cfi+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5059 asm("\n\
5060 .text\n\
5061 .cfi_startproc\n\
5062 .cfi_personality 0, symbol\n\
5063 .cfi_endproc");
5064 _ACEOF
5065 if ac_fn_c_try_compile "$LINENO"; then :
5066 libgcc_cv_cfi=yes
5067 else
5068 libgcc_cv_cfi=no
5070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
5073 $as_echo "$libgcc_cv_cfi" >&6; }
5075 # Check 32bit or 64bit. In the case of MIPS, this really determines the
5076 # word size rather than the address size.
5077 cat > conftest.c <<EOF
5078 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \
5079 || defined(__mips64) || defined(__loongarch64)
5080 host_address=64
5081 #else
5082 host_address=32
5083 #endif
5085 eval `${CC-cc} -E conftest.c | grep host_address=`
5086 rm -f conftest.c
5088 case ${host} in
5089 mips*-*-*)
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5
5091 $as_echo_n "checking whether the target is hard-float... " >&6; }
5092 if ${libgcc_cv_mips_hard_float+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5097 #ifndef __mips_hard_float
5098 #error FOO
5099 #endif
5101 _ACEOF
5102 if ac_fn_c_try_compile "$LINENO"; then :
5103 libgcc_cv_mips_hard_float=yes
5104 else
5105 libgcc_cv_mips_hard_float=no
5107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5
5110 $as_echo "$libgcc_cv_mips_hard_float" >&6; }
5111 esac
5113 # Determine the version of glibc, if any, used on the target.
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
5115 $as_echo_n "checking for target glibc version... " >&6; }
5117 # Check whether --with-glibc-version was given.
5118 if test "${with_glibc_version+set}" = set; then :
5119 withval=$with_glibc_version;
5120 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
5121 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
5122 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
5123 else
5124 as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5
5126 else
5128 if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then :
5130 else
5131 glibc_version_major=0
5134 if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then :
5136 else
5137 glibc_version_minor=0
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
5143 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
5145 # Determine floating-point type for powerpc*-*-linux* or vxworks7*.
5146 # Single-precision-only FPRs are not a supported configuration for
5147 # this target, so are not allowed for in this test.
5148 case ${host} in
5149 powerpc*-*-linux* | powerpc*-*-vxworks7*)
5150 cat > conftest.c <<EOF
5151 #ifdef __powerpc64__
5152 ppc_fp_type=64
5153 #elif defined _SOFT_FLOAT
5154 ppc_fp_type=soft
5155 #elif defined _SOFT_DOUBLE
5156 ppc_fp_type=e500v1
5157 #elif defined __NO_FPRS__
5158 ppc_fp_type=e500v2
5159 #else
5160 ppc_fp_type=hard
5161 #endif
5163 eval `${CC-cc} -E conftest.c | grep ppc_fp_type=`
5164 rm -f conftest.c
5165 # glibc 2.19 and later provide all the soft-fp functions, with proper
5166 # interactions with <fenv.h> exception and rounding mode handling, so
5167 # make libgcc's versions into compat symbols if a recent enough glibc
5168 # version is being used.
5169 ppc_fp_compat=
5170 case ${ppc_fp_type} in
5171 soft|e500v1|e500v2)
5172 if test $glibc_version_major -gt 2 \
5173 || ( test $glibc_version_major -eq 2 \
5174 && test $glibc_version_minor -ge 19 ); then
5175 ppc_fp_compat="t-softfp-compat"
5178 esac
5180 esac
5182 case ${host} in
5183 # At present, we cannot turn -mfloat128 on via #pragma GCC target, so just
5184 # check if we have VSX (ISA 2.06) support to build the software libraries, and
5185 # whether the assembler can handle xsaddqp for hardware support. Also check if
5186 # a new glibc is being used so that __builtin_cpu_supports can be used.
5187 powerpc*-*-linux*)
5188 saved_CFLAGS="$CFLAGS"
5189 CFLAGS="$CFLAGS -mabi=altivec -mvsx -mfloat128"
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 2.06 to build __float128 libraries" >&5
5191 $as_echo_n "checking for PowerPC ISA 2.06 to build __float128 libraries... " >&6; }
5192 if ${libgcc_cv_powerpc_float128+:} false; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197 vector double dadd (vector double a, vector double b) { return a + b; }
5198 _ACEOF
5199 if ac_fn_c_try_compile "$LINENO"; then :
5200 libgcc_cv_powerpc_float128=yes
5201 else
5202 libgcc_cv_powerpc_float128=no
5204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128" >&5
5207 $as_echo "$libgcc_cv_powerpc_float128" >&6; }
5209 CFLAGS="$CFLAGS -mcpu=power9 -mfloat128-hardware"
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.0 to build hardware __float128 libraries" >&5
5211 $as_echo_n "checking for PowerPC ISA 3.0 to build hardware __float128 libraries... " >&6; }
5212 if ${libgcc_cv_powerpc_float128_hw+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #include <sys/auxv.h>
5218 #ifndef AT_PLATFORM
5219 #error "AT_PLATFORM is not defined"
5220 #endif
5221 #ifndef __BUILTIN_CPU_SUPPORTS__
5222 #error "__builtin_cpu_supports is not available"
5223 #endif
5224 vector unsigned char add (vector unsigned char a, vector unsigned char b)
5226 vector unsigned char ret;
5227 __asm__ ("xsaddqp %0,%1,%2" : "=v" (ret) : "v" (a), "v" (b));
5228 return ret;
5230 void *add_resolver (void) { return (void *) add; }
5231 __float128 add_ifunc (__float128, __float128)
5232 __attribute__ ((__ifunc__ ("add_resolver")));
5233 _ACEOF
5234 if ac_fn_c_try_compile "$LINENO"; then :
5235 libgcc_cv_powerpc_float128_hw=yes
5236 else
5237 libgcc_cv_powerpc_float128_hw=no
5239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128_hw" >&5
5242 $as_echo "$libgcc_cv_powerpc_float128_hw" >&6; }
5243 CFLAGS="$saved_CFLAGS"
5245 saved_CFLAGS="$CFLAGS"
5246 CFLAGS="$CFLAGS -mcpu=power10 -mfloat128-hardware"
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.1 to build hardware __float128 libraries" >&5
5248 $as_echo_n "checking for PowerPC ISA 3.1 to build hardware __float128 libraries... " >&6; }
5249 if ${libgcc_cv_powerpc_3_1_float128_hw+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 #include <sys/auxv.h>
5255 #ifndef AT_PLATFORM
5256 #error "AT_PLATFORM is not defined"
5257 #endif
5258 #ifndef __BUILTIN_CPU_SUPPORTS__
5259 #error "__builtin_cpu_supports is not available"
5260 #endif
5261 vector unsigned char conv (vector unsigned char qs)
5263 vector unsigned char ret;
5264 __asm__ ("xscvsqqp %0,%1" : "=v" (ret) : "v" (qs));
5265 return ret;
5267 void *conv_resolver (void) { return (void *) conv; }
5268 __float128 conv_ifunc (__float128)
5269 __attribute__ ((__ifunc__ ("conv_resolver")));
5270 _ACEOF
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272 libgcc_cv_powerpc_3_1_float128_hw=yes
5273 else
5274 libgcc_cv_powerpc_3_1_float128_hw=no
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_3_1_float128_hw" >&5
5279 $as_echo "$libgcc_cv_powerpc_3_1_float128_hw" >&6; }
5280 CFLAGS="$saved_CFLAGS"
5281 esac
5283 # Collect host-machine-specific information.
5284 . ${srcdir}/config.host
5286 # Used for constructing correct paths for offload compilers.
5287 accel_dir_suffix=
5288 real_host_noncanonical=${host_noncanonical}
5289 if test x"$enable_as_accelerator_for" != x; then
5290 accel_dir_suffix=/accel/${target_noncanonical}
5291 real_host_noncanonical=${enable_as_accelerator_for}
5296 if test x"$enable_offload_targets" != x; then
5297 extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o crtoffloadtable.o"
5300 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
5301 # This is after config.host so we can augment tmake_file.
5302 # Link with -nostartfiles -nodefaultlibs since neither are present while
5303 # building libgcc.
5304 case ${host} in
5305 i?86-*-solaris2* | x86_64-*-solaris2*)
5306 cat > conftest.s <<EOF
5307 .section .eh_frame,"a",@unwind
5308 .zero 4
5309 .section .jcr,"aw",@progbits
5310 .zero 8
5312 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
5313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5314 (eval $ac_try) 2>&5
5315 ac_status=$?
5316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5317 test $ac_status = 0; }; }; then
5318 tmake_file="${tmake_file} i386/t-crtstuff"
5321 esac
5323 # Check if Solaris linker support v2 linker mapfile syntax.
5324 # Link with -nostartfiles -nodefaultlibs since neither are present while
5325 # building libgcc.
5326 case ${host} in
5327 *-*-solaris2*)
5328 solaris_ld_v2_maps=no
5329 echo 'int main(void) {return 0;}' > conftest.c
5330 echo '$mapfile_version 2' > conftest.map
5331 if { ac_try='${CC-cc} -nostartfiles -nodefaultlibs -Wl,-M,conftest.map -o conftest conftest.c 1>&5'
5332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5333 (eval $ac_try) 2>&5
5334 ac_status=$?
5335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5336 test $ac_status = 0; }; }; then
5337 solaris_ld_v2_maps=yes
5340 esac
5343 # Check if xtensa target is configured for windowed ABI and thus needs to use
5344 # custom unwind code.
5345 # This is after config.host so we can augment tmake_file.
5346 case ${host} in
5347 xtensa*-*)
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 #ifdef __XTENSA_CALL0_ABI__
5351 #error
5352 #endif
5354 _ACEOF
5355 if ac_fn_c_try_compile "$LINENO"; then :
5356 tmake_file="${tmake_file} xtensa/t-windowed"
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 esac
5362 # Check for visibility support. This is after config.host so that
5363 # we can check for asm_hidden_op.
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
5365 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
5366 if ${libgcc_cv_hidden_visibility_attribute+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5370 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
5371 libgcc_cv_hidden_visibility_attribute=no
5372 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5377 test $ac_status = 0; }; }; then
5378 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
5379 libgcc_cv_hidden_visibility_attribute=yes
5382 rm -f conftest.*
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
5386 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
5388 if test $libgcc_cv_hidden_visibility_attribute = yes; then
5389 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
5391 cat >>confdefs.h <<_ACEOF
5392 #define AS_HIDDEN_DIRECTIVE $asm_hidden_op
5393 _ACEOF
5395 else
5396 vis_hide=
5400 # Check for .cfi_sections .debug_frame support.
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .cfi_sections .debug_frame" >&5
5402 $as_echo_n "checking for .cfi_sections .debug_frame... " >&6; }
5403 if ${libgcc_cv_cfi_sections_directive+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5407 echo 'int foo (int, char *);' > conftest.c
5408 echo 'int bar (int x) { char *y = __builtin_alloca (x); return foo (x + 1, y) + 1; }' >> conftest.c
5409 libgcc_cv_cfi_sections_directive=no
5410 if { ac_try='${CC-cc} -Werror -g -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-exceptions -S conftest.c -o conftest.s 1>&5'
5411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5412 (eval $ac_try) 2>&5
5413 ac_status=$?
5414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5415 test $ac_status = 0; }; }; then
5416 if grep "\\.cfi_sections.*\\.debug_frame" conftest.s >/dev/null; then
5417 libgcc_cv_cfi_sections_directive=yes
5420 rm -f conftest.*
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi_sections_directive" >&5
5424 $as_echo "$libgcc_cv_cfi_sections_directive" >&6; }
5425 if test $libgcc_cv_cfi_sections_directive = yes; then
5427 $as_echo "#define HAVE_AS_CFI_SECTIONS 1" >>confdefs.h
5431 # See if we have thread-local storage. We can only test assembler
5432 # since link-time and run-time tests require the newly built
5433 # gcc, which can't be used to build executable due to that libgcc
5434 # is yet to be built here.
5436 # Check whether --enable-tls was given.
5437 if test "${enable_tls+set}" = set; then :
5438 enableval=$enable_tls;
5439 case "$enableval" in
5440 yes|no) ;;
5441 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
5442 esac
5444 else
5445 enable_tls=yes
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
5450 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
5451 if ${gcc_cv_have_cc_tls+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 __thread int a; int b; int main() { return a = b; }
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 gcc_cv_have_cc_tls=yes
5461 else
5462 gcc_cv_have_cc_tls=no
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
5468 $as_echo "$gcc_cv_have_cc_tls" >&6; }
5469 set_have_cc_tls=
5470 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
5471 set_have_cc_tls="-DHAVE_CC_TLS"
5475 # See if we have emulated thread-local storage.
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
5478 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
5479 if ${gcc_cv_use_emutls+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5483 gcc_cv_use_emutls=no
5484 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
5485 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
5486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5490 test $ac_status = 0; }; }; then
5491 if grep __emutls_get_address conftest.s > /dev/null; then
5492 gcc_cv_use_emutls=yes
5495 rm -f conftest.*
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
5499 $as_echo "$gcc_cv_use_emutls" >&6; }
5500 if test "$gcc_cv_use_emutls" = "yes" ; then
5502 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
5505 set_use_emutls=
5506 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
5507 set_use_emutls="-DUSE_EMUTLS"
5513 case "${target}" in
5514 i[34567]86-*-* | x86_64-*-*)
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
5516 $as_echo_n "checking if the assembler supports AVX... " >&6; }
5517 if ${libgcc_cv_as_avx+:} false; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5525 main ()
5527 asm("vzeroupper");
5529 return 0;
5531 _ACEOF
5532 if ac_fn_c_try_compile "$LINENO"; then :
5533 libgcc_cv_as_avx=yes
5534 else
5535 libgcc_cv_as_avx=no
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_avx" >&5
5541 $as_echo "$libgcc_cv_as_avx" >&6; }
5542 if test x$libgcc_cv_as_avx = xyes; then
5544 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
5548 esac
5552 case "${target}" in
5553 aarch64*-*-*)
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports LSE" >&5
5555 $as_echo_n "checking if the assembler supports LSE... " >&6; }
5556 if ${libgcc_cv_as_lse+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5564 main ()
5566 asm(".arch armv8-a+lse\n\tcas w0, w1, [x2]");
5569 return 0;
5571 _ACEOF
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573 libgcc_cv_as_lse=yes
5574 else
5575 libgcc_cv_as_lse=no
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_lse" >&5
5581 $as_echo "$libgcc_cv_as_lse" >&6; }
5582 if test x$libgcc_cv_as_lse = xyes; then
5584 $as_echo "#define HAVE_AS_LSE 1" >>confdefs.h
5588 esac
5592 case "${target}" in
5593 aarch64*-*-*)
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if as supports .variant_pcs" >&5
5595 $as_echo_n "checking if as supports .variant_pcs... " >&6; }
5596 if ${libgcc_cv_as_variant_pcs+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5604 main ()
5606 asm (".variant_pcs foobar");
5608 return 0;
5610 _ACEOF
5611 if ac_fn_c_try_compile "$LINENO"; then :
5612 libgcc_cv_as_variant_pcs=yes
5613 else
5614 libgcc_cv_as_variant_pcs=no
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_variant_pcs" >&5
5620 $as_echo "$libgcc_cv_as_variant_pcs" >&6; }
5621 if test x$libgcc_cv_as_variant_pcs = xyes; then
5623 $as_echo "#define HAVE_AS_VARIANT_PCS 1" >>confdefs.h
5627 esac
5629 # Check __getauxval ABI symbol for CPU feature detection.
5630 case ${target} in
5631 aarch64*-linux-*)
5632 # No link check because the libc may not be present.
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __getauxval" >&5
5634 $as_echo_n "checking for __getauxval... " >&6; }
5635 if ${libgcc_cv_have___getauxval+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 case ${target} in
5639 *-linux-gnu*)
5640 libgcc_cv_have___getauxval=yes
5643 libgcc_cv_have___getauxval=no
5644 esac
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_have___getauxval" >&5
5647 $as_echo "$libgcc_cv_have___getauxval" >&6; }
5648 if test x$libgcc_cv_have___getauxval = xyes; then
5650 $as_echo "#define HAVE___GETAUXVAL 1" >>confdefs.h
5653 esac
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
5656 $as_echo_n "checking for init priority support... " >&6; }
5657 if ${libgcc_cv_init_priority+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5665 main ()
5667 void ip (void) __attribute__ ((constructor (1)));
5669 return 0;
5671 _ACEOF
5672 if ac_fn_c_try_compile "$LINENO"; then :
5673 libgcc_cv_init_priority=yes
5674 else
5675 libgcc_cv_init_priority=no
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
5680 $as_echo "$libgcc_cv_init_priority" >&6; }
5681 if test $libgcc_cv_init_priority = yes; then
5683 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
5687 # Conditionalize the sfp-machine.h header for this target machine.
5688 if test -z "${sfp_machine_header}"; then
5689 sfp_machine_header=$cpu_type/sfp-machine.h
5690 if test -f ${srcdir}/config/${sfp_machine_header}; then
5692 else
5693 sfp_machine_header=no-sfp-machine.h
5698 # Conditionalize the makefile for this target machine.
5699 tmake_file_=
5700 for f in ${tmake_file}
5702 if test -f ${srcdir}/config/$f
5703 then
5704 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
5706 done
5707 tmake_file="${tmake_file_}"
5710 # Likewise export definitions for libgcc_tm.h
5711 tm_file_=
5712 for f in ${tm_file}
5714 tm_file_="${tm_file_} \$(srcdir)/config/$f"
5715 done
5716 tm_file="${tm_file_}"
5720 # Map from thread model to thread header.
5722 case $target_thread_file in
5723 aix) thread_header=config/rs6000/gthr-aix.h ;;
5724 dce) thread_header=config/pa/gthr-dce.h ;;
5725 gcn) thread_header=config/gcn/gthr-gcn.h ;;
5726 lynx) thread_header=config/gthr-lynx.h ;;
5727 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
5728 posix) thread_header=gthr-posix.h ;;
5729 rtems) thread_header=config/gthr-rtems.h ;;
5730 single) thread_header=gthr-single.h ;;
5731 tpf) thread_header=config/s390/gthr-tpf.h ;;
5732 vxworks) thread_header=config/gthr-vxworks.h ;;
5733 win32) thread_header=config/i386/gthr-win32.h ;;
5734 mcf) thread_header=config/i386/gthr-mcf.h ;;
5735 esac
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strub support" >&5
5740 $as_echo_n "checking for strub support... " >&6; }
5741 if ${libgcc_cv_strub_support+:} false; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 void __attribute__ ((__strub__)) fn (void) {}
5747 _ACEOF
5748 if ac_fn_c_try_compile "$LINENO"; then :
5749 libgcc_cv_strub_support=yes
5750 else
5751 libgcc_cv_strub_support=no
5753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_strub_support" >&5
5756 $as_echo "$libgcc_cv_strub_support" >&6; }
5757 if test "x$libgcc_cv_strub_support" != xno; then
5758 HAVE_STRUB_SUPPORT=
5759 else
5760 HAVE_STRUB_SUPPORT='# '
5764 # Determine what GCC version number to use in filesystem paths.
5766 get_gcc_base_ver="cat"
5768 # Check whether --with-gcc-major-version-only was given.
5769 if test "${with_gcc_major_version_only+set}" = set; then :
5770 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5771 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5779 # Substitute configuration variables
5789 # We need multilib support.
5790 ac_config_files="$ac_config_files Makefile"
5792 ac_config_commands="$ac_config_commands default"
5794 cat >confcache <<\_ACEOF
5795 # This file is a shell script that caches the results of configure
5796 # tests run on this system so they can be shared between configure
5797 # scripts and configure runs, see configure's option --config-cache.
5798 # It is not useful on other systems. If it contains results you don't
5799 # want to keep, you may remove or edit it.
5801 # config.status only pays attention to the cache file if you give it
5802 # the --recheck option to rerun configure.
5804 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5805 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5806 # following values.
5808 _ACEOF
5810 # The following way of writing the cache mishandles newlines in values,
5811 # but we know of no workaround that is simple, portable, and efficient.
5812 # So, we kill variables containing newlines.
5813 # Ultrix sh set writes to stderr and can't be redirected directly,
5814 # and sets the high bit in the cache file unless we assign to the vars.
5816 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5817 eval ac_val=\$$ac_var
5818 case $ac_val in #(
5819 *${as_nl}*)
5820 case $ac_var in #(
5821 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5822 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5823 esac
5824 case $ac_var in #(
5825 _ | IFS | as_nl) ;; #(
5826 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5827 *) { eval $ac_var=; unset $ac_var;} ;;
5828 esac ;;
5829 esac
5830 done
5832 (set) 2>&1 |
5833 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5834 *${as_nl}ac_space=\ *)
5835 # `set' does not quote correctly, so add quotes: double-quote
5836 # substitution turns \\\\ into \\, and sed turns \\ into \.
5837 sed -n \
5838 "s/'/'\\\\''/g;
5839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5840 ;; #(
5842 # `set' quotes correctly as required by POSIX, so do not add quotes.
5843 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5845 esac |
5846 sort
5848 sed '
5849 /^ac_cv_env_/b end
5850 t clear
5851 :clear
5852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5853 t end
5854 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5855 :end' >>confcache
5856 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5857 if test -w "$cache_file"; then
5858 if test "x$cache_file" != "x/dev/null"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5860 $as_echo "$as_me: updating cache $cache_file" >&6;}
5861 if test ! -f "$cache_file" || test -h "$cache_file"; then
5862 cat confcache >"$cache_file"
5863 else
5864 case $cache_file in #(
5865 */* | ?:*)
5866 mv -f confcache "$cache_file"$$ &&
5867 mv -f "$cache_file"$$ "$cache_file" ;; #(
5869 mv -f confcache "$cache_file" ;;
5870 esac
5873 else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5875 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5878 rm -f confcache
5880 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5881 # Let make expand exec_prefix.
5882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5884 DEFS=-DHAVE_CONFIG_H
5886 ac_libobjs=
5887 ac_ltlibobjs=
5889 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5890 # 1. Remove the extension, and $U if already installed.
5891 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5892 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5893 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5894 # will be set to the directory where LIBOBJS objects are built.
5895 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5896 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5897 done
5898 LIBOBJS=$ac_libobjs
5900 LTLIBOBJS=$ac_ltlibobjs
5904 : "${CONFIG_STATUS=./config.status}"
5905 ac_write_fail=0
5906 ac_clean_files_save=$ac_clean_files
5907 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5909 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5910 as_write_fail=0
5911 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5912 #! $SHELL
5913 # Generated by $as_me.
5914 # Run this file to recreate the current configuration.
5915 # Compiler output produced by configure, useful for debugging
5916 # configure, is in config.log if it exists.
5918 debug=false
5919 ac_cs_recheck=false
5920 ac_cs_silent=false
5922 SHELL=\${CONFIG_SHELL-$SHELL}
5923 export SHELL
5924 _ASEOF
5925 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5926 ## -------------------- ##
5927 ## M4sh Initialization. ##
5928 ## -------------------- ##
5930 # Be more Bourne compatible
5931 DUALCASE=1; export DUALCASE # for MKS sh
5932 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5933 emulate sh
5934 NULLCMD=:
5935 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5936 # is contrary to our usage. Disable this feature.
5937 alias -g '${1+"$@"}'='"$@"'
5938 setopt NO_GLOB_SUBST
5939 else
5940 case `(set -o) 2>/dev/null` in #(
5941 *posix*) :
5942 set -o posix ;; #(
5943 *) :
5945 esac
5949 as_nl='
5951 export as_nl
5952 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5953 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5954 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5955 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5956 # Prefer a ksh shell builtin over an external printf program on Solaris,
5957 # but without wasting forks for bash or zsh.
5958 if test -z "$BASH_VERSION$ZSH_VERSION" \
5959 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5960 as_echo='print -r --'
5961 as_echo_n='print -rn --'
5962 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5963 as_echo='printf %s\n'
5964 as_echo_n='printf %s'
5965 else
5966 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5967 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5968 as_echo_n='/usr/ucb/echo -n'
5969 else
5970 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5971 as_echo_n_body='eval
5972 arg=$1;
5973 case $arg in #(
5974 *"$as_nl"*)
5975 expr "X$arg" : "X\\(.*\\)$as_nl";
5976 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5977 esac;
5978 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5980 export as_echo_n_body
5981 as_echo_n='sh -c $as_echo_n_body as_echo'
5983 export as_echo_body
5984 as_echo='sh -c $as_echo_body as_echo'
5987 # The user is always right.
5988 if test "${PATH_SEPARATOR+set}" != set; then
5989 PATH_SEPARATOR=:
5990 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5991 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5992 PATH_SEPARATOR=';'
5997 # IFS
5998 # We need space, tab and new line, in precisely that order. Quoting is
5999 # there to prevent editors from complaining about space-tab.
6000 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6001 # splitting by setting IFS to empty value.)
6002 IFS=" "" $as_nl"
6004 # Find who we are. Look in the path if we contain no directory separator.
6005 as_myself=
6006 case $0 in #((
6007 *[\\/]* ) as_myself=$0 ;;
6008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6014 done
6015 IFS=$as_save_IFS
6018 esac
6019 # We did not find ourselves, most probably we were run as `sh COMMAND'
6020 # in which case we are not to be found in the path.
6021 if test "x$as_myself" = x; then
6022 as_myself=$0
6024 if test ! -f "$as_myself"; then
6025 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6026 exit 1
6029 # Unset variables that we do not need and which cause bugs (e.g. in
6030 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6031 # suppresses any "Segmentation fault" message there. '((' could
6032 # trigger a bug in pdksh 5.2.14.
6033 for as_var in BASH_ENV ENV MAIL MAILPATH
6034 do eval test x\${$as_var+set} = xset \
6035 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6036 done
6037 PS1='$ '
6038 PS2='> '
6039 PS4='+ '
6041 # NLS nuisances.
6042 LC_ALL=C
6043 export LC_ALL
6044 LANGUAGE=C
6045 export LANGUAGE
6047 # CDPATH.
6048 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6051 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6052 # ----------------------------------------
6053 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6054 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6055 # script with STATUS, using 1 if that was 0.
6056 as_fn_error ()
6058 as_status=$1; test $as_status -eq 0 && as_status=1
6059 if test "$4"; then
6060 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6061 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6063 $as_echo "$as_me: error: $2" >&2
6064 as_fn_exit $as_status
6065 } # as_fn_error
6068 # as_fn_set_status STATUS
6069 # -----------------------
6070 # Set $? to STATUS, without forking.
6071 as_fn_set_status ()
6073 return $1
6074 } # as_fn_set_status
6076 # as_fn_exit STATUS
6077 # -----------------
6078 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6079 as_fn_exit ()
6081 set +e
6082 as_fn_set_status $1
6083 exit $1
6084 } # as_fn_exit
6086 # as_fn_unset VAR
6087 # ---------------
6088 # Portably unset VAR.
6089 as_fn_unset ()
6091 { eval $1=; unset $1;}
6093 as_unset=as_fn_unset
6094 # as_fn_append VAR VALUE
6095 # ----------------------
6096 # Append the text in VALUE to the end of the definition contained in VAR. Take
6097 # advantage of any shell optimizations that allow amortized linear growth over
6098 # repeated appends, instead of the typical quadratic growth present in naive
6099 # implementations.
6100 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6101 eval 'as_fn_append ()
6103 eval $1+=\$2
6105 else
6106 as_fn_append ()
6108 eval $1=\$$1\$2
6110 fi # as_fn_append
6112 # as_fn_arith ARG...
6113 # ------------------
6114 # Perform arithmetic evaluation on the ARGs, and store the result in the
6115 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6116 # must be portable across $(()) and expr.
6117 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6118 eval 'as_fn_arith ()
6120 as_val=$(( $* ))
6122 else
6123 as_fn_arith ()
6125 as_val=`expr "$@" || test $? -eq 1`
6127 fi # as_fn_arith
6130 if expr a : '\(a\)' >/dev/null 2>&1 &&
6131 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6132 as_expr=expr
6133 else
6134 as_expr=false
6137 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6138 as_basename=basename
6139 else
6140 as_basename=false
6143 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6144 as_dirname=dirname
6145 else
6146 as_dirname=false
6149 as_me=`$as_basename -- "$0" ||
6150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6151 X"$0" : 'X\(//\)$' \| \
6152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6153 $as_echo X/"$0" |
6154 sed '/^.*\/\([^/][^/]*\)\/*$/{
6155 s//\1/
6158 /^X\/\(\/\/\)$/{
6159 s//\1/
6162 /^X\/\(\/\).*/{
6163 s//\1/
6166 s/.*/./; q'`
6168 # Avoid depending upon Character Ranges.
6169 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6170 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6171 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6172 as_cr_digits='0123456789'
6173 as_cr_alnum=$as_cr_Letters$as_cr_digits
6175 ECHO_C= ECHO_N= ECHO_T=
6176 case `echo -n x` in #(((((
6177 -n*)
6178 case `echo 'xy\c'` in
6179 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6180 xy) ECHO_C='\c';;
6181 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6182 ECHO_T=' ';;
6183 esac;;
6185 ECHO_N='-n';;
6186 esac
6188 rm -f conf$$ conf$$.exe conf$$.file
6189 if test -d conf$$.dir; then
6190 rm -f conf$$.dir/conf$$.file
6191 else
6192 rm -f conf$$.dir
6193 mkdir conf$$.dir 2>/dev/null
6195 if (echo >conf$$.file) 2>/dev/null; then
6196 if ln -s conf$$.file conf$$ 2>/dev/null; then
6197 as_ln_s='ln -s'
6198 # ... but there are two gotchas:
6199 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6200 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6201 # In both cases, we have to default to `cp -pR'.
6202 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6203 as_ln_s='cp -pR'
6204 elif ln conf$$.file conf$$ 2>/dev/null; then
6205 as_ln_s=ln
6206 else
6207 as_ln_s='cp -pR'
6209 else
6210 as_ln_s='cp -pR'
6212 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6213 rmdir conf$$.dir 2>/dev/null
6216 # as_fn_mkdir_p
6217 # -------------
6218 # Create "$as_dir" as a directory, including parents if necessary.
6219 as_fn_mkdir_p ()
6222 case $as_dir in #(
6223 -*) as_dir=./$as_dir;;
6224 esac
6225 test -d "$as_dir" || eval $as_mkdir_p || {
6226 as_dirs=
6227 while :; do
6228 case $as_dir in #(
6229 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6230 *) as_qdir=$as_dir;;
6231 esac
6232 as_dirs="'$as_qdir' $as_dirs"
6233 as_dir=`$as_dirname -- "$as_dir" ||
6234 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6235 X"$as_dir" : 'X\(//\)[^/]' \| \
6236 X"$as_dir" : 'X\(//\)$' \| \
6237 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6238 $as_echo X"$as_dir" |
6239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6240 s//\1/
6243 /^X\(\/\/\)[^/].*/{
6244 s//\1/
6247 /^X\(\/\/\)$/{
6248 s//\1/
6251 /^X\(\/\).*/{
6252 s//\1/
6255 s/.*/./; q'`
6256 test -d "$as_dir" && break
6257 done
6258 test -z "$as_dirs" || eval "mkdir $as_dirs"
6259 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6262 } # as_fn_mkdir_p
6263 if mkdir -p . 2>/dev/null; then
6264 as_mkdir_p='mkdir -p "$as_dir"'
6265 else
6266 test -d ./-p && rmdir ./-p
6267 as_mkdir_p=false
6271 # as_fn_executable_p FILE
6272 # -----------------------
6273 # Test if FILE is an executable regular file.
6274 as_fn_executable_p ()
6276 test -f "$1" && test -x "$1"
6277 } # as_fn_executable_p
6278 as_test_x='test -x'
6279 as_executable_p=as_fn_executable_p
6281 # Sed expression to map a string onto a valid CPP name.
6282 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6284 # Sed expression to map a string onto a valid variable name.
6285 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6288 exec 6>&1
6289 ## ----------------------------------- ##
6290 ## Main body of $CONFIG_STATUS script. ##
6291 ## ----------------------------------- ##
6292 _ASEOF
6293 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6296 # Save the log message, to keep $0 and so on meaningful, and to
6297 # report actual input values of CONFIG_FILES etc. instead of their
6298 # values after options handling.
6299 ac_log="
6300 This file was extended by GNU C Runtime Library $as_me 1.0, which was
6301 generated by GNU Autoconf 2.69. Invocation command line was
6303 CONFIG_FILES = $CONFIG_FILES
6304 CONFIG_HEADERS = $CONFIG_HEADERS
6305 CONFIG_LINKS = $CONFIG_LINKS
6306 CONFIG_COMMANDS = $CONFIG_COMMANDS
6307 $ $0 $@
6309 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6312 _ACEOF
6314 case $ac_config_files in *"
6315 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6316 esac
6318 case $ac_config_headers in *"
6319 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6320 esac
6323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6324 # Files that config.status was made for.
6325 config_files="$ac_config_files"
6326 config_headers="$ac_config_headers"
6327 config_commands="$ac_config_commands"
6329 _ACEOF
6331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6332 ac_cs_usage="\
6333 \`$as_me' instantiates files and other configuration actions
6334 from templates according to the current configuration. Unless the files
6335 and actions are specified as TAGs, all are instantiated by default.
6337 Usage: $0 [OPTION]... [TAG]...
6339 -h, --help print this help, then exit
6340 -V, --version print version number and configuration settings, then exit
6341 --config print configuration, then exit
6342 -q, --quiet, --silent
6343 do not print progress messages
6344 -d, --debug don't remove temporary files
6345 --recheck update $as_me by reconfiguring in the same conditions
6346 --file=FILE[:TEMPLATE]
6347 instantiate the configuration file FILE
6348 --header=FILE[:TEMPLATE]
6349 instantiate the configuration header FILE
6351 Configuration files:
6352 $config_files
6354 Configuration headers:
6355 $config_headers
6357 Configuration commands:
6358 $config_commands
6360 Report bugs to the package provider.
6361 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
6362 General help using GNU software: <http://www.gnu.org/gethelp/>."
6364 _ACEOF
6365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6366 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6367 ac_cs_version="\\
6368 GNU C Runtime Library config.status 1.0
6369 configured by $0, generated by GNU Autoconf 2.69,
6370 with options \\"\$ac_cs_config\\"
6372 Copyright (C) 2012 Free Software Foundation, Inc.
6373 This config.status script is free software; the Free Software Foundation
6374 gives unlimited permission to copy, distribute and modify it."
6376 ac_pwd='$ac_pwd'
6377 srcdir='$srcdir'
6378 INSTALL='$INSTALL'
6379 AWK='$AWK'
6380 test -n "\$AWK" || AWK=awk
6381 _ACEOF
6383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6384 # The default lists apply if the user does not specify any file.
6385 ac_need_defaults=:
6386 while test $# != 0
6388 case $1 in
6389 --*=?*)
6390 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6391 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6392 ac_shift=:
6394 --*=)
6395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6396 ac_optarg=
6397 ac_shift=:
6400 ac_option=$1
6401 ac_optarg=$2
6402 ac_shift=shift
6404 esac
6406 case $ac_option in
6407 # Handling of the options.
6408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6409 ac_cs_recheck=: ;;
6410 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6411 $as_echo "$ac_cs_version"; exit ;;
6412 --config | --confi | --conf | --con | --co | --c )
6413 $as_echo "$ac_cs_config"; exit ;;
6414 --debug | --debu | --deb | --de | --d | -d )
6415 debug=: ;;
6416 --file | --fil | --fi | --f )
6417 $ac_shift
6418 case $ac_optarg in
6419 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6420 '') as_fn_error $? "missing file argument" ;;
6421 esac
6422 as_fn_append CONFIG_FILES " '$ac_optarg'"
6423 ac_need_defaults=false;;
6424 --header | --heade | --head | --hea )
6425 $ac_shift
6426 case $ac_optarg in
6427 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6428 esac
6429 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6430 ac_need_defaults=false;;
6431 --he | --h)
6432 # Conflict between --help and --header
6433 as_fn_error $? "ambiguous option: \`$1'
6434 Try \`$0 --help' for more information.";;
6435 --help | --hel | -h )
6436 $as_echo "$ac_cs_usage"; exit ;;
6437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6438 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6439 ac_cs_silent=: ;;
6441 # This is an error.
6442 -*) as_fn_error $? "unrecognized option: \`$1'
6443 Try \`$0 --help' for more information." ;;
6445 *) as_fn_append ac_config_targets " $1"
6446 ac_need_defaults=false ;;
6448 esac
6449 shift
6450 done
6452 ac_configure_extra_args=
6454 if $ac_cs_silent; then
6455 exec 6>/dev/null
6456 ac_configure_extra_args="$ac_configure_extra_args --silent"
6459 _ACEOF
6460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6461 if \$ac_cs_recheck; then
6462 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6463 shift
6464 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6465 CONFIG_SHELL='$SHELL'
6466 export CONFIG_SHELL
6467 exec "\$@"
6470 _ACEOF
6471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6472 exec 5>>config.log
6474 echo
6475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6476 ## Running $as_me. ##
6477 _ASBOX
6478 $as_echo "$ac_log"
6479 } >&5
6481 _ACEOF
6482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6484 # INIT-COMMANDS
6486 srcdir=${srcdir}
6487 host=${host}
6488 with_target_subdir=${with_target_subdir}
6489 with_multisubdir=${with_multisubdir}
6490 ac_configure_args="--enable-multilib ${ac_configure_args}"
6491 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6492 libgcc_topdir=${libgcc_topdir}
6493 CC="${CC}"
6496 _ACEOF
6498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6500 # Handling of arguments.
6501 for ac_config_target in $ac_config_targets
6503 case $ac_config_target in
6504 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
6505 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6506 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6508 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6509 esac
6510 done
6513 # If the user did not use the arguments to specify the items to instantiate,
6514 # then the envvar interface is used. Set only those that are not.
6515 # We use the long form for the default assignment because of an extremely
6516 # bizarre bug on SunOS 4.1.3.
6517 if $ac_need_defaults; then
6518 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6519 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6520 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6523 # Have a temporary directory for convenience. Make it in the build tree
6524 # simply because there is no reason against having it here, and in addition,
6525 # creating and moving files from /tmp can sometimes cause problems.
6526 # Hook for its removal unless debugging.
6527 # Note that there is a small window in which the directory will not be cleaned:
6528 # after its creation but before its name has been assigned to `$tmp'.
6529 $debug ||
6531 tmp= ac_tmp=
6532 trap 'exit_status=$?
6533 : "${ac_tmp:=$tmp}"
6534 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6536 trap 'as_fn_exit 1' 1 2 13 15
6538 # Create a (secure) tmp directory for tmp files.
6541 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6542 test -d "$tmp"
6543 } ||
6545 tmp=./conf$$-$RANDOM
6546 (umask 077 && mkdir "$tmp")
6547 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6548 ac_tmp=$tmp
6550 # Set up the scripts for CONFIG_FILES section.
6551 # No need to generate them if there are no CONFIG_FILES.
6552 # This happens for instance with `./config.status config.h'.
6553 if test -n "$CONFIG_FILES"; then
6556 ac_cr=`echo X | tr X '\015'`
6557 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6558 # But we know of no other shell where ac_cr would be empty at this
6559 # point, so we can use a bashism as a fallback.
6560 if test "x$ac_cr" = x; then
6561 eval ac_cr=\$\'\\r\'
6563 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6564 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6565 ac_cs_awk_cr='\\r'
6566 else
6567 ac_cs_awk_cr=$ac_cr
6570 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6571 _ACEOF
6575 echo "cat >conf$$subs.awk <<_ACEOF" &&
6576 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6577 echo "_ACEOF"
6578 } >conf$$subs.sh ||
6579 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6580 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6581 ac_delim='%!_!# '
6582 for ac_last_try in false false false false false :; do
6583 . ./conf$$subs.sh ||
6584 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6586 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6587 if test $ac_delim_n = $ac_delim_num; then
6588 break
6589 elif $ac_last_try; then
6590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6591 else
6592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6594 done
6595 rm -f conf$$subs.sh
6597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6598 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6599 _ACEOF
6600 sed -n '
6602 s/^/S["/; s/!.*/"]=/
6605 s/^[^!]*!//
6606 :repl
6607 t repl
6608 s/'"$ac_delim"'$//
6609 t delim
6612 s/\(.\{148\}\)..*/\1/
6613 t more1
6614 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6617 b repl
6618 :more1
6619 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6622 s/.\{148\}//
6623 t nl
6624 :delim
6626 s/\(.\{148\}\)..*/\1/
6627 t more2
6628 s/["\\]/\\&/g; s/^/"/; s/$/"/
6631 :more2
6632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6635 s/.\{148\}//
6636 t delim
6637 ' <conf$$subs.awk | sed '
6638 /^[^""]/{
6640 s/\n//
6642 ' >>$CONFIG_STATUS || ac_write_fail=1
6643 rm -f conf$$subs.awk
6644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6645 _ACAWK
6646 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6647 for (key in S) S_is_set[key] = 1
6648 FS = "\a"
6652 line = $ 0
6653 nfields = split(line, field, "@")
6654 substed = 0
6655 len = length(field[1])
6656 for (i = 2; i < nfields; i++) {
6657 key = field[i]
6658 keylen = length(key)
6659 if (S_is_set[key]) {
6660 value = S[key]
6661 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6662 len += length(value) + length(field[++i])
6663 substed = 1
6664 } else
6665 len += 1 + keylen
6668 print line
6671 _ACAWK
6672 _ACEOF
6673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6674 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6675 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6676 else
6678 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6679 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6680 _ACEOF
6682 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6683 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6684 # trailing colons and then remove the whole line if VPATH becomes empty
6685 # (actually we leave an empty line to preserve line numbers).
6686 if test "x$srcdir" = x.; then
6687 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6689 s///
6690 s/^/:/
6691 s/[ ]*$/:/
6692 s/:\$(srcdir):/:/g
6693 s/:\${srcdir}:/:/g
6694 s/:@srcdir@:/:/g
6695 s/^:*//
6696 s/:*$//
6698 s/\(=[ ]*\).*/\1/
6700 s/\n//
6701 s/^[^=]*=[ ]*$//
6705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6706 fi # test -n "$CONFIG_FILES"
6708 # Set up the scripts for CONFIG_HEADERS section.
6709 # No need to generate them if there are no CONFIG_HEADERS.
6710 # This happens for instance with `./config.status Makefile'.
6711 if test -n "$CONFIG_HEADERS"; then
6712 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6713 BEGIN {
6714 _ACEOF
6716 # Transform confdefs.h into an awk script `defines.awk', embedded as
6717 # here-document in config.status, that substitutes the proper values into
6718 # config.h.in to produce config.h.
6720 # Create a delimiter string that does not exist in confdefs.h, to ease
6721 # handling of long lines.
6722 ac_delim='%!_!# '
6723 for ac_last_try in false false :; do
6724 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6725 if test -z "$ac_tt"; then
6726 break
6727 elif $ac_last_try; then
6728 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6729 else
6730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6732 done
6734 # For the awk script, D is an array of macro values keyed by name,
6735 # likewise P contains macro parameters if any. Preserve backslash
6736 # newline sequences.
6738 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6739 sed -n '
6740 s/.\{148\}/&'"$ac_delim"'/g
6741 t rset
6742 :rset
6743 s/^[ ]*#[ ]*define[ ][ ]*/ /
6744 t def
6746 :def
6747 s/\\$//
6748 t bsnl
6749 s/["\\]/\\&/g
6750 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6751 D["\1"]=" \3"/p
6752 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6754 :bsnl
6755 s/["\\]/\\&/g
6756 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6757 D["\1"]=" \3\\\\\\n"\\/p
6758 t cont
6759 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6760 t cont
6762 :cont
6764 s/.\{148\}/&'"$ac_delim"'/g
6765 t clear
6766 :clear
6767 s/\\$//
6768 t bsnlc
6769 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6771 :bsnlc
6772 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6773 b cont
6774 ' <confdefs.h | sed '
6775 s/'"$ac_delim"'/"\\\
6776 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6779 for (key in D) D_is_set[key] = 1
6780 FS = "\a"
6782 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6783 line = \$ 0
6784 split(line, arg, " ")
6785 if (arg[1] == "#") {
6786 defundef = arg[2]
6787 mac1 = arg[3]
6788 } else {
6789 defundef = substr(arg[1], 2)
6790 mac1 = arg[2]
6792 split(mac1, mac2, "(") #)
6793 macro = mac2[1]
6794 prefix = substr(line, 1, index(line, defundef) - 1)
6795 if (D_is_set[macro]) {
6796 # Preserve the white space surrounding the "#".
6797 print prefix "define", macro P[macro] D[macro]
6798 next
6799 } else {
6800 # Replace #undef with comments. This is necessary, for example,
6801 # in the case of _POSIX_SOURCE, which is predefined and required
6802 # on some systems where configure will not decide to define it.
6803 if (defundef == "undef") {
6804 print "/*", prefix defundef, macro, "*/"
6805 next
6809 { print }
6810 _ACAWK
6811 _ACEOF
6812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6813 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6814 fi # test -n "$CONFIG_HEADERS"
6817 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6818 shift
6819 for ac_tag
6821 case $ac_tag in
6822 :[FHLC]) ac_mode=$ac_tag; continue;;
6823 esac
6824 case $ac_mode$ac_tag in
6825 :[FHL]*:*);;
6826 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6827 :[FH]-) ac_tag=-:-;;
6828 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6829 esac
6830 ac_save_IFS=$IFS
6831 IFS=:
6832 set x $ac_tag
6833 IFS=$ac_save_IFS
6834 shift
6835 ac_file=$1
6836 shift
6838 case $ac_mode in
6839 :L) ac_source=$1;;
6840 :[FH])
6841 ac_file_inputs=
6842 for ac_f
6844 case $ac_f in
6845 -) ac_f="$ac_tmp/stdin";;
6846 *) # Look for the file first in the build tree, then in the source tree
6847 # (if the path is not absolute). The absolute path cannot be DOS-style,
6848 # because $ac_f cannot contain `:'.
6849 test -f "$ac_f" ||
6850 case $ac_f in
6851 [\\/$]*) false;;
6852 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6853 esac ||
6854 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6855 esac
6856 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6857 as_fn_append ac_file_inputs " '$ac_f'"
6858 done
6860 # Let's still pretend it is `configure' which instantiates (i.e., don't
6861 # use $as_me), people would be surprised to read:
6862 # /* config.h. Generated by config.status. */
6863 configure_input='Generated from '`
6864 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6865 `' by configure.'
6866 if test x"$ac_file" != x-; then
6867 configure_input="$ac_file. $configure_input"
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6869 $as_echo "$as_me: creating $ac_file" >&6;}
6871 # Neutralize special characters interpreted by sed in replacement strings.
6872 case $configure_input in #(
6873 *\&* | *\|* | *\\* )
6874 ac_sed_conf_input=`$as_echo "$configure_input" |
6875 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6876 *) ac_sed_conf_input=$configure_input;;
6877 esac
6879 case $ac_tag in
6880 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6882 esac
6884 esac
6886 ac_dir=`$as_dirname -- "$ac_file" ||
6887 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6888 X"$ac_file" : 'X\(//\)[^/]' \| \
6889 X"$ac_file" : 'X\(//\)$' \| \
6890 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6891 $as_echo X"$ac_file" |
6892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6893 s//\1/
6896 /^X\(\/\/\)[^/].*/{
6897 s//\1/
6900 /^X\(\/\/\)$/{
6901 s//\1/
6904 /^X\(\/\).*/{
6905 s//\1/
6908 s/.*/./; q'`
6909 as_dir="$ac_dir"; as_fn_mkdir_p
6910 ac_builddir=.
6912 case "$ac_dir" in
6913 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6915 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6916 # A ".." for each directory in $ac_dir_suffix.
6917 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6918 case $ac_top_builddir_sub in
6919 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6920 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6921 esac ;;
6922 esac
6923 ac_abs_top_builddir=$ac_pwd
6924 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6925 # for backward compatibility:
6926 ac_top_builddir=$ac_top_build_prefix
6928 case $srcdir in
6929 .) # We are building in place.
6930 ac_srcdir=.
6931 ac_top_srcdir=$ac_top_builddir_sub
6932 ac_abs_top_srcdir=$ac_pwd ;;
6933 [\\/]* | ?:[\\/]* ) # Absolute name.
6934 ac_srcdir=$srcdir$ac_dir_suffix;
6935 ac_top_srcdir=$srcdir
6936 ac_abs_top_srcdir=$srcdir ;;
6937 *) # Relative name.
6938 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6939 ac_top_srcdir=$ac_top_build_prefix$srcdir
6940 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6941 esac
6942 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6945 case $ac_mode in
6948 # CONFIG_FILE
6951 case $INSTALL in
6952 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6953 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6954 esac
6955 _ACEOF
6957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6958 # If the template does not know about datarootdir, expand it.
6959 # FIXME: This hack should be removed a few years after 2.60.
6960 ac_datarootdir_hack=; ac_datarootdir_seen=
6961 ac_sed_dataroot='
6962 /datarootdir/ {
6966 /@datadir@/p
6967 /@docdir@/p
6968 /@infodir@/p
6969 /@localedir@/p
6970 /@mandir@/p'
6971 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6972 *datarootdir*) ac_datarootdir_seen=yes;;
6973 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6975 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6976 _ACEOF
6977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6978 ac_datarootdir_hack='
6979 s&@datadir@&$datadir&g
6980 s&@docdir@&$docdir&g
6981 s&@infodir@&$infodir&g
6982 s&@localedir@&$localedir&g
6983 s&@mandir@&$mandir&g
6984 s&\\\${datarootdir}&$datarootdir&g' ;;
6985 esac
6986 _ACEOF
6988 # Neutralize VPATH when `$srcdir' = `.'.
6989 # Shell code in configure.ac might set extrasub.
6990 # FIXME: do we really want to maintain this feature?
6991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6992 ac_sed_extra="$ac_vpsub
6993 $extrasub
6994 _ACEOF
6995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6998 s|@configure_input@|$ac_sed_conf_input|;t t
6999 s&@top_builddir@&$ac_top_builddir_sub&;t t
7000 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7001 s&@srcdir@&$ac_srcdir&;t t
7002 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7003 s&@top_srcdir@&$ac_top_srcdir&;t t
7004 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7005 s&@builddir@&$ac_builddir&;t t
7006 s&@abs_builddir@&$ac_abs_builddir&;t t
7007 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7008 s&@INSTALL@&$ac_INSTALL&;t t
7009 $ac_datarootdir_hack
7011 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7012 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7014 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7015 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7016 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7017 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7019 which seems to be undefined. Please make sure it is defined" >&5
7020 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7021 which seems to be undefined. Please make sure it is defined" >&2;}
7023 rm -f "$ac_tmp/stdin"
7024 case $ac_file in
7025 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7026 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7027 esac \
7028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7032 # CONFIG_HEADER
7034 if test x"$ac_file" != x-; then
7036 $as_echo "/* $configure_input */" \
7037 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7038 } >"$ac_tmp/config.h" \
7039 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7040 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7042 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7043 else
7044 rm -f "$ac_file"
7045 mv "$ac_tmp/config.h" "$ac_file" \
7046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7048 else
7049 $as_echo "/* $configure_input */" \
7050 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7051 || as_fn_error $? "could not create -" "$LINENO" 5
7055 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7056 $as_echo "$as_me: executing $ac_file commands" >&6;}
7058 esac
7061 case $ac_file$ac_mode in
7062 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7063 if test -n "$CONFIG_FILES"; then
7064 # FIXME: We shouldn't need to set ac_file
7065 ac_file=Makefile
7066 . ${libgcc_topdir}/config-ml.in
7067 fi ;;
7069 esac
7070 done # for ac_tag
7073 as_fn_exit 0
7074 _ACEOF
7075 ac_clean_files=$ac_clean_files_save
7077 test $ac_write_fail = 0 ||
7078 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7081 # configure is writing to config.log, and then calls config.status.
7082 # config.status does its own redirection, appending to config.log.
7083 # Unfortunately, on DOS this fails, as config.log is still kept open
7084 # by configure, so config.status won't be able to write to it; its
7085 # output is simply discarded. So we exec the FD to /dev/null,
7086 # effectively closing config.log, so it can be properly (re)opened and
7087 # appended to by config.status. When coming back to configure, we
7088 # need to make the FD available again.
7089 if test "$no_create" != yes; then
7090 ac_cs_success=:
7091 ac_config_status_args=
7092 test "$silent" = yes &&
7093 ac_config_status_args="$ac_config_status_args --quiet"
7094 exec 5>/dev/null
7095 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7096 exec 5>>config.log
7097 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7098 # would make configure fail if this is the last instruction.
7099 $ac_cs_success || as_fn_exit 1
7101 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7103 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}