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