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