gcc/
[official-gcc.git] / libgcc / configure
blob9ce74e48d4ee040f42b21330b757fe4659dc18ad
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU C Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME='GNU C Runtime Library'
548 PACKAGE_TARNAME='libgcc'
549 PACKAGE_VERSION='1.0'
550 PACKAGE_STRING='GNU C Runtime Library 1.0'
551 PACKAGE_BUGREPORT=''
552 PACKAGE_URL='http://www.gnu.org/software/libgcc/'
554 ac_unique_file="static-object.mk"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
591 ac_subst_vars='LTLIBOBJS
592 LIBOBJS
593 asm_hidden_op
594 extra_parts
595 cpu_type
596 tm_defines
597 tm_file
598 tmake_file
599 sfp_machine_header
600 set_use_emutls
601 set_have_cc_tls
602 vis_hide
603 fixed_point
604 enable_decimal_float
605 decimal_float
606 long_double_type_size
607 double_type_size
608 EGREP
609 GREP
611 OBJEXT
612 EXEEXT
613 ac_ct_CC
614 CPPFLAGS
615 LDFLAGS
616 CFLAGS
618 LN_S
619 STRIP
620 RANLIB
622 LIPO
624 toolexeclibdir
625 toolexecdir
626 target_subdir
627 host_subdir
628 build_subdir
629 build_libsubdir
630 target_noncanonical
631 host_noncanonical
633 INSTALL_DATA
634 INSTALL_SCRIPT
635 INSTALL_PROGRAM
636 MAINT
637 slibdir
638 PICFLAG
639 host_os
640 host_vendor
641 host_cpu
642 host
643 build_os
644 build_vendor
645 build_cpu
646 build
647 enable_shared
648 libgcc_topdir
649 target_alias
650 host_alias
651 build_alias
652 LIBS
653 ECHO_T
654 ECHO_N
655 ECHO_C
656 DEFS
657 mandir
658 localedir
659 libdir
660 psdir
661 pdfdir
662 dvidir
663 htmldir
664 infodir
665 docdir
666 oldincludedir
667 includedir
668 localstatedir
669 sharedstatedir
670 sysconfdir
671 datadir
672 datarootdir
673 libexecdir
674 sbindir
675 bindir
676 program_transform_name
677 prefix
678 exec_prefix
679 PACKAGE_URL
680 PACKAGE_BUGREPORT
681 PACKAGE_STRING
682 PACKAGE_VERSION
683 PACKAGE_TARNAME
684 PACKAGE_NAME
685 PATH_SEPARATOR
686 SHELL'
687 ac_subst_files=''
688 ac_user_opts='
689 enable_option_checking
690 with_target_subdir
691 with_cross_host
692 with_ld
693 enable_shared
694 enable_version_specific_runtime_libs
695 with_slibdir
696 enable_maintainer_mode
697 with_build_libsubdir
698 enable_decimal_float
699 with_system_libunwind
700 enable_sjlj_exceptions
701 enable_tls
703 ac_precious_vars='build_alias
704 host_alias
705 target_alias
707 CFLAGS
708 LDFLAGS
709 LIBS
710 CPPFLAGS
711 CPP'
714 # Initialize some variables set by options.
715 ac_init_help=
716 ac_init_version=false
717 ac_unrecognized_opts=
718 ac_unrecognized_sep=
719 # The variables have the same names as the options, with
720 # dashes changed to underlines.
721 cache_file=/dev/null
722 exec_prefix=NONE
723 no_create=
724 no_recursion=
725 prefix=NONE
726 program_prefix=NONE
727 program_suffix=NONE
728 program_transform_name=s,x,x,
729 silent=
730 site=
731 srcdir=
732 verbose=
733 x_includes=NONE
734 x_libraries=NONE
736 # Installation directory options.
737 # These are left unexpanded so users can "make install exec_prefix=/foo"
738 # and all the variables that are supposed to be based on exec_prefix
739 # by default will actually change.
740 # Use braces instead of parens because sh, perl, etc. also accept them.
741 # (The list follows the same order as the GNU Coding Standards.)
742 bindir='${exec_prefix}/bin'
743 sbindir='${exec_prefix}/sbin'
744 libexecdir='${exec_prefix}/libexec'
745 datarootdir='${prefix}/share'
746 datadir='${datarootdir}'
747 sysconfdir='${prefix}/etc'
748 sharedstatedir='${prefix}/com'
749 localstatedir='${prefix}/var'
750 includedir='${prefix}/include'
751 oldincludedir='/usr/include'
752 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
753 infodir='${datarootdir}/info'
754 htmldir='${docdir}'
755 dvidir='${docdir}'
756 pdfdir='${docdir}'
757 psdir='${docdir}'
758 libdir='${exec_prefix}/lib'
759 localedir='${datarootdir}/locale'
760 mandir='${datarootdir}/man'
762 ac_prev=
763 ac_dashdash=
764 for ac_option
766 # If the previous option needs an argument, assign it.
767 if test -n "$ac_prev"; then
768 eval $ac_prev=\$ac_option
769 ac_prev=
770 continue
773 case $ac_option in
774 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775 *) ac_optarg=yes ;;
776 esac
778 # Accept the important Cygnus configure options, so we can diagnose typos.
780 case $ac_dashdash$ac_option in
782 ac_dashdash=yes ;;
784 -bindir | --bindir | --bindi | --bind | --bin | --bi)
785 ac_prev=bindir ;;
786 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
787 bindir=$ac_optarg ;;
789 -build | --build | --buil | --bui | --bu)
790 ac_prev=build_alias ;;
791 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
792 build_alias=$ac_optarg ;;
794 -cache-file | --cache-file | --cache-fil | --cache-fi \
795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
796 ac_prev=cache_file ;;
797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
799 cache_file=$ac_optarg ;;
801 --config-cache | -C)
802 cache_file=config.cache ;;
804 -datadir | --datadir | --datadi | --datad)
805 ac_prev=datadir ;;
806 -datadir=* | --datadir=* | --datadi=* | --datad=*)
807 datadir=$ac_optarg ;;
809 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
810 | --dataroo | --dataro | --datar)
811 ac_prev=datarootdir ;;
812 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
813 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
814 datarootdir=$ac_optarg ;;
816 -disable-* | --disable-*)
817 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
818 # Reject names that are not valid shell variable names.
819 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
820 as_fn_error "invalid feature name: $ac_useropt"
821 ac_useropt_orig=$ac_useropt
822 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
823 case $ac_user_opts in
825 "enable_$ac_useropt"
826 "*) ;;
827 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
828 ac_unrecognized_sep=', ';;
829 esac
830 eval enable_$ac_useropt=no ;;
832 -docdir | --docdir | --docdi | --doc | --do)
833 ac_prev=docdir ;;
834 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
835 docdir=$ac_optarg ;;
837 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
838 ac_prev=dvidir ;;
839 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
840 dvidir=$ac_optarg ;;
842 -enable-* | --enable-*)
843 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 as_fn_error "invalid feature name: $ac_useropt"
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
851 "enable_$ac_useropt"
852 "*) ;;
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
855 esac
856 eval enable_$ac_useropt=\$ac_optarg ;;
858 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
859 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
860 | --exec | --exe | --ex)
861 ac_prev=exec_prefix ;;
862 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
863 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
864 | --exec=* | --exe=* | --ex=*)
865 exec_prefix=$ac_optarg ;;
867 -gas | --gas | --ga | --g)
868 # Obsolete; use --with-gas.
869 with_gas=yes ;;
871 -help | --help | --hel | --he | -h)
872 ac_init_help=long ;;
873 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
874 ac_init_help=recursive ;;
875 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
876 ac_init_help=short ;;
878 -host | --host | --hos | --ho)
879 ac_prev=host_alias ;;
880 -host=* | --host=* | --hos=* | --ho=*)
881 host_alias=$ac_optarg ;;
883 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
884 ac_prev=htmldir ;;
885 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
886 | --ht=*)
887 htmldir=$ac_optarg ;;
889 -includedir | --includedir | --includedi | --included | --include \
890 | --includ | --inclu | --incl | --inc)
891 ac_prev=includedir ;;
892 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
893 | --includ=* | --inclu=* | --incl=* | --inc=*)
894 includedir=$ac_optarg ;;
896 -infodir | --infodir | --infodi | --infod | --info | --inf)
897 ac_prev=infodir ;;
898 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
899 infodir=$ac_optarg ;;
901 -libdir | --libdir | --libdi | --libd)
902 ac_prev=libdir ;;
903 -libdir=* | --libdir=* | --libdi=* | --libd=*)
904 libdir=$ac_optarg ;;
906 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
907 | --libexe | --libex | --libe)
908 ac_prev=libexecdir ;;
909 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
910 | --libexe=* | --libex=* | --libe=*)
911 libexecdir=$ac_optarg ;;
913 -localedir | --localedir | --localedi | --localed | --locale)
914 ac_prev=localedir ;;
915 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
916 localedir=$ac_optarg ;;
918 -localstatedir | --localstatedir | --localstatedi | --localstated \
919 | --localstate | --localstat | --localsta | --localst | --locals)
920 ac_prev=localstatedir ;;
921 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
922 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
923 localstatedir=$ac_optarg ;;
925 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
926 ac_prev=mandir ;;
927 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
928 mandir=$ac_optarg ;;
930 -nfp | --nfp | --nf)
931 # Obsolete; use --without-fp.
932 with_fp=no ;;
934 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
935 | --no-cr | --no-c | -n)
936 no_create=yes ;;
938 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
939 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
940 no_recursion=yes ;;
942 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
943 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
944 | --oldin | --oldi | --old | --ol | --o)
945 ac_prev=oldincludedir ;;
946 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
947 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
948 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
949 oldincludedir=$ac_optarg ;;
951 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
952 ac_prev=prefix ;;
953 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
954 prefix=$ac_optarg ;;
956 -program-prefix | --program-prefix | --program-prefi | --program-pref \
957 | --program-pre | --program-pr | --program-p)
958 ac_prev=program_prefix ;;
959 -program-prefix=* | --program-prefix=* | --program-prefi=* \
960 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
961 program_prefix=$ac_optarg ;;
963 -program-suffix | --program-suffix | --program-suffi | --program-suff \
964 | --program-suf | --program-su | --program-s)
965 ac_prev=program_suffix ;;
966 -program-suffix=* | --program-suffix=* | --program-suffi=* \
967 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
968 program_suffix=$ac_optarg ;;
970 -program-transform-name | --program-transform-name \
971 | --program-transform-nam | --program-transform-na \
972 | --program-transform-n | --program-transform- \
973 | --program-transform | --program-transfor \
974 | --program-transfo | --program-transf \
975 | --program-trans | --program-tran \
976 | --progr-tra | --program-tr | --program-t)
977 ac_prev=program_transform_name ;;
978 -program-transform-name=* | --program-transform-name=* \
979 | --program-transform-nam=* | --program-transform-na=* \
980 | --program-transform-n=* | --program-transform-=* \
981 | --program-transform=* | --program-transfor=* \
982 | --program-transfo=* | --program-transf=* \
983 | --program-trans=* | --program-tran=* \
984 | --progr-tra=* | --program-tr=* | --program-t=*)
985 program_transform_name=$ac_optarg ;;
987 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
988 ac_prev=pdfdir ;;
989 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
990 pdfdir=$ac_optarg ;;
992 -psdir | --psdir | --psdi | --psd | --ps)
993 ac_prev=psdir ;;
994 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
995 psdir=$ac_optarg ;;
997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
998 | -silent | --silent | --silen | --sile | --sil)
999 silent=yes ;;
1001 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1002 ac_prev=sbindir ;;
1003 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1004 | --sbi=* | --sb=*)
1005 sbindir=$ac_optarg ;;
1007 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1008 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1009 | --sharedst | --shareds | --shared | --share | --shar \
1010 | --sha | --sh)
1011 ac_prev=sharedstatedir ;;
1012 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1013 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1014 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1015 | --sha=* | --sh=*)
1016 sharedstatedir=$ac_optarg ;;
1018 -site | --site | --sit)
1019 ac_prev=site ;;
1020 -site=* | --site=* | --sit=*)
1021 site=$ac_optarg ;;
1023 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1024 ac_prev=srcdir ;;
1025 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1026 srcdir=$ac_optarg ;;
1028 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1029 | --syscon | --sysco | --sysc | --sys | --sy)
1030 ac_prev=sysconfdir ;;
1031 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1032 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1033 sysconfdir=$ac_optarg ;;
1035 -target | --target | --targe | --targ | --tar | --ta | --t)
1036 ac_prev=target_alias ;;
1037 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1038 target_alias=$ac_optarg ;;
1040 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1041 verbose=yes ;;
1043 -version | --version | --versio | --versi | --vers | -V)
1044 ac_init_version=: ;;
1046 -with-* | --with-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error "invalid package name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "with_$ac_useropt"
1056 "*) ;;
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1059 esac
1060 eval with_$ac_useropt=\$ac_optarg ;;
1062 -without-* | --without-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error "invalid package name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "with_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval with_$ac_useropt=no ;;
1078 --x)
1079 # Obsolete; use --with-x.
1080 with_x=yes ;;
1082 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1083 | --x-incl | --x-inc | --x-in | --x-i)
1084 ac_prev=x_includes ;;
1085 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1086 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1087 x_includes=$ac_optarg ;;
1089 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1090 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1091 ac_prev=x_libraries ;;
1092 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1093 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1094 x_libraries=$ac_optarg ;;
1096 -*) as_fn_error "unrecognized option: \`$ac_option'
1097 Try \`$0 --help' for more information."
1100 *=*)
1101 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names.
1103 case $ac_envvar in #(
1104 '' | [0-9]* | *[!_$as_cr_alnum]* )
1105 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1106 esac
1107 eval $ac_envvar=\$ac_optarg
1108 export $ac_envvar ;;
1111 # FIXME: should be removed in autoconf 3.0.
1112 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1113 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1118 esac
1119 done
1121 if test -n "$ac_prev"; then
1122 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1123 as_fn_error "missing argument to $ac_option"
1126 if test -n "$ac_unrecognized_opts"; then
1127 case $enable_option_checking in
1128 no) ;;
1129 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1130 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1131 esac
1134 # Check all directory arguments for consistency.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 # Remove trailing slashes.
1142 case $ac_val in
1143 */ )
1144 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1145 eval $ac_var=\$ac_val;;
1146 esac
1147 # Be sure to have absolute directory names.
1148 case $ac_val in
1149 [\\/$]* | ?:[\\/]* ) continue;;
1150 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1151 esac
1152 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1153 done
1155 # There might be people who depend on the old broken behavior: `$host'
1156 # used to hold the argument of --host etc.
1157 # FIXME: To remove some day.
1158 build=$build_alias
1159 host=$host_alias
1160 target=$target_alias
1162 # FIXME: To remove some day.
1163 if test "x$host_alias" != x; then
1164 if test "x$build_alias" = x; then
1165 cross_compiling=maybe
1166 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1167 If a cross compiler is detected then cross compile mode will be used." >&2
1168 elif test "x$build_alias" != "x$host_alias"; then
1169 cross_compiling=yes
1173 ac_tool_prefix=
1174 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1176 test "$silent" = yes && exec 6>/dev/null
1179 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1180 ac_ls_di=`ls -di .` &&
1181 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1182 as_fn_error "working directory cannot be determined"
1183 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1184 as_fn_error "pwd does not report name of working directory"
1187 # Find the source files, if location was not specified.
1188 if test -z "$srcdir"; then
1189 ac_srcdir_defaulted=yes
1190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir=`$as_dirname -- "$as_myself" ||
1192 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$as_myself" : 'X\(//\)[^/]' \| \
1194 X"$as_myself" : 'X\(//\)$' \| \
1195 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1196 $as_echo X"$as_myself" |
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 s//\1/
1201 /^X\(\/\/\)[^/].*/{
1202 s//\1/
1205 /^X\(\/\/\)$/{
1206 s//\1/
1209 /^X\(\/\).*/{
1210 s//\1/
1213 s/.*/./; q'`
1214 srcdir=$ac_confdir
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 srcdir=..
1218 else
1219 ac_srcdir_defaulted=no
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1223 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1225 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1226 ac_abs_confdir=`(
1227 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1228 pwd)`
1229 # When building in place, set srcdir=.
1230 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 srcdir=.
1233 # Remove unnecessary trailing slashes from srcdir.
1234 # Double slashes in file names in object file debugging info
1235 # mess up M-x gdb in Emacs.
1236 case $srcdir in
1237 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238 esac
1239 for ac_var in $ac_precious_vars; do
1240 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_env_${ac_var}_value=\$${ac_var}
1242 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1244 done
1247 # Report the --help message.
1249 if test "$ac_init_help" = "long"; then
1250 # Omit some internal or obsolete options to make the list less imposing.
1251 # This message is too long to be a string in the A/UX 3.1 sh.
1252 cat <<_ACEOF
1253 \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1255 Usage: $0 [OPTION]... [VAR=VALUE]...
1257 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258 VAR=VALUE. See below for descriptions of some of the useful variables.
1260 Defaults for the options are specified in brackets.
1262 Configuration:
1263 -h, --help display this help and exit
1264 --help=short display options specific to this package
1265 --help=recursive display the short help of all the included packages
1266 -V, --version display version information and exit
1267 -q, --quiet, --silent do not print \`checking...' messages
1268 --cache-file=FILE cache test results in FILE [disabled]
1269 -C, --config-cache alias for \`--cache-file=config.cache'
1270 -n, --no-create do not create output files
1271 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273 Installation directories:
1274 --prefix=PREFIX install architecture-independent files in PREFIX
1275 [$ac_default_prefix]
1276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 [PREFIX]
1279 By default, \`make install' will install all the files in
1280 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1281 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282 for instance \`--prefix=\$HOME'.
1284 For better control, use the options below.
1286 Fine tuning of the installation directories:
1287 --bindir=DIR user executables [EPREFIX/bin]
1288 --sbindir=DIR system admin executables [EPREFIX/sbin]
1289 --libexecdir=DIR program executables [EPREFIX/libexec]
1290 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1291 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1292 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1293 --libdir=DIR object code libraries [EPREFIX/lib]
1294 --includedir=DIR C header files [PREFIX/include]
1295 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298 --infodir=DIR info documentation [DATAROOTDIR/info]
1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300 --mandir=DIR man documentation [DATAROOTDIR/man]
1301 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1302 --htmldir=DIR html documentation [DOCDIR]
1303 --dvidir=DIR dvi documentation [DOCDIR]
1304 --pdfdir=DIR pdf documentation [DOCDIR]
1305 --psdir=DIR ps documentation [DOCDIR]
1306 _ACEOF
1308 cat <<\_ACEOF
1310 System types:
1311 --build=BUILD configure for building on BUILD [guessed]
1312 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1313 _ACEOF
1316 if test -n "$ac_init_help"; then
1317 case $ac_init_help in
1318 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1319 esac
1320 cat <<\_ACEOF
1322 Optional Features:
1323 --disable-option-checking ignore unrecognized --enable/--with options
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1326 --disable-shared don't provide a shared libgcc
1327 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1328 --enable-maintainer-mode
1329 enable make rules and dependencies not useful (and
1330 sometimes confusing) to the casual installer
1331 --enable-decimal-float={no,yes,bid,dpd}
1332 enable decimal float extension to C. Selecting 'bid'
1333 or 'dpd' choses which decimal floating point format
1334 to use
1335 --enable-sjlj-exceptions
1336 force use of builtin_setjmp for exceptions
1337 --enable-tls Use thread-local storage [default=yes]
1339 Optional Packages:
1340 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1341 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1342 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1343 --with-cross-host=HOST Configuring with a cross compiler
1344 --with-ld arrange to use the specified ld (full pathname)
1345 --with-slibdir=DIR shared libraries in DIR LIBDIR
1346 --with-build-libsubdir=DIR Directory where to find libraries for build system
1347 --with-system-libunwind use installed libunwind
1349 Some influential environment variables:
1350 CC C compiler command
1351 CFLAGS C compiler flags
1352 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1353 nonstandard directory <lib dir>
1354 LIBS libraries to pass to the linker, e.g. -l<library>
1355 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1356 you have headers in a nonstandard directory <include dir>
1357 CPP C preprocessor
1359 Use these variables to override the choices made by `configure' or to help
1360 it to find libraries and programs with nonstandard names/locations.
1362 Report bugs to the package provider.
1363 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1364 General help using GNU software: <http://www.gnu.org/gethelp/>.
1365 _ACEOF
1366 ac_status=$?
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" ||
1373 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1374 continue
1375 ac_builddir=.
1377 case "$ac_dir" in
1378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1381 # A ".." for each directory in $ac_dir_suffix.
1382 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1383 case $ac_top_builddir_sub in
1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 esac ;;
1387 esac
1388 ac_abs_top_builddir=$ac_pwd
1389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1390 # for backward compatibility:
1391 ac_top_builddir=$ac_top_build_prefix
1393 case $srcdir in
1394 .) # We are building in place.
1395 ac_srcdir=.
1396 ac_top_srcdir=$ac_top_builddir_sub
1397 ac_abs_top_srcdir=$ac_pwd ;;
1398 [\\/]* | ?:[\\/]* ) # Absolute name.
1399 ac_srcdir=$srcdir$ac_dir_suffix;
1400 ac_top_srcdir=$srcdir
1401 ac_abs_top_srcdir=$srcdir ;;
1402 *) # Relative name.
1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1404 ac_top_srcdir=$ac_top_build_prefix$srcdir
1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406 esac
1407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1409 cd "$ac_dir" || { ac_status=$?; continue; }
1410 # Check for guested configure.
1411 if test -f "$ac_srcdir/configure.gnu"; then
1412 echo &&
1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1414 elif test -f "$ac_srcdir/configure"; then
1415 echo &&
1416 $SHELL "$ac_srcdir/configure" --help=recursive
1417 else
1418 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419 fi || ac_status=$?
1420 cd "$ac_pwd" || { ac_status=$?; break; }
1421 done
1424 test -n "$ac_init_help" && exit $ac_status
1425 if $ac_init_version; then
1426 cat <<\_ACEOF
1427 GNU C Runtime Library configure 1.0
1428 generated by GNU Autoconf 2.64
1430 Copyright (C) 2009 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1433 _ACEOF
1434 exit
1437 ## ------------------------ ##
1438 ## Autoconf initialization. ##
1439 ## ------------------------ ##
1441 # ac_fn_c_try_compile LINENO
1442 # --------------------------
1443 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1444 ac_fn_c_try_compile ()
1446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1447 rm -f conftest.$ac_objext
1448 if { { ac_try="$ac_compile"
1449 case "(($ac_try" in
1450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1451 *) ac_try_echo=$ac_try;;
1452 esac
1453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1454 $as_echo "$ac_try_echo"; } >&5
1455 (eval "$ac_compile") 2>conftest.err
1456 ac_status=$?
1457 if test -s conftest.err; then
1458 grep -v '^ *+' conftest.err >conftest.er1
1459 cat conftest.er1 >&5
1460 mv -f conftest.er1 conftest.err
1462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1463 test $ac_status = 0; } && {
1464 test -z "$ac_c_werror_flag" ||
1465 test ! -s conftest.err
1466 } && test -s conftest.$ac_objext; then :
1467 ac_retval=0
1468 else
1469 $as_echo "$as_me: failed program was:" >&5
1470 sed 's/^/| /' conftest.$ac_ext >&5
1472 ac_retval=1
1474 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1475 return $ac_retval
1477 } # ac_fn_c_try_compile
1479 # ac_fn_c_try_cpp LINENO
1480 # ----------------------
1481 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1482 ac_fn_c_try_cpp ()
1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485 if { { ac_try="$ac_cpp conftest.$ac_ext"
1486 case "(($ac_try" in
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1489 esac
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1493 ac_status=$?
1494 if test -s conftest.err; then
1495 grep -v '^ *+' conftest.err >conftest.er1
1496 cat conftest.er1 >&5
1497 mv -f conftest.er1 conftest.err
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } >/dev/null && {
1501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1502 test ! -s conftest.err
1503 }; then :
1504 ac_retval=0
1505 else
1506 $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1509 ac_retval=1
1511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1512 return $ac_retval
1514 } # ac_fn_c_try_cpp
1516 # ac_fn_c_try_run LINENO
1517 # ----------------------
1518 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1519 # that executables *can* be run.
1520 ac_fn_c_try_run ()
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 if { { ac_try="$ac_link"
1524 case "(($ac_try" in
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1527 esac
1528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_link") 2>&5
1531 ac_status=$?
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1534 { { case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_try") 2>&5
1541 ac_status=$?
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; }; }; then :
1544 ac_retval=0
1545 else
1546 $as_echo "$as_me: program exited with status $ac_status" >&5
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1550 ac_retval=$ac_status
1552 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1554 return $ac_retval
1556 } # ac_fn_c_try_run
1558 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1559 # --------------------------------------------
1560 # Tries to find the compile-time value of EXPR in a program that includes
1561 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1562 # computed
1563 ac_fn_c_compute_int ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if test "$cross_compiling" = yes; then
1567 # Depending upon the size, compute the lo and hi bounds.
1568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569 /* end confdefs.h. */
1572 main ()
1574 static int test_array [1 - 2 * !(($2) >= 0)];
1575 test_array [0] = 0
1578 return 0;
1580 _ACEOF
1581 if ac_fn_c_try_compile "$LINENO"; then :
1582 ac_lo=0 ac_mid=0
1583 while :; do
1584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1585 /* end confdefs.h. */
1588 main ()
1590 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1591 test_array [0] = 0
1594 return 0;
1596 _ACEOF
1597 if ac_fn_c_try_compile "$LINENO"; then :
1598 ac_hi=$ac_mid; break
1599 else
1600 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1601 if test $ac_lo -le $ac_mid; then
1602 ac_lo= ac_hi=
1603 break
1605 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1608 done
1609 else
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1614 main ()
1616 static int test_array [1 - 2 * !(($2) < 0)];
1617 test_array [0] = 0
1620 return 0;
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 ac_hi=-1 ac_mid=-1
1625 while :; do
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1630 main ()
1632 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1633 test_array [0] = 0
1636 return 0;
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"; then :
1640 ac_lo=$ac_mid; break
1641 else
1642 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1643 if test $ac_mid -le $ac_hi; then
1644 ac_lo= ac_hi=
1645 break
1647 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 done
1651 else
1652 ac_lo= ac_hi=
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657 # Binary search between lo and hi bounds.
1658 while test "x$ac_lo" != "x$ac_hi"; do
1659 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1664 main ()
1666 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1667 test_array [0] = 0
1670 return 0;
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"; then :
1674 ac_hi=$ac_mid
1675 else
1676 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 done
1680 case $ac_lo in #((
1681 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1682 '') ac_retval=1 ;;
1683 esac
1684 else
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1688 static long int longval () { return $2; }
1689 static unsigned long int ulongval () { return $2; }
1690 #include <stdio.h>
1691 #include <stdlib.h>
1693 main ()
1696 FILE *f = fopen ("conftest.val", "w");
1697 if (! f)
1698 return 1;
1699 if (($2) < 0)
1701 long int i = longval ();
1702 if (i != ($2))
1703 return 1;
1704 fprintf (f, "%ld", i);
1706 else
1708 unsigned long int i = ulongval ();
1709 if (i != ($2))
1710 return 1;
1711 fprintf (f, "%lu", i);
1713 /* Do not output a trailing newline, as this causes \r\n confusion
1714 on some platforms. */
1715 return ferror (f) || fclose (f) != 0;
1718 return 0;
1720 _ACEOF
1721 if ac_fn_c_try_run "$LINENO"; then :
1722 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1723 else
1724 ac_retval=1
1726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1727 conftest.$ac_objext conftest.beam conftest.$ac_ext
1728 rm -f conftest.val
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1734 } # ac_fn_c_compute_int
1736 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1737 # ----------------------------------------------
1738 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1739 ac_fn_c_check_header_preproc ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 #include <$2>
1750 _ACEOF
1751 if ac_fn_c_try_cpp "$LINENO"; then :
1752 eval "$3=yes"
1753 else
1754 eval "$3=no"
1756 rm -f conftest.err conftest.$ac_ext
1758 eval ac_res=\$$3
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760 $as_echo "$ac_res" >&6; }
1761 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 } # ac_fn_c_check_header_preproc
1764 cat >config.log <<_ACEOF
1765 This file contains any messages produced by compilers while
1766 running configure, to aid debugging if configure makes a mistake.
1768 It was created by GNU C Runtime Library $as_me 1.0, which was
1769 generated by GNU Autoconf 2.64. Invocation command line was
1771 $ $0 $@
1773 _ACEOF
1774 exec 5>>config.log
1776 cat <<_ASUNAME
1777 ## --------- ##
1778 ## Platform. ##
1779 ## --------- ##
1781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1788 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1790 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1791 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1793 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1794 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1795 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1796 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1798 _ASUNAME
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1803 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=.
1805 $as_echo "PATH: $as_dir"
1806 done
1807 IFS=$as_save_IFS
1809 } >&5
1811 cat >&5 <<_ACEOF
1814 ## ----------- ##
1815 ## Core tests. ##
1816 ## ----------- ##
1818 _ACEOF
1821 # Keep a trace of the command line.
1822 # Strip out --no-create and --no-recursion so they do not pile up.
1823 # Strip out --silent because we don't want to record it for future runs.
1824 # Also quote any args containing shell meta-characters.
1825 # Make two passes to allow for proper duplicate-argument suppression.
1826 ac_configure_args=
1827 ac_configure_args0=
1828 ac_configure_args1=
1829 ac_must_keep_next=false
1830 for ac_pass in 1 2
1832 for ac_arg
1834 case $ac_arg in
1835 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1837 | -silent | --silent | --silen | --sile | --sil)
1838 continue ;;
1839 *\'*)
1840 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1841 esac
1842 case $ac_pass in
1843 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1845 as_fn_append ac_configure_args1 " '$ac_arg'"
1846 if test $ac_must_keep_next = true; then
1847 ac_must_keep_next=false # Got value, back to normal.
1848 else
1849 case $ac_arg in
1850 *=* | --config-cache | -C | -disable-* | --disable-* \
1851 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1852 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1853 | -with-* | --with-* | -without-* | --without-* | --x)
1854 case "$ac_configure_args0 " in
1855 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1856 esac
1858 -* ) ac_must_keep_next=true ;;
1859 esac
1861 as_fn_append ac_configure_args " '$ac_arg'"
1863 esac
1864 done
1865 done
1866 { ac_configure_args0=; unset ac_configure_args0;}
1867 { ac_configure_args1=; unset ac_configure_args1;}
1869 # When interrupted or exit'd, cleanup temporary files, and complete
1870 # config.log. We remove comments because anyway the quotes in there
1871 # would cause problems or look ugly.
1872 # WARNING: Use '\'' to represent an apostrophe within the trap.
1873 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1874 trap 'exit_status=$?
1875 # Save into config.log some information that might help in debugging.
1877 echo
1879 cat <<\_ASBOX
1880 ## ---------------- ##
1881 ## Cache variables. ##
1882 ## ---------------- ##
1883 _ASBOX
1884 echo
1885 # The following way of writing the cache mishandles newlines in values,
1887 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1888 eval ac_val=\$$ac_var
1889 case $ac_val in #(
1890 *${as_nl}*)
1891 case $ac_var in #(
1892 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1893 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1894 esac
1895 case $ac_var in #(
1896 _ | IFS | as_nl) ;; #(
1897 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1898 *) { eval $ac_var=; unset $ac_var;} ;;
1899 esac ;;
1900 esac
1901 done
1902 (set) 2>&1 |
1903 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1904 *${as_nl}ac_space=\ *)
1905 sed -n \
1906 "s/'\''/'\''\\\\'\'''\''/g;
1907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1908 ;; #(
1910 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1912 esac |
1913 sort
1915 echo
1917 cat <<\_ASBOX
1918 ## ----------------- ##
1919 ## Output variables. ##
1920 ## ----------------- ##
1921 _ASBOX
1922 echo
1923 for ac_var in $ac_subst_vars
1925 eval ac_val=\$$ac_var
1926 case $ac_val in
1927 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1928 esac
1929 $as_echo "$ac_var='\''$ac_val'\''"
1930 done | sort
1931 echo
1933 if test -n "$ac_subst_files"; then
1934 cat <<\_ASBOX
1935 ## ------------------- ##
1936 ## File substitutions. ##
1937 ## ------------------- ##
1938 _ASBOX
1939 echo
1940 for ac_var in $ac_subst_files
1942 eval ac_val=\$$ac_var
1943 case $ac_val in
1944 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945 esac
1946 $as_echo "$ac_var='\''$ac_val'\''"
1947 done | sort
1948 echo
1951 if test -s confdefs.h; then
1952 cat <<\_ASBOX
1953 ## ----------- ##
1954 ## confdefs.h. ##
1955 ## ----------- ##
1956 _ASBOX
1957 echo
1958 cat confdefs.h
1959 echo
1961 test "$ac_signal" != 0 &&
1962 $as_echo "$as_me: caught signal $ac_signal"
1963 $as_echo "$as_me: exit $exit_status"
1964 } >&5
1965 rm -f core *.core core.conftest.* &&
1966 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1967 exit $exit_status
1969 for ac_signal in 1 2 13 15; do
1970 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1971 done
1972 ac_signal=0
1974 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1975 rm -f -r conftest* confdefs.h
1977 $as_echo "/* confdefs.h */" > confdefs.h
1979 # Predefined preprocessor variables.
1981 cat >>confdefs.h <<_ACEOF
1982 #define PACKAGE_NAME "$PACKAGE_NAME"
1983 _ACEOF
1985 cat >>confdefs.h <<_ACEOF
1986 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1987 _ACEOF
1989 cat >>confdefs.h <<_ACEOF
1990 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1991 _ACEOF
1993 cat >>confdefs.h <<_ACEOF
1994 #define PACKAGE_STRING "$PACKAGE_STRING"
1995 _ACEOF
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1999 _ACEOF
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_URL "$PACKAGE_URL"
2003 _ACEOF
2006 # Let the site file select an alternate cache file if it wants to.
2007 # Prefer an explicitly selected file to automatically selected ones.
2008 ac_site_file1=NONE
2009 ac_site_file2=NONE
2010 if test -n "$CONFIG_SITE"; then
2011 ac_site_file1=$CONFIG_SITE
2012 elif test "x$prefix" != xNONE; then
2013 ac_site_file1=$prefix/share/config.site
2014 ac_site_file2=$prefix/etc/config.site
2015 else
2016 ac_site_file1=$ac_default_prefix/share/config.site
2017 ac_site_file2=$ac_default_prefix/etc/config.site
2019 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2021 test "x$ac_site_file" = xNONE && continue
2022 if test -r "$ac_site_file"; then
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2024 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2025 sed 's/^/| /' "$ac_site_file" >&5
2026 . "$ac_site_file"
2028 done
2030 if test -r "$cache_file"; then
2031 # Some versions of bash will fail to source /dev/null (special
2032 # files actually), so we avoid doing that.
2033 if test -f "$cache_file"; then
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2035 $as_echo "$as_me: loading cache $cache_file" >&6;}
2036 case $cache_file in
2037 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2038 *) . "./$cache_file";;
2039 esac
2041 else
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2043 $as_echo "$as_me: creating cache $cache_file" >&6;}
2044 >$cache_file
2047 # Check that the precious variables saved in the cache have kept the same
2048 # value.
2049 ac_cache_corrupted=false
2050 for ac_var in $ac_precious_vars; do
2051 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2052 eval ac_new_set=\$ac_env_${ac_var}_set
2053 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2054 eval ac_new_val=\$ac_env_${ac_var}_value
2055 case $ac_old_set,$ac_new_set in
2056 set,)
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2058 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2059 ac_cache_corrupted=: ;;
2060 ,set)
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2062 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2063 ac_cache_corrupted=: ;;
2064 ,);;
2066 if test "x$ac_old_val" != "x$ac_new_val"; then
2067 # differences in whitespace do not lead to failure.
2068 ac_old_val_w=`echo x $ac_old_val`
2069 ac_new_val_w=`echo x $ac_new_val`
2070 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2072 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2073 ac_cache_corrupted=:
2074 else
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2076 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2077 eval $ac_var=\$ac_old_val
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2080 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2082 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2083 fi;;
2084 esac
2085 # Pass precious variables to config.status.
2086 if test "$ac_new_set" = set; then
2087 case $ac_new_val in
2088 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2089 *) ac_arg=$ac_var=$ac_new_val ;;
2090 esac
2091 case " $ac_configure_args " in
2092 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2093 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2094 esac
2096 done
2097 if $ac_cache_corrupted; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2101 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2102 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2104 ## -------------------- ##
2105 ## Main body of script. ##
2106 ## -------------------- ##
2108 ac_ext=c
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2121 # Check whether --with-target-subdir was given.
2122 if test "${with_target_subdir+set}" = set; then :
2123 withval=$with_target_subdir;
2127 # Check whether --with-cross-host was given.
2128 if test "${with_cross_host+set}" = set; then :
2129 withval=$with_cross_host;
2133 # Check whether --with-ld was given.
2134 if test "${with_ld+set}" = set; then :
2135 withval=$with_ld;
2139 if test "${srcdir}" = "."; then
2140 if test -n "${with_build_subdir}"; then
2141 libgcc_topdir="${srcdir}/../.."
2142 with_target_subdir=
2143 elif test -z "${with_target_subdir}"; then
2144 libgcc_topdir="${srcdir}/.."
2145 else
2146 if test "${with_target_subdir}" != "."; then
2147 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
2148 else
2149 libgcc_topdir="${srcdir}/${with_multisrctop}.."
2152 else
2153 libgcc_topdir="${srcdir}/.."
2156 ac_aux_dir=
2157 for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
2158 for ac_t in install-sh install.sh shtool; do
2159 if test -f "$ac_dir/$ac_t"; then
2160 ac_aux_dir=$ac_dir
2161 ac_install_sh="$ac_aux_dir/$ac_t -c"
2162 break 2
2164 done
2165 done
2166 if test -z "$ac_aux_dir"; then
2167 as_fn_error "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
2170 # These three variables are undocumented and unsupported,
2171 # and are intended to be withdrawn in a future Autoconf release.
2172 # They can cause serious problems if a builder's source tree is in a directory
2173 # whose full name contains unusual characters.
2174 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2175 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2176 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2179 ac_config_headers="$ac_config_headers auto-target.h:config.in"
2182 # Check whether --enable-shared was given.
2183 if test "${enable_shared+set}" = set; then :
2184 enableval=$enable_shared;
2185 case $enable_shared in
2186 yes | no) ;;
2188 enable_shared=no
2189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2190 for pkg in $enableval; do
2191 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
2192 enable_shared=yes
2194 done
2195 IFS="$ac_save_ifs"
2197 esac
2199 else
2200 enable_shared=yes
2205 # Make sure we can run config.sub.
2206 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2207 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2210 $as_echo_n "checking build system type... " >&6; }
2211 if test "${ac_cv_build+set}" = set; then :
2212 $as_echo_n "(cached) " >&6
2213 else
2214 ac_build_alias=$build_alias
2215 test "x$ac_build_alias" = x &&
2216 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2217 test "x$ac_build_alias" = x &&
2218 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2219 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2220 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2224 $as_echo "$ac_cv_build" >&6; }
2225 case $ac_cv_build in
2226 *-*-*) ;;
2227 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2228 esac
2229 build=$ac_cv_build
2230 ac_save_IFS=$IFS; IFS='-'
2231 set x $ac_cv_build
2232 shift
2233 build_cpu=$1
2234 build_vendor=$2
2235 shift; shift
2236 # Remember, the first character of IFS is used to create $*,
2237 # except with old shells:
2238 build_os=$*
2239 IFS=$ac_save_IFS
2240 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2244 $as_echo_n "checking host system type... " >&6; }
2245 if test "${ac_cv_host+set}" = set; then :
2246 $as_echo_n "(cached) " >&6
2247 else
2248 if test "x$host_alias" = x; then
2249 ac_cv_host=$ac_cv_build
2250 else
2251 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2252 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2257 $as_echo "$ac_cv_host" >&6; }
2258 case $ac_cv_host in
2259 *-*-*) ;;
2260 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2261 esac
2262 host=$ac_cv_host
2263 ac_save_IFS=$IFS; IFS='-'
2264 set x $ac_cv_host
2265 shift
2266 host_cpu=$1
2267 host_vendor=$2
2268 shift; shift
2269 # Remember, the first character of IFS is used to create $*,
2270 # except with old shells:
2271 host_os=$*
2272 IFS=$ac_save_IFS
2273 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2280 case "${host}" in
2281 # PIC is the default on some targets or must not be used.
2282 *-*-darwin*)
2283 # PIC is the default on this platform
2284 # Common symbols not allowed in MH_DYLIB files
2285 PICFLAG=-fno-common
2287 alpha*-dec-osf5*)
2288 # PIC is the default.
2290 hppa*64*-*-hpux*)
2291 # PIC is the default for 64-bit PA HP-UX.
2293 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
2295 i[34567]86-*-interix[3-9]*)
2296 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
2297 # Instead, we relocate shared libraries at runtime.
2299 i[34567]86-*-nto-qnx*)
2300 # QNX uses GNU C++, but need to define -shared option too, otherwise
2301 # it will coredump.
2302 PICFLAG='-fPIC -shared'
2304 i[34567]86-pc-msdosdjgpp*)
2305 # DJGPP does not support shared libraries at all.
2307 ia64*-*-hpux*)
2308 # On IA64 HP-UX, PIC is the default but the pic flag
2309 # sets the default TLS model and affects inlining.
2310 PICFLAG=-fPIC
2312 mips-sgi-irix6*)
2313 # PIC is the default.
2315 rs6000-ibm-aix* | powerpc-ibm-aix*)
2316 # All AIX code is PIC.
2319 # Some targets support both -fPIC and -fpic, but prefer the latter.
2320 # FIXME: Why?
2321 i[34567]86-*-* | x86_64-*-*)
2322 PICFLAG=-fpic
2324 m68k-*-*)
2325 PICFLAG=-fpic
2327 # FIXME: Override -fPIC default in libgcc only?
2328 sh-*-linux* | sh[2346lbe]*-*-linux*)
2329 PICFLAG=-fpic
2331 # FIXME: Simplify to sh*-*-netbsd*?
2332 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
2333 sh64-*-netbsd* | sh64l*-*-netbsd*)
2334 PICFLAG=-fpic
2336 # Default to -fPIC unless specified otherwise.
2338 PICFLAG=-fPIC
2340 esac
2342 # If the user explicitly uses -fpic/-fPIC, keep that.
2343 case "${CFLAGS}" in
2344 *-fpic*)
2345 PICFLAG=-fpic
2347 *-fPIC*)
2348 PICFLAG=-fPIC
2350 esac
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2355 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2356 # Check whether --enable-version-specific-runtime-libs was given.
2357 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2358 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2359 yes) version_specific_libs=yes ;;
2360 no) version_specific_libs=no ;;
2361 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2362 esac
2363 else
2364 version_specific_libs=no
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2368 $as_echo "$version_specific_libs" >&6; }
2371 # Check whether --with-slibdir was given.
2372 if test "${with_slibdir+set}" = set; then :
2373 withval=$with_slibdir; slibdir="$with_slibdir"
2374 else
2375 if test "${version_specific_libs}" = yes; then
2376 slibdir='$(libsubdir)'
2377 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
2378 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
2379 else
2380 slibdir='$(libdir)'
2386 # Command-line options.
2387 # Very limited version of AC_MAINTAINER_MODE.
2388 # Check whether --enable-maintainer-mode was given.
2389 if test "${enable_maintainer_mode+set}" = set; then :
2390 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
2391 yes) MAINT='' ;;
2392 no) MAINT='#' ;;
2393 *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
2394 esac
2395 maintainer_mode=${enableval}
2396 else
2397 MAINT='#'
2401 # Find a good install program. We prefer a C program (faster),
2402 # so one script is as good as another. But avoid the broken or
2403 # incompatible versions:
2404 # SysV /etc/install, /usr/sbin/install
2405 # SunOS /usr/etc/install
2406 # IRIX /sbin/install
2407 # AIX /bin/install
2408 # AmigaOS /C/install, which installs bootblocks on floppy discs
2409 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2410 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2411 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2412 # OS/2's system install, which has a completely different semantic
2413 # ./install, which can be erroneously created by make from ./install.sh.
2414 # Reject install programs that cannot install multiple files.
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2416 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2417 if test -z "$INSTALL"; then
2418 if test "${ac_cv_path_install+set}" = set; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
2426 # Account for people who put trailing slashes in PATH elements.
2427 case $as_dir/ in #((
2428 ./ | .// | /[cC]/* | \
2429 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2430 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2431 /usr/ucb/* ) ;;
2433 # OSF1 and SCO ODT 3.0 have their own names for install.
2434 # Don't use installbsd from OSF since it installs stuff as root
2435 # by default.
2436 for ac_prog in ginstall scoinst install; do
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2439 if test $ac_prog = install &&
2440 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2441 # AIX install. It has an incompatible calling convention.
2443 elif test $ac_prog = install &&
2444 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2445 # program-specific install script used by HP pwplus--don't use.
2447 else
2448 rm -rf conftest.one conftest.two conftest.dir
2449 echo one > conftest.one
2450 echo two > conftest.two
2451 mkdir conftest.dir
2452 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2453 test -s conftest.one && test -s conftest.two &&
2454 test -s conftest.dir/conftest.one &&
2455 test -s conftest.dir/conftest.two
2456 then
2457 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2458 break 3
2462 done
2463 done
2465 esac
2467 done
2468 IFS=$as_save_IFS
2470 rm -rf conftest.one conftest.two conftest.dir
2473 if test "${ac_cv_path_install+set}" = set; then
2474 INSTALL=$ac_cv_path_install
2475 else
2476 # As a last resort, use the slow shell script. Don't cache a
2477 # value for INSTALL within a source directory, because that will
2478 # break other packages using the cache if that directory is
2479 # removed, or if the value is a relative name.
2480 INSTALL=$ac_install_sh
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2484 $as_echo "$INSTALL" >&6; }
2486 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2487 # It thinks the first close brace ends the variable substitution.
2488 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2490 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2492 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2495 for ac_prog in gawk mawk nawk awk
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498 set dummy $ac_prog; ac_word=$2
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if test "${ac_cv_prog_AWK+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test -n "$AWK"; then
2505 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_AWK="$ac_prog"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2518 done
2519 done
2520 IFS=$as_save_IFS
2524 AWK=$ac_cv_prog_AWK
2525 if test -n "$AWK"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2527 $as_echo "$AWK" >&6; }
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530 $as_echo "no" >&6; }
2534 test -n "$AWK" && break
2535 done
2537 # We need awk; bail out if it's missing.
2538 case ${AWK} in
2539 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
2540 esac
2543 case ${build_alias} in
2544 "") build_noncanonical=${build} ;;
2545 *) build_noncanonical=${build_alias} ;;
2546 esac
2548 case ${host_alias} in
2549 "") host_noncanonical=${build_noncanonical} ;;
2550 *) host_noncanonical=${host_alias} ;;
2551 esac
2555 case ${target_alias} in
2556 "") target_noncanonical=${host_noncanonical} ;;
2557 *) target_noncanonical=${target_alias} ;;
2558 esac
2563 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2564 # have matching libraries, they should use host libraries: Makefile.tpl
2565 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2566 # However, they still use the build modules, because the corresponding
2567 # host modules (e.g. bison) are only built for the host when bootstrap
2568 # finishes. So:
2569 # - build_subdir is where we find build modules, and never changes.
2570 # - build_libsubdir is where we find build libraries, and can be overridden.
2572 # Prefix 'build-' so this never conflicts with target_subdir.
2573 build_subdir="build-${build_noncanonical}"
2575 # Check whether --with-build-libsubdir was given.
2576 if test "${with_build_libsubdir+set}" = set; then :
2577 withval=$with_build_libsubdir; build_libsubdir="$withval"
2578 else
2579 build_libsubdir="$build_subdir"
2582 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2583 if ( test $srcdir = . && test -d gcc ) \
2584 || test -d $srcdir/../host-${host_noncanonical}; then
2585 host_subdir="host-${host_noncanonical}"
2586 else
2587 host_subdir=.
2589 # No prefix.
2590 target_subdir=${target_noncanonical}
2593 # Calculate toolexeclibdir
2594 # Also toolexecdir, though it's only used in toolexeclibdir
2595 case ${version_specific_libs} in
2596 yes)
2597 # Need the gcc compiler version to know where to install libraries
2598 # and header files if --enable-version-specific-runtime-libs option
2599 # is selected.
2600 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2601 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2604 if test -n "$with_cross_host" &&
2605 test x"$with_cross_host" != x"no"; then
2606 # Install a library built with a cross compiler in tooldir, not libdir.
2607 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2608 toolexeclibdir='$(toolexecdir)/lib'
2609 else
2610 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2611 toolexeclibdir='$(libdir)'
2613 multi_os_directory=`$CC -print-multi-os-directory`
2614 case $multi_os_directory in
2615 .) ;; # Avoid trailing /.
2616 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2617 esac
2619 esac
2623 if test -n "$ac_tool_prefix"; then
2624 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2625 set dummy ${ac_tool_prefix}ar; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if test "${ac_cv_prog_AR+set}" = set; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 if test -n "$AR"; then
2632 ac_cv_prog_AR="$AR" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_AR="${ac_tool_prefix}ar"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2645 done
2646 done
2647 IFS=$as_save_IFS
2651 AR=$ac_cv_prog_AR
2652 if test -n "$AR"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2654 $as_echo "$AR" >&6; }
2655 else
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2662 if test -z "$ac_cv_prog_AR"; then
2663 ac_ct_AR=$AR
2664 # Extract the first word of "ar", so it can be a program name with args.
2665 set dummy ar; ac_word=$2
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 if test -n "$ac_ct_AR"; then
2672 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2673 else
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681 ac_cv_prog_ac_ct_AR="ar"
2682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 break 2
2685 done
2686 done
2687 IFS=$as_save_IFS
2691 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2692 if test -n "$ac_ct_AR"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2694 $as_echo "$ac_ct_AR" >&6; }
2695 else
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2700 if test "x$ac_ct_AR" = x; then
2701 AR=""
2702 else
2703 case $cross_compiling:$ac_tool_warned in
2704 yes:)
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2707 ac_tool_warned=yes ;;
2708 esac
2709 AR=$ac_ct_AR
2711 else
2712 AR="$ac_cv_prog_AR"
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}lipo; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if test "${ac_cv_prog_LIPO+set}" = set; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if test -n "$LIPO"; then
2724 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2737 done
2738 done
2739 IFS=$as_save_IFS
2743 LIPO=$ac_cv_prog_LIPO
2744 if test -n "$LIPO"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2746 $as_echo "$LIPO" >&6; }
2747 else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2754 if test -z "$ac_cv_prog_LIPO"; then
2755 ac_ct_LIPO=$LIPO
2756 # Extract the first word of "lipo", so it can be a program name with args.
2757 set dummy lipo; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if test -n "$ac_ct_LIPO"; then
2764 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2769 IFS=$as_save_IFS
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_ac_ct_LIPO="lipo"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 break 2
2777 done
2778 done
2779 IFS=$as_save_IFS
2783 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2784 if test -n "$ac_ct_LIPO"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2786 $as_echo "$ac_ct_LIPO" >&6; }
2787 else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2792 if test "x$ac_ct_LIPO" = x; then
2793 LIPO=":"
2794 else
2795 case $cross_compiling:$ac_tool_warned in
2796 yes:)
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799 ac_tool_warned=yes ;;
2800 esac
2801 LIPO=$ac_ct_LIPO
2803 else
2804 LIPO="$ac_cv_prog_LIPO"
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2809 set dummy ${ac_tool_prefix}nm; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if test "${ac_cv_prog_NM+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test -n "$NM"; then
2816 ac_cv_prog_NM="$NM" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_NM="${ac_tool_prefix}nm"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2829 done
2830 done
2831 IFS=$as_save_IFS
2835 NM=$ac_cv_prog_NM
2836 if test -n "$NM"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2838 $as_echo "$NM" >&6; }
2839 else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2846 if test -z "$ac_cv_prog_NM"; then
2847 ac_ct_NM=$NM
2848 # Extract the first word of "nm", so it can be a program name with args.
2849 set dummy nm; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 if test -n "$ac_ct_NM"; then
2856 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_ac_ct_NM="nm"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2869 done
2870 done
2871 IFS=$as_save_IFS
2875 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2876 if test -n "$ac_ct_NM"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2878 $as_echo "$ac_ct_NM" >&6; }
2879 else
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2884 if test "x$ac_ct_NM" = x; then
2885 NM=""
2886 else
2887 case $cross_compiling:$ac_tool_warned in
2888 yes:)
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2891 ac_tool_warned=yes ;;
2892 esac
2893 NM=$ac_ct_NM
2895 else
2896 NM="$ac_cv_prog_NM"
2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2901 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if test "${ac_cv_prog_RANLIB+set}" = set; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 if test -n "$RANLIB"; then
2908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2921 done
2922 done
2923 IFS=$as_save_IFS
2927 RANLIB=$ac_cv_prog_RANLIB
2928 if test -n "$RANLIB"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2930 $as_echo "$RANLIB" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2938 if test -z "$ac_cv_prog_RANLIB"; then
2939 ac_ct_RANLIB=$RANLIB
2940 # Extract the first word of "ranlib", so it can be a program name with args.
2941 set dummy ranlib; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 if test -n "$ac_ct_RANLIB"; then
2948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957 ac_cv_prog_ac_ct_RANLIB="ranlib"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2961 done
2962 done
2963 IFS=$as_save_IFS
2967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2968 if test -n "$ac_ct_RANLIB"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2970 $as_echo "$ac_ct_RANLIB" >&6; }
2971 else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2976 if test "x$ac_ct_RANLIB" = x; then
2977 RANLIB=":"
2978 else
2979 case $cross_compiling:$ac_tool_warned in
2980 yes:)
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2984 esac
2985 RANLIB=$ac_ct_RANLIB
2987 else
2988 RANLIB="$ac_cv_prog_RANLIB"
2991 if test -n "$ac_tool_prefix"; then
2992 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2993 set dummy ${ac_tool_prefix}strip; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if test "${ac_cv_prog_STRIP+set}" = set; then :
2997 $as_echo_n "(cached) " >&6
2998 else
2999 if test -n "$STRIP"; then
3000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3001 else
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 break 2
3013 done
3014 done
3015 IFS=$as_save_IFS
3019 STRIP=$ac_cv_prog_STRIP
3020 if test -n "$STRIP"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3022 $as_echo "$STRIP" >&6; }
3023 else
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3030 if test -z "$ac_cv_prog_STRIP"; then
3031 ac_ct_STRIP=$STRIP
3032 # Extract the first word of "strip", so it can be a program name with args.
3033 set dummy strip; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$ac_ct_STRIP"; then
3040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_ac_ct_STRIP="strip"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3053 done
3054 done
3055 IFS=$as_save_IFS
3059 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3060 if test -n "$ac_ct_STRIP"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3062 $as_echo "$ac_ct_STRIP" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3068 if test "x$ac_ct_STRIP" = x; then
3069 STRIP=":"
3070 else
3071 case $cross_compiling:$ac_tool_warned in
3072 yes:)
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3075 ac_tool_warned=yes ;;
3076 esac
3077 STRIP=$ac_ct_STRIP
3079 else
3080 STRIP="$ac_cv_prog_STRIP"
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3084 $as_echo_n "checking whether ln -s works... " >&6; }
3085 LN_S=$as_ln_s
3086 if test "$LN_S" = "ln -s"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3088 $as_echo "yes" >&6; }
3089 else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3091 $as_echo "no, using $LN_S" >&6; }
3096 ac_ext=c
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 if test -n "$ac_tool_prefix"; then
3102 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3103 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if test "${ac_cv_prog_CC+set}" = set; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3123 done
3124 done
3125 IFS=$as_save_IFS
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3140 if test -z "$ac_cv_prog_CC"; then
3141 ac_ct_CC=$CC
3142 # Extract the first word of "gcc", so it can be a program name with args.
3143 set dummy gcc; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 if test -n "$ac_ct_CC"; then
3150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159 ac_cv_prog_ac_ct_CC="gcc"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3163 done
3164 done
3165 IFS=$as_save_IFS
3169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3170 if test -n "$ac_ct_CC"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3172 $as_echo "$ac_ct_CC" >&6; }
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3178 if test "x$ac_ct_CC" = x; then
3179 CC=""
3180 else
3181 case $cross_compiling:$ac_tool_warned in
3182 yes:)
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3185 ac_tool_warned=yes ;;
3186 esac
3187 CC=$ac_ct_CC
3189 else
3190 CC="$ac_cv_prog_CC"
3193 if test -z "$CC"; then
3194 if test -n "$ac_tool_prefix"; then
3195 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3196 set dummy ${ac_tool_prefix}cc; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if test "${ac_cv_prog_CC+set}" = set; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3212 ac_cv_prog_CC="${ac_tool_prefix}cc"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3216 done
3217 done
3218 IFS=$as_save_IFS
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3234 if test -z "$CC"; then
3235 # Extract the first word of "cc", so it can be a program name with args.
3236 set dummy cc; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if test "${ac_cv_prog_CC+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 if test -n "$CC"; then
3243 ac_cv_prog_CC="$CC" # Let the user override the test.
3244 else
3245 ac_prog_rejected=no
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3254 ac_prog_rejected=yes
3255 continue
3257 ac_cv_prog_CC="cc"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 break 2
3261 done
3262 done
3263 IFS=$as_save_IFS
3265 if test $ac_prog_rejected = yes; then
3266 # We found a bogon in the path, so make sure we never use it.
3267 set dummy $ac_cv_prog_CC
3268 shift
3269 if test $# != 0; then
3270 # We chose a different compiler from the bogus one.
3271 # However, it has the same basename, so the bogon will be chosen
3272 # first if we set CC to just the basename; use the full file name.
3273 shift
3274 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3279 CC=$ac_cv_prog_CC
3280 if test -n "$CC"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3282 $as_echo "$CC" >&6; }
3283 else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3290 if test -z "$CC"; then
3291 if test -n "$ac_tool_prefix"; then
3292 for ac_prog in cl.exe
3294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if test "${ac_cv_prog_CC+set}" = set; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 if test -n "$CC"; then
3302 ac_cv_prog_CC="$CC" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3315 done
3316 done
3317 IFS=$as_save_IFS
3321 CC=$ac_cv_prog_CC
3322 if test -n "$CC"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3324 $as_echo "$CC" >&6; }
3325 else
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3331 test -n "$CC" && break
3332 done
3334 if test -z "$CC"; then
3335 ac_ct_CC=$CC
3336 for ac_prog in cl.exe
3338 # Extract the first word of "$ac_prog", so it can be a program name with args.
3339 set dummy $ac_prog; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 if test -n "$ac_ct_CC"; then
3346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_prog_ac_ct_CC="$ac_prog"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3359 done
3360 done
3361 IFS=$as_save_IFS
3365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3366 if test -n "$ac_ct_CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3368 $as_echo "$ac_ct_CC" >&6; }
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3375 test -n "$ac_ct_CC" && break
3376 done
3378 if test "x$ac_ct_CC" = x; then
3379 CC=""
3380 else
3381 case $cross_compiling:$ac_tool_warned in
3382 yes:)
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3385 ac_tool_warned=yes ;;
3386 esac
3387 CC=$ac_ct_CC
3394 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396 as_fn_error "no acceptable C compiler found in \$PATH
3397 See \`config.log' for more details." "$LINENO" 5; }
3399 # Provide some information about the compiler.
3400 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3401 set X $ac_compile
3402 ac_compiler=$2
3403 for ac_option in --version -v -V -qversion; do
3404 { { ac_try="$ac_compiler $ac_option >&5"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3412 ac_status=$?
3413 if test -s conftest.err; then
3414 sed '10a\
3415 ... rest of stderr output deleted ...
3416 10q' conftest.err >conftest.er1
3417 cat conftest.er1 >&5
3418 rm -f conftest.er1 conftest.err
3420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421 test $ac_status = 0; }
3422 done
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3428 main ()
3432 return 0;
3434 _ACEOF
3435 # FIXME: Cleanup?
3436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3437 (eval $ac_link) 2>&5
3438 ac_status=$?
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }; then :
3441 gcc_no_link=no
3442 else
3443 gcc_no_link=yes
3445 if test x$gcc_no_link = xyes; then
3446 # Setting cross_compile will disable run tests; it will
3447 # also disable AC_CHECK_FILE but that's generally
3448 # correct if we can't link.
3449 cross_compiling=yes
3450 EXEEXT=
3451 else
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3456 main ()
3460 return 0;
3462 _ACEOF
3463 ac_clean_files_save=$ac_clean_files
3464 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3465 # Try to create an executable without -o first, disregard a.out.
3466 # It will help us diagnose broken compilers, and finding out an intuition
3467 # of exeext.
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3469 $as_echo_n "checking for C compiler default output file name... " >&6; }
3470 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3472 # The possible output files:
3473 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3475 ac_rmfiles=
3476 for ac_file in $ac_files
3478 case $ac_file in
3479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3480 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3481 esac
3482 done
3483 rm -f $ac_rmfiles
3485 if { { ac_try="$ac_link_default"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_link_default") 2>&5
3493 ac_status=$?
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }; then :
3496 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3497 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3498 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3499 # so that the user can short-circuit this test for compilers unknown to
3500 # Autoconf.
3501 for ac_file in $ac_files ''
3503 test -f "$ac_file" || continue
3504 case $ac_file in
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3507 [ab].out )
3508 # We found the default executable, but exeext='' is most
3509 # certainly right.
3510 break;;
3511 *.* )
3512 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3513 then :; else
3514 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3516 # We set ac_cv_exeext here because the later test for it is not
3517 # safe: cross compilers may not add the suffix if given an `-o'
3518 # argument, so we may need to know it at that point already.
3519 # Even if this section looks crufty: it has the advantage of
3520 # actually working.
3521 break;;
3523 break;;
3524 esac
3525 done
3526 test "$ac_cv_exeext" = no && ac_cv_exeext=
3528 else
3529 ac_file=''
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3532 $as_echo "$ac_file" >&6; }
3533 if test -z "$ac_file"; then :
3534 $as_echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 { as_fn_set_status 77
3540 as_fn_error "C compiler cannot create executables
3541 See \`config.log' for more details." "$LINENO" 5; }; }
3543 ac_exeext=$ac_cv_exeext
3545 # Check that the compiler produces executables we can run. If not, either
3546 # the compiler is broken, or we cross compile.
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3548 $as_echo_n "checking whether the C compiler works... " >&6; }
3549 # If not cross compiling, check that we can run a simple program.
3550 if test "$cross_compiling" != yes; then
3551 if { ac_try='./$ac_file'
3552 { { case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558 (eval "$ac_try") 2>&5
3559 ac_status=$?
3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }; }; then
3562 cross_compiling=no
3563 else
3564 if test "$cross_compiling" = maybe; then
3565 cross_compiling=yes
3566 else
3567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569 as_fn_error "cannot run C compiled programs.
3570 If you meant to cross compile, use \`--host'.
3571 See \`config.log' for more details." "$LINENO" 5; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3576 $as_echo "yes" >&6; }
3578 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3579 ac_clean_files=$ac_clean_files_save
3580 # Check that the compiler produces executables we can run. If not, either
3581 # the compiler is broken, or we cross compile.
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3583 $as_echo_n "checking whether we are cross compiling... " >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3585 $as_echo "$cross_compiling" >&6; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3588 $as_echo_n "checking for suffix of executables... " >&6; }
3589 if { { ac_try="$ac_link"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595 $as_echo "$ac_try_echo"; } >&5
3596 (eval "$ac_link") 2>&5
3597 ac_status=$?
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599 test $ac_status = 0; }; then :
3600 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3601 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3602 # work properly (i.e., refer to `conftest.exe'), while it won't with
3603 # `rm'.
3604 for ac_file in conftest.exe conftest conftest.*; do
3605 test -f "$ac_file" || continue
3606 case $ac_file in
3607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3608 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3609 break;;
3610 * ) break;;
3611 esac
3612 done
3613 else
3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616 as_fn_error "cannot compute suffix of executables: cannot compile and link
3617 See \`config.log' for more details." "$LINENO" 5; }
3619 rm -f conftest$ac_cv_exeext
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3621 $as_echo "$ac_cv_exeext" >&6; }
3623 rm -f conftest.$ac_ext
3624 EXEEXT=$ac_cv_exeext
3625 ac_exeext=$EXEEXT
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3628 $as_echo_n "checking for suffix of object files... " >&6; }
3629 if test "${ac_cv_objext+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3636 main ()
3640 return 0;
3642 _ACEOF
3643 rm -f conftest.o conftest.obj
3644 if { { ac_try="$ac_compile"
3645 case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648 esac
3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650 $as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_compile") 2>&5
3652 ac_status=$?
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; then :
3655 for ac_file in conftest.o conftest.obj conftest.*; do
3656 test -f "$ac_file" || continue;
3657 case $ac_file in
3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3659 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3660 break;;
3661 esac
3662 done
3663 else
3664 $as_echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error "cannot compute suffix of object files: cannot compile
3670 See \`config.log' for more details." "$LINENO" 5; }
3672 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3675 $as_echo "$ac_cv_objext" >&6; }
3676 OBJEXT=$ac_cv_objext
3677 ac_objext=$OBJEXT
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3679 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3680 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3687 main ()
3689 #ifndef __GNUC__
3690 choke me
3691 #endif
3694 return 0;
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_compiler_gnu=yes
3699 else
3700 ac_compiler_gnu=no
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3707 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3708 if test $ac_compiler_gnu = yes; then
3709 GCC=yes
3710 else
3711 GCC=
3713 ac_test_CFLAGS=${CFLAGS+set}
3714 ac_save_CFLAGS=$CFLAGS
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3716 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3717 if test "${ac_cv_prog_cc_g+set}" = set; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 ac_save_c_werror_flag=$ac_c_werror_flag
3721 ac_c_werror_flag=yes
3722 ac_cv_prog_cc_g=no
3723 CFLAGS="-g"
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3728 main ()
3732 return 0;
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_prog_cc_g=yes
3737 else
3738 CFLAGS=""
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3743 main ()
3747 return 0;
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3752 else
3753 ac_c_werror_flag=$ac_save_c_werror_flag
3754 CFLAGS="-g"
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3759 main ()
3763 return 0;
3765 _ACEOF
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767 ac_cv_prog_cc_g=yes
3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3774 ac_c_werror_flag=$ac_save_c_werror_flag
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3777 $as_echo "$ac_cv_prog_cc_g" >&6; }
3778 if test "$ac_test_CFLAGS" = set; then
3779 CFLAGS=$ac_save_CFLAGS
3780 elif test $ac_cv_prog_cc_g = yes; then
3781 if test "$GCC" = yes; then
3782 CFLAGS="-g -O2"
3783 else
3784 CFLAGS="-g"
3786 else
3787 if test "$GCC" = yes; then
3788 CFLAGS="-O2"
3789 else
3790 CFLAGS=
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3794 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3795 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3796 $as_echo_n "(cached) " >&6
3797 else
3798 ac_cv_prog_cc_c89=no
3799 ac_save_CC=$CC
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3802 #include <stdarg.h>
3803 #include <stdio.h>
3804 #include <sys/types.h>
3805 #include <sys/stat.h>
3806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3807 struct buf { int x; };
3808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3809 static char *e (p, i)
3810 char **p;
3811 int i;
3813 return p[i];
3815 static char *f (char * (*g) (char **, int), char **p, ...)
3817 char *s;
3818 va_list v;
3819 va_start (v,p);
3820 s = g (p, va_arg (v,int));
3821 va_end (v);
3822 return s;
3825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3826 function prototypes and stuff, but not '\xHH' hex character constants.
3827 These don't provoke an error unfortunately, instead are silently treated
3828 as 'x'. The following induces an error, until -std is added to get
3829 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3830 array size at least. It's necessary to write '\x00'==0 to get something
3831 that's true only with -std. */
3832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3835 inside strings and character constants. */
3836 #define FOO(x) 'x'
3837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3839 int test (int i, double x);
3840 struct s1 {int (*f) (int a);};
3841 struct s2 {int (*f) (double a);};
3842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3843 int argc;
3844 char **argv;
3846 main ()
3848 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3850 return 0;
3852 _ACEOF
3853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3854 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3856 CC="$ac_save_CC $ac_arg"
3857 if ac_fn_c_try_compile "$LINENO"; then :
3858 ac_cv_prog_cc_c89=$ac_arg
3860 rm -f core conftest.err conftest.$ac_objext
3861 test "x$ac_cv_prog_cc_c89" != "xno" && break
3862 done
3863 rm -f conftest.$ac_ext
3864 CC=$ac_save_CC
3867 # AC_CACHE_VAL
3868 case "x$ac_cv_prog_cc_c89" in
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3871 $as_echo "none needed" >&6; } ;;
3872 xno)
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3874 $as_echo "unsupported" >&6; } ;;
3876 CC="$CC $ac_cv_prog_cc_c89"
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3878 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3879 esac
3880 if test "x$ac_cv_prog_cc_c89" != xno; then :
3884 ac_ext=c
3885 ac_cpp='$CPP $CPPFLAGS'
3886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890 ac_ext=c
3891 ac_cpp='$CPP $CPPFLAGS'
3892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3896 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3897 # On Suns, sometimes $CPP names a directory.
3898 if test -n "$CPP" && test -d "$CPP"; then
3899 CPP=
3901 if test -z "$CPP"; then
3902 if test "${ac_cv_prog_CPP+set}" = set; then :
3903 $as_echo_n "(cached) " >&6
3904 else
3905 # Double quotes because CPP needs to be expanded
3906 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3908 ac_preproc_ok=false
3909 for ac_c_preproc_warn_flag in '' yes
3911 # Use a header file that comes with gcc, so configuring glibc
3912 # with a fresh cross-compiler works.
3913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3914 # <limits.h> exists even on freestanding compilers.
3915 # On the NeXT, cc -E runs the code through the compiler's parser,
3916 # not just through cpp. "Syntax error" is here to catch this case.
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919 #ifdef __STDC__
3920 # include <limits.h>
3921 #else
3922 # include <assert.h>
3923 #endif
3924 Syntax error
3925 _ACEOF
3926 if ac_fn_c_try_cpp "$LINENO"; then :
3928 else
3929 # Broken: fails on valid input.
3930 continue
3932 rm -f conftest.err conftest.$ac_ext
3934 # OK, works on sane cases. Now check whether nonexistent headers
3935 # can be detected and how.
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3938 #include <ac_nonexistent.h>
3939 _ACEOF
3940 if ac_fn_c_try_cpp "$LINENO"; then :
3941 # Broken: success on invalid input.
3942 continue
3943 else
3944 # Passes both tests.
3945 ac_preproc_ok=:
3946 break
3948 rm -f conftest.err conftest.$ac_ext
3950 done
3951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3952 rm -f conftest.err conftest.$ac_ext
3953 if $ac_preproc_ok; then :
3954 break
3957 done
3958 ac_cv_prog_CPP=$CPP
3961 CPP=$ac_cv_prog_CPP
3962 else
3963 ac_cv_prog_CPP=$CPP
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3966 $as_echo "$CPP" >&6; }
3967 ac_preproc_ok=false
3968 for ac_c_preproc_warn_flag in '' yes
3970 # Use a header file that comes with gcc, so configuring glibc
3971 # with a fresh cross-compiler works.
3972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3973 # <limits.h> exists even on freestanding compilers.
3974 # On the NeXT, cc -E runs the code through the compiler's parser,
3975 # not just through cpp. "Syntax error" is here to catch this case.
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978 #ifdef __STDC__
3979 # include <limits.h>
3980 #else
3981 # include <assert.h>
3982 #endif
3983 Syntax error
3984 _ACEOF
3985 if ac_fn_c_try_cpp "$LINENO"; then :
3987 else
3988 # Broken: fails on valid input.
3989 continue
3991 rm -f conftest.err conftest.$ac_ext
3993 # OK, works on sane cases. Now check whether nonexistent headers
3994 # can be detected and how.
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
3997 #include <ac_nonexistent.h>
3998 _ACEOF
3999 if ac_fn_c_try_cpp "$LINENO"; then :
4000 # Broken: success on invalid input.
4001 continue
4002 else
4003 # Passes both tests.
4004 ac_preproc_ok=:
4005 break
4007 rm -f conftest.err conftest.$ac_ext
4009 done
4010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4011 rm -f conftest.err conftest.$ac_ext
4012 if $ac_preproc_ok; then :
4014 else
4015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4017 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4018 See \`config.log' for more details." "$LINENO" 5; }
4021 ac_ext=c
4022 ac_cpp='$CPP $CPPFLAGS'
4023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4028 ac_c_preproc_warn_flag=yes
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4033 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4034 if test "${ac_cv_path_GREP+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
4036 else
4037 if test -z "$GREP"; then
4038 ac_path_GREP_found=false
4039 # Loop through the user's path and test for each of PROGNAME-LIST
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_prog in grep ggrep; do
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4048 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4049 # Check for GNU ac_path_GREP and select it if it is found.
4050 # Check for GNU $ac_path_GREP
4051 case `"$ac_path_GREP" --version 2>&1` in
4052 *GNU*)
4053 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4055 ac_count=0
4056 $as_echo_n 0123456789 >"conftest.in"
4057 while :
4059 cat "conftest.in" "conftest.in" >"conftest.tmp"
4060 mv "conftest.tmp" "conftest.in"
4061 cp "conftest.in" "conftest.nl"
4062 $as_echo 'GREP' >> "conftest.nl"
4063 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4064 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4065 as_fn_arith $ac_count + 1 && ac_count=$as_val
4066 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4067 # Best one so far, save it but keep looking for a better one
4068 ac_cv_path_GREP="$ac_path_GREP"
4069 ac_path_GREP_max=$ac_count
4071 # 10*(2^10) chars as input seems more than enough
4072 test $ac_count -gt 10 && break
4073 done
4074 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4075 esac
4077 $ac_path_GREP_found && break 3
4078 done
4079 done
4080 done
4081 IFS=$as_save_IFS
4082 if test -z "$ac_cv_path_GREP"; then
4083 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4085 else
4086 ac_cv_path_GREP=$GREP
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4091 $as_echo "$ac_cv_path_GREP" >&6; }
4092 GREP="$ac_cv_path_GREP"
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4096 $as_echo_n "checking for egrep... " >&6; }
4097 if test "${ac_cv_path_EGREP+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4101 then ac_cv_path_EGREP="$GREP -E"
4102 else
4103 if test -z "$EGREP"; then
4104 ac_path_EGREP_found=false
4105 # Loop through the user's path and test for each of PROGNAME-LIST
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4109 IFS=$as_save_IFS
4110 test -z "$as_dir" && as_dir=.
4111 for ac_prog in egrep; do
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4114 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4115 # Check for GNU ac_path_EGREP and select it if it is found.
4116 # Check for GNU $ac_path_EGREP
4117 case `"$ac_path_EGREP" --version 2>&1` in
4118 *GNU*)
4119 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4121 ac_count=0
4122 $as_echo_n 0123456789 >"conftest.in"
4123 while :
4125 cat "conftest.in" "conftest.in" >"conftest.tmp"
4126 mv "conftest.tmp" "conftest.in"
4127 cp "conftest.in" "conftest.nl"
4128 $as_echo 'EGREP' >> "conftest.nl"
4129 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4131 as_fn_arith $ac_count + 1 && ac_count=$as_val
4132 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4133 # Best one so far, save it but keep looking for a better one
4134 ac_cv_path_EGREP="$ac_path_EGREP"
4135 ac_path_EGREP_max=$ac_count
4137 # 10*(2^10) chars as input seems more than enough
4138 test $ac_count -gt 10 && break
4139 done
4140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4141 esac
4143 $ac_path_EGREP_found && break 3
4144 done
4145 done
4146 done
4147 IFS=$as_save_IFS
4148 if test -z "$ac_cv_path_EGREP"; then
4149 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4151 else
4152 ac_cv_path_EGREP=$EGREP
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4158 $as_echo "$ac_cv_path_EGREP" >&6; }
4159 EGREP="$ac_cv_path_EGREP"
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4163 $as_echo_n "checking for ANSI C header files... " >&6; }
4164 if test "${ac_cv_header_stdc+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <stdlib.h>
4170 #include <stdarg.h>
4171 #include <string.h>
4172 #include <float.h>
4175 main ()
4179 return 0;
4181 _ACEOF
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_cv_header_stdc=yes
4184 else
4185 ac_cv_header_stdc=no
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 if test $ac_cv_header_stdc = yes; then
4190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4193 #include <string.h>
4195 _ACEOF
4196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4197 $EGREP "memchr" >/dev/null 2>&1; then :
4199 else
4200 ac_cv_header_stdc=no
4202 rm -f conftest*
4206 if test $ac_cv_header_stdc = yes; then
4207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #include <stdlib.h>
4212 _ACEOF
4213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214 $EGREP "free" >/dev/null 2>&1; then :
4216 else
4217 ac_cv_header_stdc=no
4219 rm -f conftest*
4223 if test $ac_cv_header_stdc = yes; then
4224 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4225 if test "$cross_compiling" = yes; then :
4227 else
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230 #include <ctype.h>
4231 #include <stdlib.h>
4232 #if ((' ' & 0x0FF) == 0x020)
4233 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4234 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4235 #else
4236 # define ISLOWER(c) \
4237 (('a' <= (c) && (c) <= 'i') \
4238 || ('j' <= (c) && (c) <= 'r') \
4239 || ('s' <= (c) && (c) <= 'z'))
4240 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4241 #endif
4243 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4245 main ()
4247 int i;
4248 for (i = 0; i < 256; i++)
4249 if (XOR (islower (i), ISLOWER (i))
4250 || toupper (i) != TOUPPER (i))
4251 return 2;
4252 return 0;
4254 _ACEOF
4255 if ac_fn_c_try_run "$LINENO"; then :
4257 else
4258 ac_cv_header_stdc=no
4260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4261 conftest.$ac_objext conftest.beam conftest.$ac_ext
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4267 $as_echo "$ac_cv_header_stdc" >&6; }
4268 if test $ac_cv_header_stdc = yes; then
4270 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4274 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4275 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4276 inttypes.h stdint.h unistd.h
4277 do :
4278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4279 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
4280 eval as_val=\$$as_ac_Header
4281 if test "x$as_val" = x""yes; then :
4282 cat >>confdefs.h <<_ACEOF
4283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4284 _ACEOF
4287 done
4290 # The cast to long int works around a bug in the HP C Compiler
4291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4293 # This bug is HP SR number 8606223364.
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
4295 $as_echo_n "checking size of double... " >&6; }
4296 if test "${ac_cv_sizeof_double+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
4301 else
4302 if test "$ac_cv_type_double" = yes; then
4303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4305 { as_fn_set_status 77
4306 as_fn_error "cannot compute sizeof (double)
4307 See \`config.log' for more details." "$LINENO" 5; }; }
4308 else
4309 ac_cv_sizeof_double=0
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
4315 $as_echo "$ac_cv_sizeof_double" >&6; }
4319 cat >>confdefs.h <<_ACEOF
4320 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
4321 _ACEOF
4324 # The cast to long int works around a bug in the HP C Compiler
4325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4327 # This bug is HP SR number 8606223364.
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
4329 $as_echo_n "checking size of long double... " >&6; }
4330 if test "${ac_cv_sizeof_long_double+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
4335 else
4336 if test "$ac_cv_type_long_double" = yes; then
4337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4339 { as_fn_set_status 77
4340 as_fn_error "cannot compute sizeof (long double)
4341 See \`config.log' for more details." "$LINENO" 5; }; }
4342 else
4343 ac_cv_sizeof_long_double=0
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
4349 $as_echo "$ac_cv_sizeof_long_double" >&6; }
4353 cat >>confdefs.h <<_ACEOF
4354 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
4355 _ACEOF
4358 as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val
4359 as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val
4363 # Check for decimal float support.
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
4365 $as_echo_n "checking whether decimal floating point is supported... " >&6; }
4366 if test "${libgcc_cv_dfp+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 _Decimal32 x;
4372 _ACEOF
4373 if ac_fn_c_try_compile "$LINENO"; then :
4374 libgcc_cv_dfp=yes
4375 else
4376 libgcc_cv_dfp=no
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
4381 $as_echo "$libgcc_cv_dfp" >&6; }
4382 decimal_float=$libgcc_cv_dfp
4386 # Check whether --enable-decimal-float was given.
4387 if test "${enable_decimal_float+set}" = set; then :
4388 enableval=$enable_decimal_float;
4389 case $enable_decimal_float in
4390 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4391 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4392 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4393 esac
4395 else
4397 case $host in
4398 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4399 i?86*-*-mingw* | x86_64*-*-mingw* | \
4400 i?86*-*-cygwin*)
4401 enable_decimal_float=yes
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4405 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4406 enable_decimal_float=no
4408 esac
4413 # x86's use BID format instead of DPD
4414 case x$enable_decimal_float in
4415 xyes)
4416 case $host in
4417 i?86*-*-* | x86_64*-*-*)
4418 enable_decimal_float=bid
4421 enable_decimal_float=dpd
4423 esac
4424 default_decimal_float=$enable_decimal_float
4426 xno)
4427 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4428 # dependency on libdecnumber.
4429 default_decimal_float=dpd
4431 esac
4436 # Check for fixed-point support.
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
4438 $as_echo_n "checking whether fixed-point is supported... " >&6; }
4439 if test "${libgcc_cv_fixed_point+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4444 _Sat _Fract x;
4445 _ACEOF
4446 if ac_fn_c_try_compile "$LINENO"; then :
4447 libgcc_cv_fixed_point=yes
4448 else
4449 libgcc_cv_fixed_point=no
4451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
4454 $as_echo "$libgcc_cv_fixed_point" >&6; }
4455 fixed_point=$libgcc_cv_fixed_point
4458 # For platforms with the unwind ABI which includes an unwind library,
4459 # libunwind, we can choose to use the system libunwind.
4460 # config.gcc also contains tests of with_system_libunwind.
4463 # Check whether --with-system-libunwind was given.
4464 if test "${with_system_libunwind+set}" = set; then :
4465 withval=$with_system_libunwind;
4468 # If system-libunwind was not specifically set, pick a default setting.
4469 if test x$with_system_libunwind = x; then
4470 case ${target} in
4471 ia64-*-hpux*) with_system_libunwind=yes ;;
4472 *) with_system_libunwind=no ;;
4473 esac
4475 # Based on system-libunwind and target, do we have ipinfo?
4476 if test x$with_system_libunwind = xyes; then
4477 case ${target} in
4478 ia64-*-*) have_unwind_getipinfo=no ;;
4479 *) have_unwind_getipinfo=yes ;;
4480 esac
4481 else
4482 # Darwin before version 9 does not have _Unwind_GetIPInfo.
4484 case ${target} in
4485 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
4486 *) have_unwind_getipinfo=yes ;;
4487 esac
4491 if test x$have_unwind_getipinfo = xyes; then
4493 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
4498 # The sjlj test is almost duplicated here and in libgo/configure.ac (for C),
4499 # libstdc++-v3/acinclude.m4 and libjava/configure.ac (for C++), and
4500 # libobjc/configure.ac (for Objective-C).
4501 # FIXME: This should be centralized in config/sjlj.m4.
4502 # Check whether --enable-sjlj-exceptions was given.
4503 if test "${enable_sjlj_exceptions+set}" = set; then :
4504 enableval=$enable_sjlj_exceptions; case "$enableval" in
4505 yes|no|auto) ;;
4506 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
4507 esac
4508 else
4509 enable_sjlj_exceptions=auto
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
4514 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
4515 if test "${libgcc_cv_lib_sjlj_exceptions+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4521 void bar ();
4522 void clean (int *);
4523 void foo ()
4525 int i __attribute__ ((cleanup (clean)));
4526 bar();
4529 _ACEOF
4530 CFLAGS_hold=$CFLAGS
4531 CFLAGS="--save-temps -fexceptions"
4532 libgcc_cv_lib_sjlj_exceptions=unknown
4533 if ac_fn_c_try_compile; then :
4534 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
4535 libgcc_cv_lib_sjlj_exceptions=yes
4536 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
4537 libgcc_cv_lib_sjlj_exceptions=no
4540 CFLAGS=$CFLAGS_hold
4541 rm -f conftest*
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_lib_sjlj_exceptions" >&5
4545 $as_echo "$libgcc_cv_lib_sjlj_exceptions" >&6; }
4547 if test "$enable_sjlj_exceptions" = "auto"; then
4548 enable_sjlj_exceptions=$libgcc_cv_lib_sjlj_exceptions
4551 case $enable_sjlj_exceptions in
4552 yes)
4554 $as_echo "#define LIBGCC_SJLJ_EXCEPTIONS 1" >>confdefs.h
4560 as_fn_error "unable to detect exception model" "$LINENO" 5
4562 esac
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4565 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4566 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4570 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4571 acl_cv_prog_gnu_ld=yes
4572 else
4573 acl_cv_prog_gnu_ld=no
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4577 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4578 with_gnu_ld=$acl_cv_prog_gnu_ld
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
4582 $as_echo_n "checking for thread model used by GCC... " >&6; }
4583 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
4585 $as_echo "$target_thread_file" >&6; }
4587 # Check for assembler CFI support.
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
4589 $as_echo_n "checking whether assembler supports CFI directives... " >&6; }
4590 if test "${libgcc_cv_cfi+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595 asm("\n\
4596 .text\n\
4597 .cfi_startproc\n\
4598 .cfi_personality 0, symbol\n\
4599 .cfi_endproc");
4600 _ACEOF
4601 if ac_fn_c_try_compile "$LINENO"; then :
4602 libgcc_cv_cfi=yes
4603 else
4604 libgcc_cv_cfi=no
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
4609 $as_echo "$libgcc_cv_cfi" >&6; }
4611 # Check 32bit or 64bit
4612 cat > conftest.c <<EOF
4613 #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__))
4614 host_address=64
4615 #else
4616 host_address=32
4617 #endif
4619 eval `${CC-cc} -E conftest.c | grep host_address=`
4620 rm -f conftest.c
4622 # Collect host-machine-specific information.
4623 . ${srcdir}/config.host
4625 # Check if Solaris/x86 linker supports ZERO terminator unwind entries.
4626 # This is after config.host so we can augment tmake_file.
4627 # Link with -nostartfiles -nodefaultlibs since neither are present while
4628 # building libgcc.
4629 case ${host} in
4630 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
4631 cat > conftest.s <<EOF
4632 .section .eh_frame,"a",@unwind
4633 .zero 4
4634 .section .jcr,"aw",@progbits
4635 .zero 8
4637 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
4638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4639 (eval $ac_try) 2>&5
4640 ac_status=$?
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }; }; then
4643 tmake_file="${tmake_file} i386/t-crtstuff"
4646 esac
4648 # Check for visibility support. This is after config.host so that
4649 # we can check for asm_hidden_op.
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
4651 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
4652 if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4656 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
4657 libgcc_cv_hidden_visibility_attribute=no
4658 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4663 test $ac_status = 0; }; }; then
4664 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
4665 libgcc_cv_hidden_visibility_attribute=yes
4668 rm -f conftest.*
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
4672 $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
4674 if test $libgcc_cv_hidden_visibility_attribute = yes; then
4675 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
4676 else
4677 vis_hide=
4681 # See if we have thread-local storage. We can only test assembler
4682 # sicne link-time and run-time tests require the newly built
4683 # gcc, which can't be used to build executable due to that libgcc
4684 # is yet to be built here.
4686 # Check whether --enable-tls was given.
4687 if test "${enable_tls+set}" = set; then :
4688 enableval=$enable_tls;
4689 case "$enableval" in
4690 yes|no) ;;
4691 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
4692 esac
4694 else
4695 enable_tls=yes
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
4700 $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
4701 if test "${gcc_cv_have_cc_tls+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 __thread int a; int b; int main() { return a = b; }
4708 _ACEOF
4709 if ac_fn_c_try_compile "$LINENO"; then :
4710 gcc_cv_have_cc_tls=yes
4711 else
4712 gcc_cv_have_cc_tls=no
4714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
4718 $as_echo "$gcc_cv_have_cc_tls" >&6; }
4719 set_have_cc_tls=
4720 if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
4721 set_have_cc_tls="-DHAVE_CC_TLS"
4725 # See if we have emulated thread-local storage.
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
4728 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
4729 if test "${gcc_cv_use_emutls+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4733 gcc_cv_use_emutls=no
4734 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
4735 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
4736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4737 (eval $ac_try) 2>&5
4738 ac_status=$?
4739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4740 test $ac_status = 0; }; }; then
4741 if grep __emutls_get_address conftest.s > /dev/null; then
4742 gcc_cv_use_emutls=yes
4745 rm -f conftest.*
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
4749 $as_echo "$gcc_cv_use_emutls" >&6; }
4750 if test "$gcc_cv_use_emutls" = "yes" ; then
4752 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
4755 set_use_emutls=
4756 if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
4757 set_use_emutls="-DUSE_EMUTLS"
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
4762 $as_echo_n "checking for init priority support... " >&6; }
4763 if test "${libgcc_cv_init_priority+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4771 main ()
4773 void ip (void) __attribute__ ((constructor (1)));
4775 return 0;
4777 _ACEOF
4778 if ac_fn_c_try_compile "$LINENO"; then :
4779 libgcc_cv_init_priority=yes
4780 else
4781 libgcc_cv_init_priority=no
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5
4786 $as_echo "$libgcc_cv_init_priority" >&6; }
4787 if test $libgcc_cv_init_priority = yes; then
4789 $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h
4793 # Conditionalize the sfp-machine.h header for this target machine.
4794 if test -z "${sfp_machine_header}"; then
4795 sfp_machine_header=$cpu_type/sfp-machine.h
4796 if test -f ${srcdir}/config/${sfp_machine_header}; then
4798 else
4799 sfp_machine_header=no-sfp-machine.h
4804 # Conditionalize the makefile for this target machine.
4805 tmake_file_=
4806 for f in ${tmake_file}
4808 if test -f ${srcdir}/config/$f
4809 then
4810 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
4812 done
4813 tmake_file="${tmake_file_}"
4816 # Likewise export definitions for libgcc_tm.h
4817 tm_file_=
4818 for f in ${tm_file}
4820 tm_file_="${tm_file_} \$(srcdir)/config/$f"
4821 done
4822 tm_file="${tm_file_}"
4826 # Map from thread model to thread header.
4827 case $target_thread_file in
4828 aix) thread_header=config/rs6000/gthr-aix.h ;;
4829 dce) thread_header=config/pa/gthr-dce.h ;;
4830 lynx) thread_header=config/gthr-lynx.h ;;
4831 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
4832 posix) thread_header=gthr-posix.h ;;
4833 rtems) thread_header=config/gthr-rtems.h ;;
4834 single) thread_header=gthr-single.h ;;
4835 tpf) thread_header=config/s390/gthr-tpf.h ;;
4836 vxworks) thread_header=config/gthr-vxworks.h ;;
4837 win32) thread_header=config/i386/gthr-win32.h ;;
4838 esac
4840 # Substitute configuration variables
4844 ac_config_links="$ac_config_links enable-execute-stack.c:$enable_execute_stack"
4846 ac_config_links="$ac_config_links unwind.h:$unwind_header"
4848 ac_config_links="$ac_config_links md-unwind-support.h:config/$md_unwind_header"
4850 ac_config_links="$ac_config_links sfp-machine.h:config/$sfp_machine_header"
4852 ac_config_links="$ac_config_links gthr-default.h:$thread_header"
4855 # We need multilib support.
4856 ac_config_files="$ac_config_files Makefile"
4858 ac_config_commands="$ac_config_commands default"
4860 cat >confcache <<\_ACEOF
4861 # This file is a shell script that caches the results of configure
4862 # tests run on this system so they can be shared between configure
4863 # scripts and configure runs, see configure's option --config-cache.
4864 # It is not useful on other systems. If it contains results you don't
4865 # want to keep, you may remove or edit it.
4867 # config.status only pays attention to the cache file if you give it
4868 # the --recheck option to rerun configure.
4870 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4871 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4872 # following values.
4874 _ACEOF
4876 # The following way of writing the cache mishandles newlines in values,
4877 # but we know of no workaround that is simple, portable, and efficient.
4878 # So, we kill variables containing newlines.
4879 # Ultrix sh set writes to stderr and can't be redirected directly,
4880 # and sets the high bit in the cache file unless we assign to the vars.
4882 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4883 eval ac_val=\$$ac_var
4884 case $ac_val in #(
4885 *${as_nl}*)
4886 case $ac_var in #(
4887 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4888 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4889 esac
4890 case $ac_var in #(
4891 _ | IFS | as_nl) ;; #(
4892 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4893 *) { eval $ac_var=; unset $ac_var;} ;;
4894 esac ;;
4895 esac
4896 done
4898 (set) 2>&1 |
4899 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4900 *${as_nl}ac_space=\ *)
4901 # `set' does not quote correctly, so add quotes: double-quote
4902 # substitution turns \\\\ into \\, and sed turns \\ into \.
4903 sed -n \
4904 "s/'/'\\\\''/g;
4905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4906 ;; #(
4908 # `set' quotes correctly as required by POSIX, so do not add quotes.
4909 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4911 esac |
4912 sort
4914 sed '
4915 /^ac_cv_env_/b end
4916 t clear
4917 :clear
4918 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4919 t end
4920 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4921 :end' >>confcache
4922 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4923 if test -w "$cache_file"; then
4924 test "x$cache_file" != "x/dev/null" &&
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4926 $as_echo "$as_me: updating cache $cache_file" >&6;}
4927 cat confcache >$cache_file
4928 else
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4930 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4933 rm -f confcache
4935 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4936 # Let make expand exec_prefix.
4937 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4939 DEFS=-DHAVE_CONFIG_H
4941 ac_libobjs=
4942 ac_ltlibobjs=
4943 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4944 # 1. Remove the extension, and $U if already installed.
4945 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4946 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4947 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4948 # will be set to the directory where LIBOBJS objects are built.
4949 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4950 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4951 done
4952 LIBOBJS=$ac_libobjs
4954 LTLIBOBJS=$ac_ltlibobjs
4958 : ${CONFIG_STATUS=./config.status}
4959 ac_write_fail=0
4960 ac_clean_files_save=$ac_clean_files
4961 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4963 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4964 as_write_fail=0
4965 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4966 #! $SHELL
4967 # Generated by $as_me.
4968 # Run this file to recreate the current configuration.
4969 # Compiler output produced by configure, useful for debugging
4970 # configure, is in config.log if it exists.
4972 debug=false
4973 ac_cs_recheck=false
4974 ac_cs_silent=false
4976 SHELL=\${CONFIG_SHELL-$SHELL}
4977 export SHELL
4978 _ASEOF
4979 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4980 ## -------------------- ##
4981 ## M4sh Initialization. ##
4982 ## -------------------- ##
4984 # Be more Bourne compatible
4985 DUALCASE=1; export DUALCASE # for MKS sh
4986 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4987 emulate sh
4988 NULLCMD=:
4989 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4990 # is contrary to our usage. Disable this feature.
4991 alias -g '${1+"$@"}'='"$@"'
4992 setopt NO_GLOB_SUBST
4993 else
4994 case `(set -o) 2>/dev/null` in #(
4995 *posix*) :
4996 set -o posix ;; #(
4997 *) :
4999 esac
5003 as_nl='
5005 export as_nl
5006 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5007 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5009 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5010 # Prefer a ksh shell builtin over an external printf program on Solaris,
5011 # but without wasting forks for bash or zsh.
5012 if test -z "$BASH_VERSION$ZSH_VERSION" \
5013 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5014 as_echo='print -r --'
5015 as_echo_n='print -rn --'
5016 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5017 as_echo='printf %s\n'
5018 as_echo_n='printf %s'
5019 else
5020 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5021 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5022 as_echo_n='/usr/ucb/echo -n'
5023 else
5024 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5025 as_echo_n_body='eval
5026 arg=$1;
5027 case $arg in #(
5028 *"$as_nl"*)
5029 expr "X$arg" : "X\\(.*\\)$as_nl";
5030 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5031 esac;
5032 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5034 export as_echo_n_body
5035 as_echo_n='sh -c $as_echo_n_body as_echo'
5037 export as_echo_body
5038 as_echo='sh -c $as_echo_body as_echo'
5041 # The user is always right.
5042 if test "${PATH_SEPARATOR+set}" != set; then
5043 PATH_SEPARATOR=:
5044 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5045 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5046 PATH_SEPARATOR=';'
5051 # IFS
5052 # We need space, tab and new line, in precisely that order. Quoting is
5053 # there to prevent editors from complaining about space-tab.
5054 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5055 # splitting by setting IFS to empty value.)
5056 IFS=" "" $as_nl"
5058 # Find who we are. Look in the path if we contain no directory separator.
5059 case $0 in #((
5060 *[\\/]* ) as_myself=$0 ;;
5061 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5067 done
5068 IFS=$as_save_IFS
5071 esac
5072 # We did not find ourselves, most probably we were run as `sh COMMAND'
5073 # in which case we are not to be found in the path.
5074 if test "x$as_myself" = x; then
5075 as_myself=$0
5077 if test ! -f "$as_myself"; then
5078 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5079 exit 1
5082 # Unset variables that we do not need and which cause bugs (e.g. in
5083 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5084 # suppresses any "Segmentation fault" message there. '((' could
5085 # trigger a bug in pdksh 5.2.14.
5086 for as_var in BASH_ENV ENV MAIL MAILPATH
5087 do eval test x\${$as_var+set} = xset \
5088 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5089 done
5090 PS1='$ '
5091 PS2='> '
5092 PS4='+ '
5094 # NLS nuisances.
5095 LC_ALL=C
5096 export LC_ALL
5097 LANGUAGE=C
5098 export LANGUAGE
5100 # CDPATH.
5101 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5104 # as_fn_error ERROR [LINENO LOG_FD]
5105 # ---------------------------------
5106 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5107 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5108 # script with status $?, using 1 if that was 0.
5109 as_fn_error ()
5111 as_status=$?; test $as_status -eq 0 && as_status=1
5112 if test "$3"; then
5113 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5114 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5116 $as_echo "$as_me: error: $1" >&2
5117 as_fn_exit $as_status
5118 } # as_fn_error
5121 # as_fn_set_status STATUS
5122 # -----------------------
5123 # Set $? to STATUS, without forking.
5124 as_fn_set_status ()
5126 return $1
5127 } # as_fn_set_status
5129 # as_fn_exit STATUS
5130 # -----------------
5131 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5132 as_fn_exit ()
5134 set +e
5135 as_fn_set_status $1
5136 exit $1
5137 } # as_fn_exit
5139 # as_fn_unset VAR
5140 # ---------------
5141 # Portably unset VAR.
5142 as_fn_unset ()
5144 { eval $1=; unset $1;}
5146 as_unset=as_fn_unset
5147 # as_fn_append VAR VALUE
5148 # ----------------------
5149 # Append the text in VALUE to the end of the definition contained in VAR. Take
5150 # advantage of any shell optimizations that allow amortized linear growth over
5151 # repeated appends, instead of the typical quadratic growth present in naive
5152 # implementations.
5153 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5154 eval 'as_fn_append ()
5156 eval $1+=\$2
5158 else
5159 as_fn_append ()
5161 eval $1=\$$1\$2
5163 fi # as_fn_append
5165 # as_fn_arith ARG...
5166 # ------------------
5167 # Perform arithmetic evaluation on the ARGs, and store the result in the
5168 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5169 # must be portable across $(()) and expr.
5170 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5171 eval 'as_fn_arith ()
5173 as_val=$(( $* ))
5175 else
5176 as_fn_arith ()
5178 as_val=`expr "$@" || test $? -eq 1`
5180 fi # as_fn_arith
5183 if expr a : '\(a\)' >/dev/null 2>&1 &&
5184 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5185 as_expr=expr
5186 else
5187 as_expr=false
5190 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5191 as_basename=basename
5192 else
5193 as_basename=false
5196 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5197 as_dirname=dirname
5198 else
5199 as_dirname=false
5202 as_me=`$as_basename -- "$0" ||
5203 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5204 X"$0" : 'X\(//\)$' \| \
5205 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5206 $as_echo X/"$0" |
5207 sed '/^.*\/\([^/][^/]*\)\/*$/{
5208 s//\1/
5211 /^X\/\(\/\/\)$/{
5212 s//\1/
5215 /^X\/\(\/\).*/{
5216 s//\1/
5219 s/.*/./; q'`
5221 # Avoid depending upon Character Ranges.
5222 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5223 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5224 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5225 as_cr_digits='0123456789'
5226 as_cr_alnum=$as_cr_Letters$as_cr_digits
5228 ECHO_C= ECHO_N= ECHO_T=
5229 case `echo -n x` in #(((((
5230 -n*)
5231 case `echo 'xy\c'` in
5232 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5233 xy) ECHO_C='\c';;
5234 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5235 ECHO_T=' ';;
5236 esac;;
5238 ECHO_N='-n';;
5239 esac
5241 rm -f conf$$ conf$$.exe conf$$.file
5242 if test -d conf$$.dir; then
5243 rm -f conf$$.dir/conf$$.file
5244 else
5245 rm -f conf$$.dir
5246 mkdir conf$$.dir 2>/dev/null
5248 if (echo >conf$$.file) 2>/dev/null; then
5249 if ln -s conf$$.file conf$$ 2>/dev/null; then
5250 as_ln_s='ln -s'
5251 # ... but there are two gotchas:
5252 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5253 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5254 # In both cases, we have to default to `cp -p'.
5255 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5256 as_ln_s='cp -p'
5257 elif ln conf$$.file conf$$ 2>/dev/null; then
5258 as_ln_s=ln
5259 else
5260 as_ln_s='cp -p'
5262 else
5263 as_ln_s='cp -p'
5265 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5266 rmdir conf$$.dir 2>/dev/null
5269 # as_fn_mkdir_p
5270 # -------------
5271 # Create "$as_dir" as a directory, including parents if necessary.
5272 as_fn_mkdir_p ()
5275 case $as_dir in #(
5276 -*) as_dir=./$as_dir;;
5277 esac
5278 test -d "$as_dir" || eval $as_mkdir_p || {
5279 as_dirs=
5280 while :; do
5281 case $as_dir in #(
5282 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5283 *) as_qdir=$as_dir;;
5284 esac
5285 as_dirs="'$as_qdir' $as_dirs"
5286 as_dir=`$as_dirname -- "$as_dir" ||
5287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5288 X"$as_dir" : 'X\(//\)[^/]' \| \
5289 X"$as_dir" : 'X\(//\)$' \| \
5290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5291 $as_echo X"$as_dir" |
5292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5293 s//\1/
5296 /^X\(\/\/\)[^/].*/{
5297 s//\1/
5300 /^X\(\/\/\)$/{
5301 s//\1/
5304 /^X\(\/\).*/{
5305 s//\1/
5308 s/.*/./; q'`
5309 test -d "$as_dir" && break
5310 done
5311 test -z "$as_dirs" || eval "mkdir $as_dirs"
5312 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5315 } # as_fn_mkdir_p
5316 if mkdir -p . 2>/dev/null; then
5317 as_mkdir_p='mkdir -p "$as_dir"'
5318 else
5319 test -d ./-p && rmdir ./-p
5320 as_mkdir_p=false
5323 if test -x / >/dev/null 2>&1; then
5324 as_test_x='test -x'
5325 else
5326 if ls -dL / >/dev/null 2>&1; then
5327 as_ls_L_option=L
5328 else
5329 as_ls_L_option=
5331 as_test_x='
5332 eval sh -c '\''
5333 if test -d "$1"; then
5334 test -d "$1/.";
5335 else
5336 case $1 in #(
5337 -*)set "./$1";;
5338 esac;
5339 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5340 ???[sx]*):;;*)false;;esac;fi
5341 '\'' sh
5344 as_executable_p=$as_test_x
5346 # Sed expression to map a string onto a valid CPP name.
5347 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5349 # Sed expression to map a string onto a valid variable name.
5350 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5353 exec 6>&1
5354 ## ----------------------------------- ##
5355 ## Main body of $CONFIG_STATUS script. ##
5356 ## ----------------------------------- ##
5357 _ASEOF
5358 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5361 # Save the log message, to keep $0 and so on meaningful, and to
5362 # report actual input values of CONFIG_FILES etc. instead of their
5363 # values after options handling.
5364 ac_log="
5365 This file was extended by GNU C Runtime Library $as_me 1.0, which was
5366 generated by GNU Autoconf 2.64. Invocation command line was
5368 CONFIG_FILES = $CONFIG_FILES
5369 CONFIG_HEADERS = $CONFIG_HEADERS
5370 CONFIG_LINKS = $CONFIG_LINKS
5371 CONFIG_COMMANDS = $CONFIG_COMMANDS
5372 $ $0 $@
5374 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5377 _ACEOF
5379 case $ac_config_files in *"
5380 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5381 esac
5383 case $ac_config_headers in *"
5384 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5385 esac
5388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5389 # Files that config.status was made for.
5390 config_files="$ac_config_files"
5391 config_headers="$ac_config_headers"
5392 config_links="$ac_config_links"
5393 config_commands="$ac_config_commands"
5395 _ACEOF
5397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5398 ac_cs_usage="\
5399 \`$as_me' instantiates files and other configuration actions
5400 from templates according to the current configuration. Unless the files
5401 and actions are specified as TAGs, all are instantiated by default.
5403 Usage: $0 [OPTION]... [TAG]...
5405 -h, --help print this help, then exit
5406 -V, --version print version number and configuration settings, then exit
5407 -q, --quiet, --silent
5408 do not print progress messages
5409 -d, --debug don't remove temporary files
5410 --recheck update $as_me by reconfiguring in the same conditions
5411 --file=FILE[:TEMPLATE]
5412 instantiate the configuration file FILE
5413 --header=FILE[:TEMPLATE]
5414 instantiate the configuration header FILE
5416 Configuration files:
5417 $config_files
5419 Configuration headers:
5420 $config_headers
5422 Configuration links:
5423 $config_links
5425 Configuration commands:
5426 $config_commands
5428 Report bugs to the package provider.
5429 GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
5430 General help using GNU software: <http://www.gnu.org/gethelp/>."
5432 _ACEOF
5433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5434 ac_cs_version="\\
5435 GNU C Runtime Library config.status 1.0
5436 configured by $0, generated by GNU Autoconf 2.64,
5437 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5439 Copyright (C) 2009 Free Software Foundation, Inc.
5440 This config.status script is free software; the Free Software Foundation
5441 gives unlimited permission to copy, distribute and modify it."
5443 ac_pwd='$ac_pwd'
5444 srcdir='$srcdir'
5445 INSTALL='$INSTALL'
5446 AWK='$AWK'
5447 test -n "\$AWK" || AWK=awk
5448 _ACEOF
5450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5451 # The default lists apply if the user does not specify any file.
5452 ac_need_defaults=:
5453 while test $# != 0
5455 case $1 in
5456 --*=*)
5457 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5458 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5459 ac_shift=:
5462 ac_option=$1
5463 ac_optarg=$2
5464 ac_shift=shift
5466 esac
5468 case $ac_option in
5469 # Handling of the options.
5470 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5471 ac_cs_recheck=: ;;
5472 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5473 $as_echo "$ac_cs_version"; exit ;;
5474 --debug | --debu | --deb | --de | --d | -d )
5475 debug=: ;;
5476 --file | --fil | --fi | --f )
5477 $ac_shift
5478 case $ac_optarg in
5479 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5480 esac
5481 as_fn_append CONFIG_FILES " '$ac_optarg'"
5482 ac_need_defaults=false;;
5483 --header | --heade | --head | --hea )
5484 $ac_shift
5485 case $ac_optarg in
5486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5487 esac
5488 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5489 ac_need_defaults=false;;
5490 --he | --h)
5491 # Conflict between --help and --header
5492 as_fn_error "ambiguous option: \`$1'
5493 Try \`$0 --help' for more information.";;
5494 --help | --hel | -h )
5495 $as_echo "$ac_cs_usage"; exit ;;
5496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5497 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5498 ac_cs_silent=: ;;
5500 # This is an error.
5501 -*) as_fn_error "unrecognized option: \`$1'
5502 Try \`$0 --help' for more information." ;;
5504 *) as_fn_append ac_config_targets " $1"
5505 ac_need_defaults=false ;;
5507 esac
5508 shift
5509 done
5511 ac_configure_extra_args=
5513 if $ac_cs_silent; then
5514 exec 6>/dev/null
5515 ac_configure_extra_args="$ac_configure_extra_args --silent"
5518 _ACEOF
5519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5520 if \$ac_cs_recheck; then
5521 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5522 shift
5523 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5524 CONFIG_SHELL='$SHELL'
5525 export CONFIG_SHELL
5526 exec "\$@"
5529 _ACEOF
5530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5531 exec 5>>config.log
5533 echo
5534 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5535 ## Running $as_me. ##
5536 _ASBOX
5537 $as_echo "$ac_log"
5538 } >&5
5540 _ACEOF
5541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5543 # INIT-COMMANDS
5545 srcdir=${srcdir}
5546 host=${host}
5547 with_target_subdir=${with_target_subdir}
5548 with_multisubdir=${with_multisubdir}
5549 ac_configure_args="--enable-multilib ${ac_configure_args}"
5550 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5551 libgcc_topdir=${libgcc_topdir}
5552 CC="${CC}"
5555 _ACEOF
5557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5559 # Handling of arguments.
5560 for ac_config_target in $ac_config_targets
5562 case $ac_config_target in
5563 "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;;
5564 "enable-execute-stack.c") CONFIG_LINKS="$CONFIG_LINKS enable-execute-stack.c:$enable_execute_stack" ;;
5565 "unwind.h") CONFIG_LINKS="$CONFIG_LINKS unwind.h:$unwind_header" ;;
5566 "md-unwind-support.h") CONFIG_LINKS="$CONFIG_LINKS md-unwind-support.h:config/$md_unwind_header" ;;
5567 "sfp-machine.h") CONFIG_LINKS="$CONFIG_LINKS sfp-machine.h:config/$sfp_machine_header" ;;
5568 "gthr-default.h") CONFIG_LINKS="$CONFIG_LINKS gthr-default.h:$thread_header" ;;
5569 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5570 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5572 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5573 esac
5574 done
5577 # If the user did not use the arguments to specify the items to instantiate,
5578 # then the envvar interface is used. Set only those that are not.
5579 # We use the long form for the default assignment because of an extremely
5580 # bizarre bug on SunOS 4.1.3.
5581 if $ac_need_defaults; then
5582 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5583 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5584 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
5585 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5588 # Have a temporary directory for convenience. Make it in the build tree
5589 # simply because there is no reason against having it here, and in addition,
5590 # creating and moving files from /tmp can sometimes cause problems.
5591 # Hook for its removal unless debugging.
5592 # Note that there is a small window in which the directory will not be cleaned:
5593 # after its creation but before its name has been assigned to `$tmp'.
5594 $debug ||
5596 tmp=
5597 trap 'exit_status=$?
5598 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5600 trap 'as_fn_exit 1' 1 2 13 15
5602 # Create a (secure) tmp directory for tmp files.
5605 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5606 test -n "$tmp" && test -d "$tmp"
5607 } ||
5609 tmp=./conf$$-$RANDOM
5610 (umask 077 && mkdir "$tmp")
5611 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5613 # Set up the scripts for CONFIG_FILES section.
5614 # No need to generate them if there are no CONFIG_FILES.
5615 # This happens for instance with `./config.status config.h'.
5616 if test -n "$CONFIG_FILES"; then
5619 ac_cr=`echo X | tr X '\015'`
5620 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5621 # But we know of no other shell where ac_cr would be empty at this
5622 # point, so we can use a bashism as a fallback.
5623 if test "x$ac_cr" = x; then
5624 eval ac_cr=\$\'\\r\'
5626 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5627 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5628 ac_cs_awk_cr='\r'
5629 else
5630 ac_cs_awk_cr=$ac_cr
5633 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5634 _ACEOF
5638 echo "cat >conf$$subs.awk <<_ACEOF" &&
5639 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5640 echo "_ACEOF"
5641 } >conf$$subs.sh ||
5642 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5643 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5644 ac_delim='%!_!# '
5645 for ac_last_try in false false false false false :; do
5646 . ./conf$$subs.sh ||
5647 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5649 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5650 if test $ac_delim_n = $ac_delim_num; then
5651 break
5652 elif $ac_last_try; then
5653 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5654 else
5655 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5657 done
5658 rm -f conf$$subs.sh
5660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5661 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5662 _ACEOF
5663 sed -n '
5665 s/^/S["/; s/!.*/"]=/
5668 s/^[^!]*!//
5669 :repl
5670 t repl
5671 s/'"$ac_delim"'$//
5672 t delim
5675 s/\(.\{148\}\).*/\1/
5676 t more1
5677 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5680 b repl
5681 :more1
5682 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5685 s/.\{148\}//
5686 t nl
5687 :delim
5689 s/\(.\{148\}\).*/\1/
5690 t more2
5691 s/["\\]/\\&/g; s/^/"/; s/$/"/
5694 :more2
5695 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5698 s/.\{148\}//
5699 t delim
5700 ' <conf$$subs.awk | sed '
5701 /^[^""]/{
5703 s/\n//
5705 ' >>$CONFIG_STATUS || ac_write_fail=1
5706 rm -f conf$$subs.awk
5707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5708 _ACAWK
5709 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5710 for (key in S) S_is_set[key] = 1
5711 FS = "\a"
5715 line = $ 0
5716 nfields = split(line, field, "@")
5717 substed = 0
5718 len = length(field[1])
5719 for (i = 2; i < nfields; i++) {
5720 key = field[i]
5721 keylen = length(key)
5722 if (S_is_set[key]) {
5723 value = S[key]
5724 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5725 len += length(value) + length(field[++i])
5726 substed = 1
5727 } else
5728 len += 1 + keylen
5731 print line
5734 _ACAWK
5735 _ACEOF
5736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5737 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5738 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5739 else
5741 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5742 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5743 _ACEOF
5745 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5746 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5747 # trailing colons and then remove the whole line if VPATH becomes empty
5748 # (actually we leave an empty line to preserve line numbers).
5749 if test "x$srcdir" = x.; then
5750 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5751 s/:*\$(srcdir):*/:/
5752 s/:*\${srcdir}:*/:/
5753 s/:*@srcdir@:*/:/
5754 s/^\([^=]*=[ ]*\):*/\1/
5755 s/:*$//
5756 s/^[^=]*=[ ]*$//
5760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5761 fi # test -n "$CONFIG_FILES"
5763 # Set up the scripts for CONFIG_HEADERS section.
5764 # No need to generate them if there are no CONFIG_HEADERS.
5765 # This happens for instance with `./config.status Makefile'.
5766 if test -n "$CONFIG_HEADERS"; then
5767 cat >"$tmp/defines.awk" <<\_ACAWK ||
5768 BEGIN {
5769 _ACEOF
5771 # Transform confdefs.h into an awk script `defines.awk', embedded as
5772 # here-document in config.status, that substitutes the proper values into
5773 # config.h.in to produce config.h.
5775 # Create a delimiter string that does not exist in confdefs.h, to ease
5776 # handling of long lines.
5777 ac_delim='%!_!# '
5778 for ac_last_try in false false :; do
5779 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5780 if test -z "$ac_t"; then
5781 break
5782 elif $ac_last_try; then
5783 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5784 else
5785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5787 done
5789 # For the awk script, D is an array of macro values keyed by name,
5790 # likewise P contains macro parameters if any. Preserve backslash
5791 # newline sequences.
5793 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5794 sed -n '
5795 s/.\{148\}/&'"$ac_delim"'/g
5796 t rset
5797 :rset
5798 s/^[ ]*#[ ]*define[ ][ ]*/ /
5799 t def
5801 :def
5802 s/\\$//
5803 t bsnl
5804 s/["\\]/\\&/g
5805 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5806 D["\1"]=" \3"/p
5807 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5809 :bsnl
5810 s/["\\]/\\&/g
5811 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5812 D["\1"]=" \3\\\\\\n"\\/p
5813 t cont
5814 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5815 t cont
5817 :cont
5819 s/.\{148\}/&'"$ac_delim"'/g
5820 t clear
5821 :clear
5822 s/\\$//
5823 t bsnlc
5824 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5826 :bsnlc
5827 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5828 b cont
5829 ' <confdefs.h | sed '
5830 s/'"$ac_delim"'/"\\\
5831 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5834 for (key in D) D_is_set[key] = 1
5835 FS = "\a"
5837 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5838 line = \$ 0
5839 split(line, arg, " ")
5840 if (arg[1] == "#") {
5841 defundef = arg[2]
5842 mac1 = arg[3]
5843 } else {
5844 defundef = substr(arg[1], 2)
5845 mac1 = arg[2]
5847 split(mac1, mac2, "(") #)
5848 macro = mac2[1]
5849 prefix = substr(line, 1, index(line, defundef) - 1)
5850 if (D_is_set[macro]) {
5851 # Preserve the white space surrounding the "#".
5852 print prefix "define", macro P[macro] D[macro]
5853 next
5854 } else {
5855 # Replace #undef with comments. This is necessary, for example,
5856 # in the case of _POSIX_SOURCE, which is predefined and required
5857 # on some systems where configure will not decide to define it.
5858 if (defundef == "undef") {
5859 print "/*", prefix defundef, macro, "*/"
5860 next
5864 { print }
5865 _ACAWK
5866 _ACEOF
5867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5868 as_fn_error "could not setup config headers machinery" "$LINENO" 5
5869 fi # test -n "$CONFIG_HEADERS"
5872 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
5873 shift
5874 for ac_tag
5876 case $ac_tag in
5877 :[FHLC]) ac_mode=$ac_tag; continue;;
5878 esac
5879 case $ac_mode$ac_tag in
5880 :[FHL]*:*);;
5881 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5882 :[FH]-) ac_tag=-:-;;
5883 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5884 esac
5885 ac_save_IFS=$IFS
5886 IFS=:
5887 set x $ac_tag
5888 IFS=$ac_save_IFS
5889 shift
5890 ac_file=$1
5891 shift
5893 case $ac_mode in
5894 :L) ac_source=$1;;
5895 :[FH])
5896 ac_file_inputs=
5897 for ac_f
5899 case $ac_f in
5900 -) ac_f="$tmp/stdin";;
5901 *) # Look for the file first in the build tree, then in the source tree
5902 # (if the path is not absolute). The absolute path cannot be DOS-style,
5903 # because $ac_f cannot contain `:'.
5904 test -f "$ac_f" ||
5905 case $ac_f in
5906 [\\/$]*) false;;
5907 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5908 esac ||
5909 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5910 esac
5911 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5912 as_fn_append ac_file_inputs " '$ac_f'"
5913 done
5915 # Let's still pretend it is `configure' which instantiates (i.e., don't
5916 # use $as_me), people would be surprised to read:
5917 # /* config.h. Generated by config.status. */
5918 configure_input='Generated from '`
5919 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5920 `' by configure.'
5921 if test x"$ac_file" != x-; then
5922 configure_input="$ac_file. $configure_input"
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5924 $as_echo "$as_me: creating $ac_file" >&6;}
5926 # Neutralize special characters interpreted by sed in replacement strings.
5927 case $configure_input in #(
5928 *\&* | *\|* | *\\* )
5929 ac_sed_conf_input=`$as_echo "$configure_input" |
5930 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5931 *) ac_sed_conf_input=$configure_input;;
5932 esac
5934 case $ac_tag in
5935 *:-:* | *:-) cat >"$tmp/stdin" \
5936 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5937 esac
5939 esac
5941 ac_dir=`$as_dirname -- "$ac_file" ||
5942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5943 X"$ac_file" : 'X\(//\)[^/]' \| \
5944 X"$ac_file" : 'X\(//\)$' \| \
5945 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5946 $as_echo X"$ac_file" |
5947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5948 s//\1/
5951 /^X\(\/\/\)[^/].*/{
5952 s//\1/
5955 /^X\(\/\/\)$/{
5956 s//\1/
5959 /^X\(\/\).*/{
5960 s//\1/
5963 s/.*/./; q'`
5964 as_dir="$ac_dir"; as_fn_mkdir_p
5965 ac_builddir=.
5967 case "$ac_dir" in
5968 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5970 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5971 # A ".." for each directory in $ac_dir_suffix.
5972 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5973 case $ac_top_builddir_sub in
5974 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5975 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5976 esac ;;
5977 esac
5978 ac_abs_top_builddir=$ac_pwd
5979 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5980 # for backward compatibility:
5981 ac_top_builddir=$ac_top_build_prefix
5983 case $srcdir in
5984 .) # We are building in place.
5985 ac_srcdir=.
5986 ac_top_srcdir=$ac_top_builddir_sub
5987 ac_abs_top_srcdir=$ac_pwd ;;
5988 [\\/]* | ?:[\\/]* ) # Absolute name.
5989 ac_srcdir=$srcdir$ac_dir_suffix;
5990 ac_top_srcdir=$srcdir
5991 ac_abs_top_srcdir=$srcdir ;;
5992 *) # Relative name.
5993 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5994 ac_top_srcdir=$ac_top_build_prefix$srcdir
5995 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5996 esac
5997 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6000 case $ac_mode in
6003 # CONFIG_FILE
6006 case $INSTALL in
6007 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6008 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6009 esac
6010 _ACEOF
6012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6013 # If the template does not know about datarootdir, expand it.
6014 # FIXME: This hack should be removed a few years after 2.60.
6015 ac_datarootdir_hack=; ac_datarootdir_seen=
6016 ac_sed_dataroot='
6017 /datarootdir/ {
6021 /@datadir@/p
6022 /@docdir@/p
6023 /@infodir@/p
6024 /@localedir@/p
6025 /@mandir@/p'
6026 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6027 *datarootdir*) ac_datarootdir_seen=yes;;
6028 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6030 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6031 _ACEOF
6032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6033 ac_datarootdir_hack='
6034 s&@datadir@&$datadir&g
6035 s&@docdir@&$docdir&g
6036 s&@infodir@&$infodir&g
6037 s&@localedir@&$localedir&g
6038 s&@mandir@&$mandir&g
6039 s&\\\${datarootdir}&$datarootdir&g' ;;
6040 esac
6041 _ACEOF
6043 # Neutralize VPATH when `$srcdir' = `.'.
6044 # Shell code in configure.ac might set extrasub.
6045 # FIXME: do we really want to maintain this feature?
6046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6047 ac_sed_extra="$ac_vpsub
6048 $extrasub
6049 _ACEOF
6050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6053 s|@configure_input@|$ac_sed_conf_input|;t t
6054 s&@top_builddir@&$ac_top_builddir_sub&;t t
6055 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6056 s&@srcdir@&$ac_srcdir&;t t
6057 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6058 s&@top_srcdir@&$ac_top_srcdir&;t t
6059 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6060 s&@builddir@&$ac_builddir&;t t
6061 s&@abs_builddir@&$ac_abs_builddir&;t t
6062 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6063 s&@INSTALL@&$ac_INSTALL&;t t
6064 $ac_datarootdir_hack
6066 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6067 || as_fn_error "could not create $ac_file" "$LINENO" 5
6069 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6070 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6071 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6073 which seems to be undefined. Please make sure it is defined." >&5
6074 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6075 which seems to be undefined. Please make sure it is defined." >&2;}
6077 rm -f "$tmp/stdin"
6078 case $ac_file in
6079 -) cat "$tmp/out" && rm -f "$tmp/out";;
6080 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6081 esac \
6082 || as_fn_error "could not create $ac_file" "$LINENO" 5
6086 # CONFIG_HEADER
6088 if test x"$ac_file" != x-; then
6090 $as_echo "/* $configure_input */" \
6091 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6092 } >"$tmp/config.h" \
6093 || as_fn_error "could not create $ac_file" "$LINENO" 5
6094 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6096 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6097 else
6098 rm -f "$ac_file"
6099 mv "$tmp/config.h" "$ac_file" \
6100 || as_fn_error "could not create $ac_file" "$LINENO" 5
6102 else
6103 $as_echo "/* $configure_input */" \
6104 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6105 || as_fn_error "could not create -" "$LINENO" 5
6110 # CONFIG_LINK
6113 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
6115 else
6116 # Prefer the file from the source tree if names are identical.
6117 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
6118 ac_source=$srcdir/$ac_source
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
6122 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
6124 if test ! -r "$ac_source"; then
6125 as_fn_error "$ac_source: file not found" "$LINENO" 5
6127 rm -f "$ac_file"
6129 # Try a relative symlink, then a hard link, then a copy.
6130 case $srcdir in
6131 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
6132 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
6133 esac
6134 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
6135 ln "$ac_source" "$ac_file" 2>/dev/null ||
6136 cp -p "$ac_source" "$ac_file" ||
6137 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
6140 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6141 $as_echo "$as_me: executing $ac_file commands" >&6;}
6143 esac
6146 case $ac_file$ac_mode in
6147 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6148 if test -n "$CONFIG_FILES"; then
6149 # FIXME: We shouldn't need to set ac_file
6150 ac_file=Makefile
6151 . ${libgcc_topdir}/config-ml.in
6152 fi ;;
6154 esac
6155 done # for ac_tag
6158 as_fn_exit 0
6159 _ACEOF
6160 ac_clean_files=$ac_clean_files_save
6162 test $ac_write_fail = 0 ||
6163 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6166 # configure is writing to config.log, and then calls config.status.
6167 # config.status does its own redirection, appending to config.log.
6168 # Unfortunately, on DOS this fails, as config.log is still kept open
6169 # by configure, so config.status won't be able to write to it; its
6170 # output is simply discarded. So we exec the FD to /dev/null,
6171 # effectively closing config.log, so it can be properly (re)opened and
6172 # appended to by config.status. When coming back to configure, we
6173 # need to make the FD available again.
6174 if test "$no_create" != yes; then
6175 ac_cs_success=:
6176 ac_config_status_args=
6177 test "$silent" = yes &&
6178 ac_config_status_args="$ac_config_status_args --quiet"
6179 exec 5>/dev/null
6180 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6181 exec 5>>config.log
6182 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6183 # would make configure fail if this is the last instruction.
6184 $ac_cs_success || as_fn_exit $?
6186 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6188 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}